/* ============================================================
   SUÇ & CEZA TRADING · MMXXVI
   Editorial Luxury · Açık Kahve & Altın
   ============================================================ */

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

:root {
  /* ── Renk paleti ── */
  --bg:           #f6f0e4;
  --bg-2:         #ede4d3;
  --bg-3:         #e5d9be;
  --paper:        #fbf6eb;
  --paper-2:      #fffcf5;

  --ink:          #1f150c;
  --ink-2:        #2d1f15;
  --ink-soft:     #5c4a38;
  --ink-mute:     #8a755a;
  --ink-faint:    #b9a682;

  --gold:         #a37a2c;
  --gold-bright:  #c89a3f;
  --gold-soft:    #d9be7c;
  --gold-pale:    #e9d8a8;

  --burgundy:     #7d2030;
  --burgundy-2:   #5a1822;
  --burgundy-glow:#a83644;
  --danger:       #7d2030;   /* legacy alias */
  --success:      #4a6a3a;
  --warning:      #a37a2c;

  --rule:         rgba(163, 122, 44, 0.18);
  --rule-soft:    rgba(163, 122, 44, 0.10);
  --rule-strong:  rgba(163, 122, 44, 0.40);

  --shadow-sm: 0 1px 2px rgba(45, 31, 21, 0.04), 0 1px 3px rgba(45, 31, 21, 0.06);
  --shadow:    0 2px 8px rgba(45, 31, 21, 0.05), 0 8px 24px rgba(45, 31, 21, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 31, 21, 0.08), 0 16px 80px rgba(45, 31, 21, 0.10);
  --shadow-gold: 0 8px 32px rgba(163, 122, 44, 0.16);

  --serif:    'Fraunces', 'Georgia', serif;
  --sans:     'Outfit', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Courier New', monospace;

  --r:        2px;
  --r-md:     6px;
  --r-lg:     12px;

  --easing:     cubic-bezier(0.4, 0.0, 0.2, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.15 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 100;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(163, 122, 44, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(125, 32, 48, 0.04) 0%, transparent 50%);
  z-index: 99;
}
::selection { background: var(--gold-soft); color: var(--ink); }

/* ── APP ── */
.app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; position: relative; z-index: 1; }

/* ── SIDEBAR ── */
.sidebar {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-right: 1px solid var(--rule);
  padding: 32px 22px;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  animation: slideInLeft 0.6s var(--easing-out);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }

.side-brand { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.side-brand .mark {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 26px; color: var(--gold);
  letter-spacing: -0.01em; line-height: 1;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
}
.side-brand .mark::first-letter { font-size: 34px; color: var(--burgundy); margin-right: 1px; }
.side-brand .sub {
  display: block;
  font-family: var(--mono); font-size: 9px; color: var(--ink-mute);
  letter-spacing: 0.28em; text-transform: uppercase; margin-top: 10px;
}

.nav-group { margin-bottom: 24px; animation: fadeIn 0.7s var(--easing-out) backwards; }
.nav-group:nth-child(2) { animation-delay: 0.1s; }
.nav-group:nth-child(3) { animation-delay: 0.2s; }
.nav-group:nth-child(4) { animation-delay: 0.3s; }
.nav-group:nth-child(5) { animation-delay: 0.4s; }

.nav-group-title {
  font-family: var(--mono); font-size: 9px; color: var(--ink-mute);
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.nav-group-title::before { content: '§'; color: var(--gold); font-family: var(--serif); font-size: 12px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-weight: 400;
  border-radius: var(--r-md);
  border-left: 2px solid transparent;
  margin-bottom: 1px;
  transition: all 0.25s var(--easing);
  position: relative;
}
.nav-item:hover { color: var(--ink); background: var(--paper); transform: translateX(2px); }
.nav-item.active {
  background: var(--paper-2); color: var(--ink);
  border-left-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.nav-item.active::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); width: 4px; height: 4px;
  background: var(--burgundy); border-radius: 50%;
}
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-mute); transition: color 0.25s var(--easing); }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { color: var(--gold); }

.nav-badge {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  background: var(--bg-3);
  padding: 2px 7px; border-radius: 20px;
  min-width: 22px; text-align: center;
  border: 1px solid var(--rule);
}
.nav-badge.red { background: var(--burgundy); color: var(--paper); border-color: var(--burgundy-2); }
.nav-badge.dot {
  background: var(--burgundy); width: 7px; height: 7px;
  padding: 0; min-width: 0; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(125, 32, 48, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.side-user { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--rule); }
.user-card {
  display: flex; align-items: center; gap: 11px;
  padding: 12px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  transition: all 0.25s var(--easing);
}
.user-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 13px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-tier { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; margin-top: 2px; }

/* ── AVATARS ── */
.avatar, .avatar-mini, .avatar.big {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 500; font-style: italic;
  color: var(--paper); flex-shrink: 0; position: relative;
  border-radius: 2px; letter-spacing: -0.02em;
}
.avatar { width: 36px; height: 36px; font-size: 16px; }
.avatar.big { width: 84px; height: 84px; font-size: 38px; border-radius: 4px; }
.avatar-mini { width: 18px; height: 18px; font-size: 10px; vertical-align: middle; }
.avatar.bronze-tier, .avatar-mini.bronze-tier { background: linear-gradient(135deg, #a87242, #8b5a2f); }
.avatar.silver-tier, .avatar-mini.silver-tier { background: linear-gradient(135deg, #8b8680, #6a655f); }
.avatar.gold-tier,   .avatar-mini.gold-tier   { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.avatar.elite-tier,  .avatar-mini.elite-tier  { background: linear-gradient(135deg, #4a2e3f, #2d1b28); color: var(--gold-bright); }
.avatar.corp-tier,   .avatar-mini.corp-tier   { background: linear-gradient(135deg, var(--burgundy-glow), var(--burgundy)); }
.avatar.none-tier,   .avatar-mini.none-tier   { background: linear-gradient(135deg, var(--ink-mute), var(--ink-soft)); }
.avatar-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 11px; height: 11px; background: #6a9d5e;
  border: 2px solid var(--paper); border-radius: 50%;
}

/* ── MAIN ── */
.main { background: var(--bg); min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px) saturate(140%);
  background: rgba(246, 240, 228, 0.85);
  border-bottom: 1px solid var(--rule);
  padding: 16px 40px;
  display: flex; align-items: center; gap: 24px;
}
.crumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.06em; flex-shrink: 0;
}
.crumb .sep { color: var(--gold); font-family: var(--serif); }
.crumb .now { color: var(--ink); font-weight: 500; }

.search {
  flex: 1; max-width: 440px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 8px 14px;
  transition: all 0.25s var(--easing);
}
.search:focus-within { border-color: var(--gold); background: var(--paper-2); box-shadow: 0 0 0 3px rgba(163, 122, 44, 0.08); }
.search-icon { width: 15px; height: 15px; color: var(--ink-mute); flex-shrink: 0; }
.search input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--sans); font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--ink-mute); }
.search-shortcut { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); padding: 2px 7px; background: var(--bg-3); border: 1px solid var(--rule); border-radius: 3px; flex-shrink: 0; }

.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.balance-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 14px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  text-decoration: none; transition: all 0.25s var(--easing);
}
.balance-pill:hover { border-color: var(--gold); background: var(--paper-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.balance-pill .lab { font-family: var(--mono); font-size: 9px; color: var(--ink-mute); letter-spacing: 0.18em; text-transform: uppercase; }
.balance-pill .val { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); }
.balance-pill .cur { color: var(--gold); font-style: italic; margin-right: 1px; }
.balance-pill.bond { background: linear-gradient(135deg, rgba(163, 122, 44, 0.08), var(--paper)); border-color: var(--gold-soft); }
.balance-pill.bond .val { color: var(--gold); }

.icon-btn {
  background: var(--paper); border: 1px solid var(--rule);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft);
  border-radius: var(--r-md); position: relative;
  transition: all 0.25s var(--easing);
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .ind {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; background: var(--burgundy);
  border-radius: 50%; border: 2px solid var(--paper);
  animation: pulse 2.4s ease-in-out infinite;
}

.content { padding: 48px 56px 80px; max-width: 1400px; margin: 0 auto; animation: fadeIn 0.7s var(--easing-out); }

/* ── HERO ── */
.hero { margin-bottom: 48px; animation: fadeInUp 0.8s var(--easing-out); }
.hero.compact { margin-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 16px; padding: 5px 11px;
  background: rgba(163, 122, 44, 0.06);
  border: 1px solid var(--rule); border-radius: 2px;
}
.kicker.gold { color: var(--gold); border-color: var(--gold-soft); background: rgba(163, 122, 44, 0.10); }

.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 18px;
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
}
.title em { font-style: italic; color: var(--gold); font-variation-settings: 'SOFT' 60, 'WONK' 1; position: relative; }

.lead {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.6;
  color: var(--ink-soft); max-width: 620px; font-weight: 400;
}
.lead em { color: var(--burgundy); font-style: normal; font-weight: 500; }
.lead strong { color: var(--ink); font-weight: 600; font-style: normal; }

.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.stat-card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 22px 22px 18px; border-radius: var(--r-md);
  position: relative; overflow: hidden;
  transition: all 0.3s var(--easing);
  animation: fadeInUp 0.7s var(--easing-out) backwards;
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.stat-card.gold { background: linear-gradient(135deg, rgba(163, 122, 44, 0.10), var(--paper-2)); border-color: var(--gold-soft); }
.stat-card.gold::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.stat-label { font-family: var(--mono); font-size: 9px; color: var(--ink-mute); letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 10px; }
.stat-value { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-value .stat-unit, .stat-value .cur { font-size: 16px; color: var(--ink-mute); font-weight: 400; font-style: italic; }
.stat-value .cur { color: var(--gold); margin-right: 2px; }
.stat-card.gold .stat-value { color: var(--gold); }
.stat-card.gold .stat-value .cur { color: var(--gold-bright); }
.stat-meta { font-size: 11px; color: var(--ink-mute); margin-top: 8px; }

/* ── BLOCK ── */
.block { margin-bottom: 56px; animation: fadeInUp 0.7s var(--easing-out); }
.block-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--rule); gap: 16px;
}
.block-title { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); letter-spacing: -0.015em; }
.block-link {
  font-family: var(--mono); font-size: 11px; color: var(--gold);
  text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 0; position: relative;
}
.block-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--easing);
}
.block-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.04em; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-md);
  cursor: pointer; transition: all 0.25s var(--easing);
  text-transform: uppercase; background: transparent;
}
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn .arr { font-family: var(--serif); font-style: italic; font-size: 18px; transition: transform 0.25s var(--easing); }
.btn:hover .arr { transform: translateX(3px); }
.btn.gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--paper-2); border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn.ghost { background: var(--paper); color: var(--ink-soft); border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.btn.burgundy { background: linear-gradient(135deg, var(--burgundy-glow), var(--burgundy)); color: var(--paper); border-color: var(--burgundy); }
.btn.burgundy:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(125, 32, 48, 0.25); }

/* ── PILLS ── */
.filter-row, .txn-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.04em; text-decoration: none;
  cursor: pointer; transition: all 0.25s var(--easing); text-transform: uppercase;
}
.pill:hover { border-color: var(--gold); background: var(--paper-2); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--gold-bright); }
.pill-count { background: var(--bg-3); padding: 1px 6px; border-radius: 10px; font-size: 10px; color: var(--ink-mute); }
.pill.active .pill-count { background: rgba(255,255,255,0.1); color: var(--gold-soft); }

/* ── ESCROW ── */
.escrow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.escrow-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 22px;
  text-decoration: none; color: inherit;
  transition: all 0.3s var(--easing);
  position: relative; overflow: hidden;
  animation: fadeInUp 0.6s var(--easing-out) backwards;
}
.escrow-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--gold-soft);
  transition: width 0.3s var(--easing);
}
.escrow-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.escrow-card:hover::before { width: 5px; background: var(--gold); }
.esc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.esc-id { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.06em; font-weight: 500; }
.esc-status {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; border: 1px solid;
}
.esc-status.pending_payment { color: #8a6a30; background: rgba(163,122,44,0.08); border-color: var(--gold-soft); }
.esc-status.funded          { color: #5a7a3e; background: rgba(106,157,94,0.08); border-color: #a0c094; }
.esc-status.in_progress     { color: #8a6a30; background: rgba(163,122,44,0.10); border-color: var(--gold); }
.esc-status.delivered       { color: #5a7a3e; background: rgba(106,157,94,0.12); border-color: #6a9d5e; }
.esc-status.approved        { color: #4a6a3a; background: rgba(106,157,94,0.15); border-color: #6a9d5e; }
.esc-status.disputed        { color: var(--burgundy); background: rgba(125,32,48,0.08); border-color: var(--burgundy-glow); }
.esc-status.refunded, .esc-status.cancelled { color: var(--ink-mute); background: var(--bg-3); border-color: var(--rule); }

.esc-title { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.35; margin-bottom: 14px; letter-spacing: -0.01em; }
.esc-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 12px; color: var(--ink-soft); gap: 10px; }
.esc-counterparty { display: inline-flex; align-items: center; gap: 7px; }
.esc-counterparty strong { color: var(--ink); font-weight: 500; }
.esc-amount { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--gold); }
.esc-amount .cur { color: var(--gold-bright); font-style: italic; font-size: 14px; }

.esc-progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.esc-progress .bar { flex: 1; height: 4px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.esc-progress .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 2px; animation: fillSlide 1s var(--easing-out); }
.esc-progress .step { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; white-space: nowrap; }

.esc-detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .esc-detail-grid { grid-template-columns: 1fr; } }
.esc-card { background: var(--paper); border: 1px solid var(--rule); padding: 22px; border-radius: var(--r-md); }

.esc-messages { background: var(--paper); border: 1px solid var(--rule); padding: 20px; border-radius: var(--r-md); max-height: 460px; overflow-y: auto; }
.msg { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.55; animation: fadeInUp 0.4s var(--easing-out); }
.msg.system { background: var(--bg-3); color: var(--ink-mute); font-family: var(--mono); font-size: 11px; text-align: center; border: 1px dashed var(--rule); letter-spacing: 0.04em; }
.msg.me { background: linear-gradient(135deg, rgba(163, 122, 44, 0.08), var(--paper-2)); border: 1px solid var(--gold-soft); margin-left: 40px; }
.msg.them { background: var(--paper-2); border: 1px solid var(--rule); margin-right: 40px; }
.msg-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-mute); margin-bottom: 6px; }
.msg-meta strong { color: var(--ink); font-weight: 500; }
.msg-time { margin-left: auto; }
.msg-body { color: var(--ink); }

.file-list { display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); transition: all 0.25s var(--easing); }
.file-row:hover { border-color: var(--gold); transform: translateX(2px); }
.file-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--gold-soft), var(--gold-pale)); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 500; border-radius: var(--r-md); flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }

.history-list { display: grid; gap: 4px; }
.hist-row { display: grid; grid-template-columns: 120px 130px 1fr; gap: 14px; padding: 9px 14px; font-size: 12px; border-left: 2px solid var(--rule); background: var(--paper); border-radius: 0 var(--r-md) var(--r-md) 0; transition: all 0.25s var(--easing); }
.hist-row:hover { border-left-color: var(--gold); background: var(--paper-2); }
.hist-time { font-family: var(--mono); color: var(--ink-mute); font-size: 11px; }
.hist-event { font-family: var(--mono); font-size: 10px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.hist-desc { color: var(--ink-soft); }

/* ── VITRINE ── */
.vitrine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vitrine-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 22px;
  position: relative; overflow: hidden;
  transition: all 0.3s var(--easing);
  animation: fadeInUp 0.6s var(--easing-out) backwards;
}
.vitrine-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.ribbon {
  position: absolute; top: 14px; right: -28px;
  background: linear-gradient(135deg, var(--burgundy-glow), var(--burgundy));
  color: var(--paper);
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 32px; transform: rotate(35deg); font-weight: 500;
}
.vit-cat { font-family: var(--mono); font-size: 9px; color: var(--gold); letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 10px; }
.vit-title { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.3; margin-bottom: 14px; letter-spacing: -0.01em; }
.vit-seller { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; }
.vit-rating { margin-left: auto; color: var(--gold); font-family: var(--mono); font-size: 11px; }
.vit-foot { display: flex; justify-content: space-between; align-items: end; padding-top: 14px; border-top: 1px solid var(--rule); }
.vit-price { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold); }
.vit-delivery { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; }

/* ── TRANSACTIONS ── */
.txn-table { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.txn-row { display: grid; grid-template-columns: 110px 1fr 110px 140px; gap: 16px; padding: 14px 20px; align-items: center; border-bottom: 1px solid var(--rule); transition: background 0.25s var(--easing); }
.txn-table.full .txn-row { grid-template-columns: 110px 1fr 110px 140px; }
.txn-row:last-child { border-bottom: none; }
.txn-row:hover { background: var(--paper-2); }
.txn-date { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.txn-title { font-size: 13px; color: var(--ink); }
.txn-sub { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.txn-balance { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); text-align: right; }
.txn-amount { font-family: var(--serif); font-size: 16px; font-weight: 500; text-align: right; }
.txn-amount.in  { color: #4a7a3a; }
.txn-amount.out { color: var(--burgundy); }
.txn-amount .cur { font-style: italic; font-size: 12px; margin-right: 2px; opacity: 0.7; }

/* ── THREAD/FORUM ── */
.thread-list { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.thread-row { display: grid; grid-template-columns: 50px 1fr 140px; gap: 16px; padding: 16px 20px; align-items: center; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: all 0.25s var(--easing); }
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: var(--paper-2); padding-left: 26px; }
.thread-row.pinned { background: linear-gradient(90deg, rgba(163, 122, 44, 0.06), transparent); border-left: 3px solid var(--gold); padding-left: 17px; }
.thr-room { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); text-align: center; font-weight: 500; }
.thr-title { font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.4; margin-bottom: 5px; letter-spacing: -0.005em; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.thr-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-mute); flex-wrap: wrap; }
.thr-stats { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.thr-stats .muted { color: var(--ink-mute); margin-top: 2px; }

.badge { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; padding: 2px 7px; border-radius: 2px; font-weight: 500; }
.badge.gold { background: var(--gold); color: var(--paper-2); }
.badge:not(.gold):not(.dim) { background: var(--burgundy); color: var(--paper); }
.badge.dim { background: var(--bg-3); color: var(--ink-mute); border: 1px solid var(--rule); }

/* ── ROOMS ── */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.room-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 24px; text-decoration: none; color: inherit; transition: all 0.3s var(--easing); position: relative; overflow: hidden; animation: fadeInUp 0.6s var(--easing-out) backwards; }
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.room-card.premium { border-color: var(--gold-soft); }
.room-card.locked { border-color: var(--burgundy-glow); }
.room-card.locked::before { content: ''; position: absolute; top: 0; right: 0; width: 0; height: 0; border-left: 24px solid transparent; border-top: 24px solid var(--burgundy); }
.room-roman { font-family: var(--serif); font-style: italic; font-size: 48px; font-weight: 500; color: var(--gold); line-height: 1; font-variation-settings: 'SOFT' 70, 'WONK' 1; }
.room-num { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 6px; }
.room-name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.015em; }
.room-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; }
.room-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--rule); gap: 10px; }
.room-access { font-family: var(--mono); font-size: 10px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.room-stats { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }

/* ── POSTS ── */
.post-list { display: grid; gap: 18px; }
.post { background: var(--paper); border: 1px solid var(--rule); padding: 26px; border-radius: var(--r-md); animation: fadeInUp 0.5s var(--easing-out); }
.post.op { background: linear-gradient(135deg, rgba(163, 122, 44, 0.05), var(--paper)); border-color: var(--gold-soft); }
.post-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.post-author { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.post-author-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.post-author-sub { font-size: 11px; color: var(--ink-mute); font-family: var(--mono); margin-top: 2px; }
.post-time { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.post-body { font-size: 15px; line-height: 1.7; color: var(--ink-2); font-family: var(--serif); letter-spacing: -0.005em; }
.post-body p { margin-bottom: 12px; }
.post-body em { color: var(--burgundy); font-style: italic; }
.post-body strong { color: var(--ink); font-weight: 600; }
.op-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ── WALLET ── */
.wallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .wallet-grid { grid-template-columns: repeat(2, 1fr); } }
.wallet-card { background: var(--paper); border: 1px solid var(--rule); padding: 24px; border-radius: var(--r-md); position: relative; overflow: hidden; transition: all 0.3s var(--easing); }
.wallet-card.big { padding: 28px; }
.wallet-card.gold { background: linear-gradient(135deg, rgba(163, 122, 44, 0.10), var(--paper-2)); border-color: var(--gold-soft); }
.wallet-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wc-label { font-family: var(--mono); font-size: 9px; color: var(--ink-mute); letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px; }
.wc-value { font-family: var(--serif); font-weight: 500; font-size: 36px; color: var(--ink); line-height: 1; letter-spacing: -0.025em; margin-bottom: 8px; }
.wallet-card.gold .wc-value { color: var(--gold); }
.wc-value .cur { color: var(--gold); font-style: italic; font-size: 22px; margin-right: 3px; }
.wc-meta { font-size: 11px; color: var(--ink-mute); }
.wallet-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.wa-card { background: var(--paper); border: 1px solid var(--rule); padding: 26px; border-radius: var(--r-md); }

/* ── CRYPTO DEPOSIT (yeni) ── */
.crypto-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.crypto-opt {
  background: var(--paper-2); border: 2px solid var(--rule);
  border-radius: var(--r-md); padding: 14px;
  text-align: center; cursor: pointer;
  transition: all 0.25s var(--easing);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.crypto-opt:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.crypto-opt.active { border-color: var(--gold); background: linear-gradient(135deg, rgba(163, 122, 44, 0.08), var(--paper-2)); box-shadow: var(--shadow-sm); }
.crypto-opt .ticker { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: 0.04em; }
.crypto-opt .net { font-family: var(--mono); font-size: 9px; color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.crypto-addr {
  background: var(--paper-2); border: 1px solid var(--gold-soft);
  border-radius: var(--r-md); padding: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--ink); word-break: break-all;
  display: flex; align-items: center; gap: 10px;
}
.crypto-addr .copy-btn {
  margin-left: auto; flex-shrink: 0; padding: 6px 12px;
  background: var(--gold); color: var(--paper-2);
  border: none; border-radius: 3px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; cursor: pointer; text-transform: uppercase;
  transition: all 0.2s;
}
.crypto-addr .copy-btn:hover { background: var(--gold-bright); }
.crypto-addr .copy-btn.done { background: #6a9d5e; }
.qr-wrap { display: flex; justify-content: center; padding: 14px; background: white; border: 1px solid var(--rule); border-radius: var(--r-md); margin-top: 12px; }
.qr-wrap img { width: 180px; height: 180px; }

/* ── PROFILE ── */
.profile-head { display: flex; align-items: start; gap: 28px; }
.profile-info { flex: 1; }
.profile-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.profile-stats strong { color: var(--ink); }
.profile-stats small { color: var(--ink-mute); }

/* ── REVIEWS ── */
.review-list { display: grid; gap: 14px; }
.review { background: var(--paper); border: 1px solid var(--rule); padding: 22px; border-radius: var(--r-md); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-body { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.review-reply { margin-top: 12px; padding: 12px 14px; background: rgba(163, 122, 44, 0.06); border-left: 2px solid var(--gold); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 13px; color: var(--ink-soft); }

/* ── FORMS ── */
.form-card { background: var(--paper); border: 1px solid var(--rule); padding: 32px; border-radius: var(--r-md); max-width: 720px; }
.lbl { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 7px; margin-top: 18px; }
.lbl:first-child { margin-top: 0; }
.inp { width: 100%; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); font-family: var(--sans); font-size: 14px; padding: 11px 14px; outline: none; border-radius: var(--r-md); transition: all 0.25s var(--easing); }
.inp:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(163, 122, 44, 0.10); }
textarea.inp { resize: vertical; min-height: 100px; font-family: var(--serif); font-size: 15px; line-height: 1.6; }
select.inp { cursor: pointer; }

/* ── EMPTY ── */
.empty-state { text-align: center; padding: 60px 20px; background: var(--paper); border: 1px dashed var(--rule); border-radius: var(--r-md); color: var(--ink-mute); font-family: var(--serif); font-style: italic; font-size: 16px; }
.empty-state p { margin-bottom: 14px; color: var(--ink-soft); }

/* ── ADMIN ── */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.report-list { display: grid; gap: 12px; }
.report-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--burgundy); border-radius: var(--r-md); transition: all 0.25s var(--easing); }
.report-row:hover { background: var(--paper-2); }
.user-list, .invite-list, .payment-list { display: grid; gap: 6px; }
.user-row, .invite-row, .payment-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); transition: all 0.25s var(--easing); }
.user-row:hover, .invite-row:hover, .payment-row:hover { border-color: var(--gold-soft); background: var(--paper-2); }
.invite-code { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; font-weight: 500; }
.invite-code.used { color: var(--ink-mute); text-decoration: line-through; }
.audit-list { display: grid; gap: 2px; }
.audit-row { display: grid; grid-template-columns: 130px 100px 120px 1fr; gap: 14px; padding: 8px 14px; font-size: 12px; background: var(--paper); border: 1px solid transparent; border-radius: 2px; transition: all 0.2s var(--easing); }
.audit-row:hover { background: var(--paper-2); border-color: var(--rule); }
.audit-time { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.audit-action { font-family: var(--mono); font-size: 10px; color: var(--gold); letter-spacing: 0.12em; font-weight: 500; }
.audit-actor { color: var(--ink); }
.audit-desc { color: var(--ink-soft); }

/* ── UTILS ── */
.dot-sep { color: var(--ink-faint); margin: 0 3px; }
.muted { color: var(--ink-mute); }
.cur { color: var(--gold); font-style: italic; font-family: var(--serif); }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.75; } }
@keyframes fillSlide { from { width: 0; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .content { padding: 32px 20px 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .txn-row { grid-template-columns: 80px 1fr 90px; }
  .txn-balance { display: none; }
  .thread-row { grid-template-columns: 40px 1fr; }
  .thr-stats { display: none; }
}
