.theme-dark {
    background-color: #0c0f14;
    --aous-aw-bg-surface-secondary: #161b1e;
    --aous-aw-bg-surface: #161b1e;
    --aous-aw-body-bg: #0b0f14;
    --bg-card: #0b0f14;

    --c-primary: #e5e7eb;
    --c-primary-700: #cbd5e1;
    --c-primary-600: #a5b4fc;
    --c-primary-500: #818cf8;
    --c-accent: #818cf8;
    --c-accent-hover: #6366f1;
    --c-accent-muted: rgba(129, 140, 248, .18);
    --c-accent-light: rgba(21, 30, 108, 0.1);

    --c-white: #11161d;
    --c-surface: #161c24;
    --c-surface-2: #1a212b;
    --c-text: #f3f4f6;
    --c-text-muted: #9ca3af;
    --c-text-soft: #6b7280;
    --c-placeholder: #4b5563;

    --c-error-bg: rgba(220, 38, 38, .12);
    --c-success-bg: rgba(5, 150, 105, .12);
    --c-warning-bg: rgba(217, 119, 6, .12);

    --border-color: #243041;
    --border-light: #1f2937;
}

:root {
    /* ── Legacy account vars ───── */
    --aous-aw-border-color: #e6e7e982;
    --aous-aw-custom-dark: rgb(0, 0, 0);
    --aous-aw-bg-custom: #6366f1;
    --aous-aw-bg-custom-hover: #8b5cf6;
    --aous-aw-primary-lt: #e6f1fa;
    --aous-aw-body-bg: #f5f5f5;
    --aous-aw-modal-padding: 1.2rem;
    --bg-card: #fbfbfb;

    /* ── Design System ──────────── */

    /* Core colors */
    --c-primary: #1e1b4b;
    --c-primary-700: #312e81;
    --c-primary-600: #3730a3;
    --c-primary-500: #4338ca;
    --c-accent: #6366f1;
    --c-accent-hover: #4f46e5;
    --c-accent-muted: rgba(99, 102, 241, .12);
    --c-accent-light: rgba(99, 102, 241, .06);

    /* Neutrals */
    --c-white: #ffffff;
    --c-surface: #f8f8f8;
    --c-surface-2: #eef2f7;
    --c-text: #111827;
    --c-text-muted: #6b7280;
    --c-text-soft: #61666f;
    --c-placeholder: #b0b7c3;

    /* Status */
    --c-error: #dc2626;
    --c-error-bg: #fef2f2;
    --c-success: #059669;
    --c-success-bg: #ecfdf5;
    --c-warning: #d97706;
    --c-warning-bg: #fffbeb;

    /* Borders */
    --border-color: #e2e3f0;
    --border-light: #ebebf5;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(30, 27, 75, .05);
    --shadow-sm: 0 1px 6px rgba(30, 27, 75, .07);
    --shadow-md: 0 4px 18px rgba(30, 27, 75, .10);
    --shadow-lg: 0 10px 36px rgba(30, 27, 75, .14);
    --shadow-xl: 0 20px 56px rgba(30, 27, 75, .18);

    /* Transitions */
    --ease: .2s ease;
    --ease-out: .2s cubic-bezier(.2, 0, 0, 1);
    --ease-spring: .38s cubic-bezier(.34, 1.56, .64, 1);
}

/* Start Var */
.btn-primary,
.bg-custom {
    background-image: unset;
    background-color: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    min-width: 8rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: #fff;
}

.btn-primary:active {
    background-color: var(--c-primary-600);
    border-color: var(--c-primary-600);
    color: #fff;
}

.btn-outline-primary {
    color: var(--c-accent);
    border-color: var(--c-accent);
}

.btn-outline-primary:hover {
    background-color: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

/* End Var */

/* ── Auth Page ──────────────────────────────────────────────── */

.auth_page {
    background: var(--c-surface);
    min-height: 100vh;
}

.auth_page .auth_screen {
    display: flex;
    min-height: 100vh;
}

/* ── Brand Panel ────────────────────────────────────────────── */

.auth_page .auth_brand {
    flex: 0 0 440px;
    background: var(--c-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px 52px;
}

/* Dot grid texture */

/* Glow blobs */
.auth_page .auth_brand_glow_top {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(99, 102, 241, .28) 0%, transparent 65%);
    top: -160px;
    inset-inline-end: -140px;
    pointer-events: none;
    z-index: 0;
}

.auth_page .auth_brand_glow_bottom {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(139, 92, 246, .2) 0%, transparent 65%);
    bottom: -80px;
    inset-inline-start: -60px;
    pointer-events: none;
    z-index: 0;
}

.auth_page .auth_brand_inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.auth_page .auth_brand_logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    margin-bottom: 60px;
}

.auth_page .auth_brand_logo_mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary-500) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-white);
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.auth_page .auth_brand_logo_name {
    font-size: 19px;
    font-weight: 600;
    color: var(--c-white);
    letter-spacing: -0.2px;
}

.auth_page .auth_brand_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: .9;
}

.auth_page .auth_brand_eyebrow::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background: var(--c-accent);
    border-radius: 999px;
    opacity: .7;
}

.auth_page .auth_brand_headline {
    font-size: 30px;
    font-weight: 600;
    color: var(--c-white);
    line-height: 1.32;
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.auth_page .auth_brand_headline em {
    font-style: normal;
    background: linear-gradient(90deg, var(--c-accent) 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth_page .auth_brand_divider {
    width: 28px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 999px;
    margin: 22px 0;
    opacity: .55;
}

.auth_page .auth_brand_desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .4);
    line-height: 1.8;
    font-weight: 400;
    max-width: 300px;
}

.auth_page .auth_brand_features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
}

.auth_page .auth_brand_features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    font-weight: 400;
}

.auth_page .auth_brand_features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--c-accent);
    flex-shrink: 0;
    opacity: .65;
}

/* Trust bar at bottom of brand panel */
.auth_page .auth_brand_footer {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth_page .auth_brand_copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, .18);
}

.auth_page .auth_brand_trust {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, .25);
    font-weight: 500;
}

.auth_page .auth_brand_trust svg {
    width: 13px;
    height: 13px;
    stroke: var(--c-accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .7;
}

/* ── Form Panel ─────────────────────────────────────────────── */

.auth_page .auth_form_side {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    position: relative;
}

/* Subtle top accent strip */
.auth_page .auth_form_side::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent) 0%, #a5b4fc 100%);
}

.auth_page .auth_form_top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-light);
}

.auth_page .auth_form_center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.auth_page .auth_form_box {
    width: 100%;
    max-width: 400px;
    animation: auth_fade_up .32s var(--ease-out) both;
}

@keyframes auth_fade_up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form box header ─────────────────────────────────────────── */

.auth_page .auth_form_box_header {
    margin-bottom: 30px;
}

.auth_page .auth_form_box_eyebrow {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-accent);
    background: var(--c-accent-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.auth_page .auth_form_box_title {
    font-size: 25px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.auth_page .auth_form_box_subtitle {
    font-size: 14px;
    color: var(--c-text-muted);
    font-weight: 400;
    line-height: 1.6;
}

/* ── Fields ──────────────────────────────────────────────────── */

.auth_page .auth_field {
    margin-bottom: 15px;
}

.auth_page .auth_field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: 6px;
}

.auth_page .auth_field_wrap {
    position: relative;
}

.auth_page .auth_field_wrap input,
.auth_page .auth_field_wrap select,
.auth_page .auth_field_wrap textarea {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding-inline: 14px 44px;
    font-size: 14px;
    color: var(--c-text);
    background: var(--c-surface);
    outline: none;
    appearance: none;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.auth_page .auth_field_wrap select {
    cursor: pointer;
}

.auth_page .auth_field_wrap input::placeholder,
.auth_page .auth_field_wrap textarea::placeholder {
    color: var(--c-placeholder);
    font-weight: 400;
}

.auth_page .auth_field_wrap input:focus,
.auth_page .auth_field_wrap select:focus,
.auth_page .auth_field_wrap textarea:focus {
    border-color: var(--c-accent);
    background: var(--c-white);
}

.auth_page .auth_field_wrap input.is_invalid,
.auth_page .auth_field_wrap select.is_invalid {
    border-color: var(--c-error);
    background: var(--c-error-bg);
}

.auth_page .auth_field_icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 14px;
    width: 17px;
    height: 17px;
    color: var(--c-text-soft);
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: color var(--ease);
}

.auth_page .auth_field_icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth_page .auth_field_wrap input:focus~.auth_field_icon {
    color: var(--c-accent);
}

.auth_page .auth_field_icon_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-soft);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--ease), background var(--ease);
    padding: 0;
}

.auth_page .auth_field_icon_btn:hover {
    color: var(--c-accent);
    background: var(--c-accent-muted);
}

.auth_page .auth_field_icon_btn svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.auth_page .auth_field_error {
    font-size: 12px;
    color: var(--c-error);
    margin-top: 5px;
    display: block;
}

/* Slug field */
.auth_page .auth_slug_group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--c-surface);
    transition: border-color var(--ease), box-shadow var(--ease);
}

.auth_page .auth_slug_group:focus-within {
    border-color: var(--c-accent);
}

.auth_page .auth_slug_prefix {
    padding: 0 12px;
    font-size: 12px;
    color: var(--c-text-soft);
    white-space: nowrap;
    border-inline-end: 1.5px solid var(--border-light);
    height: 46px;
    display: flex;
    align-items: center;
    background: var(--border-light);
    flex-shrink: 0;
    font-family: monospace;
}

.auth_page .auth_slug_group input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1;
    padding-inline: 12px !important;
}

/* ── Helpers ─────────────────────────────────────────────────── */

.auth_page .auth_forgot_row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 18px;
}

.auth_page .auth_forgot_link {
    font-size: 12px;
    color: var(--c-text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ease);
}

.auth_page .auth_forgot_link:hover {
    color: var(--c-accent);
}

.auth_page .auth_back_link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ease);
}

.auth_page .auth_back_link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth_page .auth_back_link:hover {
    color: var(--c-accent);
}

/* ── Submit ──────────────────────────────────────────────────── */

.auth_page .auth_submit {
    margin-top: 6px;
}

.auth_page .btn_auth_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary-500) 100%);
    color: var(--c-white);
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity var(--ease), transform var(--ease-out), box-shadow var(--ease);
    letter-spacing: 0.15px;
    position: relative;
    overflow: hidden;
}

.auth_page .btn_auth_submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, transparent 60%);
    pointer-events: none;
}

.auth_page .btn_auth_submit:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.auth_page .btn_auth_submit:active {
    transform: translateY(0);
}

.auth_page .btn_auth_submit svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Footer (sign in / sign up link) ────────────────────────── */

.auth_page .auth_form_box_footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 13px;
    color: var(--c-text-muted);
}

.auth_page .auth_form_box_footer a {
    color: var(--c-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--ease);
}

.auth_page .auth_form_box_footer a:hover {
    color: var(--c-accent-hover);
}

/* ── Alerts ──────────────────────────────────────────────────── */

.auth_page .auth_alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
}

.auth_page .auth_alert svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth_page .auth_alert_success {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.auth_page .auth_alert_error {
    background: var(--c-error-bg);
    color: var(--c-error);
}

.auth_page .auth_alert_info {
    background: var(--c-accent-muted);
    color: var(--c-primary-600);
    border: 1px solid rgba(99, 102, 241, .18);
}

/* ── Language Dropdown ───────────────────────────────────────── */

.auth_page .auth_lang_dropdown {
    position: relative;
}

.auth_page .auth_lang_btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--c-surface);
    color: var(--c-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), color var(--ease);
    letter-spacing: 0.5px;
}

.auth_page .auth_lang_btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-light);
}

.auth_page .auth_lang_btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform var(--ease);
}

.auth_page .auth_lang_dropdown.is_open .auth_lang_btn {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-light);
}

.auth_page .auth_lang_dropdown.is_open .auth_lang_btn svg {
    transform: rotate(180deg);
}

.auth_page .auth_lang_menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 140px;
    background: var(--c-white);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
    z-index: 100;
}

.auth_page .auth_lang_dropdown.is_open .auth_lang_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth_page .auth_lang_option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
}

.auth_page .auth_lang_option:hover {
    background: var(--c-surface);
    color: var(--c-text);
}

.auth_page .auth_lang_option.is_active {
    background: var(--c-accent-muted);
    color: var(--c-accent);
    font-weight: 500;
}

.auth_page .auth_lang_option_dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--c-accent);
    flex-shrink: 0;
    display: none;
}

.auth_page .auth_lang_option.is_active .auth_lang_option_dot {
    display: block;
}

/* ── Account Layout ─────────────────────────────────────────────── */

.account_layout {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

.account_main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    margin-inline-start: 240px;
    transition: margin-inline-start var(--ease-out);
}

/* ── Aside ───────────────────────────────────────────────────────── */

.account_aside {
    width: 240px;
    flex-shrink: 0;
    background: var(--c-white);
    border-inline-end: 0.5px solid var(--border-light);
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: width var(--ease-out);
    overflow: hidden;
}

.account_layout.aside_collapsed .account_aside {
    width: 60px;
    overflow: hidden;
}

.aside_mobile_backdrop {
    display: none;
}

.account_layout.aside_collapsed .account_main {
    margin-inline-start: 60px;
}

/* ── Logo Area ───────────────────────────────────────────────────── */

.account_aside .aside_logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 18px;
    height: 70px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-light);
    gap: 8px;
}

.account_aside .aside_logo_link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.account_aside .aside_logo_mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary-500) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.account_aside .aside_logo_mark svg {
    width: 17px;
    height: 17px;
    stroke: var(--c-white);
    stroke-width: 2;
}

.account_aside .aside_logo_name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    transition: opacity var(--ease);
}

.account_layout.aside_collapsed .account_aside .aside_logo_name {
    opacity: 0;
    pointer-events: none;
}

/* ── Toggle Button ───────────────────────────────────────────────── */

.account_aside .aside_toggle_btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(226, 227, 240, .9);
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--c-text-muted);
    transition: background var(--ease), color var(--ease), transform var(--ease-out), box-shadow var(--ease);
}

.account_aside .aside_toggle_btn:hover {
    background: var(--c-white);
    color: var(--c-primary);
}

.account_aside .aside_toggle_btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--ease-out);
}

.account_layout.aside_collapsed .account_aside .aside_toggle_btn svg {
    transform: rotate(180deg);
}

/* ── Navigation ──────────────────────────────────────────────────── */

.account_aside .aside_nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.account_aside .aside_nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.account_aside .aside_nav_group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.account_aside .aside_nav_group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.account_aside .aside_nav_label {
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-text-soft);
    opacity: .75;
    padding: 3px 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--ease), max-height var(--ease);
    max-height: 30px;
}

.account_layout.aside_collapsed .account_aside .aside_nav_label {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.account_layout.aside_collapsed .account_aside .aside_nav_group {
    align-items: center;
    padding-inline: 0;
}

.account_aside .aside_nav_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 5px;
    height: 32px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--aous-aw-body-color);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease), transform var(--ease-out), border-color var(--ease),
        box-shadow var(--ease-out), width var(--ease-out);
    position: relative;
    border: 1px solid transparent;
    background: transparent;
}

.account_aside .aside_nav_item:hover {
    background: var(--c-surface);
    color: var(--c-primary);
    border-color: var(--border-color);
    transform: none;
}

.account_aside .aside_nav_item.is_active {
    background: var(--c-accent-muted);
    color: var(--c-primary-600);
    font-weight: 600;
    border-color: rgba(99, 102, 241, .16);
}

.account_aside .aside_nav_item.is_active .aside_nav_icon svg {
    stroke: var(--c-accent);
}

.account_aside .aside_nav_icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 9px;
    transition: background var(--ease);
}

.account_aside .aside_nav_item:hover .aside_nav_icon {
    background: rgba(99, 102, 241, .12);
}

.account_aside .aside_nav_item.is_active .aside_nav_icon {
    background: rgba(255, 255, 255, .72);
}

.account_aside .aside_nav_icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    transition: stroke var(--ease);
}

.account_aside .aside_nav_text {
    min-width: 0;
    opacity: 1;
    font-size: 0.8rem;
    transition: opacity var(--ease);
    overflow: hidden;
    text-overflow: ellipsis;
}

.aside_notif_count {
    margin-inline-start: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--c-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    flex-shrink: 0;
}

.account_layout.aside_collapsed .aside_notif_count {
    display: none;
}

.account_layout.aside_collapsed .account_aside .aside_nav_text {
    width: 0;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Tooltip when collapsed */
.account_layout.aside_collapsed .account_aside .aside_nav_item {
    justify-content: center;
    padding-inline: 0;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    margin-inline: auto;
    gap: 0;
}

.account_layout.aside_collapsed .account_aside .aside_nav {
    padding-inline: 0;
    overflow: hidden;
}

.account_layout.aside_collapsed .account_aside .aside_nav_item::after {
    display: none;
}

.account_layout.aside_collapsed .account_aside .aside_nav_icon {
    margin: 0 auto;
}

/* ── Footer: User + Sign Out ─────────────────────────────────────── */

.account_aside .aside_footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    min-height: 60px;
}

.account_aside .aside_user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
    background: var(--c-white);
}

.account_aside .aside_user:hover {
    background: var(--c-surface);
    border-color: rgba(99, 102, 241, .18);
}

.account_aside .aside_user_avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-accent-muted) 0%, var(--c-accent-light) 100%);
    border: 1px solid rgba(99, 102, 241, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.account_aside .aside_user_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account_aside .aside_user_avatar span {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-accent);
}

.account_aside .aside_user_info {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity var(--ease);
}

.account_layout.aside_collapsed .account_aside .aside_user_info {
    display: none;
}

.account_layout.aside_collapsed .account_aside .aside_user {
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-inline: auto;
    border: none;
    background: transparent;
}

.account_layout.aside_collapsed .account_aside .aside_footer {
    padding: 10px 0 12px;
    justify-content: center;
    gap: 0;
}

.account_layout.aside_collapsed .account_aside .aside_user_avatar {
    width: 42px;
    height: 42px;
}

.account_aside .aside_user_name {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account_aside .aside_user_email {
    display: block;
    font-size: 11px;
    color: var(--c-text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account_aside .aside_sign_out_form {
    flex-shrink: 0;
}

.account_layout.aside_collapsed .account_aside .aside_sign_out_form {
    display: none;
}

.account_aside .aside_sign_out_btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-text-muted);
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.account_aside .aside_sign_out_btn:hover {
    background: var(--c-error-bg);
    border-color: var(--c-error);
    color: var(--c-error);
}

.account_aside .aside_sign_out_btn svg {
    width: 15px;
    height: 15px;
}

/* ── Account Profile ─────────────────────────────────────────── */

.account_profile_page .profile_summary_card,
.account_profile_page .profile_banner,
.account_profile_page .profile_panel,
.account_profile_page .profile_side_card {
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
    overflow: hidden;
    background: var(--c-white);
}

.account_profile_page .profile_summary_cover {
    position: relative;
    height: 130px;
    background:
        linear-gradient(140deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
    background-size: cover;
    background-position: center;
}

.account_profile_page .profile_summary_cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(15, 23, 42, .14) 100%);
}

.account_profile_page .profile_summary_body {
    position: relative;
    padding: 0 20px 20px;
    margin-top: -44px;
}

.account_profile_page .profile_summary_avatar {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    border: 4px solid var(--c-white);
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
}

.account_profile_page .profile_summary_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account_profile_page .profile_summary_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 10px;
}

.account_profile_page .profile_summary_name {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -.02em;
    font-weight: 600;
    color: var(--c-text);
}

.account_profile_page .profile_summary_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    color: var(--c-text-soft);
    font-size: .78rem;
    font-weight: 600;
}

.account_profile_page .profile_summary_text {
    margin: 12px 0 0;
    color: var(--c-text-muted);
    line-height: 1.7;
    font-size: .9rem;
}

.account_profile_page .profile_summary_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.account_profile_page .profile_summary_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1.5px solid var(--border-light);
}

.account_profile_page .profile_summary_list div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: transparent;
    border-radius: 10px;
    transition: background var(--ease);
}

.account_profile_page .profile_summary_list div:hover {
    background: var(--c-surface);
}

.account_profile_page .profile_summary_list span,
.account_profile_page .profile_panel_item span,
.account_profile_page .profile_panel_text span,
.account_profile_page .profile_contact_item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.account_profile_page .profile_summary_list strong,
.account_profile_page .profile_panel_item strong,
.account_profile_page .profile_contact_item strong {
    color: var(--c-text);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.5;
}

.account_profile_page .profile_banner .card-body {
    padding: 22px;
}

.account_profile_page .profile_banner_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account_profile_page .profile_banner_eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 6px;
}

.account_profile_page .profile_banner_title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 600;
    color: var(--c-text);
}

.account_profile_page .profile_banner_status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: fit-content;
}

.account_profile_page .profile_banner_text {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--c-text-muted);
    line-height: 1.75;
    font-size: .88rem;
}

.account_profile_page .profile_stat_strip {
    margin-top: 5px;
}

.account_profile_page .profile_stat_card {
    height: 100%;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 60%), var(--c-white);
}

.account_profile_page .profile_stat_value {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -.03em;
}

.account_profile_page .profile_stat_label {
    margin-top: 6px;
    color: var(--c-text-muted);
    font-size: .8rem;
    font-weight: 600;
}

.account_profile_page .profile_panel .card-header,
.account_profile_page .profile_side_card .card-header {
    background: var(--c-white);
    border-bottom: 1.5px solid var(--border-light);
    padding: 14px 18px;
}

.account_profile_page .profile_panel .card-title,
.account_profile_page .profile_side_card .card-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--c-text);
}

.account_profile_page .profile_panel .card-body,
.account_profile_page .profile_side_card .card-body {
    padding: 16px 18px;
}

.account_profile_page .profile_panel_grid,
.account_profile_page .profile_contact_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

.account_profile_page .profile_panel_item,
.account_profile_page .profile_contact_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: transparent;
    transition: background var(--ease);
}

.account_profile_page .profile_panel_item:hover,
.account_profile_page .profile_contact_item:hover {
    background: var(--c-surface);
}

.account_profile_page .profile_panel_text {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--c-surface);
    margin-top: 12px;
}

.account_profile_page .profile_panel_text p {
    margin: 8px 0 0;
    color: var(--c-text-muted);
    line-height: 1.75;
    font-size: .9rem;
}

.account_profile_page .profile_toggle_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account_profile_page .profile_toggle_list .form-check {
    margin: 0;
    padding: 10px 14px 10px 40px;
    border-radius: 10px;
    background: transparent;
    transition: background var(--ease);
}

.account_profile_page .profile_toggle_list .form-check:hover {
    background: var(--c-surface);
}

.account_profile_page .profile_toggle_list .form-check-input {
    margin-top: .15rem;
}

.account_profile_page .profile_limits_list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account_profile_page .profile_limits_list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: transparent;
    color: var(--c-text-muted);
    font-size: .9rem;
    transition: background var(--ease);
}

.account_profile_page .profile_limits_list div:hover {
    background: var(--c-surface);
}

.account_profile_page .profile_limits_list strong {
    color: var(--c-text);
    font-size: .9rem;
    font-weight: 600;
}

.prf_pw_wrap {
    position: relative;
}

.prf_pw_wrap .form-control {
    padding-inline-end: 46px;
}

.prf_pw_eye {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--c-text-soft);
    padding: 0;
    cursor: pointer;
    line-height: 0;
    z-index: 2;
}

.account_profile_page .profile_password_intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(99, 102, 241, .06) 0%, rgba(255, 255, 255, .96) 100%);
    border: 1px solid rgba(99, 102, 241, .12);
}

.account_profile_page .profile_password_intro strong {
    font-size: .92rem;
    font-weight: 600;
    color: var(--c-text);
}

.account_profile_page .profile_password_intro span {
    font-size: .85rem;
    line-height: 1.75;
    color: var(--c-text-muted);
}

.account_profile_page .profile_password_form {
    margin-top: 16px;
}

.account_profile_page .profile_password_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account_profile_page .profile_password_field:last-child {
    grid-column: 1 / -1;
}

.account_profile_page .profile_password_wrap {
    margin-top: 6px;
}

.account_profile_page .profile_password_help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--c-surface);
}

.account_profile_page .profile_password_help span {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-accent);
}

.account_profile_page .profile_password_help strong {
    font-size: .85rem;
    font-weight: 500;
    color: var(--c-text-muted);
}

.account_profile_page .profile_password_actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* ── Shared Form Sections ───────────────────────────────────── */

.account_form_section,
.entity_form_section {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    margin-bottom: 0.5rem;
}

.theme-dark .account_form_section,
.theme-dark .entity_form_section {
    background: transparent;
}

.entity_form_section_last {
    margin-bottom: 0;
}

.account_section_head,
.entity_form_section_header {
    margin-bottom: 1rem;
}

.account_section_head h6,
.entity_form_section_header h6 {
    margin: 0 0 .4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-primary);
    letter-spacing: -.02em;
}

.account_section_head p,
.account_section_head .small,
.entity_form_section_header p {
    margin: 0;
    font-size: .84rem !important;
    line-height: 1.7;
    color: var(--c-text-muted) !important;
}

.entity_modal_body {
    padding-top: .75rem;
}

.entity_form_section .form-control,
.entity_form_section .form-select,
.entity_form_section .ts-control {
    border-radius: 8px;
    padding-block: 0.75rem;
}

.entity_form_section textarea.form-control {
    min-height: 110px;
}

.entity_form_section .form-label {
    font-weight: 600;
    margin-bottom: .55rem;
    color: var(--c-primary);
}


.product_table_header {
    border-bottom: 0 !important;
}

.product_table_body {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.product_filters_form {
    margin: 0;
}

.product_filters_actions {
    display: flex;
    gap: 10px;
}

.product_filters_actions .btn {
    min-height: 42px;
}

.product_category_cell {
    min-width: 140px;
}

.product_main_image_card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product_main_image_preview {
    position: relative;
    min-height: 220px;
    border: 1px solid rgba(99, 102, 241, .14);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    cursor: pointer;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.theme-dark .product_main_image_preview {
    background: var(--c-white);
    border-color: #262d33 !important;
}

.product_main_image_preview:hover,
.product_main_image_preview.is-dragover {
    border-color: rgba(67, 56, 202, .34);
    transform: translateY(-1px);
}

.product_main_image_placeholder {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--c-text-muted);
}


.product_main_image_placeholder svg {
    width: 30px;
    height: 30px;
    color: var(--c-accent);
    margin-bottom: 12px;
}

.product_main_image_placeholder strong {
    color: var(--c-primary);
    font-size: 1rem;
    font-weight: 600;
}

.product_main_image_placeholder span {
    margin-top: 8px;
    max-width: 360px;
    line-height: 1.7;
    font-size: .92rem;
}

.product_main_image_preview_img {
    width: 22rem;
    height: 13rem;
    object-fit: cover;
    display: block;
}

.product_main_image_badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .76);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product_main_image_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product_tiers_box {
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 1rem;
}

.product_tiers_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product_tiers_title {
    color: var(--c-primary);
    font-size: .95rem;
    font-weight: 600;
}

.product_tiers_subtitle {
    margin-top: .25rem;
    color: var(--c-text-muted);
    font-size: .82rem;
    line-height: 1.7;
}

.product_tiers_rows {
    display: grid;
    gap: .5rem;
}

.product_tier_row {
    border: 1px dashed rgba(99, 102, 241, .22);
    border-radius: 14px;
    padding: .95rem;
}

.product_tier_note_wrap {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.product_tier_note_wrap .btn {
    flex-shrink: 0;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account_dropzone {
    border: 1.5px dashed rgba(67, 56, 202, .20);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, .10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, .08), transparent 28%),
        linear-gradient(180deg, #fdfdff 0%, #f6f8ff 100%);
    min-height: 220px;
    padding: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
    overflow: hidden;
}

.theme-dark .account_dropzone {
    background: var(--c-white);
    border-color: #262d33 !important;
}

.account_dropzone:hover,
.account_dropzone.dz-drag-hover {
    border-color: rgba(67, 56, 202, .34);
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, .14), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
}

.account_dropzone .dz-message {
    margin: 0;
    max-width: 420px;
}

.account_dropzone .dz-message svg {
    width: 30px;
    height: 30px;
    color: var(--c-accent);
    margin-bottom: 2px;
}

.account_dropzone_title {
    margin-top: .85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-primary);
}

.account_dropzone_text {
    margin-top: .5rem;
    font-size: .94rem;
    line-height: 1.7;
    color: var(--c-text-muted);
}

.account_dropzone_preview {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 18px;
    overflow: hidden;
    padding-top: 0;
}

.account_dropzone_preview_doc {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    padding-top: 14px;
}

.account_dropzone_file_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-inline-start: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, .10);
    color: var(--c-primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.account_dropzone .dz-preview {
    margin: 0;
}

.dropzone-previews .dz-preview {
    position: static !important;
    display: block !important;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
}

.dropzone-previews .dz-preview .dz-details,
.dropzone-previews .dz-preview .dz-image,
.dropzone-previews .dz-preview .dz-success-mark,
.dropzone-previews .dz-preview .dz-error-mark,
.dropzone-previews .dz-preview .dz-error-message,
.dropzone-previews .dz-preview .dz-progress {
    display: none !important;
}

/* File row preview (document dropzone) */
.dz_file_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
}

.dz_file_icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--c-surface);
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.dz_file_icon[data-ext="pdf"] {
    background: #fef2f2;
    color: #dc2626;
}

.dz_file_icon[data-ext="xls"],
.dz_file_icon[data-ext="xlsx"],
.dz_file_icon[data-ext="csv"] {
    background: #ecfdf5;
    color: #059669;
}

.dz_file_icon[data-ext="doc"],
.dz_file_icon[data-ext="docx"] {
    background: #eff6ff;
    color: #2563eb;
}

.dz_file_meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dz_file_name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz_file_size {
    font-size: 12px;
    color: var(--c-text-muted);
}

.dz_file_remove_btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--c-text-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), color var(--ease);
    flex-shrink: 0;
}

.dz_file_remove_btn:hover {
    background: var(--c-error-bg);
    color: var(--c-error);
}

.dz_file_remove_btn svg {
    width: 15px;
    height: 15px;
}

/* ── Account Topbar ──────────────────────────────────────────────── */

.account_topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--c-white);
    height: 60px;
    display: flex;
    align-items: center;
}

.account_topbar_inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
}

.account_topbar_start {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar_burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--c-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--ease), color var(--ease);
}

.topbar_burger:hover {
    background: var(--c-surface);
    color: var(--c-text);
}

.topbar_burger svg {
    width: 20px;
    height: 20px;
}

.topbar_identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar_name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.topbar_handle {
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.2;
}

.account_topbar_end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar_search_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar_search_icon {
    position: absolute;
    inset-inline-start: 11px;
    width: 16px;
    height: 16px;
    color: var(--c-text-soft);
    pointer-events: none;
}

.topbar_search_input {
    height: 38px;
    width: 260px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0 14px 0 36px;
    font-size: 13.5px;
    color: var(--c-text);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease), width var(--ease);
}

.topbar_search_input::placeholder {
    color: var(--c-placeholder);
}

.topbar_search_input:focus {
    border-color: var(--c-accent);
    width: 320px;
    background: var(--c-white);
}

.topbar_action_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--c-white);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.topbar_action_btn:hover {
    background: var(--c-surface);
    color: var(--c-text);
    border-color: var(--border-color);
}

.topbar_action_btn svg {
    width: 17px;
    height: 17px;
}

.topbar_notif_btn {
    position: relative;
}

.topbar_notif_badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--c-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}

.topbar_lang_btn {
    width: auto;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.topbar_lang_dropdown {
    position: relative;
}

.topbar_lang_dropdown.is_open .topbar_lang_btn {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
    color: var(--c-accent);
}

.topbar_lang_dropdown.is_open .topbar_lang_btn svg:last-child {
    transform: rotate(180deg);
}

.topbar_lang_btn svg:last-child {
    width: 14px;
    height: 14px;
    transition: transform var(--ease);
}

.topbar_lang_code {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
}

.topbar_lang_menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: 220px;
    padding: 6px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: var(--c-white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
    z-index: 60;
}

.topbar_lang_dropdown.is_open .topbar_lang_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar_lang_option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--c-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--ease), color var(--ease);
}

.topbar_lang_option small {
    color: var(--c-text-soft);
    font-size: 11px;
    letter-spacing: .08em;
}

.topbar_lang_option:hover,
.topbar_lang_option.is_active {
    background: var(--c-accent-light);
    color: var(--c-accent);
}

.topbar_lang_option:hover small,
.topbar_lang_option.is_active small {
    color: var(--c-accent);
}

.topbar_avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--c-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid transparent;
    transition: border-color var(--ease);
    flex-shrink: 0;
}

.topbar_avatar:hover {
    border-color: var(--c-accent);
}

.topbar_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar_avatar span {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-accent);
    line-height: 1;
}

/* ── Account Page Header ─────────────────────────────────────────── */

.account_page_header {
    padding: 0;
}

.account_page_header .container-xl {
    padding-top: 0;
    padding-bottom: 0;
}

.account_page_header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.account_page_header_eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--c-text-soft);
    margin-bottom: 3px;
}

.account_page_header_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.2;
}

.account_page_header_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Products Table ──────────────────────────────────────────────── */

.an_card.product_table_card {
    border-radius: 14px;
}

.product_table_card .card-header {
    background: var(--c-white);
    border-bottom: 1.5px solid var(--border-light);
    padding: 20px 24px;
    padding-bottom: 0;
}

.product_table_card .card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 2px;
    letter-spacing: -0.2px;
}

.product_table_card .card-header p {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 0;
}

.product_table_card .card-body {
    padding: 12px 16px;
}

.product_table_card .table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.product_table_card .table thead th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .55px;
    text-transform: uppercase;
    color: var(--c-text-soft);
    background: var(--c-white);
    border-bottom: 1.5px solid var(--border-light);
    padding: 12px 16px;
    white-space: nowrap;
}

.product_table_card .table tbody tr {
    transition: background var(--ease);
}

.product_table_card .table tbody tr:hover {
    background: var(--c-surface);
}

.product_table_card .table tbody td {
    font-size: 13.5px;
    color: var(--c-text);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
    vertical-align: middle;
}

.product_table_card .table tbody tr:last-child td {
    border-bottom: none;
}

.product_table_card .card-footer {
    background: var(--c-white);
    border-top: 1.5px solid var(--border-light);
    padding: 14px 24px;
}

/* Product table - avatar cells */
.product_table_card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.product_table_card .fw-medium {
    font-weight: 600 !important;
    font-size: 15.5px;
    color: var(--c-text);
}

.product_table_card .text-secondary {
    font-size: 13.5px;
    color: var(--c-text-soft) !important;
    margin-top: 1px;
}

.product_table_card .badge {
    font-size: 0.9rem;
}

.product_table_card .btn {
    min-width: unset;
}

/* ── Product Details ──────────────────────────────────────────── */

.prod_detail_shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 40px;
}

/* ── Hero card ── */

.prod_hero {
    padding: 0;
    overflow: hidden;
}

.prod_hero_body {
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 0;
    align-items: stretch;
}

.prod_hero_left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 26px;
    min-width: 0;
}

.prod_hero_title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.25;
}

.prod_hero_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prod_hero_meta_chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--c-surface);
    color: var(--c-text-muted);
    border: 1.5px solid var(--border-light);
}

/* ── Action button grid ── */

.prod_hero_actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 18px 20px;
    border-inline-start: 1px solid var(--border-light);
    align-content: center;
    min-width: 300px;
}

.prod_action_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border-radius: 12px;
    border: 1.5px solid var(--border-light);
    background: var(--c-white);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), color var(--ease);
    text-decoration: none;
    color: var(--c-text);
    width: 100%;
    text-align: start;
    font: inherit;
}

.prod_action_btn:hover {
    border-color: var(--c-accent);
    background: color-mix(in srgb, var(--c-accent) 5%, var(--c-white));
    color: var(--c-accent);
}

.prod_action_btn.is-danger:hover {
    border-color: var(--c-error);
    background: color-mix(in srgb, var(--c-error) 5%, var(--c-white));
    color: var(--c-error);
}

.prod_action_btn.is-warning:hover {
    border-color: var(--c-warning);
    background: color-mix(in srgb, var(--c-warning) 5%, var(--c-white));
    color: var(--c-warning);
}

.prod_action_btn.is-success:hover {
    border-color: var(--c-success);
    background: color-mix(in srgb, var(--c-success) 5%, var(--c-white));
    color: var(--c-success);
}

.prod_action_icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--c-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    color: inherit;
}

.prod_action_label {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}

/* Section action button (small, inline) */

.prod_section_action_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1.5px solid var(--border-light);
    background: var(--c-white);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: border-color var(--ease), color var(--ease);
    white-space: nowrap;
}

.prod_section_action_btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.prod_detail_top_chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.prod_detail_chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--c-surface);
    border: 1.5px solid var(--border-light);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text-muted);
    letter-spacing: .02em;
}

/* Main 2-column grid */
.prod_detail_main_grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 12px;
    align-items: start;
}

/* Media col */
.prod_detail_media {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prod_detail_main_image_wrap {
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
    overflow: hidden;
    background: var(--c-white);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod_detail_main_image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod_detail_no_image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--c-text-soft);
    padding: 24px;
}

.prod_detail_no_image svg {
    width: 48px;
    height: 48px;
    opacity: .4;
}

.prod_detail_no_image span {
    font-size: 13px;
    font-weight: 500;
}

.prod_detail_gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.prod_detail_gallery_item {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    overflow: hidden;
    background: var(--c-white);
    cursor: pointer;
    transition: border-color var(--ease);
}

.prod_detail_gallery_item:hover {
    border-color: var(--c-accent);
}

.prod_detail_gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Files list */
.prod_detail_files_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prod_detail_file_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    background: var(--c-white);
    transition: border-color var(--ease), background var(--ease);
}

.prod_detail_file_item:has(.prod_detail_file_item_link:hover) {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.prod_detail_file_item_link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.prod_detail_file_delete_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #dc2626;
    flex-shrink: 0;
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
}

.prod_detail_file_delete_btn:hover {
    background: rgba(220, 38, 38, .08);
    color: #dc2626;
}

.prod_detail_file_icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--c-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prod_detail_file_icon span {
    font-size: 9px;
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: .05em;
}

.prod_detail_file_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.prod_detail_file_info span {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod_detail_file_info small {
    font-size: 11px;
    color: var(--c-text-soft);
}

.product_video_dropzone {
    min-height: 200px;
}

.video_uploading_state_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    text-align: center;
}

.video_uploading_state_body strong {
    font-size: 15px;
    color: var(--c-text);
}

.video_uploading_state_body p {
    font-size: 13px;
    color: var(--c-text-soft);
    margin: 0;
}

.video_uploading_spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border-color);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: spin_upload 0.8s linear infinite;
}

@keyframes spin_upload {
    to {
        transform: rotate(360deg);
    }
}

.prod_detail_video_stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prod_detail_video_card {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.prod_detail_video_card.is_highlighted {
    border-color: rgba(99, 102, 241, .36);
}

.prod_detail_video_frame {
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.prod_detail_video_frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.prod_detail_video_meta {
    padding: 12px 14px;
}

.prod_detail_video_meta strong,
.prod_detail_video_meta span {
    display: block;
}

.prod_detail_video_meta strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
}

.prod_detail_video_meta span {
    margin-top: 3px;
    font-size: 11px;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.prod_detail_video_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 1rem;
}

.prod_detail_video_actions form {
    margin: 0;
}

.prod_detail_video_empty,
.prod_detail_video_empty_state {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.prod_detail_video_empty {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.prod_detail_video_empty_state {
    min-height: 140px;
    border-radius: 14px;
    border: 1px dashed rgba(99, 102, 241, .18);
    background: linear-gradient(180deg, rgba(99, 102, 241, .03) 0%, rgba(255, 255, 255, .96) 100%);
    flex-direction: column;
    gap: 6px;
    padding: 18px;
}

.prod_detail_video_empty_state strong {
    font-size: 13.5px;
    color: var(--c-text);
}

.prod_detail_video_empty_state span {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--c-text-soft);
}

/* Info column */
.prod_detail_info_col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Metrics row */
.prod_detail_metrics_row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.prod_detail_metric_card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
}

.prod_detail_metric_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prod_detail_metric_icon svg {
    width: 18px;
    height: 18px;
}

.prod_detail_metric_value {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.4px;
    line-height: 1.1;
}

.prod_detail_metric_label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--c-text-soft);
    margin-top: 3px;
}

/* ── Sections ── */

.prod_detail_section {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
}

.prod_detail_section_head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
}

.prod_detail_section_head_split {
    justify-content: space-between;
}

.prod_detail_section_icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--c-surface);
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-text-muted);
}

.prod_detail_section_icon svg {
    width: 15px;
    height: 15px;
}

.prod_detail_section_title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.1px;
}

.prod_detail_section_body {
    padding: 16px 18px;
}

.prod_detail_section_subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--c-text-soft);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 8px;
}

/* ── Fields grid ── */

.prod_detail_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: -4px 0;
}

.prod_detail_field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    padding-inline-end: 16px;
}

.prod_detail_field:nth-child(even) {
    padding-inline-start: 16px;
    padding-inline-end: 0;
    border-inline-start: 1px solid var(--border-light);
}

.prod_detail_field:nth-last-child(-n+2) {
    border-bottom: none;
}

.prod_detail_field_label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--c-text-soft);
}

.prod_detail_field_value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
}

.wanted_request_hero {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--c-accent) 14%, var(--border-light));
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wanted_request_hero_head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wanted_request_hero_badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wanted_request_hero_kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-accent) 12%, #fff);
    color: var(--c-accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wanted_request_hero_title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.04em;
    color: var(--c-primary);
    max-width: 760px;
}

.wanted_request_hero_code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-soft);
    letter-spacing: .04em;
}

.wanted_request_hero_taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wanted_request_hero_taxonomy span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid var(--border-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text);
}

.wanted_request_hero_metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wanted_request_hero_metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border-light);
}

.wanted_request_hero_metric span {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-soft);
}

.wanted_request_hero_metric strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.3;
}

.wanted_request_side_stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wanted_request_summary_card,
.wanted_request_actions_card {
    box-shadow: 0 10px 32px rgba(15, 23, 42, .04);
}

.wanted_offer_stack {
    display: grid;
    gap: 14px;
}

.wanted_offer_card {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wanted_offer_card_head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.wanted_offer_company {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.2;
}

.wanted_offer_sender {
    margin-top: 4px;
    font-size: 12px;
    color: var(--c-text-soft);
}

.wanted_offer_status_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.wanted_offer_status_meta small {
    font-size: 11px;
    color: var(--c-text-soft);
}

.wanted_offer_metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.wanted_offer_metric,
.wanted_offer_contact_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--c-surface);
    border: 1px solid var(--border-light);
    min-width: 0;
}

.wanted_offer_metric span,
.wanted_offer_contact_item span,
.wanted_offer_note span {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .45px;
    color: var(--c-text-soft);
}

.wanted_offer_metric strong,
.wanted_offer_contact_item strong,
.wanted_offer_contact_item a {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    word-break: break-word;
}

.wanted_offer_contact_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wanted_offer_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.wanted_offer_note {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: #fff;
}

.wanted_offer_note p {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-text);
}

.wanted_offer_link {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
    word-break: break-word;
}

.wanted_offer_empty_state {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    color: var(--c-text-soft);
}

.wanted_offer_empty_state strong {
    font-size: 14px;
    color: var(--c-text);
}

.wanted_offer_empty_state span {
    font-size: 12px;
}

/* ── Table inside sections ── */

.prod_detail_table {
    font-size: 13px;
    margin: 0;
}

.prod_detail_table thead th {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--c-text-soft);
    border-bottom: 1.5px solid var(--border-light);
    padding: 8px 12px;
}

.prod_detail_table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--c-text);
}

.prod_detail_table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Description ── */

.prod_detail_description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin: 0;
    white-space: pre-line;
}

/* Delete confirm modal */
.delete_confirm_icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
    color: var(--c-error);
}

.delete_confirm_icon svg {
    width: 26px;
    height: 26px;
}

.delete_confirm_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}

.delete_confirm_text {
    font-size: 13.5px;
    color: var(--c-text-muted);
}

/* ── Settings Page ───────────────────────────────────────────────── */

.settings_layout {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 14px;
    align-items: start;
}

/* ── Sidebar nav ── */
.settings_sidenav {
    position: sticky;
    top: 84px;
}

.settings_sidenav_inner {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings_sidenav_label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    padding: 4px 10px 8px;
}

.settings_sidenav_item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--c-text);
    text-decoration: none;
    transition: background var(--ease), color var(--ease);
    cursor: pointer;
}

.settings_sidenav_item:hover {
    background: var(--bg-card);
    color: var(--c-text);
}

.settings_sidenav_item.is_active {
    background: var(--c-accent-muted);
    color: var(--c-accent);
}

.settings_sidenav_item.is_active .settings_sidenav_icon {
    background: var(--c-accent-muted) !important;
    color: var(--c-accent) !important;
}

.settings_sidenav_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background var(--ease), color var(--ease);
}

.settings_sidenav_icon svg {
    width: 14px;
    height: 14px;
}

.settings_card {
    margin-bottom: 0.5rem;
}

.settings_sidenav_icon.is-accent,
.settings_card_icon.is-accent {
    background: var(--c-accent-muted);
    color: var(--c-accent);
}

.settings_sidenav_icon.is-success,
.settings_card_icon.is-success {
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    color: var(--c-success);
}

.settings_sidenav_icon.is-warning,
.settings_card_icon.is-warning {
    background: color-mix(in srgb, var(--c-warning) 12%, transparent);
    color: var(--c-warning);
}

.settings_sidenav_icon.is-primary-soft,
.settings_card_icon.is-primary-soft {
    background: color-mix(in srgb, var(--c-primary) 8%, transparent);
    color: var(--c-primary);
}

.settings_sidenav_icon.is-danger,
.settings_card_icon.is-danger {
    background: var(--c-error-bg);
    color: var(--c-error);
}

.settings_sidenav_badge {
    margin-inline-start: auto;
    font-size: 10px;
    font-weight: 500;
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    color: var(--c-success);
    padding: 2px 7px;
    border-radius: 14px;
    white-space: nowrap;
}

/* ── Info box (auto-reply how-it-works) ── */
.settings_info_box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--c-accent-light);
    border: 1px solid color-mix(in srgb, var(--c-accent) 18%, transparent);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    color: var(--c-text);
    font-size: 13px;
    line-height: 1.55;
}

.settings_info_box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--c-accent);
}

.settings_info_box strong {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--c-accent);
    font-size: 12.5px;
}

.settings_info_box p {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 12.5px;
}

.settings_info_box p+p {
    margin-top: 4px;
}

.settings_info_box.is-danger {
    background: var(--c-error-bg);
    border-color: color-mix(in srgb, var(--c-error) 18%, transparent);
}

.settings_info_box.is-danger svg,
.settings_info_box.is-danger strong {
    color: var(--c-error);
}

/* ── Danger Zone (Delete Account) ───────────────────────────────── */
.settings_danger_zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border: 1.5px solid color-mix(in srgb, var(--c-error) 22%, transparent);
    background: var(--c-error-bg);
    border-radius: 14px;
    padding: 18px 20px;
}

.settings_danger_zone_text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 8px;
}

.settings_danger_zone_list {
    margin: 0;
    padding-inline-start: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings_danger_zone_list li {
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.settings_danger_zone .btn-danger {
    flex-shrink: 0;
}

/* ── Field hint row (char counter) ── */
.settings_field_hint_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 8px;
}

.settings_char_count {
    font-size: 11.5px;
    color: var(--c-text-muted);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ── Auto-reply preview bubble ── */
.settings_auto_reply_preview {
    margin-top: 16px;
}

.settings_auto_reply_preview_label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--c-text-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.settings_auto_reply_bubble {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 14px 14px 14px 4px;
    padding: 12px 14px;
    max-width: 420px;
    font-size: 13.5px;
    color: var(--c-text);
    line-height: 1.6;
}

.settings_auto_reply_bubble_tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--c-warning);
    background: color-mix(in srgb, var(--c-warning) 12%, transparent);
    border-radius: 6px;
    padding: 2px 7px;
    margin-bottom: 7px;
}

.settings_auto_reply_bubble_tag svg {
    flex-shrink: 0;
}

.settings_auto_reply_bubble_text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.settings_shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

.settings_card {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    overflow: hidden;
}

.settings_card_head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px 0;
}

.settings_card_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings_card_icon svg {
    width: 20px;
    height: 20px;
}

.settings_card_title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 4px;
}

.settings_card_desc {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0;
    line-height: 1.5;
}

.settings_form {
    padding: 20px 24px;
}

.settings_card_footer {
    padding-top: 12px;
    display: flex;
    justify-content: flex-start;
}

.settings_subsection_title {
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0 10px;
}

/* ── Store Media Block ───────────────────────────────── */
.store_media_block {
    margin: 0 0 20px;
}

.store_media_preview {
    position: relative;
    height: 160px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.store_media_cover_bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.store_media_logo_row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 20px;
    position: relative;
    margin-top: -36px;
    margin-bottom: 16px;
    z-index: 2;
}

.store_media_logo_circle {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 3px solid var(--c-white);
    background: var(--bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--c-text-muted);
}

.store_media_logo_circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store_media_biz_name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    padding-bottom: 6px;
}

.store_media_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1.5px solid var(--border-light);
    padding-top: 16px;
    margin-top: 4px;
}

.store_media_action_col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store_media_action_label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.store_media_upload_btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--c-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    width: fit-content;
}

.store_media_upload_btn:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-muted);
    color: var(--c-accent);
}

.store_media_upload_btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.store_media_remove_btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .85rem;
    border-radius: 8px;
    border: 1px dashed rgba(220, 38, 38, .35);
    background: transparent;
    color: var(--c-error);
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    margin-top: .4rem;
    user-select: none;
    width: fit-contentض;
}

.store_media_remove_btn:hover,
.store_media_remove_btn.is_active {
    background: rgba(220, 38, 38, .07);
    border-color: var(--c-error);
}

.store_media_remove_btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.store_cover_type_tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.store_cover_type_tab {
    padding: 5px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.store_cover_type_tab.is_active {
    border-color: var(--c-accent);
    background: var(--c-accent-muted);
    color: var(--c-accent);
    font-weight: 600;
}

.store_cover_input_wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.store_cover_input_wrap.is_hidden {
    display: none;
}

/* Toggle rows */
.settings_toggles {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.settings_toggle_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background var(--ease);
    border-bottom: 1px solid var(--border-light);
}

.settings_toggle_row:last-child {
    border-bottom: none;
}

.settings_toggle_row:hover {
    background: var(--c-surface);
}

.settings_toggle_row--compact {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    margin-bottom: 16px;
}

.settings_toggle_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.settings_toggle_label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.settings_toggle_hint {
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.4;
}

/* Custom toggle switch */
.settings_toggle_switch {
    position: relative;
    flex-shrink: 0;
}

.toggle_checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle_slider {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 99px;
    cursor: pointer;
    transition: background var(--ease);
    position: relative;
}

.toggle_slider::after {
    content: '';
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 18px;
    height: 18px;
    background: var(--c-white);
    border-radius: 50%;
    transition: transform var(--ease);
}

.toggle_checkbox:checked+.toggle_slider {
    background: var(--c-accent);
}

.toggle_checkbox:checked+.toggle_slider::after {
    transform: translateX(20px);
}

[dir="rtl"] .toggle_checkbox:checked+.toggle_slider::after {
    transform: translateX(-20px);
}

.settings_pref_stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings_pref_card {
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 18px;
    background: var(--c-white);
}

.settings_pref_head {
    margin-bottom: 14px;
}

.settings_pref_head h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 4px;
}

.settings_pref_head p {
    font-size: 12.5px;
    color: var(--c-text-muted);
    margin: 0;
}

.settings_option_groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings_option_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings_option_group_title {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.settings_chip_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings_check_chip {
    position: relative;
    display: inline-flex;
}

.settings_check_chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings_check_chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-light);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--ease);
}

.settings_check_chip.is-sub span {
    background: transparent;
}

.settings_check_chip input:checked+span {
    background: var(--c-accent-muted);
    border-color: rgba(var(--accent-rgb), .28);
    color: var(--c-accent);
}

.settings_inline_fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings_input_group {
    display: flex;
    flex-direction: column;
}

.settings_pref_note {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--c-surface);
    border: 1px dashed var(--border-color);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--c-text-muted);
}

/* Radio items */
.settings_field_row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings_radio_group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.settings_radio_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
}

.settings_radio_item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.settings_radio_item.is_selected,
.settings_radio_item:has(input:checked) {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.settings_radio_content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.settings_radio_label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.settings_radio_hint {
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.4;
}

/* Field group */
.settings_field_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings_field_hint {
    font-size: 12px;
    color: var(--c-text-muted);
}

/* Link rows (security section) */
.settings_link_rows {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
}

.settings_link_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: background var(--ease);
    color: inherit;
}

.settings_link_row:last-child {
    border-bottom: none;
}

a.settings_link_row:hover {
    background: var(--c-surface);
}

.settings_link_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings_link_label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.settings_link_hint {
    font-size: 12.5px;
    color: var(--c-text-muted);
}

.settings_session_panel {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 1rem;
    margin: 1rem;
    background: var(--c-surface);
}

.settings_session_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.settings_session_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings_session_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--c-white);
}

.settings_session_item.is-current {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.settings_session_main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.settings_session_icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings_session_icon svg {
    width: 18px;
    height: 18px;
}

.settings_session_text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.settings_session_text strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13.5px;
    color: var(--c-text);
}

.settings_session_text span {
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.45;
}

.settings_session_badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-primary) 10%, transparent);
    color: var(--c-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.settings_session_badge.is-active {
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    color: var(--c-success);
}

.settings_session_btn {
    min-width: auto;
}

.settings_session_empty {
    font-size: 13px;
    color: var(--c-text-muted);
}

/* Display section */
.settings_display_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.settings_display_item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings_display_label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.settings_theme_picker {
    display: flex;
    gap: 12px;
}

.settings_theme_option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--c-white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    transition: border-color var(--ease), color var(--ease);
}

.settings_theme_option.is_active {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.settings_theme_preview {
    width: 56px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 2px;
    padding: 4px;
}

.settings_theme_preview_light {
    background: #f7f7fb;
    border: 1.5px solid #e2e3f0;
}

.settings_theme_preview_light div:first-child {
    width: 14px;
    border-radius: 4px;
    background: #e2e3f0;
}

.settings_theme_preview_light div:last-child {
    flex: 1;
    border-radius: 4px;
    background: #ffffff;
}

.settings_theme_preview_dark {
    background: #161b1e;
    border: 1.5px solid #2a2f33;
}

.settings_theme_preview_dark div:first-child {
    width: 14px;
    border-radius: 4px;
    background: #2a2f33;
}

.settings_theme_preview_dark div:last-child {
    flex: 1;
    border-radius: 4px;
    background: #1e2428;
}

.settings_display_action_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--c-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    transition: border-color var(--ease), background var(--ease);
    text-align: start;
    width: 100%;
}

.settings_display_action_btn:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.settings_display_action_btn svg {
    width: 18px;
    height: 18px;
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.settings_display_badge {
    margin-inline-start: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    letter-spacing: .4px;
}

.profile_inline_link {
    color: var(--c-accent);
    word-break: break-all;
}

.profile_inline_link:hover {
    color: var(--c-accent-hover);
}

/* ── Analytics Page ─────────────────────────────────────────────── */

.analytics_page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

/* ── Toolbar ── */
.an_toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 60%), var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 22px 26px;
}

.an_toolbar_eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 5px;
}

.an_toolbar_heading {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.25;
}

.an_toolbar_sub {
    margin: 0;
    font-size: 13px;
    color: var(--c-text-muted);
}

.an_period_form {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    padding: 4px;
    flex-shrink: 0;
}

.an_period_btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    white-space: nowrap;
    font-weight: 400;
}

.an_period_btn:hover {
    background: var(--c-white);
    color: var(--c-text);
}

.an_period_btn.is_active {
    background: var(--c-white);
    color: var(--c-accent);
    font-weight: 500;
}

/* ── Hero layout: stats + chart side-by-side ── */
.an_hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.an_metrics_col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-content: stretch;
}

.an_metric_card {
    background: var(--c-white);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    transition: box-shadow var(--ease), transform var(--ease);
}

.an_metric_card:hover {
    transform: translateY(-1px);
}

.an_metric_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.an_metric_icon svg {
    width: 18px;
    height: 18px;
}

.an_metric_body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.an_metric_value {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.3px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.an_metric_label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.35;
}

.an_metric_hint {
    font-size: 11px;
    color: var(--c-text-muted);
    line-height: 1.4;
}

/* ── Secondary row (sources + activity) ── */
.an_secondary_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Card base ── */
.an_card {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

.an_card_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid var(--border-light);
}

.an_card_head_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.an_card_head_icon svg {
    width: 16px;
    height: 16px;
}

.an_card_title {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.3;
}

.an_card_desc {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.an_chart_legend_bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
}

.an_legend_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--c-text-muted);
    white-space: nowrap;
}

.an_legend_dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.an_card_body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.an_card_body_flush {
    padding: 0;
    gap: 0;
}

.an_chart_body {
    padding: 16px 12px 10px;
    min-height: 320px;
}

.an_chart_body #analytics_trend_chart {
    flex: 1;
    min-height: 280px;
}

/* ── Traffic Sources ── */
.an_source_item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.an_source_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.an_source_name {
    font-size: 13px;
    color: var(--c-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.an_source_count {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.an_source_bar_track {
    height: 5px;
    border-radius: 99px;
    background: var(--bg-card);
    overflow: hidden;
}

.an_source_bar_fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
    transition: width .4s ease;
    min-width: 4px;
}

/* ── Top Products Table ── */
.an_product_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: background var(--ease);
}

.an_product_row:last-child {
    border-bottom: none;
}

.an_product_row:hover {
    background: var(--c-surface);
}

.an_product_rank {
    width: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-align: center;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.an_product_row:first-child .an_product_rank {
    color: #f59e0b;
}

.an_product_row:nth-child(2) .an_product_rank {
    color: #94a3b8;
}

.an_product_row:nth-child(3) .an_product_rank {
    color: #cd7f32;
}

.an_product_thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
}

.an_product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.an_product_info {
    flex: 1;
    min-width: 0;
}

.an_product_title {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.an_product_price {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 2px;
}

.an_product_stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.an_product_stat {
    text-align: right;
}

.an_product_stat_val {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}

.an_product_stat_key {
    font-size: 10.5px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 1px;
}

/* ── Recent Activity ── */
.an_activity_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.an_activity_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.an_activity_body {
    flex: 1;
    min-width: 0;
}

.an_activity_title {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.an_activity_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.an_activity_badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .03em;
}

.an_activity_badge.is_view {
    background: rgba(99, 102, 241, .1);
    color: #6366f1;
}

.an_activity_badge.is_inquiry {
    background: rgba(245, 158, 11, .1);
    color: #f59e0b;
}

.an_activity_from {
    font-size: 11.5px;
    color: var(--c-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.an_activity_time {
    font-size: 11.5px;
    color: var(--c-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Empty state ── */
.an_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    color: var(--c-text-muted);
    font-size: 13px;
}

.an_empty svg {
    width: 32px;
    height: 32px;
    opacity: .3;
}

.an_empty_padded {
    padding: 40px 20px;
}

/* ── Visitors by country (map + list) ─────────────────── */
.an_country_section {
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 0;
    min-height: 260px;
}

.an_country_map_wrap {
    overflow: hidden;
    border-radius: 0 0 0 14px;
}

.an_country_map_wrap>div {
    height: 280px;
    width: 100%;
}

.an_country_table_wrap {
    border-inline-start: 1.5px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.an_country_list {
    overflow-y: auto;
    max-height: 280px;
    padding: .5rem .6rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.an_country_row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .55rem;
    border-radius: 10px;
    background: transparent;
    transition: background .15s;
    cursor: default;
}

.an_country_row:hover {
    background: rgba(99, 102, 241, .06);
}

.an_country_rank {
    font-size: .68rem;
    font-weight: 700;
    color: var(--c-accent);
    min-width: 16px;
    text-align: center;
    opacity: .7;
    flex-shrink: 0;
}

.an_country_flag {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.an_country_info {
    flex: 1;
    min-width: 0;
}

.an_country_name_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .22rem;
    gap: .4rem;
}

.an_country_name {
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-text);
}

.an_country_count {
    font-size: .72rem;
    font-weight: 700;
    color: var(--c-accent);
    flex-shrink: 0;
    background: rgba(99, 102, 241, .1);
    padding: .05rem .4rem;
    border-radius: 999px;
}

.an_country_bar_track {
    height: 3px;
    background: rgba(0, 0, 0, .06);
    border-radius: 999px;
    overflow: hidden;
}

.theme-dark .an_country_bar_track {
    background: rgba(255, 255, 255, .08);
}

.an_country_bar_fill {
    height: 100%;
    background: linear-gradient(90deg, #818cf8, #6366f1);
    border-radius: 999px;
    transition: width .6s ease;
}

.an_country_empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--c-text-muted);
    font-size: .82rem;
}

/* jsvectormap tooltip — position & display required; JS overrides display inline */
.jvm-tooltip {
    position: fixed;
    display: none;
    background: #1e1b4b;
    color: #fff;
    border-radius: 8px;
    padding: .35rem .7rem;
    font-size: .76rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
}

.jvm-tooltip.active {
    display: block;
}

@media (max-width: 900px) {
    .an_country_section {
        grid-template-columns: 1fr;
    }

    .an_country_table_wrap {
        border-inline-start: none;
        border-top: 1.5px solid var(--border-light);
    }
}

/* ── Message bubbles ─────────────────────────────────── */
.msg_bubble {
    max-width: 70%;
    padding: .65rem 1rem;
    border-radius: 14px;
    font-size: .9rem;
}

.msg_bubble_mine {
    background: var(--c-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg_bubble_other {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.msg_bubble_time {
    font-size: .72rem;
    margin-top: .25rem;
    opacity: .65;
    text-align: end;
}

/* ── Chat page layout ─────────────────────────────── */
.msg_chat_card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    min-height: 500px;
}

.msg_chat_head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--c-white);
    flex-shrink: 0;
}

.msg_chat_back {
    flex-shrink: 0;
}

.msg_chat_user {
    flex: 1;
    min-width: 0;
}

.msg_chat_user_name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.msg_chat_user_biz {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 1px;
}

.msg_chat_head_actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.msg_chat_body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--c-surface);
}

.msg_row {
    display: flex;
}

.msg_row_mine {
    justify-content: flex-end;
}

.msg_row_other {
    justify-content: flex-start;
}

.msg_empty {
    text-align: center;
    color: var(--c-text-muted);
    font-size: 13px;
    margin: auto;
    padding: 40px 0;
}

.msg_chat_footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
    background: var(--c-white);
    flex-shrink: 0;
}

.msg_send_form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.msg_send_form .form-control {
    flex: 1;
}

/* ── Review stars ────────────────────────────────────── */
.review_stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ── Product image cards ──────────────────────────────── */
.product_images_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .85rem;
}

.product_existing_images_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .85rem;
}

.product_existing_image_card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: var(--c-white);
    cursor: pointer;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.product_existing_image_card:hover {
    border-color: rgba(99, 102, 241, .28);
    transform: translateY(-1px);
}

.product_existing_image_card img {
    width: 100%;
    height: 138px;
    object-fit: cover;
    display: block;
}

.product_existing_image_badge,
.product_existing_image_remove {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
}

.product_existing_image_badge {
    top: 10px;
    inset-inline-start: 10px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, .76);
    color: #fff;
}

.product_existing_image_remove {
    inset-inline-end: 10px;
    bottom: 10px;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .92);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, .16);
}

.product_existing_image_card.is_marked_for_delete {
    border-color: #dc2626;
}

.product_existing_image_card.is_marked_for_delete img {
    opacity: .42;
}

.product_existing_image_card.is_marked_for_delete .product_existing_image_remove {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.product_image_card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-surface);
}

.product_image_card_preview {
    height: 130px;
    background: var(--bg-card);
}

.product_image_card_preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product_image_card_remove {
    position: absolute;
    inset-inline-end: 8px;
    bottom: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .92);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, .16);
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.product_image_card_remove:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* ─────────────────────────────────────────────────────────
   Marketplace
   ───────────────────────────────────────────────────── */

.mkt_layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.mkt_sidebar {
    width: 272px;
    flex-shrink: 0;
    position: sticky;
    top: 1.5rem;
}

.mkt_main {
    flex: 1;
    min-width: 0;
}

/* Sidebar card */
.mkt_sidebar_card {
    background: var(--c-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.mkt_sidebar_section {
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
}

.mkt_sidebar_section:last-child {
    border-bottom: 0;
}

.mkt_sidebar_label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-muted);
    margin-bottom: .6rem;
}

/* Top bar */
.mkt_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mkt_count {
    font-size: .85rem;
    color: var(--c-text-muted);
}

.mkt_count strong {
    color: var(--c-text);
    font-weight: 600;
}

.mkt_topbar_actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.mkt_view_btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: var(--c-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-text-muted);
    transition: all .15s;
}

.mkt_view_btn.is_active,
.mkt_view_btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-muted);
}

/* Chip filters */
.mkt_chip_group {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.mkt_chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .28rem .65rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    font-size: .75rem;
    cursor: pointer;
    transition: all .15s;
    color: var(--c-text-muted);
    background: transparent;
}

.mkt_chip:hover,
.mkt_chip.is_active {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: var(--c-accent-muted);
}

/* Product grid */
.mkt_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

/* Product card */
.mkt_card {
    background: var(--c-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.mkt_card:hover {
    transform: translateY(-2px);
}

.mkt_card_image {
    height: 175px;
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
}

.mkt_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}

.mkt_card:hover .mkt_card_image img {
    transform: scale(1.04);
}

.mkt_card_no_image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-placeholder);
}

.mkt_card_badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
}

.mkt_card_body {
    padding: .9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.mkt_card_category {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-accent);
    font-weight: 600;
}

.mkt_card_title {
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mkt_card_meta {
    font-size: .74rem;
    color: var(--c-text-muted);
}

.mkt_card_price {
    font-size: .95rem;
    font-weight: 600;
    color: var(--c-accent);
    margin-top: auto;
    padding-top: .4rem;
}

.mkt_card_seller {
    font-size: .72rem;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-top: .2rem;
}

.mkt_card_footer {
    padding: .65rem .9rem;
    border-top: 1px solid var(--border-light);
}

.mkt_card_footer a {
    display: block;
    text-align: center;
    padding: .42rem;
    border-radius: 8px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    font-size: .8rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    text-decoration: none;
}

.mkt_card_footer a:hover {
    background: var(--c-accent);
    color: #fff;
}

/* List view */
.mkt_list {
    background: var(--c-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.mkt_list table {
    width: 100%;
    border-collapse: collapse;
}

.mkt_list thead th {
    background: var(--c-surface);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.mkt_list tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background .1s;
}

.mkt_list tbody tr:last-child {
    border-bottom: 0;
}

.mkt_list tbody tr:hover {
    background: var(--c-surface);
}

.mkt_list td {
    padding: .65rem 1rem;
    font-size: .85rem;
    vertical-align: middle;
}

.mkt_list_thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--c-surface);
    flex-shrink: 0;
}

.mkt_list_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mkt_list_title {
    font-weight: 500;
    color: var(--c-text);
}

.mkt_list_meta {
    font-size: .74rem;
    color: var(--c-text-muted);
}

/* Stock status pips */
.mkt_stock_pip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 500;
}

.mkt_stock_pip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mkt_stock_in::before {
    background: var(--c-success);
}

.mkt_stock_limited::before {
    background: var(--c-warning);
}

.mkt_stock_out::before {
    background: var(--c-error);
}

.mkt_stock_request::before {
    background: var(--c-text-muted);
}

/* Empty state */
.mkt_empty {
    padding: 4rem 2rem;
    text-align: center;
}

.mkt_empty_icon {
    margin: 0 auto 1rem;
    color: var(--c-placeholder);
}

.mkt_empty_title {
    font-size: .95rem;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: .35rem;
}

.mkt_empty_desc {
    font-size: .85rem;
    color: var(--c-text-muted);
}

/* ── Product detail ─────────────────────────────── */

.mkt_product_layout {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 2rem;
    align-items: flex-start;
}

.mkt_product_gallery {
    position: sticky;
    top: 1.5rem;
}

.mkt_product_main_image {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: var(--c-surface);
    aspect-ratio: 4 / 3;
}

.mkt_product_main_image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mkt_product_thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}

.mkt_product_thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s;
}

.mkt_product_thumb.is_active,
.mkt_product_thumb:hover {
    border-color: var(--c-accent);
}

.mkt_product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mkt_product_title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
    margin: 0 0 .4rem;
}

.mkt_product_price_block {
    padding: 1rem 1.25rem;
    background: var(--c-accent-muted);
    border-radius: 12px;
    margin: 1rem 0;
}

.mkt_product_price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-accent);
}

.mkt_product_moq {
    font-size: .78rem;
    color: var(--c-text-muted);
    margin-top: .2rem;
}

/* Seller card */
.mkt_seller_card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem;
}

.mkt_send_message_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    position: relative;
}

.mkt_send_message_badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-accent);
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mkt_msg_sheet {
    position: fixed;
    inset: 0;
    z-index: 220;
    pointer-events: none;
}

.mkt_msg_sheet_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .44);
    opacity: 0;
    transition: opacity .22s ease;
}

.mkt_msg_sheet_panel {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    margin: 0 auto;
    width: min(760px, calc(100vw - 24px));
    height: min(78vh, 760px);
    background: #fff;
    border: 1px solid var(--border-light);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 60px rgba(15, 23, 42, .18);
    transform: translateY(104%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mkt_msg_sheet.is_open {
    pointer-events: auto;
}

.mkt_msg_sheet.is_open .mkt_msg_sheet_backdrop {
    opacity: 1;
}

.mkt_msg_sheet.is_open .mkt_msg_sheet_panel {
    transform: translateY(0);
}

body.mkt_msg_sheet_open {
    overflow: hidden;
}

.mkt_msg_sheet_head {
    flex-shrink: 0;
    padding: .95rem 1.1rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-light);
}

.mkt_msg_sheet_handle {
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-color);
    margin: 0 auto .85rem;
}

.mkt_msg_sheet_head_row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mkt_msg_sheet_identity {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.mkt_msg_sheet_avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mkt_msg_sheet_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mkt_msg_sheet_identity_body {
    min-width: 0;
}

.mkt_msg_sheet_kicker {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-accent);
    font-weight: 700;
    margin-bottom: .12rem;
}

.mkt_msg_sheet_name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.25;
}

.mkt_msg_sheet_sub {
    font-size: .82rem;
    color: var(--c-text-muted);
    margin-top: .12rem;
}

.mkt_msg_sheet_head_actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-shrink: 0;
}

.mkt_msg_auto_reply_chip,
.mkt_msg_open_link {
    height: 34px;
    padding: 0 .8rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mkt_msg_auto_reply_chip {
    background: rgba(99, 102, 241, .1);
    color: var(--c-accent);
}

.mkt_msg_open_link {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--border-light);
}

.mkt_msg_sheet_close_btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--c-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mkt_msg_auto_reply_note {
    margin-top: .8rem;
    padding: .7rem .85rem;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--c-text-muted);
    font-size: .8rem;
    border: 1px solid var(--border-light);
}

.mkt_msg_sheet_body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1rem 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.mkt_msg_thread {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.mkt_msg_row {
    display: flex;
}

.mkt_msg_row.is_mine {
    justify-content: flex-end;
}

.mkt_msg_row.is_other {
    justify-content: flex-start;
}

.mkt_msg_bubble {
    max-width: min(82%, 520px);
    border-radius: 18px;
    padding: .82rem .95rem .75rem;
    position: relative;
}

.mkt_msg_bubble.is_mine {
    background: linear-gradient(135deg, var(--c-accent) 0%, #4f46e5 100%);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.mkt_msg_bubble.is_other {
    background: #fff;
    color: var(--c-text);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 8px;
}

.mkt_msg_auto_tag {
    display: inline-flex;
    margin-bottom: .45rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, .1);
    color: inherit;
    font-size: .68rem;
    font-weight: 700;
}

.mkt_msg_text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    font-size: .9rem;
}

.mkt_msg_time {
    margin-top: .4rem;
    font-size: .7rem;
    opacity: .72;
    text-align: end;
}

.mkt_msg_empty {
    margin: auto;
    max-width: 320px;
    text-align: center;
    padding: 2.5rem 1rem;
}

.mkt_msg_empty_title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: .35rem;
}

.mkt_msg_empty_desc {
    font-size: .84rem;
    color: var(--c-text-muted);
}

.mkt_msg_sheet_foot {
    flex-shrink: 0;
    padding: .9rem 1rem 1rem;
    border-top: 1px solid var(--border-light);
    background: #fff;
}

.mkt_msg_compose_form {
    display: block;
}

.mkt_msg_compose_wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.mkt_msg_compose_input {
    min-height: 50px;
    border-radius: 16px;
    padding-inline: 1rem;
}

.mkt_msg_compose_btn {
    min-height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding-inline: 1rem;
}

.mkt_msg_error {
    color: #dc2626;
    font-size: .8rem;
    margin-top: .55rem;
}

.mkt_seller_avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--c-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.mkt_seller_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Excel viewer */
.mkt_excel_viewer {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.mkt_excel_viewer_header {
    padding: .6rem 1rem;
    background: #1d7044;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 500;
}

.mkt_excel_tabs {
    display: flex;
    background: #1d7044;
    padding: 0 .5rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    gap: 2px;
}

.mkt_excel_tab {
    padding: .4rem .85rem;
    font-size: .76rem;
    cursor: pointer;
    color: rgba(255, 255, 255, .7);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    transition: background .15s;
    white-space: nowrap;
    border: none;
    background: transparent;
}

.mkt_excel_tab.is_active,
.mkt_excel_tab:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.mkt_excel_table_wrap {
    overflow: auto;
    max-height: 500px;
}

.mkt_excel_table {
    border-collapse: collapse;
    font-size: .78rem;
    min-width: 100%;
    user-select: none;
}

.mkt_excel_table th,
.mkt_excel_table td {
    border: 1px solid var(--border-light);
    padding: .28rem .6rem;
    white-space: nowrap;
}

.mkt_excel_table th {
    background: var(--c-surface);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mkt_excel_table td:first-child {
    background: var(--c-surface);
    font-weight: 500;
    position: sticky;
    left: 0;
    z-index: 0;
}

.mkt_excel_loading {
    padding: 2.5rem;
    text-align: center;
    color: var(--c-text-muted);
    font-size: .85rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .mkt_product_layout {
        grid-template-columns: 1fr;
    }

    .mkt_product_gallery {
        position: static;
    }

    .mkt_msg_sheet_panel {
        width: calc(100vw - 16px);
    }
}

@media (max-width: 991px) {
    .mkt_layout {
        flex-direction: column;
    }

    .mkt_sidebar {
        width: 100%;
        position: static;
    }

    .mkt_grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 575px) {
    .mkt_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mkt_card_image {
        height: 140px;
    }
}

/* ── Print (PDF export) ─────────────────────────── */
@media print {

    .account_aside,
    .account_topbar,
    .mkt_sidebar,
    .mkt_topbar,
    .mkt_card_footer,
    .pagination,
    .btn {
        display: none !important;
    }

    .account_layout {
        display: block !important;
    }

    .mkt_layout {
        display: block !important;
    }

    .mkt_main {
        width: 100% !important;
    }

    .mkt_grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: .5rem !important;
    }

    .mkt_card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
    }

    .mkt_list {
        border: none !important;
    }

    body {
        font-size: 10pt;
    }
}


/* ─── Notifications Page ─────────────────────────────────────── */

.notif_page {
    max-width: 780px;
    width: 100%;
    margin-inline: auto;
}

.notif_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.notif_empty_icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--c-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.notif_empty_icon svg {
    width: 26px;
    height: 26px;
    color: var(--c-accent);
}

.notif_empty_text {
    color: var(--c-muted);
    font-size: .9rem;
    margin: 0;
}

.notif_list {
    overflow: hidden;
}

.notif_item {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color-light);
    transition: background var(--ease);
}

.notif_item:last-child {
    border-bottom: none;
}

.notif_item:hover {
    background: var(--c-surface-2);
}

.notif_unread {
    background: var(--c-accent-muted);
}

.notif_unread:hover {
    background: color-mix(in srgb, var(--c-accent) 12%, transparent);
}

.notif_item_icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface-2);
}

.notif_item_icon svg {
    width: 17px;
    height: 17px;
    color: var(--c-accent);
}

.notif_type_inquiry .notif_item_icon,
.notif_type_message .notif_item_icon {
    background: color-mix(in srgb, #3b82f6 12%, transparent);
}

.notif_type_inquiry .notif_item_icon svg,
.notif_type_message .notif_item_icon svg {
    color: #3b82f6;
}

.notif_type_follow .notif_item_icon {
    background: color-mix(in srgb, #10b981 12%, transparent);
}

.notif_type_follow .notif_item_icon svg {
    color: #10b981;
}

.notif_type_review .notif_item_icon {
    background: color-mix(in srgb, #f59e0b 12%, transparent);
}

.notif_type_review .notif_item_icon svg {
    color: #f59e0b;
}

.notif_type_purchase_offer .notif_item_icon {
    background: color-mix(in srgb, #8b5cf6 12%, transparent);
}

.notif_type_purchase_offer .notif_item_icon svg {
    color: #8b5cf6;
}

.notif_item_body {
    flex: 1;
    min-width: 0;
}

.notif_item_title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.4;
}

.notif_item_message {
    font-size: .8rem;
    color: var(--c-muted);
    margin-top: .2rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif_item_time {
    font-size: .75rem;
    color: var(--c-muted);
    margin-top: .3rem;
}

.notif_item_actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.notif_action_link,
.notif_read_btn,
.notif_delete_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--c-muted);
    transition: background var(--ease), color var(--ease);
    text-decoration: none;
}

.notif_action_link svg,
.notif_read_btn svg,
.notif_delete_btn svg {
    width: 14px;
    height: 14px;
}

.notif_action_link:hover,
.notif_read_btn:hover {
    background: var(--c-accent-muted);
    color: var(--c-accent);
}

.notif_delete_btn:hover {
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #ef4444;
}

.notif_dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
}

.theme-dark .settings_theme_preview_light {
    background: #0f1720;
    border-color: #2a3442;
}

.theme-dark .settings_theme_preview_light div:first-child {
    background: #253141;
}

.theme-dark .settings_theme_preview_light div:last-child {
    background: #131a22;
}

.theme-dark .subs_current_plan {
    background: #141b24;
    border-color: #253141;
}

.theme-dark .subs_pending_card {
    background: linear-gradient(160deg, rgba(217, 119, 6, .1), #10161d);
}

.theme-dark .subs_pending_card.is-ready {
    background: linear-gradient(160deg, rgba(5, 150, 105, .1), #10161d);
}

.theme-dark .settings_session_panel,
.theme-dark .analytics_source_item,
.theme-dark .analytics_activity_item,
.theme-dark .subs_compare_table tbody tr:hover {
    background: #141b24;
}

.theme-dark .subs_compare_table thead th {
    background: #141b24;
}

/* ─── Subscriptions Page ─────────────────────────────────────── */

.subs_page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

/* ── Hero ── */

.subs_hero_inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
    gap: 24px;
    align-items: stretch;
}

.subs_eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 8px;
}

.subs_hero_title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.25;
}

.subs_hero_desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.subs_current_plan {
    padding: 18px;
    border-radius: 14px;
    border: 1.5px solid var(--border-light);
}

.subs_current_plan_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.subs_label {
    display: block;
    font-size: 11px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.subs_current_plan h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
}

.subs_price_line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 14px;
}

.subs_price_line strong {
    font-size: 26px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.1;
}

.subs_price_line span {
    font-size: 13px;
    color: var(--c-text-muted);
}

.subs_meta_grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.subs_meta_grid div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.subs_meta_grid span {
    font-size: 11.5px;
    color: var(--c-text-muted);
}

.subs_meta_grid strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
}

/* Hero right: pending / ready card */

.subs_hero_side {
    display: flex;
    flex-direction: column;
}

.subs_pending_card {
    flex: 1;
    padding: 22px;
    border-radius: 14px;
    border: 1.5px solid color-mix(in srgb, var(--c-warning) 22%, transparent);
    background: linear-gradient(160deg, color-mix(in srgb, var(--c-warning) 7%, transparent) 0%, var(--c-white) 70%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subs_pending_card.is-ready {
    border-color: color-mix(in srgb, var(--c-success) 22%, transparent);
    background: linear-gradient(160deg, color-mix(in srgb, var(--c-success) 7%, transparent) 0%, var(--c-white) 70%);
}

.subs_pending_badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    width: fit-content;
    background: color-mix(in srgb, var(--c-warning) 12%, transparent);
    color: var(--c-warning);
}

.subs_pending_badge.is-ready {
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    color: var(--c-success);
}

.subs_pending_card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
}

.subs_pending_card p {
    margin: 0;
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.subs_pending_meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: var(--c-text-muted);
}

/* ── Plan Cards ── */

.subs_plans_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.subs_plan_card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 22px;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.subs_plan_card:hover {
    transform: translateY(-3px);
}

.subs_plan_card.is-current {
    border-color: var(--c-accent);
}

.subs_plan_card.is-popular {
    border-color: color-mix(in srgb, var(--c-warning) 35%, var(--border-light));
}

.subs_plan_card.is-focused {
    border-color: var(--c-accent);
}

.subs_plan_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.subs_plan_card.is-popular .subs_plan_icon {
    background: color-mix(in srgb, var(--c-warning) 12%, transparent);
    color: var(--c-warning);
}

.subs_plan_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.subs_plan_head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--c-text);
}

.subs_plan_head p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.subs_chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.subs_chip.is-popular {
    background: color-mix(in srgb, var(--c-warning) 12%, transparent);
    color: var(--c-warning);
}

.subs_chip.is-current {
    background: var(--c-accent-muted);
    color: var(--c-accent);
}

.subs_plan_price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 16px;
}

.subs_plan_price strong {
    font-size: 28px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.1;
}

.subs_plan_price span {
    font-size: 12.5px;
    color: var(--c-text-muted);
}

.subs_plan_yearly {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 4px;
}

.subs_limit_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1.5px solid var(--border-light);
}

.subs_limit_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.subs_limit_item span {
    font-size: 12.5px;
    color: var(--c-text-muted);
}

.subs_limit_item strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
}

.subs_feature_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px solid var(--border-light);
    flex: 1;
}

.subs_feature_item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--c-text-soft);
}

.subs_feature_item.is-enabled {
    color: var(--c-text);
}

.subs_feature_icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    background: var(--border-light);
    color: var(--c-text-muted);
}

.subs_feature_item.is-enabled .subs_feature_icon {
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    color: var(--c-success);
}

.subs_plan_footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1.5px solid var(--border-light);
}

.subs_plan_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--ease), opacity var(--ease);
    letter-spacing: .01em;
    text-decoration: none;
}

.subs_plan_btn.is-primary {
    background: var(--c-accent);
    color: #fff;
}

.subs_plan_btn.is-primary:hover {
    opacity: .88;
}

.subs_plan_btn.is-ghost {
    background: var(--c-surface);
    color: var(--c-text-muted);
    border: 1.5px solid var(--border-light);
    cursor: default;
}

.subs_plan_btn.is-danger {
    background: color-mix(in srgb, var(--c-error) 10%, transparent);
    color: var(--c-error);
    border: 1.5px solid color-mix(in srgb, var(--c-error) 20%, transparent);
    cursor: pointer;
}

.subs_plan_btn.is-danger:hover {
    background: color-mix(in srgb, var(--c-error) 16%, transparent);
}

/* ── Compare Table ── */

.subs_compare_wrap {
    overflow-x: auto;
}

.subs_compare_table {
    width: 100%;
    border-collapse: collapse;
}

.subs_compare_table th,
.subs_compare_table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.subs_compare_table tbody tr:last-child td {
    border-bottom: none;
}

.subs_compare_table thead th {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--c-surface);
}

.subs_compare_table tbody tr:hover {
    background: var(--c-surface);
}

.subs_compare_table td:first-child {
    font-size: 13px;
    color: var(--c-text);
}

.subs_compare_value {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--c-text);
}

.subs_compare_bool {
    font-size: 12.5px;
    font-weight: 600;
}

.subs_compare_bool.is-yes {
    color: var(--c-success);
}

.subs_compare_bool.is-no {
    color: var(--c-text-muted);
}

/* ── History / Requests ── */

.subs_history_list {
    display: flex;
    flex-direction: column;
}

.subs_history_item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.subs_history_item:last-child {
    border-bottom: none;
}

.subs_history_item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 3px;
    line-height: 1.4;
}

.subs_history_item span {
    display: block;
    font-size: 12px;
    color: var(--c-text-muted);
}

.subs_history_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.subs_request_status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.subs_request_status.is-pending {
    background: color-mix(in srgb, var(--c-warning) 12%, transparent);
    color: var(--c-warning);
}

.subs_request_status.is-approved {
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    color: var(--c-success);
}

.subs_request_status.is-rejected,
.subs_request_status.is-canceled {
    background: color-mix(in srgb, var(--c-error) 10%, transparent);
    color: var(--c-error);
}

.subs_empty {
    padding: 20px;
    font-size: 13px;
    color: var(--c-text-muted);
    text-align: center;
}

.subs_modal_intro {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subs_modal_intro h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
}

.subs_modal_intro p {
    margin: 0;
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* Modal overrides */

#plan_change_request_modal .modal-content {
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
}

#plan_change_request_modal .modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 18px 22px 15px;
    background: var(--c-surface);
}

#plan_change_request_modal .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}

#plan_change_request_modal .modal-body {
    padding: 22px !important;
    padding-top: 22px !important;
}

#plan_change_request_modal .modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 14px 22px;
    gap: 10px;
    background: var(--c-surface);
}

.subs_modal_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ease), opacity var(--ease);
    border: none;
    text-decoration: none;
}

.subs_modal_btn.is-cancel {
    background: transparent;
    color: var(--c-text-muted);
    border: 1.5px solid var(--border-light);
}

.subs_modal_btn.is-cancel:hover {
    background: var(--bg-card);
}

.subs_modal_btn.is-submit {
    background: var(--c-accent);
    color: #fff;
    min-width: 140px;
}

.subs_modal_btn.is-submit:hover {
    opacity: .88;
}

/* ── Dashboard Page ─────────────────────────────────────────────── */

.db_page {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 40px;
}

/* ── Welcome Banner ── */
.db_action_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--ease), color var(--ease), box-shadow var(--ease);
    white-space: nowrap;
}

.db_action_primary {
    background: var(--c-accent);
    color: #fff;
}

.db_action_primary:hover {
    background: var(--c-accent-dark, #4f46e5);
    color: #fff;
}

.db_action_ghost {
    background: var(--bg-card);
    color: var(--c-text);
    border: 1.5px solid var(--border-light);
}

.db_action_ghost:hover {
    background: var(--c-white);
    color: var(--c-text);
    border-color: var(--c-accent);
}

/* ── KPI metric link hover ── */
.db_metric_link {
    text-decoration: none;
    cursor: pointer;
}

.db_metric_link:hover {
    border-color: var(--c-accent);
}

/* ── Feed Card ── */
.db_feed_card {
    flex: 1;
}

.db_feed_badge {
    margin-inline-start: auto;
    background: #f43f5e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 14px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db_feed_body {
    gap: 0;
    padding: 0;
}

.db_feed_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--ease);
}

.db_feed_item:last-of-type {
    border-bottom: none;
}

.db_feed_item:hover {
    background: var(--c-surface);
}

.db_feed_item.is_unread {
    background: rgba(99, 102, 241, .03);
}

.db_feed_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    background: var(--c-accent);
}

.db_dot_message {
    background: #0ea5e9;
}

.db_dot_inquiry {
    background: #f59e0b;
}

.db_dot_follow {
    background: #10b981;
}

.db_dot_review {
    background: #f43f5e;
}

.db_dot_purchase_offer {
    background: #8b5cf6;
}

.db_feed_content {
    flex: 1;
    min-width: 0;
}

.db_feed_title {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.db_feed_sub {
    font-size: 11.5px;
    color: var(--c-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db_feed_time {
    font-size: 11px;
    color: var(--c-text-muted);
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 2px;
}

.db_feed_see_all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px;
    font-size: 12px;
    color: var(--c-accent);
    text-decoration: none;
    border-top: 1px solid var(--border-light);
    font-weight: 500;
    transition: background var(--ease);
}

.db_feed_see_all:hover {
    background: var(--c-surface);
    color: var(--c-accent);
}

/* ── 2-col row ── */
.db_row_2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Main + Side (2:1) ── */
.db_row_main_side {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    align-items: start;
}

/* ── 3-col row ── */
.db_row_3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ── Card link (view all) ── */
.db_card_link {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--c-text-soft);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.db_card_link:hover {
    text-decoration: underline;
    color: var(--c-accent);
}

/* ── Time ── */
.db_time {
    font-size: 11px;
    color: var(--c-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.db_time_inline {
    margin-inline-start: auto;
}

/* ── Status Badge ── */
.db_status_badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 500;
}

.db_status_new,
.db_status_open,
.db_status_pending {
    background: rgba(245, 158, 11, .1);
    color: #f59e0b;
}

.db_status_active,
.db_status_replied {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
}

.db_status_closed,
.db_status_read {
    background: var(--bg-card);
    color: var(--c-text-muted);
}

.db_status_inactive,
.db_status_rejected {
    background: rgba(244, 63, 94, .1);
    color: #f43f5e;
}

/* ── Inquiry row ── */
.db_inq_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--ease);
}

.db_inq_row:last-child {
    border-bottom: none;
}

.db_inq_row:hover {
    background: var(--c-surface);
}

.db_inq_thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 13px;
}

.db_inq_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db_inq_body {
    flex: 1;
    min-width: 0;
}

.db_inq_sender {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db_inq_company {
    font-weight: 400;
    color: var(--c-text-muted);
}

.db_inq_product {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db_inq_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* ── Inquiry detail page ── */
.inq_message_block {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 16px;
}

.inq_message_block_reply {
    background: color-mix(in srgb, var(--c-accent) 8%, transparent);
    border-color: color-mix(in srgb, var(--c-accent) 25%, transparent);
}

.inq_replied_at {
    font-size: 11px;
    color: var(--c-text-muted);
    margin-top: 8px;
}

.inq_product_ref {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inq_product_thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--c-surface);
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-muted);
}

.inq_product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inq_product_thumb svg {
    width: 22px;
    height: 22px;
}

.inq_product_name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.35;
}

.inq_product_code {
    font-size: 11.5px;
    color: var(--c-text-muted);
    margin-top: 2px;
}

/* ── Conversation row ── */
.db_conv_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: background var(--ease);
}

.db_conv_row:last-child {
    border-bottom: none;
}

.db_conv_row:hover {
    background: var(--c-surface);
}

.db_conv_row.is_unread .db_conv_name {
    font-weight: 600;
}

.db_conv_row.is_unread .db_conv_last {
    color: var(--c-text);
}

.db_conv_avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}

.db_conv_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db_conv_unread_dot {
    position: absolute;
    top: 1px;
    inset-inline-end: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f43f5e;
    border: 2px solid var(--c-white);
}

.db_conv_body {
    flex: 1;
    min-width: 0;
}

.db_conv_name {
    font-size: 13px;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.db_conv_last {
    font-size: 11.5px;
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Review item ── */
.db_review_item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.db_review_item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.db_review_top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.db_review_stars {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
}

.db_review_name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db_review_comment {
    margin: 0;
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.5;
}

/* ── Purchase Request item ── */
.db_pr_item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db_pr_item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.db_pr_title {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.35;
}

.db_pr_meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--c-text-muted);
    flex-wrap: wrap;
}

.db_pr_cat {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
}

.db_pr_sep {
    opacity: .4;
}

.db_pr_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

/* ── Quick links grid ── */
.db_quick_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.db_quick_item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.db_quick_item:hover {
    background: var(--c-white);
    border-color: var(--c-accent);
    color: var(--c-text);
}

.db_quick_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
}

.db_quick_icon svg {
    width: 14px;
    height: 14px;
}

/* ── Team ───────────────────────────────────────────────────────── */

.team_page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 28px;
}

.team_upgrade_card {
    border-radius: 14px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 60%),
        var(--c-white);
}

.team_upgrade_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 1rem;
}

.team_upgrade_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-accent) 10%, var(--c-white));
    border: 1px solid color-mix(in srgb, var(--c-accent) 18%, transparent);
    color: var(--c-accent);
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.team_upgrade_inner h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
    color: var(--c-text);
}

.team_upgrade_inner p {
    margin: 0;
    max-width: 680px;
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.65;
}

.team_stats_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.team_stat_card {
    padding: 18px;
    border-radius: 14px;
}

.team_stat_eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: .55px;
    margin-bottom: 10px;
}

.team_stat_value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--c-text);
    margin-bottom: 8px;
}

.team_stat_hint {
    font-size: 12px;
    line-height: 1.55;
    color: var(--c-text-muted);
}

.team_table_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.team_table_plan,
.team_table_limit {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--c-surface);
    border: 1px solid var(--border-light);
    font-size: 11.5px;
    color: var(--c-text-soft);
    font-weight: 500;
}

.team_permission_legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.team_permission_legend_title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
}

.team_permission_legend p {
    margin: 0;
    font-size: 12px;
    color: var(--c-text-muted);
}

.team_member_identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team_member_avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--c-accent) 12%, var(--c-white));
    color: var(--c-accent);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--c-accent) 18%, transparent);
    flex-shrink: 0;
}

.team_member_identity_info {
    min-width: 0;
}

.team_role_badge,
.team_status_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
}

.team_role_badge.is-owner,
.team_role_badge.is-manager,
.team_status_badge.is-active {
    background: color-mix(in srgb, var(--c-accent) 10%, var(--c-white));
    color: var(--c-accent);
    border-color: color-mix(in srgb, var(--c-accent) 18%, transparent);
}

.team_role_badge.is-staff {
    background: color-mix(in srgb, #10b981 10%, var(--c-white));
    color: #0f9b6c;
    border-color: color-mix(in srgb, #10b981 18%, transparent);
}

.team_role_badge.is-viewer,
.team_status_badge.is-inactive {
    background: color-mix(in srgb, var(--c-text-soft) 10%, var(--c-white));
    color: var(--c-text-soft);
    border-color: color-mix(in srgb, var(--c-text-soft) 16%, transparent);
}

.team_permissions_cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team_permission_auto,
.team_permission_count {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text);
}

.team_permission_list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.team_permission_chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--c-surface);
    border: 1px solid var(--border-light);
    color: var(--c-text-soft);
    font-size: 11px;
    font-weight: 500;
}

.team_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.team_empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    min-height: 260px;
    padding: 32px 20px;
}

.team_empty_state h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
}

.team_empty_state p {
    margin: 0;
    max-width: 460px;
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.65;
}

.team_modal {
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    background: var(--c-white);
}

.team_modal .modal-header {
    align-items: flex-start;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.team_modal_title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--c-text);
}

.team_modal_desc {
    margin: 0;
    font-size: 12.5px;
    color: var(--c-text-muted);
}

.team_member_form .modal-body {
    padding: 22px 24px;
}

.team_form_permissions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.team_form_permissions_head {
    margin-bottom: 14px;
}

.team_form_permissions_head h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.team_form_permissions_head p {
    margin: 0;
    font-size: 12px;
    color: var(--c-text-muted);
}

.team_permissions_auto_notice {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--c-accent) 28%, transparent);
    background: color-mix(in srgb, var(--c-accent) 5%, var(--c-white));
    font-size: 12.5px;
    color: var(--c-text);
}

.team_permissions_grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team_perm_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team_perm_group_label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--c-text-muted);
    padding-inline-start: 2px;
}

.team_perm_group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.team_perm_group_label {
    grid-column: 1 / -1;
}

.team_permission_option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    background: var(--c-surface);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.team_permission_option:hover {
    border-color: color-mix(in srgb, var(--c-accent) 22%, transparent);
    background: var(--c-white);
}

.team_permission_option input {
    margin-top: 2px;
    accent-color: var(--c-accent);
}

.team_permission_option_body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team_permission_option_body strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-text);
}

.team_permission_option_body small {
    font-size: 11px;
    line-height: 1.5;
    color: var(--c-text-muted);
}

.team_modal_footer {
    padding: 16px 24px 22px;
    border-top: 1px solid var(--border-light);
}

.theme-dark .team_upgrade_card,
.theme-dark .team_modal,
.theme-dark .team_permission_option:hover {
    background: var(--c-white);
}

/* ══════════════════════════════════════════════════════════
   Featured Listings Page
   ══════════════════════════════════════════════════════════ */

.ftd_page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Hero */
.ftd_hero {
    background: linear-gradient(135deg, var(--c-accent) 0%, color-mix(in srgb, var(--c-accent) 70%, #312e81) 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    flex-wrap: wrap;
}

.ftd_hero_icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, .18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.ftd_hero_title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 .25rem;
}

.ftd_hero_desc {
    font-size: .875rem;
    opacity: .85;
    margin: 0;
}

.ftd_hero_badges {
    display: flex;
    gap: .5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.ftd_hero_badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* Layout */
.ftd_layout {
    display: grid;
    grid-template-columns: 1fr 30%;
    gap: 1.5rem;
    align-items: start;
}

.ftd_main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Step cards */
.ftd_step_card {
    background: var(--c-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 1px 4px rgba(30, 27, 75, .04);
    margin-bottom: 0.5rem;
}

.ftd_step_head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.ftd_step_num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.ftd_step_title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--c-primary);
    margin-bottom: .15rem;
}

.ftd_step_desc {
    font-size: .78rem;
    color: var(--c-text-muted);
}

/* Slot grid */
.ftd_slot_grid {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ftd_slot_card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    position: relative;
    background: var(--c-white);
    overflow: hidden;
}

.ftd_slot_card:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.ftd_slot_card.is_selected {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 12%, transparent);
}

.ftd_slot_radio {
    display: none;
}

.ftd_slot_icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

.ftd_slot_card.is_selected .ftd_slot_icon {
    background: var(--c-accent);
    color: #fff;
}

.ftd_slot_info {
    flex: 1;
    min-width: 0;
}

.ftd_slot_name {
    font-size: .85rem;
    font-weight: 500;
    color: var(--c-primary);
    margin-bottom: .1rem;
}

.ftd_slot_desc_text {
    font-size: .73rem;
    color: var(--c-text-muted);
}

.ftd_slot_price_col {
    text-align: right;
    flex-shrink: 0;
}

.ftd_slot_from {
    font-size: .62rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ftd_slot_price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-accent);
}

.ftd_slot_badge_hot {
    position: absolute;
    top: .45rem;
    right: .55rem;
    background: #f59e0b;
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 999px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Plan row */
.ftd_plan_row {
    display: flex;
    gap: .75rem;
}

.ftd_plan_card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem .75rem;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: border-color .15s, background .15s, box-shadow .15s;
    text-align: center;
    background: var(--c-white);
    gap: .15rem;
}

.ftd_plan_card:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
}

.ftd_plan_card.is_selected {
    border-color: var(--c-accent);
    background: var(--c-accent-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 12%, transparent);
}

.ftd_plan_radio {
    display: none;
}

.ftd_plan_days {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--c-primary);
    line-height: 1;
}

.ftd_plan_label {
    font-size: .7rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ftd_plan_badge {
    position: absolute;
    top: -.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-accent);
    color: #fff;
    font-size: .6rem;
    font-weight: 600;
    padding: .18rem .55rem;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: .03em;
}

/* Submit card */
.ftd_submit_card {
    background: var(--c-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 1px 4px rgba(30, 27, 75, .04);
}

.ftd_price_summary {
    flex: 1;
}

.ftd_price_label {
    font-size: .72rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .2rem;
}

.ftd_price_value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--c-accent);
    line-height: 1.1;
}

.ftd_price_note {
    font-size: .72rem;
    color: var(--c-text-muted);
    margin-top: .3rem;
}

.ftd_submit_btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    height: 44px;
    padding: 0 1.5rem;
}

/* Empty notice */
.ftd_empty_notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: var(--c-surface);
    border-radius: 10px;
    color: var(--c-text-muted);
    font-size: .84rem;
}

/* Aside */
.ftd_aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ftd_aside_card {
    background: var(--c-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(30, 27, 75, .04);
}

.ftd_aside_head {
    padding: .75rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: .72rem;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.ftd_aside_head svg {
    color: var(--c-accent);
}

.ftd_aside_item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
}

.ftd_aside_item:last-child {
    border-bottom: none;
}

.ftd_aside_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: .25rem;
    flex-shrink: 0;
}

.ftd_aside_dot_active {
    background: var(--c-success);
}

.ftd_aside_dot_pending {
    background: var(--c-warning);
}

.ftd_aside_item_name {
    font-size: .8rem;
    font-weight: 500;
    color: var(--c-primary);
    margin-bottom: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ftd_aside_item_meta {
    font-size: .7rem;
    color: var(--c-text-muted);
}

/* How it works */
.ftd_how_steps {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .85rem 1.1rem;
}

.ftd_how_step {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .8rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.ftd_how_num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Pricing table in aside */
.ftd_pricing_table {
    padding: .85rem 1.1rem;
}

.ftd_pricing_thead,
.ftd_pricing_row {
    display: grid;
    grid-template-columns: 1fr 36px 36px 36px;
    gap: .25rem;
    align-items: center;
    padding: .28rem 0;
    font-size: .85rem;
}

.ftd_pricing_thead {
    color: var(--c-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: .5rem;
    margin-bottom: .35rem;
}

.ftd_pricing_row {
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--border-light);
}

.ftd_pricing_row:last-child {
    border-bottom: none;
}

.ftd_pricing_row span:not(:first-child) {
    text-align: right;
    color: var(--c-primary);
    font-weight: 500;
}

/* History table */
.ftd_history_card {
    background: var(--c-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(30, 27, 75, .04);
}

.ftd_history_head {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.ftd_history_title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-primary);
}

.ftd_history_empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 3rem 1rem;
    color: var(--c-text-muted);
    font-size: .85rem;
}

.ftd_table_product {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: var(--c-text);
}

.ftd_table_thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 1023px) {
    .ftd_layout {
        grid-template-columns: 1fr;
    }

    .ftd_aside {
        order: -1;
    }

    .ftd_hero_badges {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .ftd_hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .ftd_plan_row {
        gap: .5rem;
    }

    .ftd_plan_days {
        font-size: 1.4rem;
    }

    .ftd_submit_card {
        flex-direction: column;
        align-items: stretch;
    }

    .ftd_submit_btn {
        width: 100%;
        justify-content: center;
    }
}

.theme-dark .ftd_step_card,
.theme-dark .ftd_aside_card,
.theme-dark .ftd_history_card,
.theme-dark .ftd_submit_card,
.theme-dark .ftd_slot_card,
.theme-dark .ftd_plan_card {
    background: var(--c-white);
    border-color: var(--border-light);
}

.theme-dark .ftd_slot_card:hover,
.theme-dark .ftd_plan_card:hover,
.theme-dark .ftd_slot_card.is_selected,
.theme-dark .ftd_plan_card.is_selected {
    background: var(--c-accent-light);
}

.ftd_workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ftd_workspace_hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 60%), var(--c-white);
    border: 1px solid color-mix(in srgb, var(--c-accent) 12%, var(--border-light));
}

.ftd_workspace_intro {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ftd_workspace_icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--c-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ftd_workspace_title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--c-primary);
}

.ftd_workspace_desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-text-muted);
    max-width: 760px;
}

.ftd_workspace_stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ftd_workspace_stat {
    min-width: 132px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--border-light);
}

.ftd_workspace_stat span {
    display: block;
    font-size: 11px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.ftd_workspace_stat strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--c-primary);
}

.ftd_tabs_shell {
    overflow-x: auto;
}

.ftd_tabs {
    display: inline-flex;
    gap: 10px;
    min-width: 100%;
}

.ftd_tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border-light);
    background: var(--c-white);
    color: var(--c-text);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--ease);
    white-space: nowrap;
}

.ftd_tab:hover,
.ftd_tab.is_active {
    border-color: color-mix(in srgb, var(--c-accent) 28%, var(--border-light));
    background: var(--c-accent-muted);
    color: var(--c-accent);
}

.ftd_workspace_content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ftd_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.ftd_request_grid {
    grid-template-columns: 1fr;
}

.ftd_request_shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.ftd_request_surface {
    overflow: visible;
}

.ftd_request_surface_head {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.ftd_request_micro_stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.ftd_request_micro_stats span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.4rem;
    padding: 0 .9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-accent) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--c-accent) 12%, var(--border-light));
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 600;
}

.ftd_request_micro_stats span svg {
    color: var(--c-accent);
    flex-shrink: 0;
}

.ftd_field_shell {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ftd_inline_label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
}

.ftd_surface {
    background: var(--c-white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(30, 27, 75, .04);
}

.ftd_surface_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 0;
}

.ftd_surface_title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-primary);
}

.ftd_surface_desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--c-text-muted);
}

.ftd_builder {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ftd_builder_step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.ftd_builder_step_index {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.ftd_builder_step_title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 4px;
}

.ftd_builder_step_desc {
    font-size: 12.5px;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.ftd_request_selection_split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    align-items: start;
}

.ftd_request_selection_col {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.ftd_request_selection_head {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.ftd_plan_row--stacked {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.ftd_plan_card--row {
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    min-height: 0;
    padding: .95rem 1rem;
    text-align: left;
}

.ftd_plan_card--row .ftd_plan_days {
    margin: 0;
    font-size: 1.2rem;
}

.ftd_plan_card--row .ftd_plan_label {
    margin: 0;
    text-align: left;
}

.ftd_plan_card--row .ftd_plan_price {
    font-size: .98rem;
}

.ftd_request_sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.ftd_request_summary {
    padding: 1.2rem;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 36%),
        linear-gradient(180deg, #f7f8ff 0%, #ffffff 100%);
    box-shadow: 0 20px 50px rgba(79, 70, 229, .10);
}

.ftd_request_summary_head h4 {
    margin: .8rem 0 .3rem;
    font-size: 1.05rem;
    color: var(--c-primary);
}

.ftd_request_summary_head p {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.ftd_request_summary_badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2rem;
    padding: 0 .78rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-accent) 10%, #fff);
    color: var(--c-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ftd_request_summary_card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.ftd_request_summary_row {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ftd_request_summary_row span {
    font-size: 11px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ftd_request_summary_row strong {
    font-size: 14px;
    color: var(--c-primary);
    line-height: 1.5;
}

.ftd_request_total_block {
    margin-top: 1rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
    color: #fff;
}

.ftd_request_total_block span {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .8;
}

.ftd_request_total_block strong {
    display: block;
    margin-top: .4rem;
    font-size: 1.75rem;
    line-height: 1;
}

.ftd_submit_btn--sticky {
    width: 100%;
    min-height: 3.2rem;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.ftd_request_assurance {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.ftd_request_assurance_item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: .8rem;
    align-items: start;
}

.ftd_request_assurance_icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .95rem;
    background: color-mix(in srgb, var(--c-accent) 10%, #fff);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ftd_request_assurance_item strong {
    display: block;
    font-size: 13px;
    color: var(--c-primary);
}

.ftd_request_assurance_item span:last-child {
    display: block;
    margin-top: .15rem;
    font-size: 12px;
    line-height: 1.6;
    color: var(--c-text-muted);
}

.ftd_checkout_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 8%, #fff) 0%, var(--c-white) 100%);
}

.ftd_checkout_summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ftd_checkout_summary span {
    font-size: 11px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ftd_checkout_summary strong {
    font-size: 28px;
    line-height: 1.1;
    color: var(--c-accent);
}

.ftd_checkout_summary small {
    font-size: 12px;
    color: var(--c-text-muted);
}

.ftd_sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ftd_activity_list {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ftd_activity_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.ftd_activity_item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ftd_activity_item strong,
.ftd_slot_note strong {
    display: block;
    font-size: 13px;
    color: var(--c-primary);
}

.ftd_activity_item span,
.ftd_slot_note span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--c-text-muted);
}

.ftd_listing_cards {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ftd_listing_card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    align-items: center;
}

.ftd_listing_media img,
.ftd_listing_media_placeholder {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ftd_listing_topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ftd_listing_topline h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-primary);
}

.ftd_listing_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 6px;
}

.ftd_listing_meta span,
.ftd_listing_range {
    font-size: 12px;
    color: var(--c-text-muted);
}

.ftd_pricing_summary {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ftd_pricing_summary_card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--c-surface);
}

.ftd_pricing_summary_card span,
.ftd_pricing_summary_card small {
    display: block;
    color: var(--c-text-muted);
}

.ftd_pricing_summary_card span {
    font-size: 12px;
    margin-bottom: 6px;
}

.ftd_pricing_summary_card strong {
    display: block;
    font-size: 24px;
    color: var(--c-primary);
    margin-bottom: 4px;
}

.ftd_pricing_summary_card small {
    font-size: 12px;
}

.ftd_pricing_table_shell {
    padding: 0 22px 22px;
}

.ftd_pricing_row--large {
    grid-template-columns: 1fr 72px 72px 72px;
    gap: 12px;
    padding: 12px 0;
}

.ftd_pricing_row--large span:first-child strong {
    display: block;
    font-size: 13px;
    color: var(--c-primary);
    margin-bottom: 3px;
}

.ftd_pricing_row--large span:first-child small {
    display: block;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--c-text-muted);
}

.ftd_slot_notes {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ftd_slot_note {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.ftd_slot_note:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ftd_history_empty--small {
    padding: 18px;
    align-items: flex-start;
}

@media (max-width: 1199px) {
    .ftd_grid {
        grid-template-columns: 1fr;
    }

    .ftd_request_shell {
        grid-template-columns: 1fr;
    }

    .ftd_request_sidebar {
        position: static;
    }

    .ftd_request_selection_split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {

    .ftd_workspace_hero,
    .ftd_checkout_bar,
    .ftd_listing_card,
    .ftd_builder_step {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .ftd_workspace_stats,
    .ftd_pricing_summary {
        grid-template-columns: 1fr;
    }

    .ftd_listing_card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .ftd_listing_media img,
    .ftd_listing_media_placeholder {
        width: 100%;
        height: 180px;
    }

    .ftd_request_surface_head {
        gap: .9rem;
        flex-direction: column;
    }

    .ftd_request_micro_stats {
        justify-content: flex-start;
    }

    .ftd_request_summary {
        padding: 1rem;
    }

    .ftd_request_total_block strong {
        font-size: 1.7rem;
    }
}

.theme-dark .ftd_surface,
.theme-dark .ftd_workspace_stat,
.theme-dark .ftd_tab {
    background: var(--c-white);
    border-color: var(--border-light);
}

.theme-dark .ftd_workspace_hero,
.theme-dark .ftd_checkout_bar,
.theme-dark .ftd_builder_step,
.theme-dark .ftd_listing_card,
.theme-dark .ftd_pricing_summary_card {
    border-color: var(--border-light);
}

.db_featured_strip {
    margin-bottom: 1.1rem;
    padding: .9rem 1rem;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, .05), rgba(99, 102, 241, .08));
    border: 1px solid rgba(99, 102, 241, .12);
}

.db_featured_strip_head,
.db_featured_strip_cards,
.team_intro_surface,
.team_intro_surface_meta {
    display: flex;
    gap: 1rem;
}

.db_featured_strip_head {
    align-items: center;
    justify-content: space-between;
    margin-bottom: .85rem;
}

.db_featured_strip_head span,
.team_intro_surface_copy span {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-accent);
    font-weight: 700;
}

.db_featured_strip_link {
    font-weight: 700;
    color: var(--c-accent);
}

.db_featured_strip_cards {
    overflow-x: auto;
}

.db_featured_offer_card {
    min-width: 20rem;
    max-width: 24rem;
    min-height: 8.75rem;
    max-height: 9.25rem;
    padding: .8rem 1rem;
    border-radius: 1.1rem;
    background: #fff;
    display: grid;
    grid-template-columns: 6.4rem 1fr;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 .6rem 1.4rem rgba(30, 27, 75, .06);
    border: 1px solid var(--border-light);
}

.db_featured_offer_media {
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 1.2rem;
    background: #f4f5ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db_featured_offer_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db_featured_offer_body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
}

.db_featured_offer_body em {
    font-style: normal;
    font-size: .8rem;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.db_featured_offer_body strong {
    font-size: 1.05rem;
    color: var(--c-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db_featured_offer_body small {
    color: var(--c-accent);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile_settings_layout .settings_sidenav {
    min-width: 18rem;
    max-width: 22rem;
}

.profile_inline_link {
    color: var(--c-accent);
    font-size: .9rem;
    word-break: break-all;
    transition: color var(--ease);
}

.profile_inline_link:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

.profile_settings_shell,
.profile_section_stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile_sidenav_summary {
    padding: 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(0deg, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 60%), var(--c-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    margin-bottom: .85rem;
}

.profile_sidenav_avatar {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #1d5d55;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.profile_sidenav_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team_intro_surface {
    padding: 1.15rem 1.2rem;
    border-radius: 1.25rem;
    background: var(--c-white);
}

.team_intro_surface_copy {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.team_intro_surface_copy p {
    margin: 0;
    color: #67727e;
}

.team_intro_surface_meta {
    align-items: stretch;
}

.team_intro_surface_meta div {
    min-width: 8rem;
    padding: .85rem .95rem;
    border-radius: 1rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.team_intro_surface_meta small {
    color: #7b8794;
}

@media (max-width: 900px) {

    .team_intro_surface,
    .team_intro_surface_meta {
        flex-direction: column;
        align-items: stretch;
    }

    .profile_settings_layout {
        grid-template-columns: 1fr;
    }

    .profile_settings_layout .settings_sidenav {
        min-width: 0;
        max-width: 100%;
        position: static;
    }
}

/* ============================================================
   RANGE FIELDS (price / quantity min–max)
   ============================================================ */

.settings_range_fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0 10px;
    align-items: end;
}

.range_sep_col {
    display: flex;
    align-items: center;
    height: 40px;
}

.range_sep {
    color: var(--c-text-muted);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    display: block;
}

/* ============================================================
   DEAL MATCHES PAGE
   ============================================================ */

.deal_matches_page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Hero bar ── */
.deal_matches_hero {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deal_matches_hero_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.deal_matches_hero_stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.deal_match_stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-inline-end: 24px;
}

.deal_match_stat+.deal_match_stat {
    padding-inline-start: 24px;
    padding-inline-end: 0;
}

.deal_match_stat_divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
    flex-shrink: 0;
    margin-inline-end: 1rem;
}

.deal_match_stat_val {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-accent);
    line-height: 1;
}

.deal_match_stat_label {
    font-size: 11px;
    color: var(--c-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Filter bar ── */
.deal_matches_filter_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid var(--border-light);
}

.deal_matches_filter_bar_label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-inline-end: 2px;
}

.deal_filter_chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.deal_filter_chip.is-cat {
    background: #ede9fe;
    color: #6d28d9;
}

.deal_filter_chip.is-brand {
    background: #dbeafe;
    color: #1d4ed8;
}

.deal_filter_chip.is-family {
    background: #e9efff;
    color: #384fc7;
}

.deal_filter_chip.is-model {
    background: #e0f2fe;
    color: #0369a1;
}

.deal_filter_chip.is-price {
    background: #dcfce7;
    color: #15803d;
}

.deal_filter_chip.is-qty {
    background: #fef9c3;
    color: #854d0e;
}

.deal_filter_edit_link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-accent);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--c-accent-muted);
    transition: background var(--ease), border-color var(--ease);
    flex-shrink: 0;
}

.deal_filter_edit_link:hover {
    background: var(--c-accent-muted);
    border-color: var(--c-accent);
}

.deal_filter_edit_link svg {
    width: 13px;
    height: 13px;
}

.deal_filter_tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 100%;
}

.deal_filter_tree_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deal_filter_tree_brand_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.deal_filter_tree_brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--c-surface-2);
    color: var(--c-text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
}

/* ── Product table ── */
.deal_matches_list .deal_match_title_link {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    font-size: .85rem;
    display: block;
}

.deal_matches_list .deal_match_title_link:hover {
    color: var(--c-accent);
}

.deal_match_seller {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--c-text-muted);
}

.deal_match_seller_avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-accent-muted);
    color: var(--c-accent);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deal_match_category {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .82rem;
}

.deal_match_sub_category {
    font-size: .73rem;
    color: var(--c-text-muted);
}

.deal_match_price {
    font-size: .9rem;
    font-weight: 700;
    color: var(--c-accent);
    white-space: nowrap;
}

/* ── No results ── */
.deal_matches_no_results {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    padding: 56px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.deal_matches_no_results_icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--c-surface);
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.deal_matches_no_results_icon svg {
    width: 26px;
    height: 26px;
}

.deal_matches_no_results h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--c-text);
}

.deal_matches_no_results p {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
}

/* ── Empty state (not configured) ── */
.deal_matches_empty_state {
    background: var(--c-white);
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    padding: 72px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.deal_matches_empty_icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: #f7f7ff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.deal_matches_empty_icon svg {
    width: 32px;
    height: 32px;
}

.deal_matches_empty_state h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--c-text);
}

.deal_matches_empty_state p {
    font-size: 13.5px;
    color: var(--c-text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════
   Interests / Deal Alert onboarding page
═══════════════════════════════════════════ */
.interests_page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.interests_hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 60%), var(--c-white);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--c-text);
}

.interests_hero_icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interests_hero_icon svg {
    width: 26px;
    height: 26px;
    color: var(--c-text);
}

.interests_hero_body {
    flex: 1;
    min-width: 0;
}

.interests_hero_title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--c-text);
}

.interests_hero_desc {
    font-size: 13.5px;
    color: var(--c-text);
    margin: 0;
    line-height: 1.5;
}

.interests_hero_status {
    flex-shrink: 0;
}

.interests_active_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .2);
    color: var(--c-text);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .3);
}

.interests_active_badge svg {
    width: 14px;
    height: 14px;
}

.interests_empty_badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    color: var(--c-text);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, .3);
}

.interests_notif_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .interests_notif_row {
        grid-template-columns: 1fr;
    }

    .interests_hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .interests_hero_status {
        width: 100%;
    }
}

.interests_notif_card {
    background: var(--c-white);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.interests_notif_card.is-active {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .08);
}

.interests_notif_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interests_notif_icon.is-app {
    background: #ede9fe;
    color: #6d28d9;
}

.interests_notif_icon.is-email {
    background: #dbeafe;
    color: #1d4ed8;
}

.interests_notif_icon svg {
    width: 20px;
    height: 20px;
}

.interests_notif_icon.is-tg svg {
    color: white;
}

.interests_notif_body {
    flex: 1;
    min-width: 0;
}

.interests_notif_label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
}

.interests_notif_hint {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.interests_filters_title {
    font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.interests_sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.interests_section {
    background: var(--c-white);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.interests_section_head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.interests_section_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interests_section_icon.is-cat {
    background: #ede9fe;
    color: #7c3aed;
}

.interests_section_icon.is-brand {
    background: #dbeafe;
    color: #1d4ed8;
}

.interests_section_icon.is-price {
    background: #dcfce7;
    color: #15803d;
}

.interests_section_icon.is-qty {
    background: #fef9c3;
    color: #854d0e;
}

.interests_section_icon svg {
    width: 20px;
    height: 20px;
}

.interests_section_title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 3px;
}

.interests_section_desc {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 0;
    line-height: 1.5;
}

.interests_section_toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.interests_option_groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.interests_option_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.interests_check_chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    font-size: 13.5px;
    cursor: pointer;
    color: var(--c-text);
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
}

.interests_check_chip input {
    display: none;
}

.interests_check_chip:has(input:checked) {
    border-color: var(--c-accent);
    background: rgba(var(--c-accent-rgb), .06);
    color: var(--c-accent);
    font-weight: 600;
}

.interests_check_chip.is-parent {
    font-weight: 600;
    font-size: 14px;
}

.interests_check_chip.is-sub {
    font-size: 13px;
}

.interests_sub_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-inline-start: 16px;
}

.interests_inline_fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .interests_inline_fields {
        grid-template-columns: 1fr;
    }
}

.interests_input_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.interests_footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    margin-top: 0.5rem;
    position: sticky;
    bottom: 0;
    background: var(--c-white, #fff);
    border-top: 1px solid var(--border-light, #e5e7eb);
    z-index: 50;
}

.interests_footer .btn svg {
    width: 16px;
    height: 16px;
}

/* Auction / deal-alert price range row */
.cat_range_block {
    margin-top: 14px;
}

.cat_range_label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-muted);
    margin-bottom: 6px;
}

.cat_range_inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat_range_inputs .form-control {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 6px 10px;
    height: auto;
}

.cat_range_sep {
    font-size: 13px;
    color: var(--c-text-muted);
    flex-shrink: 0;
}

/* Match score badge on product cards */
.mkt_match_score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 9px;
    line-height: 1;
}

.mkt_match_score.score-high {
    background: #dcfce7;
    color: #15803d;
}

.mkt_match_score.score-medium {
    background: #fef9c3;
    color: #854d0e;
}

.mkt_match_score.score-low {
    background: #fee2e2;
    color: #b91c1c;
}

/* Floating interests CTA button */
.interests_float_btn {
    position: fixed;
    bottom: 28px;
    inset-inline-end: 28px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transition: transform .2s, box-shadow .2s, opacity .3s;
    text-decoration: none;
}

.interests_float_btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.interests_float_btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.interests_float_dismiss {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #fff;
    margin-inline-start: 4px;
    flex-shrink: 0;
}

.interests_float_dismiss svg {
    width: 12px;
    height: 12px;
}

/* ── Telegram link card ───────────────────────────────────────────────── */
.tg_link_status_wrap {
    padding: 0 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg_status_row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
}

.tg_status_connected {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.tg_status_disconnected {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.tg_status_pending {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.tg_disconnect_btn {
    margin-inline-start: auto;
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}

.tg_disconnect_btn:hover {
    background: #fef2f2;
}

.tg_link_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity .2s;
    align-self: flex-start;
}

.tg_link_btn:hover {
    opacity: .88;
    color: #fff;
}

.tg_spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: tg_spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes tg_spin {
    to {
        transform: rotate(360deg);
    }
}

.interests_notif_icon.is-tg {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}

.tg_connect_chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .2s;
}

.tg_connect_chip:hover {
    opacity: .85;
    color: #fff;
}

.tg_inline_disconnect {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.tg_deal_waiting_bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 4px;
}

/* Per-sub-category deal alert filter chips */
.cat_filter_groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat_filter_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat_filter_group_header {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cat_filter_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.cat_filter_chip_wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cat_filter_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    font-size: 13px;
    cursor: pointer;
    color: var(--c-text);
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
    white-space: nowrap;
}

.cat_filter_chip input[type="checkbox"] {
    display: none;
}

.cat_filter_chip.is-active {
    border-color: var(--c-accent);
    background: rgba(var(--c-accent-rgb), .06);
    color: var(--c-accent);
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.cat_filter_detail {
    background: var(--c-bg-soft, #f8f9fa);
    border: 1.5px solid var(--c-accent);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 260px;
}

.cat_filter_range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat_filter_range_label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text-muted);
    width: 44px;
    flex-shrink: 0;
}

.cat_filter_range .form-control {
    width: 80px;
    flex: 1;
    font-size: 13px;
    padding: 5px 8px;
    height: auto;
}

.cat_filter_sep {
    font-size: 12px;
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.interests_empty_hint {
    font-size: 13px;
    color: var(--c-text-muted);
    padding: 8px 0;
}

.cat_filter_actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid rgba(var(--c-accent-rgb), .15);
    margin-top: 2px;
}

.cat_filter_save_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}

.cat_filter_save_btn:hover {
    opacity: .88;
}

.cat_filter_save_btn svg {
    width: 13px;
    height: 13px;
}

/* ─── RahaBay Integration Page ──────────────────────────────────────────────── */
.rahabay_page_shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rahabay_hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr);
    gap: 18px;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--c-accent) 12%, var(--border-light));
    background: var(--aous-aw-bg-surface);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
}

.rahabay_hero_copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rahabay_hero_kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(var(--c-accent-rgb), .08);
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rahabay_hero_kicker_icon,
.rahabay_btn_icon,
.rahabay_feature_icon,
.rahabay_metric_icon,
.rahabay_section_icon,
.rahabay_sync_badge_icon,
.rahabay_empty_items_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rahabay_hero_kicker_icon svg,
.rahabay_btn_icon svg,
.rahabay_feature_icon svg,
.rahabay_metric_icon svg,
.rahabay_section_icon svg,
.rahabay_sync_badge_icon svg,
.rahabay_empty_items_icon svg {
    width: 16px;
    height: 16px;
}

.rahabay_hero_title {
    margin: 0;
    font-size: clamp(1.25rem, 4vw, 1.85rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--c-primary);
}

.rahabay_hero_sub {
    margin: 0;
    max-width: 720px;
    font-size: .96rem;
    line-height: 1.75;
    color: var(--c-text-soft);
}

.rahabay_learn_more_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, .82);
    color: var(--c-text);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.rahabay_learn_more_link:hover {
    transform: translateY(-1px);
    color: var(--c-accent);
    border-color: rgba(var(--c-accent-rgb), .3);
    background: rgba(var(--c-accent-rgb), .05);
}

.rahabay_feature_grid,
.rahabay_metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rahabay_feature_card,
.rahabay_metric_card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid var(--border-light);
}

.rahabay_feature_card strong,
.rahabay_metric_body strong {
    display: block;
    font-size: .93rem;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.25;
}

.rahabay_feature_card span:not(.rahabay_feature_icon),
.rahabay_metric_body small {
    display: block;
    margin-top: 4px;
    font-size: .76rem;
    line-height: 1.55;
    color: var(--c-text-soft);
}

.rahabay_feature_icon,
.rahabay_metric_icon,
.rahabay_section_icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(var(--c-accent-rgb), .1);
    color: var(--c-accent);
}

.rahabay_feature_icon.is-green,
.rahabay_metric_icon.is-green {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.rahabay_feature_icon.is-indigo,
.rahabay_metric_icon.is-indigo {
    background: rgba(99, 102, 241, .12);
    color: #4f46e5;
}

.rahabay_feature_icon.is-orange,
.rahabay_metric_icon.is-orange,
.rahabay_section_icon.is-orange {
    background: rgba(245, 158, 11, .12);
    color: #d97706;
}

.rahabay_feature_icon.is-cyan {
    background: rgba(14, 165, 233, .12);
    color: #0284c7;
}

.rahabay_metric_icon.is-red {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
}

.rahabay_metric_body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rahabay_metric_body strong {
    margin-top: 6px;
    font-size: 1.4rem;
    letter-spacing: -.04em;
}

.rahabay_connect_form {
    margin-top: 4px;
}

.rahabay_primary_cta,
.rahabay_sync_btn,
.rahabay_secondary_btn,
.rahabay_primary_link_btn,
.rahabay_disconnect_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.rahabay_primary_cta {
    min-width: 240px;
    box-shadow: 0 14px 30px rgba(var(--c-accent-rgb), .22);
}

.rahabay_primary_cta:hover,
.rahabay_sync_btn:hover,
.rahabay_secondary_btn:hover,
.rahabay_primary_link_btn:hover,
.rahabay_disconnect_btn:hover {
    transform: translateY(-1px);
}

.rahabay_preview_card,
.rahabay_action_panel,
.rahabay_section_card,
.rahabay_empty_items {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .04);
}

.rahabay_preview_card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rahabay_preview_head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rahabay_preview_logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 60%, #111827));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.rahabay_preview_head strong {
    display: block;
    font-size: 1rem;
    color: var(--c-text);
}

.rahabay_preview_head span {
    display: inline-flex;
    margin-top: 2px;
    font-size: .76rem;
    color: white;
}

.rahabay_preview_flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.rahabay_preview_flow_item {
    padding: 14px;
    border-radius: 16px;
    background: var(--c-surface);
    border: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    align-items: center;
}

.rahabay_preview_flow_item span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--c-accent-rgb), .1);
    color: var(--c-accent);
    flex-shrink: 0;
}

.rahabay_preview_flow_item strong,
.rahabay_preview_flow_item small {
    display: block;
}

.rahabay_preview_flow_item strong {
    font-size: .87rem;
    color: var(--c-text);
}

.rahabay_preview_flow_item small {
    font-size: .73rem;
    color: var(--c-text-soft);
}

.rahabay_preview_flow_item.is-accent {
    background: linear-gradient(180deg, rgba(var(--c-accent-rgb), .08), rgba(var(--c-accent-rgb), .03));
}

.rahabay_preview_flow_arrow {
    color: var(--c-text-soft);
}

.rahabay_preview_flow_arrow svg {
    width: 18px;
    height: 18px;
}

.rahabay_preview_points {
    display: grid;
    gap: 10px;
}

.rahabay_preview_points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--c-text-soft);
}

.rahabay_preview_points svg {
    width: 14px;
    height: 14px;
    color: #16a34a;
}

.rahabay_action_panel {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rahabay_action_panel_head strong {
    display: block;
    font-size: 1rem;
    color: var(--c-text);
}

.rahabay_action_panel_head span {
    display: block;
    margin-top: 4px;
    font-size: .79rem;
    line-height: 1.6;
    color: var(--c-text-soft);
}

.rahabay_action_panel_buttons {
    display: grid;
    gap: 10px;
}

.rahabay_secondary_btn,
.rahabay_disconnect_btn {
    border: 1px solid var(--border-light);
    background: var(--c-white);
    color: var(--c-text);
}

.rahabay_secondary_btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.rahabay_primary_link_btn {
    background: linear-gradient(135deg, #243b53 0%, #34516d 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(36, 59, 83, .18);
}

.rahabay_primary_link_btn:hover {
    color: #fff;
}

.rahabay_disconnect_btn {
    color: #dc2626;
    border-color: rgba(239, 68, 68, .16);
    background: rgba(239, 68, 68, .04);
    width: 100%;
}

.rahabay_sync_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rahabay_section_card {
    overflow: hidden;
}

.rahabay_section_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(var(--c-accent-rgb), .04), rgba(var(--c-accent-rgb), .015));
}

.rahabay_section_heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rahabay_section_heading p {
    margin: 2px 0 0;
    font-size: .75rem;
    color: var(--c-text-soft);
}

.rahabay_section_title {
    margin: 0;
    font-size: .96rem;
    font-weight: 700;
    color: var(--c-text);
}

.rahabay_select_all_label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--c-text-soft);
    cursor: pointer;
    user-select: none;
}

.rahabay_items_list {
    display: flex;
    flex-direction: column;
}

.rahabay_item_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background .14s ease;
}

.rahabay_item_row:last-child {
    border-bottom: none;
}

.rahabay_item_row:hover {
    background: rgba(var(--c-accent-rgb), .035);
}

.rahabay_item_row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--c-accent);
    flex-shrink: 0;
    cursor: pointer;
}

.rahabay_item_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rahabay_item_title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rahabay_item_meta {
    font-size: .74rem;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.rahabay_sync_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: .71rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.rahabay_sync_badge_synced {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.rahabay_sync_badge_failed {
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
}

.rahabay_sync_footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
    margin-top: 1rem;
}

.rahabay_sync_btn {
    padding: 0 22px;
    box-shadow: 0 14px 30px rgba(var(--c-accent-rgb), .16);
}

.rahabay_sync_hint {
    font-size: .8rem;
    color: var(--c-text-soft);
}

.rahabay_empty_items {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}

.rahabay_empty_items strong {
    font-size: .96rem;
    color: var(--c-text);
}

.rahabay_empty_items_icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(var(--c-accent-rgb), .08);
    color: var(--c-accent);
}

.rahabay_cred_field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rahabay_cred_field_label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.rahabay_cred_field_row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--c-accent-rgb), .04);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 14px;
}

.rahabay_cred_field_val {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: .875rem;
    color: var(--c-text);
    background: transparent;
    word-break: break-all;
}

.rahabay_cred_copy_btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--c-accent);
    background: transparent;
    border: 1px solid rgba(var(--c-accent-rgb), .24);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background .15s ease;
    white-space: nowrap;
}

.rahabay_cred_copy_btn:hover {
    background: rgba(var(--c-accent-rgb), .08);
}

.rahabay_unsync_btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid rgba(239, 68, 68, .25);
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    padding: 0;
}

.rahabay_unsync_btn svg {
    width: 13px;
    height: 13px;
}

.rahabay_unsync_btn:hover {
    background: rgba(239, 68, 68, .1);
    border-color: #ef4444;
}

/* Star rating picker — review create */
.rv_star_picker {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.rv_star_btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--c-placeholder);
    transition: color .15s, transform .12s;
    line-height: 0;
}

.rv_star_btn:hover,
.rv_star_btn.is_active {
    color: var(--c-warning);
    transform: scale(1.18);
}

.rv_star_svg {
    width: 28px;
    height: 28px;
}

.rv_star_label {
    font-size: .82rem;
    color: var(--c-text-muted);
    margin-inline-start: .4rem;
}

/* ── Save / Favorites toggle button ── */
.save_toggle_btn {
    color: var(--c-text-muted);
    background: transparent;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 0.25rem 0.45rem;
    line-height: 1;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.save_toggle_btn:hover,
.save_toggle_btn.is_saved {
    color: #e03e52;
    border-color: #e03e52;
    background: rgba(224, 62, 82, .07);
}

.save_toggle_btn.is_saved svg {
    color: #e03e52;
}

/* ═══════════════════════════════════════════════
   AUCTION — product action button + modal
═══════════════════════════════════════════════ */
.prod_action_btn.is-auction:hover {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, .06);
    color: #7c3aed;
}

.prod_modal_auction_icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(91, 33, 182, .08));
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prod_modal_auction_icon svg {
    width: 22px;
    height: 22px;
}

.prod_auction_modal_product_preview {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    background: var(--c-bg-alt, #f8fafc);
    border-radius: 14px;
    border: 1px solid var(--border-light);
}

.prod_auction_modal_thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.prod_auction_modal_warning {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem 1rem;
    background: rgba(217, 119, 6, .07);
    border: 1px solid rgba(217, 119, 6, .2);
    border-radius: 12px;
    font-size: .8rem;
    color: #92400e;
    line-height: 1.5;
}

.btn-auction-convert {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.25rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .18s, transform .12s;
    box-shadow: 0 4px 14px rgba(91, 33, 182, .28);
}

.btn-auction-convert:hover {
    opacity: .9;
    color: #fff;
    transform: translateY(-1px);
}

.btn-auction-convert:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   AUC BID ROW — Bid history rows (used in auctions/details and products/details)
   ============================================================ */
.auc_bid_row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.1rem;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    transition: background .15s;
}

.auc_bid_row:last-child {
    border-bottom: none;
}

.auc_bid_row:hover {
    background: rgba(124, 58, 237, .035);
}

.auc_bid_row.is_top {
    background: linear-gradient(90deg, rgba(124, 58, 237, .06), transparent);
    border-left: 3px solid #7c3aed;
}

.auc_bid_rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-bg-alt, #f1f5f9);
    color: var(--c-text-muted, #64748b);
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.is_top .auc_bid_rank {
    background: rgba(124, 58, 237, .15);
    color: #7c3aed;
}

.auc_bid_user {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 1;
    min-width: 0;
}

.auc_bid_name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--c-text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auc_bid_id {
    font-size: .75rem;
}

.auc_bid_amount {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-text, #0f172a);
    white-space: nowrap;
    flex-shrink: 0;
}

.auc_bid_amount.is_top_amount {
    color: #059669;
}

.auc_bid_currency {
    font-size: .72rem;
    font-weight: 500;
    color: var(--c-text-muted, #64748b);
    margin-left: .15rem;
}

.auc_bid_time {
    text-align: right;
    flex-shrink: 0;
}

.auc_bid_date {
    font-size: .8rem;
    font-weight: 500;
    color: var(--c-text, #0f172a);
}

.auc_bid_hour {
    font-size: .73rem;
}

.auc_bid_action_btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .18rem .55rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(99, 102, 241, .08);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, .18);
    text-decoration: none;
    transition: background .14s, color .14s;
    white-space: nowrap;
}

.auc_bid_action_btn svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.auc_bid_action_btn:hover {
    background: rgba(99, 102, 241, .15);
    color: #4338ca;
}

.auc_bid_action_btn.is_phone {
    background: rgba(5, 150, 105, .07);
    color: #047857;
    border-color: rgba(5, 150, 105, .18);
}

.auc_bid_action_btn.is_phone:hover {
    background: rgba(5, 150, 105, .13);
    color: #065f46;
}

/* ============================================================
   DB AUCTION CARD — Dashboard live auctions section
   ============================================================ */
.db_auction_card {
    border-radius: 18px;
    overflow: hidden;
}

.db_auction_icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, .15), rgba(91, 33, 182, .1));
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db_auction_icon svg {
    width: 20px;
    height: 20px;
}

.db_auction_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.db_auction_item {
    border-radius: 14px;
    border: 1px solid var(--border-light, #e5e7eb);
    background: var(--c-white, #fff);
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
}

.db_auction_item:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, .12);
    transform: translateY(-2px);
}

.db_auction_item_top {
    position: relative;
    height: 18rem;
    background: var(--c-bg-alt, #f1f5f9);
    overflow: hidden;
}

.db_auction_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db_auction_badge_live {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 20px;
    background: rgba(5, 150, 105, .9);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.db_auction_live_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: db_live_pulse 1.4s ease-in-out infinite;
}

@keyframes db_live_pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.7);
    }
}

.db_auction_item_body {
    padding: .75rem .9rem 0;
    flex: 1;
}

.db_auction_item_title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--c-text, #0f172a);
    margin-bottom: .5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db_auction_item_stats {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
    padding: 0.5rem;
}

.db_auction_stat {
    flex: 1;
    background: var(--c-bg-alt, #f8fafc);
    border-radius: 8px;
    padding: .35rem .5rem;
    text-align: center;
}

.db_auction_stat_label {
    font-size: .66rem;
    font-weight: 500;
    color: var(--c-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .1rem;
}

.db_auction_stat_value {
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db_auction_stat_value.text-success {
    color: #059669;
}

.db_auction_stat_timer {
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .15);
}

.db_auction_stat_timer .db_auction_stat_value {
    color: #dc2626;
}

.db_auction_countdown {
    font-size: .82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.db_auction_item_footer {
    padding: .6rem .9rem;
    background: var(--c-bg-alt, #f8fafc);
    border-top: 1px solid var(--border-light, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: var(--c-text-muted, #64748b);
}

.db_auction_item_footer strong {
    color: var(--c-text, #0f172a);
    font-weight: 600;
}

.db_auction_empty_state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--c-text-muted, #64748b);
}

.db_auction_empty_state svg {
    width: 40px;
    height: 40px;
    opacity: .35;
    margin-bottom: .75rem;
}

.db_auction_empty_state p {
    font-size: .88rem;
    margin: 0;
}

/* Dark mode overrides */
.theme-dark .auc_bid_row:hover {
    background: rgba(124, 58, 237, .06);
}

.theme-dark .auc_bid_row.is_top {
    background: linear-gradient(90deg, rgba(124, 58, 237, .1), transparent);
}

.theme-dark .auc_bid_rank {
    background: rgba(255, 255, 255, .07);
    color: #a78bfa;
}

.theme-dark .is_top .auc_bid_rank {
    background: rgba(124, 58, 237, .25);
}

.theme-dark .db_auction_item {
    background: var(--c-surface, #161c24);
    border-color: var(--border-color, #243041);
}

.theme-dark .db_auction_item:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, .2);
}

.theme-dark .db_auction_stat {
    background: rgba(255, 255, 255, .04);
}

.theme-dark .db_auction_item_footer {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border-color, #243041);
}
