@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

: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(254, 44, 85, 0.1);
    --radius-lg: 32px;
    --radius-md: 18px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);

    /* Theme Toggle Specifics */
    --toggle-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --bg: #0A0A0B;
    --card-bg: #161618;
    --text-main: #FFFFFF;
    --text-dim: #A1A1AA;
    --text-sub: #71717A;
    --border: #27272A;
    --input-focus: rgba(254, 44, 85, 0.15);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --primary-soft: rgba(254, 44, 85, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Atmospheric Background Animation */
.bg-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.bg-aura::before,
.bg-aura::after {
    content: '';
    position: absolute;
    width: 80vmax;
    height: 80vmax;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    z-index: -1;
    animation: aura-float 25s infinite alternate ease-in-out;
}

.bg-aura::before {
    background: var(--primary);
    top: -20%;
    left: -20%;
}

.bg-aura::after {
    background: var(--secondary);
    bottom: -20%;
    right: -20%;
    animation-delay: -12s;
}

body.dark-mode .bg-aura::before,
body.dark-mode .bg-aura::after {
    opacity: 0.04;
    /* Extremely subtle in dark mode */
}

@keyframes aura-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15%, 15%) scale(1.1);
    }
}

.page-content,
.nav-header,
.feature-card,
.profile-card,
.btn-primary,
.theme-toggle-global,
.input-wrapper input,
.input-wrapper textarea {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

/* Step Tracker & Navigation Flow */
.flow-progress {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.flow-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 10px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateY(-50%);
    z-index: 1;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0%;
}

.step-node {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-sub);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.step-node.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 15px var(--primary-soft);
    transform: scale(1.1);
}

.step-node.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: var(--text-sub);
    transition: color 0.3s ease;
}

.step-node.active .step-label {
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.page-content {
    background: var(--card-bg);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    margin: 10px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Ensure minimum height */
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.6;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* Match rounded corners */
}



.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: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s 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: var(--card-bg);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.input-wrapper input::placeholder {
    color: var(--text-sub);
}

/* Profile Card */
.profile-card {
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.profile-avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.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: var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    border: 1px solid var(--border);
}

.info-banner i {
    color: var(--primary);
    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: 20px;
    background: linear-gradient(135deg, var(--primary), #D62B4A);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.4s, box-shadow 0.4s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 10px 25px rgba(254, 44, 85, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(254, 44, 85, 0.45);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 120%;
}

.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: var(--bg);
    opacity: 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);
    }
}

/* Landing Page Specifics */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: 50px;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-status i {
    color: var(--primary);
}

.hero-title {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-align: center;
}

.hero-lead {
    font-size: clamp(16px, 4vw, 19px);
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.6;
    text-align: center;
}

.btn-legendary {
    background: var(--text-main);
    color: var(--bg);
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.btn-legendary:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--primary);
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 80px auto 0;
    justify-content: center;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 32px 24px;
    border-radius: 28px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(254, 44, 85, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(254, 44, 85, 0.4);
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(254, 44, 85, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::after {
    opacity: 0.15;
}

.feature-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.footer-comprehensive {
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    padding: 120px 24px 60px;
    border-top: 1px solid var(--border);
    width: 100%;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 80px;
    text-align: left;
}

.footer-brand-side h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-main), var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-side p {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 15px;
    max-width: 400px;
    margin-bottom: 32px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 20px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.footer-socials a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(254, 44, 85, 0.25);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 16px;
}

.footer-column ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .footer-brand-side p {
        margin: 0 auto 32px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}