/* =========================
   KEBS NOTICE (upload form)
========================= */

.kebs-notice{
    background:rgba(113,255,0,0.05);
    border:1px solid rgba(113,255,0,0.18);
    border-radius:12px;
    padding:12px 16px;
    color:rgba(255,255,255,0.6);
    font-size:12px;
    line-height:1.6;
    margin-top:8px;
    margin-bottom:8px;
}
.kebs-notice strong{ color:#71ff00; }
body.light-mode .kebs-notice{
    background:rgba(113,255,0,0.06);
    border-color:rgba(113,255,0,0.2);
    color:#555;
}

/* =========================
   SELLER NAVBAR
========================= */

.seller-navbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:3000;
    height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 28px;
    background:rgba(8,8,8,0.9);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    border-bottom:1px solid rgba(113,255,0,0.15);
    box-shadow:0 4px 30px rgba(0,0,0,0.5);
}

.seller-nav-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.seller-nav-logo-img{
    height:44px;
    width:auto;
    object-fit:contain;
    background:none;
}

.seller-nav-brand{
    font-weight:800;
    font-size:20px;
    color:#71ff00;
    letter-spacing:1.5px;
}

.seller-nav-center{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

.seller-nav-title{
    font-size:14px;
    color:rgba(255,255,255,0.5);
    font-weight:600;
    letter-spacing:0.5px;
}

.seller-nav-right{
    display:flex;
    align-items:center;
    gap:12px;
}

.seller-theme-btn{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:10px;
    padding:8px 12px;
    font-size:18px;
    cursor:pointer;
    transition:0.3s ease;
    color:white;
    line-height:1;
}

.seller-theme-btn:hover{
    background:rgba(113,255,0,0.1);
    border-color:rgba(113,255,0,0.3);
}

.seller-nav-link{
    text-decoration:none;
    color:rgba(255,255,255,0.75);
    font-size:13px;
    font-weight:600;
    padding:8px 16px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.04);
    transition:0.3s ease;
    display:flex;
    align-items:center;
    gap:6px;
}

.seller-nav-link:hover{
    color:#71ff00;
    border-color:rgba(113,255,0,0.3);
    background:rgba(113,255,0,0.08);
}

.seller-nav-icon-btn{
    width:38px;
    height:38px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    flex-shrink:0;
}

/* =========================
   LIGHT MODE — SELLER
========================= */

body.light-mode{
    background:#f0f2f5;
    color:#111;
}

body.light-mode .seller-navbar{
    background:rgba(255,255,255,0.92);
    border-bottom-color:rgba(0,0,0,0.08);
    box-shadow:0 4px 20px rgba(0,0,0,0.1);
}

body.light-mode .seller-nav-brand{
    color:#22a000;
}

body.light-mode .seller-nav-title{
    color:rgba(0,0,0,0.4);
}

body.light-mode .seller-nav-link{
    color:#333;
    border-color:rgba(0,0,0,0.1);
    background:rgba(0,0,0,0.04);
}

body.light-mode .seller-nav-link:hover{
    color:#22a000;
    background:rgba(113,255,0,0.08);
    border-color:rgba(113,255,0,0.3);
}

body.light-mode .seller-theme-btn{
    color:#333;
    background:rgba(0,0,0,0.05);
    border-color:rgba(0,0,0,0.1);
}

body.light-mode .sidebar{
    background:#fff;
    border-right:1px solid rgba(0,0,0,0.08);
    color:#111;
}

body.light-mode .sidebar ul li:hover{
    background:rgba(113,255,0,0.08);
    color:#22a000;
}

body.light-mode .logo h2{
    color:#22a000;
}

body.light-mode .upload-box,
body.light-mode .analytics-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 8px 32px rgba(0,0,0,0.08);
}

body.light-mode .upload-box h2,
body.light-mode .analytics-card h2{
    color:#111;
}

body.light-mode .upload-box input,
body.light-mode #productCategory{
    background:#f4f6f8;
    color:#111;
    border:1px solid rgba(0,0,0,0.1);
}

body.light-mode .seller-stat-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 8px 24px rgba(0,0,0,0.07);
}

body.light-mode .seller-stat-card p{
    color:#444;
}

body.light-mode .order-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 8px 24px rgba(0,0,0,0.07);
}

body.light-mode .order-card p,
body.light-mode .bar p,
body.light-mode .orders-header h2{
    color:#333;
}

body.light-mode .product-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
}

body.light-mode .product-card h3,
body.light-mode .product-card p{
    color:#111;
}

body.light-mode .stat-card{
    background:#fff;
    box-shadow:0 4px 16px rgba(0,0,0,0.08);
}

body.light-mode .seller-notification{
    background:#fff;
    color:#111;
    border-color:rgba(0,0,0,0.1);
}

/* =========================
   PAGE ANIMATION
========================= */

/* PAGE ANIMATION */

body{

    animation:fadePage 0.8s ease;

}



/* FADE */

@keyframes fadePage{

    from{

        opacity:0;

        transform:translateY(12px);

    }



    to{

        opacity:1;

        transform:translateY(0);

    }

}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:

    radial-gradient(

    circle at top left,

    rgba(113,255,0,0.08),

    transparent 30%

    ),

    radial-gradient(

    circle at bottom right,

    rgba(0,153,255,0.08),

    transparent 30%

    ),

    #0a0a0a;

    font-family:Arial,sans-serif;

    display:flex;

    color:white;

    overflow-x:hidden;

}

/* SIDEBAR */

.sidebar{
    width:250px;
    /* Subtract the consent banner's height while it is on screen. The banner is
       position:fixed at bottom:0 with z-index 99997; this sidebar is ALSO fixed, so body
       padding cannot move it — without this the banner sat on top of the sidebar's last
       entries (Messages, Marketing) and silently swallowed those clicks. --sk-consent-h
       is published by security.js and returns to 0px the moment consent is accepted. */
    height:calc(100vh - 68px - var(--sk-consent-h, 0px));
    background:#111;
    color:white;
    padding:20px 20px 80px;
    position:fixed;
    top:68px;
    left:0;
    display:flex;
    flex-direction:column;
    border-right:1px solid rgba(255,255,255,0.06);
    backdrop-filter:blur(20px);
    overflow-y:auto;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:40px;
    background:none;
}

.logo img{
    width:160px;
    height:auto;
    object-fit:contain;
    background:none;
}

.logo h2{
    color:#1DBF73;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    padding:15px;
    border-radius:10px;
    margin-bottom:10px;
    cursor:pointer;
    transition:0.3s;
}

.sidebar ul li:hover{

    background:

    rgba(113,255,0,0.12);

    color:#71ff00;

    transform:translateX(6px);

}

.sidebar ul li.active-nav {
    background: rgba(113,255,0,0.15);
    color: #71ff00;
    border-left: 3px solid #71ff00;
    padding-left: 12px;
    font-weight: 700;
}

.sidebar ul li.active-nav i {
    color: #71ff00;
}


/* MAIN CONTENT */

.main-content{
    flex:1;
    min-width:0;
    overflow-x:hidden;
    margin-left:250px;
    padding:30px;
    padding-top:98px;
    padding-bottom:90px;
    box-sizing:border-box;
}


/* TOPBAR */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:32px;
    padding:24px 28px;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:24px;
    backdrop-filter:blur(12px);
}

.topbar-left h1{
    font-size:26px;
    font-weight:800;
    color:white;
    margin-bottom:4px;
}

.topbar-sub{
    color:rgba(255,255,255,0.4);
    font-size:13px;
}

.topbar-back-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 22px;
    background:rgba(113,255,0,0.1);
    border:1px solid rgba(113,255,0,0.25);
    border-radius:14px;
    color:#71ff00;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    transition:0.3s ease;
}

.topbar-back-btn:hover{
    background:rgba(113,255,0,0.18);
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(113,255,0,0.2);
}

/* SIDEBAR BACK BUTTON */

.sidebar-back-btn{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:auto;
    padding:14px 16px;
    background:rgba(113,255,0,0.08);
    border:1px solid rgba(113,255,0,0.2);
    border-radius:14px;
    color:#71ff00;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    transition:0.3s ease;
    position:absolute;
    bottom:24px;
    left:20px;
    right:20px;
}

.sidebar-back-btn:hover{
    background:rgba(113,255,0,0.15);
    transform:translateY(-2px);
}

/* SIDEBAR ICONS */
.sidebar ul li{
    display:flex;
    align-items:center;
    gap:10px;
}

/* STAT ICON */
.stat-icon{
    font-size:28px;
    margin-bottom:10px;
}

/* COMMISSION CARD */
.commission-card{
    border-color:rgba(113,255,0,0.2) !important;
    background:rgba(113,255,0,0.05) !important;
}

.commission-card h3{ color:#71ff00; }

.commission-badge{
    display:inline-block;
    background:rgba(113,255,0,0.12);
    border:1px solid rgba(113,255,0,0.25);
    color:#71ff00;
    padding:3px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    margin-top:8px;
    letter-spacing:0.4px;
}

/* NET EARNINGS CARD */
.net-card{
    border-color:rgba(0,153,255,0.2) !important;
    background:rgba(0,153,255,0.05) !important;
}

.net-card h3{ color:#00aaff; }

.net-badge{
    display:inline-block;
    background:rgba(0,153,255,0.12);
    border:1px solid rgba(0,153,255,0.25);
    color:#00aaff;
    padding:3px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    margin-top:8px;
}

/* LIGHT MODE TOPBAR */
body.light-mode .topbar{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
}

body.light-mode .topbar-left h1{ color:#111; }
body.light-mode .topbar-sub{ color:rgba(0,0,0,0.4); }

body.light-mode .sidebar-back-btn{
    color:#22a000;
    background:rgba(113,255,0,0.08);
    border-color:rgba(113,255,0,0.2);
}


/* STATS */

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:32px;
}

.stat-card{
    background:rgba(255,255,255,0.04);
    backdrop-filter:blur(16px);
    border:1px solid rgba(255,255,255,0.08);
    padding:28px;
    border-radius:24px;
    box-shadow:0 8px 30px rgba(0,0,0,0.25);
    transition:0.3s ease;
    color:white;
}

.stat-card:hover{
    transform:translateY(-4px);
    border-color:rgba(113,255,0,0.2);
}

.stat-card h3{
    margin-bottom:8px;
    color:rgba(255,255,255,0.6);
    font-size:13px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.stat-card p{
    font-size:26px;
    font-weight:800;
    color:#71ff00;
}

body.light-mode .stat-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 4px 16px rgba(0,0,0,0.08);
}

body.light-mode .stat-card h3{ color:rgba(0,0,0,0.5); }
body.light-mode .stat-card p{ color:#22a000; }


/* ADD PRODUCT FORM */

.add-product-section{
    background:white;
    padding:25px;
    border-radius:20px;
    margin-top:40px;
}

.add-product-form{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.add-product-form input{
    padding:15px;
    border:none;
    background:#f0f0f0;
    border-radius:12px;
}

.add-product-form button{
    background:#1DBF73;
    color:white;
    border:none;
    padding:15px;
    border-radius:12px;
    cursor:pointer;
}


/* TABLE */

.orders-section{
    margin-top:40px;
    background:transparent;
    padding:20px;
    border-radius:20px;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

th, td{
    padding:15px;
    text-align:left;
}

th{
    background:rgba(255,255,255,0.05);
    color:rgba(255,255,255,0.6);
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.5px;
    border-bottom:1px solid rgba(255,255,255,0.07);
}

.success{
    color:#1DBF73;
    font-weight:bold;
}

.pending{
    color:orange;
    font-weight:bold;
}


/* PRODUCTS */

.products-section{
    margin-top:40px;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
    gap:10px;
    margin-top:16px;
}

.product-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    overflow:hidden;
    transition:border-color .2s,transform .18s;
    display:flex;
    flex-direction:column;
    position:relative;
}

.product-card:hover{
    transform:translateY(-3px);
    border-color:rgba(113,255,0,0.28);
}

.product-card img{
    width:100%;
    aspect-ratio:1/1;
    height:auto;
    object-fit:cover;
    display:block;
}

.product-card h3,
.product-card p{
    padding:0;
}


/* RESPONSIVE */

@media(max-width:900px){
    .sidebar{ display:none; }
    .main-content{
        margin-left:0 !important;
        margin-right:0 !important;
    }
    .stats{ grid-template-columns:1fr 1fr; }
    .seller-stats{ grid-template-columns:1fr 1fr !important; gap:12px !important; }
    .products-grid{ grid-template-columns:repeat(2,1fr); }
    .seller-nav-center{ display:none; }
    .analytics-summary-row{ grid-template-columns:repeat(2,1fr) !important; }
}

/* SELLER SECTION CARDS */

.seller-section-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:24px;
    padding:28px;
    margin-bottom:28px;
    backdrop-filter:blur(14px);
}

.seller-section-header{ margin-bottom:22px; }
.seller-section-header h2{ color:white; font-size:20px; font-weight:800; margin-bottom:4px; }
.seller-section-sub{ color:rgba(255,255,255,0.38); font-size:13px; }

/* FLASH MANAGER */

.flash-manager-body{ display:flex; flex-direction:column; gap:14px; }

.flash-select{
    width:100%;
    padding:14px 16px;
    background:#1a1a1a;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px;
    color:white;
    font-size:14px;
    outline:none;
    font-family:inherit;
}

.flash-inputs{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.flash-input-group{ display:flex; flex-direction:column; gap:6px; }
.flash-input-group label{ color:rgba(255,255,255,0.5); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.flash-input-group input{
    padding:13px 16px;
    background:#1a1a1a;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px;
    color:white;
    font-size:14px;
    outline:none;
    font-family:inherit;
}

.flash-input-group input:focus{ border-color:rgba(255,136,0,0.4); }

.flash-go-btn{
    padding:15px;
    background:linear-gradient(135deg,#ff4400,#ff8800);
    color:white;
    font-weight:800;
    font-size:15px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 6px 20px rgba(255,68,0,0.25);
}

.flash-go-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(255,68,0,0.4); }

.active-flash-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.afs-name{ flex:1; color:white; font-weight:600; font-size:14px; }
.afs-discount{ background:rgba(255,68,0,0.15); color:#ff8800; padding:3px 10px; border-radius:8px; font-size:12px; font-weight:700; }
.afs-time{ color:rgba(255,255,255,0.38); font-size:12px; }

.afs-end-btn{
    padding:6px 12px;
    background:rgba(255,61,61,0.12);
    border:1px solid rgba(255,61,61,0.25);
    border-radius:8px;
    color:#ff6b6b;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:0.25s;
}

.afs-end-btn:hover{ background:rgba(255,61,61,0.25); }

/* BUYER ORDERS */

.buyer-order-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
    flex-wrap:wrap;
}

.bor-left{ display:flex; flex-direction:column; gap:4px; }
.bor-id{ color:white; font-weight:800; font-size:15px; }
.bor-date,.bor-items{ color:rgba(255,255,255,0.38); font-size:12px; }
.bor-loc{ color:#71ff00; font-size:12px; cursor:pointer; text-decoration:underline; }

.bor-right{ display:flex; align-items:center; gap:10px; }

.bor-status-select{
    padding:9px 14px;
    background:#1a1a1a;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:10px;
    color:white;
    font-size:13px;
    font-weight:600;
    outline:none;
    font-family:inherit;
}

.bor-msg-btn{
    padding:9px 14px;
    background:rgba(113,255,0,0.08);
    border:1px solid rgba(113,255,0,0.2);
    border-radius:10px;
    color:#71ff00;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:0.25s;
    white-space:nowrap;
}

.bor-msg-btn:hover{ background:rgba(113,255,0,0.16); }

/* SELLER DM */

.seller-dm-row{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
    cursor:pointer;
    transition:0.2s;
}

.seller-dm-row:hover{ padding-left:8px; }

.sdm-avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    background:linear-gradient(135deg,#71ff00,#4fc800);
    color:black;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:16px;
    flex-shrink:0;
}

.sdm-name{ color:white; font-weight:700; font-size:14px; }
.sdm-preview{ color:rgba(255,255,255,0.35); font-size:12px; margin-top:2px; }
.sdm-badge{ background:#ff4444; color:white; border-radius:999px; padding:2px 7px; font-size:11px; font-weight:800; margin-left:auto; flex-shrink:0; }

.seller-chat-panel{
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:18px;
    overflow:hidden;
    margin-top:16px;
}

.sdm-chat-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    border-bottom:1px solid rgba(255,255,255,0.06);
    background:rgba(255,255,255,0.03);
}

.sdm-chat-name{ color:white; font-weight:700; font-size:15px; }

.sdm-chat-messages{
    max-height:280px;
    overflow-y:auto;
    padding:16px 18px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sdm-chat-input{
    display:flex;
    gap:8px;
    padding:12px 18px;
    border-top:1px solid rgba(255,255,255,0.06);
}

.sdm-chat-input input{
    flex:1;
    padding:11px 14px;
    background:rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px;
    color:white;
    font-size:13px;
    outline:none;
    font-family:inherit;
}

.sdm-chat-input input:focus{ border-color:rgba(113,255,0,0.35); }

.sdm-chat-input button{
    padding:11px 18px;
    background:linear-gradient(135deg,#71ff00,#4fc800);
    color:black;
    font-weight:800;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-size:13px;
    transition:0.25s;
}

.sdm-chat-input button:hover{ transform:scale(1.04); }
.product-card button{

    width:calc(100% - 30px);

    margin:15px;

    padding:14px;

    border:none;

    border-radius:14px;

    background:#71ff00;

    color:black;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s ease;

}

/* DELETE PRODUCT BUTTON */

.delete-product-btn{

    width:100%;

    margin-top:14px;

    padding:14px;

    border:none;

    border-radius:14px;

    background:#ff3d3d;

    color:white;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s ease;

}



/* HOVER */

.delete-product-btn:hover{

    transform:translateY(-2px);

    opacity:0.9;

}

/* PRODUCT ACTIONS */

.product-actions{

    display:flex;

    gap:12px;

    margin-top:14px;

}



/* EDIT BUTTON */

.edit-product-btn{

    flex:1;

    padding:14px;

    border:none;

    border-radius:14px;

    background:#71ff00;

    color:black;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s ease;

}



/* HOVER */

.edit-product-btn:hover{

    transform:translateY(-2px);

}

/* IMAGE PREVIEW */

.image-preview{

    width:100%;

    max-width:260px;

    height:260px;

    object-fit:cover;

    border-radius:24px;

    margin-top:20px;
    
    display:block;

    border:1px solid rgba(255,255,255,0.08);

}

/* UPLOAD SECTION */

.upload-section{

    margin:40px 0;

}



/* BOX */

.upload-box{

    background:rgba(255,255,255,0.04);

backdrop-filter:blur(18px);

-webkit-backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,0.08);

box-shadow:

0 10px 40px rgba(0,0,0,0.35);

    padding:30px;

    border-radius:28px;

    border:1px solid rgba(255,255,255,0.06);

    box-shadow:

0 0 25px rgba(113,255,0,0.25);

}



/* TITLE */

.upload-box h2{

    margin-bottom:24px;

    color:white;

}



/* INPUTS */

.upload-box input{

    width:100%;

    padding:16px;

    margin-bottom:18px;

    border:none;

    border-radius:14px;

    background:#1f1f1f;

    color:white;

}



/* BUTTON */

.upload-box button{

    width:100%;

    transition:0.3s ease;

    padding:18px;

    border:none;

    border-radius:16px;

    background:#71ff00;

    color:black;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s ease;

}



/* HOVER */

.upload-box button:hover{

    transform:

    translateY(-3px)

    scale(1.02);


}



/* SELLER STATS */

.seller-stats{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:20px;
    margin:28px 0;
}



/* CARD */

.seller-stat-card{

  background:rgba(255,255,255,0.04);

backdrop-filter:blur(18px);

-webkit-backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,0.08);

box-shadow:

0 10px 40px rgba(0,0,0,0.35);

    transition:0.35s ease;

    padding:28px;

    border-radius:24px;

    text-align:center;

    border:1px solid rgba(255,255,255,0.06);

}



/* NUMBER */

.seller-stat-card h3{

    font-size:40px;

    color:#71ff00;

    margin-bottom:10px;

}

.seller-stat-card:hover{

    transform:

    translateY(-8px)

    scale(1.01);

}



/* TEXT */

.seller-stat-card p{

    color:white;

}

/* ANALYTICS */

.analytics-section{
    margin:24px 0;
    width:100%;
}



/* CARD */

.analytics-card{

   background:rgba(255,255,255,0.04);

backdrop-filter:blur(18px);

-webkit-backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,0.08);

box-shadow:

0 10px 40px rgba(0,0,0,0.35);

    padding:35px;

    border-radius:28px;

    border:1px solid rgba(255,255,255,0.06);

}

.analytics-card:hover{

    transform:

    translateY(-8px)

    scale(1.01);

}



/* TITLE */

.analytics-card h2{

    margin-bottom:35px;

    color:white;

}



/* ── Phase 6: Smart Insights Strip ── */
.seller-insights-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:0 16px 20px;
}
@media(max-width:560px){
  .seller-insights-strip{ grid-template-columns:1fr 1fr; }
}
.seller-insight-card{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:14px;
  padding:12px 14px;
}
.si-val{ font-size:13px; font-weight:900; color:white; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.si-lbl{ font-size:10px; color:rgba(255,255,255,0.32); font-weight:600; margin-top:2px; }

/* ── Phase 6: Live chart wrapper ── */
.p6-chart-wrap{
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:4px;
}
.p6-chart-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.p6-chart-lbl{ font-size:11px; font-weight:800; color:rgba(255,255,255,0.3); text-transform:uppercase; letter-spacing:.08em; }
.p6-chart-total{ font-size:16px; font-weight:900; color:#71ff00; }

/* BARS */

.chart-bars{

    height:320px;

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

    gap:18px;

}



/* BAR */

.bar{

    flex:1;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:12px;

}



/* BAR LINE */

.bar span{

    width:100%;

    border-radius:16px 16px 0 0;

    background:linear-gradient(

        180deg,

        #71ff00,

        #34b300

    );

    box-shadow:0 0 20px rgba(113,255,0,0.3);

    transition:0.4s ease;

}



/* HOVER */

.bar span:hover{

    transform:translateY(-8px);

}



/* DAYS */

.bar p{

    color:white;

}

/* ORDERS */

.orders-section{

    margin:60px 0;

}



/* HEADER */

.orders-header{

    margin-bottom:28px;

}



/* GRID */

.orders-grid{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(280px,1fr));

    gap:24px;

}



/* CARD */

.order-card{

    background:rgba(255,255,255,0.04);

backdrop-filter:blur(18px);

-webkit-backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,0.08);

box-shadow:

0 10px 40px rgba(0,0,0,0.35);

    padding:28px;

    transition:0.35s ease;

    border-radius:24px;

    border:1px solid rgba(255,255,255,0.06);

    transition:0.3s ease;

}



/* HOVER */

.order-card:hover{

      transform:

    translateY(-8px)

    scale(1.01);


}



/* TOP */

.order-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}



/* STATUS */

.delivered-status,

.pending-status,

.shipping-status{

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:bold;

}



/* DELIVERED */

.delivered-status{

    background:rgba(113,255,0,0.12);

    color:#71ff00;

}



/* PENDING */

.pending-status{

    background:rgba(255,193,7,0.12);

    color:#ffc107;

}



/* SHIPPING */

.shipping-status{

    background:rgba(0,153,255,0.12);

    color:#00aaff;

}



/* TEXT */

.order-card p{

    color:white;

    margin:10px 0;

}



/* PRICE */

.order-card h4{

    margin:18px 0;

    color:#71ff00;

    font-size:24px;

}



/* BUTTON */

.view-order-btn{

    width:100%;

    padding:14px;

    border:none;

    border-radius:14px;

    background:#71ff00;

    color:black;

    font-weight:bold;

    cursor:pointer;

    transition:0.3s ease;

}



/* HOVER */

.view-order-btn:hover{

    transform:translateY(-3px);

}

/* NOTIFICATION CONTAINER */

.notification-container{

    position:fixed;

    top:30px;

    right:30px;

    z-index:999999;

    display:flex;

    flex-direction:column;

    gap:16px;

}



/* NOTIFICATION */

.seller-notification{

    min-width:320px;

    padding:18px 22px;

    border-radius:18px;

    background:#151515;

    color:white;

    border:1px solid rgba(255,255,255,0.06);

    transform:translateX(120%);

    opacity:0;

    transition:0.4s ease;

    box-shadow:0 10px 40px rgba(0,0,0,0.4);

}



/* SHOW */

.show-notification{

    transform:translateX(0);

    opacity:1;

}



/* SUCCESS */

.seller-notification.success{

    border-left:5px solid #71ff00;

}



/* DELETE */

.seller-notification.delete{

    border-left:5px solid #ff3d3d;

}

/* CARD ANIMATION */

.product-card,

.order-card,

.seller-stat-card,

.analytics-card{

    animation:cardFade 0.7s ease;

}



/* KEYFRAMES */

@keyframes cardFade{

    from{

        opacity:0;

        transform:

        translateY(30px)

        scale(0.96);

    }



    to{

        opacity:1;

        transform:

        translateY(0)

        scale(1);

    }

}

/* PROFILE PAGE */

.profile-page{

    padding:50px 30px;

}



/* CONTAINER */

.profile-container{

    display:grid;

    grid-template-columns:320px 1fr;

    gap:30px;

}



/* SIDEBAR */

.profile-sidebar{

    background:rgba(255,255,255,0.04);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:30px;

    padding:30px;

    text-align:center;

}



/* IMAGE */

.profile-image{

    width:140px;

    height:140px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid #71ff00;

    margin-bottom:20px;

}



/* FILE INPUT */

#profileUpload{

    margin-top:10px;

}



/* LOGOUT */

.logout-btn{

    width:100%;

    padding:16px;

    border:none;

    border-radius:16px;

    background:#ff3d3d;

    color:white;

    font-weight:bold;

    cursor:pointer;

    margin-top:25px;

}



/* CONTENT */

.profile-content{

    display:flex;

    flex-direction:column;

    gap:30px;

}



/* STATS */

.profile-stats{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(220px,1fr));

    gap:24px;

}



/* CARD */

.profile-stat-card,

.profile-orders{

    background:rgba(255,255,255,0.04);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:28px;

    padding:28px;

}



/* NUMBER */

.profile-stat-card h3{

    color:#71ff00;

    font-size:36px;

    margin-bottom:10px;

}



/* ORDER CARD */

.profile-order-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

    border-bottom:

    1px solid rgba(255,255,255,0.08);

}



/* MOBILE */

@media(max-width:900px){

    .profile-container{

        grid-template-columns:1fr;

    }

}

@media(max-width:900px){

    body{

        display:block;

    }

}

#productCategory{
    width:100%;
    padding:15px;
    margin-bottom:18px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px;
    background:#000;
    color:white;
    font-size:16px;
    outline:none;
}

/* =========================
   SELLER LIGHT MODE — FULL
========================= */

body.light-mode{
    background:#f0f4f8;
    color:#111;
}

/* SIDEBAR */
body.light-mode .sidebar{
    background:#fff;
    border-right:1px solid rgba(0,0,0,0.08);
    color:#111;
}
body.light-mode .sidebar ul li{ color:#333; }
body.light-mode .sidebar ul li:hover{ background:rgba(113,255,0,0.1); color:#22a000; }
body.light-mode .sidebar ul li i{ color:#555; }
body.light-mode .sidebar ul li:hover i{ color:#22a000; }

/* TOPBAR */
body.light-mode .topbar{ background:#fff; border-color:rgba(0,0,0,0.08); }
body.light-mode .topbar-left h1{ color:#111; }
body.light-mode .topbar-sub{ color:rgba(0,0,0,0.45); }

/* UPLOAD BOX */
body.light-mode .upload-box{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 8px 32px rgba(0,0,0,0.07);
}
body.light-mode .upload-box h2{ color:#111; }
body.light-mode .upload-box input,
body.light-mode #productCategory,
body.light-mode #productLocation,
body.light-mode .flash-input-group input,
body.light-mode .flash-select,
body.light-mode .bor-status-select,
body.light-mode .sdm-chat-input input{
    background:#f5f5f5;
    color:#111;
    border:1px solid rgba(0,0,0,0.12);
}
body.light-mode .upload-box input::placeholder,
body.light-mode .flash-input-group input::placeholder{ color:rgba(0,0,0,0.38); }

/* SELLER STATS */
body.light-mode .seller-stats .seller-stat-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 6px 24px rgba(0,0,0,0.07);
}
body.light-mode .seller-stat-card p{ color:#444; }

/* COMMISSION / NET CARDS */
body.light-mode .commission-card{
    background:rgba(113,255,0,0.06) !important;
    border-color:rgba(113,255,0,0.25) !important;
}
body.light-mode .net-card{
    background:rgba(0,153,255,0.06) !important;
    border-color:rgba(0,153,255,0.25) !important;
}

/* ANALYTICS CARD */
body.light-mode .analytics-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 8px 28px rgba(0,0,0,0.07);
}
body.light-mode .analytics-card h2{ color:#111; }
body.light-mode .bar p{ color:#444; }

/* ORDERS (static demo) */
body.light-mode .orders-section .orders-header h2{ color:#111; }
body.light-mode .order-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 6px 20px rgba(0,0,0,0.07);
}
body.light-mode .order-card h3{ color:#111; }
body.light-mode .order-card p{ color:#444; }

/* PRODUCT CARDS (seller) */
body.light-mode .products-section h2{ color:#111; }
body.light-mode .product-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
}
body.light-mode .product-card h3{ color:#111 !important; }
body.light-mode .product-card p{ color:#555 !important; }

/* SELLER SECTION CARDS */
body.light-mode .seller-section-card{
    background:#fff;
    border-color:rgba(0,0,0,0.08);
    box-shadow:0 6px 24px rgba(0,0,0,0.07);
}
body.light-mode .seller-section-header h2{ color:#111; }
body.light-mode .seller-section-sub{ color:rgba(0,0,0,0.4); }

/* FLASH SALE MANAGER */
body.light-mode .flash-input-group label{ color:rgba(0,0,0,0.5); }
body.light-mode .afs-name{ color:#111; }
body.light-mode .afs-time{ color:rgba(0,0,0,0.4); }
body.light-mode .active-flash-row{ border-bottom-color:rgba(0,0,0,0.06); }

/* BUYER ORDERS */
body.light-mode .buyer-order-row{ border-bottom-color:rgba(0,0,0,0.06); }
body.light-mode .bor-id{ color:#111; }
body.light-mode .bor-date,
body.light-mode .bor-items{ color:rgba(0,0,0,0.4); }

/* DM INBOX */
body.light-mode .seller-dm-row{ border-bottom-color:rgba(0,0,0,0.06); }
body.light-mode .sdm-name{ color:#111; }
body.light-mode .sdm-preview{ color:rgba(0,0,0,0.4); }
body.light-mode .seller-chat-panel{
    background:#f9f9f9;
    border-color:rgba(0,0,0,0.08);
}
body.light-mode .sdm-chat-header{
    background:#f0f0f0;
    border-bottom-color:rgba(0,0,0,0.08);
}
body.light-mode .sdm-chat-name{ color:#111; }
body.light-mode .sdm-chat-input{ border-top-color:rgba(0,0,0,0.08); }

/* KRA TAX */
body.light-mode .kra-pin-row .flash-input-group label{ color:rgba(0,0,0,0.5); }
body.light-mode .tax-disclaimer{ color:#555; }

/* BOOST SECTION */
body.light-mode .boost-cost-preview{
    background:rgba(0,153,255,0.05);
    border-color:rgba(0,153,255,0.2);
}
body.light-mode .boost-cost-label{ color:rgba(0,0,0,0.45); }

/* NOTIFICATIONS */
body.light-mode .seller-notification{
    background:#fff;
    color:#111;
    border-color:rgba(0,0,0,0.1);
    box-shadow:0 8px 30px rgba(0,0,0,0.12);
}

/* FOOTER (seller) */
body.light-mode .footer{
    background:linear-gradient(135deg,#f8fdf4,#f0f8f0);
}
body.light-mode .footer::before{ opacity:0.05; }
body.light-mode .footer-brand p,
body.light-mode .footer-links a{ color:#444; }
body.light-mode .footer-links h3{ color:#22a000; }
body.light-mode .footer-bottom p{ color:#555; }
body.light-mode .socials a{ border-color:rgba(0,0,0,0.15); color:#333; }

/* BOTTOM NAV */
body.light-mode .bottom-nav{
    background:rgba(255,255,255,0.97);
    border-top-color:rgba(0,0,0,0.1);
}
body.light-mode .bottom-nav a,
body.light-mode .bottom-nav div{ color:#333 !important; }

/* SELECT OPTION TEXT (browser native) */
body.light-mode select option{ background:#fff; color:#111; }

/* ===========================================
   BULK UPLOAD DRAG ZONE (light mode)
=========================================== */

body.light-mode .bulk-upload-area{ background:rgba(113,255,0,0.04); border-color:rgba(113,255,0,0.2); }
body.light-mode .bulk-upload-text{ color:#555; }
body.light-mode .qa-seller-row{ background:#fff; border-color:rgba(0,0,0,0.08); }
body.light-mode .qa-question-text{ color:#111; }
body.light-mode .qa-asker-info{ color:#888; }
body.light-mode .qa-answer-input{ background:#f5f5f5; color:#111; border-color:rgba(0,0,0,0.12); }

/* ===========================================
   UPLOAD FORM — PRICING / STOCK ROW
=========================================== */

.upload-field-row{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:12px;
    margin-bottom:14px;
}

.upload-field-group{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.upload-label{
    font-size:11px;
    font-weight:700;
    color:rgba(255,255,255,0.45);
    text-transform:uppercase;
    letter-spacing:0.5px;
}

/* Live profit strip under the pricing fields */
.profit-preview-strip{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    background:rgba(113,255,0,0.06);
    border:1px solid rgba(113,255,0,0.18);
    border-radius:12px;
    padding:10px 16px;
    margin-bottom:14px;
    font-size:13px;
    color:rgba(255,255,255,0.7);
}

.pp-item strong{ color:#71ff00; }
.pp-sep{ color:rgba(255,255,255,0.2); }

/* ===========================================
   PROFIT CALCULATOR SECTION
=========================================== */

.profit-calc-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.profit-results-col{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:10px;
}

.profit-result-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.profit-result-card.highlight-card{
    background:rgba(113,255,0,0.06);
    border-color:rgba(113,255,0,0.2);
}

.pr-label{
    font-size:11px;
    color:rgba(255,255,255,0.4);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.4px;
}

.pr-val{
    font-size:20px;
    font-weight:900;
    color:white;
    line-height:1.1;
}

.pr-val.green{ color:#71ff00; }
.pr-val.orange{ color:#ff9800; }
.pr-val.red{ color:#ff4444; }

.profit-advice{
    margin-top:16px;
    background:rgba(255,152,0,0.07);
    border:1px solid rgba(255,152,0,0.2);
    border-radius:12px;
    padding:12px 16px;
    font-size:13px;
    color:rgba(255,255,255,0.6);
    line-height:1.6;
}

.profit-advice.good{
    background:rgba(113,255,0,0.06);
    border-color:rgba(113,255,0,0.2);
}

/* ===========================================
   SALES ANALYTICS TABS
=========================================== */

.analytics-tabs{
    display:flex;
    gap:8px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.analytics-tab{
    padding:9px 20px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:10px;
    color:rgba(255,255,255,0.55);
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
    font-family:inherit;
}

.analytics-tab:hover{ background:rgba(255,255,255,0.1); color:white; }

.active-analytics-tab{
    background:rgba(113,255,0,0.1) !important;
    border-color:rgba(113,255,0,0.3) !important;
    color:#71ff00 !important;
}

.analytics-summary-row{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:12px;
    margin-bottom:20px;
}

.analytics-sum-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:14px;
    padding:16px 14px;
}

.asc-label{ font-size:11px; font-weight:700; color:rgba(255,255,255,0.38); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:6px; }
.asc-val{ font-size:22px; font-weight:900; color:#71ff00; }
.asc-sub{ font-size:11px; color:rgba(255,255,255,0.3); margin-top:3px; }

.analytics-chart-wrap{
    background:rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:16px;
    padding:20px 16px 14px;
}

/* Best Sellers */
.best-seller-row{
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.best-seller-row:last-child{ border-bottom:none; }

.bs-rank{
    width:28px;
    height:28px;
    border-radius:50%;
    background:rgba(113,255,0,0.1);
    border:1px solid rgba(113,255,0,0.2);
    color:#71ff00;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:900;
    flex-shrink:0;
}

.bs-rank.rank-1{ background:rgba(255,193,7,0.15); border-color:rgba(255,193,7,0.3); color:#ffc107; }
.bs-rank.rank-2{ background:rgba(192,192,192,0.1); border-color:rgba(192,192,192,0.2); color:#c0c0c0; }
.bs-rank.rank-3{ background:rgba(205,127,50,0.1); border-color:rgba(205,127,50,0.2); color:#cd7f32; }

.bs-img{
    width:44px;
    height:44px;
    border-radius:10px;
    object-fit:cover;
    flex-shrink:0;
}

.bs-name{ color:white; font-weight:700; font-size:13px; }
.bs-sub{ color:rgba(255,255,255,0.38); font-size:11px; margin-top:2px; }

.bs-bar-wrap{
    flex:1;
    background:rgba(255,255,255,0.06);
    border-radius:999px;
    height:6px;
    overflow:hidden;
}

.bs-bar{ height:100%; border-radius:999px; background:linear-gradient(90deg,#71ff00,#4fc800); }

.bs-sold{ color:#71ff00; font-size:13px; font-weight:800; white-space:nowrap; }

/* ===========================================
   INVENTORY TABLE
=========================================== */

.inv-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}

.inv-table th{
    padding:11px 14px;
    text-align:left;
    font-size:11px;
    font-weight:800;
    color:rgba(255,255,255,0.35);
    text-transform:uppercase;
    letter-spacing:0.7px;
    border-bottom:1px solid rgba(255,255,255,0.06);
    background:rgba(255,255,255,0.02);
    white-space:nowrap;
}

.inv-table td{
    padding:12px 14px;
    border-bottom:1px solid rgba(255,255,255,0.04);
    color:rgba(255,255,255,0.8);
    vertical-align:middle;
}

.inv-table tr:last-child td{ border-bottom:none; }
.inv-table tr:hover td{ background:rgba(255,255,255,0.02); }

/* Stock Status indicator */
.stock-status-pill{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
}

.stock-ok{ background:rgba(113,255,0,0.1); color:#71ff00; border:1px solid rgba(113,255,0,0.2); }
.stock-low{ background:rgba(255,152,0,0.12); color:#ff9800; border:1px solid rgba(255,152,0,0.25); animation:pulseStock 2s infinite; }
.stock-out{ background:rgba(255,61,61,0.12); color:#ff6b6b; border:1px solid rgba(255,61,61,0.25); }

@keyframes pulseStock{
    0%,100%{ box-shadow:0 0 0 0 rgba(255,152,0,0.3); }
    50%{ box-shadow:0 0 0 4px rgba(255,152,0,0); }
}

/* Stock edit inline */
.stock-edit-input{
    width:70px;
    padding:6px 10px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:8px;
    color:white;
    font-size:13px;
    font-weight:700;
    text-align:center;
    outline:none;
    font-family:inherit;
}

.stock-edit-input:focus{ border-color:rgba(113,255,0,0.4); }

/* Inventory action buttons */
.inv-btn{
    padding:6px 10px;
    border-radius:8px;
    border:none;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
    font-family:inherit;
    white-space:nowrap;
}

.inv-btn-save{ background:rgba(113,255,0,0.1); color:#71ff00; border:1px solid rgba(113,255,0,0.2); }
.inv-btn-save:hover{ background:rgba(113,255,0,0.22); }
.inv-btn-out{ background:rgba(255,61,61,0.1); color:#ff6b6b; border:1px solid rgba(255,61,61,0.2); }
.inv-btn-out:hover{ background:rgba(255,61,61,0.22); }
.inv-btn-restore{ background:rgba(0,170,255,0.1); color:#00aaff; border:1px solid rgba(0,170,255,0.2); }
.inv-btn-restore:hover{ background:rgba(0,170,255,0.22); }

/* Low Stock Alert Bar */
.low-stock-alert-bar{
    background:rgba(255,152,0,0.08);
    border:1px solid rgba(255,152,0,0.25);
    border-radius:14px;
    padding:14px 18px;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.lsab-icon{ font-size:20px; flex-shrink:0; }
.lsab-text{ flex:1; }
.lsab-text h4{ color:#ff9800; font-size:13px; font-weight:800; margin-bottom:2px; }
.lsab-text p{ color:rgba(255,255,255,0.5); font-size:12px; }

/* Inventory Legend */
.inv-legend{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    color:rgba(255,255,255,0.45);
    font-weight:600;
}

.inv-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    flex-shrink:0;
}

.green-dot{ background:#71ff00; }
.orange-dot{ background:#ff9800; }
.red-dot{ background:#ff4444; }

/* Out-of-stock row dimming */
.inv-table tr.oos-row td{ opacity:0.5; }
.inv-table tr.oos-row td:first-child,
.inv-table tr.oos-row td:last-child{ opacity:1; }

/* Light mode */
body.light-mode .profit-result-card{ background:#fff; border-color:rgba(0,0,0,0.08); }
body.light-mode .highlight-card{ background:rgba(113,255,0,0.06) !important; }
body.light-mode .pr-label{ color:#888; }
body.light-mode .pr-val{ color:#111; }
body.light-mode .analytics-sum-card{ background:#fff; border-color:rgba(0,0,0,0.08); }
body.light-mode .asc-label{ color:#888; }
body.light-mode .asc-sub{ color:#aaa; }
body.light-mode .analytics-chart-wrap{ background:#f9f9f9; border-color:rgba(0,0,0,0.07); }
body.light-mode .analytics-tab{ background:#fff; border-color:rgba(0,0,0,0.1); color:#555; }
body.light-mode .best-seller-row{ border-color:rgba(0,0,0,0.06); }
body.light-mode .bs-name{ color:#111; }
body.light-mode .bs-sub{ color:#888; }
body.light-mode .inv-table th{ color:#888; border-bottom-color:rgba(0,0,0,0.06); background:rgba(0,0,0,0.02); }
body.light-mode .inv-table td{ color:#333; border-color:rgba(0,0,0,0.05); }
body.light-mode .stock-edit-input{ background:#f5f5f5; color:#111; border-color:rgba(0,0,0,0.15); }
body.light-mode .upload-field-row .upload-label{ color:#666; }
body.light-mode .profit-preview-strip{ background:rgba(113,255,0,0.05); border-color:rgba(113,255,0,0.15); color:#444; }

@media(max-width:900px){
    .upload-field-row{ grid-template-columns:1fr 1fr; }
}

/* =========================
   SELLER DASHBOARD — PREMIUM UPGRADE
========================= */

/* ---- SIDEBAR ---- */
.sidebar{
    background:linear-gradient(180deg,#0a0f0a 0%,#0f140f 60%,#111 100%) !important;
    border-right:1px solid rgba(113,255,0,0.1) !important;
}

.sidebar ul li{
    border-radius:14px !important;
    font-size:14px;
    font-weight:600;
    color:rgba(255,255,255,0.65);
    transition:0.2s ease !important;
    transform:none !important;
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px !important;
}

.sidebar ul li i{
    width:18px;
    text-align:center;
    font-size:15px;
    color:rgba(255,255,255,0.4);
    transition:0.2s;
    flex-shrink:0;
}

.sidebar ul li:hover{
    background:rgba(113,255,0,0.09) !important;
    color:#71ff00 !important;
    transform:translateX(4px) !important;
}

.sidebar ul li:hover i{ color:#71ff00; }

/* ---- TOPBAR ---- */
.topbar{
    background:linear-gradient(135deg,rgba(113,255,0,0.06),rgba(255,255,255,0.02)) !important;
    border:1px solid rgba(113,255,0,0.12) !important;
    border-radius:22px !important;
    padding:22px 28px !important;
}

.topbar-left h1{
    font-size:24px !important;
    background:linear-gradient(135deg,#fff 60%,#71ff00);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}

/* ---- STAT CARDS ---- */
.seller-stat-card{
    background:linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02)) !important;
    border:1px solid rgba(255,255,255,0.08) !important;
    border-radius:22px !important;
    padding:26px 22px !important;
    transition:0.3s ease !important;
    position:relative;
    overflow:hidden;
}

.seller-stat-card::before{
    content:"";
    position:absolute;
    top:-50%;
    right:-30%;
    width:120px;
    height:120px;
    background:radial-gradient(circle,rgba(113,255,0,0.08),transparent 70%);
    pointer-events:none;
}

.seller-stat-card:hover{
    transform:translateY(-5px) !important;
    border-color:rgba(113,255,0,0.2) !important;
    box-shadow:0 16px 40px rgba(0,0,0,0.3),0 0 0 1px rgba(113,255,0,0.1);
}

.seller-stat-card h3{
    font-size:36px !important;
    font-weight:900 !important;
    margin-bottom:6px !important;
}

.seller-stat-card p{
    color:rgba(255,255,255,0.5) !important;
    font-size:13px !important;
    font-weight:600;
}

.stat-icon{
    width:44px;
    height:44px;
    border-radius:14px;
    background:rgba(113,255,0,0.08);
    border:1px solid rgba(113,255,0,0.15);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    margin-bottom:14px !important;
}

/* ---- UPLOAD BOX ---- */
.upload-box{
    background:linear-gradient(135deg,rgba(113,255,0,0.04),rgba(255,255,255,0.02)) !important;
    border:1px solid rgba(113,255,0,0.12) !important;
    box-shadow:0 0 0 1px rgba(113,255,0,0.05), 0 20px 60px rgba(0,0,0,0.3) !important;
    border-radius:28px !important;
    padding:32px !important;
}

.upload-box h2{
    font-size:20px !important;
    font-weight:900 !important;
    margin-bottom:22px !important;
    display:flex;
    align-items:center;
    gap:10px;
}

.upload-box input,
#productCategory,
#productLocation{
    background:#000 !important;
    border:1px solid rgba(255,255,255,0.12) !important;
    border-radius:14px !important;
    color:white !important;
    padding:14px 16px !important;
    font-size:14px;
    outline:none;
    transition:border-color 0.2s;
}

/* ensure option items inside the black dropdown are also black */
#productCategory option,
#productCategory optgroup{
    background:#000 !important;
    color:white !important;
}

.upload-box input:focus,
#productCategory:focus,
#productLocation:focus{
    border-color:rgba(113,255,0,0.4) !important;
}

.upload-box input::placeholder{ color:rgba(255,255,255,0.35); }

.upload-box button{
    background:linear-gradient(135deg,#71ff00,#4fc800) !important;
    color:black !important;
    font-size:15px !important;
    font-weight:900 !important;
    border-radius:16px !important;
    padding:17px !important;
    box-shadow:0 8px 24px rgba(113,255,0,0.28) !important;
    transition:0.3s ease !important;
}

.upload-box button:hover{
    transform:translateY(-3px) scale(1.01) !important;
    box-shadow:0 14px 36px rgba(113,255,0,0.42) !important;
}

/* AI Write button — must not inherit upload-box full-width button styles */
#aiWriteBtn{
    width:auto !important;
    padding:5px 13px !important;
    background:linear-gradient(135deg,#a080ff,#6040cc) !important;
    color:white !important;
    border:none !important;
    border-radius:8px !important;
    font-size:11px !important;
    font-weight:800 !important;
    font-family:inherit !important;
    cursor:pointer !important;
    white-space:nowrap !important;
    box-shadow:none !important;
    transform:none !important;
    transition:opacity 0.2s !important;
}
#aiWriteBtn:hover{ opacity:0.85 !important; transform:none !important; box-shadow:none !important; }
#aiWriteBtn:disabled{ opacity:0.5 !important; cursor:not-allowed !important; }

/* Image preview box */
.image-preview{
    border-radius:18px !important;
    border:2px solid rgba(113,255,0,0.2) !important;
    box-shadow:0 8px 24px rgba(0,0,0,0.3) !important;
}

/* ---- ANALYTICS CARD ---- */
.analytics-card{
    background:linear-gradient(135deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01)) !important;
    border:1px solid rgba(255,255,255,0.07) !important;
    border-radius:28px !important;
    padding:30px !important;
    transition:none !important;
}

.analytics-card:hover{ transform:none !important; }

.analytics-card h2{
    font-size:18px !important;
    font-weight:800 !important;
    display:flex;
    align-items:center;
    gap:8px;
}

.chart-bars{
    height:280px !important;
    gap:12px !important;
    padding:0 8px;
}

.bar span{
    border-radius:10px 10px 0 0 !important;
    background:linear-gradient(180deg,#71ff00,#3a9900) !important;
    box-shadow:0 0 16px rgba(113,255,0,0.25) !important;
    min-height:4px;
    transition:height 0.6s ease, box-shadow 0.2s !important;
}

.bar span:hover{
    transform:none !important;
    box-shadow:0 0 28px rgba(113,255,0,0.5) !important;
}

.bar p{
    font-size:11px !important;
    font-weight:700;
    color:rgba(255,255,255,0.4) !important;
    letter-spacing:0.3px;
}

/* ---- ORDER CARDS ---- */
.order-card{
    background:rgba(255,255,255,0.03) !important;
    border:1px solid rgba(255,255,255,0.07) !important;
    border-radius:20px !important;
    padding:22px !important;
    transition:0.25s ease !important;
}

.order-card:hover{
    transform:translateY(-4px) !important;
    border-color:rgba(113,255,0,0.15) !important;
    box-shadow:0 12px 32px rgba(0,0,0,0.25) !important;
}

.order-card h3{ font-size:16px !important; font-weight:800; }
.order-card h4{ font-size:20px !important; }

/* ---- PRODUCT CARD (seller view) ---- */
.product-card{
    border-radius:20px !important;
    overflow:hidden;
    transition:0.25s ease !important;
}

.product-card h3{
    padding:14px 14px 4px !important;
    font-size:15px !important;
    font-weight:700 !important;
}

.product-card p{
    padding:0 14px 10px !important;
    font-size:14px;
    font-weight:700;
}

.product-actions{
    padding:0 14px 14px !important;
    gap:8px !important;
}

.edit-product-btn{
    background:rgba(113,255,0,0.1) !important;
    border:1px solid rgba(113,255,0,0.2) !important;
    color:#71ff00 !important;
    border-radius:12px !important;
    font-weight:700 !important;
    transition:0.2s !important;
}

.edit-product-btn:hover{
    background:rgba(113,255,0,0.2) !important;
    transform:translateY(-2px) !important;
}

.delete-product-btn{
    border-radius:12px !important;
    background:rgba(255,61,61,0.1) !important;
    border:1px solid rgba(255,61,61,0.2) !important;
    color:#ff6b6b !important;
    font-weight:700 !important;
}

.delete-product-btn:hover{
    background:rgba(255,61,61,0.2) !important;
    transform:translateY(-2px) !important;
}

/* ---- SELLER SECTION CARDS ---- */
.seller-section-card{
    background:rgba(255,255,255,0.03) !important;
    border:1px solid rgba(255,255,255,0.07) !important;
    border-radius:24px !important;
    padding:28px !important;
    transition:border-color 0.2s ease;
}

.seller-section-card:hover{
    border-color:rgba(113,255,0,0.12);
}

.seller-section-header h2{ font-size:18px !important; font-weight:900 !important; }

/* Flash sale select and input */
.flash-select,
.flash-input-group input,
.bor-status-select{
    background:rgba(255,255,255,0.05) !important;
    border:1px solid rgba(255,255,255,0.1) !important;
    border-radius:12px !important;
    transition:border-color 0.2s !important;
}

.flash-select:focus,
.flash-input-group input:focus{ border-color:rgba(255,136,0,0.4) !important; }

/* ---- PRODUCTS SECTION HEADER ---- */
.products-section h2{
    font-size:20px;
    font-weight:900;
    color:white;
    margin-bottom:4px;
    display:flex;
    align-items:center;
    gap:8px;
}

/* ---- ORDERS HEADER ---- */
.orders-header h2{
    font-size:20px;
    font-weight:900;
    color:white;
    display:flex;
    align-items:center;
    gap:8px;
}

/* ---- VIEW ORDER BUTTON ---- */
.view-order-btn{
    background:rgba(113,255,0,0.1) !important;
    border:1px solid rgba(113,255,0,0.2) !important;
    color:#71ff00 !important;
    border-radius:12px !important;
    font-weight:700 !important;
    transition:0.2s ease !important;
}

.view-order-btn:hover{
    background:rgba(113,255,0,0.2) !important;
    transform:translateY(-2px) !important;
    box-shadow:0 6px 18px rgba(113,255,0,0.2) !important;
}

/* ---- ADULT CATEGORY NOTE ---- */
.adult-category-note{
    border-radius:12px;
    font-size:13px;
    line-height:1.5;
    margin-bottom:16px;
}

/* ---- RESPONSIVE ---- */
@media(max-width:900px){
    .seller-stat-card::before{ display:none; }
    .topbar-left h1{
        -webkit-text-fill-color:white;
        color:white;
    }
}

/* ---- LIGHT MODE overrides for premium additions ---- */
body.light-mode .sidebar{
    background:linear-gradient(180deg,#fff 0%,#f8fff8 100%) !important;
    border-right-color:rgba(0,0,0,0.08) !important;
}
body.light-mode .topbar{
    background:linear-gradient(135deg,rgba(113,255,0,0.06),#fff) !important;
    border-color:rgba(113,255,0,0.15) !important;
}
body.light-mode .topbar-left h1{
    background:linear-gradient(135deg,#111 60%,#22a000);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent;
}
body.light-mode .seller-stat-card{
    background:linear-gradient(135deg,#fff,#f8fff8) !important;
    border-color:rgba(0,0,0,0.08) !important;
    box-shadow:0 4px 20px rgba(0,0,0,0.06) !important;
}
body.light-mode .stat-icon{ background:rgba(113,255,0,0.08); border-color:rgba(113,255,0,0.15); }
body.light-mode .upload-box{
    background:linear-gradient(135deg,rgba(113,255,0,0.04),#fff) !important;
    border-color:rgba(113,255,0,0.15) !important;
}
body.light-mode .analytics-card{
    background:#fff !important;
    border-color:rgba(0,0,0,0.08) !important;
}
body.light-mode .bar p{ color:rgba(0,0,0,0.5) !important; }
body.light-mode .order-card{ background:#fff !important; border-color:rgba(0,0,0,0.08) !important; }
/* dark mode: product names clearly white */
.order-card p{ color:rgba(255,255,255,0.88) !important; }
.order-card h3{ color:white !important; }

body.light-mode .order-card h3,
body.light-mode .order-card p{ color:#111 !important; }
body.light-mode .seller-section-card{ background:#fff !important; border-color:rgba(0,0,0,0.08) !important; }
body.light-mode .view-order-btn{
    background:rgba(113,255,0,0.08) !important;
    border-color:rgba(113,255,0,0.2) !important;
    color:#22a000 !important;
}
body.light-mode .edit-product-btn{
    background:rgba(113,255,0,0.08) !important;
    border-color:rgba(113,255,0,0.2) !important;
    color:#22a000 !important;
}
body.light-mode .delete-product-btn{
    background:rgba(255,61,61,0.06) !important;
    border-color:rgba(255,61,61,0.15) !important;
    color:#cc0000 !important;
}
body.light-mode .products-section h2,
body.light-mode .orders-header h2{ color:#111; }
body.light-mode .product-card h3{ color:#111 !important; }
body.light-mode .product-card p{ color:#555 !important; }

/* =================================================
   SELLER DASH — All inputs, selects: black
================================================= */
.upload-box input,
.upload-box select,
.upload-box textarea,
#productCategory,
#productLocation,
#productPrice,
#productName,
#productDescription,
#productStock,
#productDiscount,
#productBrand,
#productMaterial,
.bor-status-select,
.flash-select,
.flash-input-group input,
.seller-section-card input,
.seller-section-card select,
.seller-section-card textarea {
    background:#000 !important;
    color:white !important;
    border-color:rgba(255,255,255,0.12) !important;
}

.bor-status-select option,
.flash-select option,
#productCategory option,
#productCategory optgroup,
select option,
select optgroup {
    background:#000 !important;
    color:white !important;
}

body.light-mode .bor-status-select,
body.light-mode .flash-select,
body.light-mode .flash-input-group input { background:#fff !important; color:#111 !important; }

/* ═══════════════════════════════════════════════════════
   SELLER DASHBOARD — RESPONSIVE ADDITIONS
   600px phone portrait  |  480px standard phone
═══════════════════════════════════════════════════════ */

@media(max-width:600px){
  /* Seller navbar */
  .seller-navbar{height:56px;padding:0 14px;}
  .seller-nav-logo-img{height:36px;width:auto;}
  .seller-nav-center{display:none;}
  .seller-nav-right{gap:6px;}
  .seller-nav-icon-btn{width:36px;height:36px;padding:0;font-size:15px;}
  .seller-theme-btn{font-size:18px;width:36px;height:36px;padding:0;}
  /* Hide Community & Subscriptions from navbar — space is too tight on mobile */
  .seller-nav-right a[title="Community"],
  .seller-nav-right a[title="Upgrade Plan"]{display:none !important;}
  /* Prevent any inline padding from expanding remaining links */
  .seller-nav-right .seller-nav-link:not(.seller-nav-icon-btn){padding:0;width:36px;height:36px;justify-content:center;}

  /* Sidebar stays hidden on mobile (handled at 900px) */
  .main-content{
    margin-left:0 !important;
    margin-right:0 !important;
    padding-top:72px !important;   /* 56px navbar + 16px breathing room */
    padding-left:14px !important;
    padding-right:14px !important;
  }

  /* Topbar */
  .topbar{padding:14px 16px;gap:10px;flex-wrap:wrap;}
  .topbar-left h1{font-size:18px;}
  .topbar-sub{font-size:12px;}
  .topbar-back-btn{font-size:12px;padding:6px 10px;}

  /* Upload box */
  .upload-box{margin:12px;padding:20px 16px;border-radius:18px;}
  .upload-box h2{font-size:18px;margin-bottom:16px;}
  .upload-box input{padding:12px 14px;font-size:14px;border-radius:10px;}
  #productCategory,#productLocation{padding:12px 14px;font-size:14px;border-radius:10px;}
  #productDescription{padding:12px 14px;font-size:14px;}

  /* 3-col field row -> 1 col on phone */
  .upload-field-row{grid-template-columns:1fr !important;gap:10px;}

  /* Stats */
  .stats{grid-template-columns:1fr 1fr;gap:10px;padding:0 12px;}
  .stat-card{padding:16px 12px;border-radius:14px;}
  .stat-number{font-size:22px;}
  .stat-label{font-size:11px;}

  /* Seller stat cards (premium) */
  .seller-stat-card{padding:18px 14px;border-radius:16px;}

  /* Products grid in dashboard */
  .products-grid{grid-template-columns:1fr 1fr;gap:10px;padding:0 12px;}
  .product-card h3{font-size:13px;}
  .product-card p{font-size:13px;}

  /* Orders section */
  .orders-section,.upload-section{padding:0 12px 20px;}

  /* Profit strip */
  .profit-preview-strip{flex-wrap:wrap;gap:8px;font-size:12px;}

  /* Wholesale strip */
  #wholesalePreviewStrip{flex-wrap:wrap;gap:8px;font-size:12px;}

  /* Flash sale / boost sections */
  .flash-input-group{flex-direction:column;}
  .flash-input-group input{width:100%;}

  /* Profit calculator — stack inputs 1 col on phone, results also 1 col */
  .profit-calc-grid .flash-inputs{grid-template-columns:1fr !important;}
  .profit-results-col{grid-template-columns:1fr !important;}
}

@media(max-width:480px){
  .seller-navbar{height:52px;padding:0 10px;}
  .seller-nav-logo-img{height:32px;width:auto;}
  /* On very small phones also hide Visit My Store from navbar — available in quick actions */
  .seller-nav-right a[title="Visit My Store"]{display:none !important;}
  .main-content{padding-top:68px !important;}  /* 52px navbar + 16px */
  .upload-box{margin:8px;padding:16px 12px;border-radius:14px;}
  .upload-box h2{font-size:16px;}
  .stats{grid-template-columns:1fr 1fr;gap:8px;padding:0 8px;}
  .stat-card{padding:12px 10px;border-radius:12px;}
  .stat-number{font-size:20px;}
  .products-grid{grid-template-columns:1fr 1fr;gap:8px;padding:0 8px;}
  .product-card h3{font-size:12px;}
  .product-card p{font-size:12px;}
  .upload-box input,.upload-box select{font-size:16px;padding:10px 12px;}
  .seller-section-card{padding:18px 14px;border-radius:16px;}
}

/* ═══════════════════════════════════════════════════════════
   SOKONI SELLER — PREMIUM OVERRIDES  (appended last, wins)
═══════════════════════════════════════════════════════════ */

/* ── Body & Layout ── */
body{
  background:#070808;
  background-image:
    radial-gradient(ellipse 60% 40% at 0% 0%,rgba(113,255,0,0.05),transparent),
    radial-gradient(ellipse 50% 50% at 100% 100%,rgba(0,153,255,0.04),transparent);
}

/* ── Sidebar ── */
.sidebar{
  background:rgba(10,10,10,0.98);
  border-right:1px solid rgba(113,255,0,0.1);
  box-shadow:4px 0 28px rgba(0,0,0,0.5);
}
.sidebar ul{list-style:none;padding:0;}
.sidebar ul li{
  padding:12px 16px;
  border-radius:12px;
  margin-bottom:4px;
  font-size:13px;
  font-weight:600;
  color:rgba(255,255,255,0.55);
  transition:all .15s;
  border:1px solid transparent;
}
.sidebar ul li:hover{
  background:rgba(113,255,0,0.07);
  color:#71ff00;
  border-color:rgba(113,255,0,0.15);
  transform:translateX(4px);
}
.sidebar ul li.active-nav{
  background:linear-gradient(135deg,rgba(113,255,0,0.12),rgba(113,255,0,0.05));
  color:#71ff00;
  border-color:rgba(113,255,0,0.28);
  border-left:3px solid #71ff00;
  font-weight:800;
}

/* ── Topbar ── */
.topbar{
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:20px;
  padding:20px 24px;
  backdrop-filter:blur(20px);
  margin-bottom:24px;
}
.topbar-left h1{
  font-size:clamp(18px,2.5vw,26px);
  font-weight:900;
  letter-spacing:-.02em;
  background:linear-gradient(135deg,white,rgba(255,255,255,0.7));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.topbar-sub{
  color:rgba(255,255,255,0.3);
  font-size:12px;
}

/* ── Stat Cards (overview row) ── */
.seller-stats{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px;
  margin-bottom:24px;
}
.seller-stat-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:20px;
  padding:20px 18px;
  position:relative;
  overflow:hidden;
  transition:border-color .2s,transform .2s;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.seller-stat-card::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,#71ff00,#00cc44);
  opacity:.5;
}
.seller-stat-card:hover{
  border-color:rgba(113,255,0,0.2);
  transform:translateY(-3px);
}
.seller-stat-card .stat-icon{
  font-size:24px;
  width:44px;height:44px;
  border-radius:12px;
  background:rgba(113,255,0,0.07);
  border:1px solid rgba(113,255,0,0.15);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:4px;
}
.seller-stat-card h3{
  font-size:clamp(18px,3vw,26px);
  font-weight:900;
  color:#71ff00;
  letter-spacing:-.01em;
  line-height:1;
}
.seller-stat-card p{
  font-size:11px;
  color:rgba(255,255,255,0.35);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.seller-stat-card.commission-card::before{background:linear-gradient(90deg,#71ff00,#00e64d);}
.seller-stat-card.net-card::before{background:linear-gradient(90deg,#00aaff,#0066ff);}
.seller-stat-card.net-card h3{color:#00aaff;}

/* ── Upload / Form Box ── */
.upload-section{
  background:transparent;
  padding:0 0 20px;
}
.upload-box{
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:22px;
  padding:24px 22px;
  backdrop-filter:blur(14px);
  margin-bottom:20px;
}
.upload-box h2{
  font-size:18px;
  font-weight:900;
  color:white;
  margin-bottom:16px;
  letter-spacing:-.01em;
}
.upload-box input,
.upload-box select,
.upload-box textarea{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:11px;
  color:white;
  font-family:inherit;
  font-size:14px;
  padding:12px 14px;
  width:100%;
  outline:none;
  transition:border-color .15s;
}
.upload-box input:focus,
.upload-box select:focus,
.upload-box textarea:focus{
  border-color:rgba(113,255,0,0.4);
  background:rgba(113,255,0,0.02);
}
.upload-box input::placeholder,
.upload-box textarea::placeholder{color:rgba(255,255,255,0.2);}

/* ── Seller Section Cards ── */
.seller-section-card{
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:22px;
  padding:22px 20px;
  backdrop-filter:blur(14px);
  margin-bottom:16px;
  transition:border-color .2s;
}
.seller-section-card:hover{
  border-color:rgba(113,255,0,0.12);
}
.seller-section-header h2{
  font-size:18px;
  font-weight:900;
  color:white;
  margin-bottom:4px;
  letter-spacing:-.01em;
}
.seller-section-sub{
  font-size:12px;
  color:rgba(255,255,255,0.35);
  line-height:1.6;
  margin-bottom:16px;
}

/* ── Products Grid & Cards ── */
.products-section{
  background:rgba(255,255,255,0.015);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:22px;
  padding:18px 16px;
  margin-bottom:16px;
}
.products-section h2{
  font-size:17px;
  font-weight:900;
  color:white;
  letter-spacing:-.01em;
}
.products-grid{
  grid-template-columns:repeat(auto-fill,minmax(165px,1fr));
  gap:12px;
  padding:14px 0 0;
}
/* Ensure product cards are proper flex columns */
#sellerProductsContainer .product-card{
  display:flex;
  flex-direction:column;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  overflow:hidden;
  transition:border-color .18s,transform .18s;
  position:relative;
}
#sellerProductsContainer .product-card:hover{
  border-color:rgba(113,255,0,0.25);
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(0,0,0,0.35);
}

/* ── Orders Table ── */
.orders-section{
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:22px;
  padding:22px 20px;
}
.orders-header h2{
  font-size:18px;
  font-weight:900;
  color:white;
  margin-bottom:16px;
}
.order-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:14px;
  padding:16px 18px;
  margin-bottom:10px;
  transition:border-color .15s;
}
.order-card:hover{border-color:rgba(113,255,0,0.15);}
.order-card h3{color:white;font-size:15px;font-weight:800;}
.order-card p{color:rgba(255,255,255,0.5);font-size:12px;margin-top:4px;}
.order-card h4{color:#71ff00;font-size:16px;font-weight:900;margin-top:8px;}

/* ── Analytics ── */
.analytics-section{
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:22px;
  padding:22px 20px;
}
.analytics-card{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}
.analytics-card h2{
  font-size:18px;
  font-weight:900;
  color:white;
  margin-bottom:20px;
}
.chart-bars{
  display:flex;
  align-items:flex-end;
  gap:8px;
  height:120px;
  padding:0 4px;
}
.bar{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  height:100%;
  justify-content:flex-end;
}
.bar span{
  width:100%;
  background:linear-gradient(180deg,#71ff00,rgba(113,255,0,0.3));
  border-radius:6px 6px 3px 3px;
  min-height:4px;
  transition:height .6s ease;
}
.bar p{
  font-size:10px;
  color:rgba(255,255,255,0.35);
  font-weight:700;
}

/* ── Light mode overrides ── */
body.light-mode .sidebar{
  background:rgba(255,255,255,0.97);
  border-right-color:rgba(0,0,0,0.07);
}
body.light-mode .seller-stat-card,
body.light-mode .upload-box,
body.light-mode .seller-section-card,
body.light-mode .products-section,
body.light-mode .orders-section,
body.light-mode .analytics-section{
  background:white;
  border-color:rgba(0,0,0,0.07);
}
body.light-mode .seller-stat-card h3{color:#22a000;}
body.light-mode .seller-stat-card.net-card h3{color:#0066cc;}
body.light-mode .seller-stat-card p,
body.light-mode .topbar-sub,
body.light-mode .seller-section-sub{color:rgba(0,0,0,0.4);}
body.light-mode .upload-box input,
body.light-mode .upload-box select{
  background:#f5f5f5;
  border-color:rgba(0,0,0,0.1);
  color:#111;
}
body.light-mode #sellerProductsContainer .product-card{
  background:#fff;
  border-color:rgba(0,0,0,0.08);
}
body.light-mode .order-card{background:#f8f8f8;border-color:rgba(0,0,0,0.07);}
body.light-mode .order-card h3{color:#111;}
body.light-mode .order-card h4{color:#22a000;}

/* ── Fix product-card base button rule interfering with action-row buttons ── */
#sellerProductsContainer .product-card button{
  width:auto !important;
  margin:0 !important;
  text-align:center;
}

/* ═══════════════════════════════════════════════════════════
   SELLER DASHBOARD — PREMIUM POLISH v3
═══════════════════════════════════════════════════════════ */

/* Section cards — glassmorphism */
.seller-section-card{
    background:linear-gradient(145deg,rgba(255,255,255,0.04) 0%,rgba(255,255,255,0.01) 100%);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:24px;
    padding:26px;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    transition:border-color .3s,box-shadow .3s;
    margin-bottom:16px;
}
.seller-section-card:hover{
    border-color:rgba(113,255,0,0.12);
    box-shadow:0 8px 32px rgba(0,0,0,0.25);
}
.seller-section-header h2{
    font-size:18px;
    font-weight:900;
    color:white;
    letter-spacing:-0.2px;
}
.seller-section-sub{
    font-size:12px;
    color:rgba(255,255,255,0.38);
    margin-top:3px;
}

/* Flash inputs — premium style */
.flash-input{
    background:rgba(255,255,255,0.04) !important;
    border:1px solid rgba(255,255,255,0.1) !important;
    border-radius:14px !important;
    color:white !important;
    font-size:14px !important;
    padding:13px 16px !important;
    transition:border-color .25s, box-shadow .25s !important;
}
.flash-input:focus{
    border-color:rgba(113,255,0,0.4) !important;
    box-shadow:0 0 0 3px rgba(113,255,0,0.08) !important;
    outline:none !important;
}

/* Flash go button */
.flash-go-btn{
    background:linear-gradient(135deg,#71ff00,#4fc800);
    color:black;
    font-weight:900;
    font-size:14px;
    padding:13px 20px;
    border-radius:14px;
    border:none;
    cursor:pointer;
    transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s;
    box-shadow:0 4px 16px rgba(113,255,0,0.3);
    font-family:inherit;
    width:100%;
}
.flash-go-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 28px rgba(113,255,0,0.45);
}
.flash-go-btn:active{
    transform:scale(0.97);
    box-shadow:0 2px 10px rgba(113,255,0,0.25);
}

/* Stat cards */
.seller-stat-card,.stat-card{
    background:linear-gradient(145deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    padding:18px 16px;
    transition:transform .3s cubic-bezier(.34,1.56,.64,1),border-color .3s;
}
.seller-stat-card:hover,.stat-card:hover{
    transform:translateY(-4px);
    border-color:rgba(113,255,0,0.18);
}

/* Order cards */
.order-card{
    background:linear-gradient(145deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01)) !important;
    border:1px solid rgba(255,255,255,0.07) !important;
    border-radius:18px !important;
    transition:border-color .3s,transform .3s !important;
}
.order-card:hover{
    border-color:rgba(113,255,0,0.15) !important;
    transform:translateY(-3px) !important;
}

/* Tabs */
.sd-tab-btn,.seller-tab{
    border-radius:12px !important;
    transition:background .2s,color .2s,border-color .2s !important;
}
.sd-tab-btn.active,.seller-tab.active{
    background:linear-gradient(135deg,rgba(113,255,0,0.12),rgba(113,255,0,0.06)) !important;
    border-color:rgba(113,255,0,0.3) !important;
    color:#71ff00 !important;
}

/* Slp live panel */
.slp-card{
    background:linear-gradient(145deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.07);
    border-radius:16px;
    padding:14px;
    transition:border-color .3s;
}
.slp-card:hover{ border-color:rgba(113,255,0,0.14); }

/* Light mode seller dashboard */
body.light-mode .seller-section-card{
    background:#fff;
    border-color:rgba(0,0,0,0.07);
    box-shadow:0 2px 14px rgba(0,0,0,0.05);
}
body.light-mode .flash-input{
    background:rgba(0,0,0,0.03) !important;
    border-color:rgba(0,0,0,0.12) !important;
    color:#111 !important;
}
body.light-mode .flash-go-btn{
    box-shadow:0 4px 16px rgba(113,255,0,0.2);
}

/* ═══════════════════════════════════════════════════════════
   PHASE 4 — MOBILE FIXES
═══════════════════════════════════════════════════════════ */
/* No horizontal scroll anywhere */
body, .main-content, .seller-section-card, .seller-stats { max-width: 100%; overflow-x: hidden; }

/* Minimum touch targets */
.nav-item, .sd-tab-btn, .flash-go-btn, .seller-nav-link,
.seller-nav-icon-btn, .seller-theme-btn {
  min-height: 44px;
}
.nav-item { display: flex; align-items: center; cursor: pointer; }

/* Safe-area support on the bottom nav */
.sd-mobile-bottom-bar {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

/* Modal scrolling on iOS */
.seller-modal, .flash-modal, .preview-modal {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  max-height: 90dvh;
}

/* Prevent keyboard from hiding bottom CTAs on mobile */
@media (max-width: 768px) {
  .main-content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  /* Tables: horizontal scroll container with hint */
  .table-wrap, .adm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap::after {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-size: 9px;
    color: rgba(255,255,255,0.2);
    padding: 4px 0;
  }
  /* Landscape orientation: allow sidebar to be narrower */
  @media (orientation: landscape) {
    .sidebar { width: 180px; }
  }
}

/* ═══════════════════════════════════════════════════════════
   PHASE 7 — UI CONSISTENCY
═══════════════════════════════════════════════════════════ */
/* Unified empty state */
.so-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.25);
}
.so-empty-state .so-empty-icon { font-size: 40px; margin-bottom: 10px; }
.so-empty-state .so-empty-title { font-size: 14px; font-weight: 800; color: rgba(255,255,255,0.4); }
.so-empty-state .so-empty-sub   { font-size: 11px; margin-top: 4px; }

/* Unified success / error / info banners */
.so-banner { display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:12px;font-size:12px;line-height:1.5; }
.so-banner-success { background:rgba(113,255,0,0.06); border:1px solid rgba(113,255,0,0.2); color:#71ff00; }
.so-banner-error   { background:rgba(255,60,60,0.06);  border:1px solid rgba(255,60,60,0.2);  color:#ff6464; }
.so-banner-info    { background:rgba(100,180,255,0.06);border:1px solid rgba(100,180,255,0.2);color:#64b4ff; }
.so-banner-warning { background:rgba(255,180,0,0.06);  border:1px solid rgba(255,180,0,0.2);  color:#fbbf24; }

/* Unified loading spinner */
.so-spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.1);
  border-top-color: #71ff00;
  border-radius: 50%;
  animation: so-spin .7s linear infinite;
  display: inline-block;
}
@keyframes so-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   PHASE 8 — ACCESSIBILITY
═══════════════════════════════════════════════════════════ */
/* Focus rings */
*:focus-visible {
  outline: 2px solid #71ff00;
  outline-offset: 3px;
  border-radius: 4px;
}
*:focus:not(:focus-visible) { outline: none; }

/* Skip-to-content link */
.so-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #71ff00;
  color: #000;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  transition: top .1s;
}
.so-skip-link:focus { top: 8px; }

/* ARIA-disabled styling */
[aria-disabled="true"] { opacity: 0.35 !important; pointer-events: none !important; cursor: not-allowed !important; }

/* ═══════════════════════════════════════════════════════════
   PHASE 9 — PERFORMANCE
═══════════════════════════════════════════════════════════ */
/* Contain reflows inside cards */
.seller-section-card { contain: layout style; }
/* GPU-accelerate scroll containers */
.main-content, .seller-stats { will-change: scroll-position; }
/* Prevent FOUC on images */
.seller-section-card img { aspect-ratio: attr(width) / attr(height); }
