/* ========================================
   DARK/LIGHT MODE TOGGLE
   Item 58/78: Theme switching system
   Default: Dark mode (optimal for emergency app)
   ======================================== */

/* ====================================
   THEME VARIABLES
   ==================================== */

/* Dark Mode (DEFAULT) */
:root {
    /* Background */
    --bg-primary: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-tertiary: rgba(255, 255, 255, 0.1);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    /* Emergency colors (same in both modes) */
    --emergency-red: #ff3b3b;
    --emergency-orange: #ff9800;
    --emergency-yellow: #ffc107;
    --emergency-green: #4caf50;
}

/* Light Mode */
[data-theme="light"] {
    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    
    /* Text - CRITICAL: Dark text for light backgrounds */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6b6b6b;
    
    /* Borders */
    --border-color: rgba(0, 0, 0, 0.15);
    --border-hover: rgba(0, 0, 0, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Light Mode Critical Overrides */
[data-theme="light"] html,
[data-theme="light"] body {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-description,
[data-theme="light"] .hero-text,
[data-theme="light"] .hero-text p {
    color: #ffffff !important;
}

/* ====================================
   THEME APPLICATION
   ==================================== */

/* Body background */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Cards */
.card,
.feature-card,
.use-case {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.card:hover,
.feature-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Inputs */
input,
textarea,
select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
}

/* Buttons secondary */
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Links */
a {
    color: var(--text-secondary);
}

/* Shadows */
.card {
    box-shadow: var(--shadow-md);
}

/* ====================================
   THEME TOGGLE BUTTON
   ==================================== */

.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Icons */
.theme-toggle-icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

/* Dark mode icon (moon) */
.theme-toggle-dark {
    display: block;
}

.theme-toggle-light {
    display: none;
}

/* Light mode icons swap */
[data-theme="light"] .theme-toggle-dark {
    display: none;
}

[data-theme="light"] .theme-toggle-light {
    display: block;
}

/* ====================================
   LIGHT MODE SPECIFIC STYLES
   ==================================== */

[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-links a {
    color: #1a1a1a !important;
}

[data-theme="light"] .nav-links a:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card,
[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .card:hover,
[data-theme="light"] .feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Buttons in light mode */
[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Footer in light mode */
[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] footer a {
    color: #333333 !important;
}

/* ALL TEXT ELEMENTS IN LIGHT MODE */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] li,
[data-theme="light"] a,
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-description,
[data-theme="light"] .section-title,
[data-theme="light"] .section-description,
[data-theme="light"] .feature-title,
[data-theme="light"] .feature-description,
[data-theme="light"] .thank-you-title,
[data-theme="light"] .thank-you-subtitle,
[data-theme="light"] .email-label,
[data-theme="light"] .benefits-title,
[data-theme="light"] .benefit-text,
[data-theme="light"] .share-title,
[data-theme="light"] .share-subtitle {
    color: #1a1a1a !important;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

[data-theme="light"] .hero-stats .stat-label,
[data-theme="light"] .hero-stats .stat-number {
    color: #1a1a1a !important;
}

[data-theme="light"] .badge,
[data-theme="light"] .section-badge {
    color: #1a1a1a !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .email-address {
    color: #1565C0 !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #666666 !important;
}

/* ====================================
   PRESERVE EMERGENCY COLORS
   ==================================== */

/* Emergency buttons always vibrant (both modes) */
.btn-primary,
.emergency-btn,
.sos-button {
    /* Always use bright emergency colors */
    background: linear-gradient(135deg, #ff3b3b 0%, #ff6b6b 100%);
    color: white;
}

.btn-primary:hover,
.emergency-btn:hover {
    background: linear-gradient(135deg, #ff4b4b 0%, #ff7b7b 100%);
}

/* CTA buttons */
.btn-cta,
.cta-button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* ====================================
   TOGGLE ANIMATION
   ==================================== */

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

.theme-toggle.animating {
    animation: toggleRotate 0.5s ease;
}

/* ====================================
   MOBILE RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .theme-toggle-icon {
        font-size: 24px;
    }
}

/* ====================================
   PREFERENCE DETECTION
   ==================================== */

/* Respect user's OS preference if no manual choice */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        /* Apply light mode variables if OS prefers light */
        --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        --text-primary: #1a1a1a;
        /* ... other light variables ... */
    }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

.theme-toggle:focus-visible {
    outline: 3px solid var(--primary-color, #1565C0);
    outline-offset: 3px;
}

/* ARIA label for screen readers */
.theme-toggle[aria-label]:focus-visible {
    outline: 3px solid var(--primary-color, #1565C0);
    outline-offset: 3px;
}

/* ====================================
   SMOOTH TRANSITIONS
   ==================================== */

body,
.navbar,
.card,
.feature-card,
input,
textarea,
button {
    transition: background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    /* Always use light mode for printing */
    body {
        background: white;
        color: black;
    }
    
    .theme-toggle {
        display: none;
    }
}

/* ====================================
   THEME-AWARE UTILITY CLASSES
   ==================================== */

/* Text color utilities that adapt to theme */
.text-theme-primary {
    color: var(--text-primary) !important;
}

.text-theme-secondary {
    color: var(--text-secondary) !important;
}

.text-theme-light {
    color: var(--text-tertiary) !important;
}

/* Phone screen - always white text on blue */
.phone-screen-text {
    color: white !important;
}

[data-theme="light"] .phone-screen-text {
    color: white !important; /* Keep white on blue gradient */
}

/* Section content that should adapt */
.section-content {
    color: var(--text-primary);
}

[data-theme="light"] .section-content {
    color: #1a1a1a !important;
}

/* ====================================
   COMPLETE SECTION STYLING
   ==================================== */

/* Stats and numbers */
.stat-number,
.stat-label {
    color: var(--text-primary);
}

/* Hero Stats - Light Mode */
[data-theme="light"] .hero .stat-number {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="light"] .hero .stat-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
}

/* Stats Section Cards */
[data-theme="light"] .stat-number,
[data-theme="light"] .stat-label {
    color: #1a1a1a !important;
    font-weight: 900 !important;
}

/* Screenshots section - gradient title */
.screenshots-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .screenshots-placeholder {
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(0, 0, 0, 0.15);
}

.screenshots-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .screenshots-title {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screenshots-badge {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(79, 172, 254, 0.1);
    border: 2px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    color: #4facfe;
    font-weight: 600;
    font-size: 14px;
}

[data-theme="light"] .screenshots-badge {
    background: rgba(13, 71, 161, 0.1);
    border: 2px solid rgba(13, 71, 161, 0.3);
    color: #0D47A1;
}

/* How It Works - Step numbers */
.step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .how-it-works {
    background: #ffffff !important;
}

[data-theme="light"] .step {
    background: #f8f9fa !important;
    padding: 30px 20px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
}

[data-theme="light"] .step-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .step-description {
    color: #4a4a4a !important;
    font-weight: 400 !important;
}

/* Features Section - Complete Fix */
[data-theme="light"] .features {
    background: #f8f9fa !important;
}

[data-theme="light"] .feature-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

[data-theme="light"] .feature-icon {
    opacity: 1;
}

[data-theme="light"] .feature-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .feature-description {
    color: #4a4a4a !important;
    font-weight: 400 !important;
}

[data-theme="light"] .feature-card ul li {
    color: #4a4a4a !important;
}

/* Use Cases Section - COMPLETE FIX */
[data-theme="light"] .use-cases {
    background: #f8f9fa !important;
}

[data-theme="light"] .use-case {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .use-case:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

[data-theme="light"] .use-case h3 {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .use-case p,
[data-theme="light"] .use-case-story {
    color: #4a4a4a !important;
    font-weight: 400 !important;
}

[data-theme="light"] .use-case-story strong {
    color: #1565C0 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .use-case-icon {
    opacity: 1 !important;
}

[data-theme="light"] .use-case-features {
    color: #4a4a4a !important;
}

[data-theme="light"] .use-case-features span {
    background: #e9ecef !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

/* Stats Section - COMPLETE FIX */
[data-theme="light"] .stats-section {
    background: #f8f9fa !important;
}

[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

[data-theme="light"] .stat-card .stat-number {
    color: #1565C0 !important;
    font-weight: 900 !important;
    font-size: 3.5rem !important;
}

[data-theme="light"] .stat-card .stat-label {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .stat-sublabel {
    color: #6b6b6b !important;
    font-weight: 400 !important;
}

/* FAQ Section */
[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .faq-question {
    color: #1a1a1a !important;
}

[data-theme="light"] .faq-answer {
    color: #333333 !important;
}

/* Download Section */
[data-theme="light"] .download-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .download-title {
    color: #1a1a1a !important;
}

[data-theme="light"] .download-description {
    color: #333333 !important;
}

/* Footer Section */
[data-theme="light"] .footer {
    background: #f5f7fa !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-description,
[data-theme="light"] .footer-title,
[data-theme="light"] .footer-list a,
[data-theme="light"] .copyright,
[data-theme="light"] .disclaimer {
    color: #1a1a1a !important;
}

[data-theme="light"] .footer-list a {
    opacity: 0.8;
}

[data-theme="light"] .footer-list a:hover {
    opacity: 1;
    color: #1565C0 !important;
}

/* Share Story Modal */
[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .modal-content {
    background: white !important;
    color: #1a1a1a !important;
}

/* Section Badges */
.section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

[data-theme="light"] .section-badge {
    background: #1565C0 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Section Headers */
.section-title {
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
}

[data-theme="light"] .section-title {
    color: #1a1a1a !important;
    font-weight: 800 !important;
}

[data-theme="light"] .section-description {
    color: #4a4a4a !important;
    font-weight: 400 !important;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: var(--text-secondary);
    margin: 8px 0;
}

[data-theme="light"] .feature-list li {
    color: #333333 !important;
}

/* Privacy Notice */
.privacy-notice {
    color: var(--text-secondary);
}

[data-theme="light"] .privacy-notice {
    color: #1a1a1a !important;
}

[data-theme="light"] .privacy-notice strong {
    color: #0D47A1 !important;
}

/* Hero Buttons */
[data-theme="light"] .btn-secondary {
    background: rgba(21, 101, 192, 0.1);
    color: #0D47A1;
    border: 2px solid rgba(21, 101, 192, 0.3);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(21, 101, 192, 0.2);
    border-color: rgba(21, 101, 192, 0.5);
}

/* Share Story Section - BEAUTIFUL Modern Styling */
.share-story-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 32px;
    padding: 80px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.share-story-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 60px 60px;
    animation: shimmer 20s linear infinite;
    opacity: 0.3;
}

@keyframes shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.share-story-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.share-story-heading {
    font-size: 40px;
    font-weight: 900;
    margin: 0 0 20px 0;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.share-story-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px 0;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-story-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 22px 60px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-story-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #ffffff;
}

.share-story-button:active {
    transform: translateY(-2px) scale(1.02);
}

.share-story-benefits {
    margin-top: 32px;
    font-size: 16px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .share-story-cta {
        padding: 60px 30px;
        border-radius: 24px;
    }
    
    .share-story-icon {
        font-size: 64px;
    }
    
    .share-story-heading {
        font-size: 28px;
    }
    
    .share-story-text {
        font-size: 16px;
    }
    
    .share-story-button {
        padding: 18px 40px;
        font-size: 16px;
    }
}

[data-theme="light"] .share-story {
    background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf1 100%);
}

[data-theme="light"] .share-story-cta {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(21, 101, 192, 0.2);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.1);
}

[data-theme="light"] .share-story-cta:hover {
    background: white;
    border-color: rgba(21, 101, 192, 0.4);
    box-shadow: 0 12px 40px rgba(21, 101, 192, 0.2);
}

[data-theme="light"] .share-story-heading {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .share-story-text {
    color: #333333;
}

[data-theme="light"] .share-story-button {
    background: linear-gradient(135deg, #E53935 0%, #D32F2F 100%);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.2);
}

[data-theme="light"] .share-story-button:hover {
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.4);
}

[data-theme="light"] .share-story-benefits {
    color: #666666;
}

/* ==========================================
   PHONE MOCKUP CONTENT
   ========================================== */
.phone-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    padding: 40px 20px;
    height: 100%;
}

.phone-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: phoneFloat 3s ease-in-out infinite;
}

.phone-title {
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}

.phone-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-bottom: 30px;
}

.phone-badge {
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

/* ==========================================
   COMING SOON SECTION - COMPLETE STYLING
   ========================================== */

/* Coming Soon Section - BEAUTIFUL Professional Style */
.coming-soon-section {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
    overflow: hidden;
}

.coming-soon-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.coming-soon-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 70px 50px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 30px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.coming-soon-title {
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -1px;
}

.coming-soon-text {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 50px 0;
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-form-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    margin: 50px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.coming-soon-form-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.coming-soon-form-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px 0;
    text-align: center;
    line-height: 1.6;
}

.coming-soon-form {
    display: flex;
    gap: 16px;
    max-width: 550px;
    margin: 0 auto;
    align-items: stretch;
}

.coming-soon-input {
    flex: 1;
    padding: 20px 24px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 17px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.coming-soon-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.coming-soon-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.coming-soon-button {
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coming-soon-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

.coming-soon-button:active {
    transform: translateY(-1px);
}

.coming-soon-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
    font-size: 16px;
    color: white;
    font-weight: 700;
}

.coming-soon-features strong {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .coming-soon-content {
        padding: 50px 30px;
        border-radius: 24px;
    }
    
    .coming-soon-icon {
        font-size: 64px;
    }
    
    .coming-soon-title {
        font-size: 32px;
    }
    
    .coming-soon-text {
        font-size: 16px;
    }
    
    .coming-soon-form {
        flex-direction: column;
    }
    
    .coming-soon-form-wrapper {
        padding: 40px 25px;
    }
    
    .coming-soon-features {
        gap: 20px;
        font-size: 14px;
    }
}

.coming-soon-features strong {
    color: var(--text-primary);
}

/* Coming Soon Section - COMPLETE FIX */
[data-theme="light"] .coming-soon-section {
    background: #f8f9fa !important;
}

[data-theme="light"] .coming-soon-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .coming-soon-text {
    color: #4a4a4a !important;
}

[data-theme="light"] .coming-soon-form-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

[data-theme="light"] .coming-soon-form-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .coming-soon-form-desc {
    color: #4a4a4a !important;
}

[data-theme="light"] .coming-soon-input {
    border: 2px solid #E5E7EB !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .coming-soon-input::placeholder {
    color: #9CA3AF !important;
}

[data-theme="light"] .coming-soon-features {
    color: #4a4a4a !important;
}

[data-theme="light"] .coming-soon-features strong {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

/* Store Button - Disabled State */
.store-button-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================
   SHARE STORY MODAL - Light Mode
   ========================================== */
[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .modal-content {
    background: #ffffff !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .modal-content h2,
[data-theme="light"] .modal-content h3,
[data-theme="light"] .modal-content label {
    color: #1a1a1a !important;
}

[data-theme="light"] .modal-content p {
    color: #4a4a4a !important;
}

[data-theme="light"] .modal-content input,
[data-theme="light"] .modal-content select,
[data-theme="light"] .modal-content textarea {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
    border: 2px solid #E5E7EB !important;
}

[data-theme="light"] .modal-content input::placeholder,
[data-theme="light"] .modal-content textarea::placeholder {
    color: #9CA3AF !important;
}

[data-theme="light"] .modal-content input:focus,
[data-theme="light"] .modal-content select:focus,
[data-theme="light"] .modal-content textarea:focus {
    border-color: #1565C0 !important;
    background: #ffffff !important;
}

/* ====================================
   REDUCED MOTION
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
    
    .theme-toggle.animating {
        animation: none;
    }
    
    body,
    .navbar,
    .card {
        transition: none;
    }
}