/* Talaba CSS entrypoint
   Safe split: the original main.css was divided into section files below.
   Import order is identical to the original CSS order, so existing classes/IDs stay working.
*/
@import url("sections/00-base.css");
@import url("sections/01-header.css");
@import url("sections/02-home-products.css");
@import url("sections/03-product-detail.css");
@import url("sections/04-cart-checkout-success.css");
@import url("sections/05-filters-dropdowns-auth.css");
@import url("sections/06-profile.css");
@import url("sections/07-dashboard-common-student.css");
@import url("sections/08-responsive.css");
@import url("sections/09-vendor-dashboard.css");


/* Phase 7 — Launch Mode / Admin / Vendor Approval */
.coming-soon-card,
.vendor-pending-card {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 30px auto;
  padding: 46px 28px;
  border: 1px solid rgba(51,79,239,0.12);
  background: linear-gradient(180deg, rgba(51,79,239,0.06), rgba(255,255,255,0.95));
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(20,24,40,0.08);
}
.coming-soon-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51,79,239,0.10);
  color: #334fef;
}
.coming-soon-card h3,
.vendor-pending-card h2 { margin: 0 0 10px; color: var(--text1); font-size: 24px; }
.coming-soon-card p,
.vendor-pending-card p { margin: 0 auto 22px; max-width: 520px; color: var(--text3); line-height: 1.7; font-size: 14px; }
.profile-inline-link {
  border: 0;
  background: transparent;
  color: #334fef;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 34px 18px 70px; }
.admin-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; background:#fff; border:1px solid var(--border); border-radius:24px; padding:24px; box-shadow:0 14px 40px rgba(20,24,40,.06); margin:18px 0; }
.admin-hero h2 { margin:0 0 6px; font-size:24px; }
.admin-hero p { margin:0; color:var(--text3); font-size:14px; }
.admin-tabs { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0; }
.admin-tab { border:1px solid var(--border); background:#fff; border-radius:999px; padding:10px 16px; cursor:pointer; font-weight:700; color:var(--text2); }
.admin-tab.on { background:#334fef; color:#fff; border-color:#334fef; }
.admin-list { display:grid; gap:12px; }
.admin-vendor-card { display:flex; justify-content:space-between; gap:18px; align-items:center; background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow:0 10px 30px rgba(20,24,40,.05); }
.admin-vendor-card h3 { margin:0 0 6px; font-size:16px; }
.admin-vendor-card p { margin:0; color:var(--text3); font-size:13px; }
.admin-badges { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.admin-badge { border-radius:999px; padding:5px 9px; background:rgba(51,79,239,.08); color:#334fef; font-size:11px; font-weight:800; }
.admin-badge.ok { background:rgba(22,163,74,.10); color:#16a34a; }
.admin-badge.warn { background:rgba(245,158,11,.12); color:#b45309; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.admin-action { border:1px solid var(--border); background:#fff; border-radius:10px; padding:9px 12px; cursor:pointer; font-weight:800; font-size:12px; }
.admin-action.ok { background:#16a34a; border-color:#16a34a; color:#fff; }
.admin-action.danger { background:#e94560; border-color:#e94560; color:#fff; }
.admin-action.warn { background:#f59e0b; border-color:#f59e0b; color:#fff; }
.admin-empty { background:#fff; border:1px dashed var(--border2); border-radius:18px; padding:34px; text-align:center; color:var(--text3); }
.admin-empty.error { color:#e94560; }
@media (max-width: 720px) { .admin-hero, .admin-vendor-card { flex-direction:column; align-items:stretch; } .admin-actions { justify-content:flex-start; } }

/* Phase 9 — Admin real control polish */
.admin-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin:16px 0 20px; }
.admin-stat { background:#fff; border:1px solid var(--border); border-radius:18px; padding:16px; box-shadow:0 10px 28px rgba(20,24,40,.04); }
.admin-stat span { display:block; color:var(--text3); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; }
.admin-stat strong { display:block; margin-top:8px; font-size:24px; color:var(--text); }
.admin-stat.warn { border-color:rgba(245,158,11,.35); background:rgba(245,158,11,.06); }
.admin-main-tabs { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0; }
.admin-main-tab { border:1px solid var(--border); background:#fff; color:var(--text2); border-radius:14px; padding:12px 16px; cursor:pointer; font-weight:900; display:flex; align-items:center; gap:8px; box-shadow:0 8px 22px rgba(20,24,40,.04); }
.admin-main-tab.on { background:#111827; color:#fff; border-color:#111827; }
.admin-panel { display:block; }
.admin-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:12px 0 18px; }
.admin-toolbar h3 { margin:0 0 5px; font-size:18px; }
.admin-toolbar p { margin:0; color:var(--text3); font-size:13px; }
.admin-controls { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.admin-controls input, .admin-controls select { height:40px; border:1px solid var(--border); border-radius:12px; padding:0 12px; outline:none; background:#fff; min-width:160px; }
.admin-badge.danger { background:rgba(233,69,96,.10); color:#e94560; }
.admin-product-card { align-items:center; }
.admin-product-left { display:flex; align-items:center; gap:14px; min-width:0; }
.admin-product-img { width:58px; height:58px; border-radius:14px; object-fit:cover; background:#f4f6fb; border:1px solid var(--border); flex:0 0 auto; display:grid; place-items:center; color:var(--text3); }
.admin-product-left h3 { max-width:520px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 900px) { .admin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-toolbar { flex-direction:column; align-items:stretch; } .admin-controls { justify-content:flex-start; } }
@media (max-width: 560px) { .admin-stats { grid-template-columns:1fr; } .admin-product-left { align-items:flex-start; } .admin-controls input, .admin-controls select { width:100%; } }


/* Phase 13.1 — Real Footer Help Modal + polished Sign-in link */
.auth-signin-always {
  margin: 16px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text3, #6b7280);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.auth-signin-always .auth-signin-link,
.auth-signin-always button {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: #334fef !important;
  font: inherit;
  font-weight: 900;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: auto !important;
  line-height: 1.4;
}
.auth-signin-always .auth-signin-link:hover,
.auth-signin-always button:hover { text-decoration: underline; }

.talaba-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}
.talaba-help-overlay.show { display: flex; }
body.talaba-help-open { overflow: hidden; }
.talaba-help-modal {
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  position: relative;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
  padding: 26px;
  animation: talabaHelpIn .18s ease-out;
}
@keyframes talabaHelpIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.talaba-help-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--text2, #475569);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.talaba-help-close:hover { background: #f8fafc; color: #111827; }
.talaba-help-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-right: 42px;
  margin-bottom: 20px;
}
.talaba-help-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(51,79,239,.10);
  color: #334fef;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.talaba-help-icon i { font-size: 28px; }
.talaba-help-head h2 {
  margin: 0 0 7px;
  color: var(--text1, #111827);
  font-size: 24px;
  letter-spacing: -0.03em;
}
.talaba-help-head p {
  margin: 0;
  color: var(--text3, #64748b);
  line-height: 1.65;
  font-size: 14px;
}
.help-steps { display: grid; gap: 12px; }
.help-step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  background: #fff;
}
.help-step > span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.help-step strong { display: block; color: var(--text1, #111827); margin-bottom: 4px; }
.help-step p { margin: 0; color: var(--text3, #64748b); line-height: 1.55; font-size: 13px; }
.help-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.help-tips li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
  color: var(--text2, #475569);
  line-height: 1.55;
  font-size: 13px;
}
.help-tips i { color: #16a34a; font-size: 18px; flex: 0 0 auto; margin-top: 1px; }
.help-contact-list { display: grid; gap: 10px; }
.help-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  background: #fff;
}
.help-contact-row span { color: var(--text3, #64748b); font-size: 13px; font-weight: 700; }
.help-contact-row strong { color: var(--text1, #111827); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .talaba-help-modal { padding: 22px 18px; border-radius: 22px; }
  .talaba-help-head { gap: 12px; padding-right: 38px; }
  .talaba-help-head h2 { font-size: 20px; }
  .talaba-help-icon { width: 46px; height: 46px; border-radius: 16px; }
  .help-contact-row { flex-direction: column; align-items: flex-start; }
  .help-contact-row strong { text-align: left; }
}


/* Phase 13.2 — force polished auth sign-in link */
.auth-signin-always {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 14px auto 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #6b7280 !important;
  font-weight: 600 !important;
}
.auth-signin-always .auth-signin-link,
.auth-signin-always a.auth-signin-link,
.auth-signin-always button.auth-signin-link {
  display: inline !important;
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #334fef !important;
  font: inherit !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
}
.auth-signin-always .auth-signin-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
