*, *:before, *:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

#inner {
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
}

/* Loading Screen */
#loadingScreen {
    padding: 60px 20px;
}

#loadingScreen h2 {
    margin-top: 20px;
    font-size: 22px;
    color: #1d1d1f;
}

#loadingScreen p {
    margin-top: 12px;
    color: #86868b;
    font-size: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #007aff;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top bar */
.top-bar {
    background: #007aff;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.top-bar i {
    margin-right: 8px;
}

/* Age Modal */
#ageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.age-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 28px;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.age-box h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.age-box p {
    color: #86868b;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.age-btn {
    background: #007aff;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.age-btn:hover {
    background: #005bbf;
}

/* Scan Box */
.scan-box {
    padding: 40px 20px;
}

.scan-box h3 {
    margin-top: 16px;
    font-size: 20px;
    color: #1d1d1f;
}

.scan-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.scan-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34c759, #007aff);
    border-radius: 4px;
    transition: width 0.3s;
}

#scanStatus {
    color: #86868b;
    font-size: 14px;
}

/* Alert Box */
.alert-box {
    padding: 20px 16px;
}

.alert-header h2 {
    margin-top: 12px;
    font-size: 24px;
    color: #d32f2f;
}

.alert-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.call-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.call-btn:hover {
    background: #b71c1c;
}

.call-btn i {
    margin-right: 8px;
}

.dismiss-btn {
    background: transparent;
    color: #86868b;
    border: 2px solid #e0e0e0;
    padding: 14px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dismiss-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
