/* =====================================================
   Wishstore Reseller — Premium UI
   High-end glassmorphism dashboard with animated accents
   ===================================================== */

:root {
    --rs-primary: #f59e0b;
    --rs-primary-rgb: 245,158,11;
    --rs-secondary: #ef4444;
    --rs-secondary-rgb: 239,68,68;
    --rs-accent: #ec4899;
    --rs-accent-rgb: 236,72,153;
    --rs-teal: #14b8a6;
    --rs-teal-rgb: 20,184,166;
    --rs-violet: #8b5cf6;
    --rs-violet-rgb: 139,92,246;
    --rs-dark: #06080f;
    --rs-dark-surface: #0c0f1a;
    --rs-dark-card: #111527;
    --rs-dark-elevated: #181d35;
    --rs-border: rgba(255,255,255,.07);
    --rs-border-hover: rgba(255,255,255,.14);
    --rs-text: #f1f5f9;
    --rs-text-secondary: #94a3b8;
    --rs-text-muted: #475569;
    --rs-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    --rs-gradient-teal: linear-gradient(135deg, #14b8a6, #06b6d4);
    --rs-gradient-violet: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --rs-gradient-dark: linear-gradient(180deg, #06080f 0%, #0c0f1a 100%);
    --rs-glow-amber: 0 0 30px rgba(245,158,11,.25);
    --rs-glow-teal: 0 0 30px rgba(20,184,166,.25);
    --rs-glow-violet: 0 0 30px rgba(139,92,246,.25);
    --rs-radius-sm: 10px;
    --rs-radius-md: 16px;
    --rs-radius-lg: 24px;
    --rs-radius-xl: 32px;
    --rs-font: 'Poppins', sans-serif;
    --rs-font-display: 'Sora', sans-serif;
    --rs-transition: .3s cubic-bezier(.4,0,.2,1);
    --rs-transition-fast: .15s cubic-bezier(.4,0,.2,1);
    --rs-transition-spring: .5s cubic-bezier(.34,1.56,.64,1);
}

/* ── Body background override ── */
.rs-body { background: var(--rs-dark) !important; }

/* ── Scrollbar ── */
.rs-body::-webkit-scrollbar { width: 6px; }
.rs-body::-webkit-scrollbar-track { background: var(--rs-dark); }
.rs-body::-webkit-scrollbar-thumb { background: var(--rs-dark-elevated); border-radius: 3px; }
.rs-body::-webkit-scrollbar-thumb:hover { background: var(--rs-primary); }

/* ── Animated mesh background ── */
.rs-mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.rs-mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .18;
    animation: meshFloat 20s ease-in-out infinite;
}
.rs-mesh-orb--amber  { width: 600px; height: 600px; background: var(--rs-primary); top: -10%; right: -5%; animation-delay: 0s; }
.rs-mesh-orb--red    { width: 500px; height: 500px; background: var(--rs-secondary); bottom: -8%; left: -8%; animation-delay: -5s; }
.rs-mesh-orb--pink   { width: 400px; height: 400px; background: var(--rs-accent); top: 40%; left: 30%; animation-delay: -10s; }
.rs-mesh-orb--teal   { width: 350px; height: 350px; background: var(--rs-teal); bottom: 20%; right: 15%; animation-delay: -15s; }

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 50px) scale(.95); }
    75% { transform: translate(30px, 20px) scale(1.03); }
}

/* ── Noise overlay ── */
.rs-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Grid pattern ── */
.rs-grid-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}

/* =====================================================
   AUTH PAGE
   ===================================================== */
.rs-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 100px 16px 40px;
    position: relative;
    z-index: 1;
}

.rs-auth-grid {
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* ── Showcase side ── */
.rs-showcase {
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-xl);
    padding: 40px 36px;
    background: linear-gradient(135deg, rgba(var(--rs-primary-rgb),.08) 0%, rgba(var(--rs-secondary-rgb),.05) 50%, rgba(var(--rs-accent-rgb),.08) 100%);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rs-showcase::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(var(--rs-primary-rgb),.06) 60deg, transparent 120deg, rgba(var(--rs-accent-rgb),.06) 240deg, transparent 360deg);
    animation: showcaseRotate 30s linear infinite;
}

@keyframes showcaseRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rs-showcase > * { position: relative; z-index: 1; }

.rs-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--rs-primary-rgb),.15);
    border: 1px solid rgba(var(--rs-primary-rgb),.3);
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--rs-primary);
    margin-bottom: 24px;
    width: fit-content;
}

.rs-showcase-badge i { font-size: .7rem; }

.rs-showcase-title {
    font-family: var(--rs-font-display);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.rs-showcase-title span {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-showcase-desc {
    color: var(--rs-text-secondary);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 440px;
}

/* Feature points */
.rs-features { display: grid; gap: 14px; margin-bottom: 32px; }

.rs-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    transition: var(--rs-transition);
}

.rs-feature:hover {
    border-color: rgba(var(--rs-primary-rgb),.3);
    background: rgba(var(--rs-primary-rgb),.05);
    transform: translateX(6px);
}

.rs-feature-icon {
    width: 38px; height: 38px;
    background: rgba(var(--rs-primary-rgb),.15);
    border-radius: var(--rs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rs-feature-icon i { color: var(--rs-primary); font-size: .85rem; }
.rs-feature-text { font-size: .88rem; font-weight: 500; color: var(--rs-text); }
.rs-feature-text small { display: block; color: var(--rs-text-muted); font-size: .76rem; font-weight: 400; margin-top: 2px; }

/* Tier cards */
.rs-tiers { display: grid; gap: 10px; }

.rs-tier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    transition: var(--rs-transition);
    position: relative;
    overflow: hidden;
}

.rs-tier::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--rs-gradient);
    opacity: 0;
    transition: var(--rs-transition);
}

.rs-tier:hover { border-color: rgba(var(--rs-primary-rgb),.3); }
.rs-tier:hover::before { opacity: 1; }

.rs-tier--popular {
    border-color: rgba(var(--rs-primary-rgb),.35);
    background: rgba(var(--rs-primary-rgb),.06);
}
.rs-tier--popular::before { opacity: 1; }

.rs-tier-popular-tag {
    position: absolute;
    top: 0; right: 16px;
    background: var(--rs-gradient);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 10px 4px;
    border-radius: 0 0 6px 6px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.rs-tier-info { display: flex; align-items: center; gap: 12px; }
.rs-tier-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}

.rs-tier-icon--starter { background: rgba(var(--rs-teal-rgb),.15); color: var(--rs-teal); }
.rs-tier-icon--growth  { background: rgba(var(--rs-primary-rgb),.15); color: var(--rs-primary); }
.rs-tier-icon--scale   { background: rgba(var(--rs-violet-rgb),.15); color: var(--rs-violet); }

.rs-tier-name { font-weight: 600; font-size: .9rem; }
.rs-tier-price { text-align: right; }
.rs-tier-price strong { display: block; font-size: .95rem; background: var(--rs-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rs-tier-price span { font-size: .72rem; color: var(--rs-text-muted); }

/* ── Auth card ── */
.rs-auth-card {
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-xl);
    padding: 36px;
    background: rgba(12,15,26,.85);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
}

.rs-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rs-auth-logo i {
    font-size: 1.6rem;
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-auth-logo span {
    font-family: var(--rs-font-display);
    font-size: 1.4rem;
    font-weight: 800;
}

.rs-auth-logo .rs-accent {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-auth-subtitle {
    color: var(--rs-text-muted);
    font-size: .85rem;
    margin-bottom: 24px;
}

/* Tabs */
.rs-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    padding: 4px;
    gap: 4px;
    margin-bottom: 24px;
    position: relative;
}

.rs-tab {
    text-align: center;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: .88rem;
    text-decoration: none;
    color: var(--rs-text-muted);
    font-weight: 600;
    transition: var(--rs-transition);
    position: relative;
    z-index: 1;
}

.rs-tab:hover { color: var(--rs-text-secondary); }

.rs-tab.active {
    background: var(--rs-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--rs-primary-rgb),.35);
}

/* Form */
.rs-form-group { margin-bottom: 18px; }
.rs-form-group label { display: block; font-size: .82rem; color: var(--rs-text-secondary); margin-bottom: 7px; font-weight: 500; }

.rs-input-wrap {
    position: relative;
}

.rs-input-wrap i.rs-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rs-text-muted);
    font-size: .85rem;
    transition: var(--rs-transition);
    z-index: 1;
}

.rs-input-wrap input,
.rs-input-wrap select,
.rs-input-wrap textarea {
    width: 100%;
    padding: 13px 16px 13px 42px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-sm);
    color: var(--rs-text);
    font-family: var(--rs-font);
    font-size: .88rem;
    transition: var(--rs-transition);
}

.rs-input-wrap input:focus,
.rs-input-wrap select:focus,
.rs-input-wrap textarea:focus {
    outline: none;
    border-color: rgba(var(--rs-primary-rgb),.5);
    background: rgba(255,255,255,.07);
    box-shadow: 0 0 0 3px rgba(var(--rs-primary-rgb),.1);
}

.rs-input-wrap input:focus ~ i.rs-input-icon,
.rs-input-wrap select:focus ~ i.rs-input-icon,
.rs-input-wrap textarea:focus ~ i.rs-input-icon {
    color: var(--rs-primary);
}

.rs-input-wrap input::placeholder,
.rs-input-wrap textarea::placeholder { color: var(--rs-text-muted); }

.rs-input-wrap select option { background: var(--rs-dark-card); }

/* Password toggle */
.rs-pw-toggle {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--rs-text-muted);
    cursor: pointer;
    font-size: .85rem;
    padding: 4px;
    transition: var(--rs-transition);
}
.rs-pw-toggle:hover { color: var(--rs-primary); }

/* Submit button */
.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--rs-font);
    font-size: .92rem;
    font-weight: 600;
    border-radius: var(--rs-radius-sm);
    cursor: pointer;
    transition: var(--rs-transition);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.rs-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s ease;
}

.rs-btn:hover::before { left: 100%; }

.rs-btn-primary {
    background: var(--rs-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--rs-primary-rgb),.35);
}

.rs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--rs-primary-rgb),.5);
}

.rs-btn-primary:active { transform: translateY(0); }

.rs-btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rs-btn-ghost {
    background: rgba(255,255,255,.06);
    color: var(--rs-text-secondary);
    border: 1px solid var(--rs-border);
}

.rs-btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--rs-border-hover);
    color: var(--rs-text);
}

/* Loading state */
.rs-btn.rs-loading { pointer-events: none; }
.rs-btn.rs-loading i { animation: rsSpin .8s linear infinite; }

@keyframes rsSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Alert */
.rs-alert {
    padding: 12px 16px;
    border-radius: var(--rs-radius-sm);
    font-size: .85rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: rsAlertIn .3s ease;
}

@keyframes rsAlertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rs-alert-error { background: rgba(var(--rs-secondary-rgb),.1); border: 1px solid rgba(var(--rs-secondary-rgb),.25); color: #f87171; }
.rs-alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #4ade80; }

/* Footer */
.rs-auth-foot {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--rs-text-muted);
    font-size: .78rem;
}

.rs-auth-foot a {
    color: var(--rs-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--rs-transition);
}

.rs-auth-foot a:hover { color: var(--rs-primary); }

.rs-auth-foot .rs-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rs-auth-foot .rs-secure-badge i { color: #22c55e; font-size: .7rem; }

@media (max-width: 980px) {
    .rs-auth-grid { grid-template-columns: 1fr; max-width: 520px; }
    .rs-showcase { order: 2; }
    .rs-auth-card { order: 1; }
    .rs-auth-shell { padding-top: 80px; }
    .rs-showcase-title { font-size: 1.8rem; }
}

/* =====================================================
   DASHBOARD PANEL
   ===================================================== */

/* ── Top nav ── */
.rs-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 0;
    z-index: 1000;
    transition: var(--rs-transition);
    background: rgba(6,8,15,.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rs-border);
}

.rs-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rs-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rs-font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.rs-nav-logo i {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-nav-logo .rs-accent {
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-nav-right { display: flex; align-items: center; gap: 10px; }

.rs-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--rs-radius-sm);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--rs-transition);
    border: none;
    cursor: pointer;
    font-family: var(--rs-font);
}

.rs-nav-btn--marketplace {
    background: rgba(255,255,255,.06);
    color: var(--rs-text-secondary);
    border: 1px solid var(--rs-border);
}

.rs-nav-btn--marketplace:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--rs-border-hover);
    color: var(--rs-text);
}

.rs-nav-btn--settings {
    background: rgba(var(--rs-teal-rgb),.1);
    color: var(--rs-teal);
    border: 1px solid rgba(var(--rs-teal-rgb),.2);
}

.rs-nav-btn--settings:hover {
    background: rgba(var(--rs-teal-rgb),.18);
    border-color: rgba(var(--rs-teal-rgb),.35);
}

.rs-nav-btn--store {
    background: rgba(var(--rs-primary-rgb),.1);
    color: var(--rs-primary);
    border: 1px solid rgba(var(--rs-primary-rgb),.2);
}

.rs-nav-btn--store:hover {
    background: rgba(var(--rs-primary-rgb),.18);
    border-color: rgba(var(--rs-primary-rgb),.35);
}

.rs-nav-btn--logout {
    background: rgba(var(--rs-secondary-rgb),.12);
    color: #f87171;
    border: 1px solid rgba(var(--rs-secondary-rgb),.2);
}

.rs-nav-btn--logout:hover {
    background: rgba(var(--rs-secondary-rgb),.2);
    border-color: rgba(var(--rs-secondary-rgb),.35);
}

@media (max-width: 900px) {
    .rs-nav-btn span { display: none; }
    .rs-nav-btn { padding: 9px 12px; }
}

/* ── Dashboard layout ── */
.rs-dashboard {
    padding: 100px 0 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.rs-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */
.rs-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.rs-dash-greeting h1 {
    font-family: var(--rs-font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.rs-dash-greeting p {
    color: var(--rs-text-muted);
    font-size: .88rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-dash-greeting p strong { color: var(--rs-text-secondary); }

.rs-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(var(--rs-primary-rgb),.12);
    border: 1px solid rgba(var(--rs-primary-rgb),.3);
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--rs-primary);
    animation: rsBadgePulse 2s ease-in-out infinite;
}

@keyframes rsBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--rs-primary-rgb),.3); }
    50% { box-shadow: 0 0 0 8px rgba(var(--rs-primary-rgb),0); }
}

/* ── Stats row ── */
.rs-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.rs-stat {
    background: var(--rs-dark-card);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    padding: 22px 18px;
    text-align: center;
    transition: var(--rs-transition);
    position: relative;
    overflow: hidden;
}

.rs-stat::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--rs-gradient);
    opacity: 0;
    transition: var(--rs-transition);
}

.rs-stat:hover { border-color: var(--rs-border-hover); transform: translateY(-4px); }
.rs-stat:hover::after { opacity: 1; }

.rs-stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-size: .9rem;
}

.rs-stat-icon--total     { background: rgba(var(--rs-primary-rgb),.12); color: var(--rs-primary); }
.rs-stat-icon--pending   { background: rgba(var(--rs-primary-rgb),.12); color: #fbbf24; }
.rs-stat-icon--approved  { background: rgba(var(--rs-teal-rgb),.12); color: var(--rs-teal); }
.rs-stat-icon--sold      { background: rgba(var(--rs-violet-rgb),.12); color: var(--rs-violet); }
.rs-stat-icon--rejected  { background: rgba(var(--rs-secondary-rgb),.12); color: #f87171; }

.rs-stat-num {
    font-family: var(--rs-font-display);
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.rs-stat-label {
    font-size: .75rem;
    color: var(--rs-text-muted);
    margin-top: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .rs-stats { grid-template-columns: repeat(3, 1fr); }
    .rs-stat-num { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .rs-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section card ── */
.rs-card {
    background: var(--rs-dark-card);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: var(--rs-transition);
}

.rs-card:hover { border-color: var(--rs-border-hover); }

.rs-card-editing {
    border-color: rgba(var(--rs-primary-rgb),.4);
    background: linear-gradient(135deg, rgba(var(--rs-primary-rgb),.08), rgba(var(--rs-secondary-rgb),.04));
    box-shadow: 0 0 30px rgba(var(--rs-primary-rgb),.15);
}

.rs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.rs-card-title {
    font-family: var(--rs-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rs-card-title i {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}

.rs-card-title i.rs-icon-amber  { background: rgba(var(--rs-primary-rgb),.12); color: var(--rs-primary); }
.rs-card-title i.rs-icon-teal   { background: rgba(var(--rs-teal-rgb),.12); color: var(--rs-teal); }
.rs-card-title i.rs-icon-violet { background: rgba(var(--rs-violet-rgb),.12); color: var(--rs-violet); }
.rs-card-title i.rs-icon-red    { background: rgba(var(--rs-secondary-rgb),.12); color: #f87171; }
.rs-card-title i.rs-icon-green  { background: rgba(34,197,94,.12); color: #22c55e; }

/* ── Info grid ── */
.rs-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.rs-info-card {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    padding: 22px;
    transition: var(--rs-transition);
}

.rs-info-card:hover {
    border-color: var(--rs-border-hover);
    background: rgba(255,255,255,.04);
}

/* ── Row list ── */
.rs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .88rem;
}

.rs-row:last-child { border-bottom: none; }
.rs-row span { color: var(--rs-text-secondary); }
.rs-row strong { color: var(--rs-text); text-align: right; }

/* ── Quota bar ── */
.rs-quota-bar-wrap {
    margin-top: 12px;
}

.rs-quota-label {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    margin-bottom: 6px;
}

.rs-quota-label span { color: var(--rs-text-secondary); }
.rs-quota-label strong { color: var(--rs-primary); }

.rs-quota-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,.06);
    border-radius: 4px;
    overflow: hidden;
}

.rs-quota-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--rs-gradient);
    transition: width 1s cubic-bezier(.4,0,.2,1);
    position: relative;
}

.rs-quota-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3));
    border-radius: 0 4px 4px 0;
}

/* ── Payment grid ── */
.rs-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* ── Status chips ── */
.rs-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.rs-chip {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--rs-border);
    background: rgba(255,255,255,.03);
    color: var(--rs-text-secondary);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: var(--rs-transition);
}

.rs-chip:hover { border-color: var(--rs-border-hover); color: var(--rs-text); }

.rs-chip.active {
    border-color: rgba(var(--rs-primary-rgb),.5);
    background: rgba(var(--rs-primary-rgb),.12);
    color: var(--rs-primary);
    box-shadow: 0 0 12px rgba(var(--rs-primary-rgb),.15);
}

/* ── Listing table ── */
.rs-listing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    margin-bottom: 10px;
    transition: var(--rs-transition);
}

.rs-listing-row:hover {
    border-color: var(--rs-border-hover);
    background: rgba(255,255,255,.04);
}

.rs-listing-cover {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-listing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-listing-cover i {
    font-size: 1.4rem;
    color: rgba(255,255,255,.2);
}

.rs-listing-info { flex: 1; min-width: 0; }
.rs-listing-info-title { font-size: .9rem; font-weight: 600; }
.rs-listing-info-title small { color: var(--rs-text-muted); font-weight: 400; }

.rs-listing-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .76rem;
    color: var(--rs-text-muted);
    margin-top: 4px;
}

.rs-listing-info-reason { font-size: .78rem; color: #f87171; margin-top: 4px; }

.rs-listing-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.rs-status-pending  { background: rgba(var(--rs-primary-rgb),.12); color: #fbbf24; border: 1px solid rgba(var(--rs-primary-rgb),.2); }
.rs-status-approved { background: rgba(var(--rs-teal-rgb),.12); color: var(--rs-teal); border: 1px solid rgba(var(--rs-teal-rgb),.2); }
.rs-status-sold     { background: rgba(var(--rs-violet-rgb),.12); color: var(--rs-violet); border: 1px solid rgba(var(--rs-violet-rgb),.2); }
.rs-status-rejected { background: rgba(var(--rs-secondary-rgb),.12); color: #f87171; border: 1px solid rgba(var(--rs-secondary-rgb),.2); }

.rs-listing-actions { display: inline-flex; gap: 8px; margin-left: 10px; flex-shrink: 0; flex-wrap: wrap; }

.rs-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--rs-transition);
    gap: 5px;
}

.rs-action-link--view { background: rgba(59,130,246,.12); color: #60a5fa; }
.rs-action-link--view:hover { background: #3b82f6; color: #fff; }
.rs-action-link--edit { background: rgba(var(--rs-primary-rgb),.12); color: var(--rs-primary); }
.rs-action-link--edit:hover { background: var(--rs-primary); color: #fff; }
.rs-action-link--sold { background: rgba(var(--rs-violet-rgb),.12); color: #a78bfa; }
.rs-action-link--sold:hover { background: var(--rs-violet); color: #fff; }
.rs-action-link--delete { background: rgba(var(--rs-secondary-rgb),.12); color: #f87171; }
.rs-action-link--delete:hover { background: #ef4444; color: #fff; }

/* ── Form within card ── */
.rs-form-tight .rs-form-group { margin-bottom: 12px; }
.rs-form-tight label { display: block; margin-bottom: 6px; font-size: .82rem; color: var(--rs-text-secondary); }

/* ── Payment QR ── */
.rs-qr-wrap { text-align: center; margin-top: 10px; }

.rs-qr-img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--rs-radius-md);
    border: 1px solid rgba(var(--rs-primary-rgb),.25);
    background: rgba(255,255,255,.02);
}

.rs-qr-empty {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    margin: 0 auto;
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: var(--rs-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--rs-text-muted);
}

.rs-qr-empty i { font-size: 1.5rem; }

.rs-qr-section {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    padding: 20px;
}

.rs-qr-current {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.rs-qr-preview {
    flex-shrink: 0;
}

.rs-qr-preview-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--rs-radius-md);
    border: 1px solid rgba(var(--rs-primary-rgb),.3);
}

.rs-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.rs-qr-upload-box {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed rgba(255,255,255,.15);
    border-radius: var(--rs-radius-md);
    background: rgba(255,255,255,.02);
    transition: var(--rs-transition);
}

.rs-qr-upload-box:hover {
    border-color: rgba(var(--rs-primary-rgb),.3);
    background: rgba(var(--rs-primary-rgb),.05);
}

.rs-qr-upload-box i {
    font-size: 3rem;
    color: var(--rs-primary);
    margin-bottom: 12px;
    display: block;
}

.rs-qr-upload-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.rs-qr-upload-box p {
    font-size: .82rem;
    color: var(--rs-text-muted);
    margin-bottom: 0;
}

.rs-qr-upload-box input[type="file"] {
    display: none;
}

/* ── Product Payment QR ── */
.rs-product-payment-qr {
    background: linear-gradient(135deg, rgba(var(--rs-primary-rgb),.08), rgba(var(--rs-secondary-rgb),.04));
    border: 1px solid rgba(var(--rs-primary-rgb),.25);
    border-radius: var(--rs-radius-md);
    padding: 20px;
    margin-top: 16px;
    text-align: center;
}

.rs-product-payment-qr h4 {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rs-product-payment-qr h4 i {
    color: var(--rs-primary);
}

.rs-product-payment-qr p {
    font-size: .82rem;
    color: var(--rs-text-secondary);
    margin-bottom: 16px;
}

.rs-qr-display {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--rs-radius-md);
    padding: 16px;
    display: inline-block;
    margin-bottom: 12px;
}

.rs-qr-display-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.rs-product-payment-qr small {
    display: block;
    font-size: .76rem;
    color: var(--rs-text-muted);
    line-height: 1.5;
}

.rs-product-payment-qr small i {
    color: var(--rs-primary);
}

.rs-payment-note {
    margin-top: 14px;
    color: var(--rs-text-secondary);
    font-size: .82rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rs-payment-note i { color: var(--rs-primary); flex-shrink: 0; margin-top: 2px; }

/* ── Filter bar ── */
.rs-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0;
}

.rs-filter-group { flex: 1; min-width: 140px; }

.rs-filter-input,
.rs-filter-select {
    width: 100%;
    padding: 11px 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-sm);
    color: var(--rs-text);
    font-family: var(--rs-font);
    font-size: .85rem;
    transition: var(--rs-transition);
}

.rs-filter-input:focus,
.rs-filter-select:focus {
    outline: none;
    border-color: rgba(var(--rs-primary-rgb),.5);
    background: rgba(255,255,255,.07);
}

.rs-filter-select option { background: var(--rs-dark-card); }

/* ── WA button ── */
.rs-btn-wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37,211,102,.3);
}

.rs-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,.45);
}

/* ── Empty state ── */
.rs-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--rs-text-muted);
}

.rs-empty i { font-size: 2rem; margin-bottom: 12px; display: block; opacity: .5; }
.rs-empty p { font-size: .88rem; }

/* ── Subscription status card ── */
.rs-sub-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rs-sub-active { background: rgba(34,197,94,.12); color: #22c55e; border: 1px solid rgba(34,197,94,.2); }
.rs-sub-expired { background: rgba(var(--rs-secondary-rgb),.12); color: #f87171; border: 1px solid rgba(var(--rs-secondary-rgb),.2); }
.rs-sub-cancelled { background: rgba(var(--rs-text-muted),.12); color: var(--rs-text-muted); border: 1px solid rgba(var(--rs-text-muted),.2); }

/* ── Section spacing ── */
.rs-section { margin-bottom: 24px; }

/* ── Help text ── */
.rs-help {
    margin-top: 12px;
    color: var(--rs-text-muted);
    font-size: .82rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rs-help i { color: var(--rs-primary); flex-shrink: 0; margin-top: 2px; }

/* ── Responsive panel ── */
@media (max-width: 768px) {
    .rs-dashboard { padding-top: 80px; padding-bottom: 40px; }
    .rs-dash-greeting h1 { font-size: 1.4rem; }
    .rs-card { padding: 20px; }
    .rs-info-grid { grid-template-columns: 1fr; }
    .rs-payment-grid { grid-template-columns: 1fr; }
    .rs-listing-row { flex-direction: column; align-items: flex-start; }
    .rs-listing-actions { margin-left: 0; margin-top: 6px; }
    .rs-btn { width: 100%; justify-content: center; }
    .rs-btn-ghost { width: auto; }
}

/* ── Reveal animation ── */
.rs-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.rs-reveal.rs-revealed {
    opacity: 1;
    transform: translateY(0);
}

.rs-reveal-delay-1 { transition-delay: .1s; }
.rs-reveal-delay-2 { transition-delay: .2s; }
.rs-reveal-delay-3 { transition-delay: .3s; }
.rs-reveal-delay-4 { transition-delay: .4s; }

/* ── Counter animation ── */
.rs-count-up { display: inline-block; }

/* ── Tooltip ── */
.rs-tooltip {
    position: relative;
}

.rs-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(.9);
    background: var(--rs-dark-elevated);
    color: var(--rs-text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .72rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--rs-transition-fast);
    border: 1px solid var(--rs-border);
}

.rs-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ── Toast ── */
.rs-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 14px 22px;
    border-radius: var(--rs-radius-md);
    font-size: .88rem;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.rs-toast.show { transform: translateX(0); }

.rs-toast-success {
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.3);
    color: #4ade80;
    backdrop-filter: blur(16px);
}

.rs-toast-error {
    background: rgba(var(--rs-secondary-rgb),.15);
    border: 1px solid rgba(var(--rs-secondary-rgb),.3);
    color: #f87171;
    backdrop-filter: blur(16px);
}

/* =====================================================
   RESELLER STOREFRONT (ws_reseller_store.php)
   ===================================================== */

/* ── Store hero header ── */
.rs-store-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--rs-dark-card);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rs-store-hero-left { display: flex; align-items: center; gap: 20px; }

.rs-store-avatar {
    width: 72px; height: 72px;
    border-radius: var(--rs-radius-md);
    background: rgba(var(--rs-primary-rgb),.12);
    border: 1px solid rgba(var(--rs-primary-rgb),.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--rs-primary);
    flex-shrink: 0;
}

.rs-store-name {
    font-family: var(--rs-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.rs-store-username {
    color: var(--rs-text-muted);
    font-size: .85rem;
    margin-top: 4px;
}

.rs-store-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(var(--rs-primary-rgb),.12);
    border: 1px solid rgba(var(--rs-primary-rgb),.3);
    border-radius: 50px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--rs-primary);
    margin-top: 8px;
}

.rs-store-stats {
    text-align: center;
}

.rs-store-stat strong {
    display: block;
    font-family: var(--rs-font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-store-stat span {
    font-size: .78rem;
    color: var(--rs-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Store filter bar ── */
.rs-store-filter {
    margin-bottom: 20px;
}

/* ── Store listing grid ── */
.rs-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.rs-store-card {
    background: var(--rs-dark-card);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--rs-transition);
    position: relative;
    overflow: hidden;
}

.rs-store-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--rs-gradient);
    opacity: 0;
    transition: var(--rs-transition);
}

.rs-store-card:hover {
    border-color: rgba(var(--rs-primary-rgb),.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.rs-store-card:hover::after { opacity: 1; }

.rs-store-card-game { display: flex; }

.rs-store-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rs-store-game-mlbb    { background: rgba(var(--rs-primary-rgb),.12); color: var(--rs-primary); border: 1px solid rgba(var(--rs-primary-rgb),.2); }
.rs-store-game-ff      { background: rgba(var(--rs-secondary-rgb),.12); color: #f87171; border: 1px solid rgba(var(--rs-secondary-rgb),.2); }
.rs-store-game-pubg    { background: rgba(var(--rs-teal-rgb),.12); color: var(--rs-teal); border: 1px solid rgba(var(--rs-teal-rgb),.2); }
.rs-store-game-genshin { background: rgba(var(--rs-violet-rgb),.12); color: var(--rs-violet); border: 1px solid rgba(var(--rs-violet-rgb),.2); }

.rs-store-card-title {
    font-family: var(--rs-font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.rs-store-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rs-store-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .76rem;
    color: var(--rs-text-secondary);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--rs-border);
    border-radius: 6px;
    padding: 3px 10px;
}

.rs-store-card-meta span i { color: var(--rs-primary); font-size: .7rem; }

.rs-store-card-desc {
    font-size: .82rem;
    color: var(--rs-text-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rs-store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--rs-border);
}

.rs-store-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rs-store-card-price span {
    font-size: .78rem;
    color: var(--rs-text-muted);
}

.rs-store-card-price strong {
    font-family: var(--rs-font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-store-card-btn {
    padding: 9px 16px !important;
    font-size: .8rem !important;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .rs-store-grid { grid-template-columns: 1fr; }
    .rs-store-hero { flex-direction: column; }
    .rs-store-hero-left { flex-direction: column; text-align: center; }
    .rs-store-stats { width: 100%; text-align: center; }
}

/* =====================================================
   SETTINGS PAGE (ws_reseller_settings.php)
   ===================================================== */

.rs-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .rs-settings-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   IMAGE UPLOAD UI
   ===================================================== */

.rs-upload-box {
    position: relative;
    border: 1.5px dashed rgba(var(--rs-primary-rgb),.35);
    border-radius: var(--rs-radius-md);
    background: rgba(var(--rs-primary-rgb),.03);
    transition: var(--rs-transition);
    overflow: hidden;
}

.rs-upload-box:hover { border-color: rgba(var(--rs-primary-rgb),.6); background: rgba(var(--rs-primary-rgb),.06); }

.rs-upload-box input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer; z-index: 2;
    width: 100%; height: 100%;
}

.rs-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    cursor: pointer;
    text-align: center;
}

.rs-upload-label i { font-size: 1.6rem; color: var(--rs-primary); }
.rs-upload-label span { font-size: .88rem; font-weight: 500; color: var(--rs-text-secondary); }
.rs-upload-label small { font-size: .75rem; color: var(--rs-text-muted); }

.rs-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
}

.rs-upload-thumb {
    width: 70px; height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--rs-border);
}

.rs-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Existing images grid */
.rs-img-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rs-img-preview-item {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--rs-border);
}

.rs-img-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.rs-img-delete {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    background: rgba(239,68,68,.85);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem;
    color: #fff;
    text-decoration: none;
    transition: var(--rs-transition);
}

.rs-img-delete:hover { background: #ef4444; transform: scale(1.1); }

/* =====================================================
   PROFILE PICTURE UPLOAD
   ===================================================== */

.rs-profile-pic-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.rs-profile-pic-current {
    flex-shrink: 0;
}

.rs-profile-pic-img {
    width: 80px; height: 80px;
    border-radius: var(--rs-radius-md);
    object-fit: cover;
    border: 2px solid rgba(var(--rs-primary-rgb),.35);
}

.rs-profile-pic-placeholder {
    width: 80px; height: 80px;
    border-radius: var(--rs-radius-md);
    background: rgba(var(--rs-primary-rgb),.1);
    border: 2px dashed rgba(var(--rs-primary-rgb),.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--rs-primary);
}

/* Store avatar with image */
.rs-store-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* =====================================================
   STORE CARD COVER IMAGE
   ===================================================== */

.rs-store-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--rs-radius-sm);
    overflow: hidden;
    border: 1px solid var(--rs-border);
}

.rs-store-card-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.rs-store-card:hover .rs-store-card-cover img { transform: scale(1.05); }

.rs-store-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--rs-radius-sm);
    overflow: hidden;
    border: 1px solid var(--rs-border);
    margin-bottom: 8px;
}

.rs-store-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   PRODUCT DETAIL PAGE (ws_reseller_product.php)
   ===================================================== */

.rs-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
}

/* Gallery */
.rs-product-gallery { position: sticky; top: 90px; }

.rs-gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--rs-radius-lg);
    overflow: hidden;
    border: 1px solid var(--rs-border);
    background: var(--rs-dark-card);
    position: relative;
}

.rs-gallery-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .3s ease;
}

.rs-gallery-empty {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--rs-radius-lg);
    border: 1px dashed rgba(255,255,255,.15);
    background: var(--rs-dark-card);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px;
    color: var(--rs-text-muted);
}

.rs-gallery-empty i { font-size: 2.5rem; opacity: .4; }

.rs-gallery-counter {
    position: absolute;
    bottom: 12px; right: 14px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.rs-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.rs-gallery-thumb {
    width: 72px; height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--rs-transition);
    flex-shrink: 0;
}

.rs-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-gallery-thumb:hover { border-color: rgba(var(--rs-primary-rgb),.5); }
.rs-gallery-thumb.active { border-color: var(--rs-primary); box-shadow: 0 0 10px rgba(var(--rs-primary-rgb),.35); }

/* Product info */
.rs-product-title {
    font-family: var(--rs-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}

.rs-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
}

.rs-product-price span { font-size: .9rem; color: var(--rs-text-muted); }
.rs-product-price strong {
    font-family: var(--rs-font-display);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--rs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rs-product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.rs-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-sm);
}

.rs-spec-item > i {
    font-size: .9rem;
    color: var(--rs-primary);
    flex-shrink: 0;
}

.rs-spec-item div { display: flex; flex-direction: column; }
.rs-spec-item small { font-size: .7rem; color: var(--rs-text-muted); }
.rs-spec-item strong { font-size: .88rem; color: var(--rs-text); }

.rs-product-desc {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.rs-product-desc h4 {
    font-size: .85rem;
    color: var(--rs-text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-product-desc h4 i { color: var(--rs-primary); }

.rs-product-desc p {
    font-size: .88rem;
    color: var(--rs-text-secondary);
    line-height: 1.7;
}

.rs-product-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-md);
    margin-bottom: 14px;
}

.rs-product-seller-avatar {
    width: 46px; height: 46px;
    border-radius: 10px;
    background: rgba(var(--rs-primary-rgb),.12);
    border: 1px solid rgba(var(--rs-primary-rgb),.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--rs-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.rs-product-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }

.rs-product-seller-info { flex: 1; }
.rs-product-seller-info strong { display: block; font-size: .9rem; font-weight: 600; }
.rs-product-seller-info span { font-size: .78rem; color: var(--rs-text-muted); }

@media (max-width: 900px) {
    .rs-product-layout { grid-template-columns: 1fr; }
    .rs-product-gallery { position: static; }
    .rs-product-title { font-size: 1.3rem; }
    .rs-product-price strong { font-size: 1.8rem; }
}
