/* Direction B — "Journey Drawer" (Ultra-Luxury Automotive SaaS Redesign)
 * Obsidian glass surfaces, neon cyan/cobalt accents, refined typography and single-surface popovers. */

body.customer-ui-new.new-panel,
body.admin-surface.admin-ui-new,
body.customer-login-new,
body.admin-login-new {
    --sgB-ink: #040912;
    --sgB-surface: rgba(7, 14, 27, 0.94);
    --sgB-surface-card: rgba(13, 23, 42, 0.65);
    --sgB-raise: rgba(18, 32, 58, 0.75);
    --sgB-line: rgba(62, 139, 255, 0.2);
    --sgB-line-strong: rgba(0, 210, 255, 0.4);
    --sgB-line-soft: rgba(255, 255, 255, 0.06);
    --sgB-hero: radial-gradient(120% 120% at 85% 0%, rgba(9, 100, 245, 0.25) 0%, rgba(13, 26, 52, 0.92) 55%, #050b16 100%);
    --sgB-accent: #00d2ff;
    --sgB-accent-glow: 0 0 20px rgba(0, 210, 255, 0.4);
    --sgB-shadow: -32px 0 80px rgba(0, 2, 8, 0.78);
}

/* ---------------------------------------------------------------- FAB ---- */
#cs-guide-fab.cs-guide-fab {
    inline-size: auto;
    block-size: auto;
    padding: 0;
    gap: 0;
    background: none;
    border: 0;
    box-shadow: none;
    z-index: 100050;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#cs-guide-fab .cs-guide-fab-label {
    display: none !important;
}

#cs-guide-fab-toggle.cs-guide-fab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 50px;
    block-size: 50px;
    padding: 0;
    cursor: pointer;
    background:
        conic-gradient(var(--sgB-accent, #00d2ff) var(--sg-progress, 0%), rgba(9, 100, 245, 0.8) calc(var(--sg-progress, 0%) * 0.7), rgba(255, 255, 255, 0.08) 0);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 2, 8, 0.58), 0 0 12px rgba(9, 100, 245, 0.2);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}

#cs-guide-fab-toggle.cs-guide-fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 2, 8, 0.68), 0 0 16px rgba(0, 210, 255, 0.32);
}

#cs-guide-fab-toggle.cs-guide-fab-btn::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: radial-gradient(circle at 35% 30%, #15274d, #050b16);
    border-radius: 50%;
    z-index: 0;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15);
}

#cs-guide-fab-toggle.cs-guide-fab-btn svg {
    position: relative;
    z-index: 1;
    inline-size: 22px;
    block-size: 22px;
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.6));
}

#cs-guide-fab-badge.cs-guide-fab-badge {
    position: absolute;
    z-index: 2;
    inset-block-start: -3px;
    inset-inline-end: -3px;
    min-inline-size: 22px;
    block-size: 22px;
    padding-inline: 5px;
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #00d2ff);
    border: 2px solid #040912;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.55);
    font-family: var(--trial-font-mono, monospace);
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#cs-guide-fab-badge.cs-guide-fab-badge--complete {
    color: #041027;
    background: var(--trial-success, #0ab878);
    box-shadow: 0 0 12px rgba(10, 184, 120, 0.6);
}

/* The drawer owns the right edge, so the FAB steps aside while it is open. */
body:has(#cs-guide-panel[aria-hidden="false"]) #cs-guide-fab.cs-guide-fab,
body:has(#cs-guide-panel.is-open) #cs-guide-fab.cs-guide-fab,
body.cs-guide-panel-open #cs-guide-fab.cs-guide-fab {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85) translateX(24px);
}

/* -------------------------------------------------------- Backdrop ------- */
.cs-guide-backdrop {
    position: fixed;
    z-index: 100060;
    inset-block-start: var(--trial-bar-h, 38px);
    inset-inline: 0;
    inset-block-end: 0;
    background: rgba(2, 6, 15, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-guide-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* -------------------------------------------------------------- Drawer --- */
#cs-guide-panel.cs-guide-panel {
    position: fixed;
    z-index: 100065;
    inset-block-start: var(--trial-bar-h, 38px);
    inset-block-end: 0;
    inset-inline-end: 0;
    inline-size: min(420px, 100vw);
    max-block-size: calc(100dvh - var(--trial-bar-h, 38px));
    height: calc(100dvh - var(--trial-bar-h, 38px));
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--sgB-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 0;
    border-inline-start: 1px solid var(--sgB-line);
    border-radius: 0;
    box-shadow: var(--sgB-shadow);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.36s;
}

#cs-guide-panel.cs-guide-panel.is-open,
#cs-guide-panel.cs-guide-panel[aria-hidden="false"] {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cs-guide-panel__head {
    position: relative;
    display: block;
    padding: 20px 64px 17px 22px;
    background: var(--sgB-hero);
    border-block-end: 1px solid var(--sgB-line);
    overflow: hidden;
}

.cs-guide-panel__head::before {
    content: "PORTAL ONBOARDING";
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--sgB-accent, #00d2ff);
    text-transform: uppercase;
    margin-block-end: 5px;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.cs-guide-panel__head::after {
    content: "";
    position: absolute;
    inset-block-start: -80px;
    inset-inline-end: -60px;
    inline-size: 220px;
    block-size: 220px;
    background: radial-gradient(circle, rgba(0, 210, 255, .15), transparent 70%);
    pointer-events: none;
}

.cs-guide-panel__title {
    position: relative;
    margin: 0;
    color: #fff;
    font-family: var(--trial-font-display, "Rajdhani", sans-serif);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.cs-guide-panel__close {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    inline-size: 38px;
    block-size: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.cs-guide-panel__close:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border-color: rgba(0, 210, 255, .4);
    transform: rotate(90deg) scale(1.05);
}

/* Ring instead of a bar. */
#cs-guide-panel-progress.cs-guide-panel__progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    inline-size: 76px;
    block-size: 76px;
    margin: 18px auto 0;
    background: conic-gradient(var(--sgB-accent, #00d2ff) var(--sg-progress, 0%), rgba(9, 100, 245, 0.8) calc(var(--sg-progress, 0%) * 0.7), rgba(255, 255, 255, 0.08) 0);
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 0 24px rgba(0, 210, 255, .25), 0 8px 20px rgba(0, 0, 0, .4);
}

#cs-guide-panel-progress.cs-guide-panel__progress::after {
    content: attr(data-percent);
    position: absolute;
    inset: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #081120;
    border-radius: 50%;
    color: var(--sgB-accent, #00d2ff);
    font-family: var(--trial-font-display, "Rajdhani", monospace);
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 210, 255, .6);
}

#cs-guide-panel-bar.cs-guide-panel__bar,
.cs-guide-panel__progress > span {
    display: none;
}

.cs-guide-panel__progress-label {
    position: relative;
    display: inline-block;
    margin: 12px auto 0;
    padding: 5px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
}

.cs-guide-panel__body {
    position: relative;
    flex: 1 1 auto;
    padding: 20px 18px 16px 18px;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 210, 255, .25) transparent;
}

/* Timeline rail behind the nodes. */
.cs-guide-panel__body::before {
    content: "";
    position: absolute;
    inset-block: 38px 44px;
    inset-inline-start: 51px;
    inline-size: 2px;
    background: linear-gradient(180deg, var(--sgB-accent, #00d2ff) var(--sg-progress, 0%), rgba(255, 255, 255, .08) 0);
    border-radius: 999px;
}

/* --------------------------------------------------------------- Rows ---- */
.cs-guide-step {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    min-block-size: 62px;
    margin-block-end: 8px;
    padding: 12px 14px;
    background: var(--sgB-surface-card, rgba(13, 23, 42, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cs-guide-step--tourable:hover,
.cs-guide-step--tourable:focus-visible {
    background: rgba(9, 100, 245, 0.1);
    border-color: rgba(0, 210, 255, 0.35);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(0, 4, 12, 0.4), 0 0 16px rgba(0, 210, 255, 0.15);
}

.cs-guide-step__icon {
    position: relative;
    z-index: 1;
    inline-size: 38px;
    block-size: 38px;
    min-inline-size: 38px;
    min-block-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: rgba(14, 25, 46, 0.85);
    border: 1px solid rgba(62, 139, 255, 0.25);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cs-guide-step__icon svg {
    inline-size: 16px;
    block-size: 16px;
}

.cs-guide-step--next .cs-guide-step__icon,
.cs-guide-step--active .cs-guide-step__icon {
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #00d2ff);
    border-color: #00d2ff;
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
}

.cs-guide-step--done .cs-guide-step__icon {
    color: #041027;
    background: var(--trial-success, #0ab878);
    border-color: var(--trial-success, #0ab878);
    box-shadow: 0 0 12px rgba(10, 184, 120, 0.4);
}

.cs-guide-step__content {
    flex: 1 1 auto;
    min-inline-size: 0;
}

.cs-guide-step__label {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .01em;
}

.cs-guide-step--done .cs-guide-step__label {
    color: #64748b;
    text-decoration: none;
}

.cs-guide-step__desc {
    margin-block-start: 4px;
    color: #94a3b8;
    font-size: 11.5px;
    line-height: 1.45;
}

.cs-guide-step__play {
    inline-size: 32px;
    block-size: 32px;
    min-inline-size: 32px;
    min-block-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cs-guide-step--tourable:hover .cs-guide-step__play {
    color: #fff;
    background: #0964f5;
    border-color: #00d2ff;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
    transform: scale(1.08);
}

/* ------------------------------------------------------------- Footer ---- */
.cs-guide-panel-admin-discover {
    margin: 0 18px;
    padding-block: 12px;
    color: #94a3b8;
    border-block-start: 1px solid var(--sgB-line-soft);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.cs-guide-panel__foot {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px 20px;
    background: var(--sgB-ink, #040912);
    border-block-start: 1px solid var(--sgB-line);
}

/* Keep the resume control inset from the panel edge below the progress state. */
#cs-guide-panel > #cs-guide-panel-continue.cs-guide-panel-done-tour-btn {
    align-self: center;
    inline-size: calc(100% - 36px);
    min-block-size: 40px;
    margin: 14px 18px 2px;
    padding-inline: 16px;
    box-sizing: border-box;
}

.cs-guide-panel__foot > button {
    min-block-size: 42px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

#cs-guide-panel-tour-btn {
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #00d2ff);
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.35);
}

#cs-guide-panel-tour-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.5);
}

#cs-guide-panel-reset {
    flex: 0 0 auto;
    padding-inline: 18px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#cs-guide-panel-reset:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* The sibling role link is a real footer control; let its label wrap on phones. */
#cs-guide-panel .cs-guide-panel__foot > a.cs-guide-panel-reset-btn {
    display: inline-flex;
    flex: 0 1 auto;
    min-inline-size: 0;
    max-inline-size: 100%;
    min-block-size: 42px;
    align-items: center;
    justify-content: center;
    padding-inline: 14px;
    box-sizing: border-box;
    color: #94a3b8;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

#cs-guide-panel .cs-guide-panel__foot > a.cs-guide-panel-reset-btn:hover,
#cs-guide-panel .cs-guide-panel__foot > a.cs-guide-panel-reset-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
}

/* Completed journey: keep replay actions available without turning the drawer
   into a second completion modal. */
#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel__progress {
    inline-size: 64px;
    block-size: 64px;
    margin-block-start: 14px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel__progress::after {
    inset: 5px;
    font-size: 15px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel__progress-label {
    display: none;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel__body {
    padding: 14px 16px 8px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel__body::before {
    inset-block: 31px 39px;
    inset-inline-start: 46px;
    background: linear-gradient(180deg, rgba(10, 184, 120, .8), rgba(10, 184, 120, .18));
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-step {
    min-block-size: 56px;
    margin-block-end: 6px;
    padding: 9px 11px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: none;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-step--done {
    opacity: 1;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-step__icon {
    inline-size: 36px;
    block-size: 36px;
    min-inline-size: 36px;
    min-block-size: 36px;
    box-shadow: 0 0 10px rgba(10, 184, 120, .28);
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-step__label {
    color: #cbd5e1;
    font-size: 13.5px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-step__desc {
    margin-block-start: 2px;
    color: #7f8da3;
    font-size: 11px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-step__play {
    inline-size: 30px;
    block-size: 30px;
    min-inline-size: 30px;
    min-block-size: 30px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel-done {
    margin: 8px 16px 10px;
    padding: 13px 14px;
    background: linear-gradient(135deg, rgba(10, 184, 120, .1), rgba(0, 210, 255, .04));
    border-color: rgba(10, 184, 120, .34);
    border-radius: 13px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel-done strong {
    font-size: 15px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel-done p {
    margin: 3px 0 9px;
    line-height: 1.35;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel-done-tour-btn {
    min-block-size: 34px;
    padding-inline: 15px;
    color: #dbeafe;
    background: rgba(9, 100, 245, .1);
    border-color: rgba(62, 139, 255, .28);
    font-size: 10.5px;
}

#cs-guide-panel.cs-guide-panel--complete .cs-guide-panel__foot {
    padding: 10px 14px 12px;
}

/* -------------------------------------------------------------- Coach ---- */
.sg-journey-coach {
    gap: 12px;
    padding: 14px 38px 14px 14px;
    background: linear-gradient(135deg, #0d2a63 0%, #08131f 62%);
    border: 1px solid rgba(62, 139, 255, .34);
    border-radius: 16px;
    box-shadow: 0 22px 52px rgba(0, 4, 12, .55);
}

.sg-journey-coach__icon {
    inline-size: 38px;
    block-size: 38px;
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #1881ff);
    border: 0;
    border-radius: 50%;
}

.sg-journey-coach__title {
    font-family: var(--trial-font-display, "Rajdhani", sans-serif);
    font-size: 16px;
    font-weight: 700;
}

.sg-journey-coach__copy {
    font-size: 12.5px;
    line-height: 1.5;
}

.sg-journey-coach__progress {
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    font-weight: 700;
}

.sg-journey-coach__actions {
    margin-block-start: 11px;
    gap: 8px;
}

.sg-journey-coach__primary {
    min-block-size: 38px;
    padding-inline: 16px;
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #1881ff);
    border: 0;
    border-radius: 999px;
    font-size: 12px;
}

.sg-journey-coach__secondary {
    min-block-size: 38px;
    color: var(--trial-muted, #aab5c7);
    border-color: var(--sgB-line);
    border-radius: 999px;
    font-size: 12px;
}

.sg-journey-coach__close {
    color: rgba(255, 255, 255, .62);
    border-radius: 50%;
    font-size: 16px;
}

/* ------------------------------------------------- Offer / language gate -- */
.sg-page-explore-offer__card,
.sg-lang-guide-gate__card {
    position: relative;
    padding: 26px 26px 22px;
    background: var(--sgB-surface);
    border: 1px solid var(--sgB-line);
    border-radius: 20px;
    box-shadow: 0 34px 84px rgba(0, 4, 12, .64);
    overflow: hidden;
}

/* Short language-gate viewports must scroll the dialog instead of clipping its actions. */
.sg-lang-guide-gate__card {
    overflow-x: hidden;
    overflow-y: auto;
}

.sg-page-explore-offer__card::before,
.sg-lang-guide-gate__card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 4px;
    background: var(--sgB-hero);
}

.sg-page-explore-offer__eyebrow,
.sg-lang-guide-gate__eyebrow {
    color: var(--trial-bright, #3e8bff);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.sg-page-explore-offer__title,
.sg-lang-guide-gate__title {
    margin-block-start: 8px;
    font-family: var(--trial-font-display, "Rajdhani", sans-serif);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.08;
}

.sg-page-explore-offer__copy,
.sg-lang-guide-gate__copy {
    margin-block-start: 8px;
    color: var(--trial-muted, #aab5c7);
    font-size: 13px;
    line-height: 1.5;
}

.sg-lang-guide-gate__label {
    margin-block-start: 18px;
    color: var(--trial-subtle, #7e8ca3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sg-lang-guide-gate__language {
    min-block-size: 46px;
    background: var(--sgB-raise);
    border-color: var(--sgB-line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.sg-lang-guide-gate__language[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #1881ff);
    border-color: transparent;
}

.sg-page-explore-offer__primary,
.sg-lang-guide-gate__primary {
    min-block-size: 46px;
    padding-inline: 22px;
    color: #fff;
    background: linear-gradient(135deg, #0964f5, #1881ff);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(9, 100, 245, .36);
    font-size: 13px;
    font-weight: 800;
}

.sg-page-explore-offer__secondary,
.sg-lang-guide-gate__secondary {
    min-block-size: 46px;
    color: var(--trial-muted, #aab5c7);
    background: transparent;
    border: 1px solid var(--sgB-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* ------------------------------------------------------ Driver popover ---- */
.sg-driver-popover,
.driver-popover.sg-driver-popover {
    position: fixed;
    z-index: 2147483600 !important;
    inline-size: min(360px, calc(100vw - 32px));
    padding: 0 !important;
    background: rgba(8, 15, 28, 0.98) !important;
    border: 1px solid rgba(76, 151, 255, 0.34) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: var(--trial-font-body, "Nunito", system-ui, sans-serif);
}

.sg-driver-popover::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 2px;
    background: linear-gradient(90deg, #0964f5, #00d2ff);
    z-index: 3;
}

.sg-driver-popover.sg-driver-popover--viewport-clamped {
    inset-block-start: var(--sg-safe-popover-top) !important;
    inset-block-end: auto !important;
}

.sg-driver-popover .driver-popover-title {
    position: relative;
    margin: 0;
    padding: 18px 48px 6px 18px !important;
    color: #ffffff !important;
    background: transparent !important;
    font-family: var(--trial-font-display, "Rajdhani", sans-serif);
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* In RTL the logical inline-end is the physical left, where Driver places close. */
html[dir="rtl"] .sg-driver-popover .driver-popover-title {
    padding-inline-start: 18px !important;
    padding-inline-end: 48px !important;
}

.sg-driver-popover .driver-popover-description {
    margin: 0;
    padding: 0 18px 13px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.sg-driver-popover .driver-popover-close-btn {
    all: unset;
    position: absolute;
    inset-block-start: 12px !important;
    inset-inline-end: 12px !important;
    inline-size: 32px;
    block-size: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    color: #94a3b8 !important;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
}

.sg-driver-popover .driver-popover-close-btn:hover {
    background: rgba(255, 255, 255, .2) !important;
    color: #ffffff !important;
    border-color: rgba(0, 210, 255, 0.4) !important;
    transform: rotate(90deg) scale(1.05);
}

.sg-driver-progress-meta {
    inline-size: 100%;
    padding: 0 !important;
    background: transparent !important;
    border-block-start: 0;
    box-sizing: border-box;
}

.sg-driver-progress-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--trial-font-mono, monospace);
}

.sg-driver-progress-summary__item {
    color: #64748b;
}

.sg-driver-progress-summary__item--page {
    color: var(--sgB-accent, #00d2ff);
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.sg-driver-progress-track {
    block-size: 4px;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    overflow: hidden;
}

.sg-driver-progress-fill--page {
    block-size: 100%;
    background: linear-gradient(90deg, #0964f5, #00d2ff);
    border-radius: inherit;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    transition: width 0.3s ease;
}

.sg-driver-popover .driver-popover-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 14px !important;
    gap: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(4, 9, 20, 0.65) !important;
    border-radius: 0 0 15px 15px !important;
    margin-block-start: 0 !important;
}

.sg-driver-popover .driver-popover-navigation-btns {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    margin: 0 !important;
}

.sg-driver-popover .driver-popover-navigation-btns button {
    flex: 1 1 0 !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
}

.sg-driver-popover .driver-popover-navigation-btns.sg-driver-navigation--chapter-flow {
    display: grid !important;
    grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1.55fr) !important;
}

.sg-driver-popover .driver-popover-footer button,
.sg-driver-popover .driver-popover-navigation-btns button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
}

.sg-driver-popover .driver-popover-footer button.driver-popover-prev-btn,
.sg-driver-popover .driver-popover-navigation-btns button.driver-popover-prev-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(8px) !important;
}

.sg-driver-popover .driver-popover-footer button.driver-popover-prev-btn:hover:not(:disabled),
.sg-driver-popover .driver-popover-navigation-btns button.driver-popover-prev-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

.sg-driver-popover .driver-popover-footer button.driver-popover-prev-btn:disabled,
.sg-driver-popover .driver-popover-navigation-btns button.driver-popover-prev-btn:disabled,
.sg-driver-popover .driver-popover-footer button.driver-popover-prev-btn.driver-popover-btn-disabled,
.sg-driver-popover .driver-popover-navigation-btns button.driver-popover-prev-btn.driver-popover-btn-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.sg-driver-popover .driver-popover-footer button.driver-popover-next-btn,
.sg-driver-popover .driver-popover-navigation-btns button.driver-popover-next-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 7px 18px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0964f5 0%, #00d2ff 100%) !important;
    border: 1px solid rgba(0, 210, 255, 0.4) !important;
    box-shadow: 0 5px 16px rgba(0, 150, 255, 0.28) !important;
}

.sg-driver-popover .driver-popover-footer button.driver-popover-next-btn:hover,
.sg-driver-popover .driver-popover-navigation-btns button.driver-popover-next-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.sg-driver-popover .driver-popover-navigation-btns button:focus-visible,
.sg-driver-popover .driver-popover-close-btn:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.32), 0 8px 24px rgba(0, 210, 255, 0.42) !important;
}

.sg-driver-popover .driver-popover-footer button.sg-driver-btn--chapter-flow,
.sg-driver-popover .driver-popover-navigation-btns button.sg-driver-btn--chapter-flow {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #10b981 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 22px rgba(6, 182, 212, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    min-inline-size: 0 !important;
    padding: 7px 11px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

.sg-driver-popover .driver-popover-footer button.sg-driver-btn--finish,
.sg-driver-popover .driver-popover-navigation-btns button.sg-driver-btn--finish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 4px 22px rgba(16, 185, 129, 0.45) !important;
    padding: 8px 26px !important;
}

/* Arrow styling matching obsidian glass surface */
.driver-popover-arrow {
    border-color: rgba(0, 210, 255, .3) !important;
}
.driver-popover-arrow-side-top {
    border-bottom-color: rgba(9, 16, 30, 0.98) !important;
}
.driver-popover-arrow-side-bottom {
    border-top-color: rgba(9, 16, 30, 0.98) !important;
}
.driver-popover-arrow-side-left {
    border-right-color: rgba(9, 16, 30, 0.98) !important;
}
.driver-popover-arrow-side-right {
    border-left-color: rgba(9, 16, 30, 0.98) !important;
}

/* Focused active element spotlight */
.driver-active-element {
    outline: 2px solid rgba(0, 210, 255, 0.9) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.26) !important;
    border-radius: 10px;
    transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.driver-overlay {
    z-index: 2147483500 !important;
    fill: #020612 !important;
    fill-opacity: 0.76 !important;
    transition: fill-opacity 0.25s ease;
}

/* Scroll target safety margins against fixed trial bar (~40px) + topbar (~64px) */
.driver-active-element,
[data-tour],
.card,
.panel,
.table-responsive,
.dataTables_wrapper,
.ctx-search,
.classic-box {
    scroll-margin-top: 140px !important;
    scroll-margin-bottom: 90px !important;
}

/* Premium Modal Button Layout & Styling - Balanced 50/50 2-column grid */
.sg-lang-guide-gate__actions,
.sg-page-explore-offer__actions,
.trial-mode-dialog__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    margin-top: 24px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
}

.sg-lang-guide-gate__actions button,
.sg-page-explore-offer__actions button,
.trial-mode-dialog__actions button,
.trial-mode-dialog__btn {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Primary CTA Button (Show me around / Start Tour) */
.sg-page-explore-offer__primary,
.sg-page-explore-offer-btn--primary,
.sg-lang-guide-gate__primary,
.trial-mode-dialog__btn--primary {
    background: linear-gradient(135deg, #0964f5 0%, #00d2ff 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 210, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.sg-page-explore-offer__primary:hover,
.sg-page-explore-offer-btn--primary:hover,
.sg-lang-guide-gate__primary:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.65) !important;
}

/* Secondary Button (Not now / Skip) */
.sg-page-explore-offer__secondary,
.sg-page-explore-offer-btn:not(.sg-page-explore-offer-btn--primary),
.sg-lang-guide-gate__secondary,
.trial-mode-dialog__btn--secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(8px) !important;
}

.sg-page-explore-offer__secondary:hover,
.sg-lang-guide-gate__secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ------------------------------------------------------------- Mobile ---- */
@media (max-width: 639px) {
    #cs-guide-panel.cs-guide-panel {
        inline-size: 100vw;
        inset-inline: 0;
        border-inline-start: 0;
        inset-block-start: var(--trial-bar-h, 38px);
        max-block-size: calc(100dvh - var(--trial-bar-h, 38px));
        height: calc(100dvh - var(--trial-bar-h, 38px));
    }

    .cs-guide-panel__head {
        padding: 17px 58px 15px 18px;
    }

    .cs-guide-panel__title {
        font-size: 21px;
        padding-inline-end: 0;
    }

    .cs-guide-panel__close {
        inset-block-start: 14px;
        inset-inline-end: 14px;
    }

    .sg-journey-coach {
        inset-inline: 8px;
        border-radius: 18px 18px 14px 14px;
    }

    /* Second Topbar (#new-topbar & #admin-header) Mobile Excellence */
    #new-topbar, #admin-header {
        height: 52px !important;
        padding-inline: 12px !important;
        position: relative !important;
    }

    /* Make the page title visible, centered and sharp in the empty black middle! */
    .ctx-page-tag.customer-header__context-title,
    .ctx-page-tag.admin-header__context-title,
    #new-topbar .new-topbar__page,
    #admin-header .admin-header__context-title {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100% - 130px) !important;
        text-align: center !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }

    .new-topbar__title,
    .admin-header__title,
    .ctx-page-tag .new-topbar__title {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
    }

    #admin-header .admin-header__context-title strong {
        display: block !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        letter-spacing: -0.2px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
    }

    #admin-header .admin-header__context-title small {
        display: none !important;
    }

    #admin-header .tag-wrap--red {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Mobile modal buttons: Column with Primary strictly on top, Secondary below */
    .sg-lang-guide-gate__actions,
    .sg-page-explore-offer__actions,
    .trial-mode-dialog__actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin-top: 22px !important;
    }

    .sg-page-explore-offer__primary,
    .sg-page-explore-offer-btn--primary,
    .sg-lang-guide-gate__primary,
    .trial-mode-dialog__btn--primary {
        order: 1 !important;
        width: 100% !important;
        min-height: 48px !important;
        font-size: 14px !important;
        margin: 0 !important;
    }

    .sg-page-explore-offer__secondary,
    .sg-page-explore-offer-btn:not(.sg-page-explore-offer-btn--primary),
    .sg-lang-guide-gate__secondary,
    .trial-mode-dialog__btn--secondary {
        order: 2 !important;
        width: 100% !important;
        min-height: 44px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    /* Mobile Popover navigation */
    .sg-driver-popover .driver-popover-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .sg-driver-popover .driver-popover-navigation-btns {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 8px !important;
    }

    .sg-driver-popover .driver-popover-navigation-btns button {
        flex: 1 !important;
        min-height: 36px !important;
        border-radius: 999px !important;
        font-size: 12.5px !important;
    }

    .sg-driver-popover .driver-popover-navigation-btns.sg-driver-navigation--chapter-flow {
        display: grid !important;
        grid-template-columns: minmax(82px, 0.68fr) minmax(0, 1.55fr) !important;
    }

    .sg-driver-popover .driver-popover-navigation-btns.sg-driver-navigation--chapter-flow button.sg-driver-btn--chapter-flow {
        padding-inline: 9px !important;
    }
}

@media (max-width: 359px) {
    .sg-driver-popover .driver-popover-navigation-btns.sg-driver-navigation--chapter-flow {
        grid-template-columns: 1fr !important;
    }
}

/* ------------------------------------------------ Celebration Modal (Obsidian) -- */
.sg-celebration-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(4, 8, 18, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    opacity: 0;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sg-celebration-overlay.is-visible {
    opacity: 1 !important;
}

.sg-celebration-card {
    position: relative !important;
    width: min(500px, calc(100vw - 36px)) !important;
    padding: 38px 32px 30px !important;
    background: radial-gradient(circle at 50% 0%, rgba(9, 100, 245, 0.2) 0%, rgba(7, 13, 24, 0.98) 75%) !important;
    border: 1px solid rgba(0, 210, 255, 0.35) !important;
    border-radius: 24px !important;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(9, 100, 245, 0.25) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    animation: sgPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes sgPopIn {
    0% { transform: scale(0.92) translateY(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.sg-celebration-badge {
    font-size: 52px !important;
    line-height: 1 !important;
    margin-bottom: 14px !important;
    filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.45)) !important;
}

.sg-celebration-eyebrow {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2em !important;
    color: #00d2ff !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.sg-celebration-title {
    margin: 0 0 12px !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
}

.sg-celebration-copy {
    margin: 0 0 28px !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.sg-celebration-actions {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sg-celebration-btn {
    min-height: 48px !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

.sg-celebration-btn--primary {
    background: linear-gradient(135deg, #0964f5 0%, #00d2ff 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 210, 255, 0.4) !important;
    box-shadow: 0 4px 22px rgba(0, 210, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.sg-celebration-btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.7) !important;
}

.sg-celebration-btn--secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.sg-celebration-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

@media (max-width: 639px) {
    .sg-celebration-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .sg-celebration-card {
        padding: 28px 20px 24px !important;
    }
    .sg-celebration-title {
        font-size: 20px !important;
    }
}
