/* === GRAMOVNET — TON/GRAM Ecosystem Directory === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:            #070810;
  --surface:       #0D0F1A;
  --card:          #121526;
  --card-hover:    #171B2E;
  --border:        #1E2440;
  --border-light:  #252A45;
  --primary:       #0098EA;
  --primary-dark:  #0077C2;
  --primary-glow:  rgba(0,152,234,.25);
  --cyan:          #00D4E5;
  --purple:        #7B61FF;
  --gold:          #F5A623;
  --green:         #00C896;
  --red:           #FF4757;
  --text:          #E2E8F8;
  --text-muted:    #6B7FA8;
  --text-dim:      #3A4560;
  --gradient:      linear-gradient(135deg,#0098EA 0%,#7B61FF 100%);
  --gradient-gold: linear-gradient(135deg,#F5A623 0%,#FF6B35 100%);
  --font-head:     'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-card:   0 2px 12px rgba(0,0,0,.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }

/* ── Layout ── */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.section      { padding: 56px 24px; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,16,.88);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px; gap: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--text); white-space: nowrap;
}
.nav-logo .logo-gram { color: var(--primary); }
.nav-logo .logo-net  { color: var(--purple); }
.gram-nav-icon   { width: 22px; height: 22px; animation: float 3s ease-in-out infinite; }
.gram-footer-icon{ width: 20px; height: 20px; vertical-align: middle; }
.gram-inline     { width: 28px; height: 28px; vertical-align: middle; margin-right: 4px; }
.badge-icon      { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.nav-links {
  display: flex; align-items: center; gap: 2px; margin-left: 8px;
}
.nav-links a {
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: all .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(255,255,255,.05);
}
.nav-search {
  flex: 1; min-width: 0; max-width: 280px; position: relative; margin-left: auto;
}
.nav-search input {
  width: 100%; padding: 8px 14px 8px 36px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .85rem;
  font-family: var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.nav-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search .search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: .8rem; pointer-events: none;
}

/* Nav user area */
.nav-user {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-auth { display: flex; gap: 8px; }
.btn-nav-secondary {
  padding: 7px 14px; border-radius: 8px; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted); background: none;
  transition: all .2s; white-space: nowrap;
}
.btn-nav-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav-primary {
  padding: 7px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: var(--primary); color: #fff; border: none; transition: opacity .2s; white-space: nowrap;
}
.btn-nav-primary:hover { opacity: .85; color: #fff; }

/* User avatar in nav */
.user-menu-wrap { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; color: var(--text); font-family: var(--font-body); font-size: .875rem;
  transition: border-color .2s; white-space: nowrap;
}
.user-menu-trigger:hover { border-color: var(--primary); }
.user-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name-sm { font-size: .85rem; font-weight: 500; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.user-caret { font-size: .65rem; color: var(--text-dim); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 220px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 200; opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity .2s, transform .2s;
}
.user-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.user-dropdown-head {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.user-avatar-md {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-dropdown-name  { font-weight: 600; font-size: .9rem; }
.user-dropdown-email { font-size: .75rem; color: var(--text-dim); word-break: break-all; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: .875rem; color: var(--text-muted);
  transition: all .15s; border-radius: 0;
}
.user-dropdown-item:hover { background: rgba(255,255,255,.04); color: var(--text); }

.btn-admin {
  padding: 7px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-dim); font-size: .82rem;
  transition: all .2s; white-space: nowrap;
}
.btn-admin:hover { border-color: var(--primary); color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  margin-left: auto;
}
.hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all .3s; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: var(--surface); z-index: 99; padding: 16px;
  flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted); padding: 12px 16px; border-radius: 10px;
  font-size: .95rem; font-weight: 500; transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: var(--card); color: var(--text); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 64px; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,152,234,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(123,97,255,.1) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(0,152,234,.1);
  border: 1px solid rgba(0,152,234,.3); border-radius: 100px;
  font-size: .8rem; color: var(--primary); font-weight: 500; margin-bottom: 24px;
}
.hero h1    { font-size: clamp(2.4rem,6vw,4rem); margin-bottom: 20px; }
.hero h1 .gram { color: var(--primary); }
.hero h1 .net  { color: var(--purple); }
.hero h1 .dot  { color: var(--cyan); }
.hero-sub {
  font-size: clamp(.95rem,2vw,1.1rem); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 36px;
}

/* Hero search */
.hero-search {
  display: flex; align-items: stretch; max-width: 560px; margin: 0 auto 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.hero-search input {
  flex: 1; padding: 15px 20px; background: none; border: none;
  color: var(--text); font-size: 1rem; font-family: var(--font-body); outline: none;
}
.hero-search input::placeholder { color: var(--text-dim); }
.hero-search button {
  padding: 12px 24px; background: var(--gradient); border: none;
  color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-head); margin: 6px; border-radius: 10px; transition: opacity .2s;
  white-space: nowrap;
}
.hero-search button:hover { opacity: .85; }

.hero-meta {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-muted);
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.stat-item {
  padding: 18px 16px; text-align: center;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.stat-item:last-child { border-right: none; }
.stat-label { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.stat-value { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 4px; }
.stat-note  { font-size: .7rem; color: var(--text-muted); }
.live-price.tick-up   { color: var(--green); animation: tickFlash .4s ease; }
.live-price.tick-down { color: var(--red); animation: tickFlash .4s ease; }
@keyframes tickFlash { 0% { opacity: .5; transform: translateY(-1px); } 100% { opacity: 1; transform: translateY(0); } }
.stat-change { font-size: .75rem; font-family: var(--font-mono); }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.section-title { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
.cats {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.cat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-muted); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s; white-space: nowrap; font-family: var(--font-body);
  height: 38px; /* uniform height */
}
.cat-btn:hover, .cat-btn.active {
  background: rgba(0,152,234,.1); border-color: var(--primary); color: var(--primary);
}

/* ══════════════════════════════════════════
   PLATFORM GRID
══════════════════════════════════════════ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch; /* equal height rows */
}
.platform-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; flex-direction: column; /* stretch equal height */
}
.platform-card:hover {
  border-color: rgba(0,152,234,.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,152,234,.1);
}
.platform-card.featured { border-color: rgba(0,152,234,.3); }
.featured-badge {
  position: absolute; top: 0; right: 0;
  background: var(--gradient); color: #fff; font-size: .62rem; font-weight: 700;
  padding: 4px 12px 4px 16px; border-radius: 0 var(--radius) 0 var(--radius);
  letter-spacing: .07em; text-transform: uppercase;
}
.card-top {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px;
}
.card-logo {
  width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.card-info { flex: 1; min-width: 0; }
.card-name {
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  margin-bottom: 5px; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.card-cat {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(0,152,234,.12); color: var(--primary);
}
.card-cat.exchange { background: rgba(245,166,35,.1); color: var(--gold); }
.card-cat.staking  { background: rgba(0,200,150,.1);  color: var(--green); }
.card-cat.payment  { background: rgba(123,97,255,.12); color: var(--purple); }
.card-cat.explorer { background: rgba(0,212,229,.1);  color: var(--cyan); }
.card-cat.defi     { background: rgba(0,152,234,.12); color: var(--primary); }
.card-cat.nft      { background: rgba(255,71,87,.1);  color: var(--red); }

.card-desc {
  font-size: .86rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px;
  flex: 1; /* push footer down */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; gap: 8px;
}
.card-rating {
  display: flex; align-items: center; gap: 6px;
}
.card-rating .num  { font-family: var(--font-head); font-size: .95rem; font-weight: 700; }
.card-reviews      { font-size: .72rem; color: var(--text-dim); }
.card-apy {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  color: var(--green); background: rgba(0,200,150,.1); padding: 3px 8px; border-radius: 6px;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   STARS
══════════════════════════════════════════ */
.stars { display: inline-flex; gap: 1px; }
.star { font-size: .875rem; }
.star.full  { color: var(--gold); }
.star.half  { color: var(--gold); opacity: .6; }
.star.empty { color: var(--text-dim); }

/* ══════════════════════════════════════════
   PLATFORM HERO
══════════════════════════════════════════ */
.platform-hero {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.platform-hero-inner {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.platform-logo-lg {
  width: 80px; height: 80px; min-width: 80px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.platform-meta { flex: 1; min-width: 0; }
.platform-name { font-size: clamp(1.5rem,4vw,2.4rem); margin-bottom: 10px; }
.platform-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.platform-short { font-size: .95rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.platform-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.platform-rating-inline {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head);
}
.platform-rating-inline strong { font-size: 1.3rem; }
.platform-rating-inline span   { font-size: .8rem; color: var(--text-dim); }

/* Platform layout */
.platform-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.platform-content { min-width: 0; }
.platform-sidebar { min-width: 0; }

/* Content blocks */
.content-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.block-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.block-text  { color: var(--text-muted); line-height: 1.7; font-size: .9rem; }

/* Sidebar cards */
.sidebar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.sidebar-card-title { font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.sticky-card { position: sticky; top: 80px; }

/* Rating distribution rows */
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rating-row:last-child { margin-bottom: 0; }
.rating-row-label { font-size: .75rem; color: var(--text-muted); width: 14px; text-align: right; flex-shrink: 0; }
.rating-row-bar   { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-row-fill  { height: 100%; background: var(--gold); border-radius: 3px; transition: width .6s ease; }
.rating-row-count { font-size: .7rem; color: var(--text-dim); width: 18px; text-align: right; flex-shrink: 0; }

/* ══════════════════════════════════════════
   PROS / CONS
══════════════════════════════════════════ */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pro-con-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.pro-con-box.pros { border-color: rgba(0,200,150,.2); }
.pro-con-box.cons { border-color: rgba(255,71,87,.2); }
.pro-con-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.pro-con-box.pros .pro-con-title { color: var(--green); }
.pro-con-box.cons .pro-con-title { color: var(--red); }
.pro-con-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pro-con-list li { display: flex; gap: 8px; font-size: .86rem; color: var(--text-muted); line-height: 1.4; }
.pro-con-list li::before { flex-shrink: 0; font-size: .78rem; margin-top: 2px; }
.pros .pro-con-list li::before { content: '✓'; color: var(--green); }
.cons .pro-con-list li::before { content: '✕'; color: var(--red); }

/* ══════════════════════════════════════════
   DETAIL GRID
══════════════════════════════════════════ */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.detail-label { font-size: .68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.detail-value { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.detail-value.green { color: var(--green); }
.detail-value.gold  { color: var(--gold); }

/* ══════════════════════════════════════════
   REVIEWS
══════════════════════════════════════════ */
.reviews-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
}

/* Review form card */
.review-form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.review-form-user {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Review login prompt */
.review-login-prompt {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px;
}
.rlp-icon { font-size: 2rem; flex-shrink: 0; }
.rlp-text { flex: 1; min-width: 0; }
.rlp-text strong { display: block; margin-bottom: 3px; font-size: .95rem; }
.rlp-text p { font-size: .85rem; color: var(--text-muted); }
.rlp-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Review done banner */
.review-done-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,200,150,.07); border: 1px solid rgba(0,200,150,.25);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
  font-size: .9rem; color: var(--text-muted);
}

/* Review cards */
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .2s;
}
.review-card:hover { border-color: var(--border-light); }
.review-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
}
.review-name   { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 5px; }
.review-verified { color: var(--primary); font-size: .7rem; }
.review-time   { font-size: .75rem; color: var(--text-dim); margin-top: 1px; }
.review-rating { display: flex; align-items: center; gap: 6px; }
.review-score  { font-family: var(--font-head); font-size: .9rem; font-weight: 700; }
.review-content { color: var(--text-muted); font-size: .9rem; line-height: 1.65; margin-bottom: 14px; }
.review-actions { display: flex; align-items: center; gap: 12px; }

/* Like + Reply */
.like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 11px; color: var(--text-muted); font-size: .8rem;
  cursor: pointer; transition: all .2s; font-family: var(--font-body);
}
.like-btn:hover, .like-btn.liked { border-color: var(--red); color: var(--red); background: rgba(255,71,87,.05); }
.reply-btn {
  background: none; border: none; color: var(--text-dim); font-size: .82rem;
  cursor: pointer; font-family: var(--font-body); transition: color .2s; padding: 5px 8px;
}
.reply-btn:hover { color: var(--primary); }

/* Comments thread */
.comments-thread {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.comment-item    { display: flex; gap: 10px; }
.comment-avatar  {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--text-muted); flex-shrink: 0;
}
.comment-body    { flex: 1; background: var(--surface); border-radius: 8px; padding: 9px 12px; }
.comment-author  { font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.comment-text    { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.comment-time    { font-size: .7rem; color: var(--text-dim); margin-top: 3px; }

/* Reply form */
.reply-form {
  display: none; align-items: center; gap: 8px; margin-top: 12px;
}
.reply-form.show { display: flex; }
.reply-avatar {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.reply-form input {
  flex: 1; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: .85rem; font-family: var(--font-body); outline: none;
  transition: border-color .2s;
}
.reply-form input:focus { border-color: var(--primary); }
.reply-form button {
  padding: 8px 14px; background: var(--gradient); border: none; color: #fff;
  border-radius: 8px; font-size: .8rem; cursor: pointer; font-weight: 600;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: .9rem;
  font-weight: 600; font-family: var(--font-head); cursor: pointer;
  border: none; transition: all .2s; text-decoration: none; white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: .88; color: #fff; }
.btn-outline { background: none; border: 1px solid var(--border); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: none; border: 1px solid rgba(255,71,87,.3); color: var(--red); }
.btn-danger:hover { background: rgba(255,71,87,.1); }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-row   { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.form-hint  { font-size: .72rem; color: var(--text-dim); }

.form-input, .form-textarea, .form-select {
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: .9rem;
  font-family: var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select   { cursor: pointer; appearance: none; }

/* Input with icon */
.form-input-wrap { position: relative; }
.form-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: .9rem; pointer-events: none;
}
.form-input-icon-pad { padding-left: 40px; }
.pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: .9rem; color: var(--text-dim);
  line-height: 1;
}

/* Password strength */
.pwd-strength {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
}
.pwd-strength-bar {
  flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.pwd-strength-fill {
  height: 100%; border-radius: 2px;
  transition: width .3s ease, background .3s ease;
  width: 0;
}
.pwd-strength-label { font-size: .75rem; font-weight: 500; white-space: nowrap; }

/* Star rating */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.6rem; cursor: pointer; color: var(--text-dim); transition: color .15s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold); }

/* ══════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative; overflow: hidden;
}
.auth-deco {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.auth-deco-plane {
  position: absolute; opacity: .25;
  top: -20px; right: -40px; transform: rotate(-15deg) scale(2.5);
  animation: float 4s ease-in-out infinite;
}
.auth-deco-circle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,152,234,.1) 0%, transparent 70%);
}
.auth-deco-circle.c1 { width: 600px; height: 600px; top: -200px; left: -200px; }
.auth-deco-circle.c2 { width: 400px; height: 400px; bottom: -150px; right: -100px; background: radial-gradient(circle, rgba(123,97,255,.08) 0%, transparent 70%); }

.auth-card {
  width: 100%; max-width: 440px; position: relative; z-index: 1;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; box-shadow: 0 16px 64px rgba(0,0,0,.4);
}
.auth-card-head { text-align: center; margin-bottom: 28px; }
.auth-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.auth-title    { font-size: 1.5rem; margin-bottom: 6px; }
.auth-subtitle { font-size: .9rem; color: var(--text-muted); }
.auth-form     { display: flex; flex-direction: column; gap: 16px; }
.auth-footer   { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); margin-top: 20px; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); }

/* ══════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════ */
.profile-page { padding: 0 0 60px; }
.profile-page .container { padding-top: 32px; }

.profile-header {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 28px;
}
.profile-avatar-lg {
  width: 80px; height: 80px; min-width: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.profile-info { flex: 1; min-width: 0; }
.profile-username { font-size: 1.6rem; margin-bottom: 8px; }
.profile-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-dim); margin-bottom: 10px;
}
.profile-bio { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.profile-stats {
  display: flex; gap: 0; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  align-self: flex-start;
}
.pstat {
  padding: 16px 20px; text-align: center; min-width: 70px;
  border-right: 1px solid var(--border);
}
.pstat:last-child { border-right: none; }
.pstat-value { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.pstat-label { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* Profile layout */
.profile-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.profile-main   { min-width: 0; }
.profile-sidebar { min-width: 0; }
.profile-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.profile-section-head h2 { font-size: 1.1rem; }

/* My reviews */
.my-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.my-review-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.my-review-card.pending { border-color: rgba(245,166,35,.25); }
.mrc-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.mrc-platform { display: flex; align-items: center; gap: 10px; }
.mrc-logo     { font-size: 1.2rem; }
.mrc-pname    { font-weight: 600; font-size: .9rem; color: var(--text); display: block; }
.mrc-date     { font-size: .75rem; color: var(--text-dim); margin-top: 1px; }
.mrc-right    { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.mrc-rating   { display: flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: .9rem; font-weight: 700; }
.mrc-status   { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.mrc-status.approved { background: rgba(0,200,150,.1); color: var(--green); }
.mrc-status.pending  { background: rgba(245,166,35,.1); color: var(--gold); }
.mrc-content  { font-size: .86rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }
.mrc-actions  { display: flex; gap: 8px; }

/* Profile widgets */
.profile-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.profile-widget h3 { font-size: .95rem; margin-bottom: 14px; }
.profile-info-list { display: flex; flex-direction: column; gap: 0; }
.pil-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.pil-item:last-child { border-bottom: none; }
.pil-label { font-size: .78rem; color: var(--text-dim); }
.pil-value { font-size: .86rem; font-weight: 500; color: var(--text); text-align: right; }

/* ══════════════════════════════════════════
   DUROV SECTION / TON INFO
══════════════════════════════════════════ */
.durov-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin: 32px 0;
  position: relative; overflow: hidden;
}
.durov-section::before {
  content: ''; position: absolute; width: 180px; height: 180px;
  right: -20px; top: -20px; opacity: .04; transform: rotate(-15deg);
  background: url('/assets/img/gram-logo.svg') no-repeat center / contain;
}
.durov-section h2 { margin-bottom: 16px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.durov-section p  { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.durov-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.durov-fact {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.durov-fact-icon { font-size: 1.3rem; flex-shrink: 0; }
.durov-fact-text { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.durov-fact-text strong { color: var(--text); display: block; margin-bottom: 2px; }

/* NFT caps */
.nft-caps {
  background: linear-gradient(135deg,rgba(0,152,234,.06) 0%,rgba(123,97,255,.06) 100%);
  border: 1px solid rgba(123,97,255,.2); border-radius: var(--radius); padding: 24px;
}
.nft-caps-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.nft-cap-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: .8rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 12px; height: 12px; min-width: 12px; border-radius: 50%;
  background: var(--primary); margin-top: 6px; position: relative; z-index: 1;
}
.timeline-item::before {
  content: ''; position: absolute; left: 5px; top: 18px;
  width: 2px; height: calc(100% - 18px); background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-year { font-family: var(--font-mono); font-size: .78rem; color: var(--primary); font-weight: 500; white-space: nowrap; margin-top: 4px; }
.timeline-body h4 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.timeline-body p  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 18px; margin-bottom: 28px; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: .95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════
   ALERTS
══════════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .875rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px; }
.alert-success { background: rgba(0,200,150,.08); border: 1px solid rgba(0,200,150,.25); color: var(--green); }
.alert-error   { background: rgba(255,71,87,.08);  border: 1px solid rgba(255,71,87,.25);  color: var(--red); }
.alert-info    { background: rgba(0,152,234,.08);  border: 1px solid rgba(0,152,234,.25);  color: var(--primary); }

/* ══════════════════════════════════════════
   CHIPS
══════════════════════════════════════════ */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.chip-blue   { background: rgba(0,152,234,.12); color: var(--primary); border: 1px solid rgba(0,152,234,.2); }
.chip-purple { background: rgba(123,97,255,.12); color: var(--purple); border: 1px solid rgba(123,97,255,.2); }
.chip-green  { background: rgba(0,200,150,.12);  color: var(--green);  border: 1px solid rgba(0,200,150,.2); }
.chip-gold   { background: rgba(245,166,35,.12);  color: var(--gold);  border: 1px solid rgba(245,166,35,.2); }

/* ══════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════ */
.breadcrumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--text-dim); flex-wrap: wrap; margin-bottom: 12px;
}
.breadcrumbs a   { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--text-dim); }

/* ══════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════ */
.empty-state   { text-align: center; padding: 56px 20px; }
.empty-icon    { font-size: 3rem; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 6px; }
.empty-state p  { font-size: .875rem; color: var(--text-dim); }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: .875rem; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px;
}
.footer-brand h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; }
.footer-brand h3 .gram { color: var(--primary); }
.footer-brand h3 .net  { color: var(--purple); }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; max-width: 260px; }
.footer-col h4  { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a   { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: 9px; }
.footer-col a:hover { color: var(--text); }
.footer-visits {
  max-width: 1280px; margin: 0 auto 20px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-dim);
}
.footer-visits strong { color: var(--text-muted); font-family: var(--font-mono); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
.footer-plane    { animation: float 3s ease-in-out infinite; display: inline-block; }

/* ══════════════════════════════════════════
   FLOATING PLANES DECORATION
══════════════════════════════════════════ */
.floating-planes { position: absolute; pointer-events: none; inset: 0; overflow: hidden; }
.fp { position: absolute; width: 22px; height: 22px; opacity: .07; animation: flyAcross linear infinite; }
.fp:nth-child(1) { top: 20%; animation-duration: 25s; animation-delay: -5s; }
.fp:nth-child(2) { top: 50%; animation-duration: 35s; animation-delay: -15s; width: 14px; height: 14px; }
.fp:nth-child(3) { top: 75%; animation-duration: 20s; animation-delay: -10s; width: 26px; height: 26px; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes float {
  0%,100% { transform: translateY(0)  rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(5deg); }
}
@keyframes flyAcross {
  from { transform: translateX(-100px); }
  to   { transform: translateX(calc(100vw + 100px)); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}

/* Scroll in animation */
.fade-up {
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(4,1fr); }
  .stat-item:nth-child(4) { border-right: none; }
  .stat-item:nth-child(5),
  .stat-item:nth-child(6) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
/* ── Donate page ── */
.wallet-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.wallet-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wallet-qr-wrap > div {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  line-height: 0;
}
.wallet-qr-hint {
  font-size: .72rem;
  color: var(--text-dim);
  text-align: center;
}
.wallet-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wallet-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}
.wallet-net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: pulse 2s infinite;
}
.wallet-address {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text);
  word-break: break-all;
  line-height: 1.6;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color .2s, color .2s;
  user-select: all;
}
.wallet-address:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.wallet-copy-hint {
  font-size: .75rem;
  color: var(--text-dim);
  transition: color .3s;
}
.wallet-stats {
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
}
@media (max-width: 540px) {
  .wallet-card { flex-direction: column; align-items: center; }
  .wallet-info { min-width: unset; width: 100%; }
}
.donors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donor-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.donor-item:last-child { border-bottom: none; }
.donor-rank {
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  min-width: 26px;
  padding-top: 2px;
}
.donor-item:nth-child(1) .donor-rank { color: var(--gold); font-weight: 700; }
.donor-item:nth-child(2) .donor-rank { color: #a8a8b0; font-weight: 700; }
.donor-item:nth-child(3) .donor-rank { color: #c47a3c; font-weight: 700; }
.donor-body { flex: 1; min-width: 0; }
.donor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.donor-name { font-weight: 600; font-size: .9rem; truncate: 1; }
.donor-amount {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--gold);
  white-space: nowrap;
}
.donor-message {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Ad placeholder card ── */
.ad-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 2px dashed var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  padding: 28px 20px;
  gap: 8px;
  min-height: 160px;
}
.ad-card:hover {
  border-color: var(--primary);
  background: rgba(0,152,234,.04);
}
.ad-card-icon {
  font-size: 1.8rem;
  color: var(--text-dim);
  transition: color .2s;
}
.ad-card:hover .ad-card-icon { color: var(--primary); }
.ad-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ad-card-text {
  font-size: .8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}
.ad-card-link {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .platform-layout { grid-template-columns: 1fr !important; }
  .platform-sidebar .sticky-card { position: static; }
  .profile-layout { grid-template-columns: 1fr !important; }
  .profile-sidebar { order: -1; }
}
@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .hamburger { display: flex; }
  .platform-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3,1fr); }
  .stat-item:nth-child(n) { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+3) { border-bottom: none; }
  .section { padding: 36px 16px; }
  .hero { padding: 48px 16px 36px; }
  .durov-facts { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; }
  .profile-stats { align-self: stretch; }
  .auth-card { padding: 24px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .user-name-sm { display: none; }
  .nav-user { gap: 4px; }
  .hero-meta { gap: 12px; font-size: .8rem; }
  .mrc-top { flex-direction: column; gap: 8px; }
  .mrc-right { align-items: flex-start; flex-direction: row; gap: 10px; }
}

/* ══════════════════════════════════════════
   CALCULATOR
══════════════════════════════════════════ */

/* Layout */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}
.calc-form-col  { display: flex; flex-direction: column; gap: 16px; }
.calc-results-col { position: relative; }
.calc-results-sticky {
  position: sticky; top: 80px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

/* Form cards */
.calc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.calc-card-label {
  font-size: .75rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.calc-card-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0;
}
.calc-fields { display: flex; flex-direction: column; gap: 16px; }

/* Currency tabs */
.calc-currency-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-currency-tab { cursor: pointer; }
.calc-currency-tab input { display: none; }
.calc-currency-tab-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px; border: 2px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: .9rem;
  transition: all .2s; cursor: pointer; font-family: var(--font-head);
}
.calc-currency-tab input:checked + .calc-currency-tab-inner {
  border-color: var(--primary); color: var(--text);
  background: rgba(0,152,234,.08);
}
.calc-live-price {
  font-size: .7rem; font-weight: 400; color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Input with badge */
.calc-input-wrap { position: relative; }
.calc-input { padding-right: 60px !important; }
.calc-badge {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: .75rem; font-weight: 600; color: var(--text-dim);
  font-family: var(--font-mono); pointer-events: none;
  background: var(--surface); padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
}

/* Period row (years + months) */
.calc-period-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Select */
.calc-select-wrap { position: relative; }
.calc-select-wrap::after {
  content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none; font-size: .8rem;
}
.calc-select { padding-right: 32px !important; }

/* Preset buttons */
.calc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.calc-preset-btn {
  padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-dim); background: none;
  cursor: pointer; font-family: var(--font-head); transition: all .15s;
}
.calc-preset-btn:hover  { border-color: var(--primary); color: var(--primary); }
.calc-preset-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(0,152,234,.1); }

/* Toggle switch */
.calc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; flex-shrink: 0; }
.calc-toggle input { display: none; }
.calc-toggle-track {
  position: absolute; inset: 0; border-radius: 24px; background: var(--border); transition: .2s;
}
.calc-toggle-track::before {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.calc-toggle input:checked + .calc-toggle-track { background: var(--primary); }
.calc-toggle input:checked + .calc-toggle-track::before { transform: translateX(20px); }
.calc-reinvest-body { overflow: hidden; }

/* ── Results panel ── */
.calc-result-main {
  padding: 24px 20px 16px; border-bottom: 1px solid var(--border); text-align: center;
}
.calc-result-main-label {
  font-size: .72rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px;
}
.calc-result-main-value {
  font-size: 1.8rem; font-weight: 700; color: var(--text);
  font-family: var(--font-head); letter-spacing: -.03em;
  word-break: break-word; line-height: 1.2;
}
.calc-result-growth-row {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px;
}
.calc-result-growth {
  font-size: .85rem; font-weight: 700; color: var(--green);
  background: rgba(0,200,150,.12); padding: 2px 8px; border-radius: 20px;
}
.calc-result-period { font-size: .8rem; color: var(--text-dim); }

/* Bar */
.calc-bar-section { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.calc-bar {
  height: 10px; border-radius: 6px; background: var(--surface);
  display: flex; overflow: hidden; margin-bottom: 8px;
}
.calc-bar-seg { height: 100%; transition: width .4s ease; min-width: 0; }
.calc-bar-principal { background: var(--primary); }
.calc-bar-contrib    { background: var(--purple); }
.calc-bar-income     { background: var(--green); }
.calc-bar-legend {
  display: flex; gap: 12px; font-size: .72rem; color: var(--text-dim); flex-wrap: wrap;
}
.calc-bar-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px;
  vertical-align: middle;
}
.calc-bar-dot-p { background: var(--primary); }
.calc-bar-dot-c { background: var(--purple); }
.calc-bar-dot-i { background: var(--green); }

/* Result rows */
.calc-rows { padding: 10px 20px 16px; display: flex; flex-direction: column; gap: 0; }
.calc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(30,36,64,.5); gap: 8px;
}
.calc-row:last-child { border-bottom: none; }
.calc-row-label { font-size: .82rem; color: var(--text-muted); }
.calc-row-label small { font-size: .7rem; color: var(--text-dim); }
.calc-row-val   { font-size: .85rem; font-weight: 600; font-family: var(--font-mono); text-align: right; }
.calc-row-hl .calc-row-label { color: var(--text); }
.calc-row-green { color: var(--green); }
.calc-row-red   { color: var(--red); }
.calc-row-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Placeholder */
.calc-placeholder {
  padding: 40px 20px; text-align: center; color: var(--text-dim);
}
.calc-placeholder-icon { font-size: 2.5rem; margin-bottom: 10px; }
.calc-placeholder p { font-size: .85rem; }

/* Info section */
.calc-info-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.calc-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.calc-info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.calc-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.calc-info-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.calc-info-card p  { font-size: .8rem; color: var(--text-muted); line-height: 1.55; }

/* Responsive */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results-sticky { position: static; }
  .calc-result-main-value { font-size: 2rem; }
  .calc-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .calc-currency-tab-inner { padding: 10px; font-size: .82rem; }
  .calc-result-main-value  { font-size: 1.6rem; }
  .calc-info-card          { flex-direction: column; gap: 8px; }
}
