
:root{
  --bg:#0b1220;--side:#0d1424;--panel:#121b2d;--line:#22304a;--text:#d9e3f3;
  --muted:#8b9ab3;--purple:#8b5cf6;--purple2:#a855f7;--green:#22c55e;--red:#ef4444;
  --yellow:#f59e0b;--blue:#3b82f6;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Arial;margin:0}
a{color:inherit}
.app{min-height:100vh}
.sidebar{width:250px;background:#0a1020;border-right:1px solid #1e2a3f;padding:18px 14px;position:sticky;top:0;height:100vh;overflow:auto}
.brand{font-size:18px;display:flex;gap:12px;align-items:center;margin-bottom:24px}
.brand-icon,.round{display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--purple),var(--purple2));color:white;border-radius:10px;width:36px;height:36px;flex:0 0 auto}
.main-menu{gap:3px}
.main-menu a{color:#b8c3d6;text-decoration:none;padding:10px 12px;border-radius:10px;display:flex;gap:10px;align-items:center;font-size:14px;transition:.2s}
.main-menu a:hover{background:#172236;color:#fff}
.main-menu li.active>a,.main-menu li.sub.on a{background:#33235d;color:#fff}
.main-menu li.sub a{padding-left:44px;font-size:13px}
.token-card,.profile,.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px}
.token-card{padding:16px;margin-top:18px}
.token-card h4{margin:8px 0 0}
.token-card p,.topbar p,.panel p,small{color:var(--muted);font-size:12px}
.purple{background:linear-gradient(135deg,var(--purple),var(--purple2));color:white!important;border:0}
.purple:hover{filter:brightness(1.1)}
.profile{display:flex;align-items:center;gap:10px;padding:13px;margin-top:18px}
.profile small{display:block}
.avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#fca5a5,#93c5fd)}
.content{padding:28px 34px}
.topbar h3{margin:0;font-weight:800}
.tabs{background:var(--panel);border:1px solid var(--line);border-radius:12px;display:flex;gap:6px;padding:8px;overflow:auto}
.tabs a,.tabs span{white-space:nowrap;color:#aeb9cc;padding:10px 16px;border-radius:9px;font-size:13px;text-decoration:none}
.tabs .selected{color:#c4b5fd;border-bottom:2px solid var(--purple);background:#171f35}
.panel{padding:22px}
.panel h5{font-weight:800;margin:0 0 4px}
.border-bottom-soft{border-bottom:1px solid var(--line)}
label{font-size:13px;color:#cbd5e1;margin-bottom:7px}
.dark{background:#101827!important;border-color:#25324a!important;color:#e5eefc!important}
.form-control::placeholder{color:#64748b}
.form-select.dark option{background:#101827}
.btn-dark{background:#101827;border-color:#25324a;color:#e5eefc}
.btn-outline-secondary{border-color:#334155;color:#cbd5e1}
.btn-outline-secondary:hover{background:#1f2937;border-color:#475569}
.switch{position:relative;width:42px;height:22px;display:inline-block}
.switch input{display:none}
.switch span{position:absolute;inset:0;background:#334155;border-radius:30px;cursor:pointer}
.switch span:before{content:"";position:absolute;width:16px;height:16px;top:3px;left:3px;background:white;border-radius:50%;transition:.2s}
.switch input:checked+span{background:linear-gradient(135deg,var(--purple),var(--purple2))}
.switch input:checked+span:before{left:23px}
.cap-box{display:flex;gap:12px;align-items:center;background:#101827;border:1px solid var(--line);border-radius:12px;padding:14px}
.cap-box small,.channel small{display:block}
.channel{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #1f2b42}
.ch-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#1f2937;color:#fff;font-size:21px}
.channel:nth-of-type(2) .ch-icon{background:#22c55e}
.channel:nth-of-type(3) .ch-icon{background:#e1306c}
.channel:nth-of-type(4) .ch-icon{background:#1877f2}
.channel em{margin-left:auto;color:var(--green);font-style:normal;font-size:12px}
.chat{background:#0e1627;border-radius:12px;padding:18px;min-height:210px}
.msg{padding:12px 14px;border-radius:11px;max-width:78%;font-size:13px;line-height:1.7}
.msg.user{background:#263247;margin-left:auto;text-align:right}
.botrow{display:flex;gap:10px;margin-top:18px}
.bot{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--purple2));display:grid;place-items:center;flex:0 0 auto}
.msg.ai{background:#172236}
.usage{display:flex;gap:22px;align-items:center}
.donut{--p:65;width:118px;height:118px;border-radius:50%;background:conic-gradient(var(--purple) calc(var(--p)*1%),#263247 0);display:grid;place-items:center;position:relative}
.donut:before{content:"";position:absolute;width:82px;height:82px;background:var(--panel);border-radius:50%}
.donut span{position:relative;text-align:center;font-weight:800}
.donut small{display:block}
.progress{height:8px;background:#263247;border-radius:20px;margin:10px 0}
.progress div{height:100%;background:linear-gradient(90deg,var(--purple),var(--purple2));border-radius:20px}
.table{--bs-table-bg:transparent;--bs-table-color:#d9e3f3}
.table thead th{color:#94a3b8;font-size:12px;text-transform:uppercase;border-bottom:1px solid var(--line)!important}
.table td{border-bottom:1px solid #1a263a!important;vertical-align:middle}
.badge-soft{background:#172236;border:1px solid var(--line);color:#cbd5e1}
.stat-icon{font-size:20px}
.action-btns{display:flex;gap:6px;flex-wrap:wrap}
.footer{border-top:1px solid var(--line);color:var(--muted);padding:16px 0;margin-top:30px;font-size:13px}
.empty{border:1px dashed #334155;border-radius:14px;padding:35px;text-align:center;color:#94a3b8}
.alert{border-radius:12px}
.modal-content{background:var(--panel);border:1px solid var(--line);color:var(--text)}
.modal-header,.modal-footer{border-color:var(--line)}
.dropdown-menu{background:#101827;border-color:#25324a}
.dropdown-item{color:#d9e3f3}
.dropdown-item:hover{background:#172236;color:#fff}
.mobile-menu-btn{display:none}
@media(max-width:992px){
  .app{display:block!important}
  .sidebar{width:100%;height:auto;position:relative;padding:14px}
  .main-menu{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
  .main-menu a{padding:11px 10px;font-size:13px}
  .main-menu li.sub a{padding-left:12px}
  .content{padding:16px}
  .side{margin-top:0}
}
@media(max-width:576px){
  .main-menu{grid-template-columns:1fr}
  .brand{justify-content:center}
  .topbar{flex-direction:column;align-items:stretch!important;gap:12px}
  .topbar .btn,.topbar a.btn{width:100%}
  .panel{padding:16px}
  .usage{display:block}
  .donut{margin-bottom:14px}
  .action-btns .btn{width:100%}
}


/* Explore Shop Mobile Product Listing */
.shop-page{
  max-width:1120px;
  margin:0 auto;
}
.shop-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px;
}
.shop-logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:24px;
  font-weight:900;
  color:#111827;
}
.shop-logo .bag{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
}
.shop-actions{
  display:flex;
  gap:14px;
  align-items:center;
  font-size:28px;
  color:#111827;
}
.shop-action{
  position:relative;
  color:#111827;
  text-decoration:none;
}
.shop-badge{
  position:absolute;
  top:-9px;
  right:-10px;
  background:#ef4444;
  color:white;
  font-size:12px;
  line-height:1;
  min-width:20px;
  height:20px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:800;
}
.explore-wrap{
  background:#f8fafc;
  color:#111827;
  border-radius:26px;
  padding:24px;
}
.explore-filter{
  background:white;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:12px;
  margin-bottom:18px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.explore-search{
  border:0!important;
  background:#f1f5f9!important;
  border-radius:14px!important;
  padding:13px 16px!important;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.product-card{
  background:white;
  border:1px solid #eef2f7;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(15,23,42,.08);
  position:relative;
}
.product-img-box{
  position:relative;
  aspect-ratio:1/0.72;
  background:#e5e7eb;
  overflow:hidden;
}
.product-img-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.fav-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:48px;
  height:48px;
  border-radius:50%;
  background:white;
  border:0;
  display:grid;
  place-items:center;
  color:#111827;
  font-size:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.slide-count{
  position:absolute;
  right:14px;
  bottom:14px;
  color:white;
  background:rgba(0,0,0,.45);
  border-radius:8px;
  padding:5px 9px;
  font-size:14px;
}
.product-body{
  padding:20px 22px 18px;
  direction:rtl;
  text-align:right;
}
.product-title{
  font-size:23px;
  line-height:1.5;
  font-weight:900;
  margin-bottom:4px;
  color:#111827;
}
.rating-row{
  direction:ltr;
  text-align:left;
  color:#6b7280;
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
}
.stars{
  color:#fbbf24;
  letter-spacing:1px;
}
.price-stock{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.price{
  color:#16a34a;
  font-weight:900;
  font-size:25px;
}
.stock{
  color:#16a34a;
  font-size:14px;
}
.stock.out{
  color:#ef4444;
}
.product-desc{
  color:#4b5563;
  font-size:16px;
  line-height:2;
  min-height:60px;
}
.benefits{
  display:flex;
  justify-content:space-between;
  gap:8px;
  border-top:1px solid #eef2f7;
  border-bottom:1px solid #eef2f7;
  padding:14px 0;
  margin-top:16px;
  color:#6b7280;
  font-size:13px;
}
.social-row{
  display:flex;
  justify-content:space-around;
  align-items:center;
  color:#4b5563;
  padding:14px 0;
  font-size:17px;
}
.social-row i{
  font-size:24px;
}
.social-row .heart{
  color:#ef4444;
}
.whatsapp-order{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  border:0;
  border-radius:14px;
  background:#16a34a;
  color:white!important;
  text-decoration:none;
  font-size:21px;
  font-weight:900;
  padding:14px 18px;
}
.whatsapp-order i{
  font-size:28px;
}
.shop-pagination .page-link{
  background:white;
  border-color:#e5e7eb;
  color:#111827;
  border-radius:10px;
  margin:0 3px;
}
.shop-pagination .active .page-link{
  background:#16a34a;
  border-color:#16a34a;
  color:white;
}
@media(max-width:1200px){
  .product-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .content:has(.explore-wrap){
    padding:0;
    background:#f8fafc;
  }
  .explore-wrap{
    border-radius:0;
    padding:18px 12px 24px;
  }
  .shop-header{
    padding:0 4px;
  }
  .shop-logo{
    font-size:24px;
  }
  .shop-actions{
    font-size:26px;
    gap:13px;
  }
  .product-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  .product-card{
    border-radius:18px;
  }
  .product-img-box{
    aspect-ratio:1/0.68;
  }
  .product-title{
    font-size:24px;
  }
  .product-body{
    padding:20px 22px 16px;
  }
  .price{
    font-size:26px;
  }
  .whatsapp-order{
    font-size:22px;
    border-radius:13px;
  }
}
@media(max-width:420px){
  .explore-wrap{padding:14px 8px 20px}
  .product-title{font-size:21px}
  .product-desc{font-size:15px}
  .benefits{
    font-size:11px;
    gap:4px;
  }
  .whatsapp-order{font-size:19px}
}

/* New */

body {
    background: #f4f7fb
}

.stat {
    background: linear-gradient(135deg, #111827, #374151);
    color: white
}

.btn,
.form-control,
.form-select {
    border-radius: 12px
}

.table {
    vertical-align: middle
}

.badge {
    border-radius: 20px
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: white
}

.mobile-card {
    transition: .25s
}

.mobile-card:hover {
    transform: translateY(-4px)
}

@media(max-width:768px) {
    .table-responsive {
        font-size: 13px
    }

    .display-4 {
        font-size: 2rem
    }
}

/* Old*/
:root {
    --st-bg: #f5f7fb;
    --st-dark: #111827;
    --st-card: #fff
}

.navbar .nav-link {
    transition: 0.3s;
    font-weight: 500;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
}

.navbar-brand {
    letter-spacing: 1px;
}

.navbar {
    backdrop-filter: blur(10px);
}

.card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .08)
}

.stat {
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .08)
}

.stat .num {
    font-size: 1.4rem;
    font-weight: 800
}

.table-responsive {
    border-radius: 16px
}

.btn {
    border-radius: 12px
}

.form-control,
.form-select {
    border-radius: 12px
}

.sidebar-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #111827
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #111827;
    color: white
}

.mobile-scroll {
    overflow-x: auto
}

.badge-soft {
    background: #eef2ff;
    color: #3730a3
}

.landing-img {
    height: 210px;
    object-fit: cover
}

@media(max-width:768px) {
    .display-5 {
        font-size: 2rem
    }

    .stat {
        margin-bottom: 12px
    }

    .table {
        font-size: .86rem
    }

    .hide-mobile {
        display: none !important
    }
}