/* ============================================================
   MilitarySci VERSION-C — pages.css
   hero mesh · feed-first home · snap-scroll exhibitions
   community composer & quote posts · profile headers · auth
   ============================================================ */

/* ================= HOME HERO — welcome band w/ gradient mesh ================= */
.hero-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(58% 90% at 12% 0%, var(--mesh-1) 0%, transparent 60%),
    radial-gradient(50% 80% at 88% 10%, var(--mesh-2) 0%, transparent 55%),
    radial-gradient(45% 90% at 55% 100%, var(--mesh-3) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-1);
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-band h1 { font-size: clamp(24px, 3.4vw, 34px); max-width: 620px; }
.hero-band .hero-sub { font-size: 14.5px; color: var(--text-2); max-width: 640px; }
.hero-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px;
  height: 54px;
  background: var(--bg-raised);
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--r-pill);
  padding-inline: 22px;
  box-shadow: var(--sh-1);
  color: var(--text-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-search:hover, .hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.hero-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 15px; color: var(--text); min-width: 0;
}
.hero-search .btn { height: 40px; flex: none; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 4px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

/* ================= LEFT RAIL — profile mini-card ================= */
.me-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.me-card-strip { height: 52px; background: linear-gradient(120deg, var(--brand) -20%, var(--d-pe) 120%); }
.me-card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 14px; margin-top: -24px; align-items: flex-start; }
.me-card-body b { font-size: 14.5px; margin-top: 4px; }
.me-card-body i { font-size: 11.5px; color: var(--text-3); }
.me-card-body .me-plan { margin-top: 8px; }
.guest-card {
  background: var(--brand-softer);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.guest-card b { font-size: 14px; }
.guest-card p { font-size: 12.5px; color: var(--text-2); }
.quicklinks { display: flex; flex-direction: column; gap: 2px; }
.quicklink {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
}
.quicklink:hover { background: var(--surface-3); color: var(--text); }
.quicklink .i { color: var(--text-3); }
.quicklink:hover .i { color: var(--brand); }
.quicklink .ql-n { margin-inline-start: auto; font-size: 11px; color: var(--text-3); font-family: var(--mono); }

/* ================= RIGHT RAIL ================= */
.trend-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.trend-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 12px; font-weight: 650;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.trend-pill:hover { transform: translateY(-1px); }
.trend-pill b { font-weight: 700; }
.trend-pill .tp-n { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }

/* who to follow */
.wtf-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--hairline); }
.wtf-row:last-child { border-bottom: 0; }
.wtf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wtf-main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wtf-main i { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* upcoming strip (right rail) */
.upstrip { display: flex; flex-direction: column; gap: 10px; }
.up-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 13px;
  background: var(--surface-2);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.up-card:hover { transform: translateY(-1px); box-shadow: var(--sh-1); border-color: var(--hairline-strong); }
.up-card b { font-size: 13px; }
.up-card .up-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }

/* ================= SNAP-SCROLL FEATURED ================= */
.snap-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 340px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.snap-card { scroll-snap-align: start; }
.ex-float {
  display: inline-flex; align-items: center; gap: 7px;
  height: 27px;
  padding-inline: 11px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--d-ex) 14%, #fff);
  color: var(--d-ex);
  font-size: 11.5px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .ex-float { background: color-mix(in srgb, var(--d-ex) 20%, var(--surface-3)); }

/* ================= EQUIPMENT DETAIL ================= */
.eq-hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-1);
}
.eq-hero-cover { position: relative; aspect-ratio: 21 / 7; }
.eq-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.eq-hero-body {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 22px 20px;
}
.eq-hero-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eq-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* spec rows */
.spec-table { min-width: 0; }
.spec-locked {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--warn); font-size: 12px; font-weight: 700;
  background: var(--warn-soft);
  border-radius: var(--r-pill);
  padding: 4px 11px;
}
.spec-src { font-size: 10.5px; color: var(--text-3); }
.spec-src-cell { white-space: nowrap; }
.spec-unit { font-size: 11px; color: var(--text-3); font-style: normal; }
.spec-grid-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.spec-grid-mini .spec-mini { display: flex; flex-direction: column; gap: 7px; min-width: 0; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 14px; }
.spec-grid-mini .spec-label { font-size: 11px; line-height: 1.5; color: var(--text-3); font-weight: 700; }
.spec-grid-mini .spec-value { font-size: 14.5px; line-height: 1.65; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.spec-group { margin-block: 14px; }
.spec-group-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: start; vertical-align: top; }
.spec-table th { width: 38%; color: var(--text-2); font-size: 12px; font-weight: 700; }
.spec-table td { color: var(--text); font-size: 13px; overflow-wrap: anywhere; }

/* ================= COMMUNITY ================= */
.composer {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.composer-ph {
  flex: 1;
  height: 40px;
  display: flex; align-items: center;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding-inline: 16px;
  font-size: 13.5px;
  color: var(--text-3);
}
.composer-mini { display: flex; align-items: center; gap: 12px; }
.composer-full { display: flex; flex-direction: column; gap: 12px; }
.composer-full textarea { min-height: 110px; }
.composer-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.composer-tools .spacer { flex: 1; }

/* post card */
.post-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 11px;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.post-card:hover { transform: translateY(-2px) scale(1.003); box-shadow: var(--sh-2); }
.post-card.is-locked { background: var(--surface-2); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-author { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border-radius: 8px; }
.post-author-name { display: flex; flex-direction: column; min-width: 0; }
.post-author-name b { font-size: 13.5px; display: flex; align-items: center; gap: 5px; }
.post-author-name small { font-size: 11.5px; color: var(--text-3); }
.post-type { flex: none; }
.post-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; border-radius: 6px; }
.post-title:hover { color: var(--brand); }
.post-title h3 { font-size: inherit; margin: 0; }
.post-excerpt { font-size: 13.5px; color: var(--text-2); }
.post-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-act {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px;
  padding-inline: 11px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 650;
  color: var(--text-3);
  transition: background var(--t-fast), color var(--t-fast);
}
.post-act:hover { background: var(--surface-3); color: var(--text); }
.post-related { margin-top: 2px; }

/* quote repost block */
.quote-block {
  border: 1px solid var(--hairline);
  border-inline-start: 4px solid var(--brand);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
[dir="ltr"] .quote-block { border-radius: 0 var(--r-md) var(--r-md) 0; }
.quote-block .qb-src { font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: .05em; text-transform: uppercase; }
.quote-block b { font-size: 13.5px; }
.quote-block p { font-size: 12.5px; color: var(--text-2); }

/* media */
.post-media { display: flex; flex-direction: column; gap: 6px; }
.post-media img { border-radius: var(--r-md); width: 100%; }
.post-media figcaption { font-size: 11.5px; color: var(--text-3); }
.post-gallery { display: grid; gap: 6px; border-radius: var(--r-md); overflow: hidden; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery-4 { grid-template-columns: 1fr 1fr; }
.post-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-cap { font-size: 11.5px; color: var(--text-3); }
.post-link {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13px; color: var(--brand);
  font-weight: 600;
}
.post-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* post full */
.post-full {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.post-full-head { display: flex; flex-direction: column; gap: 12px; }
.post-full-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-full-byline .post-full-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-full-body { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.lede { font-size: 16px; font-weight: 550; color: var(--text); line-height: 1.65; }
.body-p { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.post-engagement-bar {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.comments { display: flex; flex-direction: column; gap: 14px; }
.comment { display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 13px 15px; }
.comment-head { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.comment-body { font-size: 13.5px; color: var(--text-2); }
.comment-foot { display: flex; align-items: center; gap: 8px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.related-company { display: flex; align-items: center; gap: 14px; }
.related-company > div { min-width: 0; flex: 1; }

/* ================= EXHIBITIONS ================= */
.ex-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ex-logo-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 14px 15px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.ex-logo-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.ex-logo-main { flex: 1; min-width: 0; }
.ex-logo-main b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-logo-main i { font-size: 11px; color: var(--text-3); }
.ex-booth {
  flex: none;
  font-size: 10.5px; font-weight: 800;
  font-family: var(--mono);
  background: var(--d-ex-soft);
  color: var(--d-ex);
  border-radius: 8px;
  padding: 5px 8px;
}

/* day agenda chips */
.day-group { display: flex; flex-direction: column; gap: 10px; }
.day-chip {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  height: 30px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  background: var(--d-ex-soft);
  color: var(--d-ex);
  font-size: 12px; font-weight: 800;
}

/* ================= PROFILE HEADERS (person/member) ================= */
.profile-hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-1);
  padding: 40px 10px 0 0;

}
.profile-hero-cover { height: 120px; background: linear-gradient(120deg, var(--ph1, var(--brand)) -10%, var(--ph2, var(--d-pe)) 110%); }
.profile-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-row {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 0 24px 20px;
  margin-top: -34px;
  flex-wrap: wrap;
}
.profile-hero-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.profile-hero-id h1 { font-size: 25px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.profile-hero-id .ph-sub { font-size: 14px; color: var(--text-2); }
.profile-hero-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; flex-wrap: wrap; }
.profile-ava-ring {
  border-radius: var(--r-pill);
  padding: 3.5px;
  background: var(--surface);
  box-shadow: var(--sh-2);
  width: fit-content;
}

/* ================= AUTH — split card ================= */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-2);
  background: var(--surface);
  min-height: 480px;
}
.auth-side {
  position: relative;
  background:
    radial-gradient(70% 90% at 20% 10%, var(--mesh-1) 0%, transparent 60%),
    radial-gradient(60% 80% at 90% 90%, var(--mesh-2) 0%, transparent 55%),
    var(--brand-softer);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.auth-side h2 { font-size: 21px; letter-spacing: -.02em; }
.auth-side p { font-size: 13px; color: var(--text-2); max-width: 300px; }
.auth-side ul { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.auth-side li { display: flex; gap: 9px; font-size: 12.5px; color: var(--text-2); align-items: flex-start; }
.auth-side li .i { color: var(--brand); flex: none; margin-top: 2px; }
.auth-form-col { padding: 34px 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-form-col .auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-alt { display: flex; flex-direction: column; gap: 10px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.auth-foot a { color: var(--brand); font-weight: 650; }
.totp-inputs { display: flex; gap: 9px; direction: ltr; justify-content: center; }
.totp-digit { width: 46px !important; text-align: center; font-size: 20px; font-weight: 800; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 24px; }
}

/* ================= DISCOVER BENTO ================= */
.discover-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dtile {
  display: flex; flex-direction: column; gap: 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--sh-1);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.dtile:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--sh-2); }
.dtile.wide { grid-column: span 2; }
.dtile-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--dom-soft, var(--brand-soft));
  color: var(--dom, var(--brand));
  margin-bottom: 4px;
}
.dtile b { font-size: 15.5px; letter-spacing: -.01em; }
.dtile p { font-size: 12.5px; color: var(--text-2); }
.dtile .tile-go {
  position: absolute;
  top: 18px; inset-inline-end: 18px;
  color: var(--text-3);
  transition: transform var(--t-fast), color var(--t-fast);
}
.dtile:hover .tile-go { color: var(--dom, var(--brand)); transform: translateX(calc(var(--dir, 1) * 3px)); }
[dir="rtl"] .dtile:hover .tile-go { --dir: -1; }
@media (max-width: 900px) { .discover-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .discover-bento { grid-template-columns: 1fr; } .dtile.wide { grid-column: span 1; } }

/* ================= MISC ================= */
.gate-list .mini-row b { flex: 1; }
.vm-band {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 14px 20px;
  flex-wrap: wrap;
}
.nf-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 0 6px; }
.nf-code {
  font-size: 64px; font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--brand), var(--d-pe));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.cap-rows { display: flex; flex-direction: column; gap: 12px; }
.cap-row { display: flex; align-items: center; gap: 12px; }
.cap-label { width: 160px; flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cap-bar { flex: 1; height: 10px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.cap-bar i {
  display: block; height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--d-co), color-mix(in srgb, var(--d-co) 55%, var(--brand)));
  transition: width var(--t-slow);
}
.cap-row .mono { flex: none; font-size: 11px; color: var(--text-3); }
.barsvg { width: 100%; max-width: 220px; height: auto; }

.swiper-button-next,
.swiper-button-prev {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: var(--t-fast);
  box-shadow: var(--sh-1);
  margin-top: 0;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.9rem !important;
  font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--surface-2);
  border-color: var(--hairline-strong);
  color: var(--brand);
  box-shadow: var(--sh-2);
}

.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}