/* ============================================
   SafeSpend Landing Page Styles
   ============================================ */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a24;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-secondary: #a78bfa;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #c084fc 50%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 0;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    flex: 0 0 auto;
    width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-image {
    flex: 0 0 auto;
    width: 460px;
    display: flex;
    justify-content: center;
}

.app-preview {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(139, 92, 246, 0.1);
}

.preview-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #10b981; }

.preview-content {
    padding: 24px;
}

.preview-balance {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.preview-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.preview-amount {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.preview-period {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-upcoming {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.preview-icon {
    font-size: 20px;
}

.preview-name {
    flex: 1;
    font-size: 14px;
}

.preview-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--danger);
}

/* ============================================
   Problem Section
   ============================================ */

.problem {
    padding: 100px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.problem-content h2 {
    text-align: center;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem-content > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.problem-card h3 {
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
}

.feature-icon {
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 0;
}

.feature-card h3 {
    display: inline;
    vertical-align: middle;
    margin-bottom: 0;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.feature-preview {
    margin-top: 24px;
}

.safe-spend-demo {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
}

.demo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.demo-row.dim {
    color: var(--text-muted);
}

.demo-row.highlight {
    font-weight: 600;
    font-size: 16px;
}

.demo-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.demo-amount.red { color: var(--danger); }
.demo-amount.green { color: var(--success); }

.demo-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 100px 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.03) 50%, transparent 100%);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    margin-top: 32px;
    opacity: 0.3;
}

/* ============================================
   Privacy Section
   ============================================ */

.privacy-section {
    padding: 100px 24px;
}

/* Privacy Options - Two Card Layout */
.privacy-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.privacy-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.privacy-option:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.privacy-option.connected {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), var(--bg-card));
    border-color: rgba(139, 92, 246, 0.3);
}

.privacy-option-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
}

.privacy-option-badge.free {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.privacy-option-badge.pro {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
}

.privacy-option-icon {
    font-size: 48px;
    margin-bottom: 16px;
    margin-top: 8px;
}

.privacy-option h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-option-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.privacy-option-features {
    list-style: none;
    margin-bottom: 24px;
}

.privacy-option-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.privacy-option-features li:last-child {
    border-bottom: none;
}

.privacy-option-features .check {
    color: var(--success);
    font-weight: 600;
}

.privacy-option-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.privacy-trust {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Privacy Bottom Cards */
.privacy-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-card-mini {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.privacy-card-mini:hover {
    border-color: var(--border-hover);
}

.privacy-card-mini-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.privacy-card-mini h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.privacy-card-mini p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    padding: 100px 24px;
    display: flex;
    justify-content: center;
}

.cta .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
    padding: 64px 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
}

.cta-content h2 {
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 64px 24px 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        max-width: 400px;
        margin-top: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    /* Prevent orphaned words (single word on last line) */
    h1, h2, h3, h4 {
        text-wrap: balance;
    }
    
    p, .step-content p, .feature-card p, .problem-card p, 
    .privacy-option-desc, .privacy-trust, .privacy-card-mini p,
    .hero-subtitle, .cta-note {
        text-wrap: pretty;
    }
    
    /* Hero CTA buttons - same width on mobile */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: span 1;
    }
    
    /* Center feature icons on mobile - stack vertically */
    .feature-card {
        text-align: center;
    }
    
    .feature-icon {
        display: block;
        text-align: center;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .feature-card h3 {
        display: block;
        margin-bottom: 8px;
    }
    
    .feature-card p {
        margin-top: 0;
    }
    
    .steps {
        flex-direction: column;
        gap: 32px;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }
    
    .privacy-options {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .privacy-option {
        padding: 28px 24px;
        text-align: center;
    }
    
    .privacy-option-icon {
        font-size: 40px;
        display: block;
        text-align: center;
    }
    
    .privacy-option h3 {
        font-size: 20px;
    }
    
    .privacy-option-features li {
        justify-content: center;
    }
    
    .privacy-option-footer {
        text-align: center;
    }
    
    .privacy-bottom {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* Center privacy bottom cards on mobile */
    .privacy-card-mini {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 16px;
    }
    
    .privacy-card-mini-icon {
        margin-bottom: 0;
        font-size: 24px;
    }
    
    .privacy-card-mini h4 {
        margin-bottom: 6px;
    }
    
    .privacy-card-mini p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Reduce spacing in privacy option features */
    .privacy-option-features {
        margin-bottom: 16px;
    }
    
    .privacy-option-features li {
        padding: 8px 0;
    }
    
    .privacy-option-footer {
        padding-top: 12px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .cta-content {
        padding: 32px;
    }
}

/* ============================================
   Login Modal
   ============================================ */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.login-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 16px;
}

.modal-logo-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.login-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-modal-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.login-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.login-field input {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.login-field input::placeholder {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    padding: 14px 24px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Signup Modal Specific */
.signup-terms {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

.signup-terms a {
    color: var(--text-secondary);
    text-decoration: none;
}

.signup-terms a:hover {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-modal {
        margin: 16px;
        padding: 24px;
    }
}

