/* =====================================================================
   Diana — WHMCS client area theme (child of Twenty-One / Bootstrap 4.5)
   Layout: fixed left sidebar + top bar + content. Design tokens below.
   ===================================================================== */

:root {
    --diana-font: "Inter", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --diana-bg: #f4f6fb;
    --diana-surface: #ffffff;
    --diana-border: #e6eaf2;
    --diana-text: #0c2a37;
    --diana-muted: #64748b;
    --diana-faint: #94a3b8;
    --diana-primary: #0a7ab0;
    --diana-primary-soft: #e6f5fc;
    --diana-dark: #00374c;
    --diana-green: #16a34a;
    --diana-green-soft: #e7f8ee;
    --diana-orange: #f59e0b;
    --diana-orange-soft: #fff4e5;
    --diana-purple: #7c3aed;
    --diana-purple-soft: #f1ebfe;
    --diana-red: #dc2626;
    --diana-red-soft: #fdecec;
    --diana-navy: #00374c;
    --diana-sky: #28aae1;
    --diana-sky-soft: #e6f5fc;
    --diana-brand-mid: #006293;
    --diana-radius: 16px;
    --diana-radius-sm: 10px;
    --diana-shadow: 0 1px 2px rgba(0, 38, 54, .04), 0 8px 24px -12px rgba(0, 38, 54, .12);
    --diana-sidebar-w: 288px;
    --diana-topbar-h: 76px;
    --diana-content-top: 24px;
    --diana-surface-2: #f8fafc;
    --diana-surface-3: #f1f5f9;
    --diana-tint: #f5fbfe;
    --diana-border-strong: #d6dfeb;
    --diana-border-accent: #b5e0f3;
    --diana-heading: #00374c;
    --diana-text-2: #475569;
    --diana-text-3: #334155;
    --diana-orange-text: #b45309;
    --diana-green-text: #15803d;
    --diana-primary-hover: #08679a;
    --diana-glass: rgba(255, 255, 255, .85);
    --diana-hero-bg: linear-gradient(100deg, #ffffff 0%, #f1f8fc 50%, #e0f0f8 100%);
    --diana-art-bg: linear-gradient(155deg, #eaf6fc 0%, #d9eff9 50%, #c8e7f5 100%);
    color-scheme: light;
}

/* Dark mode: set on <html> by the inline script in includes/head.tpl (saved choice, else the OS setting). */
html[data-theme="dark"] {
    --diana-bg: #0a141c;
    --diana-surface: #101d27;
    --diana-surface-2: #142431;
    --diana-surface-3: #1a2c3a;
    --diana-tint: #10283a;
    --diana-border: #22333f;
    --diana-border-strong: #2d4150;
    --diana-border-accent: #1f5f80;
    --diana-heading: #eef5f9;
    --diana-text: #dbe6ee;
    --diana-text-2: #a9b8c4;
    --diana-text-3: #c3cfd8;
    --diana-muted: #8a9bab;
    --diana-faint: #5f7283;
    --diana-primary: #4cc0ef;
    --diana-primary-hover: #7dd3f5;
    --diana-primary-soft: rgba(40, 170, 225, .16);
    --diana-sky-soft: rgba(40, 170, 225, .16);
    --diana-dark: #0f86c0;
    --diana-navy: #0f86c0;
    --diana-green-soft: rgba(34, 197, 94, .15);
    --diana-orange-soft: rgba(245, 158, 11, .15);
    --diana-purple-soft: rgba(139, 92, 246, .18);
    --diana-red-soft: rgba(239, 68, 68, .15);
    --diana-orange-text: #fbbf24;
    --diana-green-text: #4ade80;
    --diana-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
    --diana-glass: rgba(16, 29, 39, .85);
    --diana-hero-bg: radial-gradient(90% 140% at 100% 0%, rgba(40, 170, 225, .16) 0%, rgba(40, 170, 225, 0) 60%), linear-gradient(100deg, #101d27 0%, #0f2230 100%);
    --diana-art-bg: radial-gradient(120% 90% at 20% 0%, rgba(40, 170, 225, .22) 0%, rgba(40, 170, 225, 0) 65%), linear-gradient(155deg, #0f2635 0%, #0c1f2c 100%);
    --primary: #4cc0ef;
    color-scheme: dark;
}

html { font-size: 15px; }

body.diana-body {
    font-family: var(--diana-font);
    background: var(--diana-bg);
    color: var(--diana-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Brand defaults for stock Bootstrap/Twenty-One markup (parent primary is #336699).
   :where() keeps these at element specificity so any component rule still wins. */
:root { --primary: #0a7ab0; --info: #28aae1; }
:where(.diana-body) a { color: var(--diana-primary); }
:where(.diana-body) a:hover { color: var(--diana-primary-hover); }
.diana-body .text-primary { color: var(--diana-primary) !important; }
.diana-body .text-info { color: var(--diana-primary) !important; }
.diana-body .bg-primary { background-color: var(--diana-navy) !important; }
.diana-body .border-primary { border-color: var(--diana-primary) !important; }
.diana-body .badge-primary { background-color: var(--diana-primary); }
.diana-body .badge-info { background-color: var(--diana-sky); }
.diana-body .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--diana-navy); border-color: var(--diana-navy); }
.diana-body ::selection { background: rgba(40, 170, 225, .25); }
.diana-body h1, .diana-body h2, .diana-body h3, .diana-body h4, .diana-body h5 { font-family: var(--diana-font); color: var(--diana-text); }
/* Plain text links inside content only; never buttons or theme components */
.diana-content p a:not(.btn):not(.diana-btn), .diana-content td a:not(.btn):not(.diana-btn), .diana-card-body a:not(.btn):not(.diana-btn) { color: var(--diana-primary); }

/* ---------- Shell ---------- */
.diana-shell { display: flex; min-height: 100vh; }

.diana-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: var(--diana-sidebar-w);
    overflow-x: clip;
}

/* ---------- Sidebar ---------- */
.diana-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--diana-sidebar-w);
    background: var(--diana-surface);
    border-right: 1px solid var(--diana-border);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    z-index: 1030;
    overflow-y: auto;
    transition: transform .25s ease;
}
.diana-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 8px 20px;
    color: var(--diana-text);
}
.diana-brand:hover { color: var(--diana-text); text-decoration: none; }
.diana-brand-mark { width: 40px; height: 40px; }
.diana-brand-logo { display: block; width: 100%; max-width: 180px; height: auto; }
.diana-brand-has-logo { padding: 0 8px 18px; }
.diana-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.diana-brand-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.diana-brand-text small { font-size: .72rem; color: var(--diana-muted); font-weight: 500; }

/* The nav scrolls on its own so the AI card stays pinned at the bottom; under 160px the whole sidebar scrolls instead */
.diana-nav-wrap {
    flex: 1 1 auto; min-height: 160px;
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--diana-border-strong) transparent;
    margin: 0 -6px; padding: 0 6px;
}
.diana-nav, .diana-subnav { list-style: none; margin: 0; padding: 0; }
.diana-nav-item { margin-bottom: 4px; }
.diana-nav-link {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 0; background: transparent;
    border-radius: 12px;
    color: var(--diana-text-3);
    font-weight: 500; font-size: .98rem;
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.diana-nav-link:hover { background: var(--diana-surface-3); color: var(--diana-text); text-decoration: none; }
.diana-nav-item.active > .diana-nav-link { background: var(--diana-surface-3); color: var(--diana-text); font-weight: 600; }
.diana-nav-icon { width: 22px; display: inline-flex; justify-content: center; font-size: 1.05rem; color: var(--diana-text-2); }
.diana-nav-item.active > .diana-nav-link .diana-nav-icon { color: var(--diana-primary); }
.diana-nav-label { flex: 1 1 auto; }
/* Status icon instead of a text badge (eKYC), see $dianaStatusBadges in sidebar-nav.tpl */
.diana-nav-status {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: .7rem;
}
.diana-nav-status.is-wait { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-nav-status.is-alert { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-nav-status.is-ok { background: var(--diana-green-soft); color: var(--diana-green-text); }
.diana-nav-caret {
    flex: 0 0 auto; width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    font-size: .78rem; color: var(--diana-faint);
    transition: transform .2s ease, color .15s, background .15s;
}
.diana-nav-link:hover .diana-nav-caret { color: var(--diana-text-3); }
.diana-nav-item.open > .diana-nav-link .diana-nav-caret { transform: rotate(90deg); color: var(--diana-text-3); }
.diana-nav-item.active > .diana-nav-link .diana-nav-caret { color: var(--diana-primary); }
.diana-subnav {
    display: none;
    position: relative;
    margin: 4px 0 8px 25px; padding-left: 13px;
    border-left: 1.5px solid var(--diana-border);
}
.diana-nav-item.open > .diana-subnav { display: block; animation: diana-subnav-in .18s ease; }
@keyframes diana-subnav-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.diana-subnav-item { position: relative; margin: 2px 0; }
.diana-subnav-item a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--diana-muted); font-size: .9rem; font-weight: 500; line-height: 1.3;
    transition: background .15s, color .15s;
}
.diana-subnav-item a:hover { color: var(--diana-text); background: var(--diana-bg); text-decoration: none; }
.diana-subnav-item.active a { color: var(--diana-primary); background: var(--diana-primary-soft); font-weight: 600; }
.diana-subnav-item.active::before {
    content: ""; position: absolute; left: -14.5px; top: 50%;
    width: 2px; height: 20px; margin-top: -10px;
    border-radius: 2px; background: var(--diana-primary);
}
.diana-subnav-item a .badge { margin-left: auto; }
.diana-subnav-divider { height: 0; margin: 6px 0; }

.diana-help-card {
    margin-top: 16px;
    background: var(--diana-bg);
    border-radius: var(--diana-radius);
    padding: 20px;
}
.diana-help-card i { font-size: 1.6rem; color: var(--diana-text); display: block; margin-bottom: 10px; }
.diana-help-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.diana-help-card p { color: var(--diana-muted); font-size: .85rem; margin-bottom: 14px; }

/* Sidebar promo for the AI helpdesk (helpdesk.diana.bd) */
.diana-help-card.diana-ai-card {
    position: relative; overflow: hidden; flex: 0 0 auto;
    padding: 18px;
    background:
        radial-gradient(160px 120px at 100% 0%, rgba(40, 170, 225, .45) 0%, rgba(40, 170, 225, 0) 70%),
        linear-gradient(150deg, #00374c 0%, #004a66 60%, #006293 100%);
    color: #fff;
    box-shadow: 0 14px 30px -18px rgba(0, 38, 54, .7);
}
.diana-ai-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.3px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
    mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.diana-ai-card > * { position: relative; z-index: 1; }
.diana-ai-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.diana-help-card .diana-ai-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: rgba(40, 170, 225, .25); border: 1px solid rgba(255, 255, 255, .18);
}
.diana-help-card .diana-ai-card-icon i { margin: 0; font-size: 1.05rem; color: #7dd3f5; }
.diana-ai-card-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.diana-ai-card-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.diana-help-card.diana-ai-card strong { color: #fff; font-size: 1rem; }
.diana-help-card.diana-ai-card p { color: rgba(255, 255, 255, .78); font-size: .82rem; line-height: 1.45; margin-bottom: 14px; }
.diana-ai-card-btn {
    justify-content: center; height: 40px;
    background: #28aae1; border-color: #28aae1; color: #002a3a; font-weight: 700;
}
.diana-ai-card-btn:hover { background: #4dbbe8; border-color: #4dbbe8; color: #002a3a; text-decoration: none; }
.diana-help-card .diana-ai-card-btn i { display: inline-block; margin: 0; font-size: .85rem; color: inherit; }
.diana-ai-card-alt { display: block; margin-top: 10px; text-align: center; color: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 500; }
.diana-ai-card-alt:hover { color: #fff; text-decoration: underline; }
/* Minimise button: html.diana-ai-min swaps the card for the slim .diana-ai-mini row */
.diana-ai-card-actions { display: inline-flex; align-items: center; gap: 6px; }
.diana-ai-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; padding: 0;
    border: 0; border-radius: 8px;
    background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85);
    cursor: pointer; transition: background .15s, color .15s;
}
.diana-ai-toggle:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.diana-ai-toggle:focus-visible { outline: 2px solid #7dd3f5; outline-offset: 2px; }
.diana-ai-toggle i, .diana-help-card .diana-ai-toggle i { display: inline; margin: 0; font-size: .7rem; color: inherit; }
html.diana-ai-min .diana-ai-card { display: none; }
html.diana-ai-min .diana-ai-mini { display: flex; align-items: center; position: relative; flex: 0 0 auto; margin: 12px 0 0; }
.diana-ai-mini .diana-nav-link, .diana-ai-mini .diana-nav-link:hover {
    padding-right: 44px; color: #fff; font-weight: 600;
    background: linear-gradient(150deg, #00374c 0%, #006293 100%);
}
.diana-ai-mini .diana-nav-icon { color: #7dd3f5; }
.diana-ai-expand { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }

.diana-sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 38, 54, .45);
    z-index: 1029;
}

/* ---------- Collapsible sidebar (desktop): edge button + icon rail ---------- */
.diana-brand-rail, .diana-subnav-title, .diana-ai-mini, .diana-collapse-btn { display: none; }
@media (min-width: 992px) {
    .diana-sidebar { transition: transform .25s ease, width .22s ease, padding .22s ease; }
    .diana-main { transition: margin-left .22s ease; }
    .diana-collapse-btn {
        position: fixed; z-index: 1031;
        top: calc(var(--diana-topbar-h) / 2 - 13px); left: calc(var(--diana-sidebar-w) - 13px);
        display: inline-flex; align-items: center; justify-content: center;
        width: 26px; height: 26px; padding: 0;
        border: 1px solid var(--diana-border); border-radius: 50%;
        background: var(--diana-surface); color: var(--diana-text-3);
        font-size: .62rem; cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 38, 54, .1);
        transition: left .22s ease, color .15s, border-color .15s, background .15s;
    }
    .diana-collapse-btn:hover { color: var(--diana-primary); border-color: var(--diana-border-accent); background: var(--diana-primary-soft); }
    .diana-collapse-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--diana-primary-soft); border-color: var(--diana-primary); }
    .diana-collapse-btn i { transition: transform .22s ease; }

    html.diana-nav-collapsed { --diana-sidebar-w: 76px; }
    .diana-nav-collapsed .diana-collapse-btn i { transform: rotate(180deg); }
    .diana-nav-collapsed .diana-sidebar { padding-left: 12px; padding-right: 12px; overflow: visible; }
    .diana-nav-collapsed .diana-nav-wrap { overflow: visible; min-height: 0; }
    .diana-nav-collapsed .diana-brand { justify-content: center; padding: 0 0 18px; }
    .diana-nav-collapsed .diana-brand-text { display: none; }
    html.diana-nav-collapsed .diana-brand .diana-brand-logo { display: none !important; }
    .diana-nav-collapsed .diana-brand-rail { display: block; width: 38px; height: 38px; }
    .diana-nav-collapsed .diana-brand-mark { width: 38px; height: 38px; }
    .diana-nav-collapsed .diana-nav-item { position: relative; }
    .diana-nav-collapsed .diana-nav-link { justify-content: center; gap: 0; padding: 11px 0; }
    .diana-nav-collapsed .diana-nav-caret { display: none; }
    .diana-nav-collapsed .diana-nav-link > .badge {
        position: absolute; top: 7px; right: 11px;
        width: 9px; height: 9px; min-width: 0; padding: 0;
        border: 2px solid var(--diana-surface); border-radius: 50%;
        font-size: 0; line-height: 0;
    }
    .diana-nav-collapsed .diana-nav-link > .diana-nav-status {
        position: absolute; top: 6px; right: 10px;
        width: 11px; height: 11px;
        border: 2px solid var(--diana-surface);
        font-size: 0;
    }
    .diana-nav-collapsed .diana-nav-status.is-wait { background: var(--diana-orange); }
    .diana-nav-collapsed .diana-nav-status.is-alert { background: var(--diana-red); }
    .diana-nav-collapsed .diana-nav-status.is-ok { background: var(--diana-green); }

    /* Labels become tooltips */
    .diana-nav-collapsed .diana-nav-label {
        position: absolute; left: calc(100% + 18px); top: 50%; z-index: 5;
        padding: 6px 10px; border-radius: 8px;
        background: #0c2a37; color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
        box-shadow: 0 8px 22px rgba(0, 26, 38, .25);
        pointer-events: none; opacity: 0;
        transform: translate(-4px, -50%); transition: opacity .12s ease, transform .12s ease;
    }
    .diana-nav-collapsed .diana-nav-label::before {
        content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
        background: inherit; border-radius: 1px; transform: rotate(45deg);
    }
    .diana-nav-collapsed .diana-nav-item:not(.has-children) > .diana-nav-link:hover .diana-nav-label,
    .diana-nav-collapsed .diana-nav-item:not(.has-children) > .diana-nav-link:focus-visible .diana-nav-label {
        opacity: 1; transform: translate(0, -50%);
    }
    html.diana-nav-collapsed[data-theme="dark"] .diana-nav-label { background: #22394a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .45); }

    /* Sub menus become fly-outs */
    .diana-nav-collapsed .diana-nav-item > .diana-subnav,
    .diana-nav-collapsed .diana-nav-item.open > .diana-subnav { display: none; }
    .diana-nav-collapsed .diana-nav-item.has-children:hover > .diana-subnav,
    .diana-nav-collapsed .diana-nav-item.has-children:focus-within > .diana-subnav {
        display: block; position: absolute; left: calc(100% + 14px); top: -8px; z-index: 5;
        min-width: 216px; margin: 0; padding: 6px;
        border: 1px solid var(--diana-border); border-radius: 12px;
        background: var(--diana-surface);
        box-shadow: 0 18px 40px -14px rgba(0, 38, 54, .3);
        animation: diana-flyout-in .14s ease;
    }
    .diana-nav-collapsed .diana-subnav::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 16px; }
    .diana-nav-collapsed .diana-subnav-title {
        display: block; padding: 6px 12px 4px;
        color: var(--diana-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    }
    .diana-nav-collapsed .diana-subnav-item.active::before { display: none; }
    /* AI support card shrinks to one icon */
    .diana-nav-collapsed .diana-ai-card { display: none; }
    .diana-nav-collapsed .diana-ai-mini { display: block; margin: 12px 0 0; }
    .diana-nav-collapsed .diana-ai-mini .diana-nav-link { padding-right: 0; font-weight: 500; }
    .diana-nav-collapsed .diana-ai-expand { display: none; }
}
@keyframes diana-flyout-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Top bar ---------- */
.diana-topbar {
    position: sticky; top: 0; z-index: 1020;
    height: var(--diana-topbar-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 32px;
    background: var(--diana-surface);
    border-bottom: 1px solid var(--diana-border);
    box-shadow: 0 1px 2px rgba(0, 38, 54, .04), 0 8px 20px -14px rgba(0, 38, 54, .18);
}
.diana-search {
    flex: 1 1 auto;
    max-width: 440px;
    display: flex; align-items: center; gap: 10px;
    height: 44px; margin: 0; padding: 0 8px 0 14px;
    border: 1px solid var(--diana-border-strong); border-radius: 12px;
    background: var(--diana-surface);
    transition: border-color .15s, box-shadow .15s;
}
.diana-search:hover { border-color: var(--diana-border-strong); }
.diana-search:focus-within { border-color: var(--diana-border-accent); box-shadow: 0 0 0 4px rgba(40, 170, 225, .12); }
.diana-search > i { color: var(--diana-muted); font-size: .98rem; }
.diana-search-input {
    flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: 0;
    font-family: var(--diana-font); font-size: .92rem; color: var(--diana-text);
}
.diana-search-input::placeholder { color: var(--diana-faint); }
.diana-search-kbd {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; height: 26px; padding: 0 8px;
    border: 1px solid var(--diana-border); border-radius: 7px; background: var(--diana-surface-2);
    box-shadow: inset 0 -1px 0 var(--diana-border);
    color: var(--diana-muted); font-family: var(--diana-font); font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.diana-search:focus-within .diana-search-kbd { opacity: 0; }
.diana-pin-btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 16px;
    border: 1px solid var(--diana-border-strong); border-radius: 12px;
    background: var(--diana-surface); color: var(--diana-heading);
    font-family: var(--diana-font); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.diana-pin-btn:hover { border-color: var(--diana-border-accent); background: var(--diana-tint); color: var(--diana-primary); }
.diana-pin-btn:focus { outline: 0; }
.diana-pin-btn:focus-visible { box-shadow: 0 0 0 4px rgba(40, 170, 225, .18); }
.diana-pin-btn i { color: var(--diana-primary); font-size: 1rem; }

.diana-pin-modal .modal-dialog { max-width: 420px; }
.diana-pin-modal .modal-content {
    position: relative;
    padding: 30px 28px 22px;
    border: 0; border-radius: 18px;
    box-shadow: 0 30px 80px -24px rgba(0, 38, 54, .45);
    font-family: var(--diana-font); text-align: center;
}
.diana-pin-close {
    position: absolute; top: 14px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 1.1rem; opacity: .6;
}
.diana-pin-close:hover { opacity: 1; background: var(--diana-surface-3); }
.diana-pin-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.diana-pin-lead { color: var(--diana-muted); font-size: .9rem; margin: 0 auto 22px; max-width: 320px; }
.diana-pin-field {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    height: 54px; padding: 0 52px;
    border: 1px solid var(--diana-border); border-radius: 12px; background: var(--diana-surface-2);
}
.diana-pin-value { font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--diana-text); white-space: pre; }
.diana-pin-value.is-masked { letter-spacing: .02em; }
.diana-pin-value.is-empty { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--diana-faint); }
.diana-pin-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px;
    background: transparent; color: var(--diana-text-2); font-size: 1.05rem; cursor: pointer;
}
.diana-pin-eye:hover { background: var(--diana-surface-3); color: var(--diana-text); }
.diana-pin-eye:focus { outline: 0; }
.diana-pin-eye:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }
.diana-pin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.diana-pin-generate { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-pin-generate:hover { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-pin-generate.is-busy i { animation: diana-spin .8s linear infinite; }
.diana-pin-copy { background: var(--diana-primary); color: #fff; }
.diana-pin-copy:hover { background: #08679a; color: #fff; }
.diana-pin-actions .diana-btn:disabled { opacity: .55; cursor: not-allowed; }
.diana-pin-msg { min-height: 1.2em; margin: 10px 0 0; font-size: .85rem; color: var(--diana-green); }
.diana-pin-msg.is-error { color: var(--diana-red); }
.diana-pin-note { margin: 6px 0 0; font-size: .82rem; color: var(--diana-muted); }
@keyframes diana-spin { to { transform: rotate(360deg); } }

.diana-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.diana-icon-btn {
    position: relative;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 12px;
    background: transparent;
    color: var(--diana-heading); font-size: 1.22rem;
    cursor: pointer; transition: background .15s, color .15s;
}
.diana-icon-btn:hover { background: var(--diana-surface-3); color: var(--diana-primary); text-decoration: none; }
.diana-icon-btn:focus { outline: 0; }
.diana-icon-btn:focus-visible { box-shadow: 0 0 0 4px rgba(40, 170, 225, .18); }
.diana-icon-btn[aria-describedby] { background: var(--diana-surface-3); color: var(--diana-primary); }
.diana-burger { display: none; }
.diana-count {
    position: absolute; top: 3px; right: 1px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border: 2px solid var(--diana-surface); border-radius: 999px;
    background: var(--diana-primary); color: #fff;
    font-size: .64rem; font-weight: 700; line-height: 15px; text-align: center;
}
.diana-count.is-empty { display: none; }
.diana-dot {
    position: absolute; top: 10px; right: 11px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--diana-primary); border: 2px solid var(--diana-surface);
}
.diana-user { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--diana-border); }
.diana-user-btn {
    display: inline-flex; align-items: center; gap: 10px;
    border: 0; background: transparent; padding: 4px 10px 4px 4px;
    border-radius: 14px; cursor: pointer;
    font-family: var(--diana-font); color: var(--diana-text); text-align: left;
    transition: background .15s;
}
.diana-user-btn:hover, .diana-user.show .diana-user-btn { background: var(--diana-surface-3); }
.diana-user-btn:focus { outline: 0; }
.diana-user-btn:focus-visible { box-shadow: 0 0 0 4px rgba(40, 170, 225, .18); }
.diana-avatar {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--diana-navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.diana-avatar-lg { width: 44px; height: 44px; font-size: .88rem; }
.diana-user-meta { flex-direction: column; line-height: 1.2; max-width: 170px; }
.diana-user-meta strong { font-size: .92rem; font-weight: 700; color: var(--diana-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diana-user-meta small { font-size: .78rem; color: var(--diana-muted); }
.diana-user-caret { font-size: .72rem; color: var(--diana-muted); transition: transform .2s; }
.diana-user.show .diana-user-caret { transform: rotate(180deg); }
.diana-user-menu {
    margin-top: 10px; padding: 8px; min-width: 268px;
    border: 1px solid var(--diana-border); border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(0, 38, 54, .28), 0 2px 6px rgba(0, 38, 54, .05);
    font-family: var(--diana-font);
}
.diana-user-menu-head {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 6px; padding: 10px 10px 14px;
    border-bottom: 1px solid var(--diana-border);
}
.diana-user-menu-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.diana-user-menu-id strong { font-size: .95rem; color: var(--diana-heading); }
.diana-user-menu-id small { color: var(--diana-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Gravatar over the initials ($dianaGravatar; the img removes itself on 404) */
.diana-avatar { position: relative; overflow: hidden; }
.diana-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--diana-surface); }
/* Verified seal next to the name ($dianaVerified from the eKYC addon) */
.diana-verified { display: inline-flex; flex: 0 0 auto; line-height: 0; vertical-align: middle; }
.diana-user-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.diana-user-name strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diana-user-verify {
    display: flex; align-items: center; gap: 8px;
    margin: 0 4px 6px; padding: 9px 12px; border-radius: 10px;
    background: var(--diana-primary-soft); color: var(--diana-primary);
    font-size: .82rem; font-weight: 600;
}
.diana-user-verify:hover { color: var(--diana-primary); text-decoration: none; filter: brightness(.97); }
.diana-user-verify small { color: var(--diana-muted); font-size: .74rem; font-weight: 500; }
.diana-user-verify .fa-arrow-right { margin-left: auto; font-size: .7rem; }
.diana-user-verify.is-done { background: rgba(24, 119, 242, .1); color: #1877f2; }
html[data-theme="dark"] .diana-user-verify.is-done { background: rgba(24, 119, 242, .18); color: #6aa9ff; }
.diana-welcome h1 .diana-verified { vertical-align: -2px; }
.diana-user-menu .dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: 10px;
    color: var(--diana-text-3); font-size: .9rem; font-weight: 500;
}
.diana-user-menu .dropdown-item i { width: 18px; color: var(--diana-muted); font-size: .95rem; text-align: center; }
.diana-user-menu .dropdown-item:hover, .diana-user-menu .dropdown-item:focus { background: var(--diana-surface-3); color: var(--diana-heading); }
.diana-user-menu .dropdown-item:hover i, .diana-user-menu .dropdown-item:focus i { color: var(--diana-primary); }
.diana-user-menu .dropdown-item.is-danger, .diana-user-menu .dropdown-item.is-danger i { color: var(--diana-red); }
.diana-user-menu .dropdown-item.is-danger:hover { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-user-menu .dropdown-item.is-danger:hover i { color: var(--diana-red); }
.diana-user-menu .dropdown-divider { margin: 6px 4px; border-color: var(--diana-border); }
.diana-user-menu .dropdown-divider + .dropdown-divider { display: none; }
@media (max-width: 767.98px) {
    .diana-user { margin-left: 4px; padding-left: 8px; }
    .diana-user-btn { padding: 2px; border-radius: 50%; }
}
/* Return to Admin: floating pill, bottom-right (logged-in header button and public-page footer button) */
.diana-body .diana-return-admin,
.diana-body .btn-return-to-admin {
    position: fixed; right: 24px; bottom: 24px; z-index: 1040;
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; padding: 12px 18px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15);
    background: var(--diana-dark); color: #fff;
    font-family: var(--diana-font); font-weight: 600; font-size: .9rem;
    box-shadow: 0 10px 30px -10px rgba(0, 38, 54, .55);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.diana-body .diana-return-admin:hover,
.diana-body .btn-return-to-admin:hover {
    background: #004a66; color: #fff; text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(0, 38, 54, .6);
}
.diana-body .diana-return-admin i,
.diana-body .btn-return-to-admin i { font-size: .95rem; }
@media (max-width: 575.98px) {
    .diana-body .diana-return-admin,
    .diana-body .btn-return-to-admin { right: 14px; bottom: 14px; padding: 12px 14px; }
}

/* notifications popover (parent script renders #accountNotificationsContent inside a popover) */
.popover { border-radius: 12px; border-color: var(--diana-border); box-shadow: var(--diana-shadow); font-family: var(--diana-font); }
.diana-body .popover:has(.client-alerts) {
    width: 340px; max-width: calc(100vw - 24px); margin-top: 10px;
    border: 1px solid var(--diana-border); border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(0, 38, 54, .28), 0 2px 6px rgba(0, 38, 54, .05);
}
.diana-body .popover:has(.client-alerts) > .arrow { display: none; }
.diana-body .popover:has(.client-alerts) .popover-header {
    padding: 14px 16px; border-bottom: 1px solid var(--diana-border); border-radius: 16px 16px 0 0;
    background: var(--diana-surface); font-size: .95rem; font-weight: 700; color: var(--diana-heading);
}
.diana-body .popover:has(.client-alerts) .popover-body { padding: 8px; }
.popover .client-alerts { list-style: none; margin: 0; padding: 0; }
.popover .client-alerts li a {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px;
    color: var(--diana-text-3); font-size: .86rem; line-height: 1.45; text-decoration: none;
}
.popover .client-alerts li a:hover { background: var(--diana-surface-2); color: var(--diana-heading); }
.popover .client-alerts .message { flex: 1 1 auto; min-width: 0; }
.popover .client-alerts li.none { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; color: var(--diana-muted); font-size: .88rem; text-align: center; }
.diana-alert-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--diana-primary-soft); color: var(--diana-primary); font-size: .9rem;
}
.client-alerts li.none .diana-alert-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--diana-surface-3); color: var(--diana-faint); font-size: 1.1rem; }
.client-alerts li.is-danger .diana-alert-icon { background: var(--diana-red-soft); color: var(--diana-red); }
.client-alerts li.is-warning .diana-alert-icon { background: var(--diana-orange-soft); color: #d97706; }
.client-alerts li.is-success .diana-alert-icon { background: var(--diana-green-soft); color: var(--diana-green); }

/* ---------- Content ---------- */
section#main-body.diana-content { flex: 1 1 auto; margin: 0; min-height: 0; padding: 24px 32px 32px; }
.diana-container { width: 100%; }
.diana-breadcrumb { margin-bottom: 14px; }
.diana-breadcrumb .breadcrumb { display: inline-flex; flex-wrap: nowrap; align-items: center; max-width: 100%; gap: 2px; background: var(--diana-surface); border: 1px solid var(--diana-border); border-radius: 999px; padding: 5px 6px; margin: 0; font-size: .82rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.diana-breadcrumb .breadcrumb-item { display: flex; align-items: center; min-width: 0; padding: 0; color: var(--diana-muted); }
.diana-breadcrumb .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.diana-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin: 0 6px 0 4px; padding: 0; float: none; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); color: var(--diana-faint); }
.diana-breadcrumb .breadcrumb-item a, .diana-breadcrumb .breadcrumb-item.active > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px; border-radius: 999px; }
.diana-breadcrumb .breadcrumb-item a { color: var(--diana-text-2); font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.diana-breadcrumb .breadcrumb-item a:hover, .diana-breadcrumb .breadcrumb-item a:focus-visible { background: var(--diana-tint); color: var(--diana-primary); }
.diana-breadcrumb .breadcrumb-item.active { color: var(--diana-heading); font-weight: 600; }
.diana-breadcrumb .breadcrumb-item.active > span { display: block; background: var(--diana-tint); }
.diana-breadcrumb .breadcrumb-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.diana-breadcrumb .diana-crumb-home { font-size: .78rem; color: var(--diana-primary); }

/* Unpaid / overdue invoice notice on service and domain pages */
.diana-content #alertUnpaidInvoice, .diana-content #alertOverdueInvoice { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.diana-content #alertUnpaidInvoice > .float-right, .diana-content #alertOverdueInvoice > .float-right { float: none !important; order: 2; margin-left: auto; }
.diana-invoice-alert-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(245, 158, 11, .16); color: #d97706; font-size: .95rem; }
.alert-danger .diana-invoice-alert-icon { background: rgba(239, 68, 68, .14); color: var(--diana-red); }
.diana-invoice-alert-text { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.diana-content .diana-invoice-alert-btn, .diana-content #alertUnpaidInvoice .btn, .diana-content #alertOverdueInvoice .btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 10px; background: #d97706; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(217, 119, 6, .55); }
.diana-content .diana-invoice-alert-btn:hover, .diana-content #alertUnpaidInvoice .btn:hover, .diana-content #alertOverdueInvoice .btn:hover { background: #b45309; color: #fff; }
.diana-content #alertOverdueInvoice .btn { background: var(--diana-red); box-shadow: 0 4px 12px -4px rgba(220, 38, 38, .55); }
.diana-content #alertOverdueInvoice .btn:hover { background: #b91c1c; }
@media (max-width: 575.98px) {
    .diana-content #alertUnpaidInvoice, .diana-content #alertOverdueInvoice { flex-wrap: wrap; }
    .diana-invoice-alert-text { flex-basis: calc(100% - 46px); }
    .diana-content .diana-invoice-alert-btn, .diana-content #alertUnpaidInvoice .btn, .diana-content #alertOverdueInvoice .btn { width: 100%; justify-content: center; }
    .diana-content #alertUnpaidInvoice > .float-right, .diana-content #alertOverdueInvoice > .float-right { width: 100%; margin-left: 0; }
    .diana-breadcrumb .breadcrumb-item span { max-width: 120px; }
}

/* ---------- Buttons ---------- */
/* Bootstrap 4.5 reboot rings every focused button, including after mouse clicks; keep the ring for keyboard focus only */
.diana-body button:focus:not(:focus-visible),
.diana-body a:focus:not(:focus-visible),
.diana-body [role="button"]:focus:not(:focus-visible) { outline: 0; }
.diana-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 600; font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
}
.diana-btn:hover { text-decoration: none; }
.diana-btn-dark { background: var(--diana-dark); color: #fff; }
.diana-btn-dark:hover { background: #004a66; color: #fff; }
.diana-btn-light { background: var(--diana-surface); color: var(--diana-text); border-color: var(--diana-border); }
.diana-btn-light:hover { background: var(--diana-surface-2); color: var(--diana-text); }
.diana-btn-outline { background: transparent; color: var(--diana-text); border-color: var(--diana-border-strong); }
.diana-btn-outline:hover { background: var(--diana-surface-3); color: var(--diana-text); }
.diana-btn-link { background: transparent; color: var(--diana-text); padding-left: 10px; padding-right: 10px; }
.diana-btn-link:hover { color: var(--diana-primary); }
.diana-btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.diana-btn.btn-block { width: 100%; }
.diana-link { font-weight: 600; font-size: .9rem; color: var(--diana-text); display: inline-flex; align-items: center; gap: 6px; }
.diana-link:hover { color: var(--diana-primary); }

/* ---------- Cards ---------- */
.diana-card {
    background: var(--diana-surface);
    border: 1px solid var(--diana-border);
    border-radius: var(--diana-radius);
    box-shadow: var(--diana-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.diana-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 20px 22px 14px;
}
.diana-card-head h2 { font-size: 1.1rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.diana-card-head h2 i { color: var(--diana-text); margin-right: 4px; }
.diana-card-body { padding: 0 22px 20px; }
.diana-card-foot { padding: 12px 22px 18px; border-top: 1px solid var(--diana-border); font-size: .9rem; }
.diana-card-foot:empty { display: none; }
.diana-panel .list-group-item { padding: 12px 22px; border-color: var(--diana-border); font-size: .93rem; }
.diana-panel .list-group-item:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.diana-hero {
    position: relative;
    display: flex; align-items: center;
    min-height: 260px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: var(--diana-hero-bg);
    border: 1px solid var(--diana-border);
    box-shadow: var(--diana-shadow);
    overflow: hidden;
}
.diana-hero-copy { padding: 40px 44px; max-width: 560px; position: relative; z-index: 2; }
.diana-eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--diana-muted); margin-bottom: 14px; }
.diana-hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 12px; }
.diana-hero p { font-size: 1.02rem; color: var(--diana-text-2); margin-bottom: 22px; }
.diana-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.diana-hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; pointer-events: none; }
.diana-hero-art img { position: absolute; right: 0; top: 0; height: 100%; width: 100%; object-fit: cover; object-position: right center; }
.diana-hero-note {
    position: absolute; left: 6%; top: 34px;
    font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 1.25rem; line-height: 1.35; color: var(--diana-heading);
    transform: rotate(-8deg);
}

/* ---------- Stats ---------- */
.diana-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.diana-stat {
    display: flex; align-items: center; gap: 14px;
    background: var(--diana-surface);
    border: 1px solid var(--diana-border);
    border-radius: var(--diana-radius);
    box-shadow: var(--diana-shadow);
    padding: 18px 20px;
    color: var(--diana-text);
    transition: transform .15s, box-shadow .15s;
}
.diana-stat:hover { text-decoration: none; color: var(--diana-text); transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(0, 38, 54, .25); }
.diana-stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}
.diana-stat-icon.is-blue { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-stat-icon.is-green { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-stat-icon.is-orange { background: var(--diana-orange-soft); color: var(--diana-orange); }
.diana-stat-icon.is-purple { background: var(--diana-purple-soft); color: var(--diana-purple); }
.diana-stat-icon.is-red { background: var(--diana-red-soft); color: var(--diana-red); }
button.diana-stat { width: 100%; text-align: left; font-family: var(--diana-font); cursor: pointer; }
button.diana-stat:focus { outline: 0; }
button.diana-stat:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .25); }
.diana-stat.is-selected { border-color: var(--diana-primary); box-shadow: 0 0 0 1px var(--diana-primary), var(--diana-shadow); }
.diana-stat.is-selected .diana-stat-arrow { background: var(--diana-primary); color: #fff; }
.diana-stat-body { display: flex; flex-direction: column; line-height: 1.1; }
.diana-stat-body strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.diana-stat-body span { color: var(--diana-muted); font-size: .88rem; margin-top: 4px; }
.diana-stat-arrow {
    margin-left: auto;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--diana-surface-3); color: var(--diana-text);
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.diana-stat-icon.is-navy { background: var(--diana-surface-3); color: var(--diana-heading); }

/* ---------- Dashboard (clientareahome.tpl) ---------- */
.diana-welcome {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: center;
    padding: 34px 36px;
    margin-bottom: 24px;
    border-radius: 22px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(620px 320px at 88% -20%, rgba(40, 170, 225, .45), transparent 62%),
        radial-gradient(480px 260px at -5% 125%, rgba(40, 170, 225, .28), transparent 60%),
        linear-gradient(120deg, #00374c 0%, #004862 55%, #006293 100%);
    box-shadow: 0 22px 44px -26px rgba(0, 38, 54, .65);
}
.diana-welcome::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.4px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
    pointer-events: none;
}
.diana-welcome > * { position: relative; }
.diana-welcome-date {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .85);
}
.diana-welcome-date i { color: var(--diana-sky); }
.diana-welcome h1 {
    margin: 16px 0 10px;
    font-size: 2.15rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
    color: #fff;
}
.diana-welcome-status {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 0 0 24px;
    max-width: 560px;
    font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .85);
}
.diana-welcome-status i { margin-top: 4px; }
.diana-welcome-status.is-ok i { color: #6ee7a8; }
.diana-welcome-status.is-due i { color: #fcd34d; }
.diana-welcome-status.is-alert i { color: #fca5a5; }
.diana-welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.diana-btn.diana-btn-sky {
    background: var(--diana-sky); color: #002a3a; border: 1px solid var(--diana-sky);
    box-shadow: 0 10px 22px -12px rgba(40, 170, 225, .9);
}
.diana-btn.diana-btn-sky:hover { background: #4dbbe8; border-color: #4dbbe8; color: #002a3a; }
.diana-btn.diana-btn-glass {
    background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
.diana-btn.diana-btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.diana-welcome-panel {
    padding: 6px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.diana-welcome-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.diana-welcome-row + .diana-welcome-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.diana-welcome-ico {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(40, 170, 225, .2); color: #7dd3f5; font-size: 1rem;
}
.diana-welcome-kv { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.diana-welcome-kv small { font-size: .76rem; color: rgba(255, 255, 255, .65); font-weight: 500; }
.diana-welcome-kv strong { font-size: 1.08rem; font-weight: 700; color: #fff; margin-top: 3px; }
.diana-welcome-pin { letter-spacing: .12em; }
.diana-welcome-link {
    margin-left: auto; flex-shrink: 0;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 0;
    font: 600 .8rem var(--diana-font); color: #fff; cursor: pointer;
    transition: background .15s;
}
.diana-welcome-link:hover { background: var(--diana-sky); color: #002a3a; text-decoration: none; }

.diana-dash-stats .diana-stat-body em {
    font-style: normal; font-size: .78rem; font-weight: 500;
    color: var(--diana-faint); margin-top: 7px;
}
.diana-dash-stats .diana-stat-body em.is-warn { color: var(--diana-orange-text); font-weight: 600; }
.diana-dash-stats .diana-stat-body em.is-good { color: var(--diana-green); font-weight: 600; }

.diana-dash-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 18px 18px;
}
.diana-dash-tile {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 16px 6px 14px;
    border: 1px solid var(--diana-border);
    border-radius: 14px;
    font-size: .8rem; font-weight: 600; line-height: 1.25; text-align: center;
    color: var(--diana-text);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.diana-dash-tile:hover {
    color: var(--diana-text); text-decoration: none;
    border-color: var(--diana-border-accent); transform: translateY(-2px);
    box-shadow: 0 10px 22px -14px rgba(0, 38, 54, .3);
}
.diana-dash-tile .diana-stat-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.05rem; }

.diana-dash-help { display: flex; gap: 14px; padding: 20px; }
.diana-dash-help .diana-stat-icon { flex: 0 0 46px; width: 46px; height: 46px; font-size: 1.15rem; }
.diana-dash-help strong { display: block; font-size: 1rem; color: var(--diana-heading); }
.diana-dash-help p { margin: 4px 0 10px; font-size: .88rem; color: var(--diana-muted); }
.diana-dash-help-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; font-weight: 600; }
.diana-dash-help-links i { margin-right: 4px; }

.diana-card.diana-dash-upgrade {
    display: block;
    padding: 24px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(320px 200px at 100% 0%, rgba(40, 170, 225, .55), transparent 70%),
        linear-gradient(135deg, #00374c, #006293);
    transition: transform .15s, box-shadow .15s;
}
.diana-card.diana-dash-upgrade:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(0, 38, 54, .7); }
.diana-dash-upgrade-icon {
    width: 46px; height: 46px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.15rem;
    margin-bottom: 14px;
}
.diana-dash-upgrade strong { display: block; font-size: 1.15rem; font-weight: 700; }
.diana-dash-upgrade p { margin: 6px 0 14px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.diana-dash-upgrade-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: #7dd3f5; }

@media (max-width: 1199.98px) {
    .diana-welcome { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .diana-welcome { padding: 24px 20px; border-radius: 18px; gap: 22px; }
    .diana-welcome h1 { font-size: 1.6rem; }
    .diana-welcome-panel { padding: 2px 16px; }
    .diana-welcome-actions .diana-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Services list (restyles WHMCS .div-service-item markup) ---------- */
.diana-service-list { padding: 0 22px 8px; }
.diana-services .div-service-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    grid-template-areas: "icon name status buttons";
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--diana-border);
    cursor: pointer;
}
.diana-services .div-service-item::before {
    content: "";
    grid-area: icon;
    width: 52px; height: 52px; border-radius: 14px;
    background-color: var(--diana-surface-3);
    background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
    /* server icon */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='6' rx='2'/><rect x='3' y='14' width='18' height='6' rx='2'/><circle cx='7' cy='7' r='.6'/><circle cx='7' cy='17' r='.6'/></svg>");
}
/* VPS rows: OS logo from the dianavirt module's ClientAreaHomepagePanels hook (white tile in both themes, the logos are made for white) */
.diana-services .div-service-item.has-os::before { display: none; }
.diana-services .diana-svc-os {
    grid-area: icon;
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--diana-border);
}
.diana-services .diana-svc-os img { width: 30px; height: 30px; object-fit: contain; }
/* Product logos (includes/hooks/diana/dashboard.php, img/svc/*.svg) */
.diana-services .diana-svc-os.is-brand img { width: 28px; height: 28px; }
.diana-services .diana-svc-os.is-tile,
.diana-svc-tile.is-tile { overflow: hidden; border: 0; background: none; }
.diana-services .diana-svc-os.is-tile img,
.diana-svc-cards .diana-svc-tile.is-tile img { width: 100%; height: 100%; object-fit: cover; }
.diana-services-more {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 22px 18px; padding: 12px 16px;
    border: 1px dashed var(--diana-border-strong); border-radius: 12px;
    color: var(--diana-muted); font-size: .88rem; text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.diana-services-more strong { color: var(--diana-primary); font-weight: 600; white-space: nowrap; }
.diana-services-more strong i { font-size: .78em; margin-left: 4px; transition: transform .15s; }
.diana-services-more:hover { text-decoration: none; border-color: var(--diana-primary); background: var(--diana-tint); color: var(--diana-text-2); }
.diana-services-more:hover strong i { transform: translateX(3px); }
.diana-services .div-service-name { grid-area: name; display: flex; flex-direction: column; min-width: 0; }
.diana-services .div-service-name .font-weight-bold { font-size: 1rem; font-weight: 600 !important; }
.diana-services .div-service-name .text-domain { color: var(--diana-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-services .div-service-status { grid-area: status; }
.diana-services .div-service-status .label-placeholder { display: none; }
.diana-services .div-service-status .label {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    background: var(--diana-surface-3); color: var(--diana-text-2);
}
.diana-services .div-service-status .label-success { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-services .div-service-status .label-warning { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-services .div-service-status .label-danger, .diana-services .div-service-status .label-default { background: #fee2e2; color: #b91c1c; }
.diana-services .div-service-buttons { grid-area: buttons; display: flex; align-items: center; gap: 8px; }
.diana-services .div-service-buttons .btn { border-radius: 10px; font-weight: 600; font-size: .85rem; padding: 7px 14px; }
.diana-services .div-service-buttons .btn-view-details { background: var(--diana-surface); border: 1px solid var(--diana-border-strong); color: var(--diana-text); }
.diana-services .div-service-buttons .btn-view-details:hover { background: var(--diana-surface-2); }
.diana-services .div-service-buttons .btn-view-details i { display: none; }
.diana-services .div-service-buttons .btn-view-details .sr-only { display: none; }

/* ---------- Tickets ---------- */
.diana-ticket-list { padding: 0 22px 10px; }
.diana-ticket { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--diana-border); color: var(--diana-text); }
.diana-ticket:hover { color: var(--diana-primary); text-decoration: none; }
.diana-ticket-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--diana-surface-3); display: inline-flex; align-items: center; justify-content: center; color: var(--diana-text-3); }
.diana-ticket-body { flex: 1 1 auto; font-weight: 500; }
.diana-ticket-caret { color: var(--diana-faint); font-size: .75rem; }

/* ---------- Empty states ---------- */
.diana-empty { text-align: center; padding: 36px 22px 40px; }
.diana-empty i { font-size: 2.2rem; color: var(--diana-faint); margin-bottom: 14px; display: block; }
.diana-empty strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.diana-empty p { color: var(--diana-muted); margin-bottom: 18px; }

/* ---------- Right column ---------- */
.diana-balance { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.diana-balance-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--diana-surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--diana-text-3); }
.diana-balance-body { display: flex; flex-direction: column; line-height: 1.15; }
.diana-balance-body span { color: var(--diana-muted); font-size: .85rem; }
.diana-balance-body strong { font-size: 1.35rem; font-weight: 700; }
.diana-balance .diana-btn { margin-left: auto; }

.diana-quick-list { list-style: none; margin: 0; padding: 0 12px 10px; }
.diana-quick-list a {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 12px; border-radius: 10px;
    color: var(--diana-text); font-size: .95rem; font-weight: 500;
}
.diana-quick-list a:hover { background: var(--diana-bg); text-decoration: none; }
.diana-quick-list a > i:first-child { width: 22px; text-align: center; color: var(--diana-text-3); }
.diana-quick-list a span { flex: 1 1 auto; }
.diana-quick-list a > i:last-child { font-size: .7rem; color: var(--diana-faint); }

.diana-upgrade {
    padding: 22px;
    background: linear-gradient(135deg, #e7f4fb 0%, #f1f8fc 60%, #ffffff 100%);
}
.diana-upgrade-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--diana-surface); align-items: center; justify-content: center; color: var(--diana-primary); font-size: 1.15rem; margin-bottom: 12px; box-shadow: var(--diana-shadow); }
.diana-upgrade strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.diana-upgrade p { color: var(--diana-text-2); font-size: .9rem; margin-bottom: 16px; }

/* ---------- Page hero (compact, inner pages) ---------- */
.diana-page-hero {
    position: relative;
    display: flex; align-items: center; gap: 22px;
    min-height: 150px;
    margin-bottom: 20px;
    padding: 28px 32px;
    border-radius: 20px;
    background: var(--diana-hero-bg);
    border: 1px solid var(--diana-border);
    box-shadow: var(--diana-shadow);
    overflow: hidden;
}
.diana-page-hero-icon {
    flex: 0 0 auto;
    width: 76px; height: 76px; border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-primary-soft); color: var(--diana-primary);
    font-size: 1.9rem;
    position: relative; z-index: 2;
}
.diana-page-hero-copy { position: relative; z-index: 2; max-width: 520px; }
.diana-page-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.diana-page-hero p { margin: 0; color: var(--diana-text-2); font-size: 1rem; }
.diana-page-hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; }
.diana-page-hero-art img { position: absolute; right: 0; top: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.diana-page-hero .diana-hero-note { left: auto; right: 3%; top: 24px; font-size: 1.05rem; z-index: 2; }

/* Version 4 illustrations (includes/art.tpl). They have opaque studio backgrounds, so the box is sized to the
   image (max-width/max-height keep the ratio) and its edges are feathered into the panel. */
.diana-auth-art .diana-art, .diana-page-hero-art .diana-art, .diana-home-hero-art .diana-art,
.diana-dp-hero-art .diana-art, .diana-pp-hero-art .diana-art {
    position: absolute; inset: auto; width: auto; height: auto; max-width: 100%; max-height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
    mask-composite: intersect;
}
.diana-auth-art .diana-art, .diana-home-hero-art .diana-art,
.diana-dp-hero-art .diana-art, .diana-pp-hero-art .diana-art { left: 50%; bottom: 0; transform: translateX(-50%); }
.diana-page-hero-art .diana-art { right: 12%; top: 50%; max-width: 78%; transform: translateY(-50%); }

/* ---------- Services page ---------- */
.diana-svc { overflow: visible; }
.diana-svc-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 20px 22px;
}
.diana-svc-toolbar h2 { font-size: 1.2rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.diana-svc-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.diana-svc-search {
    display: flex; align-items: center; gap: 8px;
    height: 40px; width: 240px; margin: 0; padding: 0 14px;
    border: 1px solid var(--diana-border); border-radius: 10px; background: var(--diana-surface);
}
.diana-svc-search:focus-within { border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-svc-search i { color: var(--diana-faint); font-size: .85rem; }
.diana-svc-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--diana-font); font-size: .9rem; color: var(--diana-text); }
.diana-select {
    height: 40px; min-width: 140px; padding: 0 34px 0 14px;
    border: 1px solid var(--diana-border); border-radius: 10px;
    background: var(--diana-surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 12px center / 14px;
    -webkit-appearance: none; appearance: none;
    font-family: var(--diana-font); font-size: .9rem; color: var(--diana-text);
    cursor: pointer;
}
.diana-select:focus { outline: 0; border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-svc-controls .diana-btn { height: 40px; }

.diana-svc-table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--diana-border); }
.diana-svc-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.diana-svc-table th {
    padding: 12px 16px; background: var(--diana-surface-2);
    color: var(--diana-muted); font-weight: 600; font-size: .82rem; text-align: left; white-space: nowrap;
    border-bottom: 1px solid var(--diana-border);
}
.diana-svc-table td { padding: 14px 16px; border-bottom: 1px solid var(--diana-border); vertical-align: middle; white-space: nowrap; }
.diana-svc-table th:first-child, .diana-svc-table td:first-child { padding-left: 22px; }
.diana-svc-table th:last-child, .diana-svc-table td:last-child { padding-right: 22px; }
.diana-svc-table tbody tr { cursor: pointer; transition: background .12s; }
.diana-svc-table tbody tr:hover { background: var(--diana-surface-2); }
.diana-svc-table th.diana-svc-ssl, .diana-svc-table td.diana-svc-ssl { width: 54px; padding-right: 0; text-align: center; }
.diana-svc-plan strong { display: block; font-weight: 600; }
.diana-svc-plan .diana-svc-oslogo { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; margin-right: 7px; padding: 2px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px var(--diana-border); }
.diana-svc-plan a, .diana-svc-plan small { display: inline-block; color: var(--diana-muted); font-size: .84rem; margin-top: 2px; }
.diana-svc-muted { color: var(--diana-muted); }
.diana-svc-muted.is-due-soon { color: var(--diana-orange-text); font-weight: 600; }
.diana-svc-price { font-weight: 600; }
.diana-svc-price small { color: var(--diana-muted); font-weight: 500; font-size: .82rem; }
.diana-svc-actions { text-align: right; }
.diana-svc-actions > * { vertical-align: middle; }

/* My Services rows: same look as the dashboard "Your Services" card (logos: includes/hooks/diana/dashboard.php) */
.diana-svc-cards td.diana-svc-product { white-space: normal; min-width: 280px; width: 40%; }
.diana-svc-item { display: flex; align-items: center; gap: 16px; min-width: 0; }
.diana-svc-tile {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--diana-surface-3); color: var(--diana-text-2); font-size: 1.15rem;
}
.diana-svc-tile.has-logo { background: #fff; border: 1px solid var(--diana-border); }
.diana-svc-tile img { width: 28px; height: 28px; object-fit: contain; }
.diana-svc-name { display: flex; flex-direction: column; min-width: 0; }
.diana-svc-name strong { font-size: 1rem; font-weight: 600; color: var(--diana-heading); line-height: 1.35; }
.diana-svc-domain { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; color: var(--diana-muted); font-size: .88rem; }
.diana-svc-domain a { color: var(--diana-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-svc-domain a:hover { color: var(--diana-primary); }
.diana-svc-domain img { flex: 0 0 auto; width: 16px; height: 16px; }
.diana-svc-cards td { padding-top: 16px; padding-bottom: 16px; }
.diana-svc-cards .diana-svc-actions .diana-btn-outline { border-radius: 10px; }
@media (max-width: 767.98px) {
    .diana-svc-table.diana-svc-cards { min-width: 0; }
    .diana-svc-table.diana-svc-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .diana-svc-table.diana-svc-cards tbody { display: block; }
    .diana-svc-table.diana-svc-cards tr {
        position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "product product" "price due" "actions actions";
        gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--diana-border);
    }
    .diana-svc-table.diana-svc-cards tr[hidden] { display: none; }
    .diana-svc-table.diana-svc-cards td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; width: auto; }
    .diana-svc-table.diana-svc-cards td.diana-svc-product { grid-area: product; padding-right: 76px; }
    .diana-svc-table.diana-svc-cards td.diana-svc-state { position: absolute; top: 16px; right: 16px; }
    .diana-svc-table.diana-svc-cards td.diana-svc-price { grid-area: price; }
    .diana-svc-table.diana-svc-cards td.diana-svc-muted { grid-area: due; }
    .diana-svc-table.diana-svc-cards td.diana-svc-price,
    .diana-svc-table.diana-svc-cards td.diana-svc-muted { padding: 8px 12px; border-radius: 10px; background: var(--diana-surface-2); font-size: .86rem; }
    .diana-svc-table.diana-svc-cards td.diana-svc-price::before,
    .diana-svc-table.diana-svc-cards td.diana-svc-muted::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 600; color: var(--diana-muted); }
    .diana-svc-table.diana-svc-cards td.diana-svc-actions { grid-area: actions; display: flex; gap: 8px; text-align: left; }
    .diana-svc-table.diana-svc-cards td.diana-svc-actions .diana-btn { flex: 1 1 auto; justify-content: center; }
    .diana-svc-cards .diana-svc-item { gap: 12px; }
    .diana-svc-cards .diana-svc-tile { width: 44px; height: 44px; border-radius: 12px; }
    .diana-svc-cards .diana-svc-tile img { width: 24px; height: 24px; }
    .diana-svc-cards .diana-svc-name strong { font-size: .95rem; }
}
.diana-row-menu { display: inline-block; margin-left: 6px; }
.diana-kebab {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--diana-border-strong); border-radius: 10px; background: var(--diana-surface);
    color: var(--diana-text); cursor: pointer;
}
.diana-kebab:hover { background: var(--diana-surface-3); }
.diana-kebab:focus { outline: 0; }
.diana-kebab:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }
.diana-menu { border: 1px solid var(--diana-border); border-radius: 12px; box-shadow: var(--diana-shadow); padding: 6px; min-width: 210px; font-family: var(--diana-font); }
.diana-menu .dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.diana-menu .dropdown-item i { color: var(--diana-faint); margin-right: 4px; }
.diana-menu .dropdown-item.text-danger i { color: inherit; }

.diana-status {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    background: var(--diana-surface-3); color: var(--diana-text-2);
}
.diana-status.is-active, .diana-status.is-completed { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-status.is-pending { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-status.is-suspended, .diana-status.is-fraud { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-status.is-paid, .diana-status.is-answered, .diana-status.is-accepted, .diana-status.is-delivered { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-status.is-unpaid, .diana-status.is-pending-registration, .diana-status.is-pending-transfer, .diana-status.is-grace,
.diana-status.is-customer-reply, .diana-status.is-onhold, .diana-status.is-payment-pending { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-status.is-open, .diana-status.is-inprogress, .diana-status.is-sent { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-status.is-overdue, .diana-status.is-collections, .diana-status.is-redemption, .diana-status.is-dead, .diana-status.is-lost { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-status.is-custom { color: #fff; }
.diana-svc-muted.is-overdue { color: var(--diana-red); font-weight: 600; }

/* Row checkboxes + bulk actions (domains) */
.diana-svc-table th.diana-svc-check, .diana-svc-table td.diana-svc-check { width: 44px; padding-right: 0; }
.diana-tick { position: relative; display: inline-flex; margin: 0; cursor: pointer; vertical-align: middle; }
.diana-tick input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.diana-tick span {
    width: 18px; height: 18px; border: 1.5px solid var(--diana-border-strong); border-radius: 5px; background: var(--diana-surface);
    display: inline-flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s;
}
.diana-tick input:checked + span { background: var(--diana-navy); border-color: var(--diana-navy); }
.diana-tick input:checked + span::after { content: ""; width: 5px; height: 9px; border: solid var(--diana-surface); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.diana-tick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }
.diana-bulkbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 12px 22px; border-top: 1px solid var(--diana-border); background: var(--diana-surface-2);
}
.diana-bulkbar-label { color: var(--diana-muted); font-size: .84rem; font-weight: 600; margin-right: 4px; }
.diana-autorenew { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; }
.diana-autorenew.is-on i { color: var(--diana-green); }
.diana-autorenew.is-off i { color: var(--diana-red); }

/* Ticket list */
.diana-ticket-subject.is-unread strong a::after {
    content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%;
    background: var(--diana-primary); vertical-align: middle;
}

/* Invoices balance summary */
.diana-billing-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.diana-billing-summary .diana-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin: 0; }
.diana-billing-icon {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-primary-soft); color: var(--diana-primary); font-size: 1.3rem;
}
.diana-billing-icon.is-green { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-billing-due.has-due .diana-billing-icon { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-billing-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.diana-billing-body > span { color: var(--diana-muted); font-size: .84rem; font-weight: 600; }
.diana-billing-body strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); line-height: 1.25; }
.diana-billing-body small { color: var(--diana-muted); font-size: .82rem; }
.diana-billing-body small b { color: var(--diana-red); }
@media (max-width: 767.98px) {
    .diana-billing-summary { grid-template-columns: 1fr; }
    .diana-billing-summary .diana-card { flex-wrap: wrap; }
    .diana-billing-summary .diana-btn { width: 100%; justify-content: center; }
}

/* Product details (clientareaproductdetails.tpl) */
.diana-btn-danger-soft { background: var(--diana-red-soft); color: var(--diana-red); border-color: #f8d4d4; }
.diana-btn-danger-soft:hover { background: var(--diana-red); color: #fff; border-color: var(--diana-red); }
.diana-btn.disabled { opacity: .55; pointer-events: none; }
.diana-pd-summary { margin-bottom: 22px; overflow: hidden; }
.diana-pd-head { display: flex; align-items: center; gap: 18px; padding: 24px; flex-wrap: wrap; }
.diana-pd-icon {
    flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
    background: var(--diana-primary-soft); color: var(--diana-primary);
}
.diana-pd-icon.is-active { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-pd-icon.is-pending { background: var(--diana-orange-soft); color: var(--diana-orange); }
.diana-pd-icon.is-suspended, .diana-pd-icon.is-fraud { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-pd-icon.is-terminated, .diana-pd-icon.is-cancelled { background: var(--diana-surface-3); color: var(--diana-muted); }
.diana-pd-title { flex: 1 1 260px; min-width: 0; }
.diana-pd-group { color: var(--diana-muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.diana-pd-title h2 { margin: 2px 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; color: var(--diana-heading); }
.diana-pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; }
.diana-pd-meta a { color: var(--diana-primary); font-weight: 600; }
.diana-pd-meta a i { margin-right: 4px; }
.diana-pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.diana-pd-actions .diana-btn { padding: 10px 16px; font-size: .9rem; }
.diana-pd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--diana-border); }
.diana-pd-fact { display: flex; align-items: center; gap: 12px; padding: 18px 22px; min-width: 0; }
.diana-pd-fact + .diana-pd-fact { border-left: 1px solid var(--diana-border); }
.diana-pd-fact > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.diana-pd-fact small { color: var(--diana-muted); font-size: .78rem; font-weight: 600; }
.diana-pd-fact strong { color: var(--diana-heading); font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-pd-fact em { font-style: normal; color: var(--diana-muted); font-size: .78rem; }
.diana-pd-fact-icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.diana-pd-fact-icon.is-blue { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-pd-fact-icon.is-green { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-pd-fact-icon.is-orange { background: var(--diana-orange-soft); color: var(--diana-orange); }
.diana-pd-fact-icon.is-purple { background: var(--diana-purple-soft); color: var(--diana-purple); }
.diana-pd-extra { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 22px; border-top: 1px solid var(--diana-border); background: var(--diana-surface-2); font-size: .9rem; font-weight: 600; color: var(--diana-heading); }
.diana-pd-extra small { color: var(--diana-muted); font-weight: 600; margin-right: 6px; }
.diana-pd-extra .is-danger { color: var(--diana-red); }

.diana-content .responsive-tabs-sm-connector { display: none; }
.diana-content .nav-tabs.responsive-tabs-sm {
    background: var(--diana-surface); border: 1px solid var(--diana-border); border-bottom: 0;
    border-radius: var(--diana-radius) var(--diana-radius) 0 0; padding: 0 12px; margin: 0;
}
.diana-content .product-details-tab-container {
    border: 1px solid var(--diana-border); border-radius: 0 0 var(--diana-radius) var(--diana-radius);
    box-shadow: var(--diana-shadow); padding: 8px 24px 22px; margin-bottom: 22px;
}
.diana-content .product-details-tab-container .tab-pane { text-align: left !important; }
.diana-content .product-details-tab-container .tab-pane > .row {
    margin: 0; padding: 13px 0; border-bottom: 1px solid var(--diana-border); font-size: .92rem;
}
.diana-content .product-details-tab-container .tab-pane > .row > [class*="col-sm-5"] {
    text-align: left !important; padding-left: 0; color: var(--diana-muted);
}
.diana-content .product-details-tab-container .tab-pane > .row > [class*="col-sm-5"] strong { font-weight: 600; }
.diana-content .product-details-tab-container .tab-pane > .row > [class*="col-sm-7"] { color: var(--diana-heading); font-weight: 600; word-break: break-word; }
.diana-content .product-details-tab-container .tab-pane > br { display: none; }
.diana-content .product-details-tab-container .tab-pane > p:last-child { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
#tabAddons > h3, #tabDownloads > h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
#tabAddons .col-10, #tabDownloads .col-10 { flex: 0 0 100%; max-width: 100%; margin-left: 0; }

@media (max-width: 1199.98px) {
    .diana-pd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diana-pd-fact:nth-child(3) { border-left: 0; }
    .diana-pd-fact:nth-child(n+3) { border-top: 1px solid var(--diana-border); }
}
@media (max-width: 575.98px) {
    .diana-pd-head { padding: 18px; }
    .diana-pd-actions, .diana-pd-actions .diana-btn { width: 100%; }
    .diana-pd-facts { grid-template-columns: 1fr; }
    .diana-pd-fact + .diana-pd-fact { border-left: 0; border-top: 1px solid var(--diana-border); }
    .diana-content .product-details-tab-container { padding: 4px 16px 16px; }
}

.diana-svc-nomatch { border-bottom: 1px solid var(--diana-border); }
.diana-svc-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 22px; font-size: .88rem; color: var(--diana-muted);
}
.diana-pager { display: flex; gap: 6px; }
.diana-pager-btn {
    min-width: 34px; height: 34px; padding: 0 8px;
    border: 1px solid var(--diana-border); border-radius: 9px; background: var(--diana-surface);
    font-family: var(--diana-font); font-weight: 600; font-size: .85rem; color: var(--diana-text);
    cursor: pointer;
}
.diana-pager-btn:hover:not(:disabled) { background: var(--diana-surface-3); }
.diana-pager-btn:disabled { color: var(--diana-faint); cursor: default; }
.diana-pager-btn.is-current { background: var(--diana-navy); border-color: var(--diana-navy); color: #fff; }
.diana-pager-gap { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 18px; color: var(--diana-faint); }

.diana-svc-bottom { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.diana-help-banner { display: flex; align-items: center; gap: 18px; padding: 22px 24px; }
.diana-help-banner-icon, .diana-upgrade-banner-icon {
    flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.diana-help-banner-icon { background: var(--diana-primary-soft); color: var(--diana-heading); }
.diana-help-banner-body { flex: 1 1 auto; min-width: 0; }
.diana-help-banner-body strong, .diana-upgrade-banner-body strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.diana-help-banner-body p { margin: 0; color: var(--diana-muted); font-size: .88rem; }
.diana-upgrade-banner {
    display: flex; align-items: center; gap: 18px; padding: 22px 24px;
    background: radial-gradient(120% 140% at 100% 100%, #006293 0%, #00374c 55%, #002230 100%);
    border-color: transparent; color: #fff;
    transition: transform .15s, box-shadow .15s;
}
.diana-upgrade-banner:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(11, 47, 79, .7); }
.diana-upgrade-banner-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.diana-upgrade-banner-body { flex: 1 1 auto; min-width: 0; }
.diana-upgrade-banner-body span { display: block; color: rgba(255, 255, 255, .78); font-size: .88rem; }
.diana-upgrade-banner-go {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-surface); color: var(--diana-heading); font-size: .85rem;
}

/* ---------- Auth pages (login): no sidebar/top bar ---------- */
body.diana-auth-body {
    background:
        radial-gradient(260px 120px at 2% 96%, #fff 0%, #fff 45%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(300px 110px at 14% 100%, #fff 0%, #fff 40%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(260px 120px at 98% 96%, #fff 0%, #fff 45%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(300px 110px at 86% 100%, #fff 0%, #fff 40%, rgba(255, 255, 255, 0) 75%),
        radial-gradient(900px 500px at 15% 110%, #d9eef8 0%, rgba(217, 238, 248, 0) 70%),
        radial-gradient(800px 500px at 100% 0%, #e3f3fa 0%, rgba(227, 243, 250, 0) 60%),
        #f2f6fc;
    background-attachment: fixed;
}
.diana-auth { min-height: 100vh; display: flex; flex-direction: column; padding: 0 40px; }
.diana-auth-head {
    position: sticky; top: 0; z-index: 1020;
    margin: 0 -40px; padding: 12px 40px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--diana-border);
}
.diana-auth-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; }
.diana-auth-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--diana-text); }
.diana-auth-logo:hover { text-decoration: none; color: var(--diana-text); }
.diana-auth-logo img { height: 44px; width: auto; }
.diana-auth-logo .diana-brand-mark { height: 38px; }
.diana-auth-logo strong { font-size: 1.35rem; font-weight: 800; }
.diana-auth-head-actions { display: flex; align-items: center; gap: 10px; }
.diana-auth-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; padding-left: 18px; border-left: 1px solid var(--diana-border); }
.diana-auth-menu-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
    background: transparent; font-family: var(--diana-font); font-size: .9rem; font-weight: 600; color: var(--diana-text-2); white-space: nowrap;
    cursor: pointer; transition: background .15s, color .15s;
}
.diana-auth-menu-btn > .far { font-size: .95rem; color: var(--diana-primary); }
.diana-auth-menu-caret { font-size: .62rem; color: var(--diana-faint); transition: transform .15s; }
.diana-auth-menu-btn:hover, .diana-auth-menu-btn[aria-expanded="true"] { background: var(--diana-primary-soft); color: var(--diana-heading); }
.diana-auth-menu-btn[aria-expanded="true"] .diana-auth-menu-caret { transform: rotate(180deg); }
.diana-auth-menu-btn.is-active { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-auth-menu-btn:focus { outline: 0; }
.diana-auth-menu-btn:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .25); }
.diana-auth-menu-panel {
    width: 320px; max-height: calc(100vh - 96px); overflow-y: auto; margin-top: 8px; padding: 8px;
    border: 1px solid var(--diana-border); border-radius: 16px; background: var(--diana-surface);
    box-shadow: 0 22px 48px -20px rgba(0, 38, 54, .4); font-family: var(--diana-font);
}
.diana-auth-menu-panel.is-grid { width: 600px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.diana-auth-menu-panel.is-grid.show { display: grid; }
.diana-auth-menu-panel .dropdown-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px;
    white-space: normal; color: var(--diana-text);
}
.diana-auth-menu-panel .dropdown-item:hover, .diana-auth-menu-panel .dropdown-item:focus { background: var(--diana-surface-2); color: var(--diana-text); }
.diana-auth-menu-panel .dropdown-item.active { background: var(--diana-primary-soft); color: var(--diana-text); }
.diana-auth-menu-icon {
    flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 10px; background: var(--diana-primary-soft); color: var(--diana-primary); font-size: .95rem;
}
.diana-auth-menu-panel .dropdown-item.active .diana-auth-menu-icon { background: var(--diana-primary); color: #fff; }
.diana-auth-menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.diana-auth-menu-text strong { font-size: .9rem; font-weight: 700; color: var(--diana-heading); }
.diana-auth-menu-text small { font-size: .78rem; line-height: 1.35; color: var(--diana-muted); }
.diana-auth-currency {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px;
    border: 1px solid var(--diana-border-strong); border-radius: 999px; background: var(--diana-surface);
    font-family: var(--diana-font); font-size: .9rem; font-weight: 600; color: var(--diana-text);
    cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.diana-auth-currency:hover { border-color: var(--diana-border-strong); }
.diana-auth-currency:focus { outline: 0; }
.diana-auth-currency:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }
.diana-auth-currency-symbol {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-primary-soft); color: var(--diana-primary); font-size: .9rem; font-weight: 700;
}
.diana-auth-currency .fa-chevron-down { font-size: .65rem; color: var(--diana-faint); transition: transform .15s; }
.diana-auth-currency[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.diana-auth-currency-menu {
    min-width: 190px; margin-top: 8px; padding: 6px;
    border: 1px solid var(--diana-border); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 38, 54, .35);
    font-family: var(--diana-font);
}
.diana-auth-currency-head { padding: 6px 10px 8px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--diana-faint); }
.diana-auth-currency-menu .dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px;
    font-size: .92rem; font-weight: 600; color: var(--diana-text);
}
.diana-auth-currency-menu .dropdown-item:hover { background: var(--diana-surface-2); }
.diana-auth-currency-menu .dropdown-item .fa-check { margin-left: auto; font-size: .8rem; color: var(--diana-primary); visibility: hidden; }
.diana-auth-currency-menu .dropdown-item.active { background: var(--diana-primary-soft); color: var(--diana-text); }
.diana-auth-currency-menu .dropdown-item.active .fa-check { visibility: visible; }
.diana-auth-login { height: 42px; padding: 0 20px; border-radius: 999px; background: var(--diana-dark); }
.diana-auth-login:hover { background: #002a3a; }
.diana-auth-main { display: flex; justify-content: center; margin: auto 0; padding: 32px 0 8px; }

/* Order flow (configure, cart/checkout, complete) reuses the auth shell; the cart root sets its own width and padding */
body.diana-checkout-body { --diana-topbar-h: 68px; }
.diana-checkout-body .diana-auth { padding: 0; }
.diana-checkout-body .diana-auth-head { margin: 0; padding-left: 32px; padding-right: 32px; }
.diana-checkout-body .diana-auth-head-inner { max-width: 1440px; }
.diana-auth-main.diana-checkout-main { display: block; flex: 1 0 auto; width: 100%; margin: 0; padding: 12px 0 0; }
.diana-checkout-body .diana-auth-foot { max-width: 1440px; padding: 22px 32px 20px; border-top: 1px solid var(--diana-border); }
/* Store browsing (plans, domain search, transfers, addons, renewals, domain pricing): same shell, page sets no width of its own */
.diana-store-body .diana-auth-head-inner { max-width: 1320px; }
.diana-auth-main.diana-store-main { max-width: 1384px; margin: 0 auto; padding: 24px 32px 40px; }
.diana-store-body .diana-auth-foot { max-width: 1384px; }
.diana-auth-secure {
    display: inline-flex; align-items: center; gap: 8px; margin-right: 6px;
    padding: 7px 14px; border-radius: 999px; background: var(--diana-green-soft, #e7f8ef);
    font-size: .84rem; font-weight: 600; color: var(--diana-green-text);
}
.diana-auth-secure i { font-size: .8rem; }
.diana-auth-account {
    display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 5px;
    border: 1px solid var(--diana-border-strong); border-radius: 999px; background: var(--diana-surface);
    font-size: .9rem; font-weight: 600; color: var(--diana-text);
}
.diana-auth-account:hover { border-color: var(--diana-border-strong); color: var(--diana-text); text-decoration: none; }
.diana-auth-account .diana-avatar { width: 32px; height: 32px; font-size: .74rem; }
.diana-auth-account-name { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 767.98px) {
    .diana-checkout-body .diana-auth-head { padding-left: 14px; padding-right: 14px; }
    .diana-checkout-body .diana-auth-foot { padding-left: 14px; padding-right: 14px; }
    .diana-auth-main.diana-store-main { padding: 16px 15px 28px; }
    .diana-auth-secure { display: none; }
    .diana-auth-account { padding-right: 5px; }
    .diana-auth-account-name { display: none; }
}

.diana-auth-card {
    width: 100%; max-width: 1180px;
    display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); gap: 22px;
}
.diana-auth-hero {
    position: relative; overflow: hidden;
    min-height: clamp(520px, calc(100vh - 230px), 620px); padding: 48px 50px 0;
    border-radius: 22px; border: 1px solid var(--diana-border-strong);
    background:
        radial-gradient(420px 300px at 0% 0%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(155deg, #eaf6fc 0%, #d9eff9 50%, #c8e7f5 100%);
}
.diana-auth-chip {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; margin-bottom: 28px;
    border-radius: 10px; background: rgba(255, 255, 255, .9);
    font-size: .95rem; font-weight: 500; color: var(--diana-text-3);
    box-shadow: 0 6px 18px -10px rgba(0, 38, 54, .3);
}
.diana-auth-chip i { color: var(--diana-primary); }
.diana-auth-hero h1 {
    position: relative; z-index: 2;
    font-size: 3rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
    color: var(--diana-heading); margin: 0 0 16px;
}
.diana-auth-hero p { position: relative; z-index: 2; font-size: 1.12rem; line-height: 1.6; color: var(--diana-text-2); max-width: 440px; margin: 0; }
.diana-auth-art { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; }
.diana-auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.diana-auth-art .diana-hero-note {
    left: auto; right: 6%; top: 2%; z-index: 2;
    font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
    font-size: 1.75rem; font-weight: 600; line-height: 1.05; color: var(--diana-heading);
    transform: rotate(-12deg);
}
.diana-hero-note-line { display: block; width: 92px; height: 12px; margin-top: 4px; color: var(--diana-heading); }

.diana-auth-panel {
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 48px;
    border-radius: 22px; border: 1px solid var(--diana-border);
    background: var(--diana-surface);
    box-shadow: 0 24px 60px -34px rgba(0, 38, 54, .28);
}
.diana-auth-form h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; color: var(--diana-heading); margin: 0 0 8px; }
.diana-auth-lead { color: var(--diana-muted); font-size: .98rem; margin: 0 0 30px; }
.diana-auth-form .form-group { margin-bottom: 20px; }
.diana-auth-form label { font-weight: 600; font-size: .95rem; color: var(--diana-heading); margin-bottom: 8px; }
.diana-field { position: relative; display: flex; align-items: center; }
.diana-field-icon { position: absolute; left: 16px; color: var(--diana-muted); font-size: 1rem; pointer-events: none; }
.diana-auth-form .diana-field .form-control {
    height: 52px; padding-left: 46px; padding-right: 50px;
    border-radius: 10px; border: 1px solid var(--diana-border-strong); background: var(--diana-surface);
    font-size: .98rem; color: var(--diana-text);
}
.diana-auth-form .diana-field .form-control::placeholder { color: var(--diana-faint); }
.diana-auth-form .diana-field .form-control:focus { border-color: var(--diana-border-accent); box-shadow: 0 0 0 3px rgba(40, 170, 225, .14); }
.diana-field-btn {
    position: absolute; right: 7px;
    width: 38px; height: 38px; border: 0; border-radius: 8px;
    background: transparent; color: var(--diana-text-2); cursor: pointer;
}
.diana-field-btn:hover { background: var(--diana-surface-3); color: var(--diana-text); }
.diana-field-btn:focus { outline: 0; }
.diana-field-btn:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }
.diana-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 26px; }
.diana-check { display: inline-flex; align-items: center; gap: 10px; margin: 0 !important; font-weight: 500 !important; color: var(--diana-text-3); cursor: pointer; }
.diana-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--diana-primary); cursor: pointer; }
.diana-auth-link { font-weight: 600; font-size: .92rem; color: var(--diana-primary); }
.diana-auth-link:hover { color: var(--diana-primary-hover); text-decoration: none; }
.diana-auth-submit {
    width: 100%; height: 54px; border-radius: 10px;
    background: var(--diana-dark); color: #fff; font-size: 1.02rem; font-weight: 600; gap: 12px;
}
.diana-auth-submit:hover { background: #002a3a; color: #fff; }
.diana-auth-submit:focus { outline: 0; }
.diana-auth-submit:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .3); }
.diana-auth-or { display: flex; align-items: center; gap: 16px; margin: 24px 0 18px; color: var(--diana-faint); font-size: .9rem; }
.diana-auth-or::before, .diana-auth-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--diana-surface-3); }
.diana-auth-panel .social-signin-btns { display: flex; flex-direction: column; gap: 10px; }
.diana-auth-panel .social-signin-btns .btn,
.diana-auth-panel .social-signin-btns button {
    width: 100%; height: 52px; border-radius: 10px;
    border: 1px solid var(--diana-border-strong); background: var(--diana-surface); color: var(--diana-text); font-weight: 600;
}
.diana-auth-alt { margin: 28px 0 0; text-align: center; color: var(--diana-muted); font-size: .95rem; }
.diana-auth-alt .diana-auth-link { margin-left: 4px; font-size: .95rem; }
.diana-auth-alt .diana-auth-link i { margin-left: 4px; font-size: .85em; }
.diana-auth-panel .alert { border-radius: 10px; font-size: .9rem; }

.diana-auth-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 0 24px;
    font-size: .9rem; color: var(--diana-muted);
}
.diana-auth-foot-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.diana-auth-foot-links a { color: var(--diana-text-2); }
.diana-auth-foot-links a:hover { color: var(--diana-text); text-decoration: none; }
.diana-auth-foot-locale { padding-left: 30px; border-left: 1px solid var(--diana-border-strong); }
.diana-auth-foot-locale .diana-locale-btn,
.diana-auth-foot-locale > span { display: inline-flex; align-items: center; gap: 8px; padding: 0; font-size: .9rem; color: var(--diana-text-2); }
.diana-auth-foot-locale .diana-locale-btn:hover { color: var(--diana-text); }
.diana-auth-foot-locale .fa-chevron-down { font-size: .7rem; }

/* Shared auth bits: badges, success/error states, captcha, social buttons */
.diana-auth-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px;
    background: var(--diana-primary-soft); color: var(--diana-primary); font-size: 1.3rem;
}
.diana-auth-badge.is-success { background: #e7f8ef; color: #16a34a; }
.diana-auth-badge.is-danger { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-auth-state { text-align: center; }
.diana-auth-state .diana-auth-badge { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 20px; }
.diana-auth-state .alert { text-align: left; }
a.diana-auth-submit { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
input.diana-auth-submit { cursor: pointer; }
input.diana-auth-submit:disabled { opacity: .55; cursor: not-allowed; }
.diana-auth-captcha:not(:empty) { margin: 4px 0 18px; }
.diana-auth-captcha .text-center { text-align: left !important; }
.diana-auth-captcha .row { display: block; margin: 0; }
.diana-auth-captcha [class*="col-"] { flex: none; max-width: none; width: auto; padding: 0; margin: 0 !important; }
.diana-auth-captcha #default-captcha-domainchecker {
    display: grid; grid-template-columns: auto minmax(0, 200px); gap: 10px 14px; align-items: center;
    padding: 14px 16px !important; border: 1px solid var(--diana-border); border-radius: 12px; background: var(--diana-surface-2);
}
.diana-auth-captcha #default-captcha-domainchecker p { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--diana-muted); }
.diana-auth-captcha .captchaimage img { display: block; height: 46px; border-radius: 8px; }
.diana-auth-form .diana-auth-captcha #inputCaptcha,
#registration .diana-auth-captcha #inputCaptcha {
    height: 46px; width: 100%; border: 1px solid var(--diana-border-strong); border-radius: 10px;
    font-size: 1rem; letter-spacing: .2em; text-transform: uppercase;
}
.diana-auth-panel .social-signin-btns > * { width: 100%; }
.diana-auth-panel .social-signin-btns .g_id_signin {
    display: flex; justify-content: center; height: auto; min-height: 44px; padding: 0;
    border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
.diana-auth-panel .social-signin-btns .g_id_signin:focus,
.diana-auth-panel .social-signin-btns .g_id_signin:active { box-shadow: none; outline: 0; }
/* Google's button CSS adds a 2px focus-within outline that stays after a mouse click */
.diana-auth-panel .social-signin-btns .g_id_signin [role="button"]:focus-within { outline: 0; border-color: #dadce0; }
.diana-auth-panel .social-signin-btns .g_id_signin [role="button"]:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .25); border-color: var(--diana-primary); }
.diana-auth-panel .social-signin-btns iframe { margin: 0 auto !important; }
.diana-auth-panel .sub-heading,
.diana-auth-panel .sub-heading-borderless { display: none; }
.diana-auth-form .alert ul { margin: 6px 0 0; padding-left: 18px; }
.diana-pwstrength label { display: block; margin-bottom: 0; }
.diana-pwstrength > br { display: none; }
.diana-pwstrength .progress { height: 8px; border-radius: 99px; margin: 8px 0 12px !important; background: var(--diana-surface-3); }
.diana-pwstrength .alert { padding: 10px 14px; margin-bottom: 22px; border-radius: 10px; background: #f1f8fc; border-color: var(--diana-border); color: var(--diana-text-2); }
.diana-pwstrength .alert i { color: var(--diana-primary); }

/* Hero bullet points (register) */
.diana-auth-points { position: relative; z-index: 2; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.diana-auth-points li { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 500; color: var(--diana-text-3); }
.diana-auth-points i { color: var(--diana-primary); }

/* Wide card: register */
.diana-auth-card-wide { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: stretch; }
.diana-auth-card-wide .diana-auth-hero { min-height: 560px; padding: 44px 40px 0; }
.diana-auth-card-wide .diana-auth-hero h1 { font-size: 2.4rem; }
.diana-auth-card-wide .diana-auth-art { height: 44%; }
.diana-auth-card-wide .diana-auth-art .diana-hero-note { font-size: 1.45rem; right: 4%; }
.diana-reg-panel { justify-content: flex-start; padding: 40px 44px 34px; }
.diana-reg-section { margin: 0 0 8px; padding: 22px 0 6px; border-top: 1px solid var(--diana-border); }
#personalInformation { border-top: 0; padding-top: 4px; }
.diana-reg-section-first { border-top: 0; padding-top: 4px; }

/* Register wizard */
.diana-steps {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    list-style: none; margin: 4px 0 26px; padding: 0;
}
.diana-steps::before {
    content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 2px;
    background: var(--diana-surface-3); z-index: 0;
}
.diana-step { position: relative; z-index: 1; }
.diana-step button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none;
    text-align: left; font-family: var(--diana-font); cursor: pointer;
}
.diana-step button:focus { outline: 0; }
.diana-step button:focus-visible .diana-step-dot { box-shadow: 0 0 0 4px rgba(40, 170, 225, .25); }
.diana-step-dot {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-surface); border: 2px solid var(--diana-border-strong); color: var(--diana-faint); font-weight: 700; font-size: .95rem;
    box-shadow: 0 0 0 6px var(--diana-surface); transition: background .2s, border-color .2s, color .2s;
}
.diana-step-dot .fa-check { display: none; font-size: .85rem; }
.diana-step-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; background: var(--diana-surface); padding-right: 8px; }
.diana-step-text strong { font-size: .92rem; color: var(--diana-muted); font-weight: 700; }
.diana-step-text small { font-size: .78rem; color: var(--diana-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.diana-step.is-active .diana-step-dot { border-color: var(--diana-dark); background: var(--diana-dark); color: #fff; }
.diana-step.is-active .diana-step-text strong { color: var(--diana-heading); }
.diana-step.is-done .diana-step-dot { border-color: #16a34a; background: #16a34a; color: #fff; }
.diana-step.is-done .diana-step-dot > span { display: none; }
.diana-step.is-done .diana-step-dot .fa-check { display: inline-block; }
.diana-step.is-done .diana-step-text strong { color: var(--diana-heading); }
.diana-step.is-locked button { cursor: default; }
.diana-reg-form:not(.is-stepped) .diana-steps,
.diana-reg-form:not(.is-stepped) .diana-step-nav [data-diana-step-next],
.diana-reg-form:not(.is-stepped) .diana-step-nav [data-diana-step-prev] { display: none; }
.diana-reg-form.is-stepped .diana-reg-step { display: none; }
.diana-reg-form.is-stepped .diana-reg-step.is-active { display: block; animation: diana-step-in .25s ease; }
@keyframes diana-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.diana-step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.diana-step-nav > span:empty { display: none; }
.diana-step-nav .diana-step-prev { height: 54px; padding: 0 22px; border-radius: 12px; }
.diana-step-nav .diana-step-next { width: auto; min-width: 200px; margin: 0 0 0 auto; padding: 0 28px; }
/* Parent theme sizes #registration fields with an id selector */
#registration .diana-field .form-control,
#registration .diana-reg-grid .control .form-control,
#registration .diana-reg-grid > .form-group > .form-control { height: 52px; font-size: .98rem; position: static; }
#registration .diana-reg-grid textarea.form-control { height: auto; }
.diana-field-icon, .diana-field-btn { z-index: 3; }
.diana-reg-title {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 16px; font-size: 1rem; font-weight: 700; color: var(--diana-heading);
}
.diana-reg-title span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--diana-primary-soft); color: var(--diana-primary); font-size: .8rem; font-weight: 700;
}
.diana-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.diana-reg-grid .is-full { grid-column: 1 / -1; }
.diana-reg-grid .form-group { margin-bottom: 16px; }
.diana-auth-form label small { color: var(--diana-faint); font-weight: 500; }
.diana-auth-form .diana-field select.form-control { padding-right: 36px; }
.diana-auth-form .diana-reg-grid .control .form-control,
.diana-auth-form .diana-reg-grid > .form-group > select.form-control,
.diana-auth-form .diana-reg-grid > .form-group > .form-control {
    height: 52px; border-radius: 10px; border: 1px solid var(--diana-border-strong); font-size: .98rem;
}
.diana-auth-form .diana-reg-grid textarea.form-control { height: auto; }
.diana-field-phone { display: block; }
.diana-field-phone .intl-tel-input,
.diana-field-phone .iti { display: block; width: 100%; }
.diana-auth-form .diana-field-phone .form-control { padding-left: 14px; }
.diana-auth-form .diana-field-phone .intl-tel-input .form-control,
.diana-auth-form .diana-field-phone .iti .form-control { padding-left: 92px; }
.diana-field-phone .flag-container,
.diana-field-phone .iti__flag-container { padding: 2px; }
.diana-field-phone .selected-flag,
.diana-field-phone .iti__selected-flag { border-radius: 9px 0 0 9px; padding: 0 10px 0 14px; }
.diana-reg-pwtools { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -2px 0 10px; }
.diana-reg-pwtools .password-strength-meter { flex: 1 1 auto; }
.diana-reg-pwtools .progress { height: 8px; border-radius: 99px; background: var(--diana-surface-3); margin: 8px 0 6px; }
.diana-reg-pwtools .diana-btn { flex: 0 0 auto; white-space: nowrap; }
.diana-reg-optin { margin: 6px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--diana-surface-2); border: 1px solid var(--diana-border); }
.diana-reg-optin .diana-check { align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--diana-text-2); }
.diana-reg-optin .diana-check input { margin-top: 2px; flex: 0 0 18px; }
.diana-reg-optin strong { display: block; color: var(--diana-heading); font-size: .92rem; }
.diana-reg-tos { margin: 0 0 18px !important; font-size: .92rem; }
.diana-reg-social { margin-bottom: 4px; }

@media (max-width: 1199.98px) {
    .diana-auth { padding: 0 24px; }
    .diana-auth-head { margin: 0 -24px; padding: 12px 24px; }
    .diana-auth-hero { padding: 40px 38px 0; }
    .diana-auth-hero h1 { font-size: 2.6rem; }
    .diana-auth-panel { padding: 36px 36px; }
}
@media (max-width: 991.98px) {
    .diana-auth { padding: 0 20px; }
    .diana-auth-head { margin: 0 -20px; padding: 12px 20px; }
    .diana-auth-head-inner { flex-wrap: wrap; row-gap: 10px; }
    .diana-auth-nav { position: relative; order: 3; flex: 1 0 100%; gap: 8px; margin: 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--diana-border); }
    .diana-auth-menu { position: static; flex: 1 1 0; }
    .diana-auth-menu-btn { width: 100%; justify-content: center; height: 38px; padding: 0 10px; border: 1px solid var(--diana-border); background: var(--diana-surface); font-size: .86rem; }
    .diana-auth-menu-panel, .diana-auth-menu-panel.is-grid { left: 0; right: 0; width: auto; max-height: calc(100vh - 150px); }
    .diana-auth-card { grid-template-columns: 1fr; max-width: 520px; }
    .diana-auth-card-wide { max-width: 720px; }
    .diana-auth-hero { display: none; }
    .diana-auth-foot { max-width: 520px; }
}
@media (max-width: 575.98px) {
    .diana-auth { padding: 0 14px; }
    .diana-auth-head { margin: 0 -14px; padding: 10px 14px; }
    .diana-auth-logo img { height: 34px; }
    .diana-auth-head-actions { gap: 6px; }
    .diana-auth-menu-panel.is-grid { grid-template-columns: minmax(0, 1fr); }
    .diana-auth-currency { height: 38px; padding: 0 10px 0 4px; gap: 6px; }
    .diana-auth-currency-symbol { width: 28px; height: 28px; }
    .diana-auth-login { height: 38px; padding: 0 14px; }
    .diana-auth-main { padding-top: 20px; }
    .diana-auth-panel { padding: 22px 16px 20px; border-radius: 18px; }
    .diana-auth-form h2 { font-size: 1.45rem; }
    .diana-auth-lead { font-size: .92rem; margin-bottom: 20px; }
    .diana-auth-form .form-group { margin-bottom: 14px; }
    .diana-auth-form label { font-size: .9rem; margin-bottom: 6px; }
    .diana-auth-form .diana-field .form-control,
    #registration .diana-field .form-control,
    #registration .diana-reg-grid .control .form-control,
    #registration .diana-reg-grid > .form-group > .form-control,
    .diana-auth-form .diana-reg-grid > .form-group > select.form-control { height: 46px; font-size: .95rem; }
    #registration .diana-reg-grid textarea.form-control { height: auto; }
    .diana-field-icon { left: 14px; }
    .diana-auth-form .diana-field .form-control { padding-left: 40px; }
    .diana-field-btn { width: 34px; height: 34px; right: 6px; }
    .diana-auth-row { margin-bottom: 18px; }
    .diana-auth-submit, .diana-step-nav .diana-step-prev { height: 48px; font-size: .98rem; }
    .diana-auth-panel .social-signin-btns .btn,
    .diana-auth-panel .social-signin-btns button { height: 46px; }
    .diana-auth-or { margin: 18px 0 14px; }
    .diana-auth-alt { margin-top: 20px; font-size: .9rem; }
    .diana-reg-title { margin-bottom: 12px; }
    .diana-reg-grid { grid-template-columns: 1fr; }
    .diana-step button { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
    .diana-step-text { padding: 0 4px; }
    .diana-step-text small { display: none; }
    .diana-step-nav .diana-step-next { min-width: 0; flex: 1 1 auto; }
    .diana-reg-pwtools { flex-direction: column; align-items: stretch; }
    .diana-auth-foot { justify-content: center; text-align: center; }
    .diana-auth-foot-links { justify-content: center; gap: 18px; }
    .diana-auth-foot-locale { padding-left: 18px; }
}
@media (max-width: 419.98px) {
    .diana-auth-head-inner { gap: 8px; }
    .diana-auth-logo { flex: 1 1 0; min-width: 0; }
    .diana-auth-logo img { height: 30px; max-width: 100%; object-fit: contain; object-position: left center; }
    .diana-auth-head-actions { gap: 4px; flex-shrink: 0; }
    .diana-auth-head-actions .diana-icon-btn { width: 38px; height: 38px; }
    .diana-auth-currency { padding-right: 10px; }
    .diana-auth-currency .fa-chevron-down { display: none; }
    .diana-auth-login { width: 38px; padding: 0; justify-content: center; }
    .diana-auth-login-text { display: none; }
}
/* Short laptop screens (MacBook Air: ~1470x750 browser viewport): keep the card and footer above the fold */
@media (min-width: 992px) and (max-height: 900px) {
    .diana-auth-head { padding-top: 9px; padding-bottom: 9px; }
    .diana-auth-logo img { height: 38px; }
    .diana-auth-currency, .diana-auth-login { height: 38px; }
    .diana-auth-menu-btn { height: 36px; }
    .diana-auth-main { padding: 18px 0 4px; }
    .diana-auth-hero { min-height: clamp(420px, calc(100vh - 210px), 560px); padding: 34px 40px 0; }
    .diana-auth-chip { margin-bottom: 18px; padding: 8px 14px; font-size: .88rem; }
    .diana-auth-hero h1 { font-size: 2.45rem; margin-bottom: 12px; }
    .diana-auth-hero p { font-size: 1rem; }
    .diana-auth-points { margin-top: 16px; gap: 8px; }
    .diana-auth-art { height: 55%; }
    .diana-auth-art .diana-hero-note { font-size: 1.45rem; }
    .diana-auth-panel { padding: 28px 40px; }
    .diana-auth-form h2 { font-size: 1.5rem; margin-bottom: 6px; }
    .diana-auth-lead { margin-bottom: 20px; font-size: .93rem; }
    .diana-auth-form .form-group { margin-bottom: 14px; }
    .diana-auth-form label { margin-bottom: 6px; font-size: .9rem; }
    .diana-auth-form .diana-field .form-control { height: 46px; }
    .diana-auth-row { margin: 0 0 18px; }
    .diana-auth-submit { height: 48px; }
    .diana-auth-or { margin: 16px 0 12px; }
    .diana-auth-panel .social-signin-btns .btn,
    .diana-auth-panel .social-signin-btns button { height: 46px; }
    .diana-auth-alt { margin-top: 18px; font-size: .92rem; }
    .diana-auth-foot { padding: 14px 0 12px; }
    .diana-auth-card-wide .diana-auth-hero { min-height: 480px; padding: 34px 34px 0; }
    .diana-auth-card-wide .diana-auth-hero h1 { font-size: 2.1rem; }
}
@media (min-width: 992px) and (max-height: 720px) {
    .diana-auth-main { padding-top: 12px; }
    .diana-auth-hero { min-height: 400px; padding-top: 28px; }
    .diana-auth-hero h1 { font-size: 2.15rem; }
    .diana-auth-panel { padding: 22px 36px; }
    .diana-auth-lead { margin-bottom: 14px; }
    .diana-auth-form .form-group { margin-bottom: 10px; }
    .diana-auth-form .diana-field .form-control { height: 42px; }
    .diana-auth-row { margin-bottom: 14px; }
    .diana-auth-submit { height: 44px; }
    .diana-auth-or { margin: 12px 0 10px; }
    .diana-auth-alt { margin-top: 12px; }
}

/* ---------- Language & currency modal ---------- */
.diana-locale-modal .modal-dialog { max-width: 680px; }
.diana-locale-modal .modal-content {
    border: 0; border-radius: 20px; overflow: hidden;
    background: var(--diana-surface); font-family: var(--diana-font);
    box-shadow: 0 30px 80px -30px rgba(0, 38, 54, .45);
}
.diana-locale-head {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 24px 64px 22px 28px;
    background: linear-gradient(135deg, #ecf7fc 0%, #dcf0f9 100%);
    border-bottom: 1px solid var(--diana-border);
}
.diana-locale-icon {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-surface); color: var(--diana-primary); font-size: 1.25rem;
    box-shadow: 0 6px 16px -10px rgba(0, 38, 54, .35);
}
.diana-locale-head h5 { margin: 0 0 2px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-locale-head p { margin: 0; font-size: .9rem; color: var(--diana-muted); }
.diana-locale-close {
    position: absolute; top: 18px; right: 18px;
    width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .7); color: var(--diana-text-2); font-size: 1.1rem; cursor: pointer;
}
.diana-locale-close:hover { background: var(--diana-surface); color: var(--diana-text); }
.diana-locale-close:focus { outline: 0; }
.diana-locale-close:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }

.diana-locale-body { padding: 8px 28px 6px; max-height: calc(100vh - 260px); overflow-y: auto; }
.diana-locale-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.diana-locale-section-head h6 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--diana-muted); }
.diana-locale-search { position: relative; margin: 0; width: 220px; max-width: 55%; }
.diana-locale-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--diana-faint); font-size: .85rem; pointer-events: none; }
.diana-locale-search input {
    width: 100%; height: 38px; padding: 0 12px 0 34px;
    border: 1px solid var(--diana-border-strong); border-radius: 10px; background: var(--diana-surface);
    font-size: .88rem; color: var(--diana-text);
}
.diana-locale-search input:focus { outline: 0; border-color: var(--diana-border-accent); box-shadow: 0 0 0 3px rgba(40, 170, 225, .14); }

.diana-locale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.diana-locale-grid .item {
    position: relative; display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 8px 34px 8px 14px;
    border: 1px solid var(--diana-border); border-radius: 12px; background: var(--diana-surface);
    font-size: .92rem; font-weight: 500; color: var(--diana-text-3);
    transition: border-color .15s, background-color .15s, color .15s;
}
.diana-locale-grid .item:hover { border-color: var(--diana-border-strong); background: var(--diana-tint); color: var(--diana-text); text-decoration: none; }
.diana-locale-grid .item:focus { outline: 0; }
.diana-locale-grid .item:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .18); }
.diana-locale-grid .item > i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--diana-primary); opacity: 0; transition: opacity .15s; }
.diana-locale-grid .item.active { border-color: var(--diana-primary); background: var(--diana-surface-3); color: var(--diana-heading); font-weight: 600; }
.diana-locale-grid .item.active > i { opacity: 1; }
.diana-locale-grid .item[hidden] { display: none; }
.diana-locale-grid .item small { color: var(--diana-faint); font-size: .78rem; font-weight: 500; }
.diana-currency-symbol {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-surface-3); color: var(--diana-text-3); font-weight: 700; font-size: .9rem;
}
.diana-locale-grid .item.active .diana-currency-symbol { background: var(--diana-primary); color: #fff; }
.diana-locale-empty { margin: 6px 0 0; padding: 14px; border-radius: 12px; background: var(--diana-surface-2); text-align: center; font-size: .9rem; color: var(--diana-muted); }

.diana-locale-foot {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 20px 28px 24px;
}
.diana-locale-foot .diana-btn { min-width: 110px; justify-content: center; }
.diana-locale-foot .diana-btn-dark { background: var(--diana-dark); }
.diana-locale-foot .diana-btn-dark:hover { background: #002a3a; }

@media (max-width: 575.98px) {
    .diana-locale-modal .modal-dialog { margin: 12px; }
    .diana-locale-head { padding: 20px 56px 18px 20px; }
    .diana-locale-body { padding: 4px 20px 4px; }
    .diana-locale-section-head { flex-wrap: wrap; }
    .diana-locale-search { width: 100%; max-width: none; }
    .diana-locale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diana-locale-foot { padding: 16px 20px 20px; }
    .diana-locale-foot .diana-btn { flex: 1 1 0; }
}

/* ---------- Footer ---------- */
.diana-footer {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 18px 32px 26px;
    font-size: .85rem; color: var(--diana-muted);
}
.diana-footer-links { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.diana-footer-links a { color: var(--diana-muted); }
.diana-footer-links a:hover { color: var(--diana-text); }
.diana-locale-btn { border: 0; background: transparent; color: var(--diana-muted); font-family: var(--diana-font); font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.diana-locale-btn:hover { color: var(--diana-text); }
.diana-footer-right { margin-left: auto; }
.diana-footer-tagline { font-weight: 600; color: var(--diana-text); border-bottom: 2px solid var(--diana-primary); padding-bottom: 2px; }

/* ---------- Generic WHMCS pages inside the shell ----------
   Restyles the stock Twenty-One / Standard Cart markup used by every page without a Diana template. */
.diana-content { font-size: .95rem; }
.diana-content h1, .diana-content h2, .diana-content h3, .diana-content h4 { letter-spacing: -.015em; }
.diana-content .primary-content > h1:first-child,
.diana-content .primary-content > .header-lined h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--diana-heading); margin: 0 0 18px; }
.diana-content .header-lined { border: 0; padding: 0; margin: 0 0 18px; }
.diana-content .header-lined p { color: var(--diana-muted); margin: 4px 0 0; }

/* Cards */
.diana-content .card {
    border-radius: var(--diana-radius); border: 1px solid var(--diana-border);
    box-shadow: var(--diana-shadow); background: var(--diana-surface); overflow: hidden;
}
.diana-content .card + .card { margin-top: 0; }
.diana-content .card-header {
    background: var(--diana-surface); border-bottom: 1px solid var(--diana-border);
    padding: 16px 22px; font-weight: 700; color: var(--diana-heading);
}
.diana-content .card-header .card-title, .diana-content .card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--diana-heading); }
.diana-content .card-body { padding: 22px; }
.diana-content .card-footer { background: var(--diana-surface-2); border-top: 1px solid var(--diana-border); padding: 14px 22px; }
.diana-content .card .card-body > h3.card-title:first-child { margin-bottom: 16px; }

/* Left sidebar panels (primary/secondary sidebar) */
.diana-content .sidebar .card-sidebar { margin-bottom: 16px !important; }
.diana-content .card-sidebar .card-header { padding: 14px 18px; cursor: pointer; }
.diana-content .card-sidebar .card-title { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.diana-content .card-sidebar .card-title > i:first-child { color: var(--diana-primary); width: 18px; text-align: center; }
.diana-content .card-sidebar .card-minimise { margin-left: auto; color: var(--diana-faint); font-size: .75rem; transition: transform .2s; }
.diana-content .card-sidebar .card-minimise.minimised { transform: rotate(180deg); }
.diana-content .card-sidebar .badge { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--diana-primary-soft); color: var(--diana-primary); font-weight: 700; }
.diana-content .card-sidebar .card-body { padding: 16px 18px; font-size: .9rem; color: var(--diana-text-2); }
.diana-content .card-sidebar .list-group-item {
    border: 0; border-top: 1px solid var(--diana-border); padding: 11px 18px;
    color: var(--diana-text-3); font-size: .9rem; font-weight: 500; background: transparent;
    transition: background .12s, color .12s;
}
.diana-content .card-sidebar .list-group-item:first-child { border-top: 0; }
.diana-content .card-sidebar .list-group-item-action:hover { background: var(--diana-surface-2); color: var(--diana-heading); }
.diana-content .card-sidebar .list-group-item.active {
    background: var(--diana-primary-soft); color: var(--diana-primary); font-weight: 600;
    box-shadow: inset 3px 0 0 var(--diana-primary);
}
.diana-content .card-sidebar .list-group-item.disabled { color: var(--diana-faint); }
.diana-content .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; }
.diana-content .sidebar-menu-item-icon-wrapper { width: 18px; text-align: center; color: var(--diana-faint); }
.diana-content .list-group-item.active .sidebar-menu-item-icon-wrapper { color: var(--diana-primary); }
.diana-content .sidebar-menu-item-label { flex: 1 1 auto; min-width: 0; }
.diana-content .sidebar-menu-item-badge .badge { margin: 0; }
.diana-content .card-sidebar .card-footer { padding: 12px 18px; background: var(--diana-surface-2); }
.diana-content .card-sidebar .card-footer .btn { width: 100%; }

/* Buttons */
.diana-content .btn {
    border-radius: 10px; font-weight: 600; font-size: .9rem; padding: 8px 16px;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.diana-content .btn-sm { padding: 6px 12px; font-size: .84rem; border-radius: 9px; }
.diana-content .btn-lg { padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
.diana-content .btn:focus, .diana-content .btn.focus { box-shadow: 0 0 0 3px rgba(40, 170, 225, .2); }
.diana-content .btn-primary, .diana-content .btn-primary:not(:disabled):not(.disabled):active,
.diana-content .btn-success, .diana-content .btn-success:not(:disabled):not(.disabled):active {
    background: var(--diana-dark); border-color: var(--diana-dark); color: #fff;
}
.diana-content .btn-primary:hover, .diana-content .btn-success:hover { background: #002a3a; border-color: #002a3a; color: #fff; }
.diana-content .btn-default, .diana-content .btn-secondary, .diana-content .btn-light, .diana-content .btn-outline-secondary {
    background: var(--diana-surface); border: 1px solid var(--diana-border-strong); color: var(--diana-text);
}
.diana-content .btn-default:hover, .diana-content .btn-secondary:hover, .diana-content .btn-light:hover, .diana-content .btn-outline-secondary:hover { background: var(--diana-surface-3); color: var(--diana-text); border-color: var(--diana-border-strong); }
.diana-content .btn-info { background: var(--diana-primary); border-color: var(--diana-primary); color: #fff; }
.diana-content .btn-info:hover { background: #08679a; border-color: #08679a; }
.diana-content .btn-danger { background: var(--diana-red); border-color: var(--diana-red); }
.diana-content .btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.diana-content .btn-warning { background: var(--diana-orange); border-color: var(--diana-orange); color: #fff; }
.diana-content .btn-outline-primary { color: var(--diana-heading); border-color: var(--diana-border-strong); }
.diana-content .btn-outline-primary:hover { background: var(--diana-dark); border-color: var(--diana-dark); color: #fff; }
.diana-content .btn-outline-danger { color: var(--diana-red); border-color: #f3c0c0; }
.diana-content .btn-outline-danger:hover { background: var(--diana-red); border-color: var(--diana-red); color: #fff; }
.diana-content .btn-link { color: var(--diana-primary); font-weight: 600; }

/* Forms */
.diana-content label, .diana-content .col-form-label, .diana-content .control-label { font-weight: 600; font-size: .88rem; color: var(--diana-text-3); }
.diana-content .form-control, .diana-content .custom-select {
    height: auto; min-height: 44px; padding: 10px 14px;
    border-radius: 10px; border: 1px solid var(--diana-border-strong); background-color: var(--diana-surface);
    font-size: .93rem; color: var(--diana-text);
    transition: border-color .15s, box-shadow .15s;
}
.diana-content textarea.form-control { min-height: 120px; }
.diana-content select.form-control { padding-right: 34px; }
.diana-content .form-control:focus, .diana-content .custom-select:focus { border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-content .form-control:disabled, .diana-content .form-control[readonly] { background: var(--diana-surface-2); color: var(--diana-muted); }
.diana-content .form-control-sm, .diana-content .input-sm { min-height: 36px; padding: 6px 10px; font-size: .86rem; border-radius: 8px; }
.diana-content .input-group-text { border-radius: 10px; border-color: var(--diana-border-strong); background: var(--diana-surface-2); color: var(--diana-muted); }
.diana-content .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.diana-content .input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.diana-content .input-group-append .btn, .diana-content .input-group-append .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.diana-content .input-group-prepend .btn, .diana-content .input-group-prepend .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.diana-content .form-text, .diana-content .help-block { color: var(--diana-muted); font-size: .84rem; }
.diana-content .form-group { margin-bottom: 18px; }
.diana-content .custom-control-label { font-weight: 500; }
.diana-content .custom-control-input:checked ~ .custom-control-label::before { background: var(--diana-dark); border-color: var(--diana-dark); }
.diana-content .field-icon { color: var(--diana-faint); }

/* Tables (stock .table and DataTables lists) */
.diana-content .table { color: var(--diana-text); margin-bottom: 0; font-size: .9rem; }
.diana-content .table thead th {
    border-top: 0; border-bottom: 1px solid var(--diana-border); background: var(--diana-surface-2);
    padding: 12px 16px; color: var(--diana-muted); font-weight: 600; font-size: .8rem;
    text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.diana-content .table td, .diana-content .table th { border-top: 1px solid var(--diana-border); padding: 13px 16px; vertical-align: middle; }
.diana-content .table-striped tbody tr:nth-of-type(odd) { background: var(--diana-surface-2); }
.diana-content .table-hover tbody tr:hover, .diana-content .table-list tbody tr:hover { background: var(--diana-surface-2); }
.diana-content .table-container {
    background: var(--diana-surface); border: 1px solid var(--diana-border);
    border-radius: var(--diana-radius); box-shadow: var(--diana-shadow);
    overflow: hidden; margin-bottom: 24px;
}
.diana-content .table-container .table-list { border: 0 !important; margin: 0 !important; }
.diana-content .table-list { border-collapse: collapse !important; }
.diana-content .table-list > thead > tr > th { background: var(--diana-surface-2); border-bottom: 1px solid var(--diana-border) !important; }
.diana-content .table-list > thead > tr > th:first-child, .diana-content .table-list > tbody > tr > td:first-child { padding-left: 22px; }
.diana-content .table-list > tbody > tr > td { border-top: 0; border-bottom: 1px solid var(--diana-border); background: transparent !important; cursor: pointer; }
.diana-content .table-list > tbody > tr:last-child > td { border-bottom: 0; }
.diana-content .dataTables_wrapper .listtable { background: transparent; }
.diana-content .dataTables_wrapper .dataTables_filter,
.diana-content .dataTables_wrapper .dataTables_length { padding: 16px 22px 0; }
.diana-content .dataTables_wrapper .dataTables_filter input {
    min-height: 40px; width: 240px; margin-left: 8px; padding: 8px 14px;
    border: 1px solid var(--diana-border); border-radius: 10px; font-size: .9rem;
}
.diana-content .dataTables_wrapper .dataTables_filter input:focus { outline: 0; border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-content .dataTables_wrapper .dataTables_length select { min-height: 36px; border-radius: 9px; border: 1px solid var(--diana-border); padding: 4px 28px 4px 10px; }
.diana-content .dataTables_wrapper .dataTables_info { padding: 14px 22px; color: var(--diana-muted); font-size: .86rem; }
.diana-content .dataTables_wrapper .dataTables_paginate { padding: 10px 22px 14px; }
.diana-content .dataTables_wrapper .dataTables_paginate .pagination { margin: 0; justify-content: flex-end; }
.diana-content .dataTables_wrapper table.dataTable { margin-top: 12px !important; margin-bottom: 0 !important; }
.diana-content table.dataTable thead .sorting::before, .diana-content table.dataTable thead .sorting::after,
.diana-content table.dataTable thead .sorting_asc::before, .diana-content table.dataTable thead .sorting_asc::after,
.diana-content table.dataTable thead .sorting_desc::before, .diana-content table.dataTable thead .sorting_desc::after { opacity: .25; }
.diana-content .pagination .page-link {
    min-width: 34px; height: 34px; margin: 0 3px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--diana-border); border-radius: 9px !important;
    color: var(--diana-text); font-weight: 600; font-size: .85rem;
}
.diana-content .pagination .page-item.active .page-link { background: var(--diana-navy); border-color: var(--diana-navy); color: #fff; }
.diana-content .pagination .page-item.disabled .page-link { color: var(--diana-faint); }

/* Status labels (services, domains, invoices, tickets, quotes) */
.diana-content .label {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
    font-size: .76rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-transform: none;
    background: var(--diana-surface-3); color: var(--diana-text-2);
}
.diana-content .label.status { border: 0; }
.diana-content .status-active, .diana-content .status-paid, .diana-content .status-completed, .diana-content .status-accepted,
.diana-content .status-delivered, .diana-content .status-answered, .diana-content .label-success { background: var(--diana-green-soft) !important; color: var(--diana-green) !important; }
.diana-content .status-pending, .diana-content .status-pending-registration, .diana-content .status-pending-transfer, .diana-content .status-payment-pending,
.diana-content .status-unpaid, .diana-content .status-customer-reply, .diana-content .status-onhold, .diana-content .status-inprogress,
.diana-content .status-grace, .diana-content .label-warning { background: var(--diana-orange-soft) !important; color: var(--diana-orange-text) !important; }
.diana-content .status-open, .diana-content .label-info, .diana-content .label-primary { background: var(--diana-primary-soft) !important; color: var(--diana-primary) !important; }
.diana-content .status-suspended, .diana-content .status-fraud, .diana-content .status-overdue, .diana-content .status-collections,
.diana-content .status-redemption, .diana-content .status-dead, .diana-content .status-lost, .diana-content .label-danger { background: var(--diana-red-soft) !important; color: var(--diana-red) !important; }
.diana-content .status-cancelled, .diana-content .status-terminated, .diana-content .status-closed, .diana-content .status-expired,
.diana-content .status-refunded, .diana-content .status-transferred-away, .diana-content .label-default { background: var(--diana-surface-3) !important; color: var(--diana-muted) !important; }
.diana-content .status-custom, .diana-content .label[style*="background"] { color: #fff !important; }
/* WHMCS default ticket status colours (tblticketstatuses) mapped onto the brand pills */
.diana-body .label[style*="#779500" i] { background-color: var(--diana-green-soft) !important; color: var(--diana-green-text) !important; }
.diana-body .label[style*="#000000" i] { background-color: var(--diana-sky-soft) !important; color: var(--diana-primary) !important; }
.diana-body .label[style*="#ff6600" i] { background-color: var(--diana-orange-soft) !important; color: var(--diana-orange-text) !important; }
.diana-body .label[style*="#888888" i] { background-color: var(--diana-surface-3) !important; color: var(--diana-muted) !important; }
.diana-body .label[style*="#224488" i] { background-color: var(--diana-purple-soft) !important; color: var(--diana-purple) !important; }
.diana-body .label[style*="#cc0000" i] { background-color: var(--diana-surface-3) !important; color: var(--diana-heading) !important; }
.diana-body .label[style*="#779500" i], .diana-body .label[style*="#000000" i], .diana-body .label[style*="#ff6600" i],
.diana-body .label[style*="#888888" i], .diana-body .label[style*="#224488" i], .diana-body .label[style*="#cc0000" i] {
    border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: .72rem;
}

/* Label/value grids in stock detail cards (domain details overview) */
.diana-content .card-body > .row.mb-3 { margin-bottom: 0 !important; }
.diana-content .card-body > .row.mb-3 > [class*="col-"] { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--diana-border); font-weight: 600; color: var(--diana-heading); }
.diana-content .card-body > .row.mb-3 > [class*="col-"] > h5 { margin: 0 0 3px; font-size: .78rem; font-weight: 600; color: var(--diana-muted); letter-spacing: 0; }
.diana-content .card-body > .row.mb-3 + h3, .diana-content .card-body > .row.mb-3 + .row:not(.mb-3) { margin-top: 20px; }

/* Open ticket: department picker */
.diana-tk-depts { padding: 26px; }
.diana-tk-depts-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.diana-tk-depts-head h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-tk-depts-head p { margin: 0; color: var(--diana-muted); font-size: .92rem; }
.diana-tk-dept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.diana-tk-dept {
    display: flex; align-items: center; gap: 14px; padding: 18px;
    border: 1px solid var(--diana-border); border-radius: 14px; background: var(--diana-surface); color: var(--diana-text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.diana-tk-dept:hover { text-decoration: none; color: var(--diana-text); border-color: var(--diana-border-accent); box-shadow: 0 10px 24px -14px rgba(40, 170, 225, .45); transform: translateY(-1px); }
.diana-tk-dept-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.diana-tk-dept-body strong { font-size: 1rem; font-weight: 700; color: var(--diana-heading); }
.diana-tk-dept-body span { color: var(--diana-muted); font-size: .86rem; }
@media (max-width: 767.98px) {
    .diana-tk-depts { padding: 18px; }
    .diana-tk-dept-grid { grid-template-columns: 1fr; }
}

/* Choose / switch account */
.diana-acct { max-width: 760px; margin: 8px auto 0; }
.diana-acct-card { padding: 28px; }
.diana-acct-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.diana-acct-head h2, .diana-acct-forced h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-acct-head p { margin: 0; color: var(--diana-muted); font-size: .92rem; }
.diana-acct-head p strong { color: var(--diana-text); font-weight: 600; }
.diana-acct-list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.diana-acct-item {
    display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px;
    border: 1px solid var(--diana-border); border-radius: 14px; background: var(--diana-surface);
    color: var(--diana-text); font-family: var(--diana-font); text-align: left; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.diana-acct-item:hover { border-color: var(--diana-border-accent); box-shadow: 0 10px 24px -14px rgba(40, 170, 225, .45); transform: translateY(-1px); }
.diana-acct-item:focus { outline: 0; }
.diana-acct-item:focus-visible { box-shadow: 0 0 0 4px rgba(40, 170, 225, .18); border-color: var(--diana-primary); }
.diana-acct-item.is-current { border-color: var(--diana-border-accent); background: var(--diana-tint); box-shadow: inset 3px 0 0 var(--diana-primary); }
.diana-acct-item.is-disabled { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; border-color: var(--diana-border); }
.diana-acct-item.is-static { cursor: default; transform: none; box-shadow: none; border-color: var(--diana-border); background: var(--diana-surface-2); }
.diana-acct-avatar { width: 46px; height: 46px; font-size: .9rem; }
.diana-acct-avatar.is-blue { background: var(--diana-primary); }
.diana-acct-avatar.is-green { background: var(--diana-green); }
.diana-acct-avatar.is-purple { background: var(--diana-purple); }
.diana-acct-avatar.is-orange { background: var(--diana-orange); }
.diana-acct-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.diana-acct-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.diana-acct-name strong { font-size: 1rem; font-weight: 700; color: var(--diana-heading); }
.diana-acct-meta { color: var(--diana-muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-acct-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; line-height: 1.3;
}
.diana-acct-badge i { font-size: .65rem; }
.diana-acct-badge.is-owner { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-acct-badge.is-current { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-acct-badge.is-closed { background: var(--diana-surface-3); color: var(--diana-muted); }
.diana-acct-go {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px;
    background: var(--diana-surface-3); color: var(--diana-heading); font-size: .86rem; font-weight: 600; transition: background .15s, color .15s;
}
.diana-acct-item:hover .diana-acct-go, .diana-acct-item.is-current .diana-acct-go { background: var(--diana-dark); color: #fff; }
.diana-acct-item.is-disabled .diana-acct-go { background: transparent; color: var(--diana-faint); }
.diana-acct-help {
    display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 20px;
    border: 1px dashed var(--diana-border-strong); border-radius: var(--diana-radius); background: rgba(255, 255, 255, .6);
}
.diana-acct-help-icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-orange-soft); color: var(--diana-orange);
}
.diana-acct-help > div { flex: 1 1 auto; min-width: 0; }
.diana-acct-help strong { display: block; font-size: .95rem; color: var(--diana-heading); }
.diana-acct-help p { margin: 2px 0 0; color: var(--diana-muted); font-size: .86rem; }
.diana-acct-forced { text-align: center; }
.diana-acct-forced > .diana-stat-icon { display: flex; margin: 0 auto 14px; }
.diana-acct-forced > p { color: var(--diana-muted); max-width: 480px; margin: 0 auto 20px; }
.diana-acct-forced .diana-acct-item { text-align: left; max-width: 480px; margin: 0 auto; }
.diana-acct-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
@media (max-width: 767.98px) {
    .diana-acct-card { padding: 18px; }
    .diana-acct-item { padding: 14px; gap: 12px; flex-wrap: wrap; }
    .diana-acct-body { flex-basis: calc(100% - 58px); }
    .diana-acct-go { width: 100%; justify-content: center; }
    .diana-acct-help { flex-wrap: wrap; }
    .diana-acct-help .diana-btn { width: 100%; }
}

/* Account > User Management + Manage Permissions */
.diana-btn-danger { background: var(--diana-red); color: #fff; border-color: var(--diana-red); }
.diana-btn-danger:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.diana-um { margin-bottom: 22px; overflow: hidden; }
.diana-um-head { display: flex; align-items: center; gap: 16px; padding: 24px 24px 20px; flex-wrap: wrap; }
.diana-um-head-text { flex: 1 1 260px; min-width: 0; }
.diana-um-head h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-um-head p { margin: 0; color: var(--diana-muted); font-size: .9rem; }
.diana-um-head p strong { color: var(--diana-text); }
.diana-um-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--diana-border); border-bottom: 1px solid var(--diana-border); background: var(--diana-surface-2); }
.diana-um-stat { padding: 14px 24px; display: flex; flex-direction: column; }
.diana-um-stat + .diana-um-stat { border-left: 1px solid var(--diana-border); }
.diana-um-stat strong { font-size: 1.25rem; font-weight: 800; color: var(--diana-heading); line-height: 1.2; }
.diana-um-stat span { font-size: .8rem; color: var(--diana-muted); font-weight: 500; }
.diana-um-row { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--diana-border); }
.diana-um-row:last-child { border-bottom: 0; }
.diana-um-row:hover { background: var(--diana-surface-2); }
.diana-um-avatar { width: 44px; height: 44px; font-size: .88rem; background: var(--diana-primary); }
.diana-um-avatar.is-owner { background: var(--diana-navy); }
.diana-um-avatar.is-invite { background: var(--diana-orange-soft); color: var(--diana-orange); font-size: 1rem; }
.diana-um-body { flex: 1 1 auto; min-width: 0; }
.diana-um-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.diana-um-name strong { font-size: .98rem; font-weight: 700; color: var(--diana-heading); overflow-wrap: anywhere; }
.diana-um-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; color: var(--diana-muted); font-size: .84rem; }
.diana-um-meta i { width: 14px; margin-right: 3px; color: var(--diana-faint); }
.diana-um-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 0; }
.diana-um-full { display: inline-flex; align-items: center; gap: 6px; color: var(--diana-muted); font-size: .84rem; font-weight: 600; }
.diana-um-section { padding: 12px 24px; background: var(--diana-surface-2); border-top: 1px solid var(--diana-border); border-bottom: 1px solid var(--diana-border); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--diana-muted); }
.diana-um-note { padding: 14px 24px; border-top: 1px solid var(--diana-border); color: var(--diana-muted); font-size: .84rem; background: var(--diana-surface-2); }
.diana-um-note i { margin-right: 6px; color: var(--diana-primary); }
.diana-acct-badge.is-2fa-on { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-acct-badge.is-pending { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-um-form { padding: 0 24px 24px; margin: 0; }
.diana-um-label { display: block; margin: 4px 0 8px; font-size: .85rem; font-weight: 700; color: var(--diana-heading); }
.diana-um-email { position: relative; max-width: 480px; margin-bottom: 18px; }
.diana-um-email i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--diana-faint); }
.diana-content .diana-um-email .form-control { padding-left: 38px; height: 46px; }
.diana-um-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diana-um-mode { position: relative; margin: 0; cursor: pointer; }
.diana-um-mode input { position: absolute; opacity: 0; pointer-events: none; }
.diana-um-mode-box {
    display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; height: 100%;
    padding: 14px 16px; border: 1.5px solid var(--diana-border); border-radius: 14px; background: var(--diana-surface);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.diana-um-mode-box i { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--diana-surface-3); color: var(--diana-muted); }
.diana-um-mode-box strong { font-size: .92rem; color: var(--diana-heading); }
.diana-um-mode-box small { font-size: .8rem; color: var(--diana-muted); }
.diana-um-mode:hover .diana-um-mode-box { border-color: var(--diana-border-accent); }
.diana-um-mode input:checked + .diana-um-mode-box { border-color: var(--diana-primary); background: var(--diana-tint); box-shadow: 0 0 0 3px rgba(40, 170, 225, .12); }
.diana-um-mode input:checked + .diana-um-mode-box i { background: var(--diana-primary); color: #fff; }
.diana-um-mode input:focus-visible + .diana-um-mode-box { box-shadow: 0 0 0 4px rgba(40, 170, 225, .25); }
.diana-perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.diana-perm {
    display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 13px 14px; cursor: pointer;
    border: 1px solid var(--diana-border); border-radius: 12px; background: var(--diana-surface); transition: border-color .15s, background .15s;
}
.diana-perm:hover { border-color: var(--diana-border-accent); }
.diana-perm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--diana-navy); cursor: pointer; }
.diana-perm:has(input:checked) { border-color: var(--diana-border-accent); background: var(--diana-tint); }
.diana-perm-text { display: flex; flex-direction: column; min-width: 0; }
.diana-perm-text strong { font-size: .9rem; font-weight: 600; color: var(--diana-heading); }
.diana-perm-text small { font-size: .8rem; color: var(--diana-muted); }
.diana-um-submit { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--diana-border); }
.diana-um-permbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--diana-border); padding-top: 18px; }
.diana-um-permbar .diana-um-label { margin: 0; }
.diana-um-permtools { display: flex; gap: 4px; }
.diana-um-permtools .diana-btn { color: var(--diana-primary); }
.diana-um-modal .modal-content { border: 0; border-radius: 18px; }
.diana-um-modal .modal-body { padding: 28px 28px 12px; text-align: center; }
.diana-um-modal .modal-body .diana-stat-icon { display: flex; margin: 0 auto 14px; }
.diana-um-modal .modal-body h4 { font-size: 1.15rem; font-weight: 800; color: var(--diana-heading); margin-bottom: 8px; }
.diana-um-modal .modal-body p { margin-bottom: 6px; font-size: .92rem; }
.diana-um-modal .modal-footer { justify-content: center; border-top: 0; padding: 12px 28px 26px; }
@media (max-width: 767.98px) {
    .diana-um-head { padding: 18px; }
    .diana-um-stat { padding: 12px 14px; }
    .diana-um-row { flex-wrap: wrap; padding: 14px 18px; }
    .diana-um-body { flex-basis: calc(100% - 58px); }
    .diana-um-actions { width: 100%; flex-wrap: wrap; }
    .diana-um-actions .diana-btn { flex: 1 1 auto; }
    .diana-um-form { padding: 0 18px 18px; }
    .diana-um-modes, .diana-perm-grid { grid-template-columns: 1fr; }
    .diana-um-submit .diana-btn { flex: 1 1 auto; }
}

/* Affiliates: sign-up (affiliatessignup.tpl) */
.diana-aff-join { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: 20px; }
.diana-aff-join-main { padding: 30px 32px; }
.diana-aff-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
    background: var(--diana-sky-soft); color: var(--diana-primary); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.diana-aff-eyebrow i { font-size: .7rem; }
.diana-aff-join h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; color: var(--diana-heading); }
.diana-aff-lead { margin: 0 0 22px; color: var(--diana-text-2); font-size: 1rem; }
.diana-aff-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.diana-aff-perk { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--diana-border); border-radius: 14px; background: linear-gradient(160deg, #fff 0%, #f5fbfe 100%); }
.diana-aff-perk strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-primary); line-height: 1.15; overflow-wrap: anywhere; }
.diana-aff-perk span { color: var(--diana-muted); font-size: .82rem; line-height: 1.35; }
.diana-aff-join-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 0; }
.diana-aff-join-form .diana-btn { padding: 14px 26px; font-size: 1rem; }
.diana-aff-join-form small { color: var(--diana-muted); font-size: .84rem; }
.diana-aff-join-side { padding: 30px 32px; border-left: 1px solid var(--diana-border); background: var(--diana-surface-2); }
.diana-aff-join-side h3, .diana-aff-info h3 { margin: 0 0 18px; font-size: 1.05rem; font-weight: 700; color: var(--diana-heading); }
.diana-aff-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.diana-aff-steps li { position: relative; display: flex; gap: 14px; }
.diana-aff-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: -16px; width: 2px; background: var(--diana-surface-3); }
.diana-aff-step-num {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--diana-navy); color: #fff; font-size: .9rem; font-weight: 700;
}
.diana-aff-steps strong { display: block; margin: 6px 0 2px; font-size: .95rem; color: var(--diana-heading); }
.diana-aff-steps p { margin: 0; color: var(--diana-muted); font-size: .86rem; line-height: 1.5; }
.diana-aff-info { padding: 24px 28px; }
.diana-aff-info ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.diana-aff-info li { display: flex; gap: 10px; color: var(--diana-text-2); font-size: .9rem; line-height: 1.55; }
.diana-aff-info li i {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
    background: var(--diana-green-soft); color: var(--diana-green); font-size: .62rem;
}
.diana-aff-off { padding: 48px 24px; }

/* Affiliates: dashboard (affiliates.tpl) */
.diana-aff-link { padding: 22px 24px; margin-bottom: 20px; }
.diana-aff-link-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.diana-aff-link-head .diana-stat-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; font-size: 1.05rem; }
.diana-aff-link-head h2 { margin: 0 0 2px; font-size: 1.1rem; font-weight: 700; color: var(--diana-heading); }
.diana-aff-link-head p { margin: 0; color: var(--diana-muted); font-size: .88rem; }
.diana-aff-link-row { display: flex; gap: 10px; }
.diana-aff-link-field {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; height: 48px;
    border: 1px solid var(--diana-border-strong); border-radius: 12px; background: var(--diana-surface-2);
}
.diana-aff-link-field:focus-within { border-color: var(--diana-border-accent); box-shadow: 0 0 0 3px rgba(40, 170, 225, .14); background: var(--diana-surface); }
.diana-aff-link-field i { color: var(--diana-faint); }
.diana-aff-link-field input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; color: var(--diana-heading); text-overflow: ellipsis;
}
.diana-aff-link-row .diana-btn { flex: 0 0 auto; height: 48px; min-width: 132px; justify-content: center; }
.diana-btn.is-copied { background: var(--diana-green); border-color: var(--diana-green); color: #fff; }
.diana-aff-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.diana-aff-share > span { margin-right: 4px; color: var(--diana-muted); font-size: .84rem; font-weight: 600; }
.diana-aff-share-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--diana-border); border-radius: 999px;
    background: var(--diana-surface); color: var(--diana-text-3); font-size: .84rem; font-weight: 600; transition: border-color .15s, color .15s, background .15s;
}
.diana-aff-share-btn:hover { text-decoration: none; border-color: var(--diana-border-accent); background: var(--diana-tint); color: var(--diana-heading); }
.diana-aff-share-btn.is-whatsapp i { color: #25d366; }
.diana-aff-share-btn.is-facebook i { color: #1877f2; }
.diana-aff-share-btn.is-x i { color: var(--diana-heading); }
.diana-aff-share-btn.is-linkedin i { color: #0a66c2; }
.diana-aff-share-btn:not([class*="is-"]) i { color: var(--diana-primary); }
.diana-stat .diana-aff-since { font-size: 1.25rem; }

.diana-aff-earn { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 24px; }
.diana-aff-earn .diana-card { margin: 0; padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.diana-aff-earn-label { color: var(--diana-muted); font-size: .84rem; font-weight: 600; }
.diana-aff-earn-value { margin: 4px 0 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); line-height: 1.2; overflow-wrap: anywhere; }
.diana-aff-earn-card .diana-stat-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.05rem; margin-bottom: 14px; }
.diana-aff-earn-card small { color: var(--diana-muted); font-size: .82rem; line-height: 1.45; }
.diana-aff-balance.diana-card {
    position: relative; border: 0; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(40, 170, 225, .45) 0%, rgba(40, 170, 225, 0) 55%), linear-gradient(135deg, #00374c 0%, #005677 100%);
    box-shadow: 0 18px 40px -22px rgba(0, 55, 76, .8);
}
.diana-aff-balance .diana-aff-earn-label { color: rgba(255, 255, 255, .78); }
.diana-aff-balance .diana-aff-earn-label i { margin-right: 4px; color: var(--diana-sky); }
.diana-aff-balance .diana-aff-earn-value { color: #fff; font-size: 2.1rem; }
.diana-aff-progress { width: 100%; height: 8px; margin: 4px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.diana-aff-progress span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, #28aae1, #7dd3f5); }
.diana-aff-progress-text { color: rgba(255, 255, 255, .78); font-size: .8rem; }
.diana-aff-withdraw { margin: 16px 0 0; }
.diana-aff-withdraw .diana-btn:disabled { opacity: .5; cursor: not-allowed; }
.diana-aff-withdraw-note { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: .78rem; line-height: 1.45; }
.diana-aff-requested {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); color: #fff; font-size: .86rem; font-weight: 600;
}
.diana-aff-requested i { color: #86efac; }

.diana-aff-table .diana-svc-plan small { display: block; }
.diana-aff-table tbody tr { cursor: default; }
.diana-aff-commission { font-weight: 700; color: var(--diana-green); }
.diana-status.is-terminated, .diana-status.is-cancelled { background: var(--diana-surface-3); color: var(--diana-muted); }

.diana-aff-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.diana-aff-history .diana-card-head h2 i { margin-right: 6px; color: var(--diana-primary); }
.diana-aff-ledger { list-style: none; margin: 0; padding: 0 0 8px; max-height: 340px; overflow-y: auto; }
.diana-aff-ledger li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--diana-border); }
.diana-aff-ledger-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
    background: var(--diana-primary-soft); color: var(--diana-primary); font-size: .8rem;
}
.diana-aff-ledger-icon.is-in { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-aff-ledger-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.diana-aff-ledger-body strong { font-size: .9rem; font-weight: 600; color: var(--diana-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-aff-ledger-body small { color: var(--diana-muted); font-size: .8rem; }
.diana-aff-ledger-amount { flex: 0 0 auto; font-weight: 700; color: var(--diana-heading); white-space: nowrap; }
.diana-aff-ledger-amount.is-in { color: var(--diana-green); }
.diana-aff-ledger-empty { margin: 0; padding: 4px 22px 22px; color: var(--diana-muted); font-size: .88rem; }
.diana-aff-banners .diana-card-body { text-align: center; overflow-x: auto; }

@media (max-width: 1199.98px) {
    .diana-aff-earn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diana-aff-balance { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
    .diana-aff-join { grid-template-columns: 1fr; }
    .diana-aff-join-side { border-left: 0; border-top: 1px solid var(--diana-border); }
    .diana-aff-history { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .diana-aff-link { padding: 18px; }
    .diana-aff-link-row { flex-direction: column; }
    .diana-aff-link-row .diana-btn { width: 100%; }
    .diana-aff-earn { grid-template-columns: 1fr; }
    .diana-aff-share > span { flex-basis: 100%; }
    .diana-stats.diana-aff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .diana-aff-stats .diana-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .diana-aff-stats .diana-stat-icon { width: 38px; height: 38px; border-radius: 11px; font-size: .95rem; }
    .diana-aff-stats .diana-stat-body strong { font-size: 1.3rem; }
    .diana-aff-stats .diana-stat-body strong.diana-aff-since { font-size: 1.05rem; }
}
@media (max-width: 575.98px) {
    .diana-aff-join-main, .diana-aff-join-side { padding: 22px 20px; }
    .diana-aff-perks { grid-template-columns: 1fr; }
    .diana-aff-perk { flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 14px; }
    .diana-aff-perk strong { font-size: 1.15rem; }
    .diana-aff-join-form .diana-btn { width: 100%; justify-content: center; }
    .diana-aff-info { padding: 20px; }
}

/* View ticket conversation */
.diana-content .view-ticket .card-body.p-3 { padding: 20px 22px !important; }
.diana-content .view-ticket > .card-body:first-child { border-bottom: 1px solid var(--diana-border); }
.diana-content .view-ticket .card-title { font-size: 1.15rem; font-weight: 800; }
.diana-content .view-ticket .card-body + .card-body { border-top: 0; padding-top: 6px; }
.diana-content .ticket-reply { border: 0; margin: 0; }
.diana-content .ticket-reply .posted-by {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0;
    background: none; border: 0; color: var(--diana-muted); font-size: .84rem;
}
.diana-content .ticket-reply .posted-by-name { color: var(--diana-heading); font-weight: 700; }
.diana-content .ticket-reply .requestor-badge { margin-left: auto; float: none !important; }
.diana-content .ticket-reply .requestor-type-operator { background: var(--diana-primary-soft) !important; color: var(--diana-primary) !important; }
.diana-content .ticket-reply .message {
    padding: 16px 18px !important; border-radius: 4px 16px 16px 16px;
    background: var(--diana-surface-2); border: 1px solid var(--diana-border); color: var(--diana-text-3); line-height: 1.65;
}
.diana-content .ticket-reply.staff .message { background: var(--diana-tint); border-color: var(--diana-border-accent); border-left: 3px solid var(--diana-primary); }
.diana-content .ticket-reply .message p:last-child { margin-bottom: 0; }
.diana-content .ticket-reply .attachments { padding: 10px 0 0 !important; font-size: .86rem; }
.diana-content .ticket-reply .rating, .diana-content .ticket-reply .rating-done { margin-top: 10px; }
.diana-content .custom-file-label { border-radius: 10px; border-color: var(--diana-border-strong); height: 44px; padding: 10px 14px; line-height: 1.5; }
.diana-content .custom-file-label::after { height: 42px; padding: 10px 14px; line-height: 1.5; border-radius: 0 10px 10px 0; background: var(--diana-surface-2); }
.diana-content .custom-file { height: 44px; }
.diana-content .attachment-group .custom-file-label { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.diana-content .md-editor, .diana-content .md-editor > .md-header { border-radius: 12px 12px 0 0; }
.diana-content .md-editor { border-color: var(--diana-border-strong); border-radius: 12px; overflow: hidden; }
.diana-content .md-editor > textarea { border-radius: 0; }
.diana-content .md-editor .btn-group .btn { border-radius: 8px; }
.diana-content .badge { border-radius: 999px; font-weight: 700; }

/* Alerts */
.diana-content .alert { border-radius: 14px; border: 1px solid transparent; padding: 14px 18px; font-size: .92rem; }
.diana-content .alert-success { background: #ecfdf3; border-color: #c7f0d8; color: var(--diana-green-text); }
.diana-content .alert-info { background: #eef5ff; border-color: #d3e4fd; color: #1e4f9c; }
.diana-content .alert-warning { background: #fff8eb; border-color: #fde3b0; color: var(--diana-orange-text); }
.diana-content .alert-danger { background: #fef2f2; border-color: #fbd0d0; color: #991b1b; }
.diana-content .alert a:not(.btn) { color: inherit; font-weight: 700; text-decoration: underline; }

/* Tabs */
.diana-content .nav-tabs { border-bottom: 1px solid var(--diana-border); gap: 4px; }
.diana-content .nav-tabs .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px;
    padding: 12px 16px; color: var(--diana-muted); font-weight: 600; font-size: .92rem; background: transparent;
}
.diana-content .nav-tabs .nav-link:hover { color: var(--diana-heading); border-bottom-color: var(--diana-border-strong); }
.diana-content .nav-tabs .nav-link.active, .diana-content .nav-tabs .nav-item.show .nav-link { color: var(--diana-primary); border-bottom-color: var(--diana-primary); background: transparent; }
.diana-content .tab-content > .tab-pane { padding-top: 4px; }
.diana-content .nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: var(--diana-text-2); }
.diana-content .nav-pills .nav-link.active { background: var(--diana-dark); color: #fff; }

/* List groups, wells, misc */
.diana-content .list-group-item { border-color: var(--diana-border); }
.diana-content .list-group-item.active { background: var(--diana-primary-soft); border-color: var(--diana-border); color: var(--diana-primary); }
.diana-content .well, .diana-content .bg-light { background: var(--diana-surface-2) !important; border: 1px solid var(--diana-border); border-radius: 14px; }
.diana-content hr { border-top-color: var(--diana-border); }
.diana-content .text-muted { color: var(--diana-muted) !important; }
.diana-content .modal-content { border: 0; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 38, 54, .4); }
.diana-content .modal-header { border-bottom-color: var(--diana-border); padding: 18px 22px; }
.diana-content .modal-footer { border-top-color: var(--diana-border); padding: 14px 22px; }
.diana-content .tiles .tile, .diana-content .client-home-cards .card { border-radius: var(--diana-radius); }
.diana-content .view-filter-btns .btn { border-radius: 999px; }

/* Product details (stock clientareaproductdetails parts reused elsewhere) */
.diana-content .product-status { border-radius: 0 0 14px 14px; font-weight: 700; letter-spacing: .04em; }

/* Knowledgebase / announcements / downloads lists */
.diana-content .kb-search .form-control, .diana-content .kb-search .btn { min-height: 48px; }
.diana-content .list-group-flush .list-group-item { padding: 14px 22px; }
.diana-content .announcement-single, .diana-content .kb-article-content { line-height: 1.7; color: var(--diana-text-3); }

/* Parent theme fixed-width cards (login, register, password reset) must shrink on phones */
.diana-body .mw-540 { min-width: 0; width: 100%; max-width: 540px; margin-left: auto; margin-right: auto; }

/* Shopping cart pages get the full width */
.diana-in-cart section#main-body.diana-content { padding-left: 0; padding-right: 0; }
.diana-in-cart .diana-container { max-width: none; }

/* ---------- SupportPal pages (templates/supportpal, includes/hooks/diana/supportpal.php) ---------- */
.diana-sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.diana-sp-main, .diana-sp-form { min-width: 0; }
.diana-sp-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--diana-topbar-h) + 20px); }
.diana-sp-aside .diana-card { margin-bottom: 0; }
.diana-sp-hero .diana-page-hero-art { width: 36%; }

/* Open a ticket + reply forms */
.diana-sp-compose { padding: 26px 28px; overflow: visible; }
.diana-sp-compose-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -2px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--diana-border); }
.diana-sp-compose-head h2 { margin: 0 0 3px; font-size: 1.18rem; font-weight: 800; letter-spacing: -.015em; color: var(--diana-heading); }
.diana-sp-compose-head p { margin: 0; color: var(--diana-muted); font-size: .88rem; }
.diana-sp-compose-reply { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--diana-tint); color: var(--diana-primary); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.diana-sp-compose .form-group { margin-bottom: 20px; }
.diana-sp-compose label, .diana-sp-label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .88rem; color: var(--diana-text-3); }
.diana-sp-compose label.diana-check, .diana-sp-compose label.error { display: inline-flex; margin-bottom: 0; }
.diana-sp-compose label.error { display: block; }
.diana-sp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.diana-sp-form.is-switching [data-diana-sp-swap] { opacity: .45; pointer-events: none; transition: opacity .15s; }
.diana-sp-form.is-switching .diana-sp-select-icon { animation: diana-sp-pulse .8s ease-in-out infinite alternate; }
@keyframes diana-sp-pulse { to { opacity: .4; } }

.diana-sp-select { position: relative; }
.diana-sp-select-icon.diana-stat-icon { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; font-size: .88rem; pointer-events: none; }
.diana-sp-select-icon.is-navy { background: var(--diana-tint); color: var(--diana-heading); }
.diana-content .diana-sp-select select.form-control {
    min-height: 46px; padding-left: 50px; padding-right: 40px; font-weight: 600; color: var(--diana-heading);
    -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: none; cursor: pointer;
}
.diana-sp-select-caret { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--diana-muted); font-size: .72rem; pointer-events: none; }

.diana-sp-select-dot {
    position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px;
    pointer-events: none; background: var(--diana-green-soft); transition: background .15s;
}
.diana-sp-select-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--diana-green); box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); }
.diana-sp-select-dot.is-blue { background: var(--diana-primary-soft); }
.diana-sp-select-dot.is-blue::after { background: var(--diana-sky); }
.diana-sp-select-dot.is-orange { background: var(--diana-orange-soft); }
.diana-sp-select-dot.is-orange::after { background: var(--diana-orange); }
.diana-sp-select-dot.is-red { background: var(--diana-red-soft); }
.diana-sp-select-dot.is-red::after { background: var(--diana-red); }
html[data-theme="dark"] .diana-sp-select-dot::after { box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }

.diana-sp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.diana-sp-fields.is-empty { display: none; }
.diana-sp-fields > *, .diana-sp-fields .form-customfields { min-width: 0; }
.diana-sp-fields .form-customfields.is-wide, .diana-sp-fields.is-stacked { grid-column: 1 / -1; }
.diana-sp-fields.is-stacked { grid-template-columns: minmax(0, 1fr); }
.diana-sp-help { display: block; margin-top: 6px; color: var(--diana-muted); font-size: .8rem; line-height: 1.45; }
.diana-sp-help p { margin: 0; }
.diana-sp-req { color: var(--diana-red); }
.diana-sp-choices { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 4px; }
.diana-content .diana-sp-fields select[multiple].form-control { min-height: 110px; }

/* Message box with attachments (composer.tpl) */
.diana-sp-composer { position: relative; border: 1px solid var(--diana-border-strong); border-radius: 12px; background: var(--diana-surface); transition: border-color .15s, box-shadow .15s; }
.diana-sp-composer:focus-within { border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-sp-composer:has(.error) { border-color: var(--diana-red); }
.diana-content .diana-sp-composer .diana-sp-composer-text {
    display: block; width: 100%; min-height: 150px; padding: 14px 16px; border: 0; border-radius: 12px 12px 0 0;
    background: transparent; box-shadow: none; resize: vertical; line-height: 1.6;
}
.diana-content .diana-sp-composer .diana-sp-composer-text:focus { box-shadow: none; }
.diana-sp-composer label.error { padding: 0 16px 8px; margin: 0; }

/* Rich text (initSpEditor): the textarea stays in the layout (1px) so jQuery-validate still checks it */
.diana-content .diana-sp-composer.is-rich .diana-sp-composer-text {
    position: absolute; left: 16px; top: 54px; width: 1px !important; height: 1px !important; min-height: 0; padding: 0; opacity: 0; overflow: hidden; pointer-events: none; resize: none;
}
.diana-sp-rte-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--diana-border); background: var(--diana-surface-2); border-radius: 12px 12px 0 0; }
.diana-sp-rte-bar button {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; padding: 0; border: 0; border-radius: 7px;
    background: transparent; color: var(--diana-text-2); font-size: .82rem; cursor: pointer; transition: background .12s, color .12s;
}
.diana-sp-rte-bar button:hover { background: var(--diana-surface-3); color: var(--diana-heading); }
.diana-sp-rte-bar button[aria-pressed="true"] { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-sp-rte-bar button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(40, 170, 225, .3); }
.diana-sp-rte-bar[hidden], .diana-sp-rte-link[hidden], .diana-sp-rte-link [hidden] { display: none; }
.diana-sp-rte-sep { width: 1px; height: 18px; margin: 0 5px; background: var(--diana-border-strong); }
.diana-sp-rte-link { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--diana-border); background: var(--diana-surface); }
.diana-sp-rte-link > i { color: var(--diana-primary); font-size: .8rem; }
.diana-sp-rte-link input {
    flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--diana-border-strong); border-radius: 8px;
    background: var(--diana-surface); color: var(--diana-text); font-size: .86rem;
}
.diana-sp-rte-link input:focus { outline: 0; border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-sp-rte-link button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--diana-text-2); font-size: .82rem; font-weight: 700; cursor: pointer; }
.diana-sp-rte-link button:hover { background: var(--diana-surface-3); }
.diana-sp-rte-link button.is-apply { background: var(--diana-primary); color: #fff; }
.diana-sp-rte-link button.is-apply:hover { background: var(--diana-primary-hover); }
.diana-sp-rte-link button.is-close { width: 32px; padding: 0; color: var(--diana-muted); }
.diana-sp-rte {
    position: relative; padding: 14px 16px; color: var(--diana-text); font-size: .94rem; line-height: 1.6;
    overflow-wrap: anywhere; outline: 0; max-height: 60vh; overflow-y: auto; cursor: text;
}
.diana-sp-rte.is-empty::before { content: attr(data-placeholder); position: absolute; left: 16px; right: 16px; top: 14px; color: var(--diana-faint); pointer-events: none; }
.diana-sp-rte p { margin: 0 0 .55em; }
.diana-sp-rte > :last-child { margin-bottom: 0; }
.diana-sp-rte ul, .diana-sp-rte ol, .diana-sp-msg-body ul, .diana-sp-msg-body ol { margin: 0 0 .55em; padding-left: 1.5em; }
.diana-sp-rte li, .diana-sp-msg-body li { margin: .15em 0; }
.diana-sp-rte blockquote { margin: .55em 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--diana-border-strong); color: var(--diana-muted); }
.diana-sp-rte pre, .diana-sp-msg-body pre { margin: .55em 0; padding: 10px 12px; border-radius: 8px; background: var(--diana-surface-3); color: var(--diana-heading); font-size: .84rem; white-space: pre-wrap; }
.diana-sp-rte code, .diana-sp-msg-body code { padding: 1px 5px; border-radius: 5px; background: var(--diana-surface-3); color: var(--diana-heading); font-size: .86em; }
.diana-sp-rte pre code, .diana-sp-msg-body pre code { padding: 0; background: none; }
.diana-sp-rte a { color: var(--diana-primary); text-decoration: underline; }
.diana-sp-composer.is-rich label.error { padding-top: 0; }
.diana-sp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 14px 12px; }
.diana-sp-chip {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 11px;
    border: 1px solid var(--diana-border); border-radius: 10px; background: var(--diana-surface-2); font-size: .82rem;
}
.diana-sp-chip > i { color: var(--diana-primary); }
.diana-sp-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-weight: 600; color: var(--diana-heading); }
.diana-sp-chip small { color: var(--diana-muted); }
.diana-sp-chip button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--diana-muted); font-size: .72rem; cursor: pointer; }
.diana-sp-chip button:hover { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-sp-composer-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--diana-border); background: var(--diana-surface-2); border-radius: 0 0 12px 12px; }
.diana-sp-compose .diana-sp-attach-btn, .diana-sp-attach-btn {
    display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 12px; border-radius: 8px;
    color: var(--diana-primary); font-size: .84rem; font-weight: 700; cursor: pointer; transition: background .15s;
}
.diana-sp-attach-btn:hover { background: var(--diana-primary-soft); }
.diana-sp-file-input:focus-visible + .diana-sp-composer-hint, .diana-sp-composer-bar:has(.diana-sp-file-input:focus-visible) .diana-sp-attach-btn { box-shadow: 0 0 0 3px rgba(40, 170, 225, .3); }
.diana-sp-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.diana-sp-composer-hint { color: var(--diana-faint); font-size: .78rem; }
.diana-sp-drop {
    position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; gap: 10px;
    border: 2px dashed var(--diana-primary); border-radius: 12px; background: rgba(230, 245, 252, .92);
    color: var(--diana-primary); font-weight: 700; font-size: .95rem; pointer-events: none;
}
.diana-sp-drop i { font-size: 1.4rem; }
.diana-sp-composer.is-dragging .diana-sp-drop { display: flex; }
html[data-theme="dark"] .diana-sp-drop { background: rgba(15, 30, 45, .92); }
.diana-sp-attach-error { margin: 8px 0 0; color: var(--diana-red); font-size: .8rem; font-weight: 600; }

.diana-sp-cc { margin: 0 0 20px; border: 1px solid var(--diana-border); border-radius: 12px; background: var(--diana-surface); }
.diana-sp-cc summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--diana-text-3); list-style: none; }
.diana-sp-cc summary::-webkit-details-marker { display: none; }
.diana-sp-cc summary > i:first-child { color: var(--diana-primary); }
.diana-sp-cc summary .text-muted { font-weight: 500; }
.diana-sp-cc-caret { margin-left: auto; color: var(--diana-faint); font-size: .7rem; transition: transform .15s; }
.diana-sp-cc[open] .diana-sp-cc-caret { transform: rotate(180deg); }
.diana-sp-cc[open] summary { border-bottom: 1px solid var(--diana-border); }
.diana-sp-cc-body { padding: 14px; }
.diana-sp-cc-body .form-control + .form-control, #ccContainer .form-control { margin-top: 8px !important; }
.diana-sp-cc-body .diana-btn-link { padding-left: 0; margin-top: 6px; color: var(--diana-primary); }

.diana-sp-picker { padding: 0 26px 26px; }
.diana-sp-picker-row { display: flex; gap: 12px; align-items: flex-start; }
.diana-sp-picker-field { flex: 1 1 auto; min-width: 0; }
.diana-sp-picker .diana-btn { min-height: 46px; }

.diana-sp-suggest { margin: -6px 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--diana-tint); border: 1px solid var(--diana-border-accent); }
.diana-sp-suggest-head { display: flex; gap: 12px; margin-bottom: 6px; }
.diana-sp-suggest-head > i { color: var(--diana-orange); font-size: 1.1rem; margin-top: 2px; }
.diana-sp-suggest-head strong { display: block; color: var(--diana-heading); font-size: .92rem; }
.diana-sp-suggest-head span { color: var(--diana-muted); font-size: .82rem; }
.diana-sp-suggest .sp-articles p { margin: 8px 0 0 30px; font-size: .88rem; }
.diana-sp-suggest .sp-articles a { font-weight: 600; }

.diana-sp-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--diana-border); }
.diana-sp-submit-bar p { margin: 0; color: var(--diana-muted); font-size: .86rem; }
.diana-sp-submit-bar p i { color: var(--diana-faint); margin-right: 4px; }
.diana-sp-submit-bar p strong { color: var(--diana-heading); }
.diana-sp-submit-bar .diana-btn { min-width: 170px; }

/* SupportPal's jQuery validation messages */
.diana-content label.error {
    display: block; margin: 6px 0 0; padding: 0; background: none; border-radius: 0;
    color: var(--diana-red); font-size: .8rem; font-weight: 600; white-space: normal;
}
.diana-content .form-control.error { border-color: var(--diana-red); }
.diana-content .form-control.error:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }

.diana-sp-tips { padding: 20px 22px; }
.diana-sp-tips h3, .diana-sp-details h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--diana-heading); }
.diana-sp-tips h3 i { color: var(--diana-orange); margin-right: 4px; }
.diana-sp-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diana-sp-tips li { display: flex; gap: 10px; color: var(--diana-text-2); font-size: .86rem; line-height: 1.45; }
.diana-sp-tips li i { color: var(--diana-green); font-size: .75rem; margin-top: 4px; }
.diana-sp-ai {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff;
    background: linear-gradient(135deg, #00374c 0%, #006293 100%); border-color: transparent;
}
.diana-sp-ai:hover { color: #fff; text-decoration: none; box-shadow: 0 14px 30px -16px rgba(0, 55, 76, .7); }
.diana-sp-ai-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #7fd3f5; font-size: 1.15rem; }
.diana-sp-ai-body { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.35; }
.diana-sp-ai-body strong { font-size: .95rem; }
.diana-sp-ai-body span { color: rgba(255, 255, 255, .75); font-size: .8rem; }
.diana-sp-mytickets { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--diana-text); font-weight: 600; font-size: .9rem; }
.diana-sp-mytickets:hover { text-decoration: none; color: var(--diana-primary); }
.diana-sp-mytickets i:first-child { color: var(--diana-primary); }
.diana-sp-mytickets span { flex: 1 1 auto; }
.diana-sp-mytickets i:last-child { color: var(--diana-faint); font-size: .75rem; }
.diana-sp-confirm { padding: 40px 28px; text-align: center; }
.diana-sp-confirm .diana-stat-icon { margin-bottom: 14px; }
.diana-sp-confirm h2 { font-size: 1.35rem; font-weight: 800; color: var(--diana-heading); }
.diana-sp-confirm p { color: var(--diana-muted); }

/* Tickets list */
[data-diana-sp-tickets] [hidden], [data-diana-sp-submit] [hidden] { display: none !important; }
.diana-sp-skeleton td span {
    display: block; height: 10px; width: 70%; border-radius: 6px;
    background: linear-gradient(90deg, var(--diana-surface-3) 0%, var(--diana-surface-2) 50%, var(--diana-surface-3) 100%);
    background-size: 200% 100%; animation: diana-sp-shimmer 1.2s ease-in-out infinite;
}
.diana-sp-skeleton td span + span { margin-top: 8px; }
.diana-sp-skeleton td span.is-short { width: 40%; }
.diana-sp-skeleton td span.is-pill { width: 72px; height: 22px; border-radius: 999px; }
.diana-svc-table tbody tr.diana-sp-skeleton { cursor: default; }
.diana-svc-table tbody tr.diana-sp-skeleton:hover { background: transparent; }
@keyframes diana-sp-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.diana-sp-priority { display: inline-flex; align-items: center; gap: 7px; color: var(--diana-text-2); }
.diana-sp-dot { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.diana-sp-priority .diana-sp-dot { margin-right: 0; }
.diana-sp-more { margin: 0; padding: 0 22px 16px; color: var(--diana-muted); font-size: .82rem; }
.diana-sp-list .diana-svc-plan small { display: block; }
.diana-sp-list .diana-svc-plan small i { margin: 0 2px; }

/* View ticket */
.diana-sp-ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; overflow: visible; }
.diana-sp-ticket-title { min-width: 0; flex: 1 1 420px; }
.diana-sp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--diana-muted); font-size: .84rem; font-weight: 600; }
.diana-sp-back:hover { color: var(--diana-primary); text-decoration: none; }
.diana-sp-ticket-title h1 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); overflow-wrap: anywhere; }
.diana-sp-ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--diana-muted); font-size: .86rem; }
.diana-sp-ticket-meta span:first-child { font-weight: 700; color: var(--diana-text-2); }
.diana-sp-ticket-meta i { color: var(--diana-faint); margin-right: 3px; }
.diana-sp-ticket-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.diana-sp-ticket-actions .diana-status { padding: 6px 14px; font-size: .8rem; }

.diana-sp-thread { padding: 4px 24px; }
.diana-sp-msg { display: flex; gap: 14px; padding: 20px 0; }
.diana-sp-msg + .diana-sp-msg { border-top: 1px solid var(--diana-border); }
.diana-sp-avatar {
    position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-sky-soft); color: var(--diana-primary); font-weight: 700; font-size: .95rem;
}
.diana-sp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diana-sp-msg.is-staff .diana-sp-avatar { background: #00374c; color: #fff; }
.diana-sp-msg-main { flex: 1 1 auto; min-width: 0; }
.diana-sp-msg-main header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.diana-sp-msg-main header strong { color: var(--diana-heading); font-size: .93rem; }
.diana-sp-role { padding: 2px 9px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-muted); font-size: .7rem; font-weight: 700; }
.diana-sp-msg.is-staff .diana-sp-role { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-sp-msg-main time { margin-left: auto; color: var(--diana-faint); font-size: .8rem; }
.diana-sp-msg-body {
    padding: 14px 16px; border-radius: 4px 14px 14px 14px; overflow-wrap: anywhere;
    background: var(--diana-surface-2); border: 1px solid var(--diana-border); color: var(--diana-text-3); font-size: .92rem; line-height: 1.65;
}
.diana-sp-msg.is-staff .diana-sp-msg-body { background: var(--diana-tint); border-color: var(--diana-border-accent); border-left: 3px solid var(--diana-primary); }
.diana-sp-msg-body p { margin: 0 0 .6em; }
.diana-sp-msg-body p:last-child { margin-bottom: 0; }
.diana-sp-msg-body img { max-width: 100%; height: auto; border-radius: 8px; }
.diana-sp-msg-body blockquote { margin: .6em 0; padding-left: 12px; border-left: 3px solid var(--diana-border-strong); color: var(--diana-muted); }
.diana-sp-msg-body pre { white-space: pre-wrap; background: var(--diana-surface-3); padding: 10px 12px; border-radius: 8px; }
.diana-sp-files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.diana-sp-files a {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 12px;
    border: 1px solid var(--diana-border); border-radius: 10px; background: var(--diana-surface); color: var(--diana-text); font-size: .84rem; font-weight: 600;
}
.diana-sp-files a:hover { text-decoration: none; border-color: var(--diana-border-accent); color: var(--diana-primary); }
.diana-sp-files a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-sp-files i { color: var(--diana-primary); }
.diana-sp-files small { color: var(--diana-muted); font-weight: 500; }

.diana-sp-reply { padding: 22px 24px; overflow: visible; }
.diana-sp-reply-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.diana-sp-reply-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--diana-heading); }
.diana-sp-reply-head h2 label { margin: 0; font: inherit; color: inherit; }
.diana-sp-reply-head span:not(.diana-sp-avatar) { color: var(--diana-muted); font-size: .84rem; }
.diana-sp-avatar.is-me { background: var(--diana-sky-soft); color: var(--diana-primary); }
.diana-sp-reply .diana-sp-composer:not(.is-rich) .diana-sp-composer-text { min-height: 120px !important; }
.diana-sp-reply .diana-sp-help { margin-bottom: 16px; }

.diana-sp-details { padding: 20px 22px; overflow: visible; }
.diana-sp-details dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: .88rem; }
.diana-sp-details dt { color: var(--diana-muted); font-weight: 500; }
.diana-sp-details dd { margin: 0; color: var(--diana-heading); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.diana-sp-extra .diana-sp-fields .form-group { margin-bottom: 14px; }
.diana-sp-extra .diana-btn { width: 100%; }

/* Knowledgebase, announcements, downloads */
.diana-sp-search {
    display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 16px; padding: 6px 6px 6px 16px;
    background: var(--diana-surface); border: 1px solid var(--diana-border-strong); border-radius: 14px; box-shadow: var(--diana-shadow);
}
.diana-sp-search:focus-within { border-color: var(--diana-primary); box-shadow: 0 0 0 3px rgba(40, 170, 225, .15); }
.diana-sp-search > i { color: var(--diana-faint); }
.diana-sp-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--diana-font); font-size: .95rem; color: var(--diana-text); }
.diana-sp-kb-hero .diana-page-hero-copy { max-width: 600px; flex: 1 1 auto; min-width: 0; }
.diana-sp-kb-title { margin: 6px 0 14px; font-size: 1.15rem; font-weight: 700; color: var(--diana-heading); }
.diana-sp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 18px; }
.diana-sp-cat { margin: 0; padding: 18px 20px; display: flex; flex-direction: column; }
.diana-sp-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--diana-heading); }
.diana-sp-cat-head:hover { text-decoration: none; color: var(--diana-primary); }
.diana-sp-cat-head .diana-stat-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.diana-sp-cat-head strong { flex: 1 1 auto; font-size: 1rem; }
.diana-sp-count { padding: 2px 9px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-muted); font-size: .75rem; font-weight: 700; }
.diana-sp-cat ul { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.diana-sp-cat li { padding: 7px 0; border-top: 1px solid var(--diana-border); font-size: .88rem; }
.diana-sp-cat li a { color: var(--diana-text-2); }
.diana-sp-cat li a:hover { color: var(--diana-primary); text-decoration: none; }
.diana-sp-cat li i { color: var(--diana-faint); width: 16px; }
.diana-sp-cat-more { margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--diana-primary); }
.diana-sp-articles { overflow: hidden; }
.diana-sp-article { display: flex; align-items: center; gap: 14px; padding: 15px 22px; color: var(--diana-text); }
.diana-sp-article + .diana-sp-article { border-top: 1px solid var(--diana-border); }
.diana-sp-article:hover { background: var(--diana-surface-2); text-decoration: none; color: var(--diana-text); }
.diana-sp-article-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-sp-article-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.diana-sp-article-body strong { color: var(--diana-heading); font-weight: 600; }
.diana-sp-article-body span { color: var(--diana-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diana-sp-article small { color: var(--diana-faint); white-space: nowrap; }
.diana-sp-read { padding: 28px 34px; }
.diana-sp-read h1 { margin: 0 0 10px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-sp-read-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; padding: 0; color: var(--diana-muted); font-size: .84rem; }
.diana-sp-read-meta a { color: var(--diana-muted); }
.diana-sp-read-meta a:hover { color: var(--diana-primary); text-decoration: none; }
.diana-sp-read-meta i { color: var(--diana-faint); margin-right: 3px; }
.diana-sp-tag { padding: 1px 8px; border-radius: 999px; background: var(--diana-surface-3); }
.diana-sp-read-body { color: var(--diana-text-3); line-height: 1.75; font-size: .97rem; overflow-wrap: anywhere; }
.diana-sp-read-body img { max-width: 100%; height: auto; border-radius: 10px; }
.diana-sp-read-body h2, .diana-sp-read-body h3 { margin: 1.4em 0 .5em; color: var(--diana-heading); font-weight: 700; }
.diana-sp-read-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--diana-border); color: var(--diana-muted); font-size: .86rem; }
.diana-sp-read-foot .diana-btn { margin-left: auto; }
.diana-sp-share { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--diana-surface-3); color: var(--diana-text-2); }
.diana-sp-share:hover { background: var(--diana-primary); color: #fff; text-decoration: none; }
.diana-sp-news { display: grid; gap: 16px; margin-bottom: 18px; }
.diana-sp-news-item { margin: 0; padding: 22px 26px; }
.diana-sp-news-item .diana-sp-read-meta { margin-bottom: 8px; }
.diana-sp-news-item h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; }
.diana-sp-news-item h2 a { color: var(--diana-heading); }
.diana-sp-news-item p { color: var(--diana-text-2); margin-bottom: 12px; }
.diana-sp-rss { text-align: center; margin: 8px 0 24px; }
.diana-content .comment .card-header.bg-primary { background: #00374c !important; }
.diana-content .comment .card-header:not(.bg-primary) { background: var(--diana-surface-2); }
.diana-content .comment { border-radius: 14px; overflow: hidden; }

@media (max-width: 1199.98px) {
    .diana-sp-layout { grid-template-columns: minmax(0, 1fr); }
    .diana-sp-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 767.98px) {
    .diana-sp-compose, .diana-sp-reply, .diana-sp-ticket-head { padding: 18px; }
    .diana-sp-row { grid-template-columns: minmax(0, 1fr); }
    .diana-sp-picker { padding: 0 18px 18px; }
    .diana-sp-picker-row { flex-direction: column; align-items: stretch; }
    .diana-sp-compose-reply { display: none; }
    .diana-sp-rte-bar { flex-wrap: nowrap; gap: 0; padding: 5px 6px; }
    .diana-sp-rte-bar button { flex: 1 1 28px; width: auto; min-width: 26px; max-width: 34px; }
    .diana-sp-rte-sep { margin: 0 2px; flex: 0 0 1px; }
    .diana-sp-thread { padding: 0 18px; }
    .diana-sp-fields { grid-template-columns: minmax(0, 1fr); }
    .diana-sp-submit-bar .diana-btn { width: 100%; }
    .diana-sp-msg { gap: 10px; }
    .diana-sp-avatar { width: 34px; height: 34px; font-size: .85rem; }
    .diana-sp-msg-main time { margin-left: 0; width: 100%; }
    .diana-sp-read { padding: 20px; }
    .diana-sp-read h1 { font-size: 1.4rem; }
    .diana-sp-search { margin-top: 12px; }
    .diana-sp-kb-hero { flex-wrap: wrap; }
    .diana-sp-kb-hero .diana-page-hero-copy { flex-basis: 100%; }
    .diana-sp-kb-hero .diana-page-hero-icon { display: none; }
}

/* ---------- Public homepage (homepage.tpl) ---------- */
.diana-home-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch;
    min-height: 420px;
    border-radius: 22px; border: 1px solid var(--diana-border-strong);
    background:
        radial-gradient(520px 340px at 0% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(155deg, #eaf6fc 0%, #d9eff9 50%, #c8e7f5 100%);
}
.diana-home-hero-copy { position: relative; z-index: 2; padding: 46px 48px 96px; }
.diana-home-hero-copy .diana-auth-chip { margin-bottom: 22px; }
.diana-home-hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--diana-heading); margin: 0 0 16px; }
.diana-home-hero p { font-size: 1.08rem; line-height: 1.6; color: var(--diana-text-2); max-width: 470px; margin: 0 0 26px; }
.diana-home-hero .diana-hero-actions .diana-btn { height: 50px; padding: 0 22px; }
.diana-home-cta { width: auto; }
.diana-home-hero .diana-btn-light { border-color: var(--diana-border-strong); }
.diana-home-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 26px 0 0; padding: 0; font-size: .92rem; font-weight: 500; color: var(--diana-text-3); }
.diana-home-points li { display: inline-flex; align-items: center; gap: 8px; }
.diana-home-points i { color: var(--diana-primary); }
.diana-home-hero-art { position: relative; min-height: 300px; pointer-events: none; }
.diana-home-hero-art img { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 82%; object-fit: contain; object-position: center bottom; }
.diana-home-hero-art .diana-hero-note {
    left: auto; right: 8%; top: 30px; z-index: 2;
    font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
    font-size: 1.75rem; font-weight: 600; line-height: 1.05; color: var(--diana-heading);
    transform: rotate(-10deg);
}

.diana-home-domain { position: relative; z-index: 3; margin: -64px 28px 60px; padding: 24px 26px 20px; overflow: visible; }
.diana-home-domain-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.diana-home-domain-head .diana-stat-icon { flex: 0 0 auto; width: 48px; height: 48px; font-size: 1.2rem; }
.diana-home-domain-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 2px; color: var(--diana-heading); }
.diana-home-domain-head p { margin: 0; color: var(--diana-muted); font-size: .92rem; }
.diana-home-domain-box {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--diana-border-strong); border-radius: 14px; background: var(--diana-surface-2);
    transition: border-color .15s, box-shadow .15s;
}
.diana-home-domain-box:focus-within { border-color: var(--diana-primary); background: var(--diana-surface); box-shadow: 0 0 0 4px rgba(40, 170, 225, .12); }
.diana-home-domain-www { color: var(--diana-faint); font-weight: 600; }
.diana-home-domain-box .form-control { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 4px; border: 0; background: transparent; font-size: 1.02rem; box-shadow: none; }
.diana-home-domain-box .form-control:focus { box-shadow: none; }
.diana-home-domain-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.diana-home-domain-btns .diana-btn { width: auto; height: 48px; padding: 0 22px; border-radius: 11px; font-size: .95rem; gap: 8px; }
.diana-home-domain .diana-auth-captcha:not(:empty), .diana-home-domain #default-captcha-domainchecker { margin-top: 12px; }
.diana-home-domain-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; }
.diana-home-tlds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.diana-home-tlds li { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--diana-surface-2); border: 1px solid var(--diana-border); font-size: .85rem; }
.diana-home-tlds strong { color: var(--diana-heading); font-weight: 700; }
.diana-home-tlds span { color: var(--diana-muted); }

.diana-home-section { margin: 0 0 64px; }
.diana-home-heading { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.diana-home-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--diana-primary-soft); color: var(--diana-primary);
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.diana-home-heading h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--diana-heading); margin: 0 0 12px; }
.diana-home-heading p { margin: 0; color: var(--diana-muted); font-size: 1.02rem; line-height: 1.6; }

.diana-home-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.diana-home-product {
    position: relative; display: flex; flex-direction: column;
    padding: 28px 26px 26px; border-radius: 20px;
    background: var(--diana-surface); border: 1px solid var(--diana-border); box-shadow: var(--diana-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}
.diana-home-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--diana-primary); }
.diana-home-product.is-purple::before { background: var(--diana-purple); }
.diana-home-product.is-green::before { background: var(--diana-green); }
.diana-home-product.is-orange::before { background: var(--diana-orange); }
.diana-home-product:hover { transform: translateY(-4px); border-color: var(--diana-border-accent); box-shadow: 0 22px 44px -22px rgba(0, 38, 54, .35); }
.diana-home-product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.diana-home-product-count { padding: 4px 10px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-text-2); font-size: .78rem; font-weight: 600; }
.diana-home-product h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--diana-heading); margin: 0 0 6px; }
.diana-home-product > p { margin: 0 0 20px; color: var(--diana-muted); font-size: .92rem; line-height: 1.55; min-height: 3.1em; }
.diana-home-product-price { padding: 16px 0; border-top: 1px solid var(--diana-border); border-bottom: 1px solid var(--diana-border); margin-bottom: 18px; }
.diana-home-product-price small { display: block; color: var(--diana-faint); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.diana-home-product-price strong { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--diana-heading); }
.diana-home-product-price span { color: var(--diana-muted); font-size: .95rem; font-weight: 500; }
.diana-home-product-plans { flex: 1 1 auto; list-style: none; margin: 0 0 22px; padding: 0; }
.diana-home-product-plans li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .92rem; color: var(--diana-text-3); }
.diana-home-product-plans i {
    flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--diana-green-soft); color: var(--diana-green); font-size: .6rem;
}
.diana-home-product-btn { width: 100%; height: 48px; border-radius: 12px; background: var(--diana-surface-3); color: var(--diana-heading); border: 1px solid var(--diana-border-strong); }
.diana-home-product-btn i { font-size: .8rem; transition: transform .15s; }
.diana-home-product-btn:hover, .diana-home-product:hover .diana-home-product-btn { background: var(--diana-dark); border-color: var(--diana-dark); color: #fff; }
.diana-home-product-btn:hover i { transform: translateX(3px); }

.diana-home-domains {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px;
    margin: 0 0 64px; padding: 44px 46px; border-radius: 24px; color: #fff;
    background:
        radial-gradient(500px 280px at 100% 0%, rgba(40, 170, 225, .35) 0%, rgba(40, 170, 225, 0) 70%),
        radial-gradient(420px 260px at 0% 100%, rgba(40, 170, 225, .25) 0%, rgba(40, 170, 225, 0) 70%),
        linear-gradient(135deg, #00374c 0%, #002c3e 60%, #001f2c 100%);
}
.diana-home-domains .diana-home-kicker { background: rgba(255, 255, 255, .12); color: #cfe2ff; }
.diana-home-domains h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 12px; color: #fff; }
.diana-home-domains p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 1rem; line-height: 1.6; max-width: 460px; }
.diana-home-domains-actions { display: grid; gap: 14px; }
.diana-home-domains-card {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
    transition: background .15s, transform .15s;
}
.diana-home-domains-card:hover { background: rgba(255, 255, 255, .13); color: #fff; text-decoration: none; transform: translateX(4px); }
.diana-home-domains-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--diana-surface); color: var(--diana-heading); font-size: 1.1rem; }
.diana-home-domains-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.diana-home-domains-text strong { font-size: 1.02rem; font-weight: 700; }
.diana-home-domains-text span { color: rgba(255, 255, 255, .7); font-size: .88rem; margin-top: 2px; }
.diana-home-domains-card > i { color: rgba(255, 255, 255, .8); font-size: .85rem; }

.diana-home-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.diana-home-feature { padding: 26px 24px; border-radius: 18px; background: var(--diana-surface); border: 1px solid var(--diana-border); }
.diana-home-feature .diana-stat-icon { margin-bottom: 18px; }
.diana-home-feature h3, .diana-home-resource h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--diana-heading); margin: 0 0 8px; }
.diana-home-feature p, .diana-home-resource p { margin: 0; color: var(--diana-muted); font-size: .9rem; line-height: 1.55; }

.diana-home-resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.diana-home-resource {
    display: flex; flex-direction: column; padding: 26px 24px; border-radius: 18px;
    background: var(--diana-surface); border: 1px solid var(--diana-border); box-shadow: var(--diana-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.diana-home-resource:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--diana-border-accent); box-shadow: 0 22px 44px -22px rgba(0, 38, 54, .35); }
.diana-home-resource .diana-stat-icon { margin-bottom: 18px; }
.diana-home-resource p { flex: 1 1 auto; margin-bottom: 18px; }
.diana-home-resource-go { display: inline-flex; align-items: center; gap: 8px; color: var(--diana-primary); font-weight: 600; font-size: .9rem; }
.diana-home-resource-go i { font-size: .78rem; transition: transform .15s; }
.diana-home-resource:hover .diana-home-resource-go i { transform: translateX(3px); }

.diana-home-final {
    display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
    margin: 0 0 12px; padding: 40px 46px; border-radius: 24px;
    border: 1px solid var(--diana-border-strong);
    background:
        radial-gradient(520px 300px at 100% 100%, rgba(40, 170, 225, .14) 0%, rgba(40, 170, 225, 0) 70%),
        linear-gradient(155deg, #f1f8fc 0%, #ddf0f9 100%);
}
.diana-home-final-copy { flex: 1 1 380px; }
.diana-home-final h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--diana-heading); margin: 0 0 8px; }
.diana-home-final p { margin: 0; color: var(--diana-text-2); font-size: 1rem; line-height: 1.6; max-width: 560px; }
.diana-home-final-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.diana-home-final-actions .diana-btn { height: 50px; padding: 0 24px; border-radius: 12px; }
.diana-home-final-primary { background: var(--diana-dark); color: #fff; }
.diana-home-final-primary:hover { background: #002a3a; color: #fff; }
.diana-home-final-ghost { background: var(--diana-surface); color: var(--diana-heading); border-color: var(--diana-border-strong); }
.diana-home-final-ghost:hover { background: var(--diana-surface-2); color: var(--diana-heading); }

@media (max-width: 1199.98px) {
    .diana-home-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .diana-home-hero h1 { font-size: 2.5rem; }
    .diana-home-hero-art .diana-hero-note { display: none; }
    .diana-home-features, .diana-home-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diana-home-domains { grid-template-columns: 1fr; padding: 36px 34px; }
}
@media (max-width: 767.98px) {
    .diana-home-hero { grid-template-columns: 1fr; min-height: 0; }
    .diana-home-hero-copy { padding: 30px 26px 88px; }
    .diana-home-hero-art { display: none; }
    .diana-home-domain { margin: -60px 14px 26px; padding: 20px 18px 18px; }
    .diana-home-domain-box { flex-wrap: wrap; padding: 6px; }
    .diana-home-domain-www { display: none; }
    .diana-home-domain-box .form-control { flex-basis: 100%; padding: 0 10px; }
    .diana-home-domain-btns { width: 100%; }
    .diana-home-domain-btns .diana-btn { flex: 1 1 0; padding: 0 12px; }
}
@media (max-width: 575.98px) {
    .diana-home-hero h1 { font-size: 2.1rem; }
    .diana-home-hero p { font-size: 1rem; }
    .diana-home-hero .diana-hero-actions .diana-btn { flex: 1 1 auto; }
    .diana-home-domain { margin-left: 0; margin-right: 0; }
    .diana-home-domain-head .diana-stat-icon { display: none; }
    .diana-home-section, .diana-home-domains { margin-bottom: 44px; }
    .diana-home-heading { margin-bottom: 22px; }
    .diana-home-heading h2, .diana-home-domains h2 { font-size: 1.55rem; }
    .diana-home-heading p { font-size: .95rem; }
    .diana-home-features, .diana-home-resources { grid-template-columns: 1fr; gap: 14px; }
    .diana-home-domains { padding: 28px 20px; border-radius: 20px; }
    .diana-home-final { padding: 28px 22px; border-radius: 20px; }
    .diana-home-final h2 { font-size: 1.4rem; }
    .diana-home-final-actions, .diana-home-final-actions .diana-btn { width: 100%; }
}

/* ---------- Domain pricing (domain-pricing.tpl) ---------- */
.diana-dp-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center;
    margin-bottom: 24px; border-radius: 22px; border: 1px solid var(--diana-border-strong);
    background:
        radial-gradient(520px 340px at 0% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(155deg, #eaf6fc 0%, #d9eff9 50%, #c8e7f5 100%);
}
.diana-dp-hero-copy { position: relative; z-index: 2; padding: 38px 44px; }
.diana-dp-hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; color: var(--diana-heading); margin: 0 0 10px; }
.diana-dp-hero p { margin: 0 0 22px; color: var(--diana-text-2); font-size: 1.02rem; line-height: 1.6; max-width: 480px; }
.diana-dp-search {
    display: flex; align-items: center; gap: 10px; max-width: 560px;
    padding: 6px 6px 6px 18px; border-radius: 14px; background: var(--diana-surface);
    border: 1px solid var(--diana-border-strong); box-shadow: 0 12px 30px -18px rgba(0, 38, 54, .35);
}
.diana-dp-search:focus-within { border-color: var(--diana-primary); box-shadow: 0 0 0 4px rgba(40, 170, 225, .12); }
.diana-dp-search > i { color: var(--diana-faint); }
.diana-dp-search input { flex: 1 1 auto; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-family: var(--diana-font); font-size: 1rem; color: var(--diana-text); }
.diana-dp-search .diana-btn { width: auto; height: 46px; padding: 0 26px; border-radius: 11px; font-size: .95rem; }
.diana-dp-hero-art { position: relative; align-self: stretch; min-height: 240px; pointer-events: none; }
.diana-dp-hero-art img { position: absolute; inset: 16px 0 0; width: 100%; height: calc(100% - 16px); object-fit: contain; object-position: center bottom; }

.diana-dp-popular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.diana-dp-tld {
    display: flex; flex-direction: column; padding: 22px; border-radius: 18px;
    background: var(--diana-surface); border: 1px solid var(--diana-border); box-shadow: var(--diana-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.diana-dp-tld:hover { transform: translateY(-3px); border-color: var(--diana-border-accent); box-shadow: 0 20px 40px -22px rgba(0, 38, 54, .35); }
.diana-dp-tld-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.diana-dp-tld-head strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--diana-primary); }
.diana-dp-tld-price b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-dp-tld-price span { color: var(--diana-muted); font-size: .9rem; }
.diana-dp-tld > small { display: block; margin-top: 4px; color: var(--diana-muted); font-size: .82rem; }
.diana-dp-tld-btn { margin-top: 18px; height: 42px; border-radius: 11px; background: var(--diana-surface-3); color: var(--diana-heading); border: 1px solid var(--diana-border-strong); font-size: .9rem; }
.diana-dp-tld-btn:hover, .diana-dp-tld:hover .diana-dp-tld-btn { background: var(--diana-dark); border-color: var(--diana-dark); color: #fff; }

.diana-dp-cat { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-text-2); font-size: .76rem; font-weight: 600; }
.diana-dp-badge {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
    background: var(--diana-red-soft); color: var(--diana-red);
    font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.diana-dp-badge.is-new { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-dp-badge.is-sale { background: var(--diana-orange-soft); color: var(--diana-orange-text); }

.diana-dp-sub { margin: 2px 0 0; color: var(--diana-muted); font-size: .86rem; }
.diana-dp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 18px; }
.diana-dp-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    border: 1px solid var(--diana-border); border-radius: 999px; background: var(--diana-surface);
    font-family: var(--diana-font); font-size: .86rem; font-weight: 600; color: var(--diana-text-3); cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.diana-dp-chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-muted); font-size: .75rem; }
.diana-dp-chip:hover { border-color: var(--diana-border-strong); background: var(--diana-surface-2); }
.diana-dp-chip:focus { outline: 0; }
.diana-dp-chip:focus-visible { box-shadow: 0 0 0 3px rgba(40, 170, 225, .25); }
.diana-dp-chip.is-active { background: var(--diana-dark); border-color: var(--diana-dark); color: #fff; }
.diana-dp-chip.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }

.diana-dp-table tbody tr { cursor: default; }
.diana-dp-ext strong { font-size: 1rem; font-weight: 700; color: var(--diana-heading); margin-right: 6px; }
.diana-dp-price b { display: block; font-weight: 600; color: var(--diana-text); }
.diana-dp-price small { display: block; color: var(--diana-faint); font-size: .78rem; margin-top: 1px; }

.diana-dp-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 8px; }
.diana-dp-cta-item {
    display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px;
    background: var(--diana-surface); border: 1px solid var(--diana-border); box-shadow: var(--diana-shadow);
}
.diana-dp-cta-item > div { flex: 1 1 auto; min-width: 0; }
.diana-dp-cta-item strong { display: block; font-size: 1rem; color: var(--diana-heading); }
.diana-dp-cta-item p { margin: 2px 0 0; color: var(--diana-muted); font-size: .86rem; }
.diana-dp-cta-item .diana-btn { flex: 0 0 auto; }

@media (max-width: 1199.98px) {
    .diana-dp-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .diana-dp-hero { grid-template-columns: 1fr; }
    .diana-dp-hero-art { display: none; }
    .diana-dp-cta { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .diana-dp-table, .diana-dp-table tbody { display: block; min-width: 0; }
    .diana-dp-table thead { display: none; }
    .diana-dp-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--diana-border); }
    .diana-dp-table[hidden], .diana-dp-table tr[hidden] { display: none; }
    .diana-dp-table td { display: block; padding: 0 !important; border: 0; white-space: normal; }
    .diana-dp-table td.diana-dp-ext { grid-column: 1 / 3; align-self: center; }
    .diana-dp-table td.diana-dp-ext strong { font-size: 1.15rem; }
    .diana-dp-table td.diana-dp-catcell { grid-column: 3; text-align: right; align-self: center; }
    .diana-dp-table td[data-label]::before {
        content: attr(data-label); display: block; margin-bottom: 2px;
        color: var(--diana-faint); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    }
    .diana-dp-table td.diana-svc-actions { grid-column: 1 / -1; text-align: left; }
    .diana-dp-table td.diana-svc-actions .diana-btn { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
    .diana-dp-hero-copy { padding: 26px 20px; }
    .diana-dp-hero h1 { font-size: 1.8rem; }
    .diana-dp-search { flex-wrap: wrap; padding: 6px; }
    .diana-dp-search > i { display: none; }
    .diana-dp-search input { flex-basis: 100%; padding: 0 10px; }
    .diana-dp-search .diana-btn { width: 100%; }
    .diana-dp-popular { gap: 12px; }
    .diana-dp-tld { padding: 16px; }
    .diana-dp-tld-head { flex-wrap: wrap; }
    .diana-dp-tld-head strong { font-size: 1.35rem; }
    .diana-dp-tld-price b { font-size: 1.15rem; }
    .diana-dp-chips { padding: 0 16px 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .diana-dp-chips::-webkit-scrollbar { display: none; }
    .diana-dp-chip { flex: 0 0 auto; }
    .diana-dp-cta-item { flex-wrap: wrap; }
    .diana-dp-cta-item .diana-btn { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
    .diana-hero-copy { max-width: 480px; }
}
@media (max-width: 1199.98px) {
    .diana-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diana-hero-art { width: 45%; }
    .diana-hero-note { display: none; }
    .diana-page-hero-art { width: 38%; }
    .diana-svc-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .diana-main { margin-left: 0; }
    .diana-sidebar { transform: translateX(-100%); box-shadow: none; }
    body.diana-sidebar-open .diana-sidebar { transform: translateX(0); box-shadow: 0 20px 60px -20px rgba(0, 38, 54, .5); }
    body.diana-sidebar-open .diana-sidebar-backdrop { display: block; }
    body.diana-sidebar-open { overflow: hidden; }
    .diana-burger { display: inline-flex; }
    .diana-topbar, section#main-body.diana-content, .diana-footer { padding-left: 20px; padding-right: 20px; }
    .diana-hero-art { display: none; }
    .diana-hero-copy { max-width: none; padding: 32px 28px; }
    .diana-hero h1 { font-size: 2rem; }
    .diana-page-hero-art { display: none; }
    .diana-svc-controls { width: 100%; }
    .diana-svc-search { flex: 1 1 200px; width: auto; }
    .diana-services .div-service-item { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "icon name status" "icon buttons buttons"; row-gap: 8px; }
    .diana-services .div-service-item::before { width: 44px; height: 44px; }
    .diana-services .div-service-buttons { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
    html { font-size: 14px; }
    .diana-stats { grid-template-columns: 1fr; gap: 12px; }
    .diana-search { display: none; }
    .diana-pin-btn { height: 42px; padding: 0 14px; }
    .diana-pin-actions { grid-template-columns: 1fr; }
    .diana-topbar { padding-left: 16px; padding-right: 16px; gap: 8px; }
    .diana-topbar-actions { gap: 0; }
    .diana-topbar .diana-icon-btn { width: 40px; }
    section#main-body.diana-content, .diana-footer { padding-left: 16px; padding-right: 16px; }
    .diana-hero-copy { padding: 26px 22px; }
    .diana-page-hero { padding: 22px; gap: 16px; min-height: 0; }
    .diana-page-hero-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
    .diana-page-hero h1 { font-size: 1.5rem; }
    .diana-svc-controls > * { flex: 1 1 100%; }
    .diana-help-banner { flex-wrap: wrap; }
    .diana-help-banner .diana-btn { width: 100%; }
    .diana-balance { flex-wrap: wrap; }
    .diana-balance .diana-btn { margin-left: 0; width: 100%; }
    .diana-footer { justify-content: center; text-align: center; }
    .diana-footer-right { margin-left: 0; }
}

/* ---------- Redirecting to payment (forwardpage.tpl, after checkout / add funds) ---------- */
.diana-fwd { max-width: 600px; margin: 0 auto; padding: 8px 0 40px; }
.diana-fwd.is-cart { padding-top: 0; }
.diana-fwd-steps { display: flex; justify-content: center; margin: 8px 0 22px; }
.diana-fwd-card { position: relative; overflow: hidden; padding: 40px 36px 30px; border: 1px solid var(--diana-border); border-radius: 20px; background: var(--diana-surface); box-shadow: var(--diana-shadow); text-align: center; }
.diana-fwd-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--diana-sky), var(--diana-brand-mid) 55%, #00374c); }
.diana-fwd-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: var(--diana-green); color: #fff; font-size: 1.8rem; box-shadow: 0 0 0 10px var(--diana-green-soft); animation: dianaFwdPop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.diana-fwd-icon.is-pay { background: var(--diana-primary); box-shadow: 0 0 0 10px var(--diana-primary-soft); }
@keyframes dianaFwdPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.diana-fwd-card h1 { margin: 0 0 8px; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--diana-heading); }
.diana-fwd-lead { max-width: 440px; margin: 0 auto 24px; color: var(--diana-muted); font-size: .98rem; line-height: 1.6; }
.diana-fwd-lead strong { color: var(--diana-heading); }

.diana-fwd-invoice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 24px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(125deg, #00374c 0%, #00577f 100%); color: #fff; text-align: left; }
.diana-fwd-label { display: block; margin-bottom: 4px; color: #8fd3f0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.diana-fwd-amount { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.diana-fwd-meta { display: flex; gap: 18px; margin: 0; }
.diana-fwd-meta > div { min-width: 0; }
.diana-fwd-meta dt { color: #9cc9de; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.diana-fwd-meta dd { margin: 2px 0 0; font-weight: 700; white-space: nowrap; }

.diana-fwd-progress { height: 6px; margin: 0 auto 10px; max-width: 360px; overflow: hidden; border-radius: 999px; background: var(--diana-surface-3); }
.diana-fwd-bar { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--diana-sky), var(--diana-primary)); transform-origin: left center; animation: dianaFwdFill linear both; }
@keyframes dianaFwdFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.diana-fwd.is-manual .diana-fwd-bar { animation: none; transform: scaleX(0); }
.diana-fwd.is-sending .diana-fwd-bar { animation: dianaFwdPulse 1.2s ease-in-out infinite; transform: none; }
@keyframes dianaFwdPulse { 50% { opacity: .45; } }
.diana-fwd-count { margin: 0 0 22px; color: var(--diana-muted); font-size: .9rem; }
.diana-fwd-count strong { color: var(--diana-heading); font-variant-numeric: tabular-nums; }

.diana-fwd-gateway { margin: 0 0 16px; }
.diana-fwd-gateway.is-empty { display: none; }
.diana-fwd-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.diana-fwd-actions .diana-btn { min-width: 170px; justify-content: center; }
.diana-fwd.is-sending .diana-fwd-go { opacity: .7; cursor: progress; }
.diana-fwd-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed var(--diana-border); color: var(--diana-muted); font-size: .84rem; }
.diana-fwd-secure i { color: var(--diana-green); }

@media (max-width: 575.98px) {
    .diana-fwd { padding-left: 14px; padding-right: 14px; }
    .diana-fwd-card { padding: 30px 18px 22px; border-radius: 16px; }
    .diana-fwd-card h1 { font-size: 1.5rem; }
    .diana-fwd-invoice { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
    .diana-fwd-meta { width: 100%; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
    .diana-fwd-actions .diana-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .diana-fwd-icon, .diana-fwd-bar { animation: none; }
}

/* ---------- Service actions: cancellation (clientareacancelrequest.tpl), upgrade (upgrade.tpl, upgradesummary.tpl) ---------- */
.diana-sa { max-width: 1180px; }
.diana-sa-head { margin: 0 0 22px; }
.diana-sa-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .88rem; font-weight: 600; color: var(--diana-text-3); }
.diana-sa-back:hover { color: var(--diana-primary); text-decoration: none; }
.diana-sa-head h1 { margin: 0 0 6px; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--diana-heading); }
.diana-sa-head p { margin: 0; max-width: 620px; color: var(--diana-muted); font-size: .98rem; }
.diana-sa-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.diana-sa-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: 14px; margin-bottom: 20px; }
.diana-sa-alert ul { margin: 0; padding-left: 18px; }
.diana-sa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.diana-sa-main > .diana-card:last-child { margin-bottom: 0; }
.diana-sa-side { position: sticky; top: calc(var(--diana-topbar-h) + 16px); display: flex; flex-direction: column; gap: 20px; }
.diana-sa-side .diana-card { margin-bottom: 0; }
.diana-sa-card { padding: 22px 24px; }
.diana-sa-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.08rem; font-weight: 700; color: var(--diana-heading); }
.diana-sa-title > span {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 26px; height: 26px; border-radius: 50%; background: var(--diana-dark); color: #fff; font-size: .8rem;
}
.diana-sa-sub { margin: -6px 0 14px; color: var(--diana-muted); font-size: .9rem; }
.diana-sa-eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--diana-muted); }

/* Steps (same look as the cart's .diana-cart-steps, which only loads on cart pages) */
.diana-sa-steps { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.diana-sa-steps li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--diana-muted); white-space: nowrap; }
.diana-sa-steps li + li::before { content: ""; width: 28px; height: 2px; margin-right: 2px; border-radius: 2px; background: var(--diana-border-strong); }
.diana-sa-steps-dot {
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--diana-surface); border: 1px solid var(--diana-border-strong); font-size: .78rem; color: var(--diana-muted);
}
.diana-sa-steps li.is-current { color: var(--diana-heading); }
.diana-sa-steps li.is-current .diana-sa-steps-dot { background: var(--diana-dark); border-color: var(--diana-dark); color: #fff; box-shadow: 0 0 0 4px rgba(0, 55, 76, .12); }
.diana-sa-steps li.is-done { color: var(--diana-green); }
.diana-sa-steps li.is-done .diana-sa-steps-dot { background: var(--diana-green); border-color: var(--diana-green); color: #fff; font-size: .7rem; }
.diana-sa-steps li.is-done + li::before { background: var(--diana-green); }

/* Service summary (includes/service-card.tpl) */
.diana-sa-svc { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.diana-sa-logo {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 56px; height: 56px; border-radius: 15px; overflow: hidden;
    background: var(--diana-surface-3); color: var(--diana-text-2); font-size: 1.2rem;
}
.diana-sa-logo.has-logo { background: #fff; border: 1px solid var(--diana-border); }
.diana-sa-logo img { width: 30px; height: 30px; object-fit: contain; }
.diana-sa-logo.is-tile { border: 0; background: none; }
.diana-sa-logo.is-tile img { width: 100%; height: 100%; object-fit: cover; }
.diana-sa-svc-main { flex: 1 1 220px; min-width: 0; }
.diana-sa-svc-main strong { display: block; font-size: 1.12rem; font-weight: 700; color: var(--diana-heading); }
.diana-sa-svc-main small { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--diana-primary); font-size: .88rem; word-break: break-all; }
.diana-sa-svc-main small i { font-size: .8em; color: var(--diana-faint); }
.diana-sa-facts { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.diana-sa-facts > div { padding: 9px 14px; border-radius: 12px; background: var(--diana-surface-2); border: 1px solid var(--diana-border); }
.diana-sa-facts dt { font-size: .72rem; font-weight: 600; color: var(--diana-muted); }
.diana-sa-facts dd { margin: 0; font-size: .92rem; font-weight: 700; color: var(--diana-heading); white-space: nowrap; }

/* Choice cards (cancellation type, payment method) */
.diana-sa-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.diana-sa-options.is-compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.diana-sa-option { position: relative; display: block; margin: 0; cursor: pointer; }
.diana-sa-option input { position: absolute; opacity: 0; pointer-events: none; }
.diana-sa-option-body {
    display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 16px;
    border: 1.5px solid var(--diana-border-strong); border-radius: 14px; background: var(--diana-surface);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.diana-sa-options.is-compact .diana-sa-option-body { align-items: center; padding: 13px 14px; }
.diana-sa-option:hover .diana-sa-option-body { border-color: var(--diana-border-accent); }
.diana-sa-option input:checked + .diana-sa-option-body { border-color: var(--diana-primary); background: var(--diana-tint); box-shadow: 0 0 0 3px rgba(40, 170, 225, .14); }
.diana-sa-option.is-danger input:checked + .diana-sa-option-body { border-color: var(--diana-red); background: var(--diana-red-soft); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.diana-sa-option input:focus-visible + .diana-sa-option-body { box-shadow: 0 0 0 3px rgba(40, 170, 225, .35); }
.diana-sa-option strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .95rem; font-weight: 700; color: var(--diana-heading); }
.diana-sa-option strong em { padding: 2px 8px; border-radius: 999px; background: var(--diana-green-soft); color: var(--diana-green-text); font-size: .68rem; font-style: normal; font-weight: 700; letter-spacing: .02em; }
.diana-sa-option small { display: block; margin-top: 4px; color: var(--diana-muted); font-size: .85rem; line-height: 1.45; }
.diana-sa-option-icon, .diana-sa-help-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 11px; font-size: .95rem;
}
.diana-sa-option-icon.is-blue, .diana-sa-help-icon.is-blue { background: var(--diana-primary-soft); color: var(--diana-primary); }
.diana-sa-option-icon.is-red { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-sa-option-icon.is-navy { background: var(--diana-surface-3); color: var(--diana-heading); }
.diana-sa-help-icon.is-purple { background: var(--diana-purple-soft); color: var(--diana-purple); }
.diana-sa-help-icon.is-orange { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-sa-textarea { min-height: 110px; border-radius: 12px; resize: vertical; }

/* Side summary + help */
.diana-sa-confirm { padding: 22px; }
.diana-sa-confirm h2 { margin: 0 0 14px; font-size: 1.08rem; font-weight: 700; color: var(--diana-heading); }
.diana-sa-sum { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.diana-sa-sum li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--diana-text-2); }
.diana-sa-sum li strong { text-align: right; color: var(--diana-heading); font-weight: 600; word-break: break-word; }
.diana-sa-sum li.is-discount strong { color: var(--diana-green); }
.diana-sa-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid var(--diana-border); }
.diana-sa-total span { font-weight: 600; color: var(--diana-heading); }
.diana-sa-total strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-sa-confirm-note { margin: 0 0 16px; padding: 11px 13px; border-radius: 12px; background: var(--diana-surface-2); color: var(--diana-text-3); font-size: .86rem; line-height: 1.45; }
.diana-cx.is-immediate .diana-sa-confirm-note, .diana-cx .is-immediate .diana-sa-confirm-note { background: var(--diana-red-soft); color: var(--diana-red); }
.diana-sa-confirm .btn-block + .btn-block { margin-top: 10px; }
.diana-sa-secure { margin: 12px 0 0; text-align: center; color: var(--diana-faint); font-size: .8rem; }
.diana-sa-help { padding: 20px 22px; }
.diana-sa-help h3 { margin: 0 0 12px; font-size: .98rem; font-weight: 700; color: var(--diana-heading); }
.diana-sa-help-link { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; }
.diana-sa-help-link + .diana-sa-help-link { border-top: 1px solid var(--diana-border); }
a.diana-sa-help-link:hover { text-decoration: none; }
a.diana-sa-help-link:hover strong { color: var(--diana-primary); }
.diana-sa-help-link strong { display: block; font-size: .9rem; color: var(--diana-heading); }
.diana-sa-help-link small { display: block; color: var(--diana-muted); font-size: .8rem; line-height: 1.4; }

/* Result cards (requested, invalid, upgrade not possible) */
.diana-sa-result { max-width: 640px; padding: 36px 32px 30px; text-align: center; }
.diana-sa-result-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px;
    border-radius: 50%; font-size: 1.5rem;
}
.diana-sa-result.is-ok .diana-sa-result-icon { background: var(--diana-green-soft); color: var(--diana-green); }
.diana-sa-result.is-warn .diana-sa-result-icon { background: var(--diana-orange-soft); color: var(--diana-orange-text); }
.diana-sa-result h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; color: var(--diana-heading); }
.diana-sa-result p { margin: 0 auto 22px; max-width: 520px; color: var(--diana-text-3); line-height: 1.55; }
.diana-sa-result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Cancellation reasons */
.diana-cx-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.diana-cx-reason {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--diana-border-strong); background: var(--diana-surface);
    color: var(--diana-text-2); font-family: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.diana-cx-reason:hover { border-color: var(--diana-border-accent); color: var(--diana-heading); }
.diana-cx-reason.is-on { background: var(--diana-dark); border-color: var(--diana-dark); color: #fff; }
.diana-cx-error { margin: 8px 0 0; color: var(--diana-red); font-size: .85rem; font-weight: 600; }
.diana-cx-domain { align-items: flex-start !important; padding: 12px 14px; border-radius: 12px; background: var(--diana-orange-soft); color: var(--diana-text-2) !important; }
.diana-cx-domain input { margin-top: 2px; }

/* Upgrade: plan cards */
.diana-up-heading { margin: 6px 0 14px; font-size: 1.12rem; font-weight: 700; color: var(--diana-heading); }
.diana-up-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.diana-up-plan { display: flex; flex-direction: column; margin: 0; padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.diana-up-plan:hover { border-color: var(--diana-border-accent); box-shadow: 0 18px 40px -24px rgba(0, 38, 54, .35); }
.diana-up-plan-head h3 { margin: 2px 0 14px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--diana-heading); }
.diana-up-plan-price { margin-bottom: 16px; }
.diana-up-plan-price strong { font-size: 1.5rem; font-weight: 800; color: var(--diana-heading); }
.diana-up-plan-price small { margin-left: 6px; color: var(--diana-muted); }
.diana-up-cycle { height: 46px; border-radius: 12px; font-weight: 700; color: var(--diana-heading); }
.diana-up-features { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px dashed var(--diana-border-strong); display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.diana-up-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--diana-text-2); }
.diana-up-features li i { margin-top: 4px; color: var(--diana-green); font-size: .75rem; }
.diana-up-choose { margin-top: auto; }

/* Upgrade: configurable options */
.diana-up-opts { padding-bottom: 10px; }
.diana-up-opt { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(110px, 1fr) 24px minmax(180px, 1.4fr); align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--diana-border); }
.diana-up-opt-head { padding: 0 0 8px; border-top: 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--diana-muted); }
.diana-up-opt-name { font-weight: 700; color: var(--diana-heading); }
.diana-up-opt-now { display: inline-flex; justify-self: start; padding: 5px 11px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-text-2); font-size: .86rem; font-weight: 600; }
.diana-up-opt-head .diana-up-opt-now, .diana-up-opt-head span { background: none; padding: 0; }
.diana-up-opt-arrow { color: var(--diana-faint); text-align: center; }
.diana-up-opt-new { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.diana-up-opt-new select.form-control { height: 42px; border-radius: 11px; }
.diana-up-qty { display: inline-flex; align-items: center; border: 1px solid var(--diana-border-strong); border-radius: 11px; overflow: hidden; background: var(--diana-surface); }
.diana-up-qty button { width: 38px; height: 40px; border: 0; background: var(--diana-surface-2); color: var(--diana-text-2); cursor: pointer; }
.diana-up-qty button:hover { background: var(--diana-surface-3); color: var(--diana-heading); }
.diana-body .diana-up-qty input.form-control { width: 64px; height: 40px; border: 0; border-radius: 0; text-align: center; font-weight: 700; box-shadow: none; -moz-appearance: textfield; }
.diana-up-qty input::-webkit-outer-spin-button, .diana-up-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.diana-up-qty-unit { color: var(--diana-muted); font-size: .85rem; }
.diana-up-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 600; color: var(--diana-text-2); }
.diana-up-switch input { position: absolute; opacity: 0; }
.diana-up-switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--diana-border-strong); transition: background .15s; }
.diana-up-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.diana-up-switch input:checked + .diana-up-switch-track { background: var(--diana-green); }
.diana-up-switch input:checked + .diana-up-switch-track::after { transform: translateX(18px); }
.diana-up-switch input:focus-visible + .diana-up-switch-track { box-shadow: 0 0 0 3px rgba(40, 170, 225, .35); }

/* Upgrade: review */
.diana-up-changes { list-style: none; margin: 0; padding: 0; }
.diana-up-changes li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--diana-border); }
.diana-up-changes li:first-child { border-top: 0; padding-top: 0; }
.diana-up-changes li > strong { flex: 0 0 auto; font-size: 1rem; color: var(--diana-heading); }
.diana-up-change { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.diana-up-change > i { color: var(--diana-faint); font-size: .8rem; }
.diana-up-opt-label { width: 100%; font-size: .78rem; font-weight: 700; color: var(--diana-muted); }
.diana-up-from { padding: 4px 10px; border-radius: 999px; background: var(--diana-surface-3); color: var(--diana-text-3); font-size: .86rem; font-weight: 600; text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, .5); }
.diana-up-to { padding: 4px 10px; border-radius: 999px; background: var(--diana-primary-soft); color: var(--diana-primary); font-size: .86rem; font-weight: 700; }
.diana-up-logic { display: flex; gap: 8px; margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; background: var(--diana-surface-2); color: var(--diana-text-3); font-size: .85rem; line-height: 1.45; }
.diana-up-logic i { margin-top: 3px; color: var(--diana-primary); }
.diana-sa-promo { margin: 0 0 16px; }
.diana-sa-promo-row { position: relative; display: flex; gap: 8px; }
.diana-sa-promo-row > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--diana-faint); font-size: .88rem; pointer-events: none; z-index: 2; }
.diana-body .diana-sa-promo-row .form-control { flex: 1 1 auto; min-width: 0; height: 40px; padding-left: 36px; border-radius: 10px; font-size: .9rem; }
.diana-sa-promo-row .diana-btn { height: 40px; }
.diana-sa-promo-applied { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--diana-green-soft); color: var(--diana-green); }
.diana-sa-promo-applied > span { flex: 1 1 auto; min-width: 0; }
.diana-sa-promo-applied strong, .diana-sa-promo-applied small { display: block; color: var(--diana-green-text); }
.diana-sa-promo-applied small { font-size: .78rem; }
.diana-sa-promo-remove { border: 0; background: none; padding: 0; color: var(--diana-green-text); font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: underline; }

@media (max-width: 1199.98px) {
    .diana-sa-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 991.98px) {
    .diana-sa-grid { grid-template-columns: 1fr; }
    .diana-sa-side { position: static; }
}
@media (max-width: 767.98px) {
    .diana-sa-head h1 { font-size: 1.5rem; }
    .diana-sa-card { padding: 18px; }
    .diana-sa-options { grid-template-columns: 1fr; }
    .diana-sa-facts { width: 100%; }
    .diana-sa-facts > div { flex: 1 1 0; min-width: 0; }
    .diana-sa-facts dd { white-space: normal; }
    .diana-up-opt { grid-template-columns: 1fr auto; gap: 8px 12px; }
    .diana-up-opt-head { display: none; }
    .diana-up-opt-name { grid-column: 1 / -1; }
    .diana-up-opt-arrow { display: none; }
    .diana-up-opt-new { grid-column: 1 / -1; }
    .diana-up-opt-new select.form-control { width: 100%; }
    .diana-sa-result { padding: 28px 20px 24px; }
    .diana-sa-result-actions .diana-btn { width: 100%; }
}
@media (max-width: 575.98px) {
    .diana-sa-steps li span:last-child { display: none; }
    .diana-sa-steps li.is-current span:last-child { display: inline; }
    .diana-sa-logo { width: 48px; height: 48px; border-radius: 13px; }
}

/* =====================================================================
   Dark mode. Most colours come from the tokens in html[data-theme="dark"]
   at the top; this section covers gradients, glass layers and the stock
   Bootstrap / Twenty-One components the parent theme colours itself.
   ===================================================================== */
.diana-theme-toggle .diana-theme-sun { display: none; }
html[data-theme="dark"] .diana-theme-toggle .diana-theme-moon { display: none; }
html[data-theme="dark"] .diana-theme-toggle .diana-theme-sun { display: inline-block; }
html.diana-theme-switching *, html.diana-theme-switching *::before, html.diana-theme-switching *::after { transition: none !important; }
.diana-logo-dark { display: none !important; }
html[data-theme="dark"] .diana-logo-light { display: none !important; }
html[data-theme="dark"] .diana-logo-dark { display: block !important; }
html[data-theme="dark"] .diana-auth-logo .diana-logo-dark { display: inline-block !important; }

html[data-theme="dark"] body.diana-body { background: var(--diana-bg); color: var(--diana-text); }
html[data-theme="dark"] .diana-body ::selection { background: rgba(76, 192, 239, .35); color: #fff; }
html[data-theme="dark"] .diana-body ::-webkit-scrollbar-thumb { background: #2d4150; }

/* Gradients and glass */
html[data-theme="dark"] body.diana-auth-body {
    background:
        radial-gradient(900px 500px at 15% 110%, rgba(40, 170, 225, .10) 0%, rgba(40, 170, 225, 0) 70%),
        radial-gradient(800px 500px at 100% 0%, rgba(40, 170, 225, .12) 0%, rgba(40, 170, 225, 0) 60%),
        var(--diana-bg);
    background-attachment: fixed;
}
html[data-theme="dark"] .diana-auth-hero,
html[data-theme="dark"] .diana-home-hero,
html[data-theme="dark"] .diana-dp-hero,
html[data-theme="dark"] .diana-pp-hero { background: var(--diana-art-bg); }
html[data-theme="dark"] .diana-pp-vps .diana-pp-hero {
    background: radial-gradient(120% 90% at 20% 0%, rgba(139, 92, 246, .22) 0%, rgba(139, 92, 246, 0) 65%), linear-gradient(155deg, #1a1830 0%, #121426 100%);
    border-color: #2c2a4a;
}
html[data-theme="dark"] .diana-upgrade,
html[data-theme="dark"] .diana-locale-head,
html[data-theme="dark"] .diana-home-final { background: var(--diana-hero-bg); }
html[data-theme="dark"] .diana-aff-perk { background: var(--diana-surface-2); }
html[data-theme="dark"] .diana-acct-help { background: transparent; }
html[data-theme="dark"] .diana-auth-head { background: rgba(16, 29, 39, .85); }
html[data-theme="dark"] .diana-auth-chip, html[data-theme="dark"] .diana-locale-close { background: rgba(16, 29, 39, .9); }
html[data-theme="dark"] .diana-services .div-service-status .label-danger,
html[data-theme="dark"] .diana-services .div-service-status .label-default { background: var(--diana-red-soft); color: #fca5a5; }
html[data-theme="dark"] .diana-btn-danger-soft { border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
html[data-theme="dark"] .diana-auth-badge.is-success { background: var(--diana-green-soft); color: #4ade80; }
html[data-theme="dark"] .diana-status.is-active, html[data-theme="dark"] .diana-status.is-completed, html[data-theme="dark"] .diana-status.is-paid,
html[data-theme="dark"] .diana-status.is-answered, html[data-theme="dark"] .diana-status.is-accepted, html[data-theme="dark"] .diana-status.is-delivered { color: #4ade80; }
html[data-theme="dark"] .diana-status.is-suspended, html[data-theme="dark"] .diana-status.is-fraud, html[data-theme="dark"] .diana-status.is-overdue,
html[data-theme="dark"] .diana-status.is-collections, html[data-theme="dark"] .diana-status.is-redemption,
html[data-theme="dark"] .diana-status.is-dead, html[data-theme="dark"] .diana-status.is-lost { color: #fca5a5; }

/* Alerts */
html[data-theme="dark"] .diana-body .alert-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); color: #86efac; }
html[data-theme="dark"] .diana-body .alert-info { background: rgba(40, 170, 225, .12); border-color: rgba(40, 170, 225, .3); color: #7dd3fc; }
html[data-theme="dark"] .diana-body .alert-warning { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }
html[data-theme="dark"] .diana-body .alert-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .3); color: #fca5a5; }
html[data-theme="dark"] .diana-body .alert a:not(.btn) { color: inherit; text-decoration: underline; }

/* Stock Bootstrap / Twenty-One surfaces */
html[data-theme="dark"] .diana-body .card,
html[data-theme="dark"] .diana-body .panel,
html[data-theme="dark"] .diana-body .well,
html[data-theme="dark"] .diana-body .jumbotron,
html[data-theme="dark"] .diana-body .modal-content,
html[data-theme="dark"] .diana-body .dropdown-menu,
html[data-theme="dark"] .diana-body .popover,
html[data-theme="dark"] .diana-body .list-group-item,
html[data-theme="dark"] .diana-body .bg-white { background-color: var(--diana-surface) !important; border-color: var(--diana-border); color: var(--diana-text); }
html[data-theme="dark"] .diana-body .card-header,
html[data-theme="dark"] .diana-body .card-footer,
html[data-theme="dark"] .diana-body .panel-heading,
html[data-theme="dark"] .diana-body .panel-footer,
html[data-theme="dark"] .diana-body .modal-header,
html[data-theme="dark"] .diana-body .modal-footer,
html[data-theme="dark"] .diana-body .popover-header { background-color: var(--diana-surface-2); border-color: var(--diana-border); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .popover-body { color: var(--diana-text); }
html[data-theme="dark"] .diana-body .bs-popover-bottom > .arrow::after, html[data-theme="dark"] .diana-body .bs-popover-auto[x-placement^="bottom"] > .arrow::after { border-bottom-color: var(--diana-surface); }
html[data-theme="dark"] .diana-body .bs-popover-bottom > .arrow::before, html[data-theme="dark"] .diana-body .bs-popover-auto[x-placement^="bottom"] > .arrow::before { border-bottom-color: var(--diana-border); }
html[data-theme="dark"] .diana-body .bs-popover-top > .arrow::after, html[data-theme="dark"] .diana-body .bs-popover-auto[x-placement^="top"] > .arrow::after { border-top-color: var(--diana-surface); }
html[data-theme="dark"] .diana-body .bg-light,
html[data-theme="dark"] .diana-body .table-active,
html[data-theme="dark"] .diana-body .list-group-item-action:hover,
html[data-theme="dark"] .diana-body .list-group-item-action:focus { background-color: var(--diana-surface-2) !important; color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .list-group-item.active { background-color: var(--diana-primary-soft) !important; border-color: var(--diana-border-accent); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .dropdown-item { color: var(--diana-text); }
html[data-theme="dark"] .diana-body .dropdown-item:hover, html[data-theme="dark"] .diana-body .dropdown-item:focus { background: var(--diana-surface-3); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .dropdown-divider, html[data-theme="dark"] .diana-body hr { border-color: var(--diana-border); }
html[data-theme="dark"] .diana-body .text-dark, html[data-theme="dark"] .diana-body .text-black { color: var(--diana-heading) !important; }
html[data-theme="dark"] .diana-body .text-muted { color: var(--diana-muted) !important; }
html[data-theme="dark"] .diana-body .border, html[data-theme="dark"] .diana-body .border-top, html[data-theme="dark"] .diana-body .border-bottom,
html[data-theme="dark"] .diana-body .border-left, html[data-theme="dark"] .diana-body .border-right { border-color: var(--diana-border) !important; }
html[data-theme="dark"] .diana-body .close { color: var(--diana-heading); text-shadow: none; opacity: .7; }
html[data-theme="dark"] .diana-body .badge-light, html[data-theme="dark"] .diana-body .badge-secondary { background: var(--diana-surface-3); color: var(--diana-text); }
html[data-theme="dark"] .diana-body code { background: var(--diana-surface-3); color: #f9a8d4; }
html[data-theme="dark"] .diana-body pre, html[data-theme="dark"] .diana-body blockquote { background: var(--diana-surface-2); border-color: var(--diana-border); color: var(--diana-text); }
html[data-theme="dark"] .diana-body .progress { background: var(--diana-surface-3); }

/* Forms */
html[data-theme="dark"] .diana-body .form-control,
html[data-theme="dark"] .diana-body .custom-select,
html[data-theme="dark"] .diana-body select,
html[data-theme="dark"] .diana-body textarea,
html[data-theme="dark"] .diana-body input[type="text"],
html[data-theme="dark"] .diana-body input[type="email"],
html[data-theme="dark"] .diana-body input[type="password"],
html[data-theme="dark"] .diana-body input[type="number"],
html[data-theme="dark"] .diana-body input[type="tel"],
html[data-theme="dark"] .diana-body input[type="search"],
html[data-theme="dark"] .diana-body input[type="url"],
html[data-theme="dark"] .diana-body input[type="date"] { background-color: var(--diana-surface-2); border-color: var(--diana-border-strong); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .form-control:focus,
html[data-theme="dark"] .diana-body .custom-select:focus { background-color: var(--diana-surface-2); border-color: var(--diana-primary); color: var(--diana-heading); box-shadow: 0 0 0 3px rgba(76, 192, 239, .2); }
html[data-theme="dark"] .diana-body .form-control:disabled,
html[data-theme="dark"] .diana-body .form-control[readonly] { background-color: var(--diana-surface-3); color: var(--diana-muted); }
html[data-theme="dark"] .diana-body .form-control::placeholder,
html[data-theme="dark"] .diana-body input::placeholder,
html[data-theme="dark"] .diana-body textarea::placeholder { color: var(--diana-faint); }
html[data-theme="dark"] .diana-body .custom-select,
html[data-theme="dark"] .diana-body select.form-control { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23a9b8c4' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 8px 10px; }
html[data-theme="dark"] .diana-body select[multiple].form-control, html[data-theme="dark"] .diana-sp-select select.form-control { background-image: none; }
html[data-theme="dark"] .diana-body .input-group-text { background: var(--diana-surface-3); border-color: var(--diana-border-strong); color: var(--diana-text-2); }
html[data-theme="dark"] .diana-body .custom-control-label::before { background-color: var(--diana-surface-2); border-color: var(--diana-border-strong); }
html[data-theme="dark"] .diana-body label, html[data-theme="dark"] .diana-body .control-label, html[data-theme="dark"] .diana-body legend { color: var(--diana-text); }
html[data-theme="dark"] .diana-body input:-webkit-autofill,
html[data-theme="dark"] .diana-body input:-webkit-autofill:hover,
html[data-theme="dark"] .diana-body input:-webkit-autofill:focus { -webkit-text-fill-color: var(--diana-heading); -webkit-box-shadow: 0 0 0 1000px var(--diana-surface-2) inset; caret-color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .iti__country-list { background: var(--diana-surface); border-color: var(--diana-border); color: var(--diana-text); }
html[data-theme="dark"] .diana-body .iti__country.iti__highlight { background: var(--diana-surface-3); }
html[data-theme="dark"] .diana-body .bootstrap-switch { border-color: var(--diana-border-strong); }
html[data-theme="dark"] .diana-body .bootstrap-switch .bootstrap-switch-label { background: var(--diana-surface-3); color: var(--diana-text); }
html[data-theme="dark"] .diana-body .editor-toolbar, html[data-theme="dark"] .diana-body .EasyMDEContainer .CodeMirror,
html[data-theme="dark"] .diana-body .editor-statusbar, html[data-theme="dark"] .diana-body .editor-preview { background: var(--diana-surface-2); border-color: var(--diana-border-strong); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .editor-toolbar button { color: var(--diana-text-2) !important; }
html[data-theme="dark"] .diana-body .editor-toolbar button:hover, html[data-theme="dark"] .diana-body .editor-toolbar button.active { background: var(--diana-surface-3); border-color: var(--diana-border-strong); }
html[data-theme="dark"] .diana-body .CodeMirror-cursor { border-color: var(--diana-heading); }

/* Buttons the parent paints light */
html[data-theme="dark"] .diana-body .btn-default,
html[data-theme="dark"] .diana-body .btn-light,
html[data-theme="dark"] .diana-body .btn-secondary,
html[data-theme="dark"] .diana-body .btn-outline-secondary { background: var(--diana-surface-2); border-color: var(--diana-border-strong); color: var(--diana-text); }
html[data-theme="dark"] .diana-body .btn-default:hover,
html[data-theme="dark"] .diana-body .btn-light:hover,
html[data-theme="dark"] .diana-body .btn-secondary:hover,
html[data-theme="dark"] .diana-body .btn-outline-secondary:hover { background: var(--diana-surface-3); border-color: var(--diana-border-accent); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .btn-link { color: var(--diana-primary); }
html[data-theme="dark"] .diana-content .btn-outline-primary { border-color: var(--diana-border-accent); }
html[data-theme="dark"] .diana-content .btn-outline-danger { border-color: rgba(239, 68, 68, .4); color: #fca5a5; }

/* Tables and DataTables */
html[data-theme="dark"] .diana-body .table { color: var(--diana-text); }
html[data-theme="dark"] .diana-body .table th, html[data-theme="dark"] .diana-body .table td,
html[data-theme="dark"] .diana-body .table thead th { border-color: var(--diana-border); }
html[data-theme="dark"] .diana-body .table thead th { color: var(--diana-muted); background-color: var(--diana-surface-2); }
html[data-theme="dark"] .diana-body .table-striped tbody tr:nth-of-type(odd) { background-color: rgba(255, 255, 255, .02); }
html[data-theme="dark"] .diana-body .table-hover tbody tr:hover,
html[data-theme="dark"] .diana-body .table-list tbody tr:hover { background-color: var(--diana-surface-2); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body table.dataTable tbody tr, html[data-theme="dark"] .diana-body .table-list > tbody > tr > td { background-color: transparent; }
html[data-theme="dark"] .diana-body .dataTables_wrapper .dataTables_info,
html[data-theme="dark"] .diana-body .dataTables_wrapper .dataTables_length,
html[data-theme="dark"] .diana-body .dataTables_wrapper .dataTables_filter { color: var(--diana-muted); }
html[data-theme="dark"] .diana-body .dataTables_wrapper .listtable, html[data-theme="dark"] .diana-body .table-container { background: var(--diana-surface); border-color: var(--diana-border); }
html[data-theme="dark"] .diana-body .page-link { background: var(--diana-surface); border-color: var(--diana-border); color: var(--diana-text); }
html[data-theme="dark"] .diana-body .page-item.disabled .page-link { background: var(--diana-surface); border-color: var(--diana-border); color: var(--diana-faint); }
html[data-theme="dark"] .diana-body .breadcrumb { background: transparent; }
html[data-theme="dark"] .diana-body .diana-breadcrumb .breadcrumb { background: var(--diana-surface); box-shadow: none; }

/* Tabs */
html[data-theme="dark"] .diana-body .nav-tabs { border-color: var(--diana-border); }
html[data-theme="dark"] .diana-body .nav-tabs .nav-link { color: var(--diana-muted); }
html[data-theme="dark"] .diana-body .nav-tabs .nav-link:hover { border-color: transparent; color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .nav-tabs .nav-link.active,
html[data-theme="dark"] .diana-body .nav-tabs .nav-item.show .nav-link { background: var(--diana-surface); border-color: var(--diana-border) var(--diana-border) var(--diana-surface); color: var(--diana-heading); }
html[data-theme="dark"] .diana-body .tab-content { color: var(--diana-text); }

@media (max-width: 419.98px) {
    .diana-pin-btn { width: 42px; padding: 0; justify-content: center; }
    .diana-pin-btn-label { display: none; }
}

/* Illustrations (includes/art.tpl): the light and dark copies are separate <img>s */
.diana-art-d { display: none !important; }
html[data-theme="dark"] .diana-art-l { display: none !important; }
html[data-theme="dark"] .diana-art-d { display: block !important; }

/* Modal backdrop is lighter than the dark page otherwise */
html[data-theme="dark"] .modal-backdrop.show { opacity: .7; }

/* =====================================================================
   eKYC addon page (index.php?m=ekyc). The module's CSS reads its colours
   from --acc/--card/--bd/...; point them at the Diana tokens so it follows
   light and dark mode.
   ===================================================================== */
.diana-body .ekyc {
    --acc: var(--diana-primary);
    --acc-soft: var(--diana-primary-soft);
    --ok: var(--diana-green);
    --ok-soft: var(--diana-green-soft);
    --ok-text: var(--diana-green-text);
    --warn: var(--diana-orange);
    --warn-soft: var(--diana-orange-soft);
    --warn-text: var(--diana-orange-text);
    --bad: var(--diana-red);
    --bad-soft: var(--diana-red-soft);
    --bd: var(--diana-border);
    --soft: var(--diana-surface-2);
    --mut: var(--diana-muted);
    --card: var(--diana-surface);
    --txt2: var(--diana-text-2);
    --head: var(--diana-heading);
    --radius: var(--diana-radius);
    --shadow: var(--diana-shadow);
    --hero-bg: var(--diana-hero-bg);
    --verified-bg: linear-gradient(135deg, var(--diana-primary-soft), var(--diana-surface));
    max-width: none;
    color: var(--diana-text);
}
html[data-theme="dark"] .diana-body .ekyc { --seal: #3b8cff; }

/* =====================================================================
   Laptop density (992–1599px). At 100% zoom the default sizing felt like
   110% on 13–15" laptops; text is rem-based, so a smaller root size scales
   it, and the fixed-pixel shell metrics are tightened to match.
   ===================================================================== */
@media (min-width: 992px) {
    html { font-size: clamp(13.5px, calc(7.4px + .42vw), 15px); }
}
@media (min-width: 992px) and (max-width: 1599.98px) {
    :root { --diana-sidebar-w: 264px; --diana-topbar-h: 66px; --diana-content-top: 20px; }
    .diana-sidebar { padding: 16px 14px; }
    .diana-brand-logo { max-width: 160px; }
    .diana-brand-has-logo { padding-bottom: 14px; }
    .diana-nav-link { padding: 9px 12px; }
    .diana-nav-item { margin-bottom: 2px; }
    .diana-topbar { padding: 0 24px; gap: 12px; }
    .diana-search { height: 40px; max-width: 400px; }
    .diana-pin-btn { height: 40px; padding: 0 14px; }
    .diana-icon-btn { width: 40px; height: 40px; font-size: 1.12rem; }
    .diana-avatar { width: 36px; height: 36px; }
    .diana-user { padding-left: 12px; }
    section#main-body.diana-content { padding: 20px 24px 28px; }
    .diana-footer { padding: 16px 24px 22px; }

    .diana-btn { padding: 9px 16px; }
    .diana-btn-sm { padding: 7px 12px; }
    .diana-card { margin-bottom: 20px; }
    .diana-card-head { padding: 16px 18px 12px; }
    .diana-card-body { padding: 0 18px 16px; }
    .diana-card-foot { padding: 10px 18px 14px; }
    .diana-panel .list-group-item { padding: 10px 18px; }

    .diana-stats { gap: 14px; margin-bottom: 20px; }
    .diana-stat { padding: 14px 16px; }
    .diana-stat-icon { width: 44px; height: 44px; border-radius: 12px; }
    .diana-welcome { padding: 26px 28px; gap: 24px; }
    .diana-welcome h1 { margin: 12px 0 8px; }
    .diana-welcome-status { margin-bottom: 18px; }
    .diana-welcome-row { padding: 11px 0; }
    .diana-welcome-ico { flex-basis: 36px; width: 36px; height: 36px; }
    .diana-dash-tiles { padding: 2px 14px 14px; gap: 8px; }
    .diana-dash-tile { padding: 12px 6px 10px; }
    .diana-dash-help { padding: 16px; }
    .diana-card.diana-dash-upgrade { padding: 20px; }

    .diana-hero { min-height: 220px; }
    .diana-page-hero { min-height: 124px; padding: 22px 26px; gap: 18px; }
    .diana-page-hero-icon { width: 62px; height: 62px; border-radius: 17px; }
    .diana-svc-toolbar { padding: 16px 18px; }
    .diana-svc-search { height: 38px; width: 220px; }
    .diana-svc-table th { padding: 10px 14px; }
    .diana-svc-table td { padding: 11px 14px; }
    .diana-svc-foot { padding: 12px 18px; }
    .diana-help-banner { padding: 18px 20px; }
    .diana-help-card.diana-ai-card { padding: 16px; }
}
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .diana-welcome { grid-template-columns: minmax(0, 1fr) 320px; }
}
/* Fixed sidebar: the brand row is exactly as tall as the top bar, and the menu starts as far below it
   as the page content does, so the first menu item lines up with the top of the content. */
@media (min-width: 992px) {
    .diana-sidebar { padding-top: 0; }
    .diana-sidebar .diana-brand,
    .diana-nav-collapsed .diana-sidebar .diana-brand { flex: 0 0 auto; height: var(--diana-topbar-h); padding-top: 0; padding-bottom: 0; }
    .diana-nav-wrap { padding-top: var(--diana-content-top); }
    section#main-body.diana-content { padding-top: var(--diana-content-top); }
}

/* =====================================================================
   Phone density (<576px). Same idea as the laptop block: a smaller root
   size scales the rem-based text, and the fixed-pixel metrics shrink.
   ===================================================================== */
@media (max-width: 575.98px) {
    html { font-size: 13px; }
    :root { --diana-topbar-h: 60px; }
    .diana-topbar { gap: 6px; padding-left: 12px; padding-right: 12px; }
    .diana-icon-btn, .diana-topbar .diana-icon-btn { width: 36px; height: 36px; font-size: 1.05rem; }
    .diana-avatar { width: 34px; height: 34px; font-size: .8rem; }
    .diana-pin-btn { height: 36px; padding: 0 10px; }
    section#main-body.diana-content { padding: 14px 12px 22px; }
    .diana-footer { padding: 14px 12px 20px; }
    .diana-breadcrumb { margin-bottom: 10px; }
    .diana-breadcrumb .breadcrumb { padding: 4px 5px; font-size: .78rem; }
    .diana-breadcrumb .breadcrumb-item a, .diana-breadcrumb .breadcrumb-item.active > span { padding: 4px 8px; }

    .diana-btn { padding: 9px 14px; border-radius: 10px; }
    .diana-card { margin-bottom: 14px; }
    .diana-card-head { padding: 14px 14px 10px; }
    .diana-card-body { padding: 0 14px 14px; }
    .diana-card-foot { padding: 10px 14px 12px; }
    .diana-panel .list-group-item { padding: 10px 14px; }

    .diana-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
    .diana-stat { gap: 10px; padding: 12px; }
    .diana-stat-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
    .diana-stat-body { min-width: 0; }
    .diana-stat-body strong { font-size: 1.3rem; overflow-wrap: anywhere; }
    .diana-stat-body span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .diana-stat-arrow { display: none; }

    .diana-welcome { padding: 20px 16px; gap: 16px; margin-bottom: 14px; border-radius: 18px; }
    .diana-welcome h1 { margin: 12px 0 8px; font-size: 1.6rem; }
    .diana-welcome-status { margin-bottom: 16px; font-size: .95rem; }
    .diana-welcome-actions { gap: 8px; }
    .diana-welcome-panel { padding: 2px 14px; border-radius: 14px; }
    .diana-welcome-row { padding: 10px 0; gap: 10px; }
    .diana-welcome-ico { flex-basis: 34px; width: 34px; height: 34px; }
    .diana-dash-tiles { padding: 2px 12px 12px; gap: 8px; }
    .diana-dash-tile { padding: 12px 4px 10px; }

    .diana-hero-copy { padding: 22px 18px; }
    .diana-hero h1 { font-size: 1.75rem; }
    .diana-page-hero { padding: 16px; gap: 12px; border-radius: 16px; }
    .diana-page-hero-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
    .diana-page-hero h1 { font-size: 1.35rem; }
    .diana-svc-toolbar { padding: 14px; }
    .diana-help-banner { padding: 14px; gap: 12px; }
    .diana-help-banner-icon, .diana-upgrade-banner-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }

    .diana-billing-summary { gap: 10px; margin-bottom: 14px; }
    .diana-billing-summary .diana-card { gap: 10px 12px; padding: 14px; }
    .diana-billing-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
    .diana-billing-body strong { font-size: 1.35rem; }
    .diana-balance { gap: 12px; padding: 14px; }
    .diana-balance-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }

    /* The whole row links to the service; the stock theme hides the button text below 768px */
    .diana-service-list { padding: 0 14px 6px; }
    .diana-services-more { margin: 0 14px 14px; padding: 10px 12px; font-size: .84rem; }
    .diana-services .div-service-item { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "icon name status"; gap: 12px; padding: 12px 0; }
    .diana-services .div-service-item::before,
    .diana-services .diana-svc-os { width: 40px; height: 40px; border-radius: 12px; background-size: 18px 18px; }
    .diana-services .diana-svc-os img { width: 24px; height: 24px; }
    .diana-services .div-service-buttons { display: none; }
    .diana-services .div-service-status { width: auto !important; }
    .diana-services .div-service-status .label { max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
    .diana-services .div-service-name .font-weight-bold { font-size: .98rem; }
}
