/*
 * Spec 051 — Customer Journey v8.23.0
 *
 * All customer-facing UI added across Phases 1–6 lives here under the
 * .ds-cj-* prefix so it never collides with the inline portal/public_menu
 * CSS blocks. Loaded by portal/layout.blade.php and public_menu/layout.blade.php.
 *
 * Light theme only: customer-facing screens always render against a light
 * canvas so the tenant brand color stays consistent regardless of the diner's
 * OS setting. RTL: all layout uses logical properties (inset-inline-*,
 * margin-inline-*) so the same class works in LTR and RTL.
 */

/* ==========================================================================
   Phase 1 — Shared brand footer
   ========================================================================== */

.ds-cj-brand-footer {
    background: transparent;
    padding: 20px 16px 28px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    font-family: inherit;
}
.ds-cj-brand-footer__inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.ds-cj-brand-footer__label {
    opacity: 0.85;
}
.ds-cj-brand-footer__wordmark {
    color: var(--cj-primary, #4f46e5);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2px;
}
.ds-cj-brand-footer__wordmark:hover {
    text-decoration: underline;
}
.ds-cj-brand-footer__version {
    opacity: 0.6;
    font-variant-numeric: tabular-nums;
    margin-inline-start: 4px;
}

/* ==========================================================================
   Shared primitives used by later phases
   ========================================================================== */

.ds-cj-no-scroll { overflow: hidden !important; }

.ds-cj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.ds-cj-btn:hover { text-decoration: none; }
.ds-cj-btn:active { transform: scale(0.98); }

.ds-cj-btn--primary {
    background: var(--cj-primary, #4f46e5);
    color: white;
}
.ds-cj-btn--primary:hover { background: var(--cj-primary-dark, #4338ca); color: white; }

.ds-cj-btn--ghost {
    background: transparent;
    color: var(--cj-primary, #4f46e5);
    border: 1.5px solid #c7d2fe;
}
.ds-cj-btn--ghost:hover { background: var(--cj-primary-tint, #eef2ff); color: var(--cj-primary, #4f46e5); }

.ds-cj-btn--danger-ghost {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}
.ds-cj-btn--danger-ghost:hover { background: #fee2e2; color: #dc2626; }

.ds-cj-btn--block {
    width: 100%;
}

.ds-cj-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ==========================================================================
   Phase 2 — Cart drawer + line cards (public menu)
   ========================================================================== */

.ds-cj-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ds-cj-cart-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ds-cj-cart-drawer {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -16px 0 48px rgba(15, 23, 42, 0.18);
}
html[dir="rtl"] .ds-cj-cart-drawer { transform: translateX(-100%); }
.ds-cj-cart-drawer.is-open { transform: translateX(0); }
/* Spec 058 — RTL open override (the [dir="rtl"] selector above has higher
 * specificity than `.is-open`, so the open transform would never apply on
 * Arabic pages without this explicit rule). Also flip the drop shadow so it
 * falls on the menu side instead of off-screen. */
html[dir="rtl"] .ds-cj-cart-drawer.is-open { transform: translateX(0); }
html[dir="rtl"] .ds-cj-cart-drawer { box-shadow: 16px 0 48px rgba(15, 23, 42, 0.18); }

.ds-cj-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.ds-cj-cart-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.ds-cj-cart-header__close {
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
}
.ds-cj-cart-header__close:hover { background: #f1f5f9; color: #0f172a; }

.ds-cj-cart-table-banner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ds-cj-cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

/* Spec 052 Phase 7 — swipe-to-delete wrap (the line lives inside this) */
.ds-cj-cart-line-wrap {
    position: relative;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    touch-action: pan-y;
}

.ds-cj-cart-line {
    display: flex;
    gap: 12px;
    padding: 12px;
    min-height: 96px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.ds-cj-cart-line.is-swiping {
    transition: none;
}

/* Trailing-edge delete action revealed by swipe (LTR: right, RTL: left) */
.ds-cj-cart-line__delete-action {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 86px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 22px;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 12px 0;
    z-index: 1;
}
html[dir="rtl"] .ds-cj-cart-line__delete-action {
    border-radius: 12px 0 0 12px;
}
.ds-cj-cart-line__img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
}
.ds-cj-cart-line__placeholder {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cj-primary-dark, #4338ca);
    font-size: 20px;
}
.ds-cj-cart-line__info {
    flex: 1 1 auto;
    min-width: 0;
}
.ds-cj-cart-line__name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-cj-cart-line__modifiers {
    font-size: 12px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 4px;
}
.ds-cj-cart-line__note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    max-width: 100%;
    margin-top: 2px;
}
.ds-cj-cart-line__note i { font-size: 10px; }
.ds-cj-cart-line__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
}
.ds-cj-cart-line__total {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.ds-cj-cart-line__qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px;
}
.ds-cj-cart-line__qty button {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ds-cj-cart-line__qty button:hover { background: #e0e7ff; }
.ds-cj-cart-line__qty button[disabled] { opacity: 0.45; cursor: not-allowed; }
.ds-cj-cart-line__qty span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    color: #0f172a;
}
.ds-cj-cart-line__remove {
    background: none;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.ds-cj-cart-line__remove:hover { color: #dc2626; background: #fee2e2; }

.ds-cj-cart-empty {
    text-align: center;
    padding: 48px 20px;
    color: #94a3b8;
}
.ds-cj-cart-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 12px;
}
.ds-cj-cart-empty h3 {
    font-size: 17px;
    margin: 0 0 6px;
    color: #475569;
}
.ds-cj-cart-empty p {
    font-size: 14px;
    margin: 0 0 20px;
    color: #94a3b8;
}

.ds-cj-cart-footer {
    border-top: 1px solid #e2e8f0;
    padding: 14px 20px 20px;
    flex-shrink: 0;
    background: #ffffff;
}
.ds-cj-cart-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}
.ds-cj-cart-footer__row.total {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}
.ds-cj-cart-footer__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   Phase 3 — Order tracker + notification bell
   ========================================================================== */

.ds-cj-tracker {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.ds-cj-tracker__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.ds-cj-tracker__ref {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.ds-cj-tracker__placed {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.ds-cj-tracker__eta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.ds-cj-tracker__eta--none {
    background: #f1f5f9;
    color: #64748b;
}
.ds-cj-tracker__eta--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.ds-cj-tracker__steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    margin: 6px 0 20px;
}
.ds-cj-tracker__steps::before {
    content: "";
    position: absolute;
    top: 18px;
    inset-inline-start: 6%;
    inset-inline-end: 6%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.ds-cj-tracker__step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.ds-cj-tracker__step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 0 auto 6px;
    transition: all 0.25s ease;
}
.ds-cj-tracker__step.is-done .ds-cj-tracker__step-dot {
    background: var(--cj-primary, #4f46e5);
    border-color: var(--cj-primary, #4f46e5);
    color: #ffffff;
}
.ds-cj-tracker__step.is-active .ds-cj-tracker__step-dot {
    background: #ffffff;
    border-color: var(--cj-primary, #4f46e5);
    color: var(--cj-primary, #4f46e5);
    box-shadow: 0 0 0 4px #e0e7ff;
    animation: ds-cj-pulse 1.8s ease-in-out infinite;
}
.ds-cj-tracker__step.is-rejected .ds-cj-tracker__step-dot {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}
.ds-cj-tracker__step-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}
.ds-cj-tracker__step.is-active .ds-cj-tracker__step-label,
.ds-cj-tracker__step.is-done .ds-cj-tracker__step-label {
    color: #0f172a;
}
.ds-cj-tracker__step-time {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

@keyframes ds-cj-pulse {
    0%, 100% { box-shadow: 0 0 0 4px #e0e7ff; }
    50%      { box-shadow: 0 0 0 8px #c7d2fe; }
}

.ds-cj-tracker__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}
.ds-cj-tracker__reward {
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    color: #78350f;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-cj-tracker__rejected-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 12px;
    font-size: 13px;
}

/* Notification bell */
.ds-cj-bell {
    position: relative;
    display: inline-flex;
}
.ds-cj-bell__btn {
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: background 0.15s;
}
.ds-cj-bell__btn:hover { background: rgba(255, 255, 255, 0.24); }
.ds-cj-bell__dot {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--cj-primary-dark, #4338ca);
    font-variant-numeric: tabular-nums;
}
.ds-cj-bell__btn.has-unread .ds-cj-bell__dot {
    display: inline-flex;
}
.ds-cj-bell__panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(360px, 92vw);
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    color: #0f172a;
    max-height: 480px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1200;
}
.ds-cj-bell__panel.is-open {
    display: flex;
}
.ds-cj-bell__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    gap: 10px;
}
.ds-cj-bell__panel-head h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #0f172a !important;
    flex: 1 1 auto;
}
.ds-cj-bell__panel-head__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.ds-cj-bell__panel-head button.ds-cj-bell__mark-all {
    background: none;
    border: 0;
    color: var(--cj-primary, #4f46e5) !important;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none !important;
}
.ds-cj-bell__panel-head button.ds-cj-bell__mark-all:hover { background: var(--cj-primary-tint, #eef2ff); }
.ds-cj-bell__panel-head__close {
    background: none;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #94a3b8 !important;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-cj-bell__panel-head__close:hover { background: #f1f5f9; color: #0f172a !important; }

/* Hide mark-all when there are no unread notifications */
.ds-cj-bell:not(.has-unread) .ds-cj-bell__mark-all { display: none; }

.ds-cj-bell__list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}
/* Spec 052 follow-up — bell items live INSIDE .portal-nav which sets `a { color: rgba(255,255,255,0.8) }`,
   so we need to override the inherited color explicitly with a slightly higher specificity than the
   inherited rule. The .ds-cj-bell__panel selector + element selector is enough. */
.ds-cj-bell__panel a.ds-cj-bell__item,
.ds-cj-bell__panel a.ds-cj-bell__item:hover,
.ds-cj-bell__panel a.ds-cj-bell__item:visited {
    color: #0f172a !important;
    text-decoration: none;
}
.ds-cj-bell__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.12s;
    position: relative;
}
.ds-cj-bell__item:hover { background: #f8fafc; text-decoration: none; color: #0f172a; }
.ds-cj-bell__item.is-unread { background: var(--cj-primary-tint, #eef2ff); }
.ds-cj-bell__item.is-unread:hover { background: var(--cj-primary-tint, #e0e7ff); filter: brightness(0.97); }

/* Type icon on the leading edge */
.ds-cj-bell__item-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f1f5f9;
    color: #64748b;
}
.ds-cj-bell__item.is-unread .ds-cj-bell__item-icon {
    background: var(--cj-primary, #4f46e5);
    color: #ffffff;
}
.ds-cj-bell__item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.ds-cj-bell__item-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #0f172a !important;
}
.ds-cj-bell__item-body {
    display: block;
    font-size: 12px;
    color: #64748b !important;
    line-height: 1.4;
}
.ds-cj-bell__item-time {
    display: block;
    font-size: 11px;
    color: #94a3b8 !important;
    margin-top: 4px;
}

/* Unread dot on the trailing edge */
.ds-cj-bell__item-unread-dot {
    position: absolute;
    top: 50%;
    inset-inline-end: 14px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cj-primary, #4f46e5);
    display: none;
}
.ds-cj-bell__item.is-unread .ds-cj-bell__item-unread-dot {
    display: block;
}

.ds-cj-bell__empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}
.ds-cj-bell__empty i { font-size: 32px; color: #cbd5e1; margin-bottom: 10px; display: block; }
.ds-cj-bell__empty h4 { font-size: 14px; color: #475569; margin: 0 0 4px; }
.ds-cj-bell__empty p { font-size: 12px; margin: 0; }

/* ==========================================================================
   Phase 4 — Dashboard hero + KPI cards + achievements strip
   ========================================================================== */

.ds-cj-hero {
    background: linear-gradient(135deg, var(--cj-primary, #4f46e5), #7c3aed);
    border-radius: 18px;
    padding: 22px 22px 26px;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.ds-cj-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ds-cj-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.ds-cj-hero__greeting {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.86;
    margin: 0 0 4px;
}
.ds-cj-hero__name {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
}
.ds-cj-hero__install-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s;
    white-space: nowrap;
}
.ds-cj-hero__install-pill:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
    text-decoration: none;
}

.ds-cj-hero__tier {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.ds-cj-hero__tier-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ds-cj-hero__tier-info {
    flex: 1 1 auto;
    min-width: 0;
}
.ds-cj-hero__tier-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}
.ds-cj-hero__tier-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}
.ds-cj-hero__tier-progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 999px;
    transition: width 0.5s ease;
}
.ds-cj-hero__tier-sub {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* KPI cards grid */
.ds-cj-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.ds-cj-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 140px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.ds-cj-kpi-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.ds-cj-kpi-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ds-cj-kpi-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.ds-cj-kpi-card__icon--indigo { background: var(--cj-primary-tint, #eef2ff); color: var(--cj-primary-dark, #4338ca); }
.ds-cj-kpi-card__icon--amber { background: #fef3c7; color: #92400e; }
.ds-cj-kpi-card__icon--emerald { background: #d1fae5; color: #065f46; }
.ds-cj-kpi-card__icon--rose { background: #ffe4e6; color: #9f1239; }

.ds-cj-kpi-card__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
    margin: 0;
}
.ds-cj-kpi-card__main {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.ds-cj-kpi-card__sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.ds-cj-kpi-card__foot {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ds-cj-kpi-card__foot .ds-cj-btn {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
    flex: 1 1 auto;
}
.ds-cj-kpi-card__product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.ds-cj-kpi-card__product-thumb--placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9f1239;
    font-size: 18px;
    flex-shrink: 0;
}
.ds-cj-kpi-card__status-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Achievements strip */
.ds-cj-achievements {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 22px;
}
.ds-cj-achievements__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
    gap: 10px;
}
.ds-cj-achievements__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.ds-cj-achievements__head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94a3b8;
}
.ds-cj-achievements__strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.ds-cj-achievements__strip::-webkit-scrollbar { display: none; }
.ds-cj-achievement {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 12px;
    border: 1.5px dashed #e2e8f0;
    text-align: center;
    position: relative;
}
.ds-cj-achievement__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f1f5f9;
    color: #cbd5e1;
}
.ds-cj-achievement__name {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.2;
}
.ds-cj-achievement__visits {
    font-size: 11px;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}
.ds-cj-achievement.is-unlocked {
    border-style: solid;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cj-primary-tint, #eef2ff), #e0e7ff);
}
.ds-cj-achievement.is-unlocked .ds-cj-achievement__icon {
    background: linear-gradient(135deg, var(--cj-primary, #4f46e5), #7c3aed);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.32);
}
.ds-cj-achievement.is-unlocked .ds-cj-achievement__name { color: var(--cj-primary-dark, #4338ca); }
.ds-cj-achievement.is-unlocked .ds-cj-achievement__visits { color: #6366f1; }

/* tier palettes for unlocked */
.ds-cj-achievement.is-unlocked.tier-regular .ds-cj-achievement__icon { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3); }
.ds-cj-achievement.is-unlocked.tier-local   .ds-cj-achievement__icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.32); }
.ds-cj-achievement.is-unlocked.tier-vip     .ds-cj-achievement__icon { background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.32); }
.ds-cj-achievement.is-unlocked.tier-legend  .ds-cj-achievement__icon { background: linear-gradient(135deg, #22d3ee, #0891b2); box-shadow: 0 4px 12px rgba(8, 145, 178, 0.32); }

/* ==========================================================================
   Phase 5 — Address cards + map-picker
   ========================================================================== */

.ds-cj-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.ds-cj-address-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
    position: relative;
}
.ds-cj-address-card:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1); }
.ds-cj-address-card__map {
    height: 140px;
    background: #f1f5f9 center/cover no-repeat;
    display: block;
}
.ds-cj-address-card__body {
    padding: 14px 16px 6px;
    flex: 1 1 auto;
}
.ds-cj-address-card__labels {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}
.ds-cj-address-card__label-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--cj-primary-tint, #eef2ff);
    color: var(--cj-primary-dark, #4338ca);
}
.ds-cj-address-card__default-star {
    color: #f59e0b;
    font-size: 14px;
}
.ds-cj-address-card__line1 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
}
.ds-cj-address-card__line2 {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.ds-cj-address-card__actions {
    display: flex;
    gap: 6px;
    padding: 10px 16px 14px;
    flex-wrap: wrap;
}
.ds-cj-address-card__actions .ds-cj-btn {
    padding: 7px 12px;
    font-size: 12px;
    min-height: 34px;
    flex: 1 1 auto;
}

.ds-cj-map-picker {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 16px;
}
.ds-cj-map-picker__head {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ds-cj-map-picker__search {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
}
.ds-cj-map-picker__search:focus {
    outline: none;
    border-color: var(--cj-primary, #4f46e5);
}
.ds-cj-map-picker__use-location {
    padding: 9px 14px;
    background: var(--cj-primary-tint, #eef2ff);
    border: 0;
    color: var(--cj-primary-dark, #4338ca);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}
.ds-cj-map-picker__use-location:hover { background: #e0e7ff; }
.ds-cj-map-picker__map {
    width: 100%;
    min-height: 280px;
    background: #f1f5f9;
}
.ds-cj-map-picker__hint {
    padding: 10px 14px;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* ==========================================================================
   Phase 6 — Install card
   ========================================================================== */

.ds-cj-install-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    text-align: center;
}
.ds-cj-install-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cj-primary, #4f46e5), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
}
.ds-cj-install-card h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.ds-cj-install-card p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}
.ds-cj-install-steps {
    list-style: none;
    padding: 0;
    margin: 14px 0 18px;
    text-align: start;
    counter-reset: ds-cj-step;
}
.ds-cj-install-steps li {
    counter-increment: ds-cj-step;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}
.ds-cj-install-steps li::before {
    content: counter(ds-cj-step);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cj-primary, #4f46e5);
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ds-cj-install-why {
    margin-top: 22px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 14px;
    text-align: start;
}
.ds-cj-install-why h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}
.ds-cj-install-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ds-cj-install-why li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
}
.ds-cj-install-why li i {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
    .ds-cj-cart-drawer { width: 100vw; }
    .ds-cj-hero { padding: 18px 18px 22px; border-radius: 14px; }
    .ds-cj-hero__name { font-size: 18px; }
    .ds-cj-kpi-grid { grid-template-columns: 1fr; gap: 12px; }
    .ds-cj-kpi-card { min-height: auto; }
    .ds-cj-bell__panel { position: fixed; inset-inline: 8px; top: 68px; width: auto; max-height: calc(100vh - 88px); }
    .ds-cj-tracker__steps { flex-wrap: wrap; }
    .ds-cj-tracker__step { flex: 1 0 20%; }
    .ds-cj-address-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Spec 052 follow-up — User avatar dropdown for the portal header
   ========================================================================== */

.ds-cj-usermenu {
    position: relative;
    display: inline-flex;
}
.ds-cj-usermenu__btn {
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    height: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.ds-cj-usermenu__btn:hover { background: rgba(255, 255, 255, 0.24); }
.ds-cj-usermenu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--cj-primary-dark, #4338ca);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.ds-cj-usermenu__avatar--lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
}
.ds-cj-usermenu__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff !important;
}
.ds-cj-usermenu__chev {
    font-size: 10px;
    opacity: 0.7;
}

.ds-cj-usermenu__panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(290px, 92vw);
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    color: #0f172a !important;
    overflow: hidden;
    display: none;
    z-index: 1200;
}
.ds-cj-usermenu__panel.is-open { display: block; }

.ds-cj-usermenu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--cj-primary-tint, #eef2ff), #ffffff);
    border-bottom: 1px solid #e2e8f0;
}
.ds-cj-usermenu__head-info {
    flex: 1 1 auto;
    min-width: 0;
}
.ds-cj-usermenu__head-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ds-cj-usermenu__head-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-cj-usermenu__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.ds-cj-usermenu__panel a.ds-cj-usermenu__item,
.ds-cj-usermenu__panel a.ds-cj-usermenu__item:hover,
.ds-cj-usermenu__panel a.ds-cj-usermenu__item:visited {
    color: #0f172a !important;
    text-decoration: none;
}
.ds-cj-usermenu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.12s;
}
.ds-cj-usermenu__item i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.ds-cj-usermenu__item:hover {
    background: var(--cj-primary-tint, #eef2ff);
}
.ds-cj-usermenu__item:hover i {
    color: var(--cj-primary, #4f46e5);
}
.ds-cj-usermenu__item.is-active {
    background: var(--cj-primary-tint, #eef2ff);
    color: var(--cj-primary-dark, #4338ca) !important;
}
.ds-cj-usermenu__item.is-active i {
    color: var(--cj-primary, #4f46e5);
}

.ds-cj-usermenu__foot {
    border-top: 1px solid #e2e8f0;
    padding: 8px;
}
.ds-cj-usermenu__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #dc2626 !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ds-cj-usermenu__logout:hover {
    background: #fee2e2;
}

@media (max-width: 600px) {
    .ds-cj-usermenu__name { display: none; }
    .ds-cj-usermenu__btn { padding: 4px; }
}

/* ==========================================================================
   Spec 052 Phase 6 — iOS install illustrated steps
   ========================================================================== */

.ds-cj-install-or-manual {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin: 20px 0 4px;
    font-weight: 500;
    position: relative;
}
.ds-cj-install-or-manual::before,
.ds-cj-install-or-manual::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #e2e8f0;
    vertical-align: middle;
    margin: 0 10px;
}

.ds-cj-install-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 18px 0;
}
.ds-cj-install-step-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 10px 12px;
    text-align: center;
}
.ds-cj-install-step-card__num {
    position: absolute;
    top: -10px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cj-primary, #4f46e5);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.ds-cj-install-step-card__illustration {
    width: 100%;
    aspect-ratio: 140 / 240;
    margin: 8px auto;
    max-width: 130px;
}
.ds-cj-install-step-card__illustration svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ds-cj-install-step-card__caption {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
    text-align: start;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .ds-cj-install-steps-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .ds-cj-install-step-card {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Spec 057 — Per-platform install tabs (Android / iPhone / iPad / Mac)
   ========================================================================== */

.ds-cj-install-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 20px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ds-cj-install-tabs::-webkit-scrollbar { display: none; }
.ds-cj-install-tabs button {
    flex: 1 1 0;
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ds-cj-install-tabs button i { font-size: 15px; }
.ds-cj-install-tabs button[aria-selected="true"] {
    background: #ffffff;
    color: var(--cj-primary-dark, #4338ca);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}
.ds-cj-install-tabs button:hover:not([aria-selected="true"]) { color: #0f172a; }

.ds-cj-install-platform-hint {
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: -8px 0 16px;
    text-align: start;
}
.ds-cj-install-platform-hint i {
    color: var(--cj-primary, #4f46e5);
    margin-inline-end: 6px;
}

.ds-cj-install-subsection { margin: 20px 0; }
.ds-cj-install-subsection:first-of-type { margin-top: 0; }
.ds-cj-install-subsection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #e2e8f0;
}
.ds-cj-install-subsection-header i {
    color: var(--cj-primary, #4f46e5);
    font-size: 16px;
}

.ds-cj-install-subsection .ds-cj-install-step-card__illustration {
    aspect-ratio: 200 / 160;
    max-width: 200px;
}

.ds-cj-install-inline-steps {
    margin: 0;
    padding-inline-start: 22px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
}
.ds-cj-install-inline-steps li { margin-bottom: 6px; }
.ds-cj-install-inline-steps li:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .ds-cj-install-tabs { gap: 4px; }
    .ds-cj-install-tabs button {
        min-width: 72px;
        padding: 9px 8px;
        font-size: 12px;
    }
    .ds-cj-install-tabs button i { font-size: 14px; }
}

/* Dark mode overrides for install tabs */
@media (prefers-color-scheme: dark) {
    .ds-cj-install-tabs {
        background: #1e293b;
    }
    .ds-cj-install-tabs button {
        color: #94a3b8;
    }
    .ds-cj-install-tabs button[aria-selected="true"] {
        background: #0f172a;
        color: #e0e7ff;
    }
    .ds-cj-install-tabs button:hover:not([aria-selected="true"]) { color: #f1f5f9; }
    .ds-cj-install-platform-hint {
        background: #0f172a;
        border-color: #334155;
        color: #94a3b8;
    }
    .ds-cj-install-subsection-header {
        color: #f1f5f9;
        border-bottom-color: #334155;
    }
    .ds-cj-install-inline-steps { color: #cbd5e1; }
}

/* ==========================================================================
   Spec 052 Phase 1 — EN / AR language toggle (portal, driver, public menu)
   ========================================================================== */

.ds-cj-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
}
.ds-cj-lang-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.3px;
}
.ds-cj-lang-toggle__btn:hover {
    color: #ffffff;
    text-decoration: none;
}
.ds-cj-lang-toggle__btn.is-active {
    background: #ffffff;
    color: var(--cj-primary-dark, #4338ca);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* Public menu variant sits on a light header in public_menu/layout, so the toggle
   uses a different background when not inside a gradient header. */
.ds-cj-lang-toggle--compact {
    background: rgba(15, 23, 42, 0.08);
}
.ds-cj-lang-toggle--compact .ds-cj-lang-toggle__btn {
    color: #64748b;
}
.ds-cj-lang-toggle--compact .ds-cj-lang-toggle__btn:hover {
    color: #0f172a;
}
.ds-cj-lang-toggle--compact .ds-cj-lang-toggle__btn.is-active {
    background: #ffffff;
    color: var(--cj-primary, #4f46e5);
}
