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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--light-bg);
}

:root {
    /* =========================================================
       Brand Colors (Basic)
       ========================================================= */
    --primary: #fc1436;
    --primary-color: #fc1436;
    --primary-light: #ff6b6b;
    --primary-color-light: #ff6b6b;
    --primary-color-dark: #d90429;
    --secondary-color: #ff6f91;
    --accent: #ec4899;

    /* =========================================================
       Gradients
       ========================================================= */
    --primary-gradient: linear-gradient(135deg, #fc1436 0%, #ff6b6b 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* =========================================================
       Neutral / Background Colors
       ========================================================= */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-bg: #1a1a2e;
    --dark-bg-secondary: #16213e;

    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-lighter: #f1f5f9;

    --text-dark: #333;
    --text-light: #666;
    --text-lighter: #999;

    --white: #ffffff;
    --light-bg: #fff5f7;

    /* =========================================================
       State Colors (Semantic + Explicit)
       ========================================================= */
    --success: #10b981;
    --success-color: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --error-color: #ef4444;
    --info: #3b82f6;

    /* =========================================================
       Layout Dimensions
       ========================================================= */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --topbar-height: 70px;

    --container-max: 1280px;
    --container-padding: clamp(1rem, 5vw, 3rem);
    --section-padding: clamp(3rem, 8vw, 6rem);

    /* =========================================================
       Spacing Scale
       ========================================================= */
    --gap-xs: clamp(0.5rem, 2vw, 0.75rem);
    --gap-sm: clamp(0.75rem, 2vw, 1rem);
    --gap-md: clamp(1rem, 3vw, 1.5rem);
    --gap-lg: clamp(1.5rem, 4vw, 2rem);
    --gap-xl: clamp(2rem, 5vw, 3rem);
    --gap-2xl: clamp(3rem, 7vw, 4rem);

    /* =========================================================
       Border Radius (Explicit + Semantic)
       ========================================================= */
    --border-radius-sm: 15px;
    --border-radius-md: 20px;
    --border-radius-lg: 25px;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* =========================================================
       Shadows (Neutral)
       ========================================================= */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* =========================================================
       Shadows (Brand / Accent)
       ========================================================= */
    --shadow-primary-sm: 0 5px 20px rgba(252, 20, 54, 0.1);
    --shadow-primary-md: 0 10px 40px rgba(252, 20, 54, 0.1);
    --shadow-primary-lg: 0 20px 60px rgba(252, 20, 54, 0.2);

    /* =========================================================
       Motion / Transitions
       ========================================================= */
    --transition-speed: 0.3s;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header & Navigation */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(252, 20, 54, 0.1);
    transition: all 0.3s ease;
}

#navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fc1436 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    overflow: hidden;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.nav-list-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fc1436;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fc1436, #ff6b6b);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-container {
    padding-bottom: 2rem !important;
}
.mobile-menu-container .nav-links {
    flex-direction: column;
}

.unavailable-link {
    position: relative;
    cursor: not-allowed;
    color: #999 !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    line-height: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}
.mobile-menu.open {
    display: block !important;
    max-height: 400px; /* Adjust as needed */
}
.mobile-menu-container {
    display: flex;
    flex-direction: column;
    padding: 1rem var(--container-padding);
    gap: var(--gap-lg);
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    line-height: 1;
}
.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    list-style: none;
    margin: 0;
}
.mobile-nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.125rem);
    transition: var(--transition);
}
.mobile-nav-menu a:hover {
    color: var(--primary);
}
.mobile-nav-actions {
    display: flex;
    gap: var(--gap-md);
}
.mobile-nav-actions a:first-child {
    border: 1px solid var(--gray-light);
}


.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary {
    background: white;
    color: #fc1436;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.btn-mini {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #fc1436 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(252, 20, 54, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}
.auth-btn-primary {
    background: #fc1436;
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}
.auth-btn-secondary {
    background: white;
    color: #fc1436;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.auth-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}


.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fc1436 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}
.section-title-secondary {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0f0f0 0%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.stats {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.stats-grid {
    max-width: 1400px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fc1436 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #fc1436 0%, #ff6b6b 50%, #ffa07a 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Footer */
#footer {
    background: #1a1a2e;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fc1436;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 940px) {
    .nav-list-container .nav-links,
    .nav-list-container .auth-buttons {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title,
    .section-title-secondary {
        font-size: 2rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

._error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.8rem;
}

.alert.show {
    display: flex;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-icon {
    font-size: 1.3rem;
}

/* Form Styles */
.formPasswordWrapper {
    position: relative;
}
.showHidePassword {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
}
.showHideSecret {
    border: none;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    top: 2rem;
    background-color: #fc1436;
    font-weight: bold;
    color: #ffffff;
    border-radius: 5px;
    font-size: 12px;
}
.form-group:has(.showHideSecret) {
    position: relative;
}
.formGroup {
    margin-bottom: 1.5rem;
}
.formGroup label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}
.formGroup input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
}
.formGroup input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 20, 54, 0.1);
}
.formGroup input.error {
    border-color: var(--error-color);
}