:root {
    --primary: #FE2C55;
    --primary-soft: rgba(254, 44, 85, 0.08);
    --secondary: #25F4EE;
    --bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #121212;
    --text-dim: #616161;
    --text-sub: #9E9E9E;
    --border: #EEEEEE;
    --input-focus: rgba(18, 18, 18, 0.05);
    --radius-lg: 24px;
    --radius-md: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

/* Header Navigation */
.nav-header {
    width: 100%;
    max-width: 500px;
    height: 64px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
}

.nav-header .back-btn {
    position: absolute;
    left: 20px;
    font-size: 18px;
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
}

.nav-header h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-content {
    background: white;
    padding: 40px 24px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 20px;
}

.title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    padding: 0 10px;
}

/* Form Styles */
.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper textarea {
    height: 140px;
    resize: none;
    line-height: 1.6;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    background: white;
    border-color: var(--text-main);
    outline: none;
    box-shadow: 0 0 0 4px var(--input-focus);
}

.input-wrapper input::placeholder {
    color: var(--text-sub);
}

/* Profile Card */
.profile-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
}

.profile-avatar-container {
    position: relative;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.profile-info h3 {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.verified-badge {
    color: #00B0FF;
    font-size: 16px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    transform: translateX(-8px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 11px;
    color: var(--text-sub);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

/* Banners */
.info-banner {
    background: #F0F2F5;
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.info-banner i {
    color: var(--text-dim);
    font-size: 16px;
    margin-top: 2px;
}

.info-banner p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--border);
    color: var(--text-sub);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Lockout Specific */
.lockout-timer {
    font-size: 64px;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin: 40px 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

/* Footer Control */
.site-footer {
    width: 100%;
    max-width: 500px;
    padding: 48px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-dim);
}

.copyright {
    font-size: 12px;
    color: var(--text-sub);
    font-weight: 500;
}

/* Helpers */
.char-count {
    font-size: 12px;
    color: var(--text-sub);
    text-align: right;
    margin-top: 8px;
}

.error-text {
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg);
    border-top-color: var(--text-main);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 30px 20px;
        border-bottom: 1px solid var(--border);
    }
}