:root{
  --sidebar-bg: #ffffff;
  --sidebar-bg-2: #ffffff;
  --sidebar-text: rgba(15,23,42,.86);
  --sidebar-muted: rgba(15,23,42,.55);
  --sidebar-border: rgba(15,23,42,.10);
  --sidebar-hover-bg: rgba(15,23,42,.06);
  --sidebar-active-bg: rgba(99,102,241,.14);
  --sidebar-active-border: rgba(99,102,241,.22);

  --content-bg: #f2f4f7;
  --topbar-bg: rgba(255,255,255,.75);
  --text-main: #0f172a;
  --card-bg: #ffffff;
  --card-border: rgba(15,23,42,.08);
  --card-radius: 14px;
  --account-tabs-link: rgba(15,23,42,.6);
  --primary: rgb(79,70,229);
  --link-color: #1d4ed8;
  --toast-bg: rgba(17,24,39,.92);
  --toast-text: #fff;
  --modal-close: #334155;
}

body.theme-dark{
  --sidebar-bg: #0f0f10;
  --sidebar-bg-2: #151516;
  --sidebar-text: rgba(255,255,255,.82);
  --sidebar-muted: rgba(255,255,255,.55);
  --sidebar-border: rgba(255,255,255,.08);
  --sidebar-hover-bg: rgba(255,255,255,.06);
  --sidebar-active-bg: rgba(99,102,241,.18);
  --sidebar-active-border: rgba(99,102,241,.22);

  --content-bg: #0b1220;
  --topbar-bg: rgba(17,24,39,.55);
  --text-main: #e5e7eb;
  --card-bg: rgba(17,24,39,.65);
  --card-border: rgba(148,163,184,.14);
  --account-tabs-link: rgba(229,231,235,.85);
  --link-color: #93c5fd;
  --toast-bg: rgba(17,24,39,.92);
  --toast-text: #fff;
  --modal-close: var(--text-main);

  --muted-on-dark: rgba(229,231,235,.48);
  --pill-bg-dark: rgba(255,255,255,.03);
}

body.theme-dark .text-muted {
  color: var(--muted-on-dark) !important;
}

.soft-card, .card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}
.card .card-body, .soft-card .card-body {
  color: var(--text-main);
}

.topbar-right .pill {
  background: var(--pill-bg-dark);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.simple-modal__close {
  color: var(--text-main);
}

.sidebar-dropdown-item {
  color: var(--sidebar-text);
}
.sidebar-dropdown-item:hover {
  background: var(--sidebar-hover-bg);
}

.account-tabs .nav-link {
  color: rgba(15,23,42,.6);
}
body.theme-dark .account-tabs .nav-link {
  color: var(--account-tabs-link);
}

.table thead th {
  background: var(--card-bg) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--card-border) !important;
}
.table tbody td {
  background: var(--card-bg);
  color: var(--text-main);
}
.account-tabs .nav-link.active {
  background: var(--card-bg);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
}
body:not(.theme-dark) .account-tabs .nav-link.active {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
body.theme-dark .account-tabs .nav-link.active {
  color: var(--text-main);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-weight: 700;
}

.app-body{
  background: var(--content-bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-main);
}

.app-shell{
  min-height: 100vh;
  display:flex;
}

.app-overlay{
  display:none;
}

.app-sidebar{
  width: 270px;
  background: radial-gradient(900px 260px at 50% 0%, rgba(99,102,241,.08), transparent 60%),
              linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  color: var(--sidebar-text);
  display:flex;
  flex-direction: column;
  padding-top: 8px;
  flex: 0 0 270px;
  min-height: 100vh;
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-scroll{
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.sidebar-footer{
  flex: 0 0 auto;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--sidebar-border);
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.04));
}

.sidebar-logout{
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  font-weight: 800;
}
.sidebar-logout:hover{
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 10px;
}
.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(15,23,42,.06);
  border: 1px solid var(--sidebar-border);
}
.brand-logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  display:block;
}
.brand-fallback{
  display:flex;
  width: 42px;
  height: 42px;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}
.brand-title{
  font-weight: 800;
  line-height: 1.1;
}
.brand-sub{
  font-size: 12px;
  color: var(--sidebar-muted);
}

.brand--wide{
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 17px;
  margin-bottom: 6px;
}
.brand-logo-wide{
  max-width: 100%;
  height: 28px;
  width: auto;
  object-fit: contain;
  display:block;
}
.brand-title-wide{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.nav-section{
  padding: 0 10px;
}
.nav-title{
  padding: 12px 10px 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  font-weight: bold;
}
.nav-item{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--sidebar-text);
  text-decoration:none;
  font-weight: 800;
  font-size: 14px;
}
.nav-item i{
  font-weight: 900;
}
.nav-item:hover{
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}
.nav-item.active{
  background: var(--sidebar-active-bg);
  border: 1px solid var(--sidebar-active-border);
  color: var(--sidebar-text);
}

.sidebar-platform-icon{
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-dropdown{
  margin-bottom: 2px;
}
.sidebar-dropdown-toggle{
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}
.sidebar-dropdown-toggle:hover{
  background: var(--sidebar-hover-bg);
}
.sidebar-dropdown-arrow{
  font-size: 12px;
  transition: transform .2s ease;
  margin-left: auto;
}
.sidebar-dropdown.open .sidebar-dropdown-arrow{
  transform: rotate(90deg);
}
.sidebar-dropdown-menu{
  padding-left: 8px;
  margin-top: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease-out, opacity .2s ease-out;
  opacity: 0;
}
.sidebar-dropdown.open .sidebar-dropdown-menu{
  max-height: 500px;
  opacity: 1;
  transition: max-height .35s ease-in, opacity .2s ease-in;
}
.sidebar-dropdown-item{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  line-height: 1.4;
}
.sidebar-dropdown-item:hover{
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}
.sidebar-dropdown-item.active{
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text);
}
.sidebar-dropdown-bullet{
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
  color: var(--sidebar-muted);
}

.app-main{
  flex:1;
  display:flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-topbar{
  position: sticky;
  top: 0;
  z-index: 1100;
  height: 62px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.topbar-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: nowrap;
}
.theme-toggle-btn{
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0;
}
.theme-toggle-btn:hover{ filter: brightness(1.05); }

.topbar-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.sidebar-toggle{
  display:none;
  border-radius: 10px;
}
.topbar-title{
  font-weight: 800;
  color: var(--text-main);
}
.pill{
  display:flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
}

.body.theme-dark .notice-content,
body.theme-dark .notice-content *{
  color: rgba(229,231,235,.92) !important;
}
body.theme-dark .notice-content a{
  color: var(--link-color) !important;
  text-decoration: underline;
}

.app-content{
  padding: 18px;
}

.floating-notice{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  z-index: 2100;
}
.floating-notice .card{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.soft-card{
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  background: var(--card-bg);
}

.metric-icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(99,102,241,.12);
  color: var(--primary);
  font-size: 22px;
  border: 1px solid rgba(99,102,241,.18);
}

.dashboard-section-title{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--text-main);
  margin-bottom: 10px;
  opacity: .7;
}

.mi-cyan{ background: rgba(6,182,212,.12); color: #06b6d4; border-color: rgba(6,182,212,.18); }
.mi-green{ background: rgba(16,185,129,.12); color: #10b981; border-color: rgba(16,185,129,.18); }
.mi-purple{ background: rgba(139,92,246,.12); color: #8b5cf6; border-color: rgba(139,92,246,.18); }
.mi-gold{ background: rgba(245,158,11,.12); color: #f59e0b; border-color: rgba(245,158,11,.18); }
.mi-yellow{ background: rgba(234,179,8,.12); color: #eab308; border-color: rgba(234,179,8,.18); }
.mi-blue{ background: rgba(59,130,246,.12); color: #3b82f6; border-color: rgba(59,130,246,.18); }
.mi-red{ background: rgba(239,68,68,.12); color: #ef4444; border-color: rgba(239,68,68,.18); }
.mi-gray{ background: rgba(107,114,128,.12); color: #6b7280; border-color: rgba(107,114,128,.18); }

.token-row{
  display:flex;
  align-items: stretch;
  gap: 0;
}
.token-copy{
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 10px 0 0 10px;
  padding: 10px 12px;
  display:flex;
  gap: 10px;
  align-items:center;
  text-align:left;
  cursor: pointer;
}
.token-copy:hover{ filter: brightness(1.03); }
.token-code{
  margin:0;
  color:inherit;
  background: transparent;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.token-rotate{
  flex: 0 0 auto;
}
.token-rotate .btn{
  border-radius: 0 10px 10px 0;
  height: 100%;
  padding: 10px 12px;
}

.app-toast{
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.app-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.account-tabs{
  display:flex;
  flex-wrap: wrap;
  gap: 0;
}
.account-tabs .nav-link{
  user-select: none;
}
@media (max-width: 575.98px){
  .account-tabs{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .account-tabs.nav-tabs > .nav-link{
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .account-tabs.nav-tabs > .nav-link.active{
    margin: 0;
  }
}

.simple-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.simple-modal.show{
  display: flex;
  align-items: center;
  justify-content: center;
}
.simple-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.simple-modal__dialog{
  position: relative;
  width: min(520px, calc(100vw - 24px));
  margin: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  border: 1px solid var(--card-border);
}
.admin-tabs .nav-link {
  color: var(--link-color);
  border-radius: 8px;
  margin-right: 6px;
}
body:not(.theme-dark) .admin-tabs.nav-tabs .nav-link.active,
body:not(.theme-dark) .admin-tabs .nav-link.active {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid var(--card-border) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
body.theme-dark .admin-tabs.nav-tabs .nav-link.active,
body.theme-dark .admin-tabs .nav-link.active {
  background: var(--card-bg) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--card-border) !important;
  font-weight: 700 !important;
}

.account-tabs.nav-tabs .nav-link {
  color: var(--link-color);
  border-radius: 8px;
  margin-right: 6px;
}

.account-tabs .nav-link:focus,
.account-tabs .nav-link:focus-visible {
  outline: none;
  box-shadow: none;
}
.account-tabs .nav-link:focus:not(.active),
.account-tabs .nav-link:focus-visible:not(.active) {
  background: transparent !important;
  border: none !important;
  color: var(--account-tabs-link) !important;
}

.account-tabs.nav-tabs .nav-link:not(.active) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--account-tabs-link) !important;
}
.account-tabs.nav-tabs .nav-link:hover {
  background: transparent !important;
  border: none !important;
}


#viewCancelFee::-webkit-outer-spin-button,
#viewCancelFee::-webkit-inner-spin-button,
#viewDiscount::-webkit-outer-spin-button,
#viewDiscount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#viewCancelFee,
#viewDiscount,
#viewPrice {
  -moz-appearance: textfield;
  appearance: textfield;
}
 

body.theme-dark .modal-content {
  background: rgba(17,24,39,0.98) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}
body.theme-dark .modal-header,
body.theme-dark .modal-body,
body.theme-dark .modal-footer {
  background: transparent;
  color: var(--text-main) !important;
}
body.theme-dark .modal-backdrop.show {
  background: rgba(0,0,0,.9) !important;
}
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
  background: var(--card-bg) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: none !important;
}
body.theme-dark .form-control::placeholder,
body.theme-dark .form-select::placeholder {
  color: var(--muted-on-dark) !important;
}
body.theme-dark .btn-close {
  filter: brightness(1.2);
}




.deposit-card {
  background: #fff;
}
body.theme-dark .deposit-card {
  background: var(--card-bg);
  border-color: var(--card-border) !important;
  color: var(--text-main);
}
body.theme-dark .deposit-list .list-group-item {
  background: var(--card-bg);
  color: var(--text-main);
  border-color: var(--card-border);
}

.simple-modal__backdrop {
  background: rgba(0,0,0,0.85);
}
.simple-modal__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.simple-modal__close{
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 2px 8px;
  color: var(--modal-close);
}
.simple-modal__body{
  padding: 14px 14px 16px;
}
.twofa-qr{
  width: 220px;
  height: 220px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}
.twofa-secret-wrap{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.twofa-secret{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  user-select: all;
  cursor: pointer;
}

@media (max-width: 991px){
  .app-sidebar{ width: 240px; }
}


.modal {
  
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: none;
  z-index: 2100; 
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal .modal-dialog{
  margin: auto;
  width: auto;
  max-width: 920px;
}
.modal-backdrop {
  z-index: 2000;
  top: 0;
}
@media (max-height: 600px){
  
  .modal { align-items: flex-start !important; padding-top: 72px; }
}
@media (max-width: 991px){
  .sidebar-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  .app-shell{ flex-direction: row; }
  .app-sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 0;
    width: 270px;
    max-width: 84vw;
    z-index: 1040;
    transform: translateX(-110%);
    transition: transform .22s ease;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    overflow: hidden;
  }
  .sidebar-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .app-sidebar > .sidebar-scroll:first-child{
    padding-top: 70px;
  }
  .app-main{
    width: 100%;
  }
  .app-content{
    padding: 14px;
  }

  .app-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.40);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    display:block;
  }

  body.sidebar-open{
    overflow: hidden;
  }
  body.sidebar-open .app-sidebar{
    transform: translateX(0);
  }
  body.sidebar-open .app-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  
}


.btn-primary-gradient {
  background: linear-gradient(135deg, #4a6cf7 0%, #6366f1 50%, #8b5cf6 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: opacity .2s, transform .15s;
}
.btn-primary-gradient:hover {
  opacity: .9;
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary-gradient:active {
  transform: translateY(0);
}


.contact-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
  animation: contact-bounce 2s infinite;
}
.contact-option:nth-child(2) { animation-delay: .15s; }
.contact-option:nth-child(3) { animation-delay: .3s; }
.contact-option:nth-child(4) { animation-delay: .45s; }
.contact-option:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 18px rgba(0,0,0,.25);
}
.contact-option img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
@keyframes contact-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


.product-categories-bar {
  background: #1e293b;
  border-radius: var(--card-radius);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.06);
}
body.theme-dark .product-categories-bar {
  background: rgba(15,23,42,.9);
  border-color: rgba(255,255,255,.08);
}
.product-categories-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.product-cat-tag:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.product-cat-tag.active {
  background: #ffffff;
  border-color: rgba(255,255,255,.8);
  color: #1e293b;
}
.cat-tag-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.product-section {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.product-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e3a5f, #1e293b);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.theme-dark .product-section-header {
  background: linear-gradient(135deg, rgba(30,58,95,.8), rgba(15,23,42,.95));
}
.product-section-header-desktop {
  justify-content: space-between;
  padding-right: 16px;
}
.product-section-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-section-header-cols {
  display: flex;
  align-items: center;
  gap: 0;
}
.product-header-col {
  display: inline-block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.product-section-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.product-table {
  margin-bottom: 0 !important;
}
.product-table tbody td {
  padding: 12px 16px !important;
  vertical-align: middle;
  border-bottom: 1px solid var(--card-border);
}
.product-table tbody tr:hover {
  background: rgba(99,102,241,.04);
}
.product-table tbody tr:last-child td {
  border-bottom: none;
}

.product-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-name-link {
  color: var(--link-color);
  text-decoration: none;
  cursor: default;
}

.product-stock-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.18);
  color: var(--text-main);
}
.product-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(236,72,153,.08);
  border: 1px solid rgba(236,72,153,.2);
  color: #ec4899;
}
body.theme-dark .product-price-badge {
  color: #f472b6;
  background: rgba(236,72,153,.12);
}

.product-buy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: all .15s ease;
}
.product-buy-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
.product-buy-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}


.product-cards-mobile-wrap {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card-mobile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.product-card-name {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--link-color);
}

@media (max-width: 767.98px) {
  .product-categories-bar {
    padding: 10px;
  }
  .product-categories-wrap {
    flex-direction: column;
    gap: 6px;
  }
  .product-cat-tag {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 10px;
  }
  .product-buy-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}
