/* --- Root Variables & Fonts --- */
:root {
    --scout-purple: #590083;
    --heritage-purple: #9A00D6;
    --clother: "clother", sans-serif;
    --bg-grey: #f8f9fa;
    --transition: all 0.3s ease;
}

/* --- Base Styles --- */
body { 
    font-family: var(--clother); 
    font-weight: 300; /* Clother Light as default */
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, .fw-bold { 
    font-weight: 700 !important; /* Clother Bold */
}

h1, .display-3 { 
    font-weight: 900 !important; /* Clother Black for Hero */
    font-size: clamp(2.2rem, 8vw, 4rem);
    letter-spacing: -1px;
}

h2, .display-5 { 
    font-size: clamp(1.8rem, 5vw, 2.8rem); 
}

.text-purple { color: var(--heritage-purple) !important; }
.bg-scout { background-color: var(--scout-purple) !important; }

/* --- Navigation --- */
.navbar-brand {
    font-weight: 900;
    letter-spacing: -1px;
}

/* --- Buttons --- */
.btn-scout { 
    background-color: var(--scout-purple); 
    color: white; 
    font-weight: 700; 
    padding: 12px 30px;
    border-radius: 800px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-scout-light {
    border: 1px solid var(--scout-purple) !important;
    color: var(--scout-purple);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 800px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-white {
    background-color: white;
    color: #590083;
    border: none;
    transition: transform 0.2s;
}
.btn-white:hover {
    background-color: #f8f9fa;
    color: #40005e;
    transform: translateY(-2px);
}

.btn-scout:hover { 
    background-color: var(--heritage-purple); 
    color: white; 
}

.btn-scout-light:hover {
    border: 1px solid var(--scout-purple) !important;
    background-color: var(--scout-purple); 
    color: white; 
}

.btn-light:hover, .btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Ensure buttons are easy to press on mobile */
@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px 20px;
    }
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(89, 0, 131, 0.7), rgba(89, 0, 131, 0.7)), 
                url('/assets/img/bg.png') center center / cover no-repeat;
    border-radius: 20px;
    padding: 60px 20px;
    position: relative;
    border: none;
}

@media (min-width: 992px) {
    .hero-section {
        border-radius: 40px;
        padding: 120px 40px;
    }
}

.hero-section-home {
    background: linear-gradient(rgba(89, 0, 131, 0.7), rgba(89, 0, 131, 0.7)), 
                url('/assets/img/bg.png') center center / cover no-repeat;
    border-radius: 20px;
    padding: 60px 20px;
    position: relative;
    border: none;
}

@media (min-width: 992px) {
    .hero-section-home {
        border-radius: 40px;
        padding: 110px 40px;
    }
}

/* Typing Effect */
.cursor {
    font-weight: 300;
    margin-left: 4px;
    display: inline-block;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    from, to { color: transparent; }
    50% { color: white; }
}

/* --- Features & Content --- */
.feature-card {
    border: 1px solid #eee;
    transition: var(--transition);
    border-radius: 12px;
}

.feature-card:hover { 
    border-color: var(--heritage-purple);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.section-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
    color: #666;
}

/* --- Roadmap & AI Section --- */
.roadmap-container {
    background-color: var(--scout-purple);
    color: #fff;
    border-radius: 24px;
    padding: 40px 25px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .roadmap-container {
        border-radius: 40px;
        padding: 80px 60px;
    }
}

.coming-soon-badge {
    background-color: var(--heritage-purple) !important;
    font-weight: 700;
    font-style: italic; 
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Skeleton & AI UI Mockups */
.skeleton-ui {
    background: rgba(255,255,255,0.1);
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    margin: 0 auto;
}

.line { 
    height: 10px; 
    background: rgba(255,255,255,0.2); 
    margin-bottom: 10px; 
    border-radius: 5px; 
}

.line.short { width: 60%; }

.grid-skeleton { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 10px; 
    margin-top: 20px; 
}

.grid-skeleton div { 
    height: 40px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 5px; 
}

/* --- Templates Grid --- */
.templates { padding: clamp(40px, 8vw, 80px) 0; background: #fff; }

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.template-thumb {
    height: 180px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: #eee;
    transition: var(--transition);
}

.template-thumb:hover {
    transform: scale(1.02);
}

/* --- Pricing Cards --- */
.pricing-card {
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
    background: white;
}

.pricing-card.featured {
    border: 2px solid var(--scout-purple);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .pricing-card.featured {
        transform: scale(1);
        margin: 20px 0;
    }
}

/* --- Utils --- */
.max-width-700 { max-width: 700px; margin: 0 auto; }
.shadow-hover:hover { box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important; }
.transition { transition: var(--transition); }

/* Styling for the top-bar hover state */
.hover-purple:hover {
    color: var(--scout-purple) !important;
}

/* Ensure the navbar collapse looks like a clean menu on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Prevents the logo from getting squashed on tiny screens */
.navbar-brand img {
    min-width: 110px;
}

/* Custom class to be added via JavaScript */
.nav-scrolled {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; /* Bootstrap's shadow-sm */
}

/* Smooth transition for the shadow and padding */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.error-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900 !important;
    color: var(--scout-purple);
    line-height: 1;
    margin-bottom: 0;
    opacity: 0.2;
    position: absolute;
    z-index: -1;
}
.error-content {
    z-index: 1;
}
.compass-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.bg-success-subtle {
    background-color: #d1e7dd; /* Bootstrap success light */
    transition: transform 0.2s ease;
}
.bg-success-subtle:hover {
    transform: scale(1.05);
    background-color: #c1dcd0;
}
/* Subtle pulse on the icon */
.bi-patch-check-fill {
    animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.site-notif {
    /* Vital: High Z-index to beat Bootstrap modals/cards */
    z-index: 999999 !important; 
    position: fixed;
    top: 20px; /* Distance from top */
    left: 50%;
    transform: translateX(-50%); /* Only center horizontally */
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    pointer-events: none; /* Container doesn't block clicks, but children do */
}

.site-notif div {
    pointer-events: auto;
    display: flex;
    align-items: center; /* Vertically centers all children */
    justify-content: flex-start; /* Keeps content to the left */
    margin-bottom: 10px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    padding: 5px; /* Added padding to ensure the icon isn't touching the edge */
}

.site-notif .icon {
    margin-right: 12px;
    font-size: 2rem;
    line-height: 1; /* Prevents the icon's box from being taller than the icon itself */
    display: flex; 
    align-items: center; 
    justify-content: center;
}
/* Re-applying your solid branding */
.site-notif .success { background-color: rgba(0, 149, 112, 0.849) !important; }
.site-notif .warning { background-color: #f79743c2 !important; }
.site-notif .danger  { background-color: #f74343c9 !important; }
.site-notif .info    { background-color: #437ff7ce !important; }


.site-notif .close {
    margin-left: auto;
    cursor: pointer !important;
    font-size: 1.6rem;
    line-height: 1;
    opacity: 0.7;
    transition: 0.2s;
}

.site-notif .close:hover {
    opacity: 1;
}

#wrapper {
    overflow-x: hidden;
    min-height: calc(100vh - 70px);
    align-items: stretch;
    transition: all 0.3s ease;
}

#sidebar-wrapper {
    min-width: 272px;
    max-width: 272px;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    background-color: #fff;
    transition: margin .25s ease-out;
    overflow-x: hidden;
}

#sidebar-wrapper::-webkit-scrollbar,
.dash-sidebar-inner::-webkit-scrollbar { width: 5px; }
#sidebar-wrapper::-webkit-scrollbar-track,
.dash-sidebar-inner::-webkit-scrollbar-track { background: transparent; }
#sidebar-wrapper::-webkit-scrollbar-thumb,
.dash-sidebar-inner::-webkit-scrollbar-thumb { background: #e6d9f0; border-radius: 10px; }
#sidebar-wrapper::-webkit-scrollbar-thumb:hover,
.dash-sidebar-inner::-webkit-scrollbar-thumb:hover { background: var(--scout-purple); }

@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -272px;
        position: fixed;
        z-index: 1050;
        height: 100vh;
        top: 0;
        align-self: auto;
        overflow-y: auto;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -272px;
    }
}

#logout-progress {
    width: 0%; 
    background-color: #9A00D6; 
    /* Increased reliability with a direct transition property */
    transition: width 3.0s linear !important; 
}

.grayscale-icons .integration-icon {
        cursor: pointer;
        filter: grayscale(100%);
        transition: all 0.3s ease;
        padding: 5px;
    }

    .grayscale-icons .integration-icon:hover {
        filter: grayscale(0%);
        transform: translateY(-3px);
    }

    /* Customizing the Tooltip Appearance */
    .tooltip-inner {
        background-color: #590083 !important; /* Your Scout Purple */
        padding: 10px 15px;
        border-radius: 12px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .bs-tooltip-top .tooltip-arrow::before {
        border-top-color: #590083 !important;
    }

.premium-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(89, 0, 131, 0.85); /* Scout Purple with transparency */
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: inherit;
}

.content-blur {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.border-dashed {
    border: 2px dashed #dee2e6 !important;
    background: transparent;
}

/* --- Public (logged-out) chrome --- */
.public-topbar {
    background: linear-gradient(90deg, #4a006e 0%, var(--scout-purple) 50%, #6b00a0 100%);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0;
}
.public-topbar a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.public-topbar a:hover {
    color: #fff;
}
.public-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.22rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.public-status .status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
    flex-shrink: 0;
    animation: status-dot-pulse 2s ease-in-out infinite;
}
@keyframes status-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12); }
}

.public-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(89, 0, 131, 0.06);
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}
.public-navbar.nav-scrolled {
    box-shadow: 0 10px 32px rgba(89, 0, 131, 0.08) !important;
    border-bottom-color: rgba(89, 0, 131, 0.1);
}
.public-navbar .nav-link {
    color: #2d1b3d !important;
    font-weight: 600 !important;
    font-size: 0.93rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus {
    color: var(--scout-purple) !important;
    background: rgba(89, 0, 131, 0.06);
}
.public-navbar .navbar-brand img {
    transition: transform 0.2s ease;
}
.public-navbar .navbar-brand:hover img {
    transform: translateY(-1px);
}
.public-navbar .btn-scout,
.public-navbar .btn-scout-light {
    padding: 10px 22px;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .public-navbar .navbar-collapse {
        background: #fff;
        padding: 1.25rem;
        border-radius: 18px;
        margin-top: 12px;
        box-shadow: 0 18px 40px rgba(89, 0, 131, 0.12);
        border: 1px solid rgba(89, 0, 131, 0.06);
    }
    .public-navbar .navbar-nav .nav-link {
        padding: 12px 8px !important;
        border-radius: 10px;
        border-bottom: none;
    }
}

.public-footer {
    margin-top: 0;
    background: #160022;
    color: #fff;
}
.public-footer-cta {
    background: linear-gradient(135deg, var(--scout-purple) 0%, #7a00b5 55%, var(--heritage-purple) 100%);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.public-footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 20%, rgba(255,255,255,0.16), transparent 45%);
    pointer-events: none;
}
.public-footer-cta h2 {
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.public-footer-cta p {
    margin: 0;
    opacity: 0.85;
    font-weight: 300;
    max-width: 540px;
}
.public-footer-main {
    padding: 4.5rem 0 3rem;
}
.public-footer-main h6 {
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
}
.public-footer-main a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.public-footer-main a:hover {
    color: #fff;
    padding-left: 3px;
}
.public-footer-brand p {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
}
.public-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0 1.75rem;
    background: #100018;
}
.public-footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    line-height: 1.55;
}
.public-footer #randomize-msg {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}
.public-footer #randomize-msg:hover {
    color: #fff !important;
}
.public-footer-cta .btn {
    margin-bottom: 0;
}
.public-footer-cta .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .public-navbar .btn {
        width: 100%;
        margin-bottom: 0;
    }
}

/* --- Public marketing pages --- */
.public-page { color: #1a0f24; }
.public-hero-wrap { padding: 1.5rem 0 0; }
.public-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(154, 0, 214, 0.35), transparent 42%),
        linear-gradient(135deg, rgba(42, 0, 70, 0.78) 0%, rgba(89, 0, 131, 0.72) 55%, rgba(154, 0, 214, 0.55) 100%),
        url('/assets/img/bg.png') center center / cover no-repeat;
    border-radius: 2rem;
    padding: 4rem 1.75rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px -30px rgba(89, 0, 131, 0.55);
    color: #fff;
    text-align: center;
}
@media (min-width: 992px) {
    .public-hero { padding: 5rem 4rem; border-radius: 2.5rem; }
}
.public-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.35rem;
}
.public-hero h1 {
    color: #fff;
    font-weight: 900 !important;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 1.1rem;
}
.public-hero .lead {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}
.public-hero-actions { justify-content: center; }
.public-hero-actions .btn { min-width: 160px; }
.public-hero-actions .btn-outline-light:hover,
.public-hero-actions .btn-outline-light:focus,
.public-hero-actions .btn-outline-light:active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: #fff;
}
.public-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.25rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
}
.public-trust-row i { color: #d9b6ff; }

.public-section { padding: 5.5rem 0; }
.public-muted { background: #fbf7ff; }
.public-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--scout-purple);
}
.fw-black { font-weight: 900; }

.public-feature {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.4rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.public-feature:hover {
    transform: translateY(-6px);
    border-color: #d9b6ff;
    box-shadow: 0 18px 40px rgba(89, 0, 131, 0.08);
}
.public-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f6effb;
    color: var(--scout-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

.public-panel {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.75rem;
    padding: 2rem;
    height: 100%;
}
.public-panel-dark {
    background: linear-gradient(160deg, var(--scout-purple) 0%, #7a00b5 100%);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
}

.home-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f6effb;
    color: var(--scout-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card-inline {
    border: 1px solid #efe7f5;
    border-radius: 1.75rem;
    background: white;
    transition: 0.3s cubic-bezier(.25,.8,.25,1);
    padding: 2.5rem !important;
    height: 100%;
}
.pricing-card-inline:hover {
    border-color: var(--scout-purple);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(89, 0, 131, 0.08);
}
.pricing-card-inline.featured {
    border: 2px solid var(--scout-purple);
    box-shadow: 0 18px 40px rgba(89, 0, 131, 0.1);
}

.price-toggle-container {
    display: inline-flex;
    background: #efe7f5;
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 2rem;
}
.price-toggle-container .btn {
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.2s;
    width: auto;
    margin-bottom: 0;
}
.price-toggle-container .btn.active {
    background: white;
    color: var(--scout-purple);
    box-shadow: 0 2px 8px rgba(89, 0, 131, 0.1);
}

.public-domain-card {
    background: linear-gradient(135deg, var(--scout-purple) 0%, #7a00b5 100%);
    color: #fff;
    border-radius: 1.75rem;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.public-tabs .nav-link {
    color: #444;
    border: 1px solid #efe7f5;
    background: #fff;
    transition: 0.25s;
    margin-bottom: 8px;
}
.public-tabs .nav-link:hover { background: #f6effb; color: var(--scout-purple); }
.public-tabs .nav-link.active {
    background: #fff !important;
    color: var(--scout-purple) !important;
    border-color: var(--scout-purple) !important;
    box-shadow: 0 10px 20px rgba(89,0,131,0.1);
}

@media (max-width: 576px) {
    .public-hero-actions .btn { width: 100%; }
}

body.auth-no-cta .public-footer-cta {
    display: none !important;
}

.auth-page { color: #1a0f24; }
.auth-hero {
    padding: 2.75rem 1.5rem !important;
    text-align: center;
}
@media (min-width: 992px) {
    .auth-hero { padding: 3.25rem 3rem !important; }
}
.auth-shell {
    margin-top: -2.5rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}
.auth-card {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.75rem;
    box-shadow: 0 24px 60px -28px rgba(89, 0, 131, 0.28);
    padding: 2rem;
}
@media (min-width: 768px) {
    .auth-card { padding: 2.5rem; }
}
.auth-card .form-control, .auth-card .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid #efe7f5;
}
.auth-card .form-control:focus {
    border-color: var(--scout-purple);
    box-shadow: 0 0 0 4px rgba(89, 0, 131, 0.08);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8a7a96;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #efe7f5;
}
.btn-passkey {
    background: #fff;
    color: var(--scout-purple);
    border: 2px solid #efe7f5;
    border-radius: 999px;
    font-weight: 700;
    padding: 12px 18px;
}
.btn-passkey:hover {
    border-color: var(--scout-purple);
    background: #f6effb;
    color: var(--scout-purple);
}
.auth-legal {
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    border-radius: 1.1rem;
    font-size: 0.75rem;
    line-height: 1.45;
}
.strength-meter { height: 8px; border-radius: 4px; background: #efe7f5; margin-top: 10px; position: relative; }
.strength-bar { height: 100%; width: 0%; border-radius: 4px; transition: all 0.4s ease; }
@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}
.apply-shake { animation: auth-shake 0.4s ease-in-out; }

/* --- Logged-in dashboard chrome --- */
.dash-app {
    background: #f7f2fb;
    color: #1a0f24;
}
.dash-navbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(89, 0, 131, 0.08);
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    z-index: 1040;
}
.dash-navbar.nav-scrolled {
    box-shadow: 0 10px 32px rgba(89, 0, 131, 0.08) !important;
}
.dash-menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #efe7f5;
    background: #fbf7ff;
    color: var(--scout-purple);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.dash-menu-btn:hover {
    background: var(--scout-purple);
    color: #fff;
    border-color: var(--scout-purple);
}

.dash-site-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    border-radius: 999px;
    padding: 0.35rem 0.4rem 0.35rem 0.4rem;
    text-decoration: none;
    color: #2d1b3d;
    max-width: min(420px, 46vw);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dash-site-chip:hover {
    border-color: #d9b6ff;
    box-shadow: 0 10px 24px rgba(89, 0, 131, 0.08);
    color: #2d1b3d;
    transform: translateY(-1px);
}
.dash-site-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--scout-purple), var(--heritage-purple));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-site-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.dash-site-kicker {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7a96;
}
.dash-site-copy strong {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: block;
}
.dash-site-swap {
    margin-left: auto;
    margin-right: 0.35rem;
    background: #fff;
    border: 1px solid #efe7f5;
    color: var(--scout-purple);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    white-space: nowrap;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.dash-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--scout-purple), var(--heritage-purple));
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.dash-user-meta {
    flex-direction: column;
    line-height: 1.15;
}
.dash-user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #2d1b3d;
}
.dash-user-role {
    font-size: 0.7rem;
    color: #8a7a96;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dash-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b5878;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}
.dash-logout:hover {
    color: var(--scout-purple);
    background: #fbf7ff;
    border-color: #efe7f5;
}

.dash-sidebar {
    background: #fff !important;
    border-right: 1px solid #efe7f5 !important;
}
.dash-sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0.85rem 0.9rem 1.25rem;
}
.dash-sidebar-group {
    background: linear-gradient(135deg, #fbf7ff, #f3e9fb);
    border: 1px solid #efe7f5;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
}
.dash-sidebar-group-kicker {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a7a96;
    margin-bottom: 0.15rem;
}
.dash-sidebar-group strong {
    color: var(--scout-purple);
    font-size: 0.95rem;
    line-height: 1.3;
}
.dash-nav-section { margin-bottom: 1.15rem; }
.dash-nav-heading {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a7a96;
    padding: 0 0.65rem 0.45rem;
}
.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    color: #3d2a4d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    transition: background 0.18s ease, color 0.18s ease;
}
.dash-nav-link:hover {
    background: #fbf7ff;
    color: var(--scout-purple);
}
.dash-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f6effb;
    color: var(--scout-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.dash-nav-link.active-scout {
    background: linear-gradient(135deg, var(--scout-purple), #7a00b5) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(89, 0, 131, 0.18);
}
.dash-nav-link.active-scout .dash-nav-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.dash-nav-ext {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.45;
}
.dash-sidebar-note {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    color: #6b5878;
    border-radius: 14px;
    padding: 0.9rem;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: auto;
}
.dash-sidebar-note i { color: var(--scout-purple); }
.dash-sidebar-foot {
    margin-top: auto;
    padding-top: 0.5rem;
}
.dash-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    border: 1px solid #efe7f5;
    background: #fff;
    color: var(--scout-purple);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    transition: 0.2s ease;
}
.dash-swap-btn:hover {
    background: var(--scout-purple);
    color: #fff;
    border-color: var(--scout-purple);
}

.dash-sidebar-backdrop {
    display: none;
}
@media (max-width: 991.98px) {
    #wrapper.toggled .dash-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(22, 0, 34, 0.42);
        z-index: 1045;
    }
    .dash-app #sidebar-wrapper {
        box-shadow: 18px 0 40px rgba(22, 0, 34, 0.18);
    }
}

.dash-footer { margin-top: 0; }
.dash-app .dash-footer .public-footer-main { padding-top: 3.5rem; }

/* Dashboard pages — skipped on /editor routes via body.dash-editor */
.dash-app:not(.dash-editor) .dash-content {
    background:
        radial-gradient(circle at 100% 0, rgba(154, 0, 214, 0.07), transparent 28%),
        #f7f2fb;
    min-height: calc(100vh - 118px);
}
.dash-app:not(.dash-editor) .card {
    border-radius: 1.4rem !important;
    box-shadow: 0 14px 36px -24px rgba(89, 0, 131, 0.28) !important;
    background-clip: padding-box;
}
.dash-app:not(.dash-editor) .card.border-0 {
    border: 1px solid #efe7f5 !important;
}
.dash-app:not(.dash-editor) .card.border-scout {
    border-color: var(--scout-purple) !important;
}
.dash-app:not(.dash-editor) .card.bg-scout,
.dash-app:not(.dash-editor) .card.bg-dark {
    border: none !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,0.18), transparent 36%),
        linear-gradient(135deg, #4a006e 0%, var(--scout-purple) 52%, #7a00b5 100%) !important;
    box-shadow: 0 24px 50px -24px rgba(89, 0, 131, 0.55) !important;
}
.dash-app:not(.dash-editor) .card.bg-scout .badge.bg-white {
    color: var(--scout-purple) !important;
}
.dash-app:not(.dash-editor) .table {
    --bs-table-bg: transparent;
}
.dash-app:not(.dash-editor) .table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7a96;
    font-weight: 800;
    border-bottom: 1px solid #efe7f5;
    background: #fbf7ff;
}
.dash-app:not(.dash-editor) .table tbody td {
    border-color: #f3eaf8;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}
.dash-app:not(.dash-editor) .form-control,
.dash-app:not(.dash-editor) .form-select {
    border-radius: 12px;
    border: 1px solid #efe7f5;
    background: #fbf7ff;
    padding: 0.7rem 0.95rem;
}
.dash-app:not(.dash-editor) .form-control:focus,
.dash-app:not(.dash-editor) .form-select:focus {
    border-color: var(--scout-purple);
    box-shadow: 0 0 0 4px rgba(89, 0, 131, 0.08);
    background: #fff;
}
.dash-app:not(.dash-editor) .modal-content {
    border: 0;
    border-radius: 1.4rem;
}
.dash-app:not(.dash-editor) .progress {
    background: #efe7f5;
}
.dash-app:not(.dash-editor) h1.fw-bold,
.dash-app:not(.dash-editor) h1.fw-black,
.dash-app:not(.dash-editor) .text-scout {
    letter-spacing: -0.4px;
}
.dash-app:not(.dash-editor) .border-dashed {
    border-color: #d9b6ff !important;
    background: rgba(255,255,255,0.55);
}
.dash-app:not(.dash-editor) .selection-card {
    border: 1px solid #efe7f5 !important;
}
.dash-app:not(.dash-editor) .profile-sidebar .nav-pills .nav-link {
    background: #fbf7ff;
    border-color: transparent;
}
.dash-app:not(.dash-editor) .profile-sidebar .nav-pills .nav-link.active {
    border-color: var(--scout-purple) !important;
    color: var(--scout-purple) !important;
}

@media (max-width: 576px) {
    .dash-navbar .btn-scout {
        width: auto;
        margin-bottom: 0;
        padding: 8px 16px;
    }
}

.bi-spin { display: inline-block; animation: dash-spin 0.7s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }

.dash-home { padding: 0.9rem 0.9rem 1.6rem; }
.dash-home > .text-center h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
}
@media (min-width: 768px) {
    .dash-home { padding: 1.25rem 1.5rem 2.25rem; }
}

.dash-home-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(154, 0, 214, 0.38), transparent 42%),
        linear-gradient(135deg, rgba(42, 0, 70, 0.86) 0%, rgba(89, 0, 131, 0.82) 55%, rgba(154, 0, 214, 0.62) 100%),
        url('/assets/img/bg.png') center center / cover no-repeat;
    border-radius: 1.25rem;
    padding: 1.15rem 1.2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -24px rgba(89, 0, 131, 0.55);
    margin-bottom: 0.9rem;
}
@media (min-width: 768px) {
    .dash-home-hero { padding: 1.35rem 1.6rem; }
}
.dash-home-kicker {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}
.dash-home-hero h1 {
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    letter-spacing: -0.6px;
    margin-bottom: 0.25rem;
    line-height: 1.15;
}
.dash-home-hero .lead {
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    max-width: 40rem;
    margin-bottom: 0.7rem;
}
.dash-home-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.dash-home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.dash-home-pill.is-live { background: rgba(25, 135, 84, 0.85); border-color: transparent; }
.dash-home-pill.is-draft { background: rgba(255, 193, 7, 0.92); color: #3d2a00; border-color: transparent; }
.dash-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dash-home-hero-actions .btn {
    margin-bottom: 0;
    min-height: 0;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
}
.dash-home-hero-actions .btn-light {
    color: var(--scout-purple);
    font-weight: 800;
}
.dash-home-hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.dash-home-staff {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #e8f7fa;
    border: 1px solid #b6e6ee;
    color: #04515a;
    border-radius: 1.1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.9rem;
}
.dash-home-staff.is-alert {
    background: #fff4f0;
    border-color: #ffd0c2;
    color: #7a2410;
}
.dash-home-staff i { font-size: 1.25rem; flex-shrink: 0; }

.dash-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
@media (min-width: 992px) {
    .dash-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.dash-stat {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1rem;
    padding: 0.7rem 0.85rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.dash-stat:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: #d9b6ff;
    box-shadow: 0 10px 20px rgba(89, 0, 131, 0.08);
}
.dash-stat span {
    display: block;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7a96;
    margin-bottom: 0.1rem;
}
.dash-stat strong {
    display: block;
    font-size: 0.95rem;
    color: #1a0f24;
    line-height: 1.25;
}
.dash-stat small {
    color: #8a7a96;
    font-weight: 600;
    font-size: 0.75rem;
}

.dash-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.9rem;
}
.dash-next p { margin: 0; color: #6b5878; font-size: 0.9rem; }
.dash-next strong { color: #1a0f24; }
.dash-next .btn { padding: 0.45rem 1rem; font-size: 0.88rem; }

.dash-panel {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.1rem;
    padding: 0.95rem 1rem;
    box-shadow: 0 10px 24px -20px rgba(89, 0, 131, 0.3);
}
.dash-panel h2,
.dash-panel h3 {
    font-size: 0.98rem !important;
    margin-bottom: 0.15rem;
    letter-spacing: 0;
}
.dash-panel .dash-panel-sub {
    color: #8a7a96;
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
}

.dash-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
@media (min-width: 576px) {
    .dash-actions { grid-template-columns: repeat(3, 1fr); }
}
.dash-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    border-radius: 0.85rem;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    color: #1a0f24;
    min-height: 0;
    transition: 0.2s ease;
}
.dash-action:hover {
    color: var(--scout-purple);
    border-color: #d9b6ff;
    background: #fff;
}
.dash-action i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
    color: var(--scout-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #efe7f5;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.dash-action span { font-weight: 800; font-size: 0.82rem; line-height: 1.2; }

.dash-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #efe7f5;
    border-radius: 0.8rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.4rem;
    transition: 0.18s ease;
}
a.dash-check:hover {
    color: inherit;
    border-color: #d9b6ff;
    background: #fbf7ff;
}
.dash-check.is-done {
    background: #f7fbf7;
    border-color: #d7ead7;
}
.dash-check i {
    font-size: 1.05rem;
    color: #c4b3d3;
    flex-shrink: 0;
}
.dash-check.is-done i { color: #198754; }
.dash-check span {
    font-weight: 700;
    font-size: 0.86rem;
}
.dash-check.is-done span {
    color: #6b5878;
    text-decoration: line-through;
}
.dash-progress {
    height: 6px;
    background: #efe7f5;
    border-radius: 999px;
    overflow: hidden;
    margin: 0.3rem 0 0.7rem;
}
.dash-progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--scout-purple), var(--heritage-purple));
    border-radius: 999px;
}

.dash-code {
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    border-radius: 0.85rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}
.dash-code label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7a96;
    margin-bottom: 0.15rem;
}
.dash-code strong,
.dash-code code {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--scout-purple);
    font-weight: 800;
}
.dash-code code {
    font-size: 0.82rem;
    letter-spacing: 0;
    word-break: break-all;
}
.dash-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #efe7f5;
    background: #fff;
    color: var(--scout-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dash-icon-btn:hover {
    background: var(--scout-purple);
    color: #fff;
    border-color: var(--scout-purple);
}
.dash-note {
    background: #fff8e8;
    color: #6b4e00;
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

.dash-plan {
    background: linear-gradient(160deg, var(--scout-purple), #7a00b5);
    color: #fff;
    border: none;
}
.dash-plan h3, .dash-plan p, .dash-plan strong { color: #fff; }
.dash-plan .dash-panel-sub { color: rgba(255,255,255,0.72); }
.dash-plan .btn-light { font-weight: 800; color: var(--scout-purple); }
.dash-choice {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.1rem;
    padding: 0.95rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dash-choice:hover {
    border-color: #d9b6ff;
    transform: translateY(-2px);
}
.dash-choice.is-active {
    border-color: var(--scout-purple);
    background: #fbf7ff;
    box-shadow: 0 0 0 3px rgba(89, 0, 131, 0.08);
}
.dash-choice.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    transform: none;
}
.dash-choice h3 {
    font-size: 1rem !important;
    margin: 0 0 0.2rem;
}
.dash-choice p {
    color: #8a7a96;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}
.dash-choice-dot {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #dccce8;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(89, 0, 131, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.dash-choice-dot input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.dash-choice-dot::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--scout-purple);
    transform: scale(0);
    transition: transform 0.18s ease;
}
.dash-choice:hover .dash-choice-dot {
    border-color: #c4a6e0;
}
.dash-choice.is-active .dash-choice-dot {
    border-color: var(--scout-purple);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(89, 0, 131, 0.12);
}
.dash-choice.is-active .dash-choice-dot::after {
    transform: scale(1);
}
.dash-dns {
    background: #1a0f24;
    color: #fff;
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}
.dash-dns-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.dash-dns-row:first-child { border-top: 0; }
.dash-dns-row span { color: rgba(255,255,255,0.55); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.dash-dns-row strong { color: #d9b6ff; font-weight: 700; word-break: break-all; }
.dash-dns .dash-icon-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #fff; }
@media (max-width: 575.98px) {
    .dash-dns-row { grid-template-columns: 1fr auto; }
    .dash-dns-row span { grid-column: 1 / -1; }
}
.dash-panel .btn {
    margin-bottom: 0;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
}

.dash-pick-card {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.1rem;
    padding: 1.1rem 1rem 1rem;
    height: auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.dash-pick-card:hover {
    transform: translateY(-3px);
    border-color: #d9b6ff;
    box-shadow: 0 14px 28px rgba(89, 0, 131, 0.1);
}
.dash-pick-card.is-create {
    border-style: dashed;
    background: #fbf7ff;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dash-pick-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.65rem;
    font-size: 1.2rem;
    background: #f3eaff;
    color: var(--scout-purple);
}
.dash-pick-icon.is-staff { background: #e0f7fa; color: #00838f; }

.dash-page-head { margin-bottom: 1rem; }
.dash-page-head h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    margin-bottom: 0.2rem;
    letter-spacing: -0.4px;
}
.dash-page-head p { margin: 0; color: #6b5878; font-size: 0.92rem; }
.dash-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
}
.dash-switch .form-check-input {
    cursor: pointer;
    margin: 0;
}
.dash-switch .form-check-input:checked {
    background-color: var(--scout-purple);
    border-color: var(--scout-purple);
}

.dash-plan-card {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.1rem;
    padding: 1.05rem 1.1rem 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.dash-plan-card.is-featured {
    border-color: var(--scout-purple);
    box-shadow: 0 12px 28px -16px rgba(89, 0, 131, 0.35);
}
.dash-plan-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.15rem;
}
.dash-plan-price {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--scout-purple);
    letter-spacing: -0.6px;
    line-height: 1.1;
    margin: 0.35rem 0 0.65rem;
}
.dash-plan-price span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8a7a96;
}
.dash-plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.84rem;
    color: #3d2d4c;
}
.dash-plan-card li {
    margin-bottom: 0.32rem;
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}
.dash-plan-card li i { color: var(--scout-purple); margin-top: 0.12rem; flex-shrink: 0; }
.dash-plan-card .btn { margin-top: auto; }
.dash-current {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: var(--scout-purple);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
.dash-plan-card.is-featured .dash-current { top: 2.35rem; }
.dash-popular {
    background: var(--scout-purple);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    margin: -1.05rem -1.1rem 0.85rem;
    padding: 0.35rem 0.75rem;
}

.dash-locked {
    max-width: 440px;
    margin: 2rem auto;
    text-align: center;
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.15rem;
    padding: 1.5rem 1.25rem;
}
.dash-locked i { font-size: 2rem; color: var(--scout-purple); }

.dash-dns {
    background: #1a0f24;
    color: #fff;
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}
.dash-dns-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.dash-dns-row span { color: #e4b8ff; font-weight: 700; min-width: 7.5rem; }
.dash-dns p { color: #cbb6e0; margin: 0.55rem 0 0; font-size: 0.75rem; font-family: inherit; }

.dash-mailbox {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 0.95rem;
    padding: 0.8rem 0.9rem;
    height: 100%;
}
.dash-mailbox.is-empty {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    background: #fbf7ff;
}
.dash-mailbox-addr {
    font-weight: 800;
    color: var(--scout-purple);
    font-size: 0.95rem;
    word-break: break-all;
}
.dash-alias {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
}
.hover-danger:hover { color: #dc3545 !important; }
.cursor-pointer { cursor: pointer; }

.dash-invoice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3eaf8;
    font-size: 0.86rem;
}
.dash-invoice:last-child { border-bottom: 0; }
.dash-invoice a { color: var(--scout-purple); }

/* --- FAQ & knowledge base --- */
.help-section.public-section {
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .help-section.public-section {
        padding-top: 3.25rem;
        padding-bottom: 5.5rem;
    }
}
.help-shell { max-width: 920px; margin: 0 auto; }
.help-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.help-search {
    position: relative;
    width: 100%;
}
.help-search-lg {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.help-search i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a7a96;
    pointer-events: none;
    font-size: 1.05rem;
}
.help-search input {
    width: 100%;
    border: 2px solid #efe7f5;
    background: #fff;
    border-radius: 999px;
    padding: 0.9rem 1.15rem 0.9rem 2.75rem;
    font-size: 1rem;
    color: #1a0f24;
    box-shadow: 0 10px 30px -18px rgba(89, 0, 131, 0.28);
}
.help-search input:focus {
    outline: none;
    border-color: var(--scout-purple);
    box-shadow: 0 0 0 4px rgba(89, 0, 131, 0.08);
}
.help-search input::placeholder { color: #9a8aa8; }
.help-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0 0.35rem;
    margin: 0 -0.25rem;
}
.help-chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
    .help-chips {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        margin: 0;
    }
}
.help-chip {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    flex: 0 0 auto;
    border: 1px solid #efe7f5;
    background: #fff;
    color: #4a3758;
    border-radius: 999px;
    padding: 0.65rem 1.05rem;
    min-height: 44px;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.help-chip:hover,
.help-chip:focus-visible {
    border-color: #d9b6ff;
    color: var(--scout-purple);
    background: #fbf7ff;
}
.help-chip.active {
    background: var(--scout-purple);
    color: #fff;
    border-color: var(--scout-purple);
    box-shadow: 0 8px 18px -10px rgba(89, 0, 131, 0.65);
}
.help-chip.active:hover,
.help-chip.active:focus-visible {
    background: var(--scout-purple);
    color: #fff;
}
.help-meta {
    text-align: center;
    color: #8a7a96;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
    min-height: 1.25rem;
}

.faq-list {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px -28px rgba(89, 0, 131, 0.35);
}
.faq-list .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #efe7f5;
}
.faq-list .accordion-item:last-child { border-bottom: 0; }
.faq-list .accordion-button {
    background: #fff;
    color: #1a0f24;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    padding: 1.1rem 1.15rem;
    box-shadow: none;
    align-items: flex-start;
    gap: 0.75rem;
}
.faq-list .accordion-button::after {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.faq-list .accordion-button:not(.collapsed) {
    background: #fbf7ff;
    color: var(--scout-purple);
    box-shadow: none;
}
.faq-list .accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(89, 0, 131, 0.12);
}
.faq-list .accordion-body {
    padding: 0 1.15rem 1.25rem;
    color: #4a3758;
    line-height: 1.75;
    background: #fbf7ff;
}
.faq-q {
    display: block;
    padding-right: 0.25rem;
}
.faq-cat {
    display: inline-flex;
    margin-top: 0.45rem;
    background: #f3eaff;
    color: var(--scout-purple);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}
@media (min-width: 768px) {
    .faq-list .accordion-button { padding: 1.25rem 1.5rem; font-size: 1.05rem; }
    .faq-list .accordion-body { padding: 0 1.5rem 1.5rem; }
}

.kb-grid { --bs-gutter-y: 1.15rem; }
.kb-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.5rem;
    padding: 1.4rem 1.35rem 1.25rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    min-height: 100%;
}
.kb-card:hover,
.kb-card:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    border-color: #d9b6ff;
    box-shadow: 0 18px 36px rgba(89, 0, 131, 0.1);
}
.kb-card-cat {
    display: inline-flex;
    align-self: flex-start;
    background: #f3eaff;
    color: var(--scout-purple);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.85rem;
}
.kb-card h3 {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 0.85rem;
    color: #1a0f24;
}
.kb-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--scout-purple);
    font-weight: 800;
    font-size: 0.88rem;
}
.kb-card:hover .kb-card-cta { color: var(--heritage-purple); }

.help-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #d9b6ff;
    border-radius: 1.5rem;
    padding: 2.5rem 1.25rem;
}
.help-empty i { font-size: 2.4rem; color: #c4a3e6; }
.help-crosslink {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    text-align: center;
    background: #fbf7ff;
    border: 1px solid #efe7f5;
    border-radius: 1.5rem;
    padding: 1.35rem 1.25rem;
}
.help-crosslink a { font-weight: 800; }

.kb-article-hero h1 {
    font-size: clamp(1.7rem, 4.4vw, 3.1rem) !important;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}
.kb-article-card {
    background: #fff;
    border: 1px solid #efe7f5;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px -28px rgba(89, 0, 131, 0.35);
    padding: 1.25rem 1.15rem 1.75rem;
}
@media (min-width: 768px) {
    .kb-article-card { padding: 2rem 2.35rem 2.5rem; border-radius: 1.75rem; }
}
.kb-article-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #efe7f5;
}
.kb-article-bar a,
.kb-article-bar .btn {
    margin-bottom: 0;
    min-height: 44px;
}
.kb-related .kb-card { padding: 1.15rem 1.2rem; min-height: 0; }
.kb-related .kb-card h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }
.kb-callout {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    background: #fbf7ff;
    border-left: 4px solid var(--scout-purple);
    border-radius: 0.9rem;
}
@media (min-width: 768px) {
    .kb-callout { padding: 1.25rem 1.4rem; }
}

.markdown-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3d2d4c;
    overflow-wrap: break-word;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--scout-purple);
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.markdown-body h1 { font-size: 1.6rem; }
.markdown-body h2 { font-size: 1.35rem; }
.markdown-body h3 { font-size: 1.15rem; }
.markdown-body p { margin-bottom: 1.1rem; }
.markdown-body ul,
.markdown-body ol { margin-bottom: 1.25rem; padding-left: 1.2rem; }
.markdown-body li { margin-bottom: 0.4rem; }
.markdown-body a { color: var(--scout-purple); font-weight: 700; }
.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 0.75rem 0 1.25rem;
}
.markdown-body blockquote {
    border-left: 4px solid var(--scout-purple);
    padding: 0.85rem 1.1rem;
    background: #fbf7ff;
    font-style: italic;
    border-radius: 0 0.9rem 0.9rem 0;
    margin: 0 0 1.25rem;
}
.markdown-body pre,
.markdown-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.markdown-body pre {
    background: #1a0f24;
    color: #f6effb;
    border-radius: 0.9rem;
    padding: 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.markdown-body code {
    background: #f3eaff;
    color: var(--scout-purple);
    border-radius: 0.35rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.9em;
}
.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.markdown-body table {
    border-collapse: collapse;
    margin-bottom: 1.25rem;
}
.markdown-body th,
.markdown-body td {
    border: 1px solid #efe7f5;
    padding: 0.55rem 0.75rem;
    text-align: left;
}

@media print {
    .help-print-hide,
    .public-hero,
    .public-hero-wrap,
    .kb-article-bar,
    footer { display: none !important; }
    .kb-article-card { box-shadow: none !important; border: none !important; padding: 0 !important; }
}