/* ============================================================
   BSO B2B pharmacy gate - premium cinematic auth experience.
   Landing / login / register / pending / rejected only.
   Loaded after styles.css; keeps routes, forms, IDs, and API logic intact.
   ============================================================ */

body.gate-mode .site-header,
body.gate-mode .mobile-nav,
body.gate-mode .site-footer { display: none !important; }

body.gate-mode {
  --gate-bg: #03070f;
  --gate-panel: rgba(8, 18, 31, .74);
  --gate-panel-strong: rgba(7, 15, 27, .9);
  --gate-line: rgba(196, 232, 255, .16);
  --gate-ink: #f7fbff;
  --gate-muted: rgba(226, 240, 250, .72);
  --gate-blue: #00aeef;
  --gate-green: #00a651;
  --gate-soft-green: #7dffbd;
  background:
    radial-gradient(900px 560px at 82% -12%, rgba(0,174,239,.28), transparent 62%),
    radial-gradient(820px 520px at 8% 12%, rgba(0,166,81,.18), transparent 60%),
    linear-gradient(180deg, #02040a 0%, #07111e 52%, #0a1421 100%);
  color: var(--gate-ink);
}

body.gate-mode #app { min-height: 100vh; background: transparent; }
body.gate-mode .view.gate-view { background: transparent; }
body.gate-mode .view.gate-view.active { display: block; }

.gate-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.gate-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 82px 82px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 76%);
}
.gate-shell::after {
  content: "";
  position: absolute;
  inset: auto 7% -22vh 7%;
  z-index: -1;
  height: 42vh;
  background: radial-gradient(ellipse at center, rgba(0,174,239,.16), rgba(0,166,81,.09) 42%, transparent 74%);
  filter: blur(12px);
}

.gate-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--gate-ink);
  padding: 0;
  cursor: pointer;
  text-align: start;
}
.gate-logo-frame,
.gate-card-logo .gate-logo-frame {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 48px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.18);
}
.gate-logo-frame img { width: 38px; height: auto; filter: drop-shadow(0 0 18px rgba(0,174,239,.42)); }
.gate-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.gate-brand-text strong { font-size: 22px; letter-spacing: .06em; color: #fff; }
.gate-brand-text small { color: var(--gate-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.gate-top-actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.gate-top-actions .button { min-height: 40px; padding: 9px 18px; }

.auth-cinematic-panel,
.gate-card {
  border: 1px solid var(--gate-line);
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
  box-shadow: 0 28px 90px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
}


.gate-topbar > img,
.gate-card-logo > img {
  width: auto;
  height: 46px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 48px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.18);
  filter: drop-shadow(0 0 18px rgba(0,174,239,.34));
}
.gate-card-logo > img { height: 58px; margin-inline: auto; }
/* ===== LANDING HERO — 2-COLUMN LAYOUT ===== */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: min(1060px, calc(100% - 32px));
  margin: 12px auto;
  padding: 32px;
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
}

/* Left panel — catalog preview */
.landing-visual {
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
}
.lv-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(226,240,250,.45);
  font-size: 13px;
  margin-bottom: 14px;
}
.lv-product-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lv-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.07);
}
.lv-product-img { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.lv-product-info { display: flex; flex-direction: column; gap: 1px; }
.lv-product-info strong { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.lv-product-info > span { font-size: 11px; color: rgba(226,240,250,.45); }
.lv-price { font-size: 12px; font-weight: 700; color: #7dffbd; }
.lv-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,174,239,.10);
  border: 1px solid rgba(0,174,239,.18);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}
.lv-badge {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0,166,81,.14);
  border: 1px solid rgba(0,166,81,.25);
  color: #7dffbd;
  font-size: 12px;
  font-weight: 600;
}

/* Right panel — text content */
.landing-hero-content { direction: rtl; }
.landing-hero-content .landing-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0,174,239,.12);
  border: 1px solid rgba(0,174,239,.2);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 600;
}
.landing-hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.landing-hero-content p.lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(226,240,250,.68);
}
.landing-hero-content .landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.landing-hero-content .landing-cta .button {
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.landing-hero-content .landing-cta .button.secondary {
  background: rgba(255,255,255,.055);
  color: rgba(247,251,255,.85);
  border: 1px solid rgba(255,255,255,.13);
}
.landing-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.landing-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(226,240,250,.65);
}
.landing-trust-strip b { color: #7dffbd; font-weight: 700; }

/* ===== WHITE CARD SECTIONS ===== */
.landing-white-card {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.landing-white-card .landing-section-head { text-align: center; margin-bottom: 20px; }
.landing-white-card .landing-section-head span {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(224,242,254,.25);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 600;
}
.landing-white-card .landing-section-head h2 {
  margin: 0;
  color: #f1f5f9;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 700;
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.landing-feature {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s, border-color .2s;
}
.landing-feature:hover { transform: translateY(-2px); border-color: rgba(125,255,189,.2); }
.landing-feature .lf-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #00aeef, #00a651);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.landing-feature h3 { margin: 0 0 4px; color: #f1f5f9; font-size: 14px; font-weight: 600; }
.landing-feature p { margin: 0; color: #94a3b8; font-size: 12px; line-height: 1.5; }

/* ===== LIGHT STEPS ===== */
.landing-steps-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.landing-step-light {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00aeef, #00a651);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.landing-step-light h3 { margin: 0 0 4px; color: #f1f5f9; font-size: 14px; font-weight: 600; }
.landing-step-light p { margin: 0; color: #94a3b8; font-size: 12px; line-height: 1.5; }

/* ===== FINAL CTA ===== */
.landing-final-cta {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto 36px;
}
.landing-final-cta .lfc-inner {
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, #00aeef, #00a651);
  color: #fff;
}
.landing-final-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 700;
}
.landing-final-cta .button.primary {
  background: #fff;
  color: #0369a1;
  box-shadow: none;
}
.landing-final-cta .button.primary:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }

/* Auth trusts — kept for login/register */
.auth-trust-row,
.gate-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.auth-trust-row span,
.gate-trust-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(246,251,255,.88);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}
.auth-trust-row span::before,
.gate-trust-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gate-blue), var(--gate-green));
  box-shadow: 0 0 12px rgba(0,174,239,.55);
}
.gate-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gate-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 5vh, 54px) 16px 60px;
}
.gate-card {
  position: relative;
  width: min(100%, 480px);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
  color: var(--gate-ink);
  overflow: hidden;
}
.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 260px at 50% -10%, rgba(0,174,239,.16), transparent 70%);
  pointer-events: none;
}
.gate-card > * { position: relative; z-index: 1; }
.gate-card.wide { width: min(100%, 780px); }
.gate-card-logo { text-align: center; margin-bottom: 18px; }
.gate-card-logo .gate-logo-frame { margin-inline: auto; }
.gate-card-logo p { margin: 9px 0 0; color: var(--gate-muted); font-size: 10px; letter-spacing: .16em; }
.gate-card h1 {
  margin: 0 0 8px;
  text-align: center;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
}
.gate-card .gate-sub {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--gate-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.85;
}
.gate-card .gate-kicker { display: flex; justify-content: center; }
.gate-trust-list { justify-content: center; margin: -6px 0 22px; }

.gate-form label {
  display: block;
  margin-bottom: 14px;
  color: rgba(247,251,255,.92);
  font-size: 13px;
  font-weight: 800;
}
.gate-form label small { color: var(--gate-muted); font-weight: 500; }
.gate-form em { color: var(--gate-soft-green); font-style: normal; }
.gate-form input,
.gate-form select,
.gate-form textarea {
  width: 100%;
  margin-top: 7px;
  min-height: 48px;
  border: 1px solid rgba(214,235,247,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.gate-form textarea { min-height: 86px; resize: vertical; }
.gate-form input::placeholder,
.gate-form textarea::placeholder { color: rgba(226,240,250,.42); }
.gate-form select { color-scheme: dark; }
.gate-form input:focus,
.gate-form select:focus,
.gate-form textarea:focus {
  border-color: rgba(0,174,239,.64);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 4px rgba(0,174,239,.12), inset 0 1px 0 rgba(255,255,255,.08);
}
.gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.gate-grid .full { grid-column: 1 / -1; }
.gate-form .button.wide { margin-top: 6px; }
.gate-error {
  min-height: 20px;
  margin: 4px 0 10px;
  color: #ffd6dc;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}
.gate-error:not(:empty) {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,91,120,.22);
  background: rgba(255,91,120,.1);
}
.gate-hint,
.gate-status-note {
  margin: 0 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(125,255,189,.18);
  background: rgba(0,166,81,.1);
  color: rgba(235,255,245,.9);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}
.gate-switch {
  text-align: center;
  margin-top: 16px;
  color: var(--gate-muted);
  font-size: 13px;
}
.gate-switch button {
  border: 0;
  background: transparent;
  color: var(--gate-soft-green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.gate-status { text-align: center; }
.gate-status .gate-status-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}
.gate-status.pending .gate-status-icon { color: #ffe6a8; box-shadow: 0 0 50px rgba(217,179,92,.16); }
.gate-status.rejected .gate-status-icon { color: #ffd6dc; box-shadow: 0 0 50px rgba(255,91,120,.16); }
.gate-status h1 { margin: 0 0 10px; }
.gate-status p { max-width: 470px; margin: 0 auto 16px; color: var(--gate-muted); line-height: 1.8; }
.gate-status .gate-actions { display: grid; gap: 10px; margin-top: 18px; }
.gate-status .button.whatsapp { background: #25d366; color: #062512; border: 0; }
.gate-status .button.secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); }

body.gate-mode .button.primary,
.gate-card .button.primary,
.gate-topbar .button.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--gate-blue), var(--gate-green));
  box-shadow: 0 18px 44px rgba(0,174,239,.24);
}
body.gate-mode .button.primary:hover,
.gate-card .button.primary:hover { transform: translateY(-1px); box-shadow: 0 24px 58px rgba(0,174,239,.32); }
body.gate-mode .button.secondary,
.gate-topbar .button.secondary {
  color: #fff;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.16);
}

.gate-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23bfe6ff' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 36px;
}

@media (max-width: 840px) {
  .landing-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .landing-visual { order: 2; }
  .landing-hero-content { order: 1; }
  .landing-features { grid-template-columns: repeat(2, 1fr); }
  .landing-steps-light { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .gate-topbar { width: min(100% - 24px, 1180px); padding: 14px 12px; }
  .gate-brand-text strong { font-size: 18px; }
  .gate-logo-frame { width: 48px; height: 48px; border-radius: 16px; }
  .gate-logo-frame img { width: 34px; }
  .gate-top-actions { gap: 7px; }
  .gate-top-actions .button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .gate-quick-grid { grid-template-columns: 1fr; }
  .gate-center { align-items: flex-start; padding-inline: 12px; padding-top: 18px; }
  .gate-card { border-radius: 22px; padding: 24px 18px; }
  .gate-grid { grid-template-columns: 1fr; gap: 0; }
  .gate-trust-list { justify-content: flex-start; }
  .auth-trust-row span,
  .gate-trust-list span { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 430px) {
  .gate-topbar { align-items: flex-start; }
  .gate-top-actions { flex-direction: column; align-items: stretch; }
  .gate-top-actions .button { width: 100%; }
  .gate-card-logo { margin-bottom: 14px; }
  .gate-card h1 { font-size: 28px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-hero { padding: 20px 16px; }
  .lv-cart { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-feature,
  body.gate-mode .button.primary { transition: none; }
}


.gate-next-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.gate-next-steps span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.065);
  color: rgba(246,251,255,.88);
  font-size: 12px;
  font-weight: 800;
}
.gate-next-steps.compact { grid-template-columns: 1fr; }
@media (max-width: 520px) {
  .gate-next-steps { grid-template-columns: 1fr; }
}
