/* =====================================================
   DENTISTASV — Main Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:wght@600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:     #0B1F3A;
  --teal:     #0A7EA4;
  --teal-l:   #E8F6FA;
  --teal-m:   #3AACCF;
  --gold:     #C9A84C;
  --bg:       #F7F8FA;
  --white:    #FFFFFF;
  --border:   #E2E8EF;
  --txt:      #0B1F3A;
  --muted:    #6B7B8E;
  --light:    #A0AEBB;
  --red:      #E24B4A;
  --green:    #3B6D11;
  --green-l:  #EAF5EE;
  --r:        10px;
  --rs:       7px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  font-size: 14px;
}

/* ===== NAVBAR ===== */
nav#mainNav {
  background: var(--navy);
  color: #fff;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo em { color: var(--teal-m); font-style: normal; }
.nav-tabs { display: flex; gap: 4px; }
.nav-tab {
  padding: 6px 14px;
  border-radius: var(--rs);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.nav-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-tab.active { background: var(--teal); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 6px 16px;
  border-radius: var(--rs);
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.user-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 12px; color: #fff;
}
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
}
.admin-badge {
  font-size: 10px;
  background: rgba(58,172,207,0.35);
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 4px;
}
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 5px 10px;
  border-radius: var(--rs);
  cursor: pointer;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.btn-logout:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.cart-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--teal);
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
}
.cart-pill:hover { background: #086a8c; }

/* ===== PAGES ===== */
.page { display: none; min-height: calc(100vh - 58px); }
.page.active { display: block; }

/* ===== AUTH ===== */
.auth-wrap {
  min-height: calc(100vh - 58px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #163255 60%, #1a3d6b 100%);
  padding: 2rem 1rem;
}
.auth-box {
  background: #fff;
  border-radius: 16px;
  width: 400px;
  max-width: 100%;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.auth-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 4px;
}
.auth-brand-icon {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px; color: var(--navy);
}
.auth-logo em { color: var(--teal); font-style: normal; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 1.5rem; }
.auth-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 0.75rem; }
.auth-hint a { color: var(--teal); cursor: pointer; font-weight: 500; }
.tabs2 {
  display: flex;
  background: var(--bg);
  border-radius: var(--rs);
  padding: 3px; margin-bottom: 1.5rem;
}
.tab2 {
  flex: 1; padding: 7px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .2s; color: var(--muted);
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
}
.tab2.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.role-selector { display: flex; gap: 8px; margin-bottom: 1.25rem; }
.role-btn {
  flex: 1; padding: 10px;
  border: 2px solid var(--border);
  border-radius: var(--rs);
  background: #fff; cursor: pointer;
  text-align: center; transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
.role-btn.sel { border-color: var(--teal); background: var(--teal-l); }
.role-ico { font-size: 22px; display: block; margin-bottom: 4px; }
.role-lbl { font-size: 12px; font-weight: 600; color: var(--txt); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 11px; font-weight: 700; color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--rs);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--txt); background: #fff;
  transition: border .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal);
}
textarea { resize: vertical; }

/* ===== BUTTONS ===== */
.btn {
  padding: 10px 20px;
  border-radius: var(--rs); border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover:not(:disabled) { background: #086a8c; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: #163255; }
.btn-ghost { background: var(--bg); border: 1px solid var(--border); color: var(--txt); }
.btn-ghost:hover { background: #edf0f3; }
.btn-danger { background: #FFF0F0; color: var(--red); border: 1px solid #FFD0D0; }
.btn-success { background: var(--green-l); color: var(--green); border: 1px solid #C0DD97; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.w-full { width: 100%; }
.btn-row { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

/* ===== SHOP ===== */
.shop-layout { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.shop-top {
  display: flex; gap: 1rem; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.shop-search { flex: 1; min-width: 200px; position: relative; }
.shop-search input { padding-left: 36px; }
.search-ico {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: var(--light); font-size: 16px;
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 13px; border-radius: 20px;
  border: 1px solid var(--border); background: #fff;
  font-size: 12px; cursor: pointer; transition: all .15s; color: var(--txt);
}
.chip:hover, .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.prods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.loading-state { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--muted); font-size: 15px; }

/* ===== PRODUCT CARD ===== */
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden; cursor: pointer;
  transition: all .2s;
  display: flex; flex-direction: column;
}
.prod-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10,126,164,0.1);
}
.prod-img-wrap {
  background: var(--bg);
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.prod-img-placeholder {
  font-size: 48px; color: var(--light);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.prod-stk {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 8px;
}
.prod-body { padding: 0.875rem 1rem; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 10px; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.prod-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; line-height: 1.35; }
.prod-part { font-size: 11px; color: var(--light); margin-bottom: 8px; }
.prod-price { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); margin-bottom: 0.75rem; margin-top: auto; }
.btn-add-prod {
  width: 100%; background: var(--teal); color: #fff; border: none;
  padding: 8px; border-radius: var(--rs);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.btn-add-prod:hover { background: #086a8c; }
.btn-add-prod:disabled { background: var(--light); cursor: not-allowed; }

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(11,31,58,0.5);
  z-index: 300; display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 390px;
  background: #fff; z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-head h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item {
  display: flex; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  align-items: center;
}
.ci-img {
  width: 52px; height: 52px;
  border-radius: 8px; overflow: hidden;
  background: var(--bg); flex-shrink: 0;
}
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 600; color: var(--txt); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { font-size: 12px; color: var(--muted); }
.ci-qty { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.cq-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  border-radius: 5px; background: #fff;
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cq-btn:hover { background: var(--bg); }
.cq-n { font-size: 13px; font-weight: 600; min-width: 22px; text-align: center; }
.ci-subtotal { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--navy); white-space: nowrap; }
.ci-del { background: none; border: none; color: var(--light); cursor: pointer; font-size: 16px; padding: 4px; transition: color .15s; }
.ci-del:hover { color: var(--red); }
.empty-cart { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-cart-ico { font-size: 44px; margin-bottom: 0.5rem; }
.cart-footer { padding: 1.25rem; border-top: 1px solid var(--border); }
.cart-summary { display: flex; flex-direction: column; gap: 7px; margin-bottom: 1rem; }
.cs-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cs-total { font-weight: 700; font-size: 16px; color: var(--navy); }
.btn-checkout {
  width: 100%; background: var(--navy); color: #fff; border: none;
  padding: 13px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.btn-checkout:hover { background: #163255; }

/* ===== CHECKOUT ===== */
.checkout-wrap { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: var(--navy); margin-bottom: 1.25rem;
}
.checkout-step {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem; margin-bottom: 1rem;
}
.step-title {
  font-weight: 600; font-size: 16px; color: var(--navy);
  display: flex; align-items: center; margin-bottom: 1.25rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--teal); color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 700;
  margin-right: 10px; flex-shrink: 0;
}
.payment-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pay-opt {
  border: 2px solid var(--border); border-radius: var(--r);
  padding: 1rem; cursor: pointer; transition: all .2s; text-align: center;
}
.pay-opt:hover { border-color: var(--teal-m); }
.pay-opt.sel { border-color: var(--teal); background: var(--teal-l); }
.po-ico { font-size: 30px; margin-bottom: 6px; }
.po-name { font-size: 13px; font-weight: 600; color: var(--txt); }
.po-desc { font-size: 11px; color: var(--muted); margin-top: 3px; }
.order-summary-list { display: flex; flex-direction: column; gap: 0; }
.osl-item {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.osl-item:last-child { border: none; font-weight: 700; font-size: 16px; color: var(--navy); padding-top: 12px; }
.btn-place {
  background: var(--navy); color: #fff; width: 100%;
  padding: 13px; border: none; border-radius: var(--r);
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif; margin-top: 1rem;
  transition: background .2s;
}
.btn-place:hover { background: #163255; }

/* ===== SUCCESS ===== */
.success-wrap { text-align: center; padding: 4rem 2rem; max-width: 480px; margin: 0 auto; }
.success-ico { font-size: 64px; margin-bottom: 1rem; }
.success-wrap h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--navy); margin-bottom: 0.5rem; }
.success-wrap p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 1.5rem; }

/* ===== ORDERS (cliente) ===== */
.order-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem;
}
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.oc-id { font-size: 11px; color: var(--light); font-weight: 700; letter-spacing: 0.5px; }
.oc-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.oc-items { font-size: 13px; color: var(--txt); margin-bottom: 0.75rem; line-height: 1.6; }
.oc-footer { display: flex; justify-content: space-between; align-items: center; }
.oc-total { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-green  { background: var(--green-l);   color: var(--green); }
.badge-red    { background: #FFF0F0;           color: var(--red);   }
.badge-gold   { background: #FDF5E6;           color: var(--gold);  }
.badge-teal   { background: var(--teal-l);     color: var(--teal);  }
.badge-navy   { background: #EEF1F6;           color: var(--navy);  }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 58px); }
.sidebar { background: var(--navy); color: #fff; padding: 1rem 0; overflow-y: auto; }
.sidebar-brand {
  padding: 0.5rem 1.25rem 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 15px; color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.5rem;
}
.sb-section { padding: 8px 1.25rem 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
.sb-item {
  padding: 10px 1.25rem; font-size: 13px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s; color: rgba(255,255,255,0.65);
}
.sb-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sb-item.active { background: rgba(10,126,164,0.3); color: #fff; border-right: 3px solid var(--teal-m); }
.admin-content { padding: 1.5rem; overflow-y: auto; }

/* ===== METRICS ===== */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.metric { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1rem 1.25rem; }
.metric-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 700; }
.metric-val { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--navy); }
.metric-sub { font-size: 11px; color: var(--light); margin-top: 3px; }

/* ===== CARD / TABLE ===== */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 1.5rem; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-weight: 600; font-size: 15px; color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 9px 1rem; font-size: 11px; font-weight: 700;
  color: var(--muted); text-align: left;
  background: #FAFBFC; text-transform: uppercase;
  letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
}
td { padding: 11px 1rem; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--txt); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }

/* ===== FORM PANEL ===== */
.form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.5rem; }
.form-panel-title { font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 1.25rem; }

/* ===== IMAGE UPLOADER ===== */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
  position: relative;
  min-height: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.img-upload-area:hover, .img-upload-area.drag-over { border-color: var(--teal); background: var(--teal-l); }
.img-upload-area input[type="file"] { display: none; }
.upload-preview {
  width: 100%; height: 140px;
  object-fit: cover;
  border-radius: var(--rs);
  display: block;
}
.upload-ico { font-size: 32px; }
.upload-txt { font-size: 13px; color: var(--muted); }
.upload-hint { font-size: 11px; color: var(--light); }
.upload-progress {
  width: 100%; height: 4px;
  background: var(--border); border-radius: 2px; overflow: hidden;
  margin-top: 8px; display: none;
}
.upload-progress-bar { height: 100%; background: var(--teal); border-radius: 2px; transition: width .2s; width: 0; }
.upload-change-btn {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(11,31,58,0.7); color: #fff;
  border: none; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; cursor: pointer; font-family: 'DM Sans', sans-serif;
}

/* ===== STATUS SELECT ===== */
.status-sel { padding: 4px 8px; font-size: 12px; border-radius: var(--rs); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff;
  padding: 10px 24px; border-radius: 24px;
  font-size: 13px; font-weight: 500;
  z-index: 999; opacity: 0; transition: all .3s;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== SPINNER ===== */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--light); }

/* ===== LOGIN MODAL ===== */
.login-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,31,58,0.6);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.login-modal-overlay.open { display: flex; }
.login-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 420px;
  max-width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.login-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50%; width: 30px; height: 30px;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .2s;
}
.login-modal-close:hover { background: var(--border); color: var(--txt); }
