/* Global Tokens */
:root {
    --bg: #05060a;
    --surface: rgba(8, 11, 20, 0.75);
    --glass: rgba(20, 24, 35, 0.68);
    --border: rgba(255, 255, 255, 0.12);
    --accent: #5ad1ff;
    --accent-2: #7c6dfa;
    --accent-3: #47e6b6;
    --text: #e4e9ff;
    --muted: rgba(228, 233, 255, 0.65);
    --shadow: 0 20px 60px rgba(5, 6, 10, 0.45);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --gradient: linear-gradient(135deg, #4a7bff 0%, #6b5cff 40%, #ff7bc2 100%);
    --gradient-soft: linear-gradient(140deg, rgba(90, 209, 255, 0.18), rgba(124, 109, 250, 0.22));
    --blur: blur(26px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, #0b1323, #05060a 55%);
    color: var(--text);
    font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.scenic-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    width: clamp(220px, 25vw, 420px);
    height: clamp(220px, 25vw, 420px);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.35;
    animation: float 16s ease-in-out infinite;
}

.orb-a { top: -120px; right: -60px; background: #6b5cff; }
.orb-b { bottom: -160px; left: -40px; background: #2ec5ff; animation-delay: 3s; }
.orb-c { top: 40%; left: 20%; background: #ff7bc2; animation-delay: 6s; }

.gradient-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% -10%, rgba(255, 255, 255, 0.08), transparent 50%);
}

.world-map-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.map-grid,
.map-glow,
.map-dots {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    mix-blend-mode: screen;
}

.map-grid {
    background-image:
        linear-gradient(transparent 94%, rgba(124, 109, 250, 0.25) 96%),
        linear-gradient(90deg, transparent 94%, rgba(124, 109, 250, 0.25) 96%);
    background-size: 200px 200px;
    filter: blur(0.4px);
    animation: map-pan 60s linear infinite;
}

.map-glow {
    background: radial-gradient(circle at 40% 40%, rgba(90, 209, 255, 0.18), transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(124, 109, 250, 0.15), transparent 50%);
    filter: blur(40px);
    animation: map-glow-pulse 18s ease-in-out infinite;
}

.map-dots {
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='200' viewBox='0 0 400 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(90,209,255,0.2)'%3E%3Ccircle cx='40' cy='90' r='2'/%3E%3Ccircle cx='80' cy='120' r='2'/%3E%3Ccircle cx='150' cy='70' r='2'/%3E%3Ccircle cx='210' cy='110' r='2'/%3E%3Ccircle cx='260' cy='60' r='2'/%3E%3Ccircle cx='310' cy='95' r='2'/%3E%3Ccircle cx='360' cy='80' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 35%;
    opacity: 0.12;
    filter: blur(1px);
    animation: map-dots-fade 30s ease-in-out infinite alternate;
}

@keyframes map-pan {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: -400px -200px, -400px -200px; }
}

@keyframes map-glow-pulse {
    0% { transform: scale(1); opacity: 0.18; }
    50% { transform: scale(1.05); opacity: 0.25; }
    100% { transform: scale(1); opacity: 0.18; }
}

@keyframes map-dots-fade {
    0% { opacity: 0.04; transform: translateY(0); }
    100% { opacity: 0.1; transform: translateY(-10px); }
}

@keyframes float {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -20px, 0) scale(1.02); }
    100% { transform: translate3d(0, 0, 0); }
}

.page-shell {
    position: relative;
    z-index: 1;
    padding: clamp(5rem, 12vh, 7rem) clamp(1.5rem, 5vw, 3.5rem) clamp(4rem, 10vh, 5rem);
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
.app-nav {
    position: sticky;
    top: 1.5rem;
    margin: 1.5rem auto 0;
    width: min(1200px, calc(100% - 2rem));
    z-index: 40;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.glass-nav {
    background: rgba(12, 17, 30, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 30px rgba(106, 94, 255, 0.45);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.critical {
    color: #ff8a8a;
}

.nav-link.emphasised {
    color: #fff;
}

.nav-divider {
    width: 1px;
    height: 26px;
    background: var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 20px 40px rgba(82, 98, 255, 0.35);
}

.btn-gradient {
    background: linear-gradient(120deg, #ff7bc2, #7c6dfa, #5ad1ff);
    color: #fff;
    box-shadow: 0 18px 40px rgba(255, 123, 194, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.btn.full {
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ripple:hover::after {
    opacity: 0.2;
    transform: scale(1);
}

/* Flash Messages */
.flash-stack {
    margin-bottom: 2rem;
}

.flash-grid {
    display: grid;
    gap: 0.75rem;
}

.flash-card {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.flash-card.is-success { border-color: rgba(71, 230, 182, 0.5); }
.flash-card.is-error { border-color: rgba(255, 138, 138, 0.5); }
.flash-card.is-info { border-color: rgba(90, 209, 255, 0.5); }

/* Landing */
.landing-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vh, 5rem);
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: clamp(2rem, 6vw, 3.5rem);
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow);
}

.hero-panel h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1.1;
    margin: 0.5rem 0 1.25rem;
    font-family: "Poppins", "Inter", sans-serif;
    text-align: left;
}

/* Ensure hero content aligns with site headings */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}


.hero-panel h1 span {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(90, 209, 255, 0.4);
}

.hero-panel p {
    max-width: 32rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(90, 209, 255, 0.1);
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.metric {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label {
    display: block;
    font-weight: 600;
    color: #fff;
}

.metric-value {
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: arrange hero content and visual side-by-side on wide screens */
@media (min-width: 992px) {
    .hero-panel {
        display: grid;
        grid-template-columns: 1fr 420px;
        align-items: center;
        gap: 2.5rem;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
    }

    .hero-actions {
        flex-wrap: nowrap;
    }

    .hero-metrics {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .hero-card-grid {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
}

/* Profile */
.profile-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.profile-hero__lead {
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-chip {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.meta-chip.verified {
    border-color: rgba(71, 230, 182, 0.6);
    color: var(--accent-3);
}

.profile-hero__progress {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    margin: 0;
    color: var(--muted);
}

.progress-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5ad1ff, #7c6dfa);
    box-shadow: 0 10px 20px rgba(90, 209, 255, 0.3);
}

.progress-helper {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.profile-stat {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.profile-stat--primary { border-color: rgba(90, 209, 255, 0.5); }
.profile-stat--accent { border-color: rgba(124, 109, 250, 0.5); }
.profile-stat--muted { border-color: rgba(255, 255, 255, 0.15); }

.stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-value {
    margin: 0.35rem 0 0;
    font-size: 2rem;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-panel {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.category-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-breakdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-name {
    margin: 0;
    font-weight: 600;
}

.category-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.category-pill {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-weight: 600;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.badge-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.badge-card h3 {
    margin: 0;
}

.badge-card p {
    margin: 0.25rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.badge-date {
    font-size: 0.75rem;
    color: var(--muted);
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.dashboard-card h3 {
    margin: 0;
}

.dashboard-card p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.dashboard-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 160px;
}

.dashboard-meta span {
    font-size: 0.85rem;
    color: var(--muted);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
}

.activity-title {
    margin: 0;
    font-weight: 600;
}

.activity-meta {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.empty-state {
    margin: 0;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--muted);
    font-size: 0.9rem;
}

/* Planner */
.planner-shell {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.planner-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.planner-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.planner-lead {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.planner-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.planner-highlights span {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.planner-hero-card {
    align-self: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.hero-card-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
}

.hero-card-value {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.hero-card-helper {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.planner-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.planner-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.planner-field label {
    font-weight: 600;
}

.planner-field input,
.planner-field select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    padding: 0.8rem;
    font-size: 0.95rem;
}

.planner-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.planner-actions {
    grid-column: 1 / -1;
}

.planner-results {
    padding: clamp(1.5rem, 4vw, 2.2rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--glass);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.result-header h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.result-pill {
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.result-stats article {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.stat-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.stat-value {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.day-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.day-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.day-count {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.day-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.day-card li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.day-card li span {
    font-weight: 600;
    color: var(--text);
    min-width: 90px;
}

.planner-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .planner-actions .btn {
        width: 100%;
    }
    .planner-cta .btn {
        width: 100%;
    }
}

/* Comparison */
.compare-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.compare-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--glass);
    box-shadow: var(--shadow);
}

.compare-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.compare-hero--compact {
    padding: clamp(1.25rem, 3vw, 2rem);
    gap: 1.25rem;
}

.compare-hero--compact h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.compare-hero--compact .compare-lead {
    margin-bottom: 0.75rem;
}

.compare-lead {
    color: var(--muted);
    margin-bottom: 1rem;
}

.compare-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.compare-chips span {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

.compare-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    align-self: stretch;
}

.compare-meta article {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.compare-meta.compact {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.compare-meta.compact article {
    padding: 0.75rem;
}

.meta-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.meta-value {
    margin: 0.35rem 0 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.compare-selects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.compare-selects.compact {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.compare-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.compare-field label {
    font-weight: 600;
}

.compare-field select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    padding: 0.8rem;
    font-size: 0.95rem;
}

.sticky-selects {
    position: sticky;
    top: 90px;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.compare-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.compare-actions.compact {
    justify-content: flex-end;
}

.compare-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(625px, 1fr));
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.compare-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    min-height: 520px;
}

.compare-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.panel-label {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.compare-panel header span {
    font-weight: 600;
}

.panel-frame {
    flex: 1;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.panel-frame iframe {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

.compare-summary {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.compare-summary.compact {
    padding: 1rem 1.25rem;
}

/* Dashboard Builder */
.builder-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.builder-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--glass);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.builder-hero h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.builder-lead {
    color: var(--muted);
    max-width: 520px;
}

.builder-hint {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    max-width: 280px;
}

.hint-title {
    margin: 0;
    font-weight: 600;
    color: var(--accent);
}

.hint-copy {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.builder-form {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.builder-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.builder-field.full {
    grid-column: 1 / -1;
}

.builder-field label {
    font-weight: 600;
}

.builder-field input,
.builder-field select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    padding: 0.9rem;
    font-size: 0.95rem;
}

.builder-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.field-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.builder-actions {
    grid-column: 1 / -1;
}
.summary-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .compare-actions .btn {
        width: 100%;
    }
}

.hero-card-grid {
    width: 100%;
    max-width: 380px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.hero-aura,
.card-shimmer {
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0.7;
    filter: blur(40px);
    z-index: -1;
}

.orbit-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(5, 6, 10, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
    animation: float 12s ease-in-out infinite;
}

.orbit-card.secondary {
    animation-delay: 4s;
}

.orbit-icon {
    display: inline-flex;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.glass-card,
.glass-panel {
    position: relative;
    background: rgba(12, 17, 30, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feature-card {
    padding: 2rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(90, 209, 255, 0.35);
}

.card-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
}

.card-body h3 {
    margin: 0;
    font-size: 1.4rem;
}

.card-body p {
    color: var(--muted);
    margin: 0.5rem 0 0;
}

.card-shimmer {
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.glass-card:hover .card-shimmer {
    opacity: 1;
}

/* Dashboard list */
.dashboards-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-head .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.section-head h2 {
    margin: 0;
    font-size: 2rem;
    font-family: "Poppins", sans-serif;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    border-color: rgba(90, 209, 255, 0.35);
}

.card-cover {
    position: relative;
    height: 180px;
    border-radius: 18px;
    margin: 1.25rem;
    background: linear-gradient(135deg, rgba(90, 209, 255, 0.25), rgba(124, 109, 250, 0.35));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.card-chip {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(5, 6, 10, 0.65);
}

.card-content {
    padding: 0 1.25rem;
    flex: 1;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.card-content p {
    margin: 0;
    color: var(--muted);
}

.card-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn.full + .btn.full {
    margin-top: 0.5rem;
}

/* Dashboard page */
.dashboard-shell {
    position: relative;
    z-index: 1;
}

.premium-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.premium-breadcrumb a {
    color: var(--text);
    text-decoration: none;
}

.header-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .header-panel {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.header-panel h2 {
    margin: 0;
    font-size: 2rem;
}

.header-panel .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.powerbi-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.powerbi-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent);
    mix-blend-mode: screen;
    animation: shimmer 16s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 10, 0.75);
    backdrop-filter: blur(18px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 2rem;
}

.story-card {
    width: min(640px, 100%);
    background: rgba(12, 17, 30, 0.95);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(124, 109, 250, 0.5);
    box-shadow: var(--shadow);
}

.story-card h3 {
    margin-top: 0;
}

.story-controls {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.story-dots {
    display: flex;
    gap: 0.4rem;
}

.story-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.story-dots span:first-child {
    background: var(--accent-2);
}

.section-panel {
    padding: 2rem;
}

.section-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 209, 255, 0.16);
    color: var(--accent);
    font-weight: 600;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.insight-card {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(90, 209, 255, 0.18);
    background: rgba(90, 209, 255, 0.08);
    min-height: 140px;
}

.insight-card p {
    margin: 0 0 0.85rem;
}

.insight-card span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.insight-empty,
.recommend-empty {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--muted);
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.recommend-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.recommend-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 109, 250, 0.4);
}

.recommend-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feedback-panel {
    padding: 2rem;
}

.feedback-input {
    width: 100%;
    min-height: 140px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    padding: 1rem 1.25rem;
    resize: none;
}

.feedback-input:focus {
    outline: none;
    border-color: rgba(90, 209, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(90, 209, 255, 0.15);
}

.panel-note {
    font-size: 0.75rem;
    text-align: center;
    color: var(--muted);
}

/* Chatbot */
.chat-window {
    width: 320px;
    height: 420px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(13, 18, 30, 0.9), rgba(9, 25, 40, 0.85));
    border: 1px solid rgba(90, 209, 255, 0.25);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(5, 6, 10, 0.65), 0 0 45px rgba(90, 209, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.chat-window::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto;
    height: 220px;
    background: radial-gradient(circle at 20% 20%, rgba(90, 209, 255, 0.25), transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.chat-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 70% 30%, rgba(124, 109, 250, 0.25), transparent 55%),
        url("data:image/svg+xml,%3Csvg width='180' height='120' viewBox='0 0 180 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 90 C50 40 120 80 170 30' stroke='rgba(90,209,255,0.25)' stroke-width='2' fill='none' stroke-linecap='round' stroke-dasharray='6 6'/%3E%3Ccircle cx='10' cy='90' r='3' fill='rgba(124,109,250,0.6)'/%3E%3Ccircle cx='170' cy='30' r='3' fill='rgba(71,230,182,0.6)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
    filter: blur(0.3px);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    position: relative;
}

.chat-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(90, 209, 255, 0.35), rgba(124, 109, 250, 0.2));
    opacity: 0.25;
    pointer-events: none;
}

.close-chat {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow-y: auto;
}

.chat-bubble {
    align-self: flex-start;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(90, 98, 255, 0.35);
}

.chat-bubble.user p {
    color: #fff;
}

.chat-bubble p {
    margin: 0;
    font-size: 0.9rem;
}

.chat-input {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-field {
    display: flex;
    align-items: center;
}

.chat-input-shell {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.chat-field input {
    flex: 1;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    padding: 0 1.2rem;
    padding-right: 6rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.chat-field button {
    position: absolute;
    right: 0.4rem;
    height: 44px;
    min-width: 64px;
    border-radius: 999px;
    border: none;
    padding: 0 1.3rem;
    background: linear-gradient(120deg, #5ad1ff, #7c6dfa);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 25px rgba(90, 209, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.chat-field button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(90, 209, 255, 0.4);
}

.chat-field input:focus {
    border-color: rgba(90, 209, 255, 0.45);
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 209, 255, 0.2);
}

.chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    border: none;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-shell {
        padding: 6rem 1.25rem 4rem;
    }

    .hero-panel {
        padding: 2rem;
    }
}

