/* ============================================================
   TECHINPEDIA — Production CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --bg: #f0f8ff;
  --bg2: #ffe4e1;
  --card: rgba(255,255,255,.9);
  --text: #1a2e35;
  --muted: #5d7580;
  --line: rgba(0,0,0,.09);
  --purple: #d946ef;
  --cyan: #06b6d4;
  --green: #10b981;
  --shadow: 0 20px 60px rgba(0,0,0,.1);
  --radius: 20px;
  --max: 1240px;
  --nav-h: 72px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(217,70,239,.14) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 0%, rgba(6,182,212,.12) 0%, transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(236,72,153,.09) 0%, transparent 38%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: rgba(217,70,239,.3); }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   GATE / SPLASH LOGIN OVERLAY
   ══════════════════════════════════════════════════════════ */
#gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(217,70,239,.22) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6,182,212,.18) 0%, transparent 50%),
    linear-gradient(135deg, #0f1923 0%, #1a2535 50%, #0d1f2d 100%);
  transition: opacity .5s ease .2s;
}
#gate-overlay.hiding { opacity: 0; pointer-events: none; }
#gate-overlay::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(217,70,239,.04) 80px, rgba(217,70,239,.04) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(6,182,212,.04) 80px, rgba(6,182,212,.04) 81px);
  animation: gridFloat 20s linear infinite;
}
@keyframes gridFloat { 0% { transform: translate(0,0); } 100% { transform: translate(80px,80px); } }

.gate-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: orbFloat 12s ease-in-out infinite; }
.gate-orb-1 { width: 400px; height: 400px; background: rgba(217,70,239,.18); top: -100px; left: -100px; }
.gate-orb-2 { width: 350px; height: 350px; background: rgba(6,182,212,.15); bottom: -80px; right: -80px; animation-delay: -6s; }
.gate-orb-3 { width: 250px; height: 250px; background: rgba(236,72,153,.12); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -3s; }
@keyframes orbFloat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12) translate(16px,-16px); } }

.gate-card {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100% - 32px));
  padding: 48px 44px 40px;
  border-radius: 28px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(32px) saturate(160%);
  animation: gateIn .6s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes gateIn { from { opacity:0; transform: scale(.9) translateY(28px); } to { opacity:1; transform: none; } }
.gate-card.exit { animation: gateOut .4s ease forwards; }
@keyframes gateOut { to { opacity:0; transform: scale(1.04) translateY(-16px); } }

.gate-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.gate-logo-icon {
  width: 48px; height: 48px;
  background-image: url('../techinpedialogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  flex-shrink: 0;
}
.gate-logo span { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.gate-title { font-family: 'Syne', sans-serif; font-size: 1.55rem; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: -.03em; }
.gate-sub { color: rgba(255,255,255,.48); font-size: .92rem; margin-bottom: 28px; line-height: 1.65; }

.gate-tabs {
  display: flex; gap: 8px; padding: 6px;
  border-radius: 14px; background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08); margin-bottom: 26px;
}
.gate-tab {
  flex: 1; padding: 11px 16px; border: none; border-radius: 10px;
  background: transparent; color: rgba(255,255,255,.48);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .25s ease;
}
.gate-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; box-shadow: 0 6px 18px rgba(217,70,239,.35);
}

.gate-form { display: none; flex-direction: column; gap: 15px; }
.gate-form.active { display: flex; }
.gate-field { display: flex; flex-direction: column; gap: 7px; }
.gate-field label {
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase;
}
.gate-field input {
  padding: 13px 16px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.07); color: #fff; font-size: .97rem; transition: all .25s ease;
}
.gate-field input::placeholder { color: rgba(255,255,255,.25); }
.gate-field input:focus {
  outline: none; border-color: rgba(217,70,239,.6);
  background: rgba(255,255,255,.11); box-shadow: 0 0 0 3px rgba(217,70,239,.15);
}

.gate-hint {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.22);
  font-size: .84rem; color: rgba(255,255,255,.65); line-height: 1.65;
}
.gate-hint strong { color: #22d3ee; }

.gate-submit {
  padding: 14px 20px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; font-weight: 700; font-size: .98rem;
  cursor: pointer; transition: all .25s ease;
  box-shadow: 0 10px 28px rgba(217,70,239,.3); margin-top: 4px;
}
.gate-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(217,70,239,.42); }
.gate-submit:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.gate-status { font-size: .86rem; text-align: center; min-height: 18px; color: rgba(255,255,255,.45); margin-top: 4px; }
.gate-status.error { color: #f87171; }
.gate-status.success { color: #34d399; }

/* Admin modal (replaces nav dropdown login) */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,6,6,0.45);
  z-index: 10050;
  padding: 20px;
}
.admin-modal-overlay.open { display: flex; }
.admin-modal-card {
  width: min(520px, calc(100% - 48px));
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.25);
  max-height: calc(100vh - 80px);
  overflow: auto;
  position: relative;
}
.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.admin-modal-card .auth-admin-hint { margin-bottom: 12px; }
.admin-modal-card .auth-login-form .field input { width: 100%; }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(240,248,255,.88);
  border-bottom: 1px solid rgba(217,70,239,.14);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.08rem; letter-spacing: -.02em; flex-shrink: 0;
}
.brand-logo {
  width: 36px; height: 36px;
  background-image: url('../techinpedialogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative; padding: 7px 12px; border-radius: 9px;
  color: var(--muted); font-size: .88rem; font-weight: 500;
  transition: all .2s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(217,70,239,.07); }
.nav-links a.active { color: var(--text); background: rgba(217,70,239,.09); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%); width: 18px; height: 2px;
  border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.menu-btn {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 11px; background: rgba(255,255,255,.65); color: var(--text);
  font-size: 1rem; cursor: pointer; flex-shrink: 0;
}

/* Dropdown (Services) */
.nav-links .dropdown { position: relative; }
.nav-links .dropbtn {
  padding: 7px 12px; border-radius: 9px; background: transparent; border: none;
  cursor: pointer; color: var(--muted); font-weight: 600; font-size: .88rem;
}
.nav-links .dropdown:hover .dropbtn,
.nav-links .dropdown.open .dropbtn { color: var(--text); background: rgba(217,70,239,.07); }
.nav-links .dropdown-content {
  display: none; position: absolute; top: calc(var(--nav-h) + 10px); left: 0;
  min-width: 320px; background: rgba(255,255,255,.98);
  border: 1px solid rgba(217,70,239,.12); border-radius: 12px; padding: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.08); z-index: 1100; gap: 12px; align-items: flex-start;
}
.nav-links .dropdown:hover .dropdown-content,
.nav-links .dropdown.open .dropdown-content,
.nav-links .dropdown:focus-within .dropdown-content { display: flex; }

.dropdown-column { display: flex; flex-direction: column; gap: 6px; padding: 6px 12px; min-width: 160px; }
.dropdown-column h4 { margin-bottom: 6px; font-size: .92rem; color: var(--text); font-weight: 700; }
.dropdown-column a { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.dropdown-column a:hover { background: rgba(217,70,239,.06); color: var(--text); }

/* Two-column services dropdown: categories (left) + items (right) */
.dropdown-cats { display:flex; flex-direction:column; gap:8px; min-width:160px; padding:6px 8px; }
.dropdown-cat-btn {
  border: none; background: transparent; text-align: left; padding: 10px 12px;
  border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--muted);
}
.dropdown-cat-btn:hover, .dropdown-cat-btn.active { color: var(--text); background: rgba(217,70,239,.06); }
.dropdown-sub { display:flex; flex-direction:column; gap:8px; padding:6px 8px; min-width:220px; }
.dropdown-sublist { display:flex; flex-direction:column; gap:6px; }
.dropdown-sub-item { padding:8px 10px; border-radius:8px; color: var(--muted); font-weight:600; }
.dropdown-sub-item:hover { background: rgba(217,70,239,.06); color: var(--text); }
#navAuthMount {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.auth-dropdown { margin-left: 0; }
.auth-dropdown-content {
  left: auto;
  right: 0;
  min-width: 360px;
  padding: 14px;
}
.auth-dropdown-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-dropdown-panel h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}
.auth-dropdown-copy {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.auth-admin-hint {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(217,70,239,.08);
  border: 1px solid rgba(217,70,239,.14);
  color: var(--text);
  font-size: .83rem;
  line-height: 1.55;
  word-break: break-word;
}
.auth-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-login-form .field { gap: 6px; }
.auth-login-form .field input {
  padding: 11px 13px;
}
.auth-dropdown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-inline-btn {
  width: 100%;
  justify-content: center;
}
.auth-status {
  min-height: 18px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}
.auth-status.success { color: var(--green); }
.auth-status.error { color: #dc2626; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding: calc(var(--nav-h) + 72px) 0 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
body.home .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
}
.panel.inquiry-panel { width: min(100%, 420px); margin: 0; justify-self: end; }
body:not(.home) .hero {
  min-height: auto;
  padding-bottom: 56px;
}
body:not(.home) .hero .reveal,
body:not(.home) .section-head > div {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
body:not(.home) .hero p,
body:not(.home) .section-head p {
  margin-inline: auto;
}
body:not(.home) .hero-actions { justify-content: center; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.0; margin-bottom: 20px;
  letter-spacing: -.04em; text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(90deg, #d946ef 0%, #0891b2 55%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 560px; color: var(--muted); font-size: 1.05rem; line-height: 1.82; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
  width: 100%; max-width: 540px; border-radius: 22px; object-fit: cover;
  box-shadow: 0 28px 72px rgba(0,0,0,.14); border: 1px solid rgba(217,70,239,.18);
}

/* ══════════════════════════════════════════════════════════
   BADGE
   ══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(217,70,239,.22);
  background: linear-gradient(135deg, rgba(217,70,239,.09), rgba(6,182,212,.09));
  font-size: .86rem; font-weight: 500; margin-bottom: 18px; color: var(--text);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 12px rgba(16,185,129,.7);
  animation: pdot 2s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { box-shadow: 0 0 10px rgba(16,185,129,.7); }
  50%      { box-shadow: 0 0 20px rgba(16,185,129,.95), 0 0 36px rgba(16,185,129,.4); }
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; padding: 13px 24px; border-radius: 12px;
  cursor: pointer; transition: all .22s ease;
  font-weight: 600; font-size: .96rem; line-height: 1;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #d946ef, #0891b2);
  box-shadow: 0 10px 28px rgba(217,70,239,.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(217,70,239,.38); }
.btn-secondary {
  color: var(--text); background: rgba(255,255,255,.72);
  border: 1px solid rgba(217,70,239,.22);
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.92); border-color: rgba(217,70,239,.42); }

/* Admin helpers */
.btn-muted { background: rgba(243,244,246,1); color: var(--text); border: 1px solid rgba(15,23,42,.06); }
.admin-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.admin-edit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--cyan)); color: #fff; font-weight: 700;
  box-shadow: 0 8px 24px rgba(217,70,239,.18); font-size: .9rem;
}
.admin-edit:hover { transform: translateY(-2px); }
.admin-highlight { box-shadow: 0 0 0 6px rgba(217,70,239,.08); border-radius: 8px; transition: box-shadow .28s ease; }

/* ══════════════════════════════════════════════════════════
   SERVICE GRID SECTION
   ══════════════════════════════════════════════════════════ */
.service-grid { padding: 52px 0 96px; }
.section-head {
  display: flex; justify-content: space-between; gap: 20px;
  align-items: flex-end; margin-bottom: 32px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: -.03em; line-height: 1.12;
}
.section-head p { color: var(--muted); max-width: 480px; line-height: 1.75; font-size: .95rem; }

/* ── Cards ─────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(148deg, rgba(255,255,255,.88), rgba(217,70,239,.04));
  border: 1px solid rgba(217,70,239,.18);
  box-shadow: 0 4px 22px rgba(0,0,0,.06);
  position: relative; overflow: hidden;
  transition: all .28s ease; backdrop-filter: blur(12px);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(217,70,239,.4), transparent);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,70,239,.38);
  box-shadow: 0 16px 44px rgba(217,70,239,.14);
}
.card-icon { font-size: 2.2rem; margin-bottom: 14px; display: inline-block; line-height: 1; }
.card h3 {
  font-family: 'Syne', sans-serif; font-size: 1.12rem;
  font-weight: 700; margin-bottom: 9px; letter-spacing: -.02em;
}
.card p { color: var(--muted); font-size: .93rem; line-height: 1.76; margin-bottom: 16px; }
.card .mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.service-card { display: flex; flex-direction: column; gap: 14px; }
.service-img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(217,70,239,.14);
  padding: 16px;
  background: rgba(255,255,255,.6);
  display: block;
}

@media (max-width: 1024px) {
  .service-img { max-height: 260px; padding: 14px; }
}
@media (max-width: 768px) {
  .service-img { max-height: 200px; padding: 12px; }
}
@media (max-width: 480px) {
  .service-img { max-height: 160px; padding: 10px; }
}
.service-specs { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.service-specs li {
  color: var(--muted); font-size: .9rem; padding-left: 16px; position: relative;
}
.service-specs li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--purple); font-size: .74rem; top: 1px;
}

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: linear-gradient(135deg, rgba(217,70,239,.09), rgba(6,182,212,.09));
  border: 1px solid rgba(217,70,239,.16); color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   PANEL
   ══════════════════════════════════════════════════════════ */
.panel {
  padding: 36px 32px; border-radius: 22px;
  background: linear-gradient(148deg, rgba(255,255,255,.95), rgba(217,70,239,.06));
  border: 1px solid rgba(217,70,239,.18);
  box-shadow: 0 8px 36px rgba(0,0,0,.07); margin-bottom: 48px;
}


/* ══════════════════════════════════════════════════════════
   FORM
   ══════════════════════════════════════════════════════════ */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 11px;
  border: 1.5px solid rgba(217,70,239,.16);
  background: rgba(255,255,255,.85); color: var(--text); outline: none; transition: all .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(217,70,239,.5); background: #fff;
  box-shadow: 0 0 0 3px rgba(217,70,239,.1);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(26,46,53,.32); }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(26,46,53,.7) 50%),
    linear-gradient(135deg, rgba(26,46,53,.7) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; }
.note { color: var(--muted); font-size: .86rem; line-height: 1.72; }

/* ══════════════════════════════════════════════════════════
   LOGIN PANEL (demo-login.html)
   ══════════════════════════════════════════════════════════ */
.login-panel {
  max-width: 520px; margin: 0 auto 56px; padding: 36px 32px;
  border-radius: 22px; background: rgba(255,255,255,.82);
  border: 1px solid rgba(217,70,239,.18);
  box-shadow: 0 16px 56px rgba(0,0,0,.08); backdrop-filter: blur(22px);
}
.login-switcher {
  display: flex; gap: 8px; margin-bottom: 26px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(217,70,239,.14);
  border-radius: 13px; padding: 5px;
}
.login-tab {
  flex: 1; padding: 11px 14px; border: none; border-radius: 9px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .22s ease;
}
.login-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; box-shadow: 0 5px 16px rgba(217,70,239,.3);
}
.login-forms { display: grid; }
.login-form { display: none; }
.login-form.active { display: flex; flex-direction: column; gap: 16px; }

/* ══════════════════════════════════════════════════════════
   PARTNERS
   ══════════════════════════════════════════════════════════ */
.partners-section {
  padding: 72px 0 88px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(217,70,239,.04));
}
.partners-slider { overflow: hidden; margin: 40px 0; position: relative; }
.partners-slider::before, .partners-slider::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
}
.partners-slider::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.partners-slider::after  { right: 0; background: linear-gradient(to left, var(--bg2), transparent); }
.partners-track {
  display: flex; gap: 22px;
  animation: slide 36s linear infinite; width: max-content;
}
@keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.partner-item {
  flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; background: rgba(255,255,255,.85);
  border: 1px solid rgba(217,70,239,.14); border-radius: 15px;
  font-weight: 600; font-size: .92rem; color: var(--text);
  backdrop-filter: blur(10px); box-shadow: 0 3px 14px rgba(0,0,0,.05);
  transition: all .28s ease;
}
.partner-item:hover { transform: translateY(-3px); border-color: rgba(217,70,239,.35); }
.partner-item img {
  height: 34px; width: auto; object-fit: contain;
  filter: grayscale(80%); transition: filter .28s ease;
}
.partner-item:hover img { filter: grayscale(0%); }

/* ── Certifications ─────────────────────────────────────── */
.certifications { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.cert-item {
  padding: 26px 22px; background: rgba(255,255,255,.85);
  border: 1px solid rgba(6,182,212,.18); border-radius: 18px;
  text-align: center; backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: all .28s ease;
}
.cert-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(6,182,212,.14); }
.cert-icon { font-size: 2rem; margin-bottom: 11px; display: block; }
.cert-item h4 { font-family: 'Syne', sans-serif; font-size: .98rem; font-weight: 700; margin-bottom: 5px; }
.cert-item p  { color: var(--muted); font-size: .86rem; }

/* ══════════════════════════════════════════════════════════
   MISC ELEMENTS
   ══════════════════════════════════════════════════════════ */
.hero-stats { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 8px; }
.stat {
  padding: 13px 16px; border-radius: 15px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(217,70,239,.16);
  min-width: 126px; backdrop-filter: blur(8px);
}
.stat strong { display: block; font-family: 'Syne', sans-serif; font-size: 1.25rem; margin-bottom: 3px; }
.stat span   { color: var(--muted); font-size: .86rem; }

.hero-card {
  position: relative; padding: 22px; border-radius: 22px;
  background: linear-gradient(148deg, rgba(217,70,239,.07), rgba(6,182,212,.07));
  border: 1px solid rgba(217,70,239,.16); box-shadow: 0 8px 32px rgba(217,70,239,.1);
  overflow: hidden; backdrop-filter: blur(12px);
  justify-self: start; width: clamp(290px, 44%, 500px);
}
.hero-card::before {
  content: ''; position: absolute; inset: -40% -30%;
  background: radial-gradient(circle, rgba(34,211,238,.14), transparent 40%);
  animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow { 0%,100% { transform: translate3d(0,0,0) rotate(20deg); } 50% { transform: translate3d(0,-18px,0) rotate(20deg); } }
.card-panel {
  position: relative; z-index: 1; padding: 18px; border-radius: 16px;
  background: rgba(255,255,255,.8); border: 1px solid rgba(217,70,239,.16);
}
.pulse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 999px;
  background: rgba(16,185,129,.1); color: #059669; font-size: .86rem;
  margin-bottom: 13px; border: 1px solid rgba(16,185,129,.22);
}
.pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(16,185,129,.8); }
.fake-window {
  border-radius: 16px; background: rgba(217,70,239,.06);
  border: 1px solid rgba(217,70,239,.15); padding: 14px; display: grid; gap: 11px;
}
.fake-row { height: 13px; border-radius: 999px; background: linear-gradient(90deg, rgba(217,70,239,.55), rgba(6,182,212,.55)); }
.fake-row.small  { width: 60%; }
.fake-row.mid    { width: 80%; }
.fake-row.long   { width: 100%; }

.whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25D366, #1DA851);
  box-shadow: 0 10px 32px rgba(37,211,102,.35);
  color: #fff; font-size: 1.3rem; text-decoration: none; transition: transform .22s ease;
}
.whatsapp:hover { transform: scale(1.08) translateY(-2px); }

.footer { padding: 26px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.4); backdrop-filter: blur(12px); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted);
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.show { opacity: 1; transform: none; }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 280px; height: 280px;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.09), transparent 60%);
  transform: translate(-50%,-50%); z-index: 0;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.page-hero { min-height: 52vh; padding-bottom: 60px; }
.page-hero h1 { max-width: 800px; }
.page-hero p  { max-width: 660px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  body.home .hero-grid { grid-template-columns: 1fr; }
  body.home .panel.inquiry-panel { justify-self: start; }
  .certifications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .container { width: calc(100% - 32px); }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 14px; right: 14px;
    display: none; flex-direction: column; align-items: stretch;
    padding: 14px; border-radius: 16px;
    background: rgba(245,252,255,.97); border: 1px solid rgba(217,70,239,.18);
    box-shadow: 0 20px 56px rgba(0,0,0,.14); backdrop-filter: blur(22px);
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links .dropbtn { width: 100%; padding: 12px 14px; border-radius: 9px; text-align: left; }
  .nav-links .dropdown { width: 100%; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links .dropdown-content { position: static; top: auto; left: auto; min-width: auto; display: none; flex-direction: column; gap: 8px; padding: 8px 6px; border-radius: 10px; }
  .nav-links .dropdown.open .dropdown-content { display: flex; }
  #navAuthMount { width: 100%; margin-left: 0; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-grid,
  body.home .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  body:not(.home) .section-head { align-items: center; }
  .certifications { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 22px 20px; }
  .panel.inquiry-panel { width: 100%; justify-self: stretch; }
  .auth-dropdown-content { right: auto; min-width: auto; width: 100%; }
  .login-panel { padding: 22px 20px; }
  .gate-card { padding: 32px 24px 28px; }
  .split { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .whatsapp { right: 18px; bottom: 18px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .certifications { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
}

body:has(#admin-app) #gate-overlay { display: none !important; }

/* Admin nav highlight */
.nav-links a[href="admin.html"] {
  background: linear-gradient(135deg, rgba(217,70,239,.1), rgba(6,182,212,.07));
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(217,70,239,.18);
  border-radius: 9px;
}
