.dashboard-body {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.16), transparent 28rem),
        radial-gradient(circle at 80% 12%, rgba(236, 72, 153, 0.1), transparent 24rem),
        radial-gradient(circle at 95% 88%, rgba(34, 211, 238, 0.08), transparent 28rem),
        var(--bg);
}

.client-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.2rem 1rem;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(11, 11, 22, 0.98), rgba(7, 7, 16, 0.98)),
        var(--bg-sidebar);
    box-shadow: 18px 0 60px rgba(4, 4, 12, 0.34);
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-sidebar-backdrop {
    display: none;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.app-icon,
.nav-icon svg,
.social-icon svg,
.support-card-icon svg {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
}

.sidebar-brand {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-brand img,
.sidebar-brand .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-brand strong,
.sidebar-brand small,
.sidebar-profile strong,
.sidebar-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-brand strong {
    font-size: 1.02rem;
}

.sidebar-brand small,
.sidebar-label,
.sidebar-profile small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.sidebar-label {
    display: block;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.side-nav {
    display: grid;
    gap: 0.45rem;
}

.side-nav a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    padding: 0.45rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #bfccdc;
    font-weight: 850;
}

.nav-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: transparent;
    color: #a5f3fc;
}

.side-nav a.active,
.side-nav a:hover {
    border-color: rgba(34, 211, 238, 0.38);
    background:
        linear-gradient(90deg, rgba(139, 92, 246, 0.26), rgba(236, 72, 153, 0.14), rgba(34, 211, 238, 0.08));
    color: white;
    box-shadow: inset 3px 0 0 var(--accent), 0 10px 26px rgba(139, 92, 246, 0.14);
}

.side-nav a.active .nav-icon,
.side-nav a:hover .nav-icon {
    background: var(--action-gradient);
    color: white;
    box-shadow: 0 8px 22px rgba(34, 211, 238, 0.22);
}

.sidebar-bottom {
    display: grid;
    gap: 0.8rem;
}

.sidebar-balance {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.1)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.08);
}

.sidebar-balance span,
.sidebar-balance small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-balance strong {
    color: #a5f3fc;
    font-size: 1.18rem;
    line-height: 1.15;
}

.sidebar-balance small {
    color: #7dd3fc;
    text-transform: none;
}

.support-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.2rem 0.7rem;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 18px 46px rgba(139, 92, 246, 0.26);
}

.support-card-icon {
    display: grid;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.support-card span:not(.support-card-icon) {
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.support-card strong {
    grid-column: 2;
    font-size: 0.92rem;
    line-height: 1.35;
}

.sidebar-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.sidebar-profile a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    font-weight: 900;
}

.dashboard-main {
    min-width: 0;
    padding: 1rem clamp(1rem, 2vw, 1.6rem);
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.9);
}

.dashboard-topbar h1 {
    margin: 0.25rem 0 0;
}

.balance-card,
.dashboard-card {
    min-width: 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background: var(--panel);
}

.balance-card {
    display: grid;
    gap: 0.3rem;
    min-width: 190px;
    padding: 1rem;
}

.balance-card span {
    color: var(--muted);
}

.balance-card strong {
    font-size: 1.4rem;
    color: #e9d5ff;
}

.currency-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #a5f3fc;
    font-weight: 900;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
    gap: 1rem;
}

.dashboard-card {
    padding: 1rem;
}

.dashboard-card h2 {
    margin-top: 0;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.55fr) minmax(360px, 1fr);
    gap: 1rem;
    align-items: start;
}

.account-readonly-grid,
.account-password-box {
    display: grid;
    gap: 0.75rem;
}

.account-readonly-grid span,
.account-password-box {
    padding: 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.06);
}

.account-readonly-grid span {
    display: grid;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.account-readonly-grid strong {
    color: var(--text);
    font-size: 0.95rem;
    text-transform: none;
}

.account-password-box p {
    margin: 0;
    color: var(--muted);
}

.account-form button {
    margin-top: 0.25rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0.25rem 0 0;
}

.featured-products-panel,
.orders-panel {
    grid-column: 1 / -1;
}

.featured-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 320px));
    gap: 1.05rem;
    justify-content: center;
}

.quick-product-card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    min-height: 365px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18, 18, 37, 0.98), rgba(9, 9, 22, 0.98)),
        var(--panel);
    box-shadow: 0 18px 54px rgba(4, 4, 12, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.52);
    background:
        linear-gradient(180deg, rgba(25, 25, 51, 0.98), rgba(12, 12, 30, 0.98)),
        var(--panel-2);
    box-shadow: 0 28px 74px rgba(139, 92, 246, 0.22), 0 0 0 1px rgba(236, 72, 153, 0.08);
}

.quick-product-image {
    position: relative;
    display: grid;
    flex: 0 0 165px;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background: #000;
}

.quick-product-image.has-product-image::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    background-image: var(--product-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.quick-product-image img {
    display: none;
}

.quick-product-image strong {
    font-size: 3rem;
}

.quick-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.42rem;
    min-height: 0;
    padding: 0.82rem;
}

.quick-product-body h3,
.quick-product-body p {
    margin: 0;
}

.quick-product-body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.96rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.quick-product-body p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.stock-line {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #a5f3fc;
    font-size: 0.78rem;
    font-weight: 900;
}

.quick-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
}

.quick-product-foot strong {
    font-size: 0.98rem;
    white-space: nowrap;
}

.quick-product-foot .btn.small {
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    font-size: 0.84rem;
}

.quick-product-foot .btn.small:not(.disabled):not(:disabled) {
    background: var(--action-gradient);
    color: white;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
}

.featured-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-fab {
    position: fixed;
    right: 1.35rem;
    bottom: calc(1.35rem + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.52);
    border-radius: 999px;
    background: var(--action-gradient);
    color: white;
    box-shadow: 0 18px 46px rgba(34, 211, 238, 0.26);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.cart-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 58px rgba(139, 92, 246, 0.34);
}

.cart-fab svg {
    width: 1.55rem;
    height: 1.55rem;
}

.cart-fab span {
    position: absolute;
    top: -6px;
    right: -4px;
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 0.35rem;
    border: 2px solid var(--bg);
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: 0.78rem;
    font-weight: 950;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 88;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(5px);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(440px, calc(100vw - 1rem));
    height: 100dvh;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(21, 31, 42, 0.98), rgba(8, 12, 18, 0.98)),
        var(--panel);
    box-shadow: -26px 0 80px rgba(0, 0, 0, 0.38);
    transform: translateX(105%);
    transition: transform 220ms ease;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-head,
.cart-confirm-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.cart-drawer-head h2,
.cart-confirm-card h2 {
    margin: 0.25rem 0 0;
}

.cart-icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-weight: 950;
}

.cart-items {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    overflow: auto;
    padding: 1rem;
}

.cart-empty {
    display: grid;
    gap: 0.35rem;
    min-height: 220px;
    place-content: center;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.cart-empty strong {
    color: var(--text);
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.cart-item-image {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #05070a;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    padding: 0.45rem;
    object-fit: contain;
}

.cart-item-main {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.cart-item-main strong,
.cart-item-main span,
.cart-item-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-main span,
.cart-item-main small {
    color: var(--muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.cart-item-controls button {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-weight: 950;
}

.cart-item-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-item-controls .cart-remove {
    margin-left: auto;
    padding: 0 0.55rem;
    color: #fca5a5;
}

.cart-item-subtotal {
    grid-column: 1 / -1;
    color: #99f6e4;
    font-weight: 950;
    text-align: right;
}

.cart-summary {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.cart-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.cart-summary strong {
    color: var(--text);
}

.cart-summary .cart-total-row {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text);
    font-size: 1.12rem;
}

.cart-summary .is-negative {
    color: #fca5a5;
}

.cart-message {
    min-height: 20px;
    margin: 0;
    color: #99f6e4;
    font-weight: 850;
}

.cart-message.is-error {
    color: #fca5a5;
}

.cart-funds-link[hidden] {
    display: none;
}

.cart-checkout-button {
    width: 100%;
}

.cart-checkout-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cart-confirm {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
}

.cart-confirm[hidden] {
    display: none;
}

.cart-confirm-card {
    width: min(560px, 100%);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(21, 31, 42, 0.98), rgba(8, 12, 18, 0.98)),
        var(--panel);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.cart-confirm-list {
    display: grid;
    gap: 0.55rem;
    max-height: 300px;
    overflow: auto;
    padding: 1rem;
}

.cart-confirm-list div,
.cart-confirm-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cart-confirm-list div {
    padding: 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.cart-confirm-total {
    padding: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.cart-confirm-total span {
    color: var(--muted);
}

.cart-confirm-total strong {
    color: #99f6e4;
}

.cart-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.cart-toast-stack {
    position: fixed;
    right: 1rem;
    bottom: 5.4rem;
    z-index: 130;
    display: grid;
    gap: 0.55rem;
    width: min(330px, calc(100vw - 2rem));
    pointer-events: none;
}

.cart-toast {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(20, 184, 166, 0.26);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.96);
    color: #99f6e4;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    animation: cartToastIn 180ms ease both;
}

.cart-toast.is-error,
.cart-toast.error {
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.cart-toast.info {
    border-color: rgba(59, 130, 246, 0.28);
    color: #bfdbfe;
}

.cart-toast.is-leaving {
    animation: cartToastOut 240ms ease both;
}

@keyframes cartToastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cartToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

.funds-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    gap: 1rem;
    align-items: start;
}

.funds-layout > * {
    min-width: 0;
}

.recharge-panel p {
    margin-top: -0.25rem;
    color: var(--muted);
    line-height: 1.65;
}

.recharge-form button {
    border: 0;
    background: var(--premium-gradient);
    color: white;
    font-weight: 950;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}

.payment-method-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.72);
    cursor: pointer;
}

.payment-method-card:has(input:checked) {
    border-color: rgba(34, 211, 238, 0.52);
    background: rgba(34, 211, 238, 0.1);
}

.payment-method-card.whatsapp:has(input:checked) {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-media {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
    font-weight: 950;
    overflow: hidden;
}

.payment-method-card.whatsapp .payment-method-media {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.payment-method-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.payment-method-media svg {
    width: 1.8rem;
    height: 1.8rem;
}

.payment-method-card span:last-child {
    min-width: 0;
}

.payment-method-card strong,
.payment-method-card small,
.payment-method-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-method-card small,
.payment-method-card em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.payment-method-card em {
    margin-top: 0.2rem;
    color: #a5f3fc;
    font-weight: 900;
}

.payment-detail-panel {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 8px;
    background: rgba(8, 18, 34, 0.76);
}

.payment-detail-panel [hidden] {
    display: none !important;
}

.payment-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.payment-detail-heading h3,
.payment-detail-heading p {
    margin: 0;
}

.payment-detail-heading h3 {
    margin-top: 0.15rem;
    font-size: 1.08rem;
    line-height: 1.25;
}

.payment-detail-heading p {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.proof-chip {
    flex: 0 0 auto;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 950;
    white-space: nowrap;
}

.proof-chip.requires-proof {
    border-color: rgba(34, 211, 238, 0.32);
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
}

.instruction-preview {
    display: grid;
    gap: 0.7rem;
    padding: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(4, 9, 18, 0.64);
}

.instruction-preview img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    background: #020617;
}

.instruction-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: zoom-in;
}

.instruction-preview-button:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

.instruction-preview > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #bfdbfe;
    font-weight: 900;
}

.payment-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.payment-data-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.6rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
}

.payment-data-item span {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.payment-data-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
    grid-column: 1 / 2;
}

.copy-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 36px;
    padding: 0 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 8px;
    background: rgba(14, 116, 144, 0.26);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 950;
    cursor: pointer;
}

.method-instructions,
.proof-upload,
.payment-custom-field {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.66);
}

.method-instructions strong,
.proof-upload span,
.payment-custom-field span {
    color: #e2e8f0;
    font-weight: 950;
}

.method-instructions p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    white-space: pre-wrap;
}

.balance-code-panel {
    display: grid;
    gap: 0.75rem;
}

.balance-code-panel label {
    display: grid;
    gap: 0.35rem;
    color: #e2e8f0;
    font-weight: 950;
}

.balance-code-panel input {
    text-transform: uppercase;
    letter-spacing: 0;
}

.balance-code-preview {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(59, 130, 246, 0.08)),
        rgba(15, 23, 42, 0.72);
}

.balance-code-preview.is-ready {
    border-color: rgba(34, 197, 94, 0.34);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(34, 211, 238, 0.08)),
        rgba(15, 23, 42, 0.76);
}

.balance-code-preview.is-error {
    border-color: rgba(239, 68, 68, 0.34);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.06)),
        rgba(15, 23, 42, 0.76);
}

.balance-code-preview-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
    font-weight: 950;
}

.balance-code-preview strong,
.balance-code-preview p {
    margin: 0;
}

.balance-code-preview p {
    margin-top: 0.2rem;
    color: var(--muted);
    line-height: 1.45;
}

.balance-code-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.balance-code-meta span {
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.38);
}

.balance-code-meta small {
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.balance-code-meta strong {
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.proof-upload input {
    width: 100%;
}

.proof-upload small {
    color: #a5b4fc;
    font-size: 0.8rem;
}

.payment-panel-elements,
.payment-custom-fields {
    display: grid;
    gap: 0.85rem;
}

.payment-custom-field textarea {
    min-height: 96px;
    resize: vertical;
}

.instruction-image-modal {
    width: min(980px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 8px;
    background: rgba(5, 10, 24, 0.98);
    color: var(--text);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
}

.instruction-image-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.instruction-image-modal-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
}

.instruction-image-modal-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.instruction-image-modal-card button {
    min-height: 36px;
    padding: 0 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.86);
    color: #e2e8f0;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.instruction-image-modal-stage {
    display: grid;
    max-height: calc(100dvh - 7rem);
    place-items: center;
    overflow: auto;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.72);
}

.instruction-image-modal-stage img {
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 8rem);
    object-fit: contain;
}

.social-hero {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 45%, rgba(236, 72, 153, 0.2), transparent 12rem),
        radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.12), transparent 14rem),
        linear-gradient(135deg, rgba(18, 18, 37, 0.96), rgba(11, 11, 22, 0.78));
    overflow: hidden;
}

.social-hero h2 {
    max-width: 760px;
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.social-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.65;
}

.social-hero-mark {
    display: grid;
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    color: #a5f3fc;
    font-size: 2.2rem;
    font-weight: 950;
}

.reseller-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.reseller-page {
    display: grid;
    gap: 1rem;
}

.reseller-topbar {
    margin-bottom: 0;
}

.reseller-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(340px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.reseller-code-card,
.reseller-guide-card,
.reseller-stat-card,
.reseller-products-panel,
.reseller-clients-panel {
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(18, 18, 37, 0.78)),
        var(--panel);
    box-shadow: 0 18px 46px rgba(4, 4, 12, 0.18);
}

.reseller-code-card,
.reseller-guide-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.reseller-code-card p,
.reseller-guide-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
    line-height: 1.55;
}

.reseller-code-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}

.reseller-code-copy strong {
    min-width: 0;
    padding: 0.85rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 8px;
    background: rgba(8, 13, 24, 0.72);
    color: #a5f3fc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.02rem;
}

.reseller-code-copy button,
.reseller-product-form button,
.client-transfer-form button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
    font-weight: 950;
    cursor: pointer;
}

.reseller-guide-card {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}

.reseller-guide-card h2 {
    margin: 0.25rem 0 0.45rem;
}

.reseller-guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.reseller-guide-steps span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 0.6rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 950;
}

.reseller-guide-visual {
    position: relative;
    display: grid;
    min-height: 118px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    align-items: end;
}

.reseller-guide-visual::before {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 24px;
    left: 10px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #38bdf8, #a855f7);
}

.reseller-guide-visual span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    color: #a5f3fc;
    font-weight: 950;
}

.reseller-guide-visual span:nth-child(2) {
    align-self: center;
}

.reseller-guide-visual span:nth-child(3) {
    align-self: start;
}

.reseller-stat-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-height: 118px;
}

.reseller-stat-card strong,
.reseller-stat-card span:not(.stat-icon) {
    display: block;
}

.reseller-stat-card strong {
    font-size: 1.4rem;
}

.reseller-stat-card span:not(.stat-icon) {
    color: var(--muted);
    font-weight: 900;
}

.stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
}

.stat-icon.green {
    background: linear-gradient(135deg, #059669, #22c55e);
}

.stat-icon.pink {
    background: linear-gradient(135deg, #f43f5e, #8b5cf6);
}

.stat-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.reseller-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.55rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.76);
}

.reseller-tabs a,
.reseller-tabs button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 0.8rem;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    color: #bfdbfe;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.reseller-tabs a:hover,
.reseller-tabs button:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: white;
}

.reseller-filterbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, auto);
    gap: 0.6rem;
    width: min(560px, 100%);
}

.reseller-filterbar input,
.reseller-filterbar select,
.reseller-search,
.reseller-product-form input,
.client-transfer-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 8px;
    background: rgba(14, 14, 31, 0.78);
    color: var(--text);
    font: inherit;
    font-weight: 800;
}

.reseller-filterbar input,
.reseller-search,
.reseller-product-form input,
.client-transfer-form input {
    padding: 0 0.75rem;
}

.reseller-filterbar select {
    padding: 0 0.65rem;
}

.reseller-products-list,
.reseller-client-grid {
    display: grid;
    gap: 0.9rem;
}

.reseller-product-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.84));
}

.reseller-product-card[hidden],
.reseller-client-card[hidden] {
    display: none;
}

.reseller-product-main {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.reseller-product-image {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.reseller-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reseller-product-image strong {
    color: #a5f3fc;
    font-size: 1.5rem;
}

.reseller-product-main h3,
.reseller-client-card h3 {
    margin: 0;
    line-height: 1.25;
}

.reseller-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.reseller-product-tags span,
.client-note {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    width: fit-content;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 950;
}

.reseller-product-tags .active,
.client-note {
    background: rgba(34, 197, 94, 0.13);
    color: #86efac;
}

.reseller-product-tags .inactive {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
}

.reseller-price-metrics,
.client-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.reseller-price-metrics span,
.client-card-metrics span {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(51, 65, 85, 0.62);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.reseller-price-metrics strong,
.client-card-metrics strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.98rem;
}

.reseller-price-metrics .profit {
    background: rgba(20, 184, 166, 0.14);
    color: #86efac;
}

.reseller-price-metrics .profit strong {
    color: #5eead4;
}

.reseller-product-form {
    display: grid;
    grid-template-columns: minmax(190px, 0.85fr) minmax(170px, 1fr) minmax(150px, 0.7fr) auto;
    gap: 0.65rem;
    align-items: end;
}

.reseller-product-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
}

.switch-row {
    min-height: 42px;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    padding: 0 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background: rgba(14, 14, 31, 0.6);
    color: #dbeafe;
    font-size: 0.85rem;
}

.switch-row input {
    width: 16px;
    min-height: 16px;
    accent-color: #22d3ee;
}

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

.reseller-search {
    max-width: 360px;
}

.reseller-client-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(17, 24, 39, 0.84)),
        var(--panel);
}

.client-card-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.client-card-head small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    color: white;
    font-weight: 950;
}

.client-transfer-form {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(150px, 1fr) auto;
    gap: 0.55rem;
}

.reseller-products-panel .empty,
.reseller-clients-panel .empty {
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    color: var(--muted);
}

.reseller-page {
    padding-bottom: 6.75rem;
}

.reseller-dashboard-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 1rem;
    align-items: stretch;
}

.reseller-dashboard-head h1 {
    margin: 0.25rem 0 0.4rem;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.reseller-dashboard-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.reseller-balance-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(30, 41, 59, 0.74)),
        var(--panel);
    box-shadow: 0 16px 42px rgba(4, 4, 12, 0.2);
}

.reseller-balance-card span,
.reseller-balance-card small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.reseller-balance-card strong {
    color: #e0f2fe;
    font-size: 1.7rem;
}

.reseller-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.reseller-kpi-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-height: 104px;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.78), rgba(18, 18, 37, 0.78)),
        var(--panel);
}

.reseller-kpi-card strong,
.reseller-kpi-card span:not(.stat-icon),
.reseller-kpi-card small {
    display: block;
}

.reseller-kpi-card strong {
    font-size: 1.5rem;
    line-height: 1.1;
}

.reseller-kpi-card span:not(.stat-icon) {
    font-weight: 950;
}

.reseller-kpi-card small {
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 750;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #2563eb, #22d3ee);
}

.reseller-info-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(340px, 1fr);
    gap: 0.85rem;
}

.reseller-code-card.compact,
.reseller-guide-card.compact {
    min-height: 0;
    padding: 0.85rem;
}

.reseller-guide-card.compact {
    grid-template-columns: 1fr;
}

.reseller-guide-card.compact .reseller-guide-visual {
    min-height: 82px;
}

.reseller-guide-card.compact h2 {
    font-size: 1rem;
}

.referral-link {
    font-size: 0.82rem;
}

.reseller-earning-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.7rem 0;
}

.reseller-earning-flow span {
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.64);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
}

.reseller-earning-flow strong {
    color: #a5f3fc;
    font-size: 0.95rem;
}

.reseller-workbench,
.reseller-table-card,
.reseller-compact-card {
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18, 18, 37, 0.94), rgba(10, 10, 22, 0.92)),
        var(--panel);
    box-shadow: 0 18px 52px rgba(4, 4, 12, 0.2);
}

.reseller-workbench {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    font-size: 1rem;
}

.reseller-tab-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: clamp(520px, 64vh, 760px);
    min-width: 0;
}

.reseller-tab-panel[hidden] {
    display: none;
}

.reseller-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
    min-width: 0;
    margin-bottom: 0.75rem;
}

.reseller-panel-head h2 {
    margin: 0.25rem 0 0;
}

.reseller-mobile-editor-open,
.reseller-fullscreen-head {
    display: none;
}

.reseller-mobile-editor-open,
.reseller-fullscreen-close {
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.88));
    color: white;
    font-size: 0.9rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.24);
}

.reseller-fullscreen-close {
    display: inline-flex;
    min-width: 92px;
    padding: 0 0.9rem;
    background: rgba(15, 23, 42, 0.78);
}

.reseller-workbench-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.reseller-workbench .reseller-filterbar {
    grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(105px, 0.45fr));
    min-width: 0;
    width: 100%;
}

.reseller-row-limit {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 950;
}

.reseller-workbench .reseller-filterbar input,
.reseller-workbench .reseller-filterbar select,
.reseller-workbench .reseller-search,
.reseller-row-limit select {
    width: 100%;
    min-width: 0;
    font-size: 0.92rem;
}

.reseller-workbench .reseller-tabs {
    min-width: max-content;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(15, 23, 42, 0.72);
    scrollbar-width: thin;
}

.reseller-workbench .reseller-tabs a,
.reseller-workbench .reseller-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0;
    background: transparent;
    color: #dbeafe;
    font-size: 0.95rem;
    white-space: nowrap;
}

.reseller-workbench .reseller-tabs a.active,
.reseller-workbench .reseller-tabs button.active,
.reseller-workbench .reseller-tabs a:hover,
.reseller-workbench .reseller-tabs button:hover {
    background: rgba(37, 99, 235, 0.22);
    color: white;
    box-shadow: inset 0 -2px 0 #3b82f6;
}

.reseller-table-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
}

.reseller-table-scroll {
    min-height: 0;
    overflow: auto;
}

.reseller-products-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.reseller-products-table th,
.reseller-products-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    vertical-align: middle;
}

.reseller-products-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: none;
}

.reseller-products-table tr {
    transition: background 160ms ease, box-shadow 160ms ease;
}

.reseller-products-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.reseller-products-table tr.is-dirty {
    background: rgba(245, 158, 11, 0.07);
    box-shadow: inset 3px 0 0 #f59e0b;
}

.reseller-product-cell {
    display: grid;
    grid-template-columns: 10px 38px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    min-width: 230px;
}

.dirty-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
}

tr.is-dirty .dirty-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.reseller-product-thumb {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.reseller-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reseller-product-thumb strong {
    color: #a5f3fc;
}

.reseller-product-cell strong,
.reseller-product-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reseller-product-cell small {
    max-width: 260px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.reseller-product-cell strong {
    font-size: 0.95rem;
}

.reseller-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 950;
}

.reseller-price-control {
    display: grid;
    grid-template-columns: 20px minmax(92px, 1fr);
    align-items: center;
    width: 160px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
}

.reseller-price-control span {
    color: #bfdbfe;
    font-weight: 950;
    text-align: center;
}

.reseller-price-control input {
    width: 100%;
    min-height: 36px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 950;
    outline: 0;
}

.reseller-profit {
    color: #5eead4;
    white-space: nowrap;
}

.reseller-switch {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 24px;
    align-items: center;
}

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

.reseller-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.45);
    cursor: pointer;
    transition: background 160ms ease;
}

.reseller-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: white;
    transition: transform 160ms ease;
}

.reseller-switch input:checked + span {
    background: linear-gradient(135deg, #2563eb, #22d3ee);
}

.reseller-switch input:checked + span::after {
    transform: translateX(20px);
}

.reseller-row-action {
    min-height: 32px;
    padding: 0 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
}

.reseller-row-action:hover {
    border-color: rgba(34, 211, 238, 0.36);
    color: white;
}

.reseller-table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.draft-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 0.6rem;
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    font-size: 0.76rem;
}

.draft-status.has-changes {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
}

.reseller-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 1rem;
}

.reseller-compact-card {
    min-width: 0;
}

.reseller-client-list {
    display: grid;
    gap: 0.65rem;
    min-height: 0;
    align-content: start;
    overflow: auto;
    padding-right: 0.15rem;
}

.reseller-client-list.is-empty,
.reseller-transfer-shell.is-empty {
    display: grid;
    place-items: center;
    align-content: center;
}

.reseller-client-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) minmax(260px, 0.95fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.52);
    font-size: 0.92rem;
}

.client-card-head.compact {
    grid-template-columns: 42px minmax(0, 1fr);
}

.client-card-head.compact .client-avatar {
    width: 42px;
    height: 42px;
}

.client-card-head.compact h3 {
    margin: 0;
    font-size: 1rem;
}

.client-row-meta {
    display: grid;
    grid-template-columns: minmax(90px, 0.7fr) minmax(130px, 1fr) minmax(90px, 0.7fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.client-row-meta span:not(.badge) {
    display: grid;
    gap: 0.15rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.client-row-meta strong {
    color: var(--text);
}

.client-transfer-form.compact {
    grid-template-columns: minmax(100px, 1fr) auto;
}

.reseller-mini-table {
    min-width: 620px;
    font-size: 0.92rem;
}

.reseller-transfer-shell {
    min-height: 0;
    overflow: auto;
}

.empty-state {
    display: grid;
    min-height: 70px;
    width: 100%;
    place-items: center;
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.reseller-savebar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: calc(280px + 1rem);
    z-index: 86;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.92), rgba(49, 46, 129, 0.94)),
        var(--panel);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.46);
}

.reseller-savebar[hidden] {
    display: none;
}

.reseller-savebar strong,
.reseller-savebar small {
    display: block;
}

.reseller-savebar small {
    margin-top: 0.25rem;
    color: #c7d2fe;
    font-weight: 750;
}

.reseller-savebar .savebar-error {
    color: #fecaca;
}

.reseller-savebar-actions {
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(180px, auto);
    gap: 0.75rem;
}

.reseller-savebar-actions button {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 950;
    cursor: pointer;
}

.reseller-savebar-actions button:first-child {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.32);
    color: #e0e7ff;
}

.reseller-savebar-actions button:last-child {
    border: 0;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: white;
}

.reseller-savebar-actions button:disabled {
    cursor: wait;
    opacity: 0.68;
}

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

.social-card {
    position: relative;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 118px;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 3px solid var(--accent);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(25, 25, 51, 0.9), rgba(18, 18, 37, 0.72));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 12rem);
    opacity: 0.5;
    pointer-events: none;
}

.social-card > * {
    position: relative;
}

.social-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
}

.social-icon svg {
    width: 1.9rem;
    height: 1.9rem;
}

.social-icon-instagram {
    background: linear-gradient(135deg, #ff7a18, #ef3b75 55%, #8b5cf6);
}

.social-icon-facebook {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.social-icon-x {
    background: linear-gradient(135deg, #111827, #64748b);
}

.social-icon-tiktok {
    background: linear-gradient(135deg, #22d3ee, #ec4899);
}

.social-icon-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.social-icon-support {
    background: linear-gradient(135deg, #3b82f6, #10b981);
}

.social-icon-youtube {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.social-icon-telegram {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.social-icon-discord {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.social-icon-mail {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.social-icon-web {
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
}

.social-copy {
    min-width: 0;
}

.social-copy strong,
.social-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-copy strong {
    font-size: 1.12rem;
}

.social-copy small {
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 800;
}

.open-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.14);
    color: #a5f3fc;
    font-size: 0.78rem;
    font-weight: 950;
}

.mini-products {
    display: grid;
    gap: 0.65rem;
}

.mini-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.72);
}

.mini-product span {
    display: block;
    color: var(--muted);
}

.mini-product input,
.mini-product button {
    min-height: 38px;
    border-radius: 8px;
}

.mini-product input {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.mini-product button {
    border: 0;
    background: var(--action-gradient);
    color: white;
    font-weight: 900;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap > table {
    min-width: 680px;
}

.delivery-box {
    display: grid;
    gap: 0.35rem;
    min-width: 260px;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.delivery-box.ready {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
}

.delivery-box pre {
    max-width: 520px;
    margin: 0;
    padding: 0.65rem;
    overflow: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
    font: 0.88rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

.delivery-box small {
    color: var(--muted);
}

.order-history-panel {
    max-width: 1180px;
}

.order-history-list {
    display: grid;
    gap: 0.75rem;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 8px;
    background: rgba(18, 18, 37, 0.72);
}

.order-row-main {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.order-row-main strong,
.order-row-main span,
.order-row-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-row-main span,
.order-row-main small {
    color: var(--muted);
}

.order-row b {
    color: #99f6e4;
    white-space: nowrap;
}

.order-details-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.order-details-modal[hidden] {
    display: none;
}

.order-details-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.order-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(7px);
}

.order-details-card {
    position: relative;
    display: grid;
    width: min(1020px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(15, 23, 42, 0.98)),
        var(--panel);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.order-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.order-details-head h2 {
    margin: 0 0 0.2rem;
}

.order-details-head span {
    color: var(--muted);
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.35rem;
}

.order-summary-grid article {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    min-height: 138px;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.13);
}

.order-summary-grid h3,
.order-summary-grid p,
.order-products-head h3 {
    margin: 0;
}

.order-summary-grid p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.order-summary-grid span,
.order-summary-grid small {
    color: var(--muted);
}

.order-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.35rem 0.7rem;
}

.order-details-items {
    display: grid;
    gap: 0.9rem;
    padding: 0 1.35rem 1.35rem;
}

.order-detail-item {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.13);
}

.order-detail-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.order-detail-item-head small,
.order-detail-item-head strong,
.order-detail-item-head b {
    display: block;
}

.order-detail-item-head small {
    color: var(--muted);
}

.order-detail-item-head b {
    margin-bottom: 0.35rem;
    color: var(--text);
    text-align: right;
}

.order-detail-item .delivery-box {
    min-width: 0;
    background: rgba(15, 23, 42, 0.48);
}

.order-detail-item .delivery-box label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.copy-delivery-button {
    justify-self: end;
    border: 0;
    cursor: pointer;
}

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

th,
td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.badge.pending,
.badge.processing {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.badge.completed,
.badge.approved,
.badge.delivered {
    background: rgba(34, 197, 94, 0.13);
    color: #86efac;
}

.badge.cancelled,
.badge.rejected,
.badge.refunded {
    background: rgba(239, 68, 68, 0.13);
    color: #fca5a5;
}

.home-page {
    padding-bottom: 5rem;
}

.home-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.home-welcome,
.home-balance-card,
.home-promo-hero,
.quick-action-card,
.home-widget {
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(18, 18, 37, 0.94), rgba(8, 8, 20, 0.86)),
        var(--panel);
    box-shadow: 0 20px 58px rgba(4, 4, 12, 0.24);
}

.home-welcome {
    display: grid;
    align-content: center;
    min-height: 116px;
    padding: 1.15rem;
}

.home-welcome h1,
.home-welcome p,
.home-widget h2,
.home-widget p {
    margin: 0;
}

.home-welcome h1 {
    margin-top: 0.35rem;
    font-size: 1.6rem;
    line-height: 1.15;
}

.home-welcome p {
    margin-top: 0.45rem;
    color: var(--muted);
    font-weight: 760;
}

.home-balance-card {
    position: relative;
    display: grid;
    gap: 0.28rem;
    align-content: center;
    min-height: 116px;
    overflow: hidden;
    padding: 1.15rem 5.2rem 1.15rem 1.15rem;
}

.home-balance-card::before {
    content: "";
    position: absolute;
    inset: auto -44px -52px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 64%);
    pointer-events: none;
}

.home-balance-card span,
.home-balance-card small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.home-balance-card strong {
    color: #f8fafc;
    font-size: 1.35rem;
}

.home-balance-card b {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
    transform: translateY(-50%);
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.28);
}

.home-balance-card svg,
.quick-action-icon svg,
.announcement-icon svg,
.referral-art svg,
.tip-list svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 1rem;
    align-items: start;
}

.home-main,
.home-sidebar {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.home-sidebar {
    position: sticky;
    top: 1rem;
}

.home-promo-hero {
    position: relative;
    display: grid;
    min-height: 270px;
    grid-template-columns: minmax(250px, 0.46fr) minmax(0, 1fr);
    overflow: hidden;
    isolation: isolate;
}

.home-promo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 75% 26%, rgba(34, 211, 238, 0.2), transparent 14rem),
        radial-gradient(circle at 24% 88%, rgba(139, 92, 246, 0.18), transparent 13rem),
        linear-gradient(90deg, rgba(5, 5, 14, 0.96) 0%, rgba(9, 9, 22, 0.72) 48%, rgba(5, 7, 15, 0.94) 100%);
}

.home-promo-slide {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(250px, 0.46fr) minmax(0, 1fr);
    min-height: 270px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}

.home-promo-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.home-promo-content {
    display: grid;
    align-content: center;
    padding: 1.4rem;
}

.promo-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.home-promo-content h2 {
    margin: 0.65rem 0 0.45rem;
    background: linear-gradient(90deg, #f8fafc 0%, #a5f3fc 52%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.05rem;
    line-height: 1.02;
    text-transform: uppercase;
}

.home-promo-content p {
    max-width: 320px;
    margin: 0;
    color: #cbd5e1;
    font-weight: 760;
    line-height: 1.6;
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.promo-stage {
    position: relative;
    display: grid;
    align-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 1.25rem;
}

.promo-stage.has-banner-image {
    min-height: 270px;
    padding: 0;
}

.promo-stage.has-banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 14, 0.12), rgba(5, 5, 14, 0.5)),
        linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.44));
    pointer-events: none;
}

.promo-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-screen-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.8rem;
    min-width: 640px;
    transform: perspective(900px) rotateY(-10deg) rotateX(2deg);
}

.promo-service-tile {
    position: relative;
    display: grid;
    height: 166px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.12), transparent 4rem),
        linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.92));
    color: white;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.promo-service-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 26%, rgba(0, 0, 0, 0.46));
}

.promo-service-tile.has-promo-image::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    background-image: var(--promo-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.promo-service-tile strong,
.promo-service-tile i {
    position: relative;
    z-index: 1;
    max-width: 90%;
    overflow: hidden;
    font-size: 1.15rem;
    font-style: normal;
    font-weight: 950;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo-tile-1 {
    background-color: rgba(127, 29, 29, 0.8);
}

.promo-tile-2 {
    background-color: rgba(30, 64, 175, 0.8);
}

.promo-tile-3 {
    background-color: rgba(14, 116, 144, 0.72);
}

.promo-validity {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 2;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.76);
    color: #fde68a;
    font-size: 0.74rem;
    font-weight: 950;
}

.promo-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    pointer-events: none;
}

.promo-dots {
    display: flex;
    gap: 0.45rem;
}

.promo-arrow,
.promo-dot {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: white;
    cursor: pointer;
    pointer-events: auto;
}

.promo-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    font-size: 1.1rem;
    line-height: 1;
}

.promo-dot {
    width: 18px;
    height: 7px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0.66;
}

.promo-dot.is-active {
    opacity: 1;
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
}

.home-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.quick-action-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.18rem 0.7rem;
    align-items: center;
    min-height: 96px;
    padding: 0.85rem;
}

.quick-action-card strong,
.quick-action-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-action-card small {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.quick-action-card b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.quick-action-icon,
.announcement-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--action-gradient);
    color: white;
    box-shadow: 0 14px 32px rgba(34, 211, 238, 0.18);
}

.quick-action-icon.small {
    width: 34px;
    height: 34px;
}

.quick-action-icon.blue {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.quick-action-icon.green {
    background: linear-gradient(135deg, #14b8a6, #10b981);
}

.quick-action-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.quick-action-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.home-announcements,
.home-featured-products,
.home-combos,
.home-recent-activity {
    min-width: 0;
}

.announcement-list,
.tip-list {
    display: grid;
    gap: 0.75rem;
}

.announcement-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.announcement-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.announcement-item h3,
.announcement-item p {
    margin: 0;
}

.announcement-item h3 {
    margin-top: 0.22rem;
    font-size: 0.95rem;
}

.announcement-item p {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.announcement-item time {
    align-self: start;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.announcement-badge,
.combo-badge {
    display: inline-flex;
    width: fit-content;
    min-height: 22px;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.11);
    color: #67e8f9;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.announcement-maintenance .announcement-icon {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.announcement-important .announcement-icon {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.announcement-new .announcement-icon {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.announcement-info .announcement-icon {
    background: linear-gradient(135deg, #64748b, #0f172a);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-product-card,
.home-combo-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(18, 18, 37, 0.98), rgba(9, 9, 22, 0.98)),
        var(--panel);
}

.home-product-image {
    position: relative;
    display: grid;
    height: 112px;
    place-items: center;
    overflow: hidden;
    background: #020617;
}

.home-product-image.has-product-image::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    background-image: var(--product-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.home-product-image strong {
    font-size: 2.3rem;
}

.home-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.72rem;
}

.home-product-body h3,
.home-combo-card h3,
.home-combo-card p {
    margin: 0;
}

.home-product-body h3,
.home-combo-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: auto;
}

.home-product-foot strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-product-foot .btn.small {
    min-height: 32px;
    padding: 0.36rem 0.58rem;
    font-size: 0.78rem;
}

.home-combo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-combo-card {
    min-height: 178px;
    padding: 0.75rem;
}

.home-combo-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 760;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-combo-visual {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 0.45rem;
    margin: 0.65rem 0;
}

.home-combo-visual span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef4444, #0f172a);
}

.home-combo-visual span:nth-child(3) {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.home-combo-visual span:nth-child(4) {
    background: linear-gradient(135deg, #14b8a6, #0f172a);
}

.home-combo-visual strong {
    color: white;
    font-size: 1.2rem;
}

.home-activity-table {
    overflow-x: auto;
}

.home-activity-table table {
    min-width: 720px;
}

.home-activity-table th,
.home-activity-table td {
    white-space: nowrap;
}

.home-widget {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.widget-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.widget-head h2 {
    flex: 1;
    font-size: 1rem;
}

.widget-head b {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    font-size: 0.72rem;
}

.sales-goal-widget {
    justify-items: center;
    text-align: center;
}

.sales-goal-widget .widget-head {
    justify-self: stretch;
}

.goal-ring {
    display: grid;
    width: 126px;
    height: 126px;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(18, 18, 37, 1) 56%, transparent 57%),
        conic-gradient(#22d3ee 0 var(--goal-progress), #8b5cf6 var(--goal-progress), rgba(148, 163, 184, 0.16) 0);
    box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.1), 0 14px 38px rgba(0, 0, 0, 0.22);
}

.goal-ring strong {
    font-size: 1.55rem;
}

.sales-goal-widget > span,
.sales-goal-widget p {
    color: var(--muted);
}

.sales-goal-widget p strong {
    color: #f8fafc;
}

.tip-list article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
}

.tip-list article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #c4b5fd;
}

.tip-list strong,
.tip-list small {
    display: block;
}

.tip-list small {
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 740;
    line-height: 1.35;
}

.referral-promo-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    align-content: center;
    background:
        radial-gradient(circle at 78% 58%, rgba(34, 211, 238, 0.25), transparent 7rem),
        radial-gradient(circle at 92% 14%, rgba(236, 72, 153, 0.18), transparent 8rem),
        linear-gradient(135deg, rgba(18, 18, 37, 0.98), rgba(9, 9, 22, 0.98));
}

.referral-promo-card p {
    max-width: 210px;
    margin: 0.45rem 0 1rem;
    color: #dbeafe;
    font-weight: 760;
    line-height: 1.45;
}

.referral-art {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 2px solid rgba(34, 211, 238, 0.54);
    border-radius: 999px;
    color: #67e8f9;
    opacity: 0.92;
}

.referral-art svg {
    width: 2.35rem;
    height: 2.35rem;
}

@media (max-width: 980px) {
    .dashboard-body,
    .dashboard-grid,
    .account-layout,
    .home-header,
    .home-grid,
    .home-promo-hero,
    .home-promo-slide,
    .featured-product-grid,
    .funds-layout,
    .reseller-dashboard-head,
    .reseller-hero,
    .reseller-info-grid,
    .reseller-panel-head,
    .reseller-workbench-toolbar,
    .reseller-lower-grid,
    .reseller-summary-grid,
    .reseller-client-grid,
    .social-grid,
    .order-summary-grid {
        grid-template-columns: 1fr;
    }

    .featured-product-grid {
        grid-template-columns: repeat(2, minmax(0, 320px));
    }

    .home-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-quick-actions,
    .home-product-grid,
    .home-combo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-screen-row {
        min-width: 520px;
    }

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

    .payment-data-grid {
        grid-template-columns: 1fr;
    }

    .client-sidebar {
        position: static;
        height: auto;
    }

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

    .sidebar-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .sidebar-profile {
        grid-column: 1 / -1;
    }

    .reseller-product-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reseller-product-form button {
        grid-column: 1 / -1;
    }

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

    .client-transfer-form button {
        grid-column: 1 / -1;
    }

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

    .reseller-client-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .reseller-savebar {
        left: 1rem;
    }

    .social-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1180px) {
    .reseller-panel-head {
        grid-template-columns: 1fr;
    }

    .reseller-workbench .reseller-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reseller-row-limit {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-topbar,
    .section-head,
    .featured-empty,
    .order-detail-item-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-main {
        padding: 4.2rem 0.75rem 0.75rem;
    }

    .dashboard-topbar .btn,
    .dashboard-topbar .currency-chip {
        width: 100%;
        justify-content: center;
    }

    .table-wrap > table {
        min-width: 640px;
    }

    .home-page {
        padding-bottom: 5.5rem;
    }

    .home-header,
    .home-grid,
    .home-promo-hero,
    .home-sidebar {
        grid-template-columns: 1fr;
    }

    .home-welcome,
    .home-balance-card {
        min-height: 0;
        padding: 1rem;
    }

    .home-balance-card {
        padding-right: 4.7rem;
    }

    .home-welcome h1 {
        font-size: 1.35rem;
    }

    .home-promo-hero {
        min-height: 0;
    }

    .home-promo-slide {
        min-height: 0;
    }

    .home-promo-content {
        padding: 1rem;
    }

    .home-promo-content h2 {
        font-size: 1.62rem;
    }

    .promo-stage {
        min-height: 168px;
        padding: 0 0.8rem 1rem;
    }

    .promo-stage.has-banner-image {
        min-height: 188px;
    }

    .promo-screen-row {
        min-width: 460px;
        gap: 0.55rem;
        transform: perspective(800px) rotateY(-8deg);
    }

    .promo-service-tile {
        height: 122px;
    }

    .promo-validity {
        right: 0.8rem;
        top: 0.5rem;
        font-size: 0.68rem;
    }

    .home-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.58rem;
    }

    .quick-action-card {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 86px;
        padding: 0.72rem;
    }

    .quick-action-card b {
        display: none;
    }

    .quick-action-card small {
        grid-column: 2;
        white-space: normal;
    }

    .quick-action-icon {
        width: 38px;
        height: 38px;
    }

    .announcement-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .announcement-item time {
        grid-column: 2;
    }

    .home-sidebar {
        gap: 0.75rem;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 0.75rem;
        min-height: 0;
        padding: 0.85rem;
    }

    .social-icon {
        width: 48px;
        height: 48px;
    }

    .open-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .social-hero h2 {
        font-size: 1.7rem;
        line-height: 1.15;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .home-widget {
        padding: 0.85rem;
    }

    .goal-ring {
        width: 108px;
        height: 108px;
    }

    .client-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        width: min(310px, calc(100vw - 3.25rem));
        height: 100dvh;
        overflow-y: auto;
        padding: 0.85rem;
        transform: translateX(-104%);
        transition: transform 200ms ease;
        box-shadow: 24px 0 70px rgba(0, 0, 0, 0.42);
    }

    .mobile-menu-is-open .client-sidebar {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        position: fixed;
        top: 0.85rem;
        left: 0.85rem;
        z-index: 95;
        display: grid;
        width: 44px;
        height: 44px;
        align-content: center;
        gap: 4px;
        place-items: center;
        border: 1px solid rgba(34, 211, 238, 0.28);
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.94);
        color: white;
        box-shadow: 0 12px 34px rgba(4, 4, 12, 0.28);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-menu-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.72);
        color: #e2e8f0;
        font-size: 1.45rem;
        line-height: 1;
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        background: rgba(0, 0, 0, 0.56);
        backdrop-filter: blur(4px);
    }

    .mobile-sidebar-backdrop[hidden] {
        display: none;
    }

    .sidebar-brand {
        margin-right: 2.5rem;
        margin-bottom: 1rem;
    }

    .side-nav,
    .sidebar-bottom,
    .reseller-filterbar,
    .reseller-workbench .reseller-filterbar,
    .reseller-kpi-grid,
    .reseller-product-form,
    .reseller-price-metrics,
    .client-card-metrics,
    .client-transfer-form,
    .client-row-meta,
    .client-transfer-form.compact,
    .reseller-savebar,
    .reseller-savebar-actions {
        grid-template-columns: 1fr;
    }

    .reseller-tabs a,
    .reseller-tabs button {
        flex: 1 1 auto;
    }

    .reseller-workbench {
        padding: 0.65rem;
    }

    .reseller-mobile-editor-open {
        display: inline-flex;
        width: 100%;
        margin-top: 0.7rem;
        padding: 0 0.85rem;
    }

    .reseller-tab-panel {
        height: min(680px, 78dvh);
        min-height: 540px;
    }

    body.reseller-products-fullscreen-open {
        overflow: hidden;
    }

    body.reseller-products-fullscreen-open .reseller-savebar {
        z-index: 10020;
    }

    .reseller-tab-panel.is-mobile-fullscreen {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        height: 100dvh;
        min-height: 0;
        padding: 0.75rem;
        padding-bottom: 7rem;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background:
            radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.18), transparent 34%),
            linear-gradient(180deg, rgba(12, 12, 28, 0.99), rgba(5, 5, 14, 0.99));
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-fullscreen-head {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        margin: -0.75rem -0.75rem 0.75rem;
        padding: 0.82rem 0.75rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        background: rgba(9, 9, 22, 0.96);
        backdrop-filter: blur(14px);
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-fullscreen-head h2 {
        margin: 0.2rem 0 0;
        font-size: 1.05rem;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-panel-head {
        padding: 0.75rem;
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.7);
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-mobile-editor-open {
        display: none;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-table-card {
        min-height: 0;
        overflow: visible;
        border-color: rgba(34, 211, 238, 0.18);
        background: rgba(10, 10, 22, 0.78);
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-table-scroll {
        overflow: visible;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-products-table tbody {
        gap: 0.95rem;
        padding: 0.85rem;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-products-table tr {
        border-color: rgba(148, 163, 184, 0.2);
        background: rgba(15, 23, 42, 0.9);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-products-table td {
        grid-template-columns: minmax(88px, 0.36fr) minmax(0, 1fr);
        padding: 0.76rem 0.8rem;
        font-size: 0.96rem;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-product-cell {
        grid-template-columns: 10px 46px minmax(0, 1fr);
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-product-thumb {
        width: 46px;
        height: 46px;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-price-control {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 48px;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-price-control input {
        min-height: 48px;
        font-size: 1.06rem;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-switch {
        width: 58px;
        height: 32px;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-switch span::after {
        top: 4px;
        left: 4px;
        width: 24px;
        height: 24px;
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-switch input:checked + span::after {
        transform: translateX(26px);
    }

    .reseller-tab-panel.is-mobile-fullscreen .reseller-row-action {
        width: 100%;
        min-height: 42px;
        font-size: 0.92rem;
    }

    .reseller-panel-head {
        align-items: stretch;
        gap: 0.75rem;
    }

    .reseller-workbench .reseller-tabs {
        min-width: 0;
        overflow-x: auto;
    }

    .reseller-workbench .reseller-tabs a,
    .reseller-workbench .reseller-tabs button {
        flex: 0 0 auto;
        padding: 0 0.9rem;
    }

    .reseller-workbench .reseller-filterbar {
        gap: 0.55rem;
    }

    .reseller-code-copy,
    .reseller-guide-card,
    .reseller-guide-card.compact,
    .reseller-product-main,
    .client-card-head {
        grid-template-columns: 1fr;
    }

    .reseller-code-copy button {
        width: 100%;
    }

    .reseller-guide-visual {
        min-height: 82px;
        width: min(220px, 100%);
    }

    .reseller-product-image,
    .client-avatar {
        justify-self: start;
    }

    .reseller-search {
        max-width: none;
    }

    .reseller-products-table,
    .reseller-products-table thead,
    .reseller-products-table tbody,
    .reseller-products-table tr,
    .reseller-products-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .reseller-products-table thead {
        display: none;
    }

    .reseller-products-table tbody {
        display: grid;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .reseller-products-table tr {
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.74);
    }

    .reseller-products-table tr[hidden] {
        display: none;
    }

    .reseller-products-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.65rem;
        align-items: center;
        padding: 0.62rem 0.75rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        font-size: 0.91rem;
    }

    .reseller-products-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 950;
    }

    .reseller-products-table td:first-child {
        grid-template-columns: 1fr;
    }

    .reseller-products-table td:first-child::before {
        display: none;
    }

    .reseller-product-cell {
        grid-template-columns: 10px 42px minmax(0, 1fr);
        min-width: 0;
    }

    .reseller-product-cell small {
        max-width: none;
        white-space: normal;
    }

    .reseller-price-control {
        width: 100%;
    }

    .reseller-table-foot,
    .reseller-dashboard-head,
    .reseller-workbench-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .reseller-workbench .reseller-tabs {
        min-width: 0;
    }

    .reseller-earning-flow {
        grid-template-columns: 1fr;
    }

    .reseller-savebar {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .order-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .order-row .btn,
    .order-row b {
        justify-self: start;
    }

    .order-details-card {
        max-height: calc(100dvh - 1rem);
    }

    .featured-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: stretch;
    }

    .quick-product-card {
        min-height: 236px;
    }

    .quick-product-image {
        flex-basis: 92px;
    }

    .quick-product-body {
        gap: 0.34rem;
        padding: 0.58rem;
    }

    .quick-product-body h3 {
        font-size: 0.8rem;
    }

    .quick-product-body p {
        display: none;
    }

    .quick-product-foot {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .quick-product-foot .btn.small {
        width: 100%;
        min-height: 30px;
        padding-inline: 0.35rem;
        font-size: 0.74rem;
    }

    .home-product-grid,
    .home-combo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.58rem;
    }

    .home-product-card {
        min-height: 205px;
    }

    .home-product-image {
        height: 86px;
    }

    .home-product-body,
    .home-combo-card {
        padding: 0.58rem;
    }

    .home-product-body h3,
    .home-combo-card h3 {
        font-size: 0.8rem;
    }

    .home-product-foot {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .home-product-foot strong {
        white-space: normal;
    }

    .home-product-foot .btn.small {
        width: 100%;
        min-height: 30px;
        padding-inline: 0.35rem;
        font-size: 0.74rem;
    }

    .home-combo-card {
        min-height: 160px;
    }

    .home-combo-visual {
        min-height: 34px;
        margin: 0.45rem 0;
    }

    .home-combo-visual span {
        width: 24px;
        height: 24px;
    }

    .quick-product-card {
        max-width: none;
    }

    .balance-card {
        min-width: 0;
    }

    .payment-detail-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .proof-chip {
        width: fit-content;
    }

    .cart-fab {
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }

    .cart-drawer {
        width: 100vw;
    }

    .cart-confirm-actions {
        grid-template-columns: 1fr;
    }

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

    .cart-toast-stack {
        right: 0.75rem;
        bottom: calc(4.9rem + env(safe-area-inset-bottom));
        width: calc(100vw - 1.5rem);
    }

    .balance-code-preview,
    .balance-code-meta {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 420px) and (max-width: 640px) {
    .featured-product-grid,
    .home-product-grid,
    .home-combo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-product-card {
        min-height: 220px;
    }

    .quick-product-image {
        flex-basis: 78px;
    }
}
