:root {
    --ink: #07111f;
    --ink-soft: #0d1a2d;
    --panel: rgba(16, 29, 50, 0.9);
    --panel-solid: #101d32;
    --panel-raised: #142640;
    --line: rgba(158, 183, 220, 0.16);
    --text: #f5f8ff;
    --muted: #91a1b8;
    --violet: #8b7cff;
    --cyan: #55d8ff;
    --mint: #59e1b1;
    --danger: #ff7d91;
    --glow: 0 0 0 1px rgba(139, 124, 255, 0.18), 0 18px 55px rgba(2, 8, 23, 0.28);
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(85, 216, 255, 0.11), transparent 27rem),
        radial-gradient(circle at 95% 12%, rgba(139, 124, 255, 0.14), transparent 30rem),
        var(--ink) !important;
    color: var(--text) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    z-index: -1;
}

/* Authenticated shell */
.sidebar {
    width: 232px !important;
    background: linear-gradient(180deg, rgba(13, 26, 45, .98), rgba(8, 16, 30, .98)) !important;
    border-right: 1px solid var(--line) !important;
    box-shadow: 18px 0 60px rgba(2, 8, 23, .26), inset -1px 0 rgba(85, 216, 255, .04) !important;
}

.sidebar-header {
    padding: 1rem 1rem !important;
    border-bottom-color: var(--line) !important;
}

.sidebar-logo {
    font-size: 1.3rem !important;
    letter-spacing: -.03em;
}

.sidebar-logo i {
    color: var(--cyan);
    filter: drop-shadow(0 0 12px rgba(85, 216, 255, .65));
}

.sidebar-nav {
    padding: 1rem .7rem !important;
}

.nav-group {
    margin-bottom: 1.25rem !important;
}

.nav-group-title {
    padding: .55rem .85rem !important;
    color: var(--muted) !important;
    letter-spacing: .14em !important;
    font-size: .66rem !important;
}

.nav-link {
    margin: .18rem 0;
    padding: .68rem .8rem !important;
    border: 1px solid transparent !important;
    border-left-width: 3px !important;
    border-radius: 10px;
    color: #b9c7dd !important;
    opacity: 1 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(139, 124, 255, .2), rgba(85, 216, 255, .06)) !important;
    border-color: rgba(139, 124, 255, .2) !important;
    border-left-color: var(--cyan) !important;
    box-shadow: 0 0 22px rgba(85, 216, 255, .08);
}

.nav-link i {
    width: 1.15rem;
    color: #93a7c4;
}

.nav-link.active i,
.nav-link:hover i {
    color: var(--cyan);
}

.sidebar-footer {
    padding: 1rem !important;
    border-top-color: var(--line) !important;
}

.credits-link {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: var(--violet) !important;
    text-decoration: none;
    font-weight: 800;
    border-radius: 6px;
    padding: .12rem .25rem;
    margin-left: -.25rem;
}

.credits-link:hover {
    color: var(--cyan) !important;
    background: rgba(109, 92, 231, .08);
    text-decoration: underline;
}

.user-card {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid var(--line);
    padding: .8rem !important;
}

.user-avatar {
    background: linear-gradient(135deg, var(--violet), var(--cyan)) !important;
    box-shadow: 0 0 18px rgba(139, 124, 255, .3);
}

.logout-link {
    background: rgba(255, 125, 145, .1) !important;
    border: 1px solid rgba(255, 125, 145, .24);
    color: #ffb4c0 !important;
}

.logout-link:hover {
    background: rgba(255, 125, 145, .2) !important;
}

.main-content,
.page-content {
    margin-left: 232px !important;
    width: calc(100% - 232px) !important;
    padding: clamp(1.25rem, 2.2vw, 2.25rem) !important;
    max-width: none !important;
}

body.has-compact-sidebar .field-page,
body.has-compact-sidebar .segment-page {
    width: calc(100% - 232px) !important;
    max-width: none !important;
    margin-left: 232px !important;
    padding: clamp(1.25rem, 2.2vw, 2.25rem) !important;
}

body.has-standalone-sidebar .template-page,
body.has-standalone-sidebar .integration-page,
body.has-standalone-sidebar .reseller-page {
    margin-left: 232px;
    width: calc(100% - 232px);
    max-width: none;
    min-height: 100vh;
}

body.template-shell-page .template-page {
    margin-left: 232px;
    width: calc(100% - 232px);
    max-width: none;
    min-height: 100vh;
}

.page-header,
.content-header,
.header-section,
.card,
.table-card,
.settings-section,
.send-sms-container,
.quick-actions,
.stat-card,
.stat-item {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--glow) !important;
    backdrop-filter: blur(18px);
}

.page-header,
.content-header,
.header-section {
    padding: 1.45rem 1.6rem !important;
    border-radius: 16px !important;
}

.page-header h1,
.content-header h1,
.header-section h1,
.card h2,
.card h3,
.settings-section h2,
.quick-actions h2 {
    color: var(--text) !important;
    letter-spacing: -.03em;
}

.page-header p,
.content-header p,
.header-section p {
    color: var(--muted) !important;
}

body:has(.stat-card) .stat-value,
body:has(.stat-card) .stat-number {
    color: #273653 !important;
}

.card,
.settings-section,
.send-sms-container,
.quick-actions {
    border-radius: 16px !important;
}

.stat-card,
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-card::after,
.stat-item::after,
.credits-card::after {
    content: "";
    position: absolute;
    width: 11rem;
    height: 11rem;
    right: -5rem;
    top: -5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85,216,255,.24), transparent 68%);
    pointer-events: none;
}

.stat-label,
.stat-change,
.estimation-label,
.group-count {
    color: var(--muted) !important;
}

.stat-value,
.stat-number,
.estimation-value {
    color: #fff !important;
}

input,
textarea,
select,
.form-control,
.search-input,
.message-textarea,
.bulk-textarea {
    color: var(--text) !important;
    background: rgba(5, 13, 27, .58) !important;
    border-color: var(--line) !important;
}

input::placeholder,
textarea::placeholder {
    color: #70819b !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.search-input:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 3px rgba(85, 216, 255, .12), 0 0 24px rgba(85, 216, 255, .1) !important;
}

.btn-primary,
.btn-signup,
.submit-btn,
.checkout-btn,
.send-btn,
.action-btn {
    background: linear-gradient(135deg, var(--violet), #6356d9) !important;
    box-shadow: 0 8px 24px rgba(99, 86, 217, .22);
}

.btn-primary:hover,
.btn-signup:hover,
.submit-btn:hover,
.checkout-btn:hover,
.send-btn:hover:not(:disabled),
.action-btn:hover {
    box-shadow: 0 10px 32px rgba(85, 216, 255, .22), 0 0 20px rgba(139, 124, 255, .2) !important;
}

.btn-outline,
.btn-secondary,
.btn-refresh {
    color: #dbe7f7 !important;
    background: rgba(255,255,255,.045) !important;
    border-color: var(--line) !important;
}

.table-card,
.table-container {
    overflow: hidden;
}

.table-responsive,
.table-container {
    border-radius: 12px;
}

.data-table,
.table-container table,
.card table {
    color: var(--text) !important;
}

.data-table th,
.table-container th,
.card th {
    background: rgba(85, 216, 255, .06) !important;
    color: #9fb2cc !important;
    border-bottom-color: var(--line) !important;
}

.data-table td,
.table-container td,
.card td {
    color: #dbe7f7 !important;
    border-bottom-color: var(--line) !important;
}

.data-table tr:hover,
.table-container tr:hover,
.card table tr:hover {
    background: rgba(139, 124, 255, .07) !important;
}

.status-badge.sent,
.status-badge.delivered {
    background: rgba(89, 225, 177, .13) !important;
    color: var(--mint) !important;
}

.status-badge.failed {
    background: rgba(255, 125, 145, .13) !important;
    color: #ff9cab !important;
}

.status-badge.pending {
    background: rgba(255, 196, 92, .13) !important;
    color: #ffd27b !important;
}

.group-card,
.credit-package,
.payment-method,
.recipient-badge {
    background: rgba(255,255,255,.035) !important;
    border-color: var(--line) !important;
}

.group-card:hover,
.group-card.selected,
.credit-package:hover,
.credit-package.selected,
.payment-method.selected {
    border-color: var(--cyan) !important;
    background: rgba(85, 216, 255, .1) !important;
    box-shadow: 0 0 24px rgba(85, 216, 255, .1);
}

.mobile-menu-toggle {
    background: linear-gradient(135deg, var(--violet), #6356d9) !important;
    box-shadow: 0 8px 24px rgba(99, 86, 217, .32);
    border: 1px solid rgba(255,255,255,.16) !important;
    z-index: 1201 !important;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: #dbe7f7;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1199;
    background: rgba(2, 8, 23, .7);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

.mobile-quickbar {
    display: none;
}

.send-hint {
    color: var(--muted) !important;
}

/* Public landing page */
body:has(.hero) {
    background:
        radial-gradient(circle at 50% -10%, rgba(139, 124, 255, .22), transparent 34rem),
        radial-gradient(circle at 0% 45%, rgba(85, 216, 255, .1), transparent 28rem),
        var(--ink) !important;
}

body:has(.hero) nav {
    max-width: 1180px;
    margin: 1rem auto 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 21, 38, .75) !important;
    box-shadow: var(--glow) !important;
    padding: .8rem 1.1rem !important;
    backdrop-filter: blur(18px);
}

body:has(.hero) .logo {
    color: #fff !important;
    background: linear-gradient(90deg, #fff, var(--cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body:has(.hero) .nav-links a {
    color: #aec0d8 !important;
}

body:has(.hero) .nav-links a:hover {
    color: #fff !important;
}

body:has(.hero) .hero {
    max-width: 1180px;
    margin: 1rem auto 0;
    min-height: 650px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 75% 25%, rgba(85,216,255,.16), transparent 18rem),
        linear-gradient(135deg, rgba(45, 40, 115, .95), rgba(8, 24, 49, .98)) !important;
    box-shadow: 0 0 90px rgba(85,216,255,.08), 0 30px 80px rgba(0,0,0,.25) !important;
}

body:has(.hero) .hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
    line-height: 1.03;
    letter-spacing: -.07em;
}

body:has(.hero) .hero p {
    color: #c4d1e4 !important;
}

body:has(.hero) .hero-stats {
    margin-top: 3.5rem !important;
}

body:has(.hero) .stat-number {
    color: var(--cyan) !important;
    text-shadow: 0 0 18px rgba(85,216,255,.38);
}

body:has(.hero) .features,
body:has(.hero) .how-it-works,
body:has(.hero) .dashboard-section,
body:has(.hero) .pricing,
body:has(.hero) .testimonials {
    background: transparent !important;
}

body:has(.hero) .feature-card,
body:has(.hero) .step-card,
body:has(.hero) .pricing-card,
body:has(.hero) .testimonial-card {
    background: rgba(16, 29, 50, .82) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    box-shadow: var(--glow) !important;
    color: var(--text) !important;
}

body:has(.hero) .feature-card h3,
body:has(.hero) .pricing-card h3,
body:has(.hero) .testimonial-text,
body:has(.hero) .section-title {
    color: var(--text) !important;
}

body:has(.hero) .feature-card p,
body:has(.hero) .section-subtitle,
body:has(.hero) .price-period {
    color: var(--muted) !important;
}

body:has(.hero) .feature-icon,
body:has(.hero) .step-number {
    color: var(--cyan) !important;
    background: rgba(85,216,255,.1) !important;
    box-shadow: 0 0 24px rgba(85,216,255,.12);
}

body:has(.hero) footer,
body:has(.hero) .cta-section {
    background: rgba(7, 17, 31, .8) !important;
}

/* Auth pages */
body:has(.auth-container) .auth-container {
    max-width: 520px !important;
    padding: clamp(1.5rem, 4vw, 2.75rem) !important;
    background: rgba(16, 29, 50, .9) !important;
    border: 1px solid var(--line);
    border-radius: 20px !important;
    box-shadow: 0 0 60px rgba(85,216,255,.1), 0 24px 70px rgba(0,0,0,.34) !important;
}

body:has(.auth-container) .auth-header h1,
body:has(.auth-container) .auth-header p,
body:has(.auth-container) .form-group label {
    color: var(--text) !important;
}

body:has(.auth-container) .auth-header h1 a {
    background: linear-gradient(90deg, #fff, var(--cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body:has(.auth-container) .alert {
    background: rgba(255, 125, 145, .1) !important;
    color: #ffb4c0 !important;
    border-color: rgba(255, 125, 145, .3) !important;
}

body:has(.auth-container) .signup-link,
body:has(.auth-container) .forgot-password,
body:has(.auth-container) .login-link,
body:has(.auth-container) .divider {
    color: var(--muted) !important;
}

body:has(.auth-container) .signup-link a,
body:has(.auth-container) .forgot-password a,
body:has(.auth-container) .login-link a {
    color: var(--cyan) !important;
}

body:has(.verify-container) .verify-container {
    width: min(92vw, 520px) !important;
    padding: 2rem !important;
    background: rgba(16, 29, 50, .9) !important;
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 60px rgba(85,216,255,.1), 0 24px 70px rgba(0,0,0,.34) !important;
}

body:has(.verify-container) .verify-container h1,
body:has(.verify-container) .verify-container p,
body:has(.verify-container) .verify-header h2,
body:has(.verify-container) .verify-header p {
    color: var(--text) !important;
}

body:has(.verify-container) .verify-container > a {
    color: var(--cyan) !important;
}

@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-105%) !important;
        width: min(78vw, 260px) !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .sidebar-close {
        display: block;
        position: absolute;
        top: .7rem;
        right: .7rem;
        margin-left: 0 !important;
    }

    .sidebar-header {
        position: relative;
        justify-content: center;
        padding: 1.05rem .8rem !important;
        min-height: 4.35rem;
    }

    .sidebar-logo {
        justify-content: center;
        gap: .55rem;
        font-size: 1.2rem !important;
    }

    .sidebar-logo i {
        font-size: 1.45rem !important;
    }

    .sidebar-nav {
        padding: .7rem .5rem !important;
    }

    .nav-group {
        margin-bottom: .85rem !important;
    }

    .nav-group-title {
        padding: .4rem .7rem !important;
        font-size: .58rem !important;
    }

    .nav-link {
        gap: .7rem;
        margin: .1rem 0;
        padding: .62rem .7rem !important;
        font-size: .88rem;
    }

    .nav-link i {
        width: 1rem;
    }

    .sidebar-footer {
        display: block !important;
        padding: .7rem !important;
    }

    .user-card {
        gap: .65rem;
        padding: .7rem;
        margin-bottom: .7rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .logout-link {
        padding: .6rem;
        font-size: .85rem;
    }

    .main-content,
    .page-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 5rem 1.1rem 1.5rem !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        top: 1rem !important;
        left: 1rem !important;
        width: 44px !important;
        height: 44px !important;
    }

    .content-header,
    .header-section {
        align-items: flex-start !important;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .quick-actions .action-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 760px) {
    html { font-size: 14px; }

    .page-header,
    .content-header,
    .header-section,
    .card,
    .table-card,
    .settings-section,
    .send-sms-container,
    .quick-actions {
        border-radius: 14px !important;
    }

    .page-header,
    .content-header,
    .header-section {
        padding: 1.1rem !important;
    }

    .page-header h1,
    .content-header h1,
    .header-section h1 {
        font-size: 1.45rem !important;
    }

    .quick-actions {
        padding: 1rem !important;
        margin-bottom: 5.2rem !important;
    }

    .quick-actions .action-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .action-btn {
        padding: 1rem .6rem !important;
    }

    .table-responsive,
    .table-container {
        overflow: visible !important;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td,
    .table-container table,
    .table-container tbody,
    .table-container tr,
    .table-container td,
    .card table,
    .card table tbody,
    .card table tr,
    .card table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .data-table thead,
    .table-container thead,
    .card table thead {
        display: none !important;
    }

    .data-table tr,
    .table-container tr,
    .card table tr {
        margin: .65rem;
        padding: .65rem .8rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255,255,255,.025);
    }

    .data-table td,
    .table-container td,
    .card table td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: .55rem 0 !important;
        border-bottom: 1px solid rgba(158,183,220,.1) !important;
        text-align: right;
    }

    .data-table td:last-child,
    .table-container td:last-child,
    .card table td:last-child {
        border-bottom: 0 !important;
    }

    .data-table td::before,
    .table-container td::before,
    .card table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        text-align: left;
    }

    body:has(.hero) nav {
        margin: .6rem;
        padding: .7rem .8rem !important;
    }

    body:has(.hero) .nav-links {
        position: absolute;
        top: calc(100% + .65rem);
        left: 0;
        right: 0;
        padding: .65rem;
        flex-direction: column;
        gap: .2rem !important;
        background: rgba(10,21,38,.97);
        border: 1px solid var(--line);
        border-radius: 13px;
        box-shadow: var(--glow);
    }

    body:has(.hero) .nav-links li a {
        display: block;
        padding: .75rem;
    }

    body:has(.hero) .nav-buttons {
        margin-left: auto;
        margin-right: .5rem;
    }

    body:has(.hero) .nav-buttons .btn-login {
        display: none;
    }

    body:has(.hero) .menu-toggle {
        display: flex !important;
        align-items: center;
        color: var(--cyan) !important;
    }

    body:has(.hero) .hero {
        min-height: 600px;
        margin: .6rem;
        border-radius: 20px;
        padding: 5rem 1.1rem 3rem !important;
    }

    body:has(.hero) .hero h1 {
        font-size: clamp(2.35rem, 12vw, 4rem) !important;
    }

    body:has(.hero) .hero-stats {
        gap: 1rem !important;
        flex-wrap: wrap;
    }

    body:has(.hero) .stat {
        min-width: 28%;
    }

    body:has(.hero) .features,
    body:has(.hero) .how-it-works,
    body:has(.hero) .dashboard-section,
    body:has(.hero) .pricing,
    body:has(.hero) .testimonials,
    body:has(.hero) .cta-section {
        padding: 3.2rem 1rem !important;
    }

    body:has(.auth-container) {
        padding: 1rem !important;
    }

    body:has(.auth-container) .auth-container {
        width: 100% !important;
    }

    .mobile-quickbar {
        display: grid;
        position: fixed;
        left: .7rem;
        right: .7rem;
        bottom: .7rem;
        z-index: 1100;
        grid-template-columns: repeat(4, 1fr);
        padding: .45rem;
        background: rgba(9, 19, 35, .94);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 12px 35px rgba(0,0,0,.35), 0 0 25px rgba(85,216,255,.08);
        backdrop-filter: blur(18px);
    }

    .mobile-quickbar a {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: .25rem;
        padding: .5rem .2rem;
        border-radius: 11px;
        color: #9fb2cc;
        text-decoration: none;
        font-size: .68rem;
        font-weight: 700;
    }

    .mobile-quickbar a:hover,
    .mobile-quickbar a.active {
        color: #fff;
        background: rgba(139,124,255,.18);
    }

    .mobile-quickbar i {
        color: var(--cyan);
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .main-content,
    .page-content {
        padding-left: .7rem !important;
        padding-right: .7rem !important;
    }

    .form-row,
    .plan-selection,
    .quick-buy-grid,
    .payment-methods {
        grid-template-columns: 1fr !important;
    }
}

/* Light visual system: the interface stays bright while retaining the glow. */
:root {
    --ink: #f5f8fd;
    --ink-soft: #eef3fa;
    --panel: rgba(255, 255, 255, .94);
    --panel-solid: #ffffff;
    --panel-raised: #f7faff;
    --line: #dfe7f2;
    --text: #1a2740;
    --muted: #66758d;
    --violet: #6d5ce7;
    --cyan: #129dcc;
    --mint: #159d78;
    --danger: #d94f6a;
    --glow: 0 10px 30px rgba(47, 76, 121, .09), 0 0 0 1px rgba(106, 92, 231, .05);
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(85, 216, 255, .13), transparent 27rem),
        radial-gradient(circle at 95% 12%, rgba(139, 124, 255, .12), transparent 30rem),
        #f5f8fd !important;
    color: var(--text) !important;
}

body::before {
    background-image: linear-gradient(rgba(79, 108, 157, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 108, 157, .035) 1px, transparent 1px);
}

.sidebar {
    background: linear-gradient(180deg, #ffffff, #f5f8fd) !important;
    border-right-color: #dfe7f2 !important;
    box-shadow: 14px 0 42px rgba(47, 76, 121, .08), inset -1px 0 rgba(85, 216, 255, .06) !important;
    z-index: 1200 !important;
}

.sidebar-logo,
.page-header h1,
.content-header h1,
.header-section h1,
.card h2,
.card h3,
.settings-section h2,
.quick-actions h2 {
    color: var(--text) !important;
}

.sidebar-logo i {
    color: var(--violet);
    filter: drop-shadow(0 0 10px rgba(109, 92, 231, .26));
}

.nav-link {
    color: #52627b !important;
}

.nav-link:hover,
.nav-link.active {
    color: #273653 !important;
    background: linear-gradient(90deg, rgba(109, 92, 231, .11), rgba(18, 157, 204, .05)) !important;
    border-color: rgba(109, 92, 231, .16) !important;
    border-left-color: var(--violet) !important;
    box-shadow: 0 6px 18px rgba(109, 92, 231, .08);
}

.nav-link i,
.nav-link.active i,
.nav-link:hover i {
    color: var(--violet);
}

.user-card,
.group-card,
.credit-package,
.payment-method,
.recipient-badge {
    background: #f7faff !important;
    border-color: #dfe7f2 !important;
}

.user-info p,
.user-info small {
    color: var(--text) !important;
}

.user-avatar {
    background: linear-gradient(135deg, var(--violet), var(--cyan)) !important;
}

.logout-link {
    background: #fff3f5 !important;
    border-color: #ffd4dc;
    color: #b83d57 !important;
}

.page-header,
.content-header,
.header-section,
.card,
.table-card,
.settings-section,
.send-sms-container,
.quick-actions,
.stat-card,
.stat-item {
    background: rgba(255, 255, 255, .94) !important;
    border-color: #dfe7f2 !important;
    box-shadow: var(--glow) !important;
}

.page-header p,
.content-header p,
.header-section p,
.stat-label,
.stat-change,
.estimation-label,
.group-count,
.send-hint,
.billing-lead {
    color: var(--muted) !important;
}

input,
textarea,
select,
.form-control,
.search-input,
.message-textarea,
.bulk-textarea {
    color: var(--text) !important;
    background: #ffffff !important;
    border-color: #d3ddea !important;
}

input::placeholder,
textarea::placeholder {
    color: #9aa8bb !important;
}

.btn-outline,
.btn-secondary,
.btn-refresh {
    color: #44536d !important;
    background: #f7faff !important;
    border-color: #d3ddea !important;
}

.data-table th,
.table-container th,
.card th {
    background: #f2f6fb !important;
    color: #66758d !important;
    border-bottom-color: #dfe7f2 !important;
}

.data-table td,
.table-container td,
.card td {
    color: #33425c !important;
    border-bottom-color: #e8eef5 !important;
}

.data-table tr:hover,
.table-container tr:hover,
.card table tr:hover {
    background: #f7f9ff !important;
}

body:has(.hero) {
    background:
        radial-gradient(circle at 50% -10%, rgba(139, 124, 255, .18), transparent 34rem),
        radial-gradient(circle at 0% 45%, rgba(85, 216, 255, .13), transparent 28rem),
        #f5f8fd !important;
}

body:has(.hero) nav {
    background: rgba(255, 255, 255, .86) !important;
    border-color: #dfe7f2;
    box-shadow: 0 10px 32px rgba(47, 76, 121, .1) !important;
}

body:has(.hero) .logo {
    background: linear-gradient(90deg, #273653, var(--cyan)) !important;
    -webkit-background-clip: text !important;
}

body:has(.hero) .nav-links a {
    color: #52627b !important;
}

body:has(.hero) .nav-links a:hover {
    color: #273653 !important;
}

@media (max-width: 768px) {
    body:has(.hero) .nav-links {
        display: none !important;
    }
    body:has(.hero).public-menu-open .nav-links {
        display: flex !important;
    }
    body:has(.hero) .menu-toggle {
        position: relative;
        z-index: 5;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

@media (max-width: 992px) {
    body.has-compact-sidebar .field-page,
    body.has-compact-sidebar .segment-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding-top: 5.5rem !important;
    }

    body.has-standalone-sidebar .template-page,
    body.has-standalone-sidebar .integration-page,
    body.has-standalone-sidebar .reseller-page {
        width: 100%;
        margin-left: 0;
        padding-top: 5.5rem;
    }

    body.template-shell-page .template-page {
        width: 100%;
        margin-left: 0;
        padding-top: 5.5rem;
    }
}

body:has(.hero) .hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(85, 216, 255, .22), transparent 18rem),
        linear-gradient(135deg, #e9e9ff, #e8f8ff) !important;
    border-color: #d3def0;
    box-shadow: 0 0 90px rgba(85, 216, 255, .11), 0 30px 80px rgba(47, 76, 121, .12) !important;
}

body:has(.hero) .hero h1 {
    color: #17233d !important;
}

body:has(.hero) .hero p {
    color: #586b86 !important;
}

body:has(.hero) .stat-number {
    color: #138db9 !important;
}

body:has(.hero) .feature-card,
body:has(.hero) .step-card,
body:has(.hero) .pricing-card,
body:has(.hero) .testimonial-card {
    background: rgba(255, 255, 255, .94) !important;
    border-color: #dfe7f2 !important;
    color: var(--text) !important;
    box-shadow: var(--glow) !important;
}

body:has(.hero) .pricing-card.featured {
    background: linear-gradient(135deg, #5146c9, #129dcc) !important;
    color: #fff !important;
    border-color: #5146c9 !important;
}

body:has(.hero) .pricing-card.featured h3,
body:has(.hero) .pricing-card.featured .price,
body:has(.hero) .pricing-card.featured .price-period,
body:has(.hero) .pricing-card.featured .pricing-features li {
    color: #fff !important;
}

body:has(.hero) .pricing-btn,
body:has(.hero) .pricing-card.featured .pricing-btn {
    background: #5146c9 !important;
    color: #fff !important;
    border: 1px solid #5146c9 !important;
}

body:has(.hero) .pricing-card.featured .pricing-btn {
    background: rgba(255,255,255,.14) !important;
    border-color: rgba(255,255,255,.7) !important;
}

body:has(.hero) .pricing-btn:hover {
    background: #3e35a7 !important;
    color: #fff !important;
}

body:has(.hero) .btn-primary {
    background: linear-gradient(135deg, #5146c9, #129dcc) !important;
    color: #fff !important;
}

body:has(.hero) .feature-card h3,
body:has(.hero) .pricing-card h3,
body:has(.hero) .testimonial-text,
body:has(.hero) .section-title {
    color: var(--text) !important;
}

body:has(.hero) .feature-card p,
body:has(.hero) .section-subtitle,
body:has(.hero) .price-period {
    color: var(--muted) !important;
}

body:has(.hero) footer,
body:has(.hero) .cta-section {
    background: rgba(255, 255, 255, .76) !important;
    color: var(--text) !important;
}

body:has(.auth-container) .auth-container,
body:has(.verify-container) .verify-container {
    background: rgba(255, 255, 255, .96) !important;
    border-color: #dfe7f2 !important;
    box-shadow: 0 0 60px rgba(85, 216, 255, .12), 0 24px 70px rgba(47, 76, 121, .14) !important;
}

body:has(.auth-container) .auth-header h1,
body:has(.auth-container) .auth-header p,
body:has(.auth-container) .form-group label,
body:has(.verify-container) .verify-container h1,
body:has(.verify-container) .verify-container p,
body:has(.verify-container) .verify-header h2,
body:has(.verify-container) .verify-header p {
    color: var(--text) !important;
}

body:has(.auth-container) .signup-link,
body:has(.auth-container) .forgot-password,
body:has(.auth-container) .login-link,
body:has(.auth-container) .divider {
    color: var(--muted) !important;
}

body:has(.auth-container) .alert {
    background: #fff3f5 !important;
    color: #b83d57 !important;
    border-color: #ffd4dc !important;
}

/* Signup offer components */
.free-offer-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    margin: 0 0 1.25rem;
    border: 1px solid #bfeee0;
    border-radius: 13px;
    background: linear-gradient(135deg, #f0fffa, #f5fbff);
    color: #1a5d51;
}

.free-offer-card strong,
.free-offer-card span {
    display: block;
}

.free-offer-card span {
    margin-top: .2rem;
    color: #5d7b7c;
    font-size: .84rem;
}

.free-offer-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    box-shadow: 0 7px 16px rgba(21, 157, 120, .18);
}

.voucher-group label span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 400;
}

.voucher-input {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .2rem .7rem;
    border: 1px solid #bfeee0;
    border-radius: 10px;
    background: #f7fffc;
}

.voucher-input > i {
    color: var(--mint);
}

.voucher-input input {
    min-width: 0;
    padding-left: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    letter-spacing: .08em;
    font-weight: 700;
}

.voucher-valid {
    flex: 0 0 auto;
    color: var(--mint);
    font-size: .73rem;
    font-weight: 700;
    white-space: nowrap;
}

.voucher-group small {
    display: block;
    margin-top: .45rem;
    color: var(--muted);
    font-size: .76rem;
}

/* Billing-specific hierarchy */
body:has(.credits-card) .main-content > h1 {
    margin-bottom: 1.25rem !important;
    color: var(--text) !important;
    letter-spacing: -.04em;
}

body:has(.credits-card) .content-grid {
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.65fr) !important;
    gap: 1.25rem !important;
    max-width: 1180px;
}

body:has(.credits-card) .content-grid > .card:last-child {
    grid-column: 1 / -1;
}

body:has(.credits-card) .credits-card {
    min-height: 245px;
    background:
        radial-gradient(circle at 92% 8%, rgba(85, 216, 255, .22), transparent 9rem),
        linear-gradient(145deg, #eef0ff, #effbff) !important;
    border-color: #d4def2 !important;
    color: var(--text) !important;
}

body:has(.credits-card) .credits-card h2 {
    color: var(--text) !important;
    border-bottom-color: #d5e0ef !important;
}

body:has(.credits-card) .credits-display {
    color: #273653 !important;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    letter-spacing: -.07em;
}

body:has(.credits-card) .credit-package {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .7rem;
    background: #fbfdff !important;
}

body:has(.credits-card) .credit-package.selected,
body:has(.credits-card) .credit-package:hover {
    background: #f0f4ff !important;
    border-color: var(--violet) !important;
}

body:has(.credits-card) .package-credits {
    color: var(--violet) !important;
}

body:has(.credits-card) .package-price {
    color: var(--muted) !important;
}

body:has(.credits-card) .custom-amount-section,
body:has(.credits-card) .checkout-section {
    background: #f7faff !important;
    border-color: #dfe7f2 !important;
}

body:has(.credits-card) .custom-amount-section h3,
body:has(.credits-card) .checkout-label,
body:has(.credits-card) .checkout-total-label {
    color: var(--text) !important;
}

body:has(.credits-card) .payment-method {
    min-height: 106px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .3rem;
    background: #fff !important;
}

body:has(.credits-card) .payment-method i {
    color: var(--violet) !important;
}

body:has(.credits-card) .payment-method-name {
    color: var(--text) !important;
}

body:has(.credits-card) .payment-method small {
    color: var(--muted);
    font-size: .72rem;
}

body:has(.credits-card) .checkout-total-amount {
    color: var(--violet) !important;
}

@media (max-width: 760px) {
    body:has(.credits-card) .content-grid {
        grid-template-columns: 1fr !important;
    }

    body:has(.credits-card) .content-grid > .card:last-child {
        grid-column: auto;
    }

    .free-offer-card {
        align-items: flex-start;
    }

    .voucher-input {
        padding-right: .55rem;
    }

    .voucher-valid {
        font-size: .66rem;
    }
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: rgba(245, 248, 253, .78);
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity .32s ease, visibility .32s ease;
}

.page-loader.is-leaving,
.page-loader.is-gone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .95rem .7rem .7rem;
    border: 1px solid #dfe7f2;
    border-radius: 13px;
    background: rgba(255,255,255,.92);
    color: var(--text);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 14px 36px rgba(47, 76, 121, .13);
}

.page-loader-mark {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    box-shadow: 0 0 0 5px rgba(109,92,231,.08), 0 0 22px rgba(18,157,204,.2);
    animation: loader-breathe 1.1s ease-in-out infinite;
}

@keyframes loader-breathe {
    0%, 100% { transform: scale(.96); opacity: .85; }
    50% { transform: scale(1); opacity: 1; }
}

body:has(.checkout-container) .checkout-container {
    border: 1px solid #dfe7f2;
    box-shadow: 0 18px 55px rgba(47, 76, 121, .12) !important;
}

body:has(.checkout-container) .checkout-header h1,
body:has(.checkout-container) .payment-selection h3,
body:has(.checkout-container) .payment-option-name,
body:has(.checkout-container) .summary-row:last-child {
    color: var(--text) !important;
}

body:has(.checkout-container) .order-summary,
body:has(.checkout-container) .redirect-notice {
    background: #f7faff !important;
    border-color: #dfe7f2 !important;
}

body:has(.checkout-container) .payment-option {
    background: #fff !important;
    border-color: #dfe7f2 !important;
}

body:has(.checkout-container) .payment-option:hover,
body:has(.checkout-container) .payment-option.selected {
    background: #f0f4ff !important;
    border-color: var(--violet) !important;
}

.template-picker {
    margin: 0 0 1rem;
    padding: .85rem;
    border: 1px solid #dfe7f2;
    border-radius: 11px;
    background: #f7faff;
}

.template-picker label {
    display: block;
    margin-bottom: .4rem;
    color: var(--text);
    font-size: .78rem;
    font-weight: 800;
}

.template-picker small,
.form-hint,
.form-hint-inline {
    color: var(--muted);
    font-size: .75rem;
}

.template-picker small {
    display: block;
    margin-top: .4rem;
}

/* Contact editing and group management use the same accessible surface on
   desktop and mobile instead of small nested popovers. */
.contact-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 31, 51, .46);
    backdrop-filter: blur(3px);
}
.contact-modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, 92vh);
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(20, 31, 51, .22);
}
.contact-modal-card h2 { color: var(--text); margin-bottom: .25rem; }
.contact-modal-card > p { color: var(--muted); margin-bottom: 1rem; }
.contact-modal-close {
    position: absolute;
    top: .6rem;
    right: .75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 9px;
    background: #f1f4f8;
    color: #52627b;
    cursor: pointer;
    font-size: 1.25rem;
}
.contact-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}
.contact-modal-grid .form-group { margin-bottom: 0; }
.contact-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e7edf4;
}
.group-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: -.4rem 0 1rem;
    padding: .65rem .8rem;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    color: var(--muted);
    background: #fbfdff;
}
.group-search input {
    width: 100%;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.group-item.is-deleting { opacity: .5; pointer-events: none; }
.group-create-feedback { min-height: 1.25rem; margin-top: .55rem; color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
    .contact-modal { align-items: end; padding: 0; }
    .contact-modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        padding: 1.15rem;
    }
    .contact-modal-grid { grid-template-columns: 1fr; }
    .contact-modal-actions { position: sticky; bottom: 0; background: #fff; }
}

.nav-dropdown { list-style: none; }
.nav-dropdown summary { list-style: none; cursor: pointer; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown-chevron { margin-left: auto; font-size: .7rem; transition: transform .2s ease; }
.nav-dropdown:not([open]) .nav-dropdown-chevron { transform: rotate(-90deg); }
.nav-subnav { margin: .15rem .7rem .4rem 2.2rem; border-left: 1px solid rgba(102, 117, 141, .25); }
.nav-subnav a { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; color: #9aabc2; text-decoration: none; font-size: .82rem; border-radius: 7px; }
.nav-subnav a:hover, .nav-subnav a.active { color: #fff; background: rgba(139, 124, 255, .16); }
.nav-dropdown > summary.active { color: #fff !important; background: linear-gradient(90deg, rgba(139, 124, 255, .2), rgba(85, 216, 255, .06)) !important; border-color: rgba(139, 124, 255, .2) !important; border-left-color: var(--cyan) !important; box-shadow: 0 0 22px rgba(85, 216, 255, .08); }
.nav-subnav i { width: 1rem; text-align: center; }

.inline-action {
    display: inline-flex;
    gap: .3rem;
}

.action-btn.danger {
    color: #c94d68 !important;
}

.consent-pill {
    display: inline-flex;
    align-items: center;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #fff7e7;
    color: #9a6b18;
    font-size: .7rem;
    font-weight: 800;
}

.consent-pill.granted {
    background: #eafaf4;
    color: #168060;
}

.consent-pill.blocked {
    background: #fff0f3;
    color: #b83d57;
}

.campaign-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    margin-top: .85rem;
    color: var(--muted);
    font-size: .76rem;
}

.campaign-stats i {
    margin-right: .25rem;
    color: var(--cyan);
}

/* Accessible polish, loading states, and lightweight feedback. */
:focus-visible {
    outline: 3px solid rgba(18, 157, 204, .42);
    outline-offset: 2px;
}

label,
.form-group label {
    color: #33425c !important;
    font-weight: 700;
}

.form-hint,
.field-error {
    color: #66758d !important;
    line-height: 1.45;
}

.field-error {
    display: block;
    min-height: 1.1em;
    margin-top: .3rem;
    color: #b53f58 !important;
    font-size: .78rem;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #c94761 !important;
    box-shadow: 0 0 0 3px rgba(201, 71, 97, .12) !important;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 3rem !important; }
.password-toggle {
    position: absolute; top: 50%; right: .55rem; transform: translateY(-50%);
    border: 0; background: transparent; color: #66758d; cursor: pointer; padding: .45rem;
}
.password-toggle:hover { color: #5146c9; }

.empty-state,
.empty-doc {
    color: #52627b !important;
}

.empty-state {
    padding: 2.5rem 1.25rem !important;
    text-align: center;
    border: 1px dashed #b8c6d8;
    border-radius: 14px;
    background: #f8fbff !important;
}

.empty-state-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto .9rem;
    border-radius: 50%;
    color: #6d5ce7;
    background: #eeeaff;
    font-size: 1.3rem;
}

.empty-state h3,
.empty-state p {
    color: #33425c !important;
}

.empty-state p {
    margin: .45rem auto;
    max-width: 34rem;
}

.skeleton-row td {
    padding: .9rem 1rem !important;
}

.is-loading tbody tr:not(.skeleton-row) {
    visibility: hidden;
}

.skeleton-line {
    display: block;
    width: 70%;
    height: .8rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #edf2f8 25%, #dfe8f3 50%, #edf2f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.05s linear infinite;
}

.skeleton-row td:nth-child(2n) .skeleton-line { width: 48%; }
.skeleton-row td:nth-child(3n) .skeleton-line { width: 84%; }

@keyframes skeleton-shimmer {
    to { background-position: -200% 0; }
}

.alert-success {
    animation: success-pop .34s ease both;
}

.alert-success i {
    animation: success-check .52s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes success-pop {
    from { opacity: 0; transform: translateY(5px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes success-check {
    from { transform: scale(.55) rotate(-12deg); }
    70% { transform: scale(1.15) rotate(4deg); }
    to { transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Dashboard spotlight: a clear first action without adding another workflow. */
body:has(.dashboard-spotlight) .page-content {
    max-width: 1380px !important;
}

.dashboard-spotlight {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 230px;
    margin: 0 0 1.5rem;
    padding: clamp(1.35rem, 3vw, 2.35rem);
    overflow: hidden;
    border: 1px solid #d3def0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 82% 48%, rgba(85, 216, 255, .23), transparent 13rem),
        linear-gradient(110deg, #f0efff 0%, #eefaff 100%);
    box-shadow: 0 16px 42px rgba(47, 76, 121, .11);
}

.dashboard-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5), transparent 68%);
    transform: translateX(-100%);
    animation: spotlight-sheen 7s ease-in-out infinite;
}

.spotlight-copy { position: relative; z-index: 1; max-width: 37rem; }
.spotlight-eyebrow,
.section-kicker {
    color: #5146c9;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.spotlight-eyebrow {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .7rem;
}

.live-dot {
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: #159d78;
    box-shadow: 0 0 0 4px rgba(21,157,120,.12), 0 0 14px rgba(21,157,120,.5);
}

.spotlight-copy h2 {
    margin: 0;
    color: #1a2740;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.spotlight-copy p {
    max-width: 34rem;
    margin: .75rem 0 1.15rem;
    color: #5c6d87;
    line-height: 1.55;
}

.spotlight-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.spotlight-primary,
.spotlight-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.65rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.spotlight-primary {
    color: #fff;
    background: linear-gradient(135deg, #5146c9, #129dcc);
    box-shadow: 0 9px 20px rgba(81,70,201,.2);
}

.spotlight-secondary {
    color: #44536d;
    background: rgba(255,255,255,.72);
    border: 1px solid #d2dced;
}

.spotlight-primary:hover,
.spotlight-secondary:hover {
    transform: translateY(-2px);
}

.spotlight-primary:hover { box-shadow: 0 12px 26px rgba(81,70,201,.27); }
.spotlight-secondary:hover { background: #fff; }

.spotlight-orbit {
    position: relative;
    flex: 0 0 210px;
    width: 210px;
    height: 180px;
    margin-right: clamp(.25rem, 3vw, 2rem);
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(81,70,201,.18);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-ring-one { inset: 18px -4px; }
.orbit-ring-two { inset: 0 23px; transform: rotate(42deg); border-color: rgba(18,157,204,.2); }

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    color: #fff;
    background: linear-gradient(135deg, #5146c9, #129dcc);
    border: 6px solid rgba(255,255,255,.72);
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(81,70,201,.08), 0 12px 26px rgba(81,70,201,.25);
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
}

.orbit-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .6rem;
    color: #44536d;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(211,222,240,.95);
    border-radius: 9px;
    box-shadow: 0 7px 18px rgba(47,76,121,.1);
    font-size: .68rem;
    font-weight: 800;
}

.orbit-chip i { color: #159d78; }
.orbit-chip-top { top: 4px; right: -3px; }
.orbit-chip-bottom { bottom: 5px; left: -3px; }
.orbit-chip-bottom i { color: #129dcc; }

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading-row h2 { margin: .28rem 0 0 !important; }
.section-heading-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #5146c9;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}
.section-heading-link:hover { color: #129dcc; }

@keyframes spotlight-sheen {
    0%, 65%, 100% { transform: translateX(-100%); }
    80% { transform: translateX(100%); }
}

@media (max-width: 700px) {
    .dashboard-spotlight { min-height: 0; padding: 1.35rem; }
    .spotlight-orbit { display: none; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-spotlight::after { animation: none; }
}

/* One brand mark everywhere: this is the same SVG used by the favicon. */
.sidebar-header {
    min-height: 78px;
    padding: .95rem 1rem !important;
    justify-content: flex-start;
}

.sidebar-logo,
body:has(.hero) .logo,
body:has(.menu-toggle) .logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.sidebar-logo::before,
body:has(.hero) .logo::before,
body:has(.menu-toggle) .logo::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    background: url("favicon.svg") center / contain no-repeat;
}

.sidebar-logo i,
body:has(.hero) .logo i,
body:has(.menu-toggle) .logo i {
    display: none !important;
}

.sidebar-logo span {
    line-height: 1;
}

body:has(.hero) .logo::before,
body:has(.menu-toggle) .logo::before {
    width: 2.1rem;
    height: 2.1rem;
}

@media (max-width: 760px) {
    body.has-mobile-quickbar .main-content,
    body.has-mobile-quickbar .page-content,
    body.has-mobile-quickbar .template-page,
        body.has-mobile-quickbar .integration-page,
        body.has-mobile-quickbar .reseller-page {
        padding-bottom: 6.7rem !important;
    }

    body.has-mobile-quickbar .mobile-quickbar {
        padding-bottom: max(.45rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 980px) {
    .sidebar-header {
        min-height: 4.25rem;
        padding: .85rem .7rem !important;
        justify-content: center !important;
    }

    .sidebar-logo {
        gap: .5rem;
        font-size: 1.12rem !important;
    }

    .sidebar-logo::before {
        width: 1.7rem;
        height: 1.7rem;
    }
}