/* ================================================================
   Cultioo Business — Dashboard
   Same design system as Delvioo™ / CullyAI™
   Poppins 300/700 · #ffffff · #f7f7f7 · #111111 · r24 · r50
   No box-shadow. No border on cards. No transform on hover.
   ================================================================ */

/* ── Fonts ───────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; height: 100%; }
body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    background: #ffffff;
    color: #111111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    overflow: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
*::-webkit-scrollbar { width: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

/* ── Design tokens ───────────────────────────────────────────────── */
:root {
    --bg:          #ffffff;
    --surface:     #f7f7f7;
    --surface-2:   #fbfbfb;
    --bg-card:     #f7f7f7;
    --bg-hover:    #efefef;
    --bg-dark:     #111111;
    --text:        #111111;
    --text-muted:  #999999;
    --text-light:  #cccccc;
    --soft:        #cccccc;
    --line:        rgba(0,0,0,0.06);
    --border:      #ebebeb;
    --radius-xl:   32px;
    --radius-lg:   24px;
    --radius-md:   18px;
    --radius-card: 24px;
    --radius-btn:  50px;
    --nav-h:       64px;
    --sidebar-w:   252px;
    --sidebar-col: 68px;
}

/* ── Mobile overlay ──────────────────────────────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 700;
    backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 68px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 24px;
}

.topbar--leftframe-style {
    left: var(--sidebar-w);
    transition: left 0.28s ease;
}
body.leftframe-collapsed .topbar--leftframe-style { left: var(--sidebar-col); }

.header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s;
}
.header:hover  { opacity: 0.55; }
.header:active { opacity: 0.35; }

.header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.header .big  { color: #111111; }
.header .bite { color: #cccccc; font-weight: 300; }

.topbar-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #777777;
    background: transparent;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.topbar-link:hover,
.topbar-link.active {
    background: #f4f4f4;
    color: #111111;
}

.auth-link-btn {
    border: none;
    border-radius: 50px;
    padding: 9px 16px;
    background: #f4f4f4;
    color: #111111;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.15s, opacity 0.15s;
}
.auth-link-btn:hover { background: #ececec; }
.auth-link-btn:active { opacity: 0.7; }
.auth-link-btn--primary {
    background: #111111;
    color: #ffffff;
}
.auth-link-btn--primary:hover { background: #333333; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.icon-btn img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    opacity: 0.38;
    transition: opacity 0.15s;
}
.icon-btn:hover     { background: var(--bg-card); }
.icon-btn:hover img { opacity: 0.75; }
.icon-btn:active    { opacity: 0.5; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.leftframe {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: #111111;
    border-right: none;
    display: flex;
    flex-direction: column;
    z-index: 800;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 18px;
    transition: width 0.28s ease;
}
.leftframe.collapsed { width: var(--sidebar-col); }

.leftframe-toggle {
    position: absolute;
    top: 18px;
    right: -11px;
    width: 26px;
    height: 26px;
    background: #1e1e1e;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #eeeeee;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.leftframe-toggle:hover { background: #2b2b2b; color: #ffffff; }
.leftframe-toggle svg { width: 11px; height: 11px; transition: transform 0.28s ease; }
.leftframe.collapsed .leftframe-toggle svg { transform: rotate(180deg); }

.leftframe-header {
    padding: 16px 10px 16px;
    flex-shrink: 0;
}
.leftframe-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.leftframe-logo img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}
.leftframe-logo-mark {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.01em;
}
.leftframe-title-wrap {
    overflow: hidden;
    transition: opacity 0.2s;
}
.leftframe-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.leftframe-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    margin-top: 1px;
}
.leftframe.collapsed .leftframe-header      { padding: 22px 0 16px; }
.leftframe.collapsed .leftframe-logo        { justify-content: center; }
.leftframe.collapsed .leftframe-title-wrap  { opacity: 0; width: 0; pointer-events: none; }

.leftframe-nav-section { flex: 1; padding: 2px 6px; }

.leftframe-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    padding: 0 8px;
    margin-bottom: 5px;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.leftframe.collapsed .leftframe-nav-title { opacity: 0; }

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

.leftframe-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    border: none;
}
.leftframe-btn .nav-icon,
.leftframe-btn img.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
    filter: invert(1);
    transition: opacity 0.15s;
    object-fit: contain;
}
.leftframe-btn span { transition: opacity 0.2s; }
.leftframe.collapsed .leftframe-btn {
    padding: 10px;
    justify-content: center;
    position: relative;
}
.leftframe.collapsed .leftframe-btn span {
    opacity: 0; width: 0; overflow: hidden; display: inline-block;
}

.leftframe-btn:hover              { background: rgba(255,255,255,0.08); color: #ffffff; }
.leftframe-btn:hover .nav-icon,
.leftframe-btn:hover img.nav-icon { opacity: 1; }
.leftframe-btn.active             { background: #ffffff; color: #111111; }
.leftframe-btn.active .nav-icon,
.leftframe-btn.active img.nav-icon { opacity: 1; filter: invert(0); }

.leftframe.collapsed .leftframe-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #111111;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.14s;
    z-index: 1000;
}
.leftframe.collapsed .leftframe-btn:hover::after { opacity: 1; }

.leftframe-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 10px;
}
.leftframe.collapsed .leftframe-divider { margin: 8px 6px; }

.leftframe-download-section { padding: 8px 10px; flex-shrink: 0; }
.leftframe-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    overflow: hidden;
}
.leftframe-download-btn:hover { background: var(--bg-hover); color: #111111; }
.leftframe-download-btn svg {
    flex-shrink: 0; width: 17px; height: 17px;
    opacity: 0.4; transition: opacity 0.15s;
}
.leftframe-download-btn:hover svg { opacity: 0.8; }
.leftframe-download-text { overflow: hidden; transition: opacity 0.2s; }
.leftframe-download-text span  {
    font-size: 0.82rem; font-weight: 700; color: #111111;
    white-space: nowrap; display: block;
}
.leftframe-download-text small {
    font-size: 0.68rem; color: var(--text-light);
    white-space: nowrap; display: block;
}
.leftframe.collapsed .leftframe-download-btn  { justify-content: center; padding: 11px; }
.leftframe.collapsed .leftframe-download-text { opacity: 0; width: 0; pointer-events: none; }

/* ================================================================
   FRAMES — shared layout shell
   ================================================================ */
.homeframe,
.createframe,
.productframe,
.editframe,
.paymentsframe,
.orderframe,
.securityframe {
    position: fixed;
    top: var(--nav-h);
    left: var(--sidebar-w);
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: #ffffff;
    padding: 40px 40px 110px;
    transition: left 0.28s ease;
}
body.leftframe-collapsed .homeframe,
body.leftframe-collapsed .createframe,
body.leftframe-collapsed .productframe,
body.leftframe-collapsed .editframe,
body.leftframe-collapsed .paymentsframe,
body.leftframe-collapsed .orderframe,
body.leftframe-collapsed .securityframe { left: var(--sidebar-col); }

.frame-hidden { display: none !important; }

.hidden { display: none !important; }

/* ── Shared typography tokens (same as Delvioo / CullyAI) ──────── */
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.section-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 540px;
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   HOMEFRAME — DASHBOARD GRID
   ================================================================ */
.homeframe {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    align-content: start;
}
.homeframe > footer {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.homeframe > #cultioo-footer {
    margin-left: calc(-1 * (var(--business-sidebar-w) + 40px));
    width: calc(100% + var(--business-sidebar-w) + 80px);
}

/* ── Dashboard card — styled like feature-card in Delvioo ─────── */
.dashboard-card,
.earnings-header,
.earnings-main,
.charts-section {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: none;
    transition: background 0.15s;
}
.dashboard-card  { padding: 32px 30px; }
.earnings-header { padding: 24px 30px; display: flex; align-items: center; }
.earnings-main   { padding: 32px 30px; }
.charts-section  { padding: 28px 30px; }

.dashboard-card:hover,
.earnings-header:hover,
.earnings-main:hover,
.charts-section:hover { background: var(--bg-hover); }

/* Card eyebrow — matches Delvioo hero-stat-label exactly */
.card-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.card-label img { width: 13px; height: 13px; opacity: 0.5; }

/* Card big number — matches Delvioo hero-stat-value exactly */
.card-value {
    font-size: 2.35rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
    margin-top: 2px;
}

/* Stagger entry animations */
.dashboard-animate { animation: fadeInUp 0.4s ease both; }
#viewsCard        { animation-delay: 0.04s; }
.earnings-header  { animation-delay: 0.08s; }
#favsCard         { animation-delay: 0.10s; }
.charts-section   { animation-delay: 0.13s; }
.earnings-main    { animation-delay: 0.16s; }
#topProductsCard  { animation-delay: 0.18s; }
#productsCard     { animation-delay: 0.22s; }
#ordersCard       { animation-delay: 0.26s; }
#revenueCard      { animation-delay: 0.30s; }
#monthlyGoalCard  { animation-delay: 0.34s; }

@keyframes valuePop {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
.value-updated { animation: valuePop 0.4s ease; }
#homeBalanceAmount {
    font-size: 3.2rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.05em;
    line-height: 1;
    display: block;
    margin-top: 4px;
}

/* Earnings header */
.earnings-header-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.earnings-header-title img { width: 22px; height: 22px; opacity: 0.6; }

/* Balance label */
.balance-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Top products */
.top-products-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* Earnings main inner elements */
.balance-wrap {
    margin-bottom: 24px;
}
.earnings-months-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.earnings-month-list {
    max-height: 180px;
    overflow-y: auto;
    width: 100%;
}

/* Progress circle */
.progress-circle-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 110px;
}
.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #111111;
    line-height: 1;
    pointer-events: none;
}
#mostVisitedTable { border-collapse: collapse; width: 100%; }
#mostVisitedTable th,
#mostVisitedTable td {
    padding: 9px 10px;
    text-align: left;
    font-size: 0.83rem;
    border-bottom: 1px solid var(--border);
}
#mostVisitedTable th {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}
#mostVisitedTable tbody tr:last-child td { border-bottom: none; }
#mostVisitedTable tbody tr { transition: background 0.12s; }
#mostVisitedTable tbody tr:hover { background: rgba(0,0,0,0.025); }

/* Chart label */
.chart-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.chart-label img { width: 14px; height: 14px; opacity: 0.5; }

/* ================================================================
   SHARED BUTTONS — same as Delvioo cta-primary / cta-secondary
   ================================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-primary:hover  { background: #333333; color: #ffffff; }
.btn-primary:active { opacity: 0.7; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: #111111;
    border: none;
    border-radius: var(--radius-btn);
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-secondary:hover  { background: var(--bg-hover); }
.btn-secondary:active { opacity: 0.7; }

/* Small modifier — pairs with btn-primary or btn-secondary */
.btn-sm {
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
    min-height: unset !important;
}

/* Ghost button — transparent, minimal weight for cancel/back actions */
.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: #888888; border: none; border-radius: 50px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.btn-ghost:hover  { background: rgba(0,0,0,0.06); color: #111111; }
.btn-ghost:active { opacity: 0.6; }

/* Chip button — compact, used in frame header secondary actions */
.btn-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.05); color: #666666; border: none; border-radius: 999px;
    padding: 9px 16px;
    font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-chip:hover   { background: rgba(0,0,0,0.10); color: #111111; }
.btn-chip:active  { opacity: 0.7; }
.btn-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-chip.active  { background: #111111; color: #ffffff; }

/* Bank account form input */
.pay-input {
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 11px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.15s;
    color: #111111;
}
.pay-input:focus { background: #ebebeb; }

/* Soft danger — light red for destructive inline actions */
.btn-soft-danger {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fef2f2; color: #dc2626; border: none; border-radius: 50px;
    padding: 9px 16px;
    font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.btn-soft-danger:hover  { background: #fee2e2; }
.btn-soft-danger:active { opacity: 0.7; }

/* ================================================================
   CREATE FRAME — wizard
   ================================================================ */
.createframe {
    display: none;
    animation: fadeInUp 0.3s ease;
}
.createframe-content { max-width: 780px; margin: 0 auto; }

/* ================================================================
   FRAME HEADINGS — shared across all frames
   ================================================================ */
.frame-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 8px 0;
}
.frame-subtitle {
    font-size: 1.06rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── Settings / Security card sections ── */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px 30px;
    margin-bottom: 14px;
    transition: background 0.15s;
    animation: fadeInUp 0.4s ease both;
}
.settings-card:hover { background: var(--bg-hover); }
.settings-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}
.settings-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}
.settings-input {
    width: 100%;
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 18px;
    color: #111111;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    padding: 13px 18px;
    transition: background 0.15s;
    display: block;
}
.settings-input:focus { background: var(--bg-card); }
.settings-input[readonly] { color: var(--text-muted); background: var(--bg-card); cursor: default; }
.settings-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.settings-grid-1 {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}
.settings-danger-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px 30px;
    margin-bottom: 14px;
    border: 1.5px solid rgba(239,68,68,0.2);
}
.settings-danger-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-danger:hover { background: #b91c1c; }
.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-success:hover { background: #047857; }

/* ── Payments frame form ── */
.payments-form-section {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px 30px;
    margin-top: 20px;
    animation: fadeInUp 0.3s ease both;
}
.payments-form-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}
.payments-type-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
}
.payments-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}
.payments-form-field {
    margin-bottom: 14px;
}
.payments-form-input {
    display: block;
    width: 100%;
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 18px;
    color: #111111;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    padding: 13px 18px;
    transition: background 0.15s;
}
.payments-form-input:focus { background: var(--bg-card); }
.iban-element-wrap {
    background: #ffffff;
    border-radius: 18px;
    padding: 13px 18px;
    margin-bottom: 14px;
    transition: background 0.15s;
}
.payments-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* ── Edit frame back button ── */
.editframe-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-btn);
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 24px;
}
.editframe-back-btn:hover { background: var(--bg-hover); color: #111111; }

/* ================================================================
   PRODUCT FRAME
   ================================================================ */
.productframe { animation: fadeInUp 0.3s ease; }
.productframe h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

/* ================================================================
   EDIT FRAME
   ================================================================ */
.editframe { animation: fadeInUp 0.3s ease; }
.editframe-content { max-width: 1100px; margin: 0 auto; }

.update-btn-animated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 13px 26px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.update-btn-animated:hover { background: #333333; }
.update-btn-animated .update-btn-icon {
    width: 17px; height: 17px; transition: transform 0.22s;
}
.update-btn-animated:hover .update-btn-icon { transform: rotate(90deg); }

.variant-switch-bar-modern {
    display: flex; gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-btn);
    padding: 4px;
}
.variant-switch-btn-modern {
    border: none; border-radius: var(--radius-btn);
    padding: 8px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem; font-weight: 700;
    cursor: pointer;
    background: transparent; color: #888888;
    transition: background 0.15s, color 0.15s;
}
.variant-switch-btn-modern:not(.active):hover { background: rgba(0,0,0,0.05); color: #111111; }
.variant-switch-btn-modern.active { background: #111111; color: #ffffff; }

.delete-variant-btn {
    background: var(--bg-card); border: none;
    border-radius: 50%; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s;
}
.delete-variant-btn:hover { background: #fee2e2; }
.delete-variant-btn img { width: 14px; height: 14px; opacity: 0.4; }
.delete-variant-btn:hover img { opacity: 1; }

/* ================================================================
   PAYMENTS FRAME
   ================================================================ */
.paymentsframe { animation: fadeInUp 0.3s ease; }
.paymentsframe h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700; color: #111111;
    letter-spacing: -0.03em; margin-bottom: 8px;
}

#paymentMethodsList { display: flex; flex-direction: column; gap: 10px; }
#paymentMethodsList > div {
    background: var(--bg-card); border-radius: 20px;
    padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center;
    animation: fadeInUp 0.3s ease both;
    transition: background 0.15s;
}
#paymentMethodsList > div:hover              { background: var(--bg-hover); }
#paymentMethodsList > div:nth-child(1) { animation-delay: 0.06s; }
#paymentMethodsList > div:nth-child(2) { animation-delay: 0.10s; }
#paymentMethodsList > div:nth-child(3) { animation-delay: 0.14s; }

#addPaymentBtn, #paymentMethodsList button {
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem; font-weight: 700;
    cursor: pointer; border: none;
    border-radius: var(--radius-btn); padding: 11px 22px;
    transition: background 0.15s;
}
#addPaymentBtn       { background: #111111; color: #ffffff; margin-top: 14px; }
#addPaymentBtn:hover { background: #333333; }
#paymentMethodsList button:hover { opacity: 0.7; }

#addPaymentSection {
    margin-top: 22px; background: var(--bg-card);
    border-radius: var(--radius-card); padding: 28px;
}
#addPaymentSection h3 {
    font-size: 1.1rem; font-weight: 700; color: #111111;
    letter-spacing: -0.02em; margin-bottom: 16px;
}

.payment-type-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem; font-weight: 700;
    cursor: pointer; border-radius: var(--radius-btn);
    padding: 10px 20px; transition: background 0.15s, color 0.15s;
}
.payment-type-btn.active { background: #111111 !important; color: #ffffff !important; border-color: transparent !important; }

#cardForm, #sepaForm, #achForm { display: flex; flex-direction: column; gap: 14px; }
#cardForm label, #sepaForm label, #achForm label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-light);
}
#cardForm input, #sepaForm input, #achForm input, #achForm select {
    width: 100%; background: #ffffff; border: none; outline: none;
    border-radius: 18px; color: #111111;
    font-family: 'Poppins', sans-serif; font-size: 0.93rem;
    padding: 13px 18px; transition: background 0.15s;
}
#cardForm input:focus, #sepaForm input:focus,
#achForm input:focus, #achForm select:focus { background: var(--bg-card); }
#card-element, #iban-element { background: #ffffff; border-radius: 18px; padding: 13px 18px; }
#card-errors, #iban-errors, #ach-errors { color: #dc2626; font-size: 0.83rem; }

#cardForm button, #sepaForm button, #achForm button {
    font-family: 'Poppins', sans-serif; font-size: 0.86rem; font-weight: 700;
    border: none; border-radius: var(--radius-btn); padding: 12px 22px;
    cursor: pointer; transition: background 0.15s; align-self: flex-start;
}
#cardForm button[type="submit"],
#sepaForm button[type="submit"],
#achForm button[type="submit"]        { background: #111111; color: #ffffff; }
#cardForm button[type="submit"]:hover,
#sepaForm button[type="submit"]:hover,
#achForm button[type="submit"]:hover  { background: #333333; }
#cardForm button[type="button"],
#sepaForm button[type="button"],
#achForm button[type="button"]        { background: var(--bg-card); color: #111111; }
#cardForm button[type="button"]:hover,
#sepaForm button[type="button"]:hover,
#achForm button[type="button"]:hover  { background: var(--bg-hover); }

.delete-payment {
    background: #fee2e2; color: #dc2626;
    border: none; border-radius: var(--radius-btn);
    padding: 7px 16px;
    font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.delete-payment:hover { background: #fecaca; }

/* ================================================================
   PAYMENTS FRAME — Minimalist / Trade Republic style
   ================================================================ */
.pay-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.pay-source-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: #666666;
}

.pay-source-main {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pay-source-main.ok {
    background: #ecfdf3;
    color: #166534;
}

.pay-source-main.warn {
    background: #fff7ed;
    color: #9a3412;
}

.pay-source-time {
    color: #7a7a7a;
    margin-right: 2px;
}

.pay-source-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pay-source-badge.ok {
    background: #f2f8ff;
    color: #1d4ed8;
}

.pay-source-badge.warn {
    background: #fef3c7;
    color: #92400e;
}

/* ── Stats strip ──────────────────────────────────────── */
.pay-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 6px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.pay-stat-card {
    padding: 24px 0;
    padding-right: 28px;
}
.pay-stat-card + .pay-stat-card {
    border-left: 1px solid #f0f0f0;
    padding-left: 28px;
    padding-right: 0;
}
.pay-stat-card:not(:last-child) { padding-right: 28px; }
.pay-stat-card span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888888;
    display: block;
}
.pay-stat-card strong {
    margin-top: 10px;
    display: block;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    color: #111111;
    letter-spacing: -0.04em;
    font-weight: 700;
    line-height: 1.05;
}
.pay-stat-card.warn strong { color: #111111; }

/* ── Panel card container ──────────────────────────────── */
.pay-schedule-card,
.pay-panel-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f0f0f0;
}

.pay-muted {
    font-size: 0.875rem;
    color: #888888;
}

/* ── Quick actions ─────────────────────────────────────── */
.pay-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pay-quick-actions .btn-secondary {
    padding: 10px 18px;
    font-size: 0.84rem;
}

.pay-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.01em;
}

/* ── Stripe card element ──────────────────────────── */
.pay-card-field-wrap {
    background: #f5f5f5;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 12px;
}
.pay-stripe-element { min-height: 24px; }
.pay-card-error {
    font-size: 0.8rem;
    color: #dc2626;
    min-height: 16px;
    margin-top: 6px;
}
/* ─────────────────────────────────────────────────── */

.pay-schedule-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pay-schedule-actions,
.pay-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pay-select {
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 11px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.15s;
}
.pay-select:focus { background: #ebebeb; }

.pay-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    scrollbar-width: none;
}
.pay-tabs::-webkit-scrollbar { display: none; }
.pay-tab {
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #888888;
    padding: 13px 18px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-family: 'Poppins', sans-serif;
}
.pay-tab.active {
    color: #111111;
    border-bottom-color: #111111;
    background: transparent;
}
.pay-tab:hover { color: #333333; }

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

.pay-list,
.pay-methods-list,
.pay-payout-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
}
.pay-list-item,
.pay-method-item,
.pay-payout-item {
    background: transparent;
    border-radius: 0;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.pay-list-item:last-child,
.pay-method-item:last-child,
.pay-payout-item:last-child { border-bottom: none; }
.pay-list-item strong { font-size: 0.9rem; color: #111111; font-weight: 700; }
.pay-list-item span   { font-size: 0.85rem; color: #777777; }
.pay-method-copy,
.pay-payout-item > div { display: flex; flex-direction: column; gap: 2px; }
.pay-empty {
    padding: 28px 0;
    color: #aaaaaa;
    font-size: 0.875rem;
    text-align: center;
}

.pay-status {
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.pay-status.completed, .pay-status.paid { background: #f0fdf4; color: #16a34a; }
.pay-status.pending  { background: #fffbeb; color: #b45309; }
.pay-status.failed   { background: #fef2f2; color: #dc2626; }

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

.pay-form-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pay-form-grid label { display: flex; flex-direction: column; gap: 6px; }
.pay-form-grid label > span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #888888;
}
.pay-form-grid input,
.pay-form-grid select {
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.15s;
    color: #111111;
}
.pay-form-grid input:focus,
.pay-form-grid select:focus { background: #ebebeb; }

.pay-wallet-topup-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pay-wallet-topup-row input {
    flex: 1;
    min-width: 0;
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.15s;
    color: #111111;
}
.pay-wallet-topup-row input:focus { background: #ebebeb; }
.pay-wallet-topup-row .btn-primary {
    padding: 12px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Currency input widget — shared style */
input[data-currency-init] {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111111;
}
input[data-currency-init]::placeholder {
    font-weight: 400;
    color: #aaaaaa;
    letter-spacing: 0;
}

/* ---- Payout Schedule ---- */
.pay-schedule-options {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pay-schedule-option {
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex: none;
}
.pay-schedule-option:hover { background: #ebebeb; }
.pay-schedule-option.active { background: #111111; color: #ffffff; }
.pay-schedule-option .sched-title {
    font-weight: 700;
    font-size: 0.88rem;
    display: block;
}
.pay-schedule-option .sched-sub {
    font-size: 0.72rem;
    color: #888888;
    display: block;
    margin-top: 2px;
}
.pay-schedule-option.active .sched-sub { color: #aaaaaa; }

/* ---- Wallet Tab ---- */
.pay-wallet-big {
    text-align: center;
    padding: 36px 0 20px;
}
.pay-wallet-big .wallet-amount {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #111111;
    line-height: 1;
    letter-spacing: -0.05em;
}
.pay-wallet-big .wallet-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888888;
    margin-top: 12px;
}
.pay-wallet-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}
.pay-tx-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
}
.pay-tx-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    background: transparent;
    border-radius: 0;
}
.pay-tx-row:last-child { border-bottom: none; }
.pay-tx-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.pay-tx-icon.earning { background: #f0fdf4; color: #16a34a; }
.pay-tx-icon.payout  { background: #fef2f2; color: #dc2626; }
.pay-tx-icon.topup   { background: #eff6ff; color: #2563eb; }
.pay-tx-body { flex: 1; min-width: 0; }
.pay-tx-body strong { font-size: 0.9rem; color: #111111; display: block; font-weight: 700; }
.pay-tx-body span   { font-size: 0.8rem; color: #888888; }
.pay-tx-amount { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.pay-tx-amount.pos { color: #16a34a; }
.pay-tx-amount.neg { color: #dc2626; }

/* ---- Pending Shipping ---- */
.pay-shipping-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    background: transparent;
    border-radius: 0;
}
.pay-shipping-row:last-child { border-bottom: none; }
.pay-shipping-body { flex: 1; min-width: 0; }
.pay-shipping-body strong { font-size: 0.9rem; color: #111111; display: block; font-weight: 700; }
.pay-shipping-body span   { font-size: 0.8rem; color: #888888; }

/* ---- History Sub-Tabs ---- */
.pay-subtabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}
.pay-subtab {
    flex: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 11px 16px;
    margin-bottom: -1px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888888;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    font-family: 'Poppins', sans-serif;
}
.pay-subtab.active { color: #111111; border-bottom-color: #111111; }
.pay-subtab:hover  { color: #333333; }

/* ---- Payout Sheet content styles (used inside TradeRepublicBottomSheet) ---- */
@keyframes bsSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0);    }
}
.pay-modal-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    font-size: 0.9rem;
    color: #555555;
    border-bottom: 1px solid #f5f5f5;
}
.pay-modal-fee-row:last-of-type { border-bottom: none; }
.pay-modal-fee-row.fee-red strong { color: #dc2626; }
.pay-modal-select {
    width: 100%;
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin: 14px 0 0;
    outline: none;
    transition: background 0.15s;
}
.pay-modal-select:focus { background: #ebebeb; }

/* ---- Method Type Toggle ---- */
/* ── Bank account section ────────────────────────────────── */
.pay-bank-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}
.pay-limit-pill {
    flex-shrink: 0;
    background: #111111;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 4px 11px;
    margin-top: 3px;
}

/* Segment control (ACH / SEPA) */
.pay-seg-control {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 4px;
}
.pay-seg-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: #777777;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}
.pay-seg-btn.active {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 1px 6px rgba(0,0,0,0.09);
}

/* Field stack */
.pay-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pay-fields-stack.hidden { display: none; }
.pay-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pay-field-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pay-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #888888;
}
.pay-field-input {
    border: none;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: background 0.15s;
    width: 100%;
    box-sizing: border-box;
    color: #111111;
}
.pay-field-input:focus { background: #ebebeb; }
.pay-field-input::placeholder { color: #aaaaaa; }
.pay-iban-input { letter-spacing: 0.05em; text-transform: uppercase; }

/* Password reveal */
.pay-field-reveal-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pay-field-reveal-wrap .pay-field-input { padding-right: 44px; }
.pay-field-reveal-btn {
    position: absolute;
    right: 13px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaaaaa;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.pay-field-reveal-btn:hover { color: #111111; }

/* Checking / Savings mini-toggle */
.pay-acct-type-toggle {
    display: flex;
    gap: 3px;
    background: #f0f0f0;
    border-radius: 12px;
    padding: 3px;
    height: 44px;
    box-sizing: border-box;
    align-items: center;
}
.pay-acct-type-btn {
    flex: 1;
    border: none;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #888888;
    background: transparent;
    cursor: pointer;
    height: 100%;
    transition: background 0.15s, color 0.15s;
}
.pay-acct-type-btn.active {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 1px 4px rgba(0,0,0,0.09);
}

/* Connected bank card */
.pay-connected-bank-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0f0f0;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 14px;
}
.pay-connected-bank-icon {
    width: 42px;
    height: 42px;
    background: #111111;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.pay-connected-bank-info { flex: 1; min-width: 0; }
.pay-connected-bank-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111111;
}
.pay-connected-bank-info span { font-size: 0.8rem; color: #777777; }
/* ─────────────────────────────────────────────────────────── */

/* Legacy selectors kept for safety */
.pay-method-type-toggle { display: none; }
.pay-sepa-form { display: none; }
.pay-ach-form  { display: none; }



/* ================================================================
   ORDER FRAME
   ================================================================ */
.orderframe { animation: fadeInUp 0.3s ease; }
.orderframe h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700; color: #111111;
    letter-spacing: -0.03em; margin-bottom: 24px;
}

.order-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px 22px;
    margin-bottom: 10px;
    transition: background 0.15s;
    animation: fadeInUp 0.3s ease both;
}
.order-card:hover         { background: var(--bg-hover); }
.order-card.order-success { border-left: 3px solid #22c55e; }
.order-card.order-pending { border-left: 3px solid #f59e0b; }
.order-card.order-failed  { border-left: 3px solid #ef4444; }

.order-status-badge {
    display: inline-block;
    font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.09em; text-transform: uppercase;
    border-radius: var(--radius-btn); padding: 4px 12px;
}
.order-status-badge.success { background: #dcfce7; color: #16a34a; }
.order-status-badge.pending { background: #fef3c7; color: #d97706; }
.order-status-badge.failed  { background: #fee2e2; color: #dc2626; }

.order-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.order-action-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    border: none; border-radius: var(--radius-btn);
    padding: 9px 20px; cursor: pointer;
    background: #111111; color: #ffffff;
    transition: background 0.15s;
}
.order-action-btn:hover           { background: #333333; }
.order-action-btn.secondary       { background: var(--bg-card); color: #111111; }
.order-action-btn.secondary:hover { background: var(--bg-hover); }

.order-details-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    border: none; border-radius: var(--radius-btn);
    padding: 9px 20px; cursor: pointer;
    background: #111111; color: #ffffff;
    transition: background 0.15s;
}
.order-details-btn:hover { background: #333333; }

.order-info-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}
.order-modal-content {
    background: #ffffff; border-radius: 28px;
    padding: 36px; max-width: 520px; width: 92%;
    animation: scaleIn 0.2s ease;
}
.order-modal-content h2 {
    font-size: 1.3rem; font-weight: 700; color: #111111;
    letter-spacing: -0.025em; margin-bottom: 20px;
}
.close-order-modal-btn {
    font-family: 'Poppins', sans-serif;
    border: none; border-radius: var(--radius-btn);
    padding: 10px 22px; background: var(--bg-card); color: #111111;
    font-size: 0.86rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.close-order-modal-btn:hover { background: var(--bg-hover); }

/* ================================================================
   ORDERS — Extended Components
   ================================================================ */

/* Card top row + badges */
.biz-order-card--needs-info { border-left-color: #ff9500; }
.biz-order-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.biz-order-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.biz-order-card-items { font-size: 0.78rem; color: #777; margin: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-order-badge-delvioo { display: inline-block; background: #eef2ff; color: #3730a3; border-radius: 6px; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.biz-order-badge-pinned { display: inline-block; font-size: 0.75rem; }

/* Status badge variants */
.biz-order-status-badge { display: inline-block; border-radius: 6px; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.biz-order-status-badge--pending   { background: #fff7ed; color: #c2410c; }
.biz-order-status-badge--accepted  { background: #fefce8; color: #854d0e; }
.biz-order-status-badge--ready     { background: #eff6ff; color: #1d4ed8; }
.biz-order-status-badge--done      { background: #f0fdf4; color: #15803d; }
.biz-order-status-badge--cancelled { background: #fef2f2; color: #b91c1c; }
.biz-order-status-badge--default   { background: #f5f5f5; color: #666; }

/* Orders grid */
.biz-orders-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px)  { .biz-orders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .biz-orders-grid { grid-template-columns: repeat(3, 1fr); } }

/* Orders empty state */
.biz-orders-empty { text-align: center; padding: 60px 20px; }
.biz-orders-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.biz-orders-empty-title { font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 6px; }
.biz-orders-empty-sub { font-size: 0.85rem; color: #999; }

/* Modal generic section */
.biz-order-section { padding: 18px 0; border-top: 1px solid #f0f0f0; }
.biz-order-section:first-child { border-top: none; padding-top: 0; }
.biz-order-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #999; margin-bottom: 12px; }

/* Modal stats strip */
.biz-order-modal-stats { display: flex; gap: 0; border: 1px solid #f0f0f0; border-radius: 14px; overflow: hidden; margin-bottom: 4px; }
.biz-order-modal-stat { flex: 1; padding: 11px 14px; border-right: 1px solid #f0f0f0; display: flex; flex-direction: column; gap: 2px; }
.biz-order-modal-stat:last-child { border-right: none; }
.biz-order-modal-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: #999; font-weight: 600; }
.biz-order-modal-stat-value { font-size: 0.9rem; font-weight: 700; color: #111; }

/* Progress bar */
.biz-order-progress { padding: 16px 0 20px; }
.biz-order-progress-track { display: flex; align-items: center; }
.biz-order-progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.biz-order-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0e0e0; flex-shrink: 0; transition: all 0.2s; }
.biz-order-progress-dot.done   { background: #111; }
.biz-order-progress-dot.active { background: #111; box-shadow: 0 0 0 4px rgba(17,17,17,0.12); }
.biz-order-progress-label { font-size: 0.62rem; color: #bbb; text-align: center; white-space: nowrap; font-weight: 500; transition: color 0.2s; }
.biz-order-progress-label.lit { color: #111; font-weight: 700; }
.biz-order-progress-line { flex: 1; height: 2px; background: #e0e0e0; transition: background 0.2s; }
.biz-order-progress-line.done { background: #111; }

/* Security code */
.biz-security-code-box { background: #f8f8f8; border-radius: 16px; padding: 24px; text-align: center; }
.biz-security-code-label { font-size: 0.78rem; color: #999; font-weight: 500; margin-bottom: 10px; }
.biz-security-code-value { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.25em; font-family: 'SF Mono', 'Fira Mono', monospace; color: #111; }

/* Waiting for buyer card */
.biz-waiting-card { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #a7f3d0; border-radius: 16px; padding: 22px; text-align: center; }
.biz-waiting-card-icon { font-size: 2.2rem; margin-bottom: 10px; }
.biz-waiting-card-title { font-weight: 700; font-size: 0.95rem; color: #047857; margin-bottom: 4px; }
.biz-waiting-card-sub { font-size: 0.82rem; color: #059669; }

/* Delvioo toggle row */
.biz-delvioo-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #f7f7f7; border-radius: 16px; border: 1.5px solid rgba(0,0,0,0.07); }
.biz-delvioo-toggle-info { display: flex; flex-direction: column; gap: 4px; }
.biz-delvioo-toggle-title { font-weight: 700; font-size: 0.9rem; color: #111; }
.biz-delvioo-toggle-sub { font-size: 0.78rem; color: #888; line-height: 1.4; }
.biz-delvioo-switch-btn {
    font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 700;
    background: rgba(0,0,0,0.07); color: #666666; border: none; border-radius: 50px;
    padding: 10px 18px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background 0.16s, color 0.16s;
}
.biz-delvioo-switch-btn:hover { background: rgba(0,0,0,0.12); color: #111111; }
.biz-delvioo-switch-btn--enable { background: #111111; color: #ffffff; }
.biz-delvioo-switch-btn--enable:hover { background: #333333; }

/* Driver card */
.biz-driver-card { background: #f8f8f8; border-radius: 14px; padding: 4px 14px; }
.biz-driver-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.biz-driver-row:last-child { border-bottom: none; }
.biz-driver-label { font-size: 0.78rem; color: #999; font-weight: 500; }
.biz-driver-value { font-size: 0.85rem; color: #111; font-weight: 600; text-align: right; }
.biz-plate-country { display: inline-block; background: #111; color: #fff; border-radius: 3px; padding: 1px 5px; font-size: 0.68rem; font-weight: 700; margin-right: 4px; }

/* Live location */
.biz-location-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 rgba(52,199,89,0.4); animation: loc-pulse 2s infinite; margin-right: 6px; vertical-align: middle; }
@keyframes loc-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.4); } 70% { box-shadow: 0 0 0 8px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
.biz-location-card { background: #111; color: #fff; border-radius: 14px; padding: 16px; }
.biz-location-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.biz-location-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.biz-location-value { font-size: 0.83rem; color: #fff; font-weight: 600; text-align: right; }

/* Contact section */
.biz-contact-cards { display: flex; flex-direction: column; gap: 12px; }
.biz-contact-card { background: #f8f8f8; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.biz-contact-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.biz-contact-card-name { font-weight: 600; font-size: 0.9rem; color: #111; }
.biz-contact-card-detail { font-size: 0.78rem; color: #666; }
.biz-contact-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.biz-contact-btn { padding: 8px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; border: 1px solid #e0e0e0; background: #fff; cursor: pointer; color: #111; text-decoration: none; display: inline-flex; align-items: center; transition: background 0.12s; }
.biz-contact-btn:hover { background: #f0f0f0; }
.biz-contact-btn--primary { background: #111; color: #fff; border-color: #111; }
.biz-contact-btn--primary:hover { background: #333; }

/* Info list */
.biz-order-info-list { display: flex; flex-direction: column; }
.biz-order-info-value { font-size: 0.85rem; font-weight: 600; color: #111; text-align: right; word-break: break-word; max-width: 60%; }
.biz-order-info-pending { padding: 12px 14px; background: #fafafa; border-radius: 12px; font-size: 0.82rem; color: #999; text-align: center; }

/* Seller info form (modal) */
.biz-form-label { font-size: 0.8rem; font-weight: 600; color: #666; }
.biz-form-input { font-family: 'Poppins', sans-serif; font-size: 0.88rem; border: 1px solid #e0e0e0; border-radius: 12px; padding: 11px 14px; color: #111; background: #fff; outline: none; width: 100%; transition: border-color 0.15s; }
.biz-form-input:focus { border-color: #111; }
textarea.biz-form-input { resize: vertical; min-height: 80px; }

/* Message dialog now uses TradeRepublicBottomSheet */

/* Business Orders CSS */
.biz-orders-shell {
    padding: 32px;
    max-width: 1280px;
    margin: 0 auto;
}
.biz-orders-head {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px;
    gap: 20px;
}
.biz-orders-head > div:first-child { flex: 1; }
.biz-orders-head-actions { display: flex; gap: 10px; align-items: center; }

.biz-orders-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 28px;
}
.biz-orders-stat-card {
    background: #f7f7f7;
    border-radius: 24px;
    padding: 24px 22px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}
.biz-orders-stat-card:hover { background: #f0f0f0; transform: translateY(-1px); }
.biz-orders-stat-card--accent { background: #111111; color: #ffffff; }
.biz-orders-stat-card--accent:hover { background: #222222; }
.biz-orders-stat-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.55; margin-bottom: 0; }
.biz-orders-stat-value { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

.biz-orders-filters { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.biz-orders-filter-btn {
    font-family: 'Poppins', sans-serif; font-size: 0.86rem; font-weight: 600;
    background: #f4f4f4; color: #777777; border: none; border-radius: 999px;
    padding: 12px 18px; cursor: pointer; transition: all 0.18s ease; position: relative;
}
.biz-orders-filter-btn:hover { background: #ececec; color: #111111; }
.biz-orders-filter-btn.active { background: #111111; color: #ffffff; font-weight: 700; }
.biz-filter-badge {
    display: inline-block; background: #ff3b30; color: #ffffff;
    border-radius: 10px; font-size: 0.65rem; font-weight: 700;
    padding: 2px 6px; margin-left: 4px;
}

.biz-orders-banner { display: none; padding: 16px; background: #fff3cd; border-radius: 12px; margin-bottom: 20px; color: #666; }
.biz-orders-banner.hidden { display: none; }

.biz-orders-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
.products-empty { text-align: center; padding: 40px 20px; color: #999; font-size: 0.95rem; }

.biz-order-card {
    background: #f7f7f7; border-radius: 28px; padding: 22px;
    display: flex; flex-direction: column; gap: 12px; cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; border-left: 4px solid transparent;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.biz-order-card:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0,0,0,0.06); }
.biz-order-card--unread {
    box-shadow: 0 0 0 1px rgba(17,17,17,0.05), 0 18px 34px rgba(0,0,0,0.05);
}
.biz-order-card--unread .biz-order-card-customer { color: #000; }
.biz-order-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.biz-order-card-customer { font-weight: 700; font-size: 1rem; color: #111; letter-spacing: -0.02em; }
.biz-order-card-meta { font-size: 0.8rem; color: #999; margin-top: 4px; }
.biz-order-card-amount { font-weight: 700; font-size: 1.28rem; color: #111; text-align: right; letter-spacing: -0.03em; }
.biz-order-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.biz-order-badge-new {
    display: inline-block; background: #111111; color: #ffffff;
    border-radius: 999px; font-size: 0.63rem; font-weight: 700;
    padding: 5px 10px; text-transform: uppercase; letter-spacing: 0.1em;
}
.biz-order-badge-warning {
    display: inline-block; background: #ff9500; color: #ffffff;
    border-radius: 999px; font-size: 0.63rem; font-weight: 700;
    padding: 5px 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.biz-order-status-badge {
    display: inline-block; border-radius: 6px; font-size: 0.65rem; font-weight: 700;
    padding: 3px 8px; text-transform: capitalize; color: inherit;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.biz-order-status-badge.biz-order-status-badge--pending   { color: #c2410c; }
.biz-order-status-badge.biz-order-status-badge--accepted  { color: #854d0e; }
.biz-order-status-badge.biz-order-status-badge--ready     { color: #1d4ed8; }
.biz-order-status-badge.biz-order-status-badge--done      { color: #15803d; }
.biz-order-status-badge.biz-order-status-badge--cancelled { color: #b91c1c; }
.biz-order-status-badge.biz-order-status-badge--default   { color: #666666; }

.biz-order-details-btn {
    padding: 6px 14px; font-size: 0.8rem; font-weight: 700; background: #111; color: #fff;
    border: none; border-radius: 6px; cursor: pointer; transition: all 0.15s;
}
.biz-order-details-btn:hover { background: #333; }

/* Order Modal */
.biz-orders-modal { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; z-index: 5000; }
.biz-orders-modal.hidden { display: none; }
.biz-orders-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.48); backdrop-filter: blur(4px); }
.biz-orders-modal-card {
    position: relative; background: #ffffff; border-radius: 32px 32px 0 0; width: 100%;
    max-width: min(980px, calc(100% - 32px)); margin: 0 16px; max-height: 92vh; overflow-y: auto; z-index: 1;
    animation: bsSlideUp 0.32s cubic-bezier(0.32,0.72,0,1);
    box-shadow: 0 -24px 60px rgba(0,0,0,0.18);
}
.biz-orders-modal-head {
    padding: 18px 28px 22px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: flex-start;
}
.biz-orders-modal-card::before {
    content: none;
    display: none;
}
.biz-orders-modal-head > div:first-child { flex: 1; }
.biz-orders-modal-kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #999; margin-bottom: 4px; }
.biz-orders-modal-title { font-size: 1.5rem; font-weight: 800; color: #111; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.biz-orders-modal-subtitle { font-size: 0.85rem; color: #666; }
.biz-orders-modal-close {
    background: none; border: none; font-size: 24px; color: #999; cursor: pointer;
    transition: color 0.15s; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.biz-orders-modal-close:hover { color: #111; }

.biz-orders-modal-body { padding: 28px; }
.biz-order-modal-tab-nav { 
    display: flex; gap: 12px; padding: 12px 24px; border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px; flex-wrap: wrap;
}
.biz-order-modal-tab-btn {
    background: none; border: none; font-family: 'Poppins', sans-serif;
    font-size: 0.9rem; font-weight: 300; color: #666; cursor: pointer;
    padding: 8px 12px; border-bottom: 2px solid transparent; transition: all 0.15s;
}
.biz-order-modal-tab-btn:hover { color: #111; }
.biz-order-modal-tab-btn.active { color: #111; font-weight: 700; border-bottom-color: #111; }
.biz-order-modal-tabs { display: grid; grid-template-columns: 1fr; }
.biz-order-modal-tab { display: none; }
.biz-order-modal-tab.active { display: block; }
.biz-order-modal-section { margin-bottom: 0; }
.biz-order-modal-section-title { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }

.biz-order-items-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.biz-order-item {
    background: var(--bg-card); border-radius: 12px; padding: 12px;
    display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.biz-order-item-name { font-weight: 700; font-size: 0.9rem; }
.biz-order-item-meta { font-size: 0.75rem; color: #666; display: flex; gap: 8px; margin-top: 2px; }
.biz-order-item-price { font-weight: 700; font-size: 0.95rem; text-align: right; }

.biz-order-info-display { margin-bottom: 16px; }
.biz-order-info-row {
    display: grid; grid-template-columns: 140px 1fr; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: center;
}
.biz-order-info-row:last-child { border-bottom: none; }
.biz-order-info-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #999; }

.biz-order-info-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.biz-form-group { display: grid; grid-template-columns: 1fr; gap: 8px; }
.biz-form-group label { font-size: 0.85rem; font-weight: 700; color: #111; }
.biz-form-group input,
.biz-form-group textarea {
    font-family: 'Poppins', sans-serif; font-size: 0.9rem; border: 1px solid #e0e0e0;
    border-radius: 12px; padding: 12px; color: #111; background: #ffffff;
    transition: border-color 0.15s;
}
.biz-form-group input:focus,
.biz-form-group textarea:focus { outline: none; border-color: #111; }
.biz-form-group textarea { resize: vertical; min-height: 80px; }

.biz-delvioo-section { display: grid; grid-template-columns: 1fr; gap: 16px; }
.biz-delvioo-status { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 16px; background: var(--bg-card); border-radius: 12px; }
.biz-delvioo-label { font-weight: 700; font-size: 0.9rem; }
.biz-delvioo-value { font-size: 0.9rem; color: #111; }

.biz-driver-info { display: grid; grid-template-columns: 1fr; gap: 0; }
.biz-driver-info-row {
    display: grid; grid-template-columns: 140px 1fr; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: center;
}
.biz-driver-info-row:last-child { border-bottom: none; }
.biz-driver-info-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #999; }

@media (max-width: 900px) {
    .biz-orders-shell { padding: 24px 20px 32px; }
    .biz-orders-head { flex-direction: column; align-items: stretch; margin-bottom: 28px; }
    .biz-orders-head-actions { width: 100%; }
    .biz-orders-head-actions > * { flex: 1; }
}

@media (max-width: 640px) {
    .biz-orders-shell { padding: 20px 16px 28px; }
    .biz-orders-stat-card { border-radius: 22px; padding: 22px 18px; }
    .biz-order-card { border-radius: 24px; padding: 18px; }
    .biz-order-card-amount { font-size: 1.15rem; }
    .biz-orders-modal-card { max-width: calc(100% - 20px); margin: 0 10px; border-radius: 28px 28px 0 0; }
    .biz-orders-modal-head { padding: 16px 20px 18px; }
    .biz-orders-modal-body { padding: 20px; }
    .biz-message-sheet { width: calc(100% - 20px); margin: 0 10px; }
}

/* ================================================================
   SECURITY FRAME
   ================================================================ */
.securityframe { animation: fadeInUp 0.3s ease; }
.securityframe h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700; color: #111111;
    letter-spacing: -0.03em; margin-bottom: 24px;
}

/* ================================================================
   MISC
   ================================================================ */
.upload-product-btn {
    font-family: 'Poppins', sans-serif;
    border: none; border-radius: var(--radius-btn);
    padding: 11px 24px;
    font-size: 0.86rem; font-weight: 700;
    cursor: pointer; background: #111111; color: #ffffff;
    transition: background 0.15s;
}
.upload-product-btn:hover { background: #333333; }

.dashboard-section {
    background: var(--bg-card);
    border-radius: var(--radius-card); padding: 24px;
    transition: background 0.15s;
}
.dashboard-section:hover { background: var(--bg-hover); }

.desc-counter .desc-count       { font-size: 0.78rem; color: #aaaaaa; }
.desc-counter .desc-count.limit { color: #dc2626; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    min-height: 72px;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 34px;
    font-size: 0.84rem;
    color: var(--text-light);
    z-index: 500;
    backdrop-filter: blur(12px);
    transition: left 0.28s ease;
}
body.leftframe-collapsed .site-footer { left: var(--sidebar-col); }
.site-footer a { color: var(--text-light); transition: color 0.15s; }
.site-footer a:hover { color: #111111; }

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    line-height: 1.2;
}
.footer-links a {
    font-size: 0.86rem;
    font-weight: 500;
    color: #a8a8a8;
}

.footer-lang {
    flex-shrink: 0;
}
#lang-select {
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 9px 34px 9px 14px;
    border: none;
    border-radius: 50px;
    background: #f4f4f4;
    color: #111111;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
#lang-select:hover { background: #ebebeb; }

.footer-copy {
    font-size: 0.8rem;
    color: #bcbcbc;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1300px) {
    .homeframe { grid-template-columns: 1fr 1.6fr 1fr; }
}
@media (max-width: 1000px) {
    .homeframe { grid-template-columns: 1fr 1fr; }
    .earnings-main { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .leftframe {
        transform: translateX(-100%);
        width: var(--sidebar-w) !important;
        z-index: 900;
        transition: transform 0.28s ease;
    }
    .leftframe.mobile-open { transform: translateX(0); }
    .topbar--leftframe-style { left: 0 !important; }
    .topbar {
        padding: 0 12px;
    }

    .topbar-links {
        display: none;
    }

    .header h1 {
        font-size: 1.25rem;
    }
    .topbar-buttons {
        gap: 4px;
    }
    .icon-btn {
        width: 34px;
        height: 34px;
    }
    .icon-btn img {
        width: 18px;
        height: 18px;
    }
    .auth-link-btn {
        padding: 8px 12px;
        font-size: 0.76rem;
    }
    .homeframe,
    .createframe,
    .productframe,
    .editframe,
    .paymentsframe,
    .orderframe,
    .securityframe { left: 0 !important; padding: 20px 18px 130px; }
    .site-footer {
        left: 0 !important;
        min-height: auto;
        padding: 12px 16px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .footer-links {
        justify-content: center;
        gap: 10px 14px;
    }
    .footer-copy {
        text-align: center;
        white-space: normal;
    }
    .homeframe { grid-template-columns: 1fr 1fr; gap: 10px; }
    .earnings-main { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .homeframe { grid-template-columns: 1fr; }
    .auth-link-btn {
        display: none;
    }
    .header h1 {
        font-size: 1.08rem;
    }
}

/* ================================================================
   BUSINESS SIDEBAR (NEW FROM SCRATCH)
   ================================================================ */
:root {
    --business-sidebar-w: 244px;
}

.business-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--business-sidebar-w);
    background: #111111;
    color: #ffffff;
    padding: 18px 12px;
    z-index: 850;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.business-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.business-sidebar-brand:hover {
    background: rgba(255,255,255,0.09);
}

.business-sidebar-brand:focus-visible {
    outline: 2px solid rgba(255,255,255,0.22);
    outline-offset: 2px;
}

.business-sidebar-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.business-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-sidebar-avatar-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #111111;
    font-size: 1rem;
    font-weight: 700;
}

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

.business-sidebar-title {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-sidebar-subtitle {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.58);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.biz-nav-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-radius: 16px;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    font-weight: 700;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.biz-nav-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.biz-nav-btn.active {
    background: #fff;
    color: #111;
}

.biz-nav-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: invert(1);
}

.biz-nav-btn.active .biz-nav-icon {
    filter: invert(0);
}

.sidebar-menu-btn {
    display: none;
    border: none;
    border-radius: 50px;
    width: 36px;
    height: 36px;
    background: #f2f2f2;
    color: #111;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.topbar {
    left: var(--business-sidebar-w) !important;
}

.homeframe,
.createframe,
.productframe,
.editframe,
.paymentsframe,
.orderframe,
.securityframe,
.site-footer {
    left: var(--business-sidebar-w) !important;
}

/* Keep dashboard content offset from sidebar, but allow full-width footer under sidebar */
.homeframe {
    left: 0 !important;
    padding-left: calc(var(--business-sidebar-w) + 40px) !important;
    padding-right: 40px !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {
    .sidebar-menu-btn {
        display: inline-flex;
    }

    .business-sidebar {
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        width: 260px;
    }

    .business-sidebar.open {
        transform: translateX(0);
    }

    .topbar,
    .homeframe,
    .createframe,
    .productframe,
    .editframe,
    .paymentsframe,
    .orderframe,
    .securityframe,
    .site-footer {
        left: 0 !important;
    }

    .homeframe {
        padding-left: 18px !important;
        padding-right: 18px !important;
        padding-bottom: 0 !important;
    }

    .homeframe > #cultioo-footer {
        margin-left: -18px;
        width: calc(100% + 36px);
    }
}

/* ================================================================
   BUSINESS HOMEFRAME — APP STYLE HOME
   ================================================================ */
.business-home-layout {
    display: grid !important;
    grid-template-columns: minmax(340px, 1.18fr) minmax(290px, 0.82fr);
    gap: 18px;
    align-content: start;
}

.business-home-panel {
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.business-home-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 34px 34px;
    border-radius: var(--radius-xl);
}

.business-home-welcome {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 6px;
}

.business-home-username {
    font-size: clamp(2.35rem, 5vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 700;
    color: #111111;
    margin-bottom: 10px;
}

.business-home-subline {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 620px;
}

.business-home-hero-side {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.business-chip-btn {
    border: none;
    border-radius: 999px;
    background: #f4f4f4;
    color: #111111;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.15s, opacity 0.15s;
}

.business-chip-btn:hover { background: #ececec; }
.business-chip-btn:disabled { opacity: 0.65; cursor: default; }

.business-home-guest-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.business-revenue-card {
    padding: 30px 32px;
}

.business-period-row {
    margin-top: 2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.business-period-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
}

.business-period-select {
    border: none;
    border-radius: var(--radius-btn);
    background: #ffffff;
    color: #111111;
    padding: 9px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.business-period-select:hover {
    background: var(--surface-2);
}

.business-panel-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 12px;
}

.business-panel-subtitle,
.business-panel-footnote {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.business-revenue-value {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1;
    color: #111111;
    margin-bottom: 12px;
}

.business-stats-card {
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.business-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.business-stat-row:last-child {
    border-bottom: none;
}

.business-stat-name {
    font-size: 0.95rem;
    color: #111111;
    font-weight: 300;
}

.business-stat-value {
    font-size: 1.24rem;
    color: #111111;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.business-top-products-card,
.business-account-card,
.business-recent-products-card {
    padding: 26px 28px;
}

/* ── Performance Analytics — Trade Republic style ──────────────────── */
.business-analytics-card {
    background: #0d0f12 !important;
    padding: 28px 28px 22px;
    border-radius: 28px !important;
    overflow: hidden;
}
.business-analytics-card:hover { background: #0d0f12 !important; }

.tr-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}
.tr-chart-kpi { flex: 1 1 auto; }
.tr-chart-kpi-number {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #ffffff;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.tr-chart-kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.38);
    margin-top: 4px;
}

.tr-period-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 4px;
}
.tr-period-tab {
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.4);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
}
.tr-period-tab:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }
.tr-period-tab.active { background: rgba(0,179,126,0.18); color: #00b37e; }

.tr-chart-canvas-wrap {
    position: relative;
    margin: 10px -28px 0;
    height: 200px;
}
#homeStatsChart {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}
.tr-crosshair {
    position: absolute;
    top: 0;
    bottom: 24px;
    width: 1px;
    background: rgba(255,255,255,0.14);
    pointer-events: none;
    display: none;
    transform: translateX(-50%);
}
.tr-tooltip {
    position: absolute;
    top: 12px;
    background: #1c2028;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 12px;
    pointer-events: none;
    display: none;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
    z-index: 10;
}
.tr-tooltip-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.tr-tooltip-date {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.38);
}

.tr-chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.tr-metric-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.business-chart-metric-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 15px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.42);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.business-chart-metric-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.business-chart-metric-btn.active { background: #00b37e; color: #ffffff; }

.tr-chart-stats-row { display: flex; align-items: center; gap: 20px; }
.tr-chart-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tr-chart-stat-val {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.tr-chart-stat-key {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.business-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.business-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.business-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.business-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.business-list-rank {
    width: 30px;
    min-width: 30px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #777777;
}

.business-list-copy {
    min-width: 0;
    flex: 1;
}

.business-list-title {
    color: #111111;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.business-list-meta,
.business-list-empty {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.business-list-empty {
    margin-top: 0;
    padding: 10px 0 2px;
}

.home-account-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 0 18px;
}

.home-account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ececec;
}

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

.home-account-avatar-fallback {
    font-size: 1.35rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    user-select: none;
}

.home-account-profile-name {
    font-size: 1.0rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-account-profile-sub {
    font-size: 0.78rem;
    color: var(--soft);
    margin-top: 3px;
}

.business-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.business-account-item {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 17px 18px;
}

.business-account-item--full {
    grid-column: 1 / -1;
}

.business-account-key {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 8px;
}

.business-account-val {
    display: block;
    color: #111111;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* ================================================================
   BUSINESS PRODUCTS FRAME
   ================================================================ */
.products-shell {
    max-width: 1160px;
    margin: 0 auto;
}

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

.products-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.products-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.products-stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}

.products-stat-label {
    display: block;
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.products-stat-value {
    display: block;
    color: #111111;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

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

.products-row {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.products-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #ebebeb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.products-thumb-fallback {
    font-size: 1rem;
    font-weight: 700;
    color: #666666;
}

.products-main {
    min-width: 0;
    flex: 1;
}

.products-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.products-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.products-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.products-badge {
    border-radius: var(--radius-btn);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.products-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.products-badge.draft {
    background: #efefef;
    color: #666666;
}

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

.products-empty {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    color: var(--muted);
}

/* Product modal */
body.modal-open {
    overflow: hidden;
}

.biz-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.biz-modal.hidden {
    display: none;
}

.biz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,12,16,0.32);
    backdrop-filter: blur(14px);
}

.biz-modal-card {
    position: relative;
    width: min(760px, calc(100% - 24px));
    margin: 0 12px;
    max-height: 92vh;
    overflow: auto;
    background: #fcfcfd;
    border: none;
    border-radius: 28px 28px 0 0;
    padding: 14px 26px 40px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    animation: bsSlideUp 0.32s cubic-bezier(0.32,0.72,0,1);
}

.biz-modal-card::-webkit-scrollbar {
    width: 6px;
}

.biz-modal-card::-webkit-scrollbar-thumb {
    background: #dedede;
    border-radius: 10px;
}

.biz-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(252,252,253,0.98) 0%, rgba(252,252,253,0.92) 100%);
    backdrop-filter: blur(14px);
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(17,17,17,0.05);
}

.biz-modal-head h2 {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.biz-modal-subtitle {
    margin-top: 9px;
    font-size: 0.88rem;
    color: #8d8d8d;
}

.biz-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f1f3;
    color: #222;
    font-size: 1.2rem;
    line-height: 1;
}

.biz-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.biz-modal-steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 9px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.biz-step-btn {
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #626262;
    background: #f3f4f6;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    scroll-snap-align: start;
}

.biz-step-btn.active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.biz-step-btn:hover {
    background: #ebedf1;
}

.biz-modal-step-caption {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9b9b9b;
}

.biz-step-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #eceef2;
    overflow: hidden;
}

.biz-step-progress-bar {
    width: 16.66%;
    height: 100%;
    background: linear-gradient(90deg, #111111 0%, #4f4f4f 100%);
    transition: width 0.2s ease;
}

.biz-modal-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #eceef2;
    border-radius: 24px;
    padding: 22px;
}

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

.biz-review-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f7f8fa;
    border: 1px solid #eceef2;
    border-radius: 18px;
    padding: 16px;
}

.biz-review-card span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--soft);
}

.biz-review-card strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: #101010;
}

.biz-image-dropzone {
    border: 1px dashed #d9dce2;
    border-radius: var(--radius-md);
    background: #f7f8fa;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.biz-image-dropzone.dragover {
    background: #eef1f6;
}

.biz-image-input {
    display: none;
}

.biz-image-dropcopy {
    font-size: 0.82rem;
    color: #6d6d6d;
}

.biz-image-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.biz-image-item {
    background: #f7f8fa;
    border: 1px solid #eceef2;
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-image-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f2f2f2;
}

.biz-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biz-image-remove {
    border: none;
    background: #ececec;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.biz-image-empty {
    padding: 8px;
    font-size: 0.84rem;
    color: #7a7a7a;
}

.biz-section-title {
    margin: 6px 0 0;
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1f1f1f;
}

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

.biz-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.biz-form-grid label > span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--soft);
}

.biz-form-grid input,
.biz-form-grid select,
.biz-form-grid textarea {
    width: 100%;
    border: 1px solid #e8ebf0;
    outline: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: #111111;
    background: #f8f9fb;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.biz-form-grid input[readonly] {
    color: #6b6b6b;
    background: #f2f4f7;
}

.biz-form-grid select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.biz-form-grid select:hover {
    background-color: #f1f4f8;
}

.biz-form-grid input:focus,
.biz-form-grid select:focus,
.biz-form-grid textarea:focus {
    background: #ffffff;
    border-color: #cdd5e1;
}

.biz-form-grid textarea {
    resize: vertical;
}

.biz-full {
    grid-column: 1 / -1;
}

.biz-location-coords {
    font-size: 0.76rem;
    color: #7f8691;
    margin-top: -2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f7fa;
}

.biz-location-coords.is-loading {
    color: #6b7280;
}

.biz-location-coords.is-success {
    color: #15803d;
}

.biz-location-coords.is-error {
    color: #b45309;
}

.biz-check-field {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    background: #f8f9fb;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 12px;
}

.biz-check-field input {
    width: auto;
    margin-right: 8px;
    margin-top: 2px;
}

.biz-track-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(180deg, #fff8e8 0%, #fff3d6 100%);
    border: 1px solid #f6d28d;
    border-radius: 14px;
    padding: 12px;
}

.biz-track-warning-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff0c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.biz-track-warning-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.biz-track-warning-copy strong {
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
    color: #8a4b00;
}

.biz-track-warning-copy small {
    font-size: 0.74rem;
    line-height: 1.35;
    color: #9a6016;
}

.biz-cleaning-cert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8f9fb;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    padding: 14px;
}

.biz-cleaning-cert-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.biz-cleaning-cert-copy strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.01em;
}

.biz-cleaning-cert-copy small {
    font-size: 0.78rem;
    color: #7e7e7e;
    line-height: 1.35;
}

.biz-cleaning-cert-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef1f6;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

.biz-cleaning-cert-toggle input {
    width: auto;
    margin: 0;
}

.biz-variants-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.biz-variants-head h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

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

.biz-variant-card {
    background: #f9fafb;
    border: 1px solid #eceef2;
    border-radius: 18px;
    padding: 16px;
}

.biz-variant-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.biz-variant-head h4 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.biz-remove-variant-btn {
    padding: 7px 14px;
    font-size: 0.78rem;
}

.biz-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    position: sticky;
    bottom: 0;
    z-index: 6;
    background: linear-gradient(180deg, rgba(252,252,253,0.86) 0%, rgba(252,252,253,0.98) 40%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(17,17,17,0.06);
    padding-top: 14px;
}

.biz-modal-actions .btn-primary,
.biz-modal-actions .btn-secondary,
.biz-modal-actions .btn-ghost {
    min-height: 42px;
    padding: 11px 20px;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.biz-modal-actions-left,
.biz-modal-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1100px) {
    .business-home-layout {
        grid-template-columns: 1fr;
    }

    .business-home-hero {
        padding: 30px 30px;
    }

    .products-stats-grid {
        grid-template-columns: 1fr;
    }

    .pay-stats-grid,
    .pay-form-grid {
        grid-template-columns: 1fr;
    }

    .pay-schedule-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pay-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pay-schedule-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .biz-form-grid {
        grid-template-columns: 1fr;
    }

    .biz-review-grid {
        grid-template-columns: 1fr;
    }

    .biz-image-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar {
        height: 64px;
        padding: 0 12px;
    }

    .business-home-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .business-home-hero-side {
        justify-content: flex-start;
    }

    .business-revenue-card,
    .business-stats-card,
    .business-top-products-card,
    .business-account-card,
    .business-recent-products-card {
        padding: 22px 20px;
        border-radius: var(--radius-lg);
    }
    .business-analytics-card { padding: 22px 16px 16px; border-radius: 22px !important; }
    .tr-chart-canvas-wrap { margin: 10px -16px 0; height: 160px; }
    .tr-chart-kpi-number { font-size: 2rem; }
    .tr-chart-footer { flex-direction: column; align-items: flex-start; }
    .tr-chart-stats-row { width: 100%; justify-content: space-between; }
    .tr-chart-stat { align-items: flex-start; }

    .products-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-actions {
        width: 100%;
    }

    .pay-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pay-schedule-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pay-overview-grid {
        grid-template-columns: 1fr;
    }

    .pay-wallet-topup-row {
        flex-direction: column;
        align-items: stretch;
    }

    .biz-modal-card {
        width: 100%;
        border-radius: 24px;
        padding: 16px 13px 14px;
    }

    .biz-modal-head h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    .biz-modal-subtitle {
        font-size: 0.84rem;
    }

    .biz-modal-page {
        padding: 14px;
        border-radius: 16px;
    }

    .biz-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .biz-modal-actions-left,
    .biz-modal-actions-right {
        width: 100%;
        justify-content: stretch;
    }

    .biz-modal-actions .btn-primary,
    .biz-modal-actions .btn-secondary,
    .biz-modal-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .biz-variants-head h3 {
        font-size: 1.32rem;
    }

    .business-account-grid {
        grid-template-columns: 1fr;
    }

    .business-account-item--full {
        grid-column: auto;
    }
}
