/* =========================
   SELLER DASHBOARD
========================= */
:root {
  --primary-accent: #22c55e;      /* Fresh Bright Green */
  --cyber-accent: #eab308;        /* Vibrant Yellow */
  --branding-accent: #eab308;     /* Vibrant Yellow */
  --hover-accent: #fde047;        /* Lighter yellow for button hover */
  --bg-dark-navy: #000000;        /* True Black background */
  --card-bg: rgba(12, 12, 12, 0.95); /* Deep black card surface */
  --border-color: #1f2937;        /* Clean dark border */
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-sub: #d1d5db;
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

.logo{
    border-color: darkslategrey;
    display: block;
}
.brand {
    display: block;
    align-items: center;
    gap: 12px;
    color: var(--branding-accent);
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--primary-accent);
}

.brand > span {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-main);
}

.brand small {
    margin-top: 2px;
    color: var(--branding-accent);
    font-size: 9px;
    letter-spacing: 2px;
}

.dashboard-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    background-color: #000000;
    border-bottom: 1px solid #22c55e;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-logo {
    color: #eab308;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d5db;
    font-size: 14px;
}

.dashboard-user button {
    padding: 8px 14px;
    border: 1px solid #1f2937;
    border-radius: 7px;
    background-color: #000000;
    color: #eab308;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard-user button:hover {
    background-color: #121820;
    border-color: #eab308;
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 36px;
    padding: 8px;
    background: #0a0a0a;
    border: 1px solid #1f2937;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #eab308;
    border-radius: 2px;
}


/* DASHBOARD LAYOUT */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    background-color: #000000;
    position: relative;
}


/* SIDEBAR */

.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #000000;
    border-right: 1px solid #1f2937;
    padding: 25px 15px;
    transition: transform 0.3s ease;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #141414;
    padding-bottom: 20px;
}

.seller-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #000000;
    border: 1px solid #eab308;
    color: #eab308;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.seller-profile h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 14px;
    word-break: break-all;
}

.seller-profile p {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
}


/* NAVIGATION */

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

.dashboard-nav a {
    padding: 12px 14px;
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.dashboard-nav a:hover {
    background-color: #0a0a0a;
    color: #ffffff;
}

.dashboard-nav a.active {
    background-color: #121820;
    color: #eab308;
    border-left: 3px solid #eab308;
    font-weight: 600;
}


/* MAIN */

.dashboard-main {
    flex: 1;
    padding: 30px clamp(16px, 3vw, 40px);
    min-width: 0;
}


/* TITLE */

.dashboard-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-title h1 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(22px, 3vw, 28px);
}

.dashboard-title p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}

.dashboard-add-button {
    padding: 11px 18px;
    background-color: #eab308;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
}

.dashboard-add-button:hover {
    background-color: #fde047;
    transform: translateY(-1px);
}


/* STATISTICS */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid #1f2937;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    border-color: #eab308;
    transform: translateY(-2px);
}

.stat-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    border: 1px solid #1f2937;
    border-radius: 10px;
    font-size: 20px;
    color: #eab308;
    flex-shrink: 0;
}

.stat-card p {
    margin: 0 0 4px;
    color: #9ca3af;
    font-size: 12px;
}

.stat-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
}


/* CONTENT GRID */

.dashboard-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


/* PANELS */

.dashboard-panel {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    min-width: 0;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
}

.panel-heading a {
    color: #eab308;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.panel-heading a:hover {
    text-decoration: underline;
}


/* ORDERS TABLE */

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.orders-table th {
    text-align: left;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid #1f2937;
    text-transform: uppercase;
}

.orders-table td {
    padding: 12px 10px;
    color: #d1d5db;
    font-size: 13px;
    border-bottom: 1px solid #141414;
}


/* STATUS */

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status.completed {
    background-color: #064e3b;
    color: #22c55e;
    border: 1px solid #10b981;
}

.status.pending {
    background-color: #2b1606;
    color: #eab308;
    border: 1px solid #d97706;
}

.status.processing {
    background-color: #172554;
    color: #60a5fa;
    border: 1px solid #3b82f6;
}


/* QUICK ACTIONS */

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-actions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    text-decoration: none;
    background: #000000;
    transition: 0.2s;
}

.quick-actions a:hover {
    background-color: #0a0a0a;
    border-color: #eab308;
}

.quick-actions a > span {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #121820;
    border-radius: 8px;
    color: #eab308;
    font-size: 16px;
    border: 1px solid #1f2937;
    flex-shrink: 0;
}

.quick-actions strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 2px;
}

.quick-actions small {
    color: #9ca3af;
    font-size: 11px;
}


/* RECENT LISTINGS */

.recent-listings {
    margin-bottom: 20px;
}

.listing-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mini-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #000000;
    min-width: 0;
}

.mini-product-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121820;
    color: #eab308;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #1f2937;
}

.mini-product h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-product p {
    margin: 0 0 2px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.mini-product span {
    color: #9ca3af;
    font-size: 11px;
}


/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1150px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 850px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .listing-mini-grid {
        grid-template-columns: 1fr;
    }

    /* Slide-out mobile sidebar drawer */
    .mobile-sidebar-toggle {
        display: flex;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 99;
        transform: translateX(-100%);
        background-color: #050505;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8);
        border-right: 1px solid #1f2937;
    }

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

@media (max-width: 550px) {
    .dashboard-user span {
        display: none;
    }

    .dashboard-header {
        padding: 0 12px;
    }

    .dashboard-main {
        padding: 20px 12px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .dashboard-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-add-button {
        width: 100%;
        text-align: center;
    }
}

 .sub-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
    .sub-modal-content { background: #fff; padding: 28px; border-radius: 12px; max-width: 440px; width: 90%; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2); font-family: inherit; }
    .sub-close-btn { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 24px; cursor: pointer; color: #6b7280; }
    .plan-cards-grid { display: grid; gap: 10px; margin: 16px 0; }
    .plan-card { border: 2px solid #e5e7eb; padding: 14px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: 0.2s; }
    .plan-card:hover { border-color: #eab308; }