@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:wght@400;600&family=Playfair+Display:wght@600&family=Poppins:wght@400;500;600&display=swap');

:root {
    --color-primary: #ffd580;
    --color-primary-dark: #ffb347;
    --color-accent: #8ca6db;
    --color-background: #fff7ee;
    --color-surface: rgba(255, 255, 255, 0.85);
    --color-text: #2e2e2e;
    --color-muted: #8d8c8c;
    --color-quote-bg: #fff1d6;
    --color-highlight: #e67e22;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.15);
    --border-radius-xl: 28px;
    --border-radius-lg: 20px;
    --font-heading: 'Playfair Display', serif;
    --font-quote: 'Lora', serif;
    --font-ui: 'Poppins', 'Inter', sans-serif;
    --body-background: radial-gradient(circle at top, #ffeccd 0%, #fde7f9 45%, #f3f6ff 100%);
    --body-before-gradient: radial-gradient(circle, rgba(255, 213, 128, 0.4), transparent 70%);
    --body-after-gradient: radial-gradient(circle, rgba(140, 166, 219, 0.35), transparent 70%);
    --surface-soft: rgba(255, 255, 255, 0.85);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.6);
    --surface-card: rgba(255, 255, 255, 0.9);
    --surface-muted: rgba(255, 255, 255, 0.75);
    --surface-pill: rgba(255, 255, 255, 0.8);
    --surface-frost: rgba(255, 255, 255, 0.92);
    --surface-bright: rgba(255, 255, 255, 0.94);
    --surface-ultra: rgba(255, 255, 255, 0.96);
    --surface-ghost: rgba(255, 255, 255, 0.6);
    --border-translucent: rgba(255, 255, 255, 0.4);
    --border-faint: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.2);
    --hero-logo-glow: radial-gradient(circle, rgba(255, 228, 196, 0.9) 0%, rgba(255, 228, 196, 0.2) 45%, transparent 75%);
    --hero-logo-glow-size: clamp(260px, 45vw, 420px);
    --hero-logo-glow-blur: 65px;
    --hero-logo-glow-opacity: 0.85;
}

:root.theme-transition,
body.theme-transition {
    transition:
        background-color 0.8s ease,
        background-image 0.8s ease,
        color 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

:root[data-theme="dusk"] {
    --color-primary: #f6a365;
    --color-primary-dark: #e48045;
    --color-accent: #7ab0ff;
    --color-background: #0b1221;
    --color-surface: rgba(21, 29, 47, 0.9);
    --color-text: #f5f7ff;
    --color-muted: #9aa5c4;
    --color-quote-bg: rgba(20, 27, 44, 0.95);
    --color-highlight: #ffbf7f;
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.6);
    --body-background: radial-gradient(circle at top, #1a2743 0%, #111a2f 55%, #050b16 100%);
    --body-before-gradient: radial-gradient(circle, rgba(245, 147, 94, 0.25), transparent 70%);
    --body-after-gradient: radial-gradient(circle, rgba(95, 140, 219, 0.2), transparent 65%);
    --surface-soft: rgba(21, 29, 47, 0.9);
    --surface-strong: rgba(27, 38, 63, 0.95);
    --surface-glass: rgba(18, 25, 41, 0.75);
    --surface-card: rgba(22, 31, 50, 0.9);
    --surface-muted: rgba(19, 28, 46, 0.85);
    --surface-pill: rgba(36, 47, 74, 0.85);
    --surface-frost: rgba(18, 25, 41, 0.9);
    --surface-bright: rgba(26, 36, 58, 0.92);
    --surface-ultra: rgba(30, 41, 66, 0.95);
    --surface-ghost: rgba(255, 255, 255, 0.08);
    --border-translucent: rgba(255, 255, 255, 0.18);
    --border-faint: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.25);
    --hero-logo-glow: radial-gradient(circle, rgba(255, 191, 128, 0.85) 0%, rgba(255, 191, 128, 0.18) 55%, transparent 82%);
    --hero-logo-glow-opacity: 0.95;
}

:root[data-theme="calm"] {
    --color-primary: #d2f7ea;
    --color-primary-dark: #1f7259;
    --color-accent: #9fd3ff;
    --color-background: linear-gradient(145deg, #eafdf5 0%, #d9f5ff 45%, #bfe8ff 100%);
    --color-surface: rgba(255, 255, 255, 0.97);
    --color-text: #1f3430;
    --color-muted: #5d6f6a;
    --color-quote-bg: #edf8f2;
    --color-highlight: #72b4a1;
    --shadow-soft: 0 16px 48px rgba(37, 71, 63, 0.16);
    --shadow-strong: 0 38px 90px rgba(37, 71, 63, 0.24);
    --body-background: linear-gradient(140deg, #f0fbff 0%, #e2f7f0 40%, #d7ecff 100%);
    --body-before-gradient: radial-gradient(circle at 15% 20%, rgba(152, 221, 196, 0.6), transparent 60%);
    --body-after-gradient: radial-gradient(circle at 80% 70%, rgba(159, 211, 255, 0.55), transparent 65%);
    --surface-soft: rgba(255, 255, 255, 0.95);
    --surface-strong: rgba(255, 255, 255, 0.99);
    --surface-glass: rgba(250, 255, 252, 0.88);
    --surface-card: rgba(255, 255, 255, 0.97);
    --surface-muted: rgba(255, 255, 255, 0.91);
    --surface-pill: rgba(255, 255, 255, 0.93);
    --surface-frost: rgba(255, 255, 255, 0.98);
    --surface-bright: rgba(255, 255, 255, 1);
    --surface-ultra: rgba(255, 255, 255, 1);
    --surface-ghost: rgba(255, 255, 255, 0.85);
    --border-translucent: rgba(91, 159, 140, 0.45);
    --border-faint: rgba(114, 180, 161, 0.25);
    --border-strong: rgba(91, 159, 140, 0.55);
    --hero-logo-glow: radial-gradient(circle, rgba(255, 255, 255, 0.95) 10%, rgba(210, 247, 234, 0.25) 50%, transparent 75%);
    --hero-logo-glow-opacity: 0.7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background: var(--body-background);
    color: var(--color-text);
    margin: 0;
    min-height: 100vh;
    line-height: 1.6;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 520px;
    height: 520px;
    background: var(--body-before-gradient);
    filter: blur(40px);
    z-index: 0;
}

body::before {
    top: -120px;
    right: -60px;
}

body::after {
    bottom: -160px;
    left: -80px;
    background: var(--body-after-gradient);
}

.app-shell {
    position: relative;
    min-height: 100vh;
    padding: 4.5rem 1.5rem 3rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.theme-switcher {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.theme-switcher__quick {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: var(--surface-glass);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.theme-switcher__quick-button {
    border: none;
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.35rem 0.95rem 0.35rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-switcher__quick-button[aria-pressed="true"] {
    background: var(--color-primary);
    color: #1e1e1e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.theme-switcher__quick-button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.theme-switcher__swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid var(--border-translucent);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-switcher__bubble {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: 200%;
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.theme-switcher__bubble--active {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 255, 255, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.4);
    filter: saturate(1.2);
    transform: scale(1.08);
}

.theme-switcher__bubble:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.theme-switcher__bubble-icon {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.theme-switcher__bubble-icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-switcher__mobile-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-translucent);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    background: var(--surface-card);
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.theme-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 30;
}

.theme-sheet {
    width: 100%;
    max-width: 520px;
    background: var(--color-surface);
    border-radius: 32px 32px 0 0;
    padding: 1.5rem 1.25rem 2.5rem;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
    animation: sheetSlideUp 0.3s ease forwards;
}

.theme-sheet__handle {
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-translucent);
    margin: 0 auto 1rem;
}

.theme-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.theme-sheet__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.theme-sheet__close {
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-option {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: var(--surface-card);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    gap: 1rem;
    text-align: left;
    flex-wrap: wrap;
}

.theme-option__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
}

.theme-option__name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-weight: 600;
    text-align: left;
    gap: 0.2rem;
}

.theme-option__name small {
    font-size: 0.78rem;
    color: var(--color-muted);
    font-weight: 500;
}

.theme-option[aria-pressed="true"] {
    border-color: var(--color-primary);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.theme-option__apply {
    border: none;
    background: var(--color-primary);
    color: #1f1f1f;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}

@keyframes sheetSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.brand-bar {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.8rem;
    border-radius: var(--border-radius-lg);
    background: var(--color-surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    width: clamp(150px, 22vw, 320px);
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.2));
    transition: width 0.3s ease, margin 0.3s ease;
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.brand-mark--no-label .brand-mark__label {
    display: none;
}

.brand-mark__label {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-text);
}

:root[data-theme="dusk"] .brand-mark__label {
    color: #f4f6ff;
    text-shadow: 0 2px 10px rgba(2, 6, 14, 0.6);
}

.brand-mark--hero .brand-mark__label {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.brand-mark--hero {
    margin-left: -1.2rem;
}

.brand-mark--badge .brand-logo {
    width: clamp(150px, 24vw, 320px);
}

:root[data-theme="dusk"] .brand-mark--badge {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    scale: 0 1;
    transform-origin: left;
    transition: scale 0.25s ease;
}

.nav-links a:hover::after {
    scale: 1 1;
}

.hero-badge {
    display: flex;
    justify-content: center;
    margin: -2.5rem auto 0.5rem;
    position: relative;
    isolation: isolate;
}

.hero-badge::before {
    content: '';
    position: absolute;
    width: var(--hero-logo-glow-size);
    height: var(--hero-logo-glow-size);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--hero-logo-glow);
    filter: blur(var(--hero-logo-glow-blur));
    opacity: var(--hero-logo-glow-opacity);
    pointer-events: none;
    z-index: -1;
}

.content-area {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-card {
    background: var(--color-surface);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 213, 128, 0.25), transparent 55%);
    pointer-events: none;
}

.hero-heading {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-heading__copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 260px;
}

.hero-heading .theme-switcher {
    flex: 0 0 auto;
}

.hero-theme-row {
    display: flex;
    justify-content: center;
    margin: 3rem auto 3.5rem;
}

.hero-heading-logo {
    display: none;
}

@media (max-width: 1200px) {
    .brand-logo {
        width: clamp(120px, 22vw, 200px);
    }
}

.hero-title {
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-description {
    margin: 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.animate-quote {
    animation: quoteFadeIn 0.45s ease;
}

@keyframes quoteFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-card {
    background-color: var(--color-quote-bg);
    border-radius: var(--border-radius-lg);
    padding: 4.25rem 2.5rem 2.75rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 220px;
}


.quote-display {
    margin: 0.75rem auto 2rem;
    max-width: 900px;
}

.empty-quote {
    text-align: center;
    padding: 2rem;
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}
.quote-card::before {
    /* stylized double quotes in top-left corner (unicode escapes avoid encoding issues) */
    content: "\201C";
    font-family: var(--font-heading);
    font-size: 5.85rem;
    line-height: 1;
    letter-spacing: -0.7rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--color-highlight) 70%, transparent);
    position: absolute;
    top: 28px;
    left: 32px;
}

:root[data-theme="calm"] .quote-card::before {
    color: rgba(47, 125, 99, 0.55);
}

.quote-card::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-translucent);
    pointer-events: none;
}

.quote-meta-bar {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-muted);
    position: relative;
    z-index: 1;
    margin-top: 1.45rem;
}

.quote-text {
    font-family: var(--font-quote);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin: 0;
    position: relative;
    z-index: 1;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
}

.quote-author {
    font-family: var(--font-heading);
    text-align: right;
    color: var(--color-highlight);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    margin-left: auto;
    font-weight: 600;
    font-size: 1.1rem;
}

:root[data-theme="calm"] .quote-author {
    color: #2f7d63;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--surface-glass);
    color: var(--color-text);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

:root[data-theme="dusk"] .category-pill {
    background: rgba(122, 176, 255, 0.18);
    color: #f7f9ff;
    border: none;
    box-shadow: 0 6px 18px rgba(5, 12, 24, 0.35);
}

:root[data-theme="calm"] .category-pill {
    background: rgba(255, 255, 255, 0.6);
    color: #1d2f2a;
    box-shadow: 0 10px 25px rgba(33, 68, 55, 0.12);
}

.quote-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .quote-footer {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .category-pill {
        order: 0;
    }

    .quote-author {
        order: 1;
        margin-left: 0;
        text-align: right;
        flex-grow: 1;
    }
}

.primary-button {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: none;
    border-radius: 999px;
    color: #1e1e1e;
    padding: 0.95rem 2.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(140, 166, 219, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(140, 166, 219, 0.45);
}

.primary-button--hero {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    min-width: 240px;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    margin: 0.3rem 0;
}

.primary-button--hero .cta-icon {
    font-size: 1.2rem;
}

.primary-button--pulse {
    /* reserved for future states */
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    text-align: center;
}

@media (min-width: 576px) {
    .cta-group {
        flex-direction: column;
        gap: 0.85rem;
    }
}

.limit-pill {
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    background: rgba(230, 126, 34, 0.12);
    color: var(--color-highlight);
    font-weight: 600;
    font-size: 0.95rem;
}

.info-banner {
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-lg);
    background: rgba(230, 126, 34, 0.1);
    color: var(--color-highlight);
    font-weight: 500;
}

.success-banner {
    background: rgba(143, 201, 144, 0.2);
    color: #2c7c3a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-chip {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-soft);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-chip--current {
    background: rgba(255, 213, 128, 0.25);
}

.stat-chip-value {
    font-size: 2rem;
    font-weight: 600;
}

.stat-chip-label {
    color: var(--color-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.stat-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-glass);
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), var(--color-highlight));
    transition: width 0.3s ease;
}

.feedback-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 7, 16, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.feedback-modal {
    background: var(--surface-strong);
    border-radius: var(--border-radius-xl);
    padding: 2.4rem;
    max-width: 520px;
    width: min(520px, 100%);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.info-modal {
    text-align: left;
}

.info-modal-body {
    font-size: 1rem;
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feedback-eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
    display: block;
    font-weight: 600;
}

.feedback-close {
    border: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.feedback-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text);
}

.feedback-rating-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .feedback-rating-row {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }
}

.feedback-rating-label {
    font-weight: 600;
    color: var(--color-muted);
    min-width: 72px;
}

.rating-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rating-scale-button {
    min-width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(46, 46, 46, 0.15);
    background: var(--surface-frost);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rating-scale-button:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 166, 219, 0.25);
}

.rating-scale-button.active {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
    color: #fff;
    box-shadow: 0 12px 32px rgba(230, 126, 34, 0.3);
}

.feedback-textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(46, 46, 46, 0.1);
    padding: 1rem;
    resize: none;
    min-height: 130px;
    font-family: var(--font-ui);
    font-size: 1rem;
    background: var(--surface-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.feedback-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 166, 219, 0.2);
    outline: none;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.admin-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.admin-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-tab-link {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: var(--surface-muted);
    border: 1px solid rgba(46, 46, 46, 0.08);
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-tab-link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.admin-tab-link.active {
    background: var(--color-highlight);
    color: #fff;
    border-color: var(--color-highlight);
    box-shadow: 0 10px 24px rgba(230, 126, 34, 0.35);
}

.admin-logout-button {
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(46, 46, 46, 0.08);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-logout-button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.admin-page {
    position: relative;
    background: var(--surface-frost);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-strong);
    margin: 0 auto 3rem;
    max-width: 1120px;
    border: 1px solid var(--surface-glass);
    overflow: hidden;
}

.admin-page::before,
.admin-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.admin-page::before {
    background: radial-gradient(circle at top right, rgba(255, 213, 128, 0.35), transparent 55%);
    opacity: 0.6;
}

.admin-page::after {
    background: radial-gradient(circle at bottom left, rgba(140, 166, 219, 0.4), transparent 60%);
    opacity: 0.4;
}

.admin-page > * {
    position: relative;
    z-index: 1;
}

.admin-page-header {
    margin-bottom: 1.5rem;
}

.admin-page-header h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}

.admin-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--color-muted);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.admin-page .nav-tabs {
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.admin-card,
.form-panel {
    background: var(--surface-bright);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(46, 46, 46, 0.05);
    position: relative;
    overflow: hidden;
}

.admin-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 213, 128, 0.08), rgba(140, 166, 219, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.admin-card:hover::after {
    opacity: 1;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.admin-card-header h4 {
    margin: 0.1rem 0 0;
    font-family: var(--font-heading);
}
.admin-card-header p {
    margin-top: 0.4rem;
    color: var(--color-muted);
}

.form-panel .form-label {
    font-weight: 600;
    color: var(--color-muted);
}

.form-panel .form-control,
.form-panel .form-select,
.form-panel textarea {
    border-radius: 14px;
    border: 1px solid rgba(46, 46, 46, 0.08);
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--surface-card);
}

.form-panel .form-control:focus,
.form-panel .form-select:focus,
.form-panel textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 166, 219, 0.2);
    outline: none;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.9rem;
}

.admin-card--table {
    padding-bottom: 1.5rem;
}

.admin-table thead {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
}

.admin-table tbody tr {
    background: var(--surface-ultra);
    box-shadow: var(--shadow-soft);
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.admin-table td,
.admin-table th {
    padding: 1rem 1.15rem;
    vertical-align: middle;
}

.admin-table tbody td:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.admin-table tbody td:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.admin-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-action-button {
    border: none;
    background: rgba(140, 166, 219, 0.15);
    color: #4f5a78;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-action-button:hover {
    background: rgba(140, 166, 219, 0.3);
    transform: translateY(-1px);
}

.admin-action-button--danger {
    background: rgba(230, 126, 34, 0.15);
    color: #a3530d;
}

.admin-action-button--danger:hover {
    background: rgba(230, 126, 34, 0.3);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(140, 166, 219, 0.15);
    color: #4f5a78;
    font-size: 0.85rem;
}

.pill-badge--color {
    background: var(--pill-color, rgba(140, 166, 219, 0.3));
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.pill-badge--muted {
    background: rgba(46, 46, 46, 0.08);
    color: var(--color-muted);
}

.ghost-button {
    border: 1px solid rgba(46, 46, 46, 0.12);
    background: transparent;
    color: var(--color-text);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ghost-button:hover {
    border-color: rgba(46, 46, 46, 0.3);
    color: var(--color-accent);
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.admin-import-card {
    margin-top: 2rem;
}

.admin-file-upload {
    margin-bottom: 1rem;
}

.admin-file-input {
    width: 100%;
    border: 1px dashed rgba(46, 46, 46, 0.15);
    border-radius: 18px;
    padding: 1rem;
    background: var(--surface-card);
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-file-input:hover {
    border-color: rgba(140, 166, 219, 0.6);
    background: rgba(140, 166, 219, 0.05);
}

.admin-file-input::file-selector-button {
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 1.1rem;
    margin-right: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-alert {
    border-radius: 16px;
    padding: 0.95rem 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.admin-alert--success {
    background: rgba(76, 217, 100, 0.15);
    color: #1b8a3a;
}

.admin-alert--danger {
    background: rgba(230, 126, 34, 0.15);
    color: #a3530d;
}

.admin-import-actions {
    margin-top: 0.5rem;
}

.code-sample {
    background: rgba(46, 46, 46, 0.85);
    color: #fffbe6;
    border-radius: 18px;
    padding: 1rem 1.3rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    box-shadow: inset 0 0 0 1px var(--border-faint);
}

.import-sample {
    background: var(--surface-pill);
    border-radius: 18px;
    border: 1px solid rgba(46, 46, 46, 0.05);
    padding: 1rem;
}

.admin-empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--color-muted);
    background: var(--surface-muted);
    border-radius: var(--border-radius-lg);
}

.admin-card--theme .theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.theme-field .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    border-radius: var(--border-radius-lg);
    padding: 1.2rem 1.4rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feedback-rating {
    color: var(--color-text);
}

.feedback-comment {
    margin: 0;
    color: var(--color-text);
    line-height: 1.5;
}

.nav.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--color-muted);
    padding-bottom: 0.7rem;
    position: relative;
}

.nav.nav-tabs .nav-link.active {
    color: var(--color-text);
    font-weight: 600;
}

.nav.nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav.nav-tabs .nav-link.active::after {
    opacity: 1;
    transform: translateY(0);
}

.list-group .list-group-item {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
    background: var(--surface-frost);
}

.auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 480px;
    width: 100%;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card .form-control {
    border-radius: 20px;
    border: 1px solid rgba(46, 46, 46, 0.08);
    padding: 0.95rem 1rem;
    background: var(--surface-strong);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 166, 219, 0.25);
    outline: none;
}

.auth-card .form-label {
    font-weight: 600;
    color: var(--color-muted);
}

.auth-actions {
    margin-top: 1rem !important;
}

.auth-actions .primary-button {
    width: 100%;
    padding: 0.95rem 1rem;
}

.login-hint {
    font-size: 0.85rem;
}

.auth-card .form-control {
    border-radius: 14px;
    border: 1px solid rgba(46, 46, 46, 0.08);
    padding: 0.95rem 1rem;
    background: var(--surface-card);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 166, 219, 0.25);
    outline: none;
}

.auth-card .form-label {
    font-weight: 600;
    color: var(--color-muted);
}

.auth-guard {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-guard__card {
    max-width: 540px;
    width: 100%;
    padding: 2.5rem 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 120px rgba(94, 83, 149, 0.15);
    text-align: center;
}

.auth-guard__logo img {
    width: clamp(140px, 30vw, 220px);
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.auth-guard__notice {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.auth-guard__action {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 260px;
}

@media (max-width: 576px) {
    .auth-guard {
        padding: 1.5rem 1rem;
    }

    .auth-guard__card {
        padding: 2rem 1.5rem;
    }
}

.feedback-cta-card {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.feedback-cta-card p {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .brand-bar {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }

    .brand-logo {
        width: clamp(110px, 50vw, 180px);
    }

    .hero-badge {
        margin: -0.5rem auto 1rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .quote-display {
        margin: 2.5rem auto;
        max-width: 760px;
    }

    .empty-quote {
        text-align: center;
        padding: 2rem;
        color: var(--color-muted);
    }

    .nav-links,
    .admin-form-actions,
    .feedback-cta-card {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-page {
        padding: 2rem 1.5rem;
    }

    .theme-switcher {
        position: static;
        width: 100%;
        justify-content: center;
    }

    .theme-switcher__quick {
        display: none;
    }

    .theme-switcher__mobile-toggle {
        display: inline-flex;
    }

    .hero-theme-row {
        justify-content: center;
    }
}

