/* ============================
   TWS Theme (Sample UI style)
   ============================ */

:root{
  --tws-bg0:#050a16;
  --tws-bg1:#070e1c;
  --tws-bg2:#0b1220;
  --tws-panel:#0f172a;
  --tws-panel2:#0b1326;
  --tws-border: rgba(148,163,184,.14);
  --tws-text: #e2e8f0;
  --tws-muted:#94a3b8;
  --tws-blue:#2563eb;
  --tws-blue2:#1d4ed8;
  --tws-blue3:#60a5fa;
}

/* Global background + force remove “white pages” */
html, body{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(37,99,235,.18), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.16), transparent 55%),
              linear-gradient(180deg, var(--tws-bg0), var(--tws-bg2) 40%, var(--tws-bg0));
  color: var(--tws-text);
}

.tws-bg{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(37,99,235,.18), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(99,102,241,.16), transparent 55%),
              linear-gradient(180deg, var(--tws-bg0), var(--tws-bg2) 40%, var(--tws-bg0));
}

.tws-lock{
  overflow: hidden !important;
}

/* Make main content not fight header */
.tws-main{
  min-height: calc(100vh - 80px);
}

/* Header */
.tws-header{
  background: linear-gradient(180deg, rgba(10,16,34,.88), rgba(10,16,34,.70));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148,163,184,.10);
}

.tws-brand-icon{
  width: 44px;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tws-blue), #0b3aa8);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.tws-brand-icon:hover{
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 40px rgba(37,99,235,.25);
  transition: box-shadow .2s ease;
}

.tws-navlink{
  font-size: 14px;
  font-weight: 600;
  color: rgba(226,232,240,.78);
  transition: color .18s ease;
  text-decoration: none;
}
.tws-navlink:hover{ color:#fff; }
.tws-navlink.is-active{ color: var(--tws-blue3); }

.tws-iconbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.tws-iconbtn:hover{
  background: rgba(148,163,184,.08);
  border-color: rgba(148,163,184,.12);
}

.tws-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.25rem;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.tws-pill:active{ transform: scale(.98); }

.tws-pill-light{
  background: #fff;
  color: #0b1220;
}
.tws-pill-light:hover{
  background: #eff6ff;
}

.tws-pill-primary{
  background: var(--tws-blue);
  color:#fff;
  border-color: rgba(255,255,255,.08);
}
.tws-pill-primary:hover{
  background: var(--tws-blue2);
}

.tws-pill-secondary{
  background: rgba(148,163,184,.10);
  border-color: rgba(148,163,184,.18);
  color:#fff;
}
.tws-pill-secondary:hover{
  background: rgba(148,163,184,.14);
}

.tws-cartcount{
  display:none; /* you can enable later if cart.js writes a number */
}

/* Mobile Menu Overlay */
.tws-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.65);
  backdrop-filter: blur(6px);
  z-index: 60;
}

.tws-mobilepanel{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  width: min(92vw, 520px);
  z-index: 70;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(8,12,24,.92));
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: 0 24px 80px rgba(0,0,0,.60);
  overflow: hidden;
}

.tws-mobilepanel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}

.tws-mobilepanel-body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.tws-mobilelink{
  display:block;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.10);
  color:#fff;
  font-weight: 700;
  text-decoration:none;
}
.tws-mobilelink:hover{
  background: rgba(148,163,184,.10);
}

.tws-divider{
  height: 1px;
  width: 100%;
  background: rgba(148,163,184,.12);
  margin: 6px 0;
}

.tws-mobilepill{
  width:100%;
  padding: 14px 16px;
  border-radius: 9999px;
  background: rgba(148,163,184,.10);
  border: 1px solid rgba(148,163,184,.18);
  color:#fff;
  font-weight: 800;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
}
.tws-mobilepill:hover{
  background: rgba(148,163,184,.14);
}
.tws-mobilepill-primary{
  background: var(--tws-blue);
  border-color: rgba(255,255,255,.10);
}
.tws-mobilepill-primary:hover{
  background: var(--tws-blue2);
}

.tws-x{
  background: rgba(148,163,184,.10);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  cursor:pointer;
}

/* Cart drawer (your existing markup) */
.tws-cart{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 340px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.14);
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(8,12,24,.95));
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  padding: 12px;
}

.tws-cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}

.tws-cart-summary{
  padding: 10px 4px;
  color: rgba(226,232,240,.88);
  font-weight: 700;
}

.tws-cart-items{
  padding: 6px 4px 10px;
  color: rgba(226,232,240,.76);
}

.tws-cart-footer{
  display:flex;
  gap: 10px;
  padding: 8px 4px 2px;
}

.tws-btn{
  border-radius: 12px;
  padding: 12px 12px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor:pointer;
}
.tws-btn-primary{
  background: var(--tws-blue);
  color:#fff;
}
.tws-btn-primary:hover{
  background: var(--tws-blue2);
}
.tws-btn-secondary{
  background: rgba(148,163,184,.10);
  border-color: rgba(148,163,184,.18);
  color:#fff;
}
.tws-btn-secondary:hover{
  background: rgba(148,163,184,.14);
}

/* Footer */
.tws-footer{
  border-top: 1px solid rgba(148,163,184,.10);
  background: rgba(2,6,23,.35);
}

/* Modals - restyle your existing modal markup */
.modal{
  background: rgba(2,6,23,.70) !important;
  backdrop-filter: blur(8px);
}
.tws-modal{
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(8,12,24,.95)) !important;
  border: 1px solid rgba(148,163,184,.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.60) !important;
}

.tws-modal-title{
  color:#fff;
  font-weight: 900;
  font-size: 34px;
  margin-bottom: 6px;
}
.tws-modal-subtitle{
  color: rgba(226,232,240,.70);
  margin-bottom: 16px;
}

.auth-form label{
  color: rgba(226,232,240,.80) !important;
  font-weight: 700;
}

.auth-form input{
  background: rgba(226,232,240,.92) !important;
  color: #0b1220 !important;
  border: 1px solid rgba(148,163,184,.18) !important;
  border-radius: 12px !important;
}

.tws-row-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.tws-link{
  color: var(--tws-blue3);
  font-weight: 700;
  text-decoration:none;
}
.tws-link:hover{ text-decoration: underline; }
