/* Reseller Mini-Site – Modern UI
   Use with layout includes for consistent look. */

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: #eef2ff;
    --color-success: #059669;
    --color-success-bg: #ecfdf5;
    --color-error: #dc2626;
    --color-error-bg: #fef2f2;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    min-height: 100vh;
    line-height: 1.5;
}

/* Reseller index: modern mesh + grid background */
html[data-theme="dark"] body.page-reseller-index {
    background-color: #020617;
    background-image:
        radial-gradient(ellipse 85% 55% at 8% 12%, rgba(99, 102, 241, 0.38), transparent 52%),
        radial-gradient(ellipse 75% 50% at 92% 8%, rgba(168, 85, 247, 0.26), transparent 48%),
        radial-gradient(ellipse 65% 45% at 88% 88%, rgba(34, 211, 238, 0.1), transparent 50%),
        radial-gradient(ellipse 55% 40% at 5% 78%, rgba(79, 70, 229, 0.22), transparent 45%),
        linear-gradient(165deg, #020617 0%, #0b1120 38%, #111827 72%, #1e1b4b 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 130% 100%, 125% 100%, 100% 100%, 110% 100%, 100% 100%;
    background-position: top left, top right, bottom right, bottom left, center;
    position: relative;
    min-height: 100vh;
}
html[data-theme="dark"] body.page-reseller-index::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 42%, #000 0%, transparent 72%);
}
html[data-theme="dark"] body.page-reseller-index::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 55% at 50% -8%, rgba(255, 255, 255, 0.06), transparent 58%),
        radial-gradient(ellipse 90% 80% at 50% 120%, rgba(2, 6, 23, 0.55), transparent 55%);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="dark"] body.page-reseller-index {
        background-attachment: scroll;
    }
}
html[data-theme="dark"] body.page-reseller-index .site-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] body.page-reseller-index .site-header .site-title,
html[data-theme="dark"] body.page-reseller-index .site-header .site-brand { color: #f1f5f9; }
html[data-theme="dark"] body.page-reseller-index .site-header .site-nav a { color: #94a3b8; }
html[data-theme="dark"] body.page-reseller-index .site-header .site-nav a.nav-wallet { color: #c7d2fe; font-weight: 700; }
html[data-theme="dark"] body.page-reseller-index .site-header .site-nav a:hover { color: #c7d2fe; background: rgba(79, 70, 229, 0.2); }
html[data-theme="dark"] body.page-reseller-index .site-nav-toggle { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.15); }
html[data-theme="dark"] body.page-reseller-index .site-nav-toggle__bar { background: #e2e8f0; }
html[data-theme="dark"] body.page-reseller-index .site-nav-toggle:hover { background: rgba(79, 70, 229, 0.3); border-color: rgba(255,255,255,0.2); }
html[data-theme="dark"] body.page-reseller-index .site-nav { border-top-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] body.page-reseller-index .site-wrap { position: relative; z-index: 1; }
html[data-theme="dark"] body.page-reseller-index .site-header-inner {
    max-width: 1100px;
}
html[data-theme="dark"] body.page-reseller-index .page-title,
html[data-theme="dark"] body.page-reseller-index h1, html[data-theme="dark"] body.page-reseller-index h2 { color: #f1f5f9; }
html[data-theme="dark"] body.page-reseller-index .site-header-catalog {
    color: #94a3b8;
}
html[data-theme="dark"] body.page-reseller-index .site-header-catalog:hover {
    color: #c7d2fe;
    background: rgba(79, 70, 229, 0.2);
}
html[data-theme="dark"] body.page-reseller-index .reseller-category-heading { border-bottom-color: rgba(148, 163, 184, 0.3); }
html[data-theme="dark"] body.page-reseller-index .card,
html[data-theme="dark"] body.page-reseller-index .reseller-product-grid,
html[data-theme="dark"] body.page-reseller-index .reseller-product-card { background: rgba(30, 41, 59, 0.6); border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__body,
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__title { color: #e2e8f0; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__pill { background: #0f172a; color: #e2e8f0; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__pill--stock { background: #1e293b; color: #94a3b8; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__amount { color: #c7d2fe; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__stock,
html[data-theme="dark"] body.page-reseller-index .text-muted { color: #94a3b8; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__login-btn { background: rgba(30, 41, 59, 0.9); color: #94a3b8; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__login-btn:hover { background: #334155; color: #c7d2fe; }
html[data-theme="dark"] body.page-reseller-index .reseller-toolbar .reseller-search,
html[data-theme="dark"] body.page-reseller-index .reseller-toolbar .reseller-category-select { background: rgba(30, 41, 59, 0.8); border-color: rgba(255, 255, 255, 0.1); color: #f1f5f9; }
html[data-theme="dark"] body.page-reseller-index .reseller-toolbar .reseller-category-label { color: #94a3b8; }
html[data-theme="dark"] body.page-reseller-index .reseller-view-more-wrap { background: rgba(30, 41, 59, 0.4); border-top-color: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] body.page-reseller-index .reseller-auth-prompt { background: rgba(79, 70, 229, 0.2); border-color: rgba(79, 70, 229, 0.4); color: #e2e8f0; }
html[data-theme="dark"] body.page-reseller-index .reseller-auth-prompt a { color: #c7d2fe; }
html[data-theme="dark"] body.page-reseller-index .site-footer { border-top-color: rgba(255, 255, 255, 0.08); color: #94a3b8; }
html[data-theme="dark"] body.page-reseller-index .site-footer a { color: #c7d2fe; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__login-hint { color: #94a3b8; margin: 0; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__login-hint a { color: #818cf8; font-weight: 600; }
.order-replaced { color: var(--color-success); font-weight: 600; }

/* My Orders table */
.orders-empty-card {
    text-align: center;
    padding: 32px 24px;
}

.orders-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.orders-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.orders-table th,
.orders-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.orders-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

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

.orders-table tbody tr:hover td {
    background: rgba(79, 70, 229, 0.04);
}

.orders-table .orders-table-date {
    white-space: nowrap;
    width: 1%;
}

.orders-table .orders-table-product {
    min-width: 140px;
    max-width: 280px;
}
.order-product-link { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.order-product-link:hover { text-decoration: underline; }

.orders-table .orders-table-qty {
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.orders-table .orders-table-total {
    white-space: nowrap;
    font-weight: 600;
    text-align: right;
    width: 1%;
}

.orders-table .orders-table-status {
    white-space: nowrap;
}

.orders-table .orders-table-report {
    min-width: 180px;
}

.order-report-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.order-report-reason {
    width: 120px;
    min-width: 80px;
    padding: 6px 10px;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
}

.order-report-reason:focus {
    outline: none;
    border-color: var(--color-primary);
}

.order-replacement-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge.status-replaced {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-badge.status-reported {
    background: #fef3c7;
    color: #b45309;
}

.status-badge.status-ok {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

/* Order details page */
.breadcrumb { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.order-details-card { padding: 24px; margin-bottom: 24px; }
.order-details-table { width: 100%; border-collapse: collapse; }
.order-details-table th, .order-details-table td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.order-details-table th { font-weight: 600; color: var(--color-text-muted); width: 120px; }
.order-details-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.order-details-section-title { font-size: 1rem; margin: 0 0 12px; }
.order-details-copy-wrap { display: flex; flex-direction: column; gap: 12px; }
.order-details-copy-table { margin-bottom: 0; }
.order-details-copy-table th, .order-details-copy-table td { vertical-align: middle; }
.order-details-copy-table .copy-input { width: 100%; padding: 8px 12px; font-size: 0.8125rem; }
.copy-btn .fa-copy,
.copy-btn .copy-icon-visible { color: #212529 !important; opacity: 1; }
.order-details-items { display: flex; flex-direction: column; gap: 16px; }
.order-details-item-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.order-details-item-row .order-details-item-input { margin: 0; min-height: 60px; }
.order-details-item-row .copy-details-btn { align-self: flex-start; }
.order-details-textarea { width: 100%; padding: 12px; font-family: inherit; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); resize: vertical; }
.order-details-copy-wrap .copy-details-btn { align-self: flex-start; }
.order-details-report-section .btn { margin-top: 4px; }

/* Report modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 440px; width: 100%; max-height: 90vh; overflow: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.modal-header h3 { margin: 0; font-size: 1.125rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--color-text-muted); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--color-text); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--color-border); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { background: var(--color-bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .orders-table th,
    .orders-table td {
        padding: 16px 24px;
        font-size: 1rem;
    }
    .orders-table .orders-table-product {
        min-width: 200px;
        max-width: 320px;
    }
    .order-report-reason {
        width: 140px;
    }
}
html[data-theme="dark"] body.page-reseller-index .alert { border-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] body.page-reseller-index .alert-success { background: rgba(5, 150, 105, 0.25); color: #6ee7b7; }
html[data-theme="dark"] body.page-reseller-index .alert-error { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }
html[data-theme="dark"] body.page-reseller-index .reseller-product-card__form .qty-input { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.15); color: #f1f5f9; }

/* Landing (index): hero, value props, steps */
.landing-steps__cta {
    margin: 28px 0 0;
    text-align: center;
}
.catalog-back {
    margin: 0 0 4px;
}
.catalog-back__link {
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    color: #94a3b8;
}
.catalog-back__link:hover {
    color: #c7d2fe;
}
.catalog-page-title {
    margin-bottom: 8px;
}
.catalog-page-intro {
    margin: 0 0 24px;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.55;
}
html[data-theme="dark"] body.page-reseller-index .catalog-page-intro {
    color: #94a3b8;
}

/* Catalog: wallet hero (above products) */
.catalog-wallet-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 0 28px;
    padding: clamp(22px, 4vw, 32px) clamp(22px, 4vw, 36px);
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 28%, #6d28d9 55%, #4f46e5 100%);
    box-shadow:
        0 4px 6px -1px rgba(76, 29, 149, 0.35),
        0 20px 40px -12px rgba(79, 70, 229, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.catalog-wallet-card__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.catalog-wallet-card__orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(0.5px);
}

.catalog-wallet-card__orb--1 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -40px;
    opacity: 0.9;
}

.catalog-wallet-card__orb--2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    right: 18%;
    background: rgba(167, 139, 250, 0.25);
    opacity: 0.85;
}

.catalog-wallet-card__orb--3 {
    width: 90px;
    height: 90px;
    top: 35%;
    right: 8%;
    background: rgba(34, 211, 238, 0.12);
    opacity: 0.7;
}

.catalog-wallet-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 24px;
}

.catalog-wallet-card__copy {
    flex: 1;
    min-width: min(100%, 220px);
}

.catalog-wallet-card__greeting {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.92);
    letter-spacing: 0.01em;
}

.catalog-wallet-card__label {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}

.catalog-wallet-card__amount {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.catalog-wallet-card__currency {
    margin-right: 0.12em;
    font-weight: 600;
    opacity: 0.95;
}

.catalog-wallet-card__actions {
    flex-shrink: 0;
}

.catalog-wallet-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.12s;
}

.catalog-wallet-card__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.catalog-wallet-card__btn:active {
    transform: scale(0.98);
}

@media (max-width: 520px) {
    .catalog-wallet-card__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-wallet-card__btn {
        width: 100%;
    }
}

.landing-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
}
.landing-hero {
    margin-bottom: clamp(40px, 6vw, 64px);
    padding-bottom: clamp(32px, 5vw, 48px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.landing-hero__grid {
    display: grid;
    gap: clamp(28px, 4vw, 40px);
    align-items: start;
}
@media (min-width: 900px) {
    .landing-hero__grid {
        grid-template-columns: 1fr minmax(280px, 380px);
        align-items: center;
    }
}
.landing-hero__title {
    margin: 0 0 16px;
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #f8fafc;
}
.landing-hero__lead {
    margin: 0 0 24px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 36rem;
}
.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.landing-hero__btn-primary.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.35);
}
.landing-hero__btn-primary.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 45%, #4f46e5 100%);
}
.landing-hero__btn-secondary.btn-secondary {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}
.landing-hero__btn-secondary.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
}
.landing-hero__bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 36rem;
}
.landing-hero__bullets li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.5;
}
.landing-hero__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.landing-hero__visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.landing-hero__card {
    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.landing-hero__card--main {
    background: linear-gradient(145deg, rgba(51, 65, 85, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%);
}
.landing-hero__card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 8px;
}
.landing-hero__card-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.landing-hero__card-text {
    margin: 0 0 18px;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.55;
}
.landing-hero__card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.landing-hero__card-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.landing-hero__metric-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #c7d2fe;
}
.landing-hero__metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.landing-hero__card--accent {
    background: rgba(79, 70, 229, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
}
.landing-hero__pill {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #c7d2fe;
    margin-bottom: 10px;
}
.landing-hero__accent-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.landing-value {
    margin-bottom: clamp(40px, 6vw, 56px);
}
.landing-value__header {
    max-width: 40rem;
    margin-bottom: 28px;
}
.landing-section-title {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f1f5f9;
}
.landing-section-title--center {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
}
.landing-section-sub {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #94a3b8;
}
.landing-value__grid {
    display: grid;
    gap: 18px;
}
@media (min-width: 720px) {
    .landing-value__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
.landing-card {
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(30, 41, 59, 0.55);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.landing-card:hover {
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.landing-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(79, 70, 229, 0.25);
    color: #c7d2fe;
}
.landing-card__title {
    margin: 0 0 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}
.landing-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #94a3b8;
}

.landing-steps {
    margin-bottom: clamp(36px, 5vw, 48px);
    padding: clamp(28px, 4vw, 36px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
}
.landing-steps__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 20px;
}
@media (min-width: 768px) {
    .landing-steps__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
.landing-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.landing-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #eef2ff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.landing-step__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.landing-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}
.landing-step__desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #94a3b8;
}

/* Layout */
.site-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.site-wrap.narrow {
    max-width: 440px;
    margin: 48px auto 64px;
}

.site-wrap.wide {
    max-width: 1100px;
    margin: 32px auto 64px;
}

/* Header / Nav */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-header-end {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    justify-content: flex-end;
}

.site-header-catalog {
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.site-header-catalog:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--color-text);
}

.site-brand:hover {
    color: var(--color-primary);
}

.site-logo {
    max-height: 44px;
    max-width: 140px;
    object-fit: contain;
}

.site-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.site-nav-toggle:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}
.site-nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    margin: 0 auto;
}
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
}

.site-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
}

.site-nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.site-nav a.active {
    font-weight: 600;
    color: var(--color-primary);
}

.site-nav a.nav-wallet {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 4px;
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.card-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Typography */
h1, .page-title {
    margin: 0 0 24px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

h2 {
    margin: 28px 0 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-title {
    margin: 32px 0 12px;
    font-size: 1.125rem;
    font-weight: 600;
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.alert-success {
    background: var(--color-success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--color-error-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error p,
.alert p {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

input::placeholder {
    color: var(--color-text-muted);
}

/* Product table */
.products-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.products-table th,
.products-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.products-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text);
}

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

.products-table tr:hover td {
    background: rgba(79, 70, 229, 0.03);
}

.products-table .qty-input {
    width: 72px;
    padding: 8px 10px;
    text-align: center;
    margin-right: 8px;
}

.order-form-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Wallet transactions table */
.table-card {
    overflow: hidden;
}

.wallet-transactions-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.wallet-table th,
.wallet-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.wallet-table th {
    background: var(--color-bg);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

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

.wallet-table tbody tr:hover td {
    background: rgba(79, 70, 229, 0.04);
}

.wallet-table .wallet-table-date {
    white-space: nowrap;
    width: 1%;
}

.wallet-table .wallet-table-desc {
    min-width: 140px;
}

.wallet-table .wallet-table-ref {
    min-width: 120px;
}

.wallet-table .amount-col {
    white-space: nowrap;
    font-weight: 600;
    text-align: right;
    width: 1%;
}

.wallet-table .amount-col.credit {
    color: var(--color-success);
}

.wallet-table .amount-col.debit {
    color: var(--color-error);
}

.wallet-table .ref-code {
    font-size: 0.8125rem;
    background: var(--color-bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
}

.wallet-table .wallet-table-status {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .wallet-table th,
    .wallet-table td {
        padding: 16px 24px;
        font-size: 1rem;
    }
    .wallet-table .wallet-table-desc {
        min-width: 200px;
    }
    .wallet-table .wallet-table-ref .ref-code {
        font-size: 0.875rem;
        padding: 5px 12px;
    }
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.status-badge.status-confirmed {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #b45309;
}

/* Pagination */
.pagination-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.pagination-info {
    margin: 0;
    font-size: 0.875rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color .15s, background .15s, border-color .15s;
}

.pagination-link:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-link.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    pointer-events: none;
}

/* Wallet balance */
.balance-big {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.site-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Auth pages: centered card */
.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.auth-links {
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links span {
    margin: 0 8px;
    color: var(--color-border);
}

.btn-block {
    width: 100%;
}

/* Catalog: lazy-load shell + skeleton */
html.catalog-nav-pending,
html.catalog-nav-pending body {
    cursor: progress;
}

html.catalog-products-loading body.page-catalog {
    cursor: wait;
}

.catalog-root {
    position: relative;
    min-height: 200px;
}

.catalog-lazy {
    padding: 8px 0 32px;
}

.catalog-lazy__inner {
    text-align: center;
    margin-bottom: 28px;
}

.catalog-lazy__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: catalog-spin 0.75s linear infinite;
}

.catalog-lazy__title {
    margin: 0 0 6px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.catalog-lazy__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.catalog-lazy-error {
    margin-bottom: 20px;
}

.catalog-lazy-error-msg {
    display: inline;
}

.catalog-lazy-retry {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.catalog-lazy-retry:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .catalog-lazy-retry {
    color: #a5b4fc;
}

.catalog-skeleton__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.catalog-skeleton__bar {
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-border) 0%, rgba(148, 163, 184, 0.35) 50%, var(--color-border) 100%);
    background-size: 200% 100%;
    animation: catalog-shimmer 1.25s ease-in-out infinite;
}

.catalog-skeleton__bar--search {
    flex: 1;
    min-width: 160px;
}

.catalog-skeleton__bar--select {
    width: 200px;
}

.catalog-skeleton__heading {
    height: 28px;
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--color-border) 0%, rgba(148, 163, 184, 0.3) 50%, var(--color-border) 100%);
    background-size: 200% 100%;
    animation: catalog-shimmer 1.25s ease-in-out infinite;
}

.catalog-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.catalog-skeleton__card {
    height: 280px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: linear-gradient(90deg, var(--color-surface) 0%, rgba(148, 163, 184, 0.12) 50%, var(--color-surface) 100%);
    background-size: 200% 100%;
    animation: catalog-shimmer 1.25s ease-in-out infinite;
}

@keyframes catalog-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes catalog-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-lazy__spinner {
        animation: none;
        border-top-color: var(--color-border);
        opacity: 0.7;
    }

    .catalog-skeleton__bar,
    .catalog-skeleton__heading,
    .catalog-skeleton__card {
        animation: none;
        opacity: 0.85;
    }
}

/* —— Auth: full-height two-column (login / register) —— */
body.page-auth-split {
    min-height: 100vh;
}

body.page-auth-split .site-wrap--auth-split {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
    width: 100%;
}

.auth-split__visual {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: clamp(32px, 6vw, 64px);
    overflow: hidden;
    color: #f8fafc;
}

.auth-split__visual-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 20% 20%, rgba(129, 140, 248, 0.45) 0%, transparent 55%),
        radial-gradient(90% 70% at 80% 60%, rgba(56, 189, 248, 0.25) 0%, transparent 50%),
        linear-gradient(155deg, #312e81 0%, #1e1b4b 45%, #0f172a 100%);
}

.auth-split__visual-bg--register {
    background:
        radial-gradient(120% 80% at 75% 15%, rgba(167, 139, 250, 0.4) 0%, transparent 50%),
        radial-gradient(80% 60% at 10% 70%, rgba(34, 211, 238, 0.22) 0%, transparent 45%),
        linear-gradient(200deg, #4c1d95 0%, #312e81 40%, #0f172a 100%);
}

.auth-split__visual-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin: auto 0;
    align-self: center;
}

.auth-split__brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.auth-split__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.85);
    margin: 0 0 12px;
}

.auth-split__brand-title {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.auth-split__brand-text {
    margin: 0 0 28px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.88);
}

.auth-split__bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: rgba(226, 232, 240, 0.82);
}

.auth-split__bullets li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.auth-split__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5b4fc, #22d3ee);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.auth-split__main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-bg, #f8fafc);
    color: var(--color-text);
}

.auth-split__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 4vw, 40px);
    flex-shrink: 0;
}

.auth-split__back {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.auth-split__back:hover {
    color: var(--color-primary);
}

.theme-toggle--auth {
    flex-shrink: 0;
}

.auth-split__main-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px clamp(20px, 4vw, 48px) 40px;
}

.auth-split__card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: clamp(28px, 4vw, 40px);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 24px 48px -12px rgba(15, 23, 42, 0.12);
}

.auth-split__title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.auth-split__lead {
    margin: 0 0 28px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.auth-split__alert {
    margin-bottom: 20px;
}

.auth-split__form .form-group {
    margin-bottom: 20px;
}

.auth-split__form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.auth-split__input {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-split__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-split__submit {
    margin-top: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
}

.auth-split__switch {
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.auth-split__switch a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-split__switch a:hover {
    text-decoration: underline;
}

.auth-split__fineprint {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    padding: 16px 24px 24px;
    margin: 0;
}

/* Stack only on narrow phones. Breakpoint was 900px so a docked DevTools
   panel (or any viewport under 900px) forced one column even when CSS loaded. */
@media (max-width: 640px) {
    .auth-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-split__visual {
        min-height: 220px;
        padding: 32px 24px;
    }

    .auth-split__visual-content {
        max-width: none;
    }

    .auth-split__brand-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .auth-split__brand-title {
        font-size: 1.5rem;
    }

    .auth-split__bullets {
        display: none;
    }

    .auth-split__main {
        min-height: auto;
    }
}

/* Profile list */
.profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.profile-list li:last-child {
    border-bottom: none;
}

.profile-list strong {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Reseller index: toolbar, search, shop by category */
.reseller-toolbar {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.reseller-search-wrap {
    flex: 1;
    min-width: 200px;
}
.reseller-search {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}
.reseller-search:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.reseller-category-dropdown-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reseller-category-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.reseller-category-select {
    padding: 10px 36px 10px 14px;
    font-family: var(--font);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    min-width: 180px;
}
.reseller-category-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Reseller index: category section + product list (line by line) */
.reseller-category-section {
    margin-bottom: 32px;
}
.reseller-category-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-text);
}
.reseller-product-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow);
}
.reseller-product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}
.reseller-product-card:last-child {
    border-bottom: none;
}
.reseller-product-card__img-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--color-bg);
    overflow: hidden;
    border-radius: var(--radius-sm);
    position: relative;
}
.reseller-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.reseller-product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    background: var(--color-bg);
}
.reseller-product-card__img-placeholder--fallback {
    display: none;
    position: absolute;
    inset: 0;
}
.reseller-product-card__img-placeholder--fallback.reseller-product-card__img-placeholder--show {
    display: flex;
}
.reseller-product-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.reseller-product-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    min-width: 120px;
}
.reseller-product-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.card__pill,
.reseller-product-card__pill {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    background: #0f172a;
    color: #e2e8f0;
}
.reseller-product-card__pill--stock,
.card__pill.reseller-product-card__pill--stock {
    background: #1e293b;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.65rem;
}
.reseller-product-card__pill--amount,
.card__pill.reseller-product-card__pill--amount {
    font-size: 0.7rem;
}
.reseller-product-card__amount {
    margin: 0;
    font-size: 0.9375rem;
}
.reseller-product-card__amount strong {
    white-space: nowrap;
}
.reseller-product-card__stock {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.reseller-product-card__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.reseller-product-card__login-btn:hover {
    background: #334155;
    color: #c7d2fe;
}
.reseller-product-card__form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.reseller-product-card__form .qty-input {
    width: 52px;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.9375rem;
}
/* Auth prompt when not logged in */
.reseller-auth-prompt {
    padding: 10px 16px;
    margin-bottom: 20px;
    background: var(--color-primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--color-text);
}
.reseller-auth-prompt a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.reseller-auth-prompt a:hover {
    text-decoration: underline;
}
/* Cart icon button */
.btn-cart {
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-cart .btn-cart-icon {
    display: block;
    color: inherit;
}
.btn-cart .btn-cart-icon svg {
    display: block;
    vertical-align: middle;
}

.btn-cart--loading {
    position: relative;
    pointer-events: none;
    opacity: 0.9;
}

.btn-cart--loading .btn-cart-icon {
    opacity: 0;
}

.btn-cart--loading::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: btn-cart-spin 0.7s linear infinite;
}

@keyframes btn-cart-spin {
    to { transform: rotate(360deg); }
}
.reseller-view-more-wrap {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}
.reseller-view-more-wrap .reseller-view-more {
    margin: 0;
}

/* Support float: Telegram & WhatsApp with bounce */
.support-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.support-float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    color: #fff;
    text-decoration: none;
    animation: support-bounce 2s ease-in-out infinite;
}
.support-float-btn:hover {
    color: #fff;
    transform: scale(1.08);
}
.support-float-telegram {
    background: #0088cc;
}
.support-float-telegram:hover {
    background: #007ab8;
}
.support-float-whatsapp {
    background: #25d366;
}
.support-float-whatsapp:hover {
    background: #20bd5a;
}
.support-float-btn:nth-child(2) {
    animation-delay: .2s;
}
@keyframes support-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Utility */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 640px) {
    .site-header-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }
    .site-header-end {
        width: 100%;
        justify-content: flex-end;
    }
    .site-header-catalog {
        margin-right: auto;
    }
    .site-brand {
        flex: 1;
        min-width: 0;
    }
    .site-title {
        font-size: 1.1rem;
    }
    .site-nav-toggle {
        display: flex;
        flex-shrink: 0;
    }
    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 4px;
        border-top: 1px solid var(--color-border);
        margin-top: 4px;
    }
    .site-nav.site-nav--open {
        display: flex;
    }
    .site-nav a {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        margin: 2px 0;
    }
    .site-nav a.nav-wallet {
        margin-right: 0;
        margin-bottom: 4px;
        padding: 12px 14px;
        font-size: 1rem;
    }

    .products-table th,
    .products-table td {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .order-form-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .reseller-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .reseller-search-wrap {
        min-width: 0;
        width: 100%;
    }
    .reseller-search {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    .reseller-category-dropdown-wrap {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .reseller-category-label {
        font-size: 0.8rem;
    }
    .reseller-category-select {
        width: 100%;
        min-width: 0;
        font-size: 0.9rem;
        padding: 10px 36px 10px 12px;
    }
    .reseller-product-card__body {
        gap: 10px;
    }
    .reseller-product-card__form {
        margin-left: 0;
        width: 100%;
    }
}
