/* ============================================
   NOTEBOOKGEN — SECONDARY PAGES STYLESHEET
   Shared styles for About, Privacy, Terms,
   Contact, and Disclaimer pages.
   ============================================ */

/* ═══════════════════════════════
   CSS Custom Properties
   ═══════════════════════════════ */
:root {
    --bg-body: #060a14;
    --bg-surface: rgba(14, 20, 38, 0.95);
    --bg-card: rgba(20, 30, 55, 0.65);
    --bg-card-hover: rgba(30, 42, 72, 0.7);
    --bg-glass: rgba(16, 24, 48, 0.8);
    --border: rgba(55, 70, 95, 0.4);
    --border-glow: rgba(74, 140, 255, 0.25);
    --text-primary: #e2e8f0;
    --text-secondary: #8899b3;
    --text-muted: #5a6b80;
    --accent: #4a8cff;
    --accent-glow: rgba(74, 140, 255, 0.3);
    --highlight: #4af5c7;
    --danger: #ff6b6b;
    --nav-height: 68px;
    --max-width: 960px;
    --radius: 14px;
    --radius-sm: 8px;
    --bg-sub-card: rgba(10, 18, 40, 0.7);
    --bg-faq-question: rgba(10, 18, 40, 0.5);
    --bg-select-option: #0e1426;
}

/* ═══════════════════════════════
   Reset & Base
   ═══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--highlight); }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════
   Background Gradient Mesh
   ═══════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(74, 140, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 70%, rgba(74, 245, 199, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(120, 80, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════
   Skip Navigation (Accessibility)
   ═══════════════════════════════ */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 100000;
    transition: top 0.2s;
}
.skip-nav:focus { top: 0; outline: 2px solid #fff; outline-offset: 2px; }

/* ═══════════════════════════════
   Site Header / Navigation
   ═══════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.header-logo .material-icons-round {
    font-size: 30px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}
.header-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.header-logo-text .hl { color: var(--highlight); }

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(74, 140, 255, 0.08); }
.nav-links a.active { color: var(--accent); background: rgba(74, 140, 255, 0.12); font-weight: 600; }

/* Mobile Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-primary);
}
.menu-toggle .material-icons-round { font-size: 28px; }

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    background: rgba(6, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    z-index: 9998;
    padding: 2rem;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeSlideDown 0.3s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--accent);
    background: rgba(74, 140, 255, 0.08);
    border-color: var(--border-glow);
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   Hero Section
   ═══════════════════════════════ */
.page-hero {
    position: relative;
    padding: calc(var(--nav-height) + 4rem) 2rem 3.5rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(74, 140, 255, 0.06) 0%, transparent 70%);
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(74, 140, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}
.hero-title .hl { color: var(--highlight); }
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-date {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.35rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════
   Content Sections
   ═══════════════════════════════ */
.content-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    animation: fadeInUp 0.5s ease both;
}
.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-glow);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Staggered animation */
.content-card:nth-child(1) { animation-delay: 0.05s; }
.content-card:nth-child(2) { animation-delay: 0.1s; }
.content-card:nth-child(3) { animation-delay: 0.15s; }
.content-card:nth-child(4) { animation-delay: 0.2s; }
.content-card:nth-child(5) { animation-delay: 0.25s; }
.content-card:nth-child(6) { animation-delay: 0.3s; }
.content-card:nth-child(7) { animation-delay: 0.35s; }
.content-card:nth-child(8) { animation-delay: 0.4s; }

.content-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    line-height: 1.3;
}
.content-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.6rem;
}
.content-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul, .content-card ol {
    color: var(--text-secondary);
    font-size: 0.92rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.content-card li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.content-card li::marker { color: var(--accent); }
.content-card strong { color: var(--text-primary); font-weight: 600; }
.content-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.content-card a:hover { color: var(--highlight); }

/* Table of Contents */
.toc {
    background: rgba(74, 140, 255, 0.05);
    border: 1px solid rgba(74, 140, 255, 0.15);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}
.toc h3 { color: var(--accent); margin-bottom: 0.75rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; }
.toc a:hover { color: var(--accent); }

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}
.feature-card {
    background: var(--bg-sub-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-card .material-icons-round {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.feature-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
}
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-sub-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-select-option); color: var(--text-primary); }
.submit-btn {
    align-self: flex-start;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--accent), #3a6fd8);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    font-family: inherit;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74, 140, 255, 0.35); }

/* Contact Info Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}
.contact-card {
    background: var(--bg-sub-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .material-icons-round { font-size: 32px; color: var(--accent); margin-bottom: 0.6rem; }
.contact-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* FAQ Accordion */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--accent); }
.faq-question {
    width: 100%;
    background: var(--bg-faq-question);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: inherit;
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(74, 140, 255, 0.06); }
.faq-question .material-icons-round {
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s;
}
.faq-item.open .faq-question .material-icons-round { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════
   Footer
   ═══════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 20, 0.95) 20%, #040812 100%);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}
.footer-logo .material-icons-round { font-size: 28px; color: var(--accent); }
.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.footer-brand .hl { color: var(--highlight); }
.footer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, padding-left 0.2s;
    text-decoration: none;
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(55, 70, 95, 0.3);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════
   Back to Top Button
   ═══════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 9000;
    box-shadow: 0 4px 16px rgba(74, 140, 255, 0.3);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(74, 140, 255, 0.45); }
.back-to-top .material-icons-round { font-size: 22px; }

/* ═══════════════════════════════
   Cookie Consent Banner
   ═══════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 20, 38, 0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    flex-wrap: wrap;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-btn {
    padding: 0.55rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s;
    white-space: nowrap;
}
.cookie-btn:hover { transform: translateY(-1px); }

/* ═══════════════════════════════
   Responsive
   ═══════════════════════════════ */
@media (max-width: 768px) {
    .site-header { padding: 0 1rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .page-hero { padding: calc(var(--nav-height) + 2.5rem) 1.25rem 2.5rem; }
    .content-wrap { padding: 1.5rem 1rem 3rem; }
    .content-card { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.75rem; }
    .content-card h2 { font-size: 1.15rem; }
}

/* ═══════════════════════════════
   Print
   ═══════════════════════════════ */
@media print {
    .site-header, .site-footer, .back-to-top, .cookie-banner, .skip-nav { display: none !important; }
    body { background: #fff; color: #222; }
    body::before { display: none; }
    .content-card { border: 1px solid #ddd; box-shadow: none; background: #fff; break-inside: avoid; }
    .page-hero { background: none; padding-top: 1rem; }
    .hero-title { color: #111; }
    a { color: #1a73e8; }
}

/* ==========================================================================
   STATIC PAGES: LIGHT MODE STYLING & COMPONENT OVERRIDES
   ========================================================================== */
body.light-theme {
    --bg-body: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border: rgba(15, 23, 42, 0.12);
    --border-glow: rgba(99, 102, 241, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --highlight: #0ea5e9;
    --bg-sub-card: #f8fafc;
    --bg-faq-question: #f8fafc;
    --bg-select-option: #ffffff;
    
    color: var(--text-primary);
}

body.light-theme::before {
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
}

body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .header-logo-text {
    color: #0f172a;
}

body.light-theme .nav-links a {
    color: #475569;
}
body.light-theme .nav-links a:hover {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
}
body.light-theme .nav-links a.active {
    color: white;
    background: var(--accent);
}

body.light-theme .menu-toggle {
    color: #475569;
}
body.light-theme .menu-toggle:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent);
}

body.light-theme .mobile-nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
body.light-theme .mobile-nav a {
    color: #475569;
}
body.light-theme .mobile-nav a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent);
}
body.light-theme .mobile-nav a.active {
    color: white;
    background: var(--accent);
}

body.light-theme .content-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .site-footer {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
body.light-theme .footer-grid h3 {
    color: #0f172a;
}
body.light-theme .footer-links a {
    color: #64748b;
}
body.light-theme .footer-links a:hover {
    color: var(--accent);
}
body.light-theme .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .cookie-banner {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #334155;
}

body.light-theme .cookie-btn {
    background: var(--accent);
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}
.theme-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}
body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Warning/Integrity Card styling for Disclaimer page */
.warning-card {
    border-color: rgba(244, 63, 94, 0.2) !important;
    background: rgba(244, 63, 94, 0.03) !important;
    backdrop-filter: blur(10px) !important;
}
.warning-card h2 {
    border-left-color: #f43f5e !important;
}
.warning-card:hover {
    border-color: rgba(244, 63, 94, 0.35) !important;
    box-shadow: 0 8px 32px rgba(244, 63, 94, 0.08) !important;
}

body.light-theme .warning-card {
    border-color: rgba(225, 29, 72, 0.15) !important;
    background: rgba(225, 29, 72, 0.02) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.02) !important;
}
body.light-theme .warning-card h2 {
    border-left-color: #e11d48 !important;
}
body.light-theme .warning-card:hover {
    border-color: rgba(225, 29, 72, 0.25) !important;
    box-shadow: 0 8px 32px rgba(225, 29, 72, 0.06) !important;
}

/* ==========================================================================
   404 PAGE CUSTOM STYLING
   ========================================================================== */
.error-page-card {
    text-align: center;
    padding: 3.5rem 2rem !important;
    position: relative;
    overflow: hidden;
}

.error-code-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.error-code {
    font-size: 7.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 30%, var(--highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulseGlow 3s infinite alternate;
    letter-spacing: -2px;
}

body.light-theme .error-code {
    background: linear-gradient(135deg, var(--accent) 30%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 10px rgba(74, 140, 255, 0.15)); }
    100% { filter: drop-shadow(0 0 25px rgba(74, 140, 255, 0.4)); }
}

.error-handwritten-note {
    max-width: 420px;
    margin: 2.5rem auto;
    padding: 2.25rem 2rem 2rem;
    background: #ffffff;
    color: #1b365d;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    line-height: 1.45;
    text-align: left;
    transform: rotate(-2.5deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    /* Elegant ruled notebook lines */
    background-image: linear-gradient(rgba(27, 54, 93, 0.08) 1px, transparent 1px);
    background-size: 100% 2rem;
    background-position: 0 0.8rem;
}

body.light-theme .error-handwritten-note {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: #fffdf9; /* Creamy paper tone in light mode */
    border-color: rgba(99, 102, 241, 0.12);
}

.error-handwritten-note:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

body.light-theme .error-handwritten-note:hover {
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.15);
}

.error-handwritten-note::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.5rem;
    width: 1px;
    background: rgba(239, 68, 68, 0.35); /* Classic pink/red margin line */
}

.error-note-content {
    padding-left: 1.8rem;
}

.error-note-title {
    font-weight: 700;
    font-size: 1.85rem;
    margin-bottom: 0.8rem;
    color: #e11d48; /* Premium Rose warning color */
}

body.light-theme .error-note-title {
    color: #be123c;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.92rem;
    min-width: 160px;
}

.error-btn-primary {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.error-btn-primary:hover {
    background: var(--highlight);
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

body.light-theme .error-btn-primary {
    background: var(--accent);
    color: #fff !important;
}

body.light-theme .error-btn-primary:hover {
    background: #3b33c8;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.error-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary) !important;
}

.error-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

body.light-theme .error-btn-secondary {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-secondary) !important;
}

body.light-theme .error-btn-secondary:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary) !important;
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5.5rem;
    }
    .error-handwritten-note {
        font-size: 1.35rem;
        padding: 1.75rem 1.5rem 1.5rem;
    }
    .error-btn {
        width: 100%;
    }
}

/* ==========================================================================
   LANGUAGE SWITCHER STYLING (MATCHING MAIN APP)
   ========================================================================== */
.lang-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0.5rem;
}

body.light-theme .lang-select-wrapper {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.lang-select-wrapper .lang-icon {
    font-size: 16px;
    color: var(--text-muted);
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.lang-select option {
    background: var(--bg-select-option);
    color: var(--text-primary);
}

.mobile-nav .lang-select-wrapper {
    margin: 1rem 1.25rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

body.light-theme .mobile-nav .lang-select-wrapper {
    background: rgba(15, 23, 42, 0.02);
}

