/* ========================================
   Grains Social — Darkroom Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Warm blacks */
  --bg:       #0E0C0A;
  --bg-2:     #141210;
  --bg-3:     #1A1714;
  --bg-card:  #17140F;

  /* Gold accent */
  --gold:     #D4A843;
  --gold-2:   #E8BC5A;
  --gold-dim: rgba(212,168,67,0.55);

  /* Text */
  --text:     #EDE6D9;
  --text-2:   rgba(237,230,217,0.72);
  --muted:    rgba(237,230,217,0.55);
  --muted-2:  rgba(237,230,217,0.35);

  /* Semantic */
  --ok:       #8FB287;
  --err:      #C2584A;

  /* Lines */
  --line:     rgba(212,168,67,0.14);
  --line-2:   rgba(237,230,217,0.10);

  /* Type */
  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Backward-compat aliases (used by existing JS pages) */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-2);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --text-muted: var(--muted);
  --border: var(--line);
  --accent-warm: var(--gold);
  --accent: var(--gold);

  /* Layout */
  --sidebar-width: 240px;
  --bottom-bar-height: 60px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

/* --- Typography --- */
.serif { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.02em; }
.mono  { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* --- Film Grain Overlay --- */
.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.06  0 0 0 0.45 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; font-family: var(--f-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--line); background: transparent;
  color: var(--text); text-decoration: none; transition: all 0.15s;
}
.btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--gold-2); color: var(--bg); border-color: var(--gold-2); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); border: none; padding: 8px 12px; }
.btn-ghost:hover:not(:disabled) { color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 10px; }
.btn-block { width: 100%; justify-content: center; }

/* --- Cards --- */
.card { background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.15s; }
.card:hover { border-color: var(--gold-dim); }
.card-body { padding: 20px; }

/* Corner brackets */
.bracket-tl, .bracket-tr, .bracket-bl, .bracket-br { position: absolute; width: 12px; height: 12px; border-color: var(--gold); }
.bracket-tl { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.bracket-tr { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.bracket-bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.bracket-br { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }

/* --- Forms --- */
.input, .text-input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color 0.15s;
}
.input:focus, .text-input:focus { border-color: var(--gold-dim); }
.input::placeholder, .text-input::placeholder { color: var(--muted-2); }
textarea.input, textarea.text-input { resize: vertical; min-height: 80px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; color: var(--text-2); font-weight: 500; }
.form-error { font-size: 0.8rem; color: var(--err); }

.field-lbl { font-family: var(--f-mono); color: var(--muted); font-size: 10px !important; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin: 18px 0 6px; }
.field-lbl:first-child { margin-top: 0; }

/* --- Avatar --- */
.avatar {
  border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); color: var(--text-2);
  font-weight: 600; border: 1px solid var(--line);
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.5rem; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* ============ APP SHELL ============ */
#app { min-height: 100vh; }
.app-layout { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-width);
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 100; overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 24px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.28em; color: var(--gold);
}
.sidebar-logo svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

.sidebar-new-post {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 16px 20px; padding: 12px;
  background: var(--gold); color: var(--bg);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: background 0.15s;
}
.sidebar-new-post:hover { background: var(--gold-2); }

.sidebar-nav { flex: 1; padding: 0 8px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; color: var(--muted);
  font-size: 13px; text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.sidebar-nav a:hover { color: var(--text); background: rgba(212,168,67,0.04); }
.sidebar-nav a.active {
  color: var(--gold); border-left-color: var(--gold);
  background: rgba(212,168,67,0.06);
}
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-wallet-chip {
  margin: 20px 16px; padding: 16px;
  border: 1px solid var(--line); background: var(--bg-3);
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; border-top: 1px solid var(--line);
}
.sidebar-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sidebar-user-name {
  font-size: 13px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: none; background: none;
  color: var(--muted); font-size: 0.85rem; cursor: pointer;
  width: 100%; text-align: left; font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
}
.sidebar-logout:hover { color: var(--text); background: rgba(212,168,67,0.04); }
.sidebar-logout svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Main Content --- */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 24px 24px 24px 40px;
  width: calc(100% - var(--sidebar-width));
  max-width: 1100px;
  min-height: 100vh;
}

.shell-topbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 40px 0 32px; gap: 24px;
  border-bottom: 1px solid var(--line); margin-bottom: 32px;
}

/* --- Bottom Bar (Mobile) --- */
.bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-bar-height);
  background: var(--bg-2); border-top: 1px solid var(--line);
  z-index: 100;
}
.bottom-bar-inner {
  display: flex; align-items: center; justify-content: space-around; height: 100%;
}
.bottom-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: 0.65rem; padding: 4px 8px;
  font-family: var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.15s;
}
.bottom-bar a.active { color: var(--gold); }
.bottom-bar a svg { width: 22px; height: 22px; }
.bottom-bar-fab {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--gold);
  border-radius: 50%; margin-top: -18px;
  box-shadow: 0 2px 12px rgba(212,168,67,0.4); color: var(--bg) !important;
}
.bottom-bar-fab:hover { background: var(--gold-2); }

/* --- Icon & Filter Helpers --- */
.icon-btn { width: 32px; height: 32px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { color: var(--text); }

.filter-tabs { display: flex; gap: 0; border: 1px solid var(--line); }
.filter-tab {
  padding: 10px 16px; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--muted);
  border-right: 1px solid var(--line); cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:last-child { border-right: none; }
.filter-tab.active { background: var(--gold); color: var(--bg); font-weight: 700; }
.filter-tab:hover:not(.active) { color: var(--gold); }

/* --- Tabs --- */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  padding: 10px 20px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* --- Page Header --- */
.page-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.page-header h1 {
  font-family: var(--f-display); font-size: 36px; font-weight: 300;
  letter-spacing: -0.02em;
}

/* ============ FEED ============ */
.feed-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 48px; max-width: 1280px;
}
.feed-column { display: flex; flex-direction: column; gap: 56px; }

.feed-post { position: relative; }
.feed-post-head {
  display: flex; align-items: center; gap: 12px; padding: 0 0 14px;
}
.feed-post-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.feed-photo { position: relative; cursor: pointer; overflow: hidden; background: #000; }
.feed-photo img { width: 100%; display: block; max-height: 780px; object-fit: cover; }
.photo-hud-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
}
.exif-toggle {
  background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px; cursor: pointer; letter-spacing: 0.12em;
  font-family: var(--f-mono); font-size: 10px; backdrop-filter: blur(6px);
}
.exif-toggle:hover { background: var(--gold); color: var(--bg); }
.photo-exif-panel {
  position: absolute; top: 44px; right: 12px;
  background: rgba(14,12,10,0.92); border: 1px solid var(--gold);
  padding: 16px; backdrop-filter: blur(8px); width: 300px;
  font-family: var(--f-mono); font-size: 11px;
}
.exif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 11px; }
.exif-grid > div { line-height: 1.5; }
.dim { color: var(--muted); font-size: 9px !important; }

.feed-post-body { padding: 18px 0 0; display: flex; gap: 24px; align-items: flex-start; }
.tip-cluster { display: flex; align-items: center; gap: 16px; }
.tip-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--gold-dim); color: var(--gold);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; font-weight: 600;
  transition: all 0.15s;
}
.tip-btn:hover { background: var(--gold); color: var(--bg); }
.tip-btn.tipped { background: var(--gold); color: var(--bg); }
.tip-count { text-align: right; line-height: 1.1; }

/* Tip burst animation */
.tip-burst {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; flex-direction: column; z-index: 10;
}
.tip-burst-ring {
  position: absolute; width: 80px; height: 80px;
  border: 2px solid var(--gold); border-radius: 50%;
  animation: ring 1.4s ease-out forwards;
}
.tip-burst-amt {
  font-family: var(--f-display); font-size: 64px; color: var(--gold); font-weight: 300;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
  animation: pop 1.4s ease-out forwards;
}
@keyframes ring { 0% {transform: scale(0); opacity:1;} 100% {transform: scale(4); opacity:0;} }
@keyframes pop  { 0% {transform: scale(0.6); opacity:0;} 20% {transform: scale(1.1); opacity:1;} 70% {opacity:1;} 100% {transform: scale(1); opacity:0;} }

/* Feed right rail */
.feed-rail { display: flex; flex-direction: column; gap: 24px; }
.rail-card { border: 1px solid var(--line); padding: 20px; background: var(--bg-2); }
.rail-policy { background: var(--bg-3); border-color: rgba(194,88,74,0.3); }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.rank-row:first-of-type { border-top: none; }
.guild-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit;
}
.guild-row:first-of-type { border-top: none; }
.guild-row:hover span { color: var(--gold-2); }

/* ============ POST CARD ============ */
.post-card {
  background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--gold-dim); }
.post-card-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.post-card-header-info { flex: 1; }
.post-card-header-info .username { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.post-card-header-info .time { font-size: 0.75rem; color: var(--muted); }
.post-image { width: 100%; object-fit: cover; display: block; }
.post-image-wrapper { position: relative; overflow: hidden; }
.post-card-body { padding: 12px 16px; }
.post-card-body .caption { font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.post-card-body .caption .mention { color: var(--gold); }
.post-card-actions { display: flex; align-items: center; gap: 16px; padding: 8px 16px 12px; }
.post-action {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 0.85rem; padding: 4px;
  transition: color 0.15s;
}
.post-action:hover { color: var(--text); }
.post-action.liked { color: var(--err); }
.post-action svg { width: 20px; height: 20px; }

/* --- Post Grid --- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid-item { position: relative; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.grid-item:hover img { transform: scale(1.04); }
.grid-item-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity 0.25s; color: #fff; font-size: 0.9rem; font-weight: 600;
}
.grid-item:hover .grid-item-overlay { opacity: 1; }
.grid-item-overlay span { display: flex; align-items: center; gap: 4px; }

/* ============ POST DETAIL ============ */
.post-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 24px; backdrop-filter: blur(8px);
}
.post-detail {
  display: grid; grid-template-columns: 1.3fr 1fr;
  max-width: 1400px; width: 100%; max-height: 92vh;
  background: var(--bg); border: 1px solid var(--line); position: relative;
}
.post-detail-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; background: rgba(0,0,0,0.5);
  border: 1px solid var(--line); color: #fff; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.post-detail-close:hover { background: var(--gold); color: var(--bg); }
.post-detail-photo { position: relative; background: #000; overflow: hidden; }
.post-detail-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.post-detail-panel { padding: 32px; overflow-y: auto; max-height: 92vh; }
.post-detail-author { display: flex; align-items: center; gap: 12px; }
.post-detail-author img { width: 44px; height: 44px; border-radius: 50%; }

.exif-table {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.exif-table > div { background: var(--bg-2); padding: 12px; font-size: 14px; }
.exif-table .mono { display: block; margin-bottom: 4px; }

.post-tip-panel {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px; margin: 32px 0; border: 1px solid var(--gold-dim);
  background: rgba(212,168,67,0.04);
}
.tipper-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tipper-strip img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bg); }

/* Tip sheet */
.tip-sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 24px; backdrop-filter: blur(6px);
}
.tip-sheet {
  width: 100%; max-width: 540px;
  background: var(--bg-2); border: 1px solid var(--gold-dim); padding: 40px;
}
.tip-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 28px; }
.tip-amt {
  padding: 16px 8px; border: 1px solid var(--line); color: var(--text);
  transition: all 0.15s; cursor: pointer; text-align: center;
  font-family: var(--f-mono); font-size: 11px;
}
.tip-amt:hover { border-color: var(--gold-dim); }
.tip-amt.active { border-color: var(--gold); background: rgba(212,168,67,0.08); color: var(--gold); }
.split-mini { margin-bottom: 20px; }
.split-bar { display: flex; height: 6px; background: var(--bg-3); margin-bottom: 12px; }
.split-legend { display: flex; gap: 20px; font-size: 12px; color: var(--muted); }
.split-legend > div { display: flex; align-items: center; gap: 8px; }
.split-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.split-legend b { color: var(--text); margin-left: 4px; font-weight: 500; }
.tip-sheet-wallet {
  display: flex; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--line); background: var(--bg-3);
}

/* ============ PROFILE ============ */
.profile-cover { position: relative; height: 280px; overflow: hidden; background: #000; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.profile-cover-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,10,0.2) 0%, var(--bg) 100%);
}
.profile-cover-tag {
  position: absolute; bottom: 16px; right: 16px;
  font-family: var(--f-mono); background: rgba(0,0,0,0.6); padding: 6px 10px;
  font-size: 9px !important; color: var(--muted); letter-spacing: 0.1em;
}
.profile-head {
  display: flex; gap: 32px; align-items: flex-end;
  padding: 0 40px 32px; margin-top: -80px; position: relative; z-index: 2;
}
.profile-header {
  display: flex; gap: 24px; align-items: flex-start;
  margin-bottom: 24px; padding: 24px;
}
.profile-info { flex: 1; }
.profile-info h2 { font-family: var(--f-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 2px; }
.profile-info .handle { color: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; margin-bottom: 8px; }
.profile-info .bio { font-size: 0.9rem; color: var(--text-2); margin-bottom: 12px; }

.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-wrap img {
  width: 160px; height: 160px; border-radius: 50%;
  border: 4px solid var(--bg); object-fit: cover;
}
.profile-verified {
  position: absolute; bottom: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: 3px solid var(--bg);
}

.profile-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 40px;
}
.profile-stats > div { padding: 24px; border-right: 1px solid var(--line); }
.profile-stats > div:last-child { border-right: none; }
.stat-num { font-family: var(--f-display); font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
.stat-lbl { font-family: var(--f-mono); color: var(--muted); font-size: 9px !important; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; display: block; }

/* legacy profile-stat for existing pages */
.profile-stat { text-align: center; }
.profile-stat .count { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; color: var(--text); }
.profile-stat .label { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

.profile-tabs {
  display: flex; gap: 0; padding: 24px 40px; border-bottom: 1px solid var(--line);
}
.profile-tab {
  padding: 8px 20px; font-family: var(--f-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.12em; border-right: 1px solid var(--line-2);
  cursor: pointer; transition: color 0.15s;
}
.profile-tab:last-child { border-right: none; }
.profile-tab.active { color: var(--gold); }
.profile-tab:hover:not(.active) { color: var(--text); }

.profile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  padding: 1px; background: var(--line);
}
.profile-tile { position: relative; aspect-ratio: 1; background: #000; cursor: pointer; overflow: hidden; }
.profile-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.profile-tile:hover img { transform: scale(1.04); }
.profile-tile-overlay {
  position: absolute; inset: 0; padding: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity 0.25s;
}
.profile-tile:hover .profile-tile-overlay { opacity: 1; }

/* ============ WALLET ============ */
.wallet-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.wallet-main {
  padding: 40px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  position: relative; overflow: hidden;
}
.wallet-main::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
}
.wallet-chips {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 40px; background: var(--line); border: 1px solid var(--line);
}
.wallet-chips > div { background: var(--bg-3); padding: 16px; }
.chip-num { font-family: var(--f-display); font-size: 24px; font-weight: 300; margin-top: 6px; }
.wallet-chart-card { padding: 24px; border: 1px solid var(--line); background: var(--bg-2); }

/* legacy wallet styles */
.wallet-balance { text-align: center; padding: 32px; }
.wallet-balance .amount { font-family: var(--f-display); font-size: 2.5rem; font-weight: 300; color: var(--gold); }
.wallet-balance .label { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }
.wallet-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }

.tx-table { border: 1px solid var(--line); }
.tx-head, .tx-row {
  display: grid; grid-template-columns: 140px 180px 1fr 120px 120px;
  padding: 14px 20px; gap: 16px; align-items: center;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.tx-head {
  font-family: var(--f-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.12em; background: var(--bg-2);
}
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: var(--bg-2); }

/* ============ GUILDS ============ */
.guild-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.guild-card {
  border: 1px solid var(--line); background: var(--bg-2);
  text-decoration: none; color: inherit; display: block;
  transition: border-color 0.15s;
}
.guild-card:hover { border-color: var(--gold-dim); }
.guild-card h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 400; margin-bottom: 4px; }
.guild-card p { font-size: 0.85rem; color: var(--text-2); }
.guild-card-banner { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.guild-card-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.25s; }
.guild-card:hover .guild-card-banner img { opacity: 1; }
.guild-card-body { padding: 20px; }
.guild-treasury {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.guild-stat { background: var(--bg-2); padding: 24px; }
.guild-stat .serif { font-family: var(--f-display); font-size: 40px; font-weight: 300; letter-spacing: -0.02em; margin-top: 6px; }

/* ============ PRESETS ============ */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.preset-card {
  border: 1px solid var(--line); background: var(--bg-2);
  text-decoration: none; color: inherit; display: block;
  transition: border-color 0.15s;
}
.preset-card:hover { border-color: var(--gold-dim); }
.preset-card-samples {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); aspect-ratio: 2/1;
}
.preset-card-samples img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preset-card-body { padding: 20px; }
.preset-detail-preview { position: sticky; top: 40px; }
.preset-compare { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #000; }
.preset-compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preset-compare-after { position: absolute; inset: 0; overflow: hidden; }
.preset-compare-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold);
  transform: translateX(-1px); pointer-events: none;
}
.preset-compare-handle span {
  position: absolute; top: 50%; left: -11px; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,67,0.8);
}
.preset-label {
  position: absolute; bottom: 16px; font-family: var(--f-mono); font-size: 10px;
  background: rgba(0,0,0,0.6); padding: 6px 10px; color: #fff; letter-spacing: 0.1em;
}
.preset-label.left { left: 16px; }
.preset-label.right { right: 16px; color: var(--gold); }
.preset-slider {
  width: 100%; margin-top: 16px; -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--line-2); outline: none;
}
.preset-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; background: var(--gold); border-radius: 50%; cursor: pointer;
}
.preset-thumbs { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; }
.adjustments-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.adj-row { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--bg-2); font-size: 13px; }

/* ============ EXPLORE ============ */
.explore-chip {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--line); color: var(--text-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.15s;
}
.explore-chip:hover { border-color: var(--gold-dim); color: var(--gold); }
.explore-mosaic {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px; gap: 4px;
}
.mosaic-tile { position: relative; background: #000; overflow: hidden; cursor: pointer; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-overlay {
  position: absolute; inset: 0; padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transition: opacity 0.25s;
}
.mosaic-tile:hover .mosaic-overlay { opacity: 1; }
.m1 { grid-column: span 2; grid-row: span 2; }
.m4 { grid-column: span 2; }
.m7 { grid-row: span 2; }

/* ============ NOTIFICATIONS ============ */
.notif-list { border: 1px solid var(--line); }
.notif-row {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line); position: relative;
}
.notif-row:last-child { border-bottom: none; }
.notif-row.unread { background: rgba(212,168,67,0.03); }
.notif-row img { width: 40px; height: 40px; border-radius: 50%; }
.notif-icon-badge {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-dim); background: rgba(212,168,67,0.08);
  display: flex; align-items: center; justify-content: center;
}
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* legacy notification styles */
.notification-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background 0.15s;
}
.notification-item:hover { background: rgba(212,168,67,0.03); }
.notification-item.unread { background: rgba(212,168,67,0.04); }
.notification-text { flex: 1; font-size: 0.85rem; color: var(--text-2); }
.notification-text strong { color: var(--text); }
.notification-time { font-family: var(--f-mono); font-size: 10px; color: var(--muted); white-space: nowrap; letter-spacing: 0.08em; }

/* ============ UPLOAD / CREATE POST ============ */
.upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 4/5; border: 1px dashed var(--line); background: var(--bg-2);
  cursor: pointer; transition: all 0.2s;
}
.upload-drop:hover, .upload-drop.active { border-color: var(--gold); background: rgba(212,168,67,0.04); }

.upload-checklist { list-style: none; padding: 0; }
.upload-checklist li {
  display: flex; align-items: center; padding: 8px 0;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em;
}
.upload-checklist li::before { content: ''; margin-right: 12px; color: var(--muted-2); font-size: 14px; }
.upload-checklist li.ok { color: var(--ok); }
.upload-checklist li.ok::before { content: ''; color: var(--ok); }
.upload-checklist li.pending::before { content: ''; color: var(--gold); animation: spin 1.5s linear infinite; }

.ai-scan {
  position: absolute; inset: 0; background: rgba(14,12,10,0.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); overflow: hidden;
}
.ai-scan-line {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--gold);
  box-shadow: 0 0 20px var(--gold); animation: scan 1.8s ease-in-out;
}
@keyframes scan { from { top: 0; } to { top: 100%; } }
.ai-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(143,178,135,0.12); border: 1px solid var(--ok);
  padding: 8px 12px; color: var(--ok);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
}

/* ============ AUTH ============ */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-family: var(--f-display); text-align: center; margin-bottom: 8px; font-size: 1.5rem; font-weight: 300; }
.auth-card .auth-subtitle {
  text-align: center; color: var(--muted); margin-bottom: 24px;
  font-size: 0.85rem;
}
.auth-toggle { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-2); }
.auth-toggle a { color: var(--gold); cursor: pointer; }

.auth-layout { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 100vh; }
.auth-visual { position: relative; overflow: hidden; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual-grad {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,12,10,0.4) 0%, rgba(14,12,10,0.85) 100%);
}
.auth-visual-copy {
  position: absolute; inset: 0; padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-form {
  padding: 80px 64px; display: flex; flex-direction: column;
  max-width: 560px; margin: 0 auto; justify-content: center;
}
.auth-tab {
  flex: 1; padding: 12px; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); border-bottom: 1px solid var(--line);
  cursor: pointer; transition: all 0.15s;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 28px 0;
  color: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px; animation: fadeIn 0.15s ease;
}
.modal-content {
  background: var(--bg-2); border: 1px solid var(--line);
  max-width: 500px; width: 100%; max-height: 90vh;
  overflow-y: auto; animation: slideUp 0.2s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-header h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 400; }
.modal-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.25rem; padding: 4px; line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 12px 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============ TOAST ============ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 2000; pointer-events: none;
}
.toast {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 12px 16px; font-size: 0.85rem; color: var(--text);
  pointer-events: auto; animation: toastIn 0.25s ease;
  display: flex; align-items: center; gap: 8px;
  min-width: 250px; box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.toast-success { border-left: 3px solid var(--ok); }
.toast-error   { border-left: 3px solid var(--err); }
.toast-info    { border-left: 3px solid #5B8DC9; }
.toast-warning { border-left: 3px solid var(--gold); }
.toast.removing { animation: toastOut 0.2s ease forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ============ SPINNER / LOADING / EMPTY ============ */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; min-height: 200px; }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
}
.empty-state svg { width: 48px; height: 48px; color: var(--muted); margin-bottom: 16px; }
.empty-state h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 400; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; color: var(--muted); max-width: 300px; }

/* ============ EXIF OVERLAY ============ */
.exif-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 24px 12px 10px; color: #fff;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.exif-overlay span { opacity: 0.9; }

/* ============ LANDING PAGE ============ */
.landing { position: relative; }
.landing-inner { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; }

/* Landing nav */
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 64px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(14,12,10,0.9);
  backdrop-filter: blur(10px); z-index: 50;
}
.landing-nav .brand { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.landing-nav .brand-mark { font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.28em; }
.landing-nav .links {
  display: flex; gap: 32px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.landing-nav .links a:hover { color: var(--text); }

/* Landing hero */
.landing-hero {
  padding: 96px 64px 80px; display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 28px;
}
h1.display {
  font-family: var(--f-display); font-weight: 300; font-size: 96px;
  line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 24px; color: var(--text);
}
h1.display em { font-style: italic; color: var(--gold); font-weight: 400; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 460px; margin-bottom: 40px; }
.cta-row { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.stats {
  display: flex; gap: 40px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.stats b {
  color: var(--gold); font-size: 20px; font-family: var(--f-display);
  font-weight: 400; letter-spacing: -0.02em; text-transform: none; margin-right: 8px;
}

.hero-photo { position: relative; aspect-ratio: 4/5; background: #000; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(0.92); display: block; }
.photo-meta-top-landing, .photo-meta-bot {
  position: absolute; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.photo-meta-top-landing { top: 16px; }
.tip-badge {
  position: absolute; bottom: 24px; left: 24px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(14,12,10,0.85); border: 1px solid var(--gold);
  padding: 10px 14px; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  backdrop-filter: blur(6px);
}
.tip-badge .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.exif-caption {
  text-align: center; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 14px;
}

/* Landing sub-sells */
.sub-sells {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 44px 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
}
.sub-sells .n { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.12em; margin-bottom: 12px; }
.sub-sells h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin-bottom: 8px; letter-spacing: -0.02em; }
.sub-sells p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Landing section blocks */
.section-block { padding: 120px 64px 80px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 56px; gap: 40px;
}
.section-head h2 {
  font-family: var(--f-display); font-weight: 300; font-size: 64px;
  line-height: 1; letter-spacing: -0.03em; max-width: 720px;
}
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head .mono-note {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); text-align: right;
  max-width: 280px; line-height: 1.8;
}

/* Tip mechanics */
.mechanics { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 10px; }
.step .frame {
  aspect-ratio: 9/16; background: var(--bg-2); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.step .frame img { width: 100%; height: 70%; object-fit: cover; display: block; }
.step .frame .caption { padding: 12px; font-family: var(--f-mono); font-size: 9px; color: var(--muted); letter-spacing: 0.08em; line-height: 1.7; }
.step .desc { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.step .hold { position: absolute; top: 45%; left: 50%; transform: translate(-50%,-50%); color: #fff; font-family: var(--f-mono); font-size: 10px; background: rgba(0,0,0,0.6); padding: 6px 10px; letter-spacing: 0.15em; }
.step .amount { position: absolute; top: 35%; left: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(14,12,10,0.85); font-family: var(--f-display); color: var(--gold); font-size: 22px; }
.step .sent { position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--bg); padding: 4px 8px; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }
.step .tx { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: var(--gold); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; }

.split-card { border: 1px solid var(--line); }
.split-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.split-row:last-child { border-bottom: none; }
.split-row .k { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.split-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.split-row .v { display: flex; align-items: baseline; gap: 12px; }
.split-row .v .amt { font-family: var(--f-display); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.split-row .v .pct { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }

/* Camera section */
.camera-block {
  background: var(--bg-2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 120px 64px;
}
.camera-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; }
.vfinder { position: relative; aspect-ratio: 3/4; background: #000; overflow: hidden; }
.vfinder img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.15) saturate(1.1) sepia(0.1); display: block; }
.vfinder .hud { position: absolute; inset: 0; padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.vfinder .hud-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; }
.vfinder .crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; }
.vfinder .crosshair::before, .vfinder .crosshair::after { content:''; position: absolute; background: var(--gold); }
.vfinder .crosshair::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.vfinder .crosshair::after  { left: 0; right: 0; top: 50%; height: 1px; }
.preset-strip { display: flex; gap: 6px; margin-bottom: 14px; }
.preset-strip span { font-family: var(--f-mono); font-size: 9px; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.2); color: #fff; background: rgba(0,0,0,0.5); letter-spacing: 0.1em; }
.preset-strip .on { background: var(--gold); color: var(--bg); border: none; font-weight: 700; }
.shutter { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,0.15); }
.vfinder-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.vfinder-bot .live { font-family: var(--f-mono); font-size: 10px; color: var(--gold); letter-spacing: 0.1em; }
.vfinder-bot .live small { color: #fff; opacity: 0.8; display: block; }
.camera-copy p { font-size: 20px; line-height: 1.55; margin-bottom: 28px; }
.camera-copy p.dim { color: var(--muted); }
.camera-copy code { font-family: var(--f-mono); background: #000; padding: 2px 6px; color: var(--gold); font-size: 13px; }
.preset-table { border: 1px solid var(--line); margin-top: 20px; }
.preset-row { display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: 20px; padding: 14px 20px; align-items: center; border-bottom: 1px solid var(--line); }
.preset-row:last-child { border-bottom: none; }
.preset-row .name { font-size: 15px; font-weight: 500; }
.preset-row .by { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: 0.08em; }
.preset-row .dl { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.preset-row .price { font-family: var(--f-display); font-size: 18px; color: var(--gold); }
.preset-row .price.free { color: var(--muted); }
.preset-row .load { font-family: var(--f-mono); font-size: 10px; color: var(--gold); letter-spacing: 0.12em; cursor: pointer; }

/* Manifesto */
.manifesto { padding: 140px 64px; }
.manifesto h2 {
  font-family: var(--f-display); font-weight: 300; font-size: 112px;
  line-height: 0.92; letter-spacing: -0.04em; max-width: 1100px; margin-bottom: 48px;
}
.manifesto h2 s { text-decoration: line-through; text-decoration-color: var(--err); text-decoration-thickness: 4px; opacity: 0.5; }
.manifesto h2 em { font-style: italic; color: var(--gold); }
.manifesto .manifesto-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.manifesto .copy { font-family: var(--f-display); font-weight: 300; font-size: 26px; line-height: 1.4; max-width: 680px; }
.manifesto ul { font-family: var(--f-mono); font-size: 12px; color: var(--muted); line-height: 2.1; letter-spacing: 0.1em; list-style: none; }

/* App download */
.apps-section {
  border-top: 1px solid var(--line); padding: 100px 64px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.apps-section h2 {
  font-family: var(--f-display); font-weight: 300; font-size: 56px;
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px;
}
.apps-section h2 em { font-style: italic; color: var(--gold); }
.apps-section .note { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 480px; margin-bottom: 32px; }
.app-row { display: flex; gap: 14px; flex-wrap: wrap; }
.app-btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.app-btn.primary { background: var(--gold); color: var(--bg); }
.app-btn.primary:hover { background: var(--gold-2); }
.app-btn.ghost { color: var(--muted); border: 1px solid var(--line); font-weight: 500; cursor: default; }

.phone {
  width: 260px; aspect-ratio: 9/19; background: #000;
  border-radius: 38px; padding: 10px; border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(212,168,67,0.08); margin: 0 auto;
}
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--bg); position: relative; }
.phone img { width: 100%; height: 55%; object-fit: cover; display: block; }
.phone .meta { padding: 14px; }
.phone .meta .handle { font-family: var(--f-mono); color: var(--gold); font-size: 9px; letter-spacing: 0.12em; margin-bottom: 6px; }
.phone .meta .title { font-family: var(--f-display); font-size: 16px; margin-bottom: 8px; }
.phone .meta .exif { font-family: var(--f-mono); font-size: 8px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 12px; }
.phone .meta .tips { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.1em; }

/* Landing footer */
.landing-footer {
  border-top: 1px solid var(--line); padding: 48px 64px 56px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.landing-footer .tag { font-family: var(--f-display); font-style: italic; font-size: 16px; margin-top: 14px; color: var(--muted); }
.landing-footer .fine {
  font-family: var(--f-mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; text-align: right; line-height: 2;
}
.landing-footer .fine a { color: var(--muted); }
.landing-footer .fine a:hover { color: var(--gold); }

/* ============ HELPERS ============ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-secondary { color: var(--text-2); }
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  /* Landing responsive */
  .landing-hero, .mechanics, .camera-grid, .manifesto .manifesto-grid, .apps-grid { grid-template-columns: 1fr; gap: 48px; }
  .sub-sells { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  h1.display { font-size: 64px; }
  .section-head h2, .apps-section h2 { font-size: 44px; }
  .manifesto h2 { font-size: 64px; }
  .landing-nav, .landing-hero, .section-block, .camera-block, .manifesto, .apps-section, .landing-footer, .sub-sells { padding-left: 24px; padding-right: 24px; }
  .landing-nav .links { display: none; }
  .landing-footer { flex-direction: column; align-items: flex-start; gap: 24px; }
  .landing-footer .fine { text-align: left; }

  /* App responsive */
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .bottom-bar { display: block; }
  .main-content {
    margin-left: 0; padding: 16px;
    padding-bottom: calc(var(--bottom-bar-height) + 16px);
    width: 100%; max-width: 100%;
  }
  .feed-layout, .wallet-hero, .auth-layout { grid-template-columns: 1fr; }
  .feed-rail { display: none; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); margin: 0 16px; }
  .profile-head { padding: 0 16px 24px; }
  .explore-mosaic { grid-template-columns: repeat(2, 1fr); }
  .post-detail { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }

  .toast-container {
    bottom: calc(var(--bottom-bar-height) + 12px);
    right: 12px; left: 12px;
  }
  .toast { min-width: unset; }
  .modal-content { max-width: 100%; margin: 0 8px; }
}

@media (max-width: 480px) {
  .sub-sells { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  h1.display { font-size: 48px; }
  .manifesto h2 { font-size: 48px; }
}
