/* ROC Capital — Dark theme design system */
:root {
  --bg: #0a0e14;
  --bg-elevated: #141a24;
  --surface: #1a2230;
  --surface-hover: #222c3d;
  --border: rgba(3, 127, 213, 0.22);
  --text: #e8ecf1;
  --text-muted: #9aa4b2;
  --primary: #037fd5;
  --primary-dark: #0264aa;
  --primary-glow: rgba(3, 127, 213, 0.35);
  --accent-orange: #e67e22;
  --accent-purple: #8e44ad;
  --accent-aqua: #1abc9c;
  --danger: #e74c3c;
  --success: #2ecc71;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --nav-height: 72px;
  --container: min(1200px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; margin: 0; padding: 0; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.auth-page {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: #4da3e8; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
.container { width: var(--container); margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 42rem; }
.muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 28px var(--primary-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 36px var(--primary-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-chip {
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.btn-chip:hover { border-color: var(--primary); color: var(--primary); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}
.form-alert.is-error { display: block; background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35); color: #ffb4ab; }
.form-alert.is-success { display: block; background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.35); color: #9be7b8; }
.form-alert.is-hidden { display: none; }
.password-wrap { position: relative; }
.password-toggle {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem;
}
.auth-links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }

/* Auth layout — cinematic gate background (CSS, no stretch) */
.auth-bg-gate {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #05080c;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.auth-bg-gate__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 10, 16, 0.02) 0%,
    rgba(6, 10, 16, 0.08) 38%,
    rgba(6, 10, 16, 0.45) 62%,
    rgba(6, 10, 16, 0.78) 82%,
    rgba(6, 10, 16, 0.88) 100%
  );
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.auth-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  background: transparent;
}
.auth-visual__copy {
  padding: clamp(1.5rem, 4vw, 3rem);
}
.auth-visual__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 16ch;
}
.auth-visual__copy p { color: var(--text-muted); }
.auth-brand img { width: 120px; filter: brightness(0) invert(1); margin-bottom: 2rem; }

.auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  min-height: 100vh;
  background: transparent;
}
.auth-card {
  width: min(420px, 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: rgba(20, 26, 36, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: cardUp 0.45s ease;
}
@keyframes cardUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-card h1 { font-size: clamp(1.75rem, 4vw, 2.2rem); }
.auth-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-height); gap: 1rem;
}
.brand-logo { width: 52px; filter: brightness(0) invert(1); }

/* Horizontal lockup — mark + ROC / CAPITAL (mockup layout) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.brand-lockup__mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 0.1rem;
}
.brand-lockup__roc {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.brand-lockup--nav .brand-lockup__roc { color: var(--primary); }
.brand-lockup__capital {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.brand-lockup--auth {
  gap: 0.85rem;
}
.brand-lockup--auth .brand-lockup__roc { font-size: 1.35rem; }
.brand-lockup--auth .brand-lockup__capital { font-size: 0.7rem; }
.brand-lockup--footer .brand-lockup__roc { font-size: 1rem; }
.brand-lockup--footer .brand-lockup__capital { font-size: 0.58rem; }
.brand--gate { text-decoration: none; color: inherit; }
.nav-menu {
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-menu a {
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
  font-family: var(--font-display);
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--text); }
.nav-admin { color: var(--primary) !important; }
.nav-user { display: flex; align-items: center; gap: 0.65rem; margin-left: 0.5rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-aqua));
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #fff;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* Member sections */
.member-main { overflow-x: hidden; }
.home-gate { background: #05080c; }
.hero {
  position: relative; min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; padding: 4rem 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(3,127,213,0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(26,188,156,0.1), transparent 40%),
    var(--bg);
}
.hero__particles {
  position: absolute; inset: 0; opacity: 0.35;
  background-image: radial-gradient(circle, rgba(3,127,213,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 48px 48px; } }
.hero__content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--primary); }
.hero__meta { color: var(--text-muted); margin-bottom: 1.75rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.section-block { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.card, .surface-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.pillar-card {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pillar-card--invest::before { background: linear-gradient(90deg, var(--accent-orange), #f39c12); }
.pillar-card--phil::before { background: linear-gradient(90deg, var(--accent-purple), #9b59b6); }
.pillar-card--shef::before { background: linear-gradient(90deg, var(--accent-aqua), #48c9b0); }
.pillar-card h3 { font-size: 1.25rem; }
.pillar-card p { color: var(--text-muted); font-size: 0.95rem; }

.bento-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.bento-card {
  position: relative; min-height: 280px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.bento-card__overlay {
  position: relative; z-index: 1; padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.bento-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.bento-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.phil-band {
  padding: 3rem 0;
  background: linear-gradient(90deg, rgba(142,68,173,0.15), rgba(3,127,213,0.1));
  border-block: 1px solid rgba(255,255,255,0.06);
}
.phil-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; justify-content: space-between;
}
.phil-stat { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--primary); }
.phil-band img { max-width: 280px; opacity: 0.9; }

.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.about-split img { border-radius: var(--radius); }

.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem;
}
.contact-card h4 { margin-bottom: 0.5rem; }

/* Page hero (detail pages) */
.page-hero {
  position: relative; min-height: 50vh; display: flex; align-items: flex-end;
  padding: 4rem 0 2rem; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.page-hero__mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.3), rgba(10,14,20,0.92));
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.content-section { padding: 3rem 0; }
.content-section .prose { max-width: 70ch; color: var(--text-muted); }
.content-section .prose h2 { color: var(--text); margin-top: 2rem; }
.content-section .prose h3 { color: var(--text); margin-top: 1.5rem; }
.content-section .prose ul { padding-left: 1.25rem; }
.content-section .prose li { margin-bottom: 0.5rem; }
.content-section .prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Gallery list */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.gallery-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-elevated);
}
.gallery-card__media { aspect-ratio: 1; overflow: hidden; }
.gallery-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-card:hover .gallery-card__media img { transform: scale(1.04); }
.gallery-card__body { padding: 1.25rem; }

/* Admin */
.admin-main .data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-main .data-table th,
.admin-main .data-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-main .data-table th { color: var(--text-muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.inline-form { display: inline; }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #070a0f;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer-logo { width: 120px; height: auto; margin-bottom: 1rem; }
.site-footer h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: auto; justify-content: center; }
  .auth-visual__copy { text-align: center; }
  .auth-brand img { margin-left: auto; margin-right: auto; }
  .auth-panel { min-height: auto; padding-top: 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-height) 0 auto 0;
    background: rgba(10,14,20,0.98);
    flex-direction: column; align-items: stretch;
    padding: 1.5rem; gap: 0;
    transform: translateY(-120%); transition: transform 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-user { margin-left: 0; padding-top: 1rem; justify-content: space-between; }
  .bento-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__particles { animation: none; }
  .auth-card { animation: none; }
  .nav-menu { transition: none; }
}

/* ==========================================================================
   Cinematic Gate — login mockup
   ========================================================================== */
.auth-shell--gate {
  position: relative;
  min-height: 100vh;
  display: block;
}
.auth-shell--gate .auth-scenic {
  display: none;
}
.auth-shell--gate .auth-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 33.333vw;
  min-width: 380px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vh, 3rem) clamp(1.75rem, 3vw, 2.75rem);
  z-index: 3;
  box-sizing: border-box;
}
.auth-top-brand {
  position: fixed;
  top: clamp(1.5rem, 3.5vw, 2.5rem);
  left: clamp(1.5rem, 3.5vw, 2.75rem);
  z-index: 10;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  min-height: 96px;
  min-width: 260px;
  padding: 4px 10px 12px 0;
  box-sizing: border-box;
  line-height: 0;
}
.auth-top-brand:hover { color: var(--text); }
.brand-login-lockup {
  display: block;
  width: auto;
  max-width: min(300px, 44vw);
  height: auto;
  max-height: none;
  object-fit: contain;
}
.brand-login-lockup--nav {
  max-width: none;
  max-height: 52px;
  width: auto;
}
.site-nav--gate .brand--gate {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-login-lockup--footer {
  max-width: 240px;
  max-height: 52px;
  margin-bottom: 1rem;
}
.auth-taglines {
  position: fixed;
  left: clamp(1.25rem, 3vw, 2.75rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  z-index: 5;
  pointer-events: none;
  max-width: min(480px, 90vw);
}

.auth-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.65rem;
  max-width: 22ch;
}
.auth-tagline-rule {
  width: min(280px, 60%);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin: 0 0 0.65rem;
}
.auth-tagline-sub {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  max-width: 28ch;
}
.auth-title-dot { color: var(--primary); }

.auth-card--gate {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: min(86vh, 840px);
  padding: clamp(2.5rem, 5vh, 3.25rem) clamp(2.25rem, 3.5vw, 3rem) clamp(2rem, 4vh, 2.75rem);
  border-radius: 20px;
  background: rgba(8, 14, 24, 0.58);
  border: 1px solid rgba(3, 127, 213, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(3, 127, 213, 0.1),
    0 32px 100px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.auth-card--gate .auth-form-gate {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auth-card--gate .auth-links--split {
  margin-top: auto;
  padding-top: 1.75rem;
}
.auth-card--gate h1 {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.auth-card--gate .auth-sub {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}
.auth-form-gate .form-group { margin-bottom: 1.15rem; }
.auth-form-gate .form-control {
  min-height: 50px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.92rem;
}
.auth-form-gate .form-control::placeholder { color: rgba(255, 255, 255, 0.35); }
.auth-form-gate .form-control:focus {
  border-color: rgba(3, 127, 213, 0.55);
  box-shadow: 0 0 0 3px rgba(3, 127, 213, 0.15);
}
.password-toggle--eye {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0.25rem;
  display: grid;
  place-items: center;
  z-index: 2;
}
.password-toggle--eye:hover { color: rgba(255, 255, 255, 0.75); }
.auth-card--gate .eyebrow { display: none; }
.auth-card__icon {
  width: 52px; height: 52px; margin-bottom: 1.25rem;
  color: var(--primary);
  opacity: 0.9;
}
.auth-card__icon svg { width: 100%; height: 100%; }

.form-label--caps {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.75rem; padding-right: 2.75rem; }
.input-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.input-icon-wrap .password-toggle { right: 0.75rem; z-index: 2; }

.btn-signin {
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.65rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #0a8fd9 0%, #0370c0 50%, #025aa8 100%);
  box-shadow: 0 10px 36px rgba(3, 127, 213, 0.45);
}
.auth-club-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-club-divider::before,
.auth-club-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.12);
}
.auth-links--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  font-size: 0.88rem;
}
.auth-links--split a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.72);
}
.auth-links--split a:hover { color: var(--primary); }
.auth-links--split .auth-links__sep {
  color: rgba(255, 255, 255, 0.2);
  padding: 0 1rem;
  user-select: none;
}

/* ==========================================================================
   Ethical Future — home mockup
   ========================================================================== */
.site-nav--gate {
  background: rgba(8, 12, 18, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-menu--gate {
  gap: 1.75rem;
}
.nav-menu--gate a {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.nav-signout {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hero--gate {
  position: relative;
  min-height: clamp(520px, 72vh, 780px);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}
.hero--gate .hero__bg {
  position: absolute;
  inset: 0;
  background-color: #05080c;
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
}
.hero--gate .hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #05080c 0%, rgba(5, 8, 12, 0.92) 42%, rgba(5, 8, 12, 0.35) 72%, transparent 100%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.35) 0%, transparent 28%, transparent 72%, #05080c 100%);
  pointer-events: none;
}
.home-gate .hero--gate .hero__bg {
  background-image: var(--home-hero-bg);
}
.hero--gate .hero__particles { display: none; }
.hero--gate .hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 720px;
}
.hero--gate h1 {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  max-width: 16ch;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero--gate h1 span { color: var(--primary); }
.hero--gate .hero__meta {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--text-muted);
}
.hero--gate .hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-chip-gate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid;
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-chip-gate--invest { border-color: rgba(230,126,34,0.6); box-shadow: 0 0 20px rgba(230,126,34,0.15); }
.btn-chip-gate--phil { border-color: rgba(142,68,173,0.6); box-shadow: 0 0 20px rgba(142,68,173,0.15); }
.btn-chip-gate--shef { border-color: rgba(26,188,156,0.6); box-shadow: 0 0 20px rgba(26,188,156,0.15); }
.btn-chip-gate:hover { color: #fff; }
.btn-chip-gate__icon { font-size: 0.85rem; opacity: 0.9; }

.section-block--tight { padding-top: 0; }

.pillar-grid--gate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar-card-gate {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 16px;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  overflow: hidden;
}
.pillar-card-gate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.pillar-card-gate--invest::before { background: linear-gradient(90deg, #e67e22, transparent); }
.pillar-card-gate--phil::before { background: linear-gradient(90deg, #9b59b6, transparent); }
.pillar-card-gate--shef::before { background: linear-gradient(90deg, #1abc9c, transparent); }
.pillar-card-gate--invest { border-color: rgba(230,126,34,0.28); box-shadow: 0 0 48px rgba(230,126,34,0.1); }
.pillar-card-gate--phil { border-color: rgba(155,89,182,0.28); box-shadow: 0 0 48px rgba(155,89,182,0.1); }
.pillar-card-gate--shef { border-color: rgba(26,188,156,0.28); box-shadow: 0 0 48px rgba(26,188,156,0.1); }
.pillar-card-gate:hover { transform: translateY(-2px); }
.pillar-card-gate__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.15rem; margin-bottom: 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.pillar-card-gate h3 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.pillar-card-gate p { color: var(--text-muted); font-size: 0.9rem; flex: 1; line-height: 1.55; }
.pillar-card-gate a {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.7;
}

.home-split-gate {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.bento-grid--gate {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.section-head--gate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-head--gate::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-head--gate--invest::before { background: #e67e22; }
.section-head--gate--phil::before { background: #9b59b6; }
.section-head--gate h2 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.bento-card-gate {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 210px;
  display: block;
  background: var(--bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bento-card-gate::after {
  content: '↗';
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  font-size: 0.85rem;
  opacity: 0.65;
}
.bento-card-gate:hover {
  border-color: rgba(3, 127, 213, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.bento-card-gate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45;
}
.bento-card-gate__body {
  position: relative; z-index: 1; padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-card-gate__label {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); font-weight: 700;
}
.bento-card-gate h3 { font-size: 1.05rem; margin: 0.25rem 0; }
.bento-card-gate p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.phil-feature-gate { position: sticky; top: calc(var(--nav-height) + 1rem); }
.phil-feature-gate .section-head--gate { margin-bottom: 1rem; }
.phil-feature-gate__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a0dc;
  margin-bottom: 0.75rem;
}
.phil-feature-gate__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 28ch;
}
.phil-feature-gate__cta {
  align-self: flex-start;
  border-color: rgba(155,89,182,0.45) !important;
  color: #d4b8e8 !important;
}
.section-block--compact { padding-top: 2rem; }
.phil-feature-gate__visual {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(142,68,173,0.35);
  box-shadow: 0 0 50px rgba(142,68,173,0.12);
  min-height: 420px;
}
.phil-feature-gate__visual img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
}
.phil-feature-gate__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(20,10,40,0.88));
  padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.eyebrow--light { color: rgba(255,255,255,0.7); }
.phil-feature-gate__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1rem;
}
.phil-feature-gate__stat {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #b57edc;
  text-shadow: 0 0 30px rgba(181,126,220,0.5);
  margin-bottom: 1rem;
}
.phil-feature-gate__stat span { display: block; font-size: 0.45em; color: var(--text-muted); letter-spacing: 0.1em; }

/* Account settings */
.account-main .section-head { max-width: 640px; margin-bottom: 2rem; }
.account-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.account-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.account-panel__intro {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}
.account-form .form-control:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .account-panels { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  body.auth-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }
  .auth-mobile-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .auth-top-brand {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: auto;
    min-width: 0;
    padding: clamp(1.25rem, 4vw, 1.75rem) 1rem 0.5rem;
    box-sizing: border-box;
  }
  .brand-login-lockup {
    margin: 0 auto;
    max-width: min(260px, 72vw);
  }
  .auth-shell--gate {
    padding-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .auth-shell--gate .auth-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 1rem;
  }
  .auth-card--gate {
    min-height: auto;
    max-width: 520px;
    margin: 0 auto;
  }
  .auth-taglines {
    position: relative;
    left: auto;
    bottom: auto;
    flex-shrink: 0;
    padding: 0.5rem clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 2.5rem);
    text-align: center;
    max-width: none;
  }
  .auth-tagline, .auth-tagline-sub { margin-left: auto; margin-right: auto; }
  .auth-tagline-rule { margin-left: auto; margin-right: auto; }
  .pillar-grid--gate { grid-template-columns: 1fr; }
  .home-split-gate { grid-template-columns: 1fr; }
  .phil-feature-gate { position: static; }
}
@media (max-width: 768px) {
  .bento-grid--gate { grid-template-columns: 1fr; }
  .auth-links--split { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .auth-links--split .auth-links__sep { display: none; }
  .nav-menu--gate .nav-signout { margin-top: 0.5rem; }
}
