/* ==========================================================================
   Marketplace design system
   Palette: deep indigo (brand/trust) + warm coral (CTAs/deals) + soft
   neutral background so product photography stays the focal point.
   ========================================================================== */

:root {
    --color-primary: #4338ca;
    --color-primary-dark: #3730a3;
    --color-primary-light: #eef2ff;
    --color-accent: #fb7185;
    --color-accent-dark: #e11d48;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-danger: #dc2626;
    --color-danger-light: #fee2e2;
    --color-warning: #d97706;
    --color-warning-light: #fef3c7;

    --color-bg: #f6f7fb;
    --color-surface: #ffffff;
    --color-border: #e6e8f0;
    --color-text: #1e2433;
    --color-text-muted: #6b7280;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(30, 36, 51, 0.06), 0 1px 2px rgba(30, 36, 51, 0.04);
    --shadow-md: 0 4px 12px rgba(30, 36, 51, 0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------------
   Auth pages (login / register)
   --------------------------------------------------------------------- */
.auth-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--color-primary) 0%, #6366f1 45%, var(--color-accent) 100%);
    padding: 32px 16px;
}

.auth-box {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.auth-box h1 {
    font-size: 22px;
    margin: 0 0 22px;
    color: var(--color-text);
}

.auth-box label {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    margin-top: 6px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    transition: border-color 0.15s;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.auth-box button {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-box button:hover { background: var(--color-primary-dark); }

.auth-box .error {
    background: var(--color-danger-light);
    color: var(--color-danger);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-box .hint { font-size: 12px; color: var(--color-text-muted); margin-top: 6px; }
.auth-box fieldset { border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); margin: 0 0 16px; padding: 12px 14px; }
.auth-box fieldset legend { font-size: 12px; font-weight: 700; color: var(--color-text-muted); padding: 0 4px; }
.auth-box fieldset label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-weight: 500; }
.auth-box p { font-size: 13px; color: var(--color-text-muted); text-align: center; margin-top: 18px; }
.auth-box p a { font-weight: 600; text-decoration: none; }
.auth-box p a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Dashboard shell (admin + vendor)
   --------------------------------------------------------------------- */
.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 232px;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    color: #c7d2fe;
    display: flex;
    flex-direction: column;
    padding: 22px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .brand {
    font-weight: 800;
    font-size: 17px;
    padding: 0 22px 24px;
    color: #fff;
    letter-spacing: -0.01em;
}

.sidebar a {
    color: #c7d2fe;
    text-decoration: none;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar .logout-link {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    color: #fca5a5;
}

.content {
    flex: 1;
    padding: 28px 36px;
    min-width: 0;
}

.topbar {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 22px;
    font-weight: 500;
}

/* ---------------------------------------------------------------------
   Stat cards
   --------------------------------------------------------------------- */
.stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    min-width: 165px;
    border: 1px solid var(--color-border);
}

.stat-card .label {
    font-size: 11.5px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--color-text);
}

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfe; }

.data-table th {
    background: #fafbff;
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.data-table img.thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s, transform 0.05s;
    font-family: inherit;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-success { background: var(--color-success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger  { background: var(--color-danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-muted   { background: #eef0f6; color: #374151; }
.btn-muted:hover { background: #e2e5f0; }
.btn-accent  { background: var(--color-accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); }

/* ---------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-pending  { background: var(--color-warning-light); color: #92400e; }
.badge-active   { background: var(--color-success-light); color: #065f46; }
.badge-suspended{ background: var(--color-danger-light); color: #991b1b; }

/* ---------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------- */
.alert-success {
    background: var(--color-success-light);
    color: #065f46;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--color-danger-light);
    color: #991b1b;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 18px;
    border: 1px solid #fecaca;
}

/* ---------------------------------------------------------------------
   Page headers & forms
   --------------------------------------------------------------------- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 21px;
    margin: 0;
    color: var(--color-text);
}

.simple-form {
    background: var(--color-surface);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    max-width: 560px;
}

.simple-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.simple-form input[type="text"],
.simple-form input[type="number"],
.simple-form textarea,
.simple-form select {
    width: 100%;
    max-width: 420px;
    padding: 9px 11px;
    margin-top: 5px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--color-text);
}

.simple-form input:focus, .simple-form textarea:focus, .simple-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Progress bar (plan usage)
   --------------------------------------------------------------------- */
.progress-bar {
    background: var(--color-border);
    border-radius: 999px;
    height: 8px;
    width: 100%;
    max-width: 240px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    height: 100%;
    border-radius: 999px;
}

/* ---------------------------------------------------------------------
   Chat / support thread
   --------------------------------------------------------------------- */
.chat-box {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    max-height: 440px;
    overflow-y: auto;
}

.chat-msg {
    max-width: 70%;
    margin-bottom: 12px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
}

.chat-msg-mine {
    background: var(--color-primary-light);
    margin-left: auto;
    text-align: right;
    border: 1px solid #c7d2fe;
}

.chat-msg-theirs {
    background: #f3f4f6;
    border: 1px solid var(--color-border);
}

.chat-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 3px;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Public storefront / shop
   --------------------------------------------------------------------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.hero {
    background: linear-gradient(120deg, var(--color-primary) 0%, #6366f1 55%, var(--color-accent) 130%);
    color: #fff;
    padding: 64px 32px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 16px;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 26px;
}

.hero .btn { padding: 12px 24px; font-size: 14px; }

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 22px;
}

.section-title h2 {
    font-size: 22px;
    margin: 0;
}

.section-title a { font-size: 13px; font-weight: 600; text-decoration: none; }

.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.category-tile {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-tile .icon { font-size: 28px; margin-bottom: 8px; display: block; }
.category-tile .name { font-weight: 700; font-size: 13.5px; }
.category-tile .count { font-size: 11.5px; color: var(--color-text-muted); margin-top: 2px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-card .img-wrap {
    background: #f3f4f8;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .vendor { font-size: 11px; color: var(--color-text-muted); font-weight: 600; }
.product-card .title { font-size: 13.5px; font-weight: 600; line-height: 1.3; min-height: 34px; }
.product-card .price { font-size: 16px; font-weight: 800; color: var(--color-primary); margin-top: auto; }
.product-card form { margin-top: 8px; }
.product-card .btn { width: 100%; text-align: center; padding: 9px; }

.vendor-cta {
    background: linear-gradient(120deg, #1e1b4b, var(--color-primary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
}

.vendor-cta h2 { font-size: 24px; margin: 0 0 10px; }
.vendor-cta p { opacity: 0.9; max-width: 480px; margin: 0 auto 22px; }

.site-footer {
    background: #1e1b4b;
    color: #c7d2fe;
    padding: 40px 32px 24px;
    margin-top: 40px;
    font-size: 13px;
}

.site-footer .footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.site-footer h4 { color: #fff; font-size: 13px; margin: 0 0 10px; }
.site-footer a { color: #c7d2fe; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright { text-align: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 820px) {
    .dashboard-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; overflow-x: auto; padding: 10px 0; }
    .sidebar .brand { display: none; }
    .sidebar a { padding: 10px 14px; white-space: nowrap; }
    .sidebar .logout-link { margin-top: 0; border-top: none; border-left: 1px solid rgba(255,255,255,0.1); }
    .content { padding: 20px 16px; }
    .hero { padding: 44px 20px; }
    .hero h1 { font-size: 26px; }
    .site-header { padding: 12px 16px; }
    .section { padding: 32px 16px; }
    .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------------------------------------------------------------------
   Announcement bar + category nav row (matches the old WordPress layout)
   --------------------------------------------------------------------- */
.announcement-bar {
    background: #1e1b4b;
    color: #fff;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    letter-spacing: 0.02em;
}

.site-header-main {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-header-main .brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.search-form {
    flex: 1;
    min-width: 180px;
    display: flex;
    max-width: 480px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
}

.search-form input[type="text"]:focus { outline: none; border-color: var(--color-primary); }

.search-form button {
    padding: 0 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.category-nav {
    background: var(--color-primary-light);
    border-bottom: 1px solid var(--color-border);
    padding: 0 32px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.category-nav a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 14px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}

.category-nav a:hover, .category-nav a.active {
    border-bottom-color: var(--color-accent);
}

@media (max-width: 820px) {
    .site-header-main { padding: 12px 16px; }
    .category-nav { padding: 0 16px; }
}

/* ---------------------------------------------------------------------
   Trust badges, vendor cards, testimonials, shop sidebar layout
   --------------------------------------------------------------------- */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-sm);
}

.trust-badge { display: flex; align-items: center; gap: 14px; }
.trust-badge .icon { font-size: 30px; flex-shrink: 0; }
.trust-badge .title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.trust-badge .desc { font-size: 12.5px; color: var(--color-text-muted); }

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.vendor-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.vendor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.vendor-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 12px;
}

.vendor-card .name { font-weight: 700; font-size: 14.5px; }
.vendor-card .meta { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.testimonial-card .stars { color: #f59e0b; font-size: 13px; margin-bottom: 10px; }
.testimonial-card .quote { font-size: 13.5px; color: var(--color-text); line-height: 1.6; margin-bottom: 14px; }
.testimonial-card .author { font-size: 12.5px; font-weight: 700; color: var(--color-text-muted); }

.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

/* Shop page: sidebar + main content layout */
.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.shop-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 16px;
}

.shop-sidebar h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin: 0 0 12px;
}

.shop-sidebar ul { list-style: none; padding: 0; margin: 0; }
.shop-sidebar li { margin-bottom: 2px; }

.shop-sidebar a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13.5px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.shop-sidebar a:hover { background: var(--color-primary-light); }
.shop-sidebar a.active { background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 700; }
.shop-sidebar a .count { color: var(--color-text-muted); font-weight: 500; font-size: 11.5px; }

@media (max-width: 820px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
}

/* ---------------------------------------------------------------------
   Logo + floating chat bubble
   --------------------------------------------------------------------- */
.site-header-main .brand img,
.sidebar-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.sidebar-logo {
    padding: 0 22px 8px;
}

.sidebar-store-name {
    padding: 0 22px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

.chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: transform 0.15s;
}

.chat-bubble:hover { transform: scale(1.08); }

.chat-page-wrap {
    max-width: 560px;
    margin: 40px auto;
    padding: 0 16px;
}

/* ---------------------------------------------------------------------
   Seller dashboard overview (gradient stat cards, topbar, mini-panels)
   --------------------------------------------------------------------- */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.dash-profile { display: flex; align-items: center; gap: 12px; }

.dash-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.dash-profile .name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.dash-profile .role { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.gradient-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.gradient-card {
    border-radius: var(--radius-md);
    padding: 20px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gradient-card.blue { background: linear-gradient(135deg, #4338ca, #6366f1); }
.gradient-card.orange { background: linear-gradient(135deg, #ea580c, var(--color-accent)); }
.gradient-card.green { background: linear-gradient(135deg, #15803d, #22c55e); }

.gradient-card .label { font-size: 12.5px; opacity: 0.85; font-weight: 600; }
.gradient-card .value { font-size: 30px; font-weight: 800; margin-top: 6px; }
.gradient-card .link { font-size: 12px; opacity: 0.9; text-decoration: none; color: #fff; display: inline-block; margin-top: 10px; border-bottom: 1px solid rgba(255,255,255,0.5); }
.gradient-card .icon { position: absolute; right: 16px; top: 16px; font-size: 34px; opacity: 0.35; }

.mini-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mini-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.mini-panel h4 { font-size: 13px; margin: 0 0 14px; color: var(--color-text); }

.mini-panel-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
}

.mini-panel-row:last-child { border-bottom: none; }
.mini-panel-row .n { font-weight: 700; color: var(--color-primary); }
