:root {
  --ink: #111214;
  --muted: #6d7280;
  --line: #e8e5df;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-2: #d97706;
  --danger: #b42318;
  --ok: #157347;
  --shadow: 0 24px 70px rgba(17, 18, 20, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 229, 223, .8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: .02em;
}
.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: #2b2d31; font-weight: 650; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.full { width: 100%; margin-top: 10px; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  align-items: center;
  gap: 42px;
  padding: clamp(42px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(15, 118, 110, .12), transparent 42%),
    linear-gradient(25deg, rgba(217, 119, 6, .12), transparent 36%),
    var(--paper);
}
.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .98;
  letter-spacing: 0;
}
.hero p { max-width: 680px; color: #3e424a; font-size: 19px; }
.hero-actions, .actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-weight: 850; font-size: 13px; letter-spacing: .08em; }
.hero-panel { display: grid; place-items: center; }
.mini-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 390px);
  aspect-ratio: 1.58;
  padding: 28px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #111214, #26413f 55%, #a05d10);
  box-shadow: var(--shadow);
}
.mini-card strong { display: block; margin-top: 50px; font-size: 28px; }
.mini-card span { color: #c9f5e9; }
.card-shine { position: absolute; inset: -30% 20% auto auto; width: 220px; height: 220px; background: rgba(255,255,255,.18); border-radius: 50%; filter: blur(24px); }

.section { padding: 70px clamp(18px, 5vw, 72px); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; }
.feature-grid, .photographer-grid, .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article, .profile-card, .content-panel, .side-panel, .form-card, .verify-card, .stats article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(17,18,20,.05);
}

.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 42px 18px; }
.auth-wrap.wide .form-card { max-width: 760px; }
.form-card { width: min(100%, 480px); }
label { display: grid; gap: 8px; margin: 14px 0; font-weight: 720; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d8d3ca;
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
  font: inherit;
}
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.check input { width: auto; }
.muted { color: var(--muted); }
.notice, .flash { padding: 14px 18px; border-radius: 8px; }
.flash { margin: 16px clamp(18px, 5vw, 72px) 0; background: #eef7f4; border: 1px solid #cce7df; }
.flash.error { background: #fff0ee; border-color: #ffd1ca; }

.dashboard, .verify-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  padding: 42px clamp(18px, 5vw, 72px);
}
.side-panel { align-self: start; position: sticky; top: 96px; }
.avatar-preview { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; margin: 12px 0; }
.avatar-large { width: 190px; height: 190px; object-fit: cover; border-radius: 12px; }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eceff3;
  color: #343840;
  font-weight: 850;
  font-size: 13px;
  text-transform: uppercase;
}
.status.valid, .status.approved, .status.active { background: #e6f6ed; color: var(--ok); }
.status.suspended, .status.pending { background: #fff6df; color: #9a5b00; }
.status.expired, .status.rejected, .status.banned { background: #ffeceb; color: var(--danger); }

.upload-line { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.portfolio-grid img, .photo-tile img, .profile-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.photo-tile { position: relative; }
.photo-tile form { position: absolute; right: 10px; bottom: 10px; }
.photo-tile button { border: 0; border-radius: 8px; padding: 8px 10px; background: rgba(17,18,20,.85); color: #fff; }

.card-page { padding: 60px clamp(18px, 5vw, 72px); }
.member-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  width: min(100%, 820px);
  min-height: 320px;
  padding: 34px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #111214, #1e5651 58%, #b86f17);
  box-shadow: var(--shadow);
}
.card-id-photo {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
}
.member-card h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1; margin: 18px 0; }
.qr-block { display: grid; align-content: center; gap: 10px; text-align: center; }
.qr-block img, .qr-small { padding: 10px; background: #fff; border-radius: 8px; }
.public-profile { display: flex; justify-content: space-between; gap: 30px; padding: 70px clamp(18px, 5vw, 72px) 20px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f2efe9; }
.admin-inline { display: grid; gap: 8px; min-width: 220px; }
.warning { padding: 14px; border-radius: 8px; background: #fff6df; color: #7a4800; }
.stats article strong { display: block; font-size: 42px; }

.site-footer { padding: 34px clamp(18px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .hero, .dashboard, .verify-layout { grid-template-columns: 1fr; }
  .feature-grid, .photographer-grid, .stats, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-panel { position: static; }
  .upload-line { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .hero { min-height: auto; }
  .feature-grid, .photographer-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .member-card { grid-template-columns: 1fr; border-radius: 12px; padding: 24px; }
  .public-profile { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .actions-row { display: none; }
  body { background: #fff; }
  .member-card { box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
