/* =============================================
   Startup Market — shared.css
   Font: IBM Plex Sans — the open-source family Binance's "BinancePlex" is
   built on. Tabular figures give prices/metrics the Binance trading look.
   Theme: Binance dark — #181A20 surface, #FCD535 yellow accent.
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg: #181A20;
  --bg2: #1E2329;
  --bg3: #2B3139;
  --border: #2B3139;
  --border2: #474D57;
  --text: #EAECEF;
  --text2: #B7BDC6;
  --text3: #848E9C;
  --accent: #FCD535;
  --accent2: #F0B90B;
  --green: #0ECB81;
  --green-bg: rgba(14,203,129,0.12);
  --red: #F6465D;
  --red-bg: rgba(246,70,93,0.12);
  /* Trading semantics — used only for metric up/down (price/growth) indicators,
     matching Binance: price-up green / price-down red. */
  --trading-up: #0ECB81;
  --trading-down: #f6465d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.30);
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

/* NAV — flex row: logo + tabs grouped on the left, controls pushed to the right */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,17,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 54px;
  display: flex; align-items: center; gap: 18px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.nav-center { display: flex; gap: 2px; }
.nav-link {
  padding: 5px 12px; border-radius: 6px; font-size: 13px;
  font-weight: 500; color: var(--text2); text-decoration: none; transition: all 0.12s;
}
.nav-link:hover { background: var(--bg3); color: var(--text); }
.nav-link.active { background: var(--bg3); color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-acct { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hamburger — hidden on desktop, shown on mobile (see media query at the bottom) */
.nav-burger {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; width: 38px; height: 38px; padding: 0;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px; cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.nav-burger:hover { border-color: var(--text2); }

/* Mobile drawer — slides in from the right, full-height overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; transition: opacity 0.25s; }
.mobile-menu.open .mm-backdrop { opacity: 1; }
.mm-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px);
  background: var(--bg2); border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; padding: 14px 16px 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.28s ease;
}
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mm-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  background: var(--bg3); border: none; color: var(--text2);
}
.mm-close:hover { background: var(--border2); color: var(--text); }
.mm-links { display: flex; flex-direction: column; gap: 2px; }
.mm-link {
  padding: 13px 12px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--text); text-decoration: none; transition: background 0.12s;
}
.mm-link:hover, .mm-link:active { background: var(--bg3); }
.mm-link.active { color: var(--accent); background: var(--bg3); }
.mm-divider { height: 1px; background: var(--border); margin: 14px 0; }
.mm-auth { display: flex; flex-direction: column; gap: 8px; }
.mm-auth .btn, .mm-sell { width: 100%; justify-content: center; padding: 12px 14px; font-size: 14px; }
.mm-auth .nav-acct { max-width: none; }
.mm-sell { margin-top: 10px; }
.mm-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-lang {
  padding: 8px 12px; border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
}
.mm-lang:hover { border-color: var(--text2); color: var(--text); }
.mm-lang.active { border-color: var(--accent); color: var(--accent); }
body.mm-lock { overflow: hidden; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px; font-size: 13px;
  font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all 0.12s; border: none; font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
}
.btn-ghost { background: var(--bg2); color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }
.btn-primary { background: var(--accent); color: #181A20; font-weight: 600; }
.btn-primary:hover { background: var(--accent2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* BADGES */
.badge { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 999px; }
.badge-cat { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.badge-sale { background: rgba(252,213,53,0.14); color: var(--accent2); border: 1px solid rgba(252,213,53,0.25); }
.badge-verified { background: var(--green-bg); color: var(--green); border: 1px solid rgba(14,203,129,0.2); }

/* Country flag image (flagcdn) — uniform height, OS-independent */
.flag-img { height: 11px; width: auto; border-radius: 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); display: inline-block; }

/* TOOLTIP */
.tip-wrap { position: relative; display: inline-flex; align-items: center; }
.tip-icon {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--text3); display: inline-flex; align-items: center;
  justify-content: center; font-size: 8px; color: var(--text3);
  cursor: default; font-weight: 600; user-select: none;
}
.tip-wrap:hover .tip-icon { border-color: var(--text2); color: var(--text2); }
.tip-box {
  display: none; position: absolute; bottom: calc(100% + 7px);
  left: 50%; transform: translateX(-50%);
  background: #0B0E11; color: #EAECEF; font-size: 11px;
  line-height: 1.45; padding: 7px 10px; border-radius: 7px;
  border: 1px solid var(--border);
  pointer-events: none; z-index: 200; width: 190px; white-space: normal; font-weight: 400;
}
.tip-box::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 5px solid transparent; border-top-color: #0B0E11;
}
.tip-wrap:hover .tip-box { display: block; }

/* SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, #3a424d 50%, var(--bg3) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 480px;
}
.modal h2 { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif; font-size: 22px; margin-bottom: 8px; }
.modal p { color: var(--text2); font-size: 14px; margin-bottom: 20px; }
.modal input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif; padding: 10px 14px; outline: none; margin-bottom: 12px;
}
.modal input:focus { border-color: var(--accent); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 12px; color: var(--text3); }
footer a { color: var(--text2); }
footer.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.foot-copy { color: var(--text3); }
.foot-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.foot-links a { color: var(--text2); text-decoration: none; transition: color 0.14s; }
.foot-links a:hover { color: var(--accent); }

/* ── Cookie / tracking consent banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 0; right: 0; margin: 0 auto; z-index: 1000;
  width: calc(100% - 32px); max-width: 720px;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transform: translateY(160%); opacity: 0; transition: transform 0.28s ease, opacity 0.28s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-text { flex: 1; min-width: 220px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.cookie-text a { color: var(--accent); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { padding: 8px 14px; border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: all 0.14s; }
.cookie-btn.primary { background: var(--accent); color: #181A20; }
.cookie-btn.primary:hover { background: var(--accent2); }
.cookie-btn.ghost { background: transparent; color: var(--text2); border-color: var(--border2); }
.cookie-btn.ghost:hover { color: var(--text); border-color: var(--text3); }
@media (max-width: 560px) {
  .cookie-banner { bottom: 8px; width: calc(100% - 16px); padding: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── PAYWALL BLUR + TOOLTIP ─────────────────────────────────────────────────
   Any element marked .paywall-blur (or the legacy aliases .name-blur,
   .logo-blur, .owner-blur) is visually obscured until the buyer spends a
   reveal from their daily quota. Hovering shows a unified tooltip that
   adapts to the auth state (guest / user / subscriber). */
.paywall-blur, .name-blur, .logo-blur, .owner-blur {
  filter: blur(5px);
  user-select: none;
  cursor: pointer;
  transition: filter 0.2s;
}
.name-blur { filter: blur(6px); }
.logo-blur { filter: blur(4px); }
.owner-blur { filter: blur(5px); display: inline-block; }
.card:hover .name-blur, .card:hover .paywall-blur { filter: blur(3px); }

#paywallTip {
  position: fixed; z-index: 9999; pointer-events: none; opacity: 0;
  background: #0B0E11; color: white; border-radius: 10px; padding: 12px 14px;
  border: 1px solid var(--border);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif; font-size: 12px;
  max-width: 280px; line-height: 1.5;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}
#paywallTip.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#paywallTip .pt-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
#paywallTip .pt-body  { color: rgba(255,255,255,0.78); margin-bottom: 10px; }
#paywallTip .pt-cta   {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--accent); border-radius: 7px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: none; color: #181A20; font-family: inherit;
}
#paywallTip .pt-cta:hover { background: var(--accent2); }
#paywallTip .pt-sub-cta {
  display: block; margin-top: 8px; font-size: 11px;
  color: rgba(255,255,255,0.7); text-decoration: underline; cursor: pointer;
}

/* Paywall modal — opened on click of any blurred element */
#paywallModalBg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 24px; }
#paywallModalBg.open { display: flex; }
.pw-modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); position: relative; font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif; }
.pw-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer; color: var(--text3); font-size: 24px; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.pw-modal-close:hover { background: var(--bg3); color: var(--text); }
.pw-modal-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(252,213,53,0.12); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pw-modal h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.pw-modal p  { font-size: 13px; color: var(--text2); line-height: 1.55; margin-bottom: 18px; }
.pw-modal-cta { width: 100%; padding: 11px 16px; background: var(--accent); color: #181A20; border: none; border-radius: 9px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pw-modal-cta:hover { background: var(--accent2); }
.pw-modal-cta.secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.pw-modal-cta.secondary:hover { background: var(--bg); border-color: var(--text2); }
.pw-modal-offer { margin-top: 14px; padding: 14px; background: linear-gradient(135deg, rgba(252,213,53,0.08), rgba(14,203,129,0.06)); border: 1px solid var(--border); border-radius: 11px; }
.pw-modal-offer-title { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pw-modal-offer-body  { font-size: 12px; color: var(--text2); line-height: 1.45; margin-bottom: 8px; }
.pw-modal-offer-link  { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; cursor: pointer; }
.pw-modal-offer-link:hover { color: var(--accent2); }

/* Sell startup modal */
#sellModalBg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; display: none; align-items: flex-start; justify-content: center; padding: 40px 24px; overflow-y: auto; }
#sellModalBg.open { display: flex; }
.sm-modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 540px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); position: relative; font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif; padding: 28px 28px 24px; }
.sm-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--text3); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.sm-modal-close:hover { background: var(--bg3); color: var(--text); }
.sm-modal h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 4px; }
.sm-modal-sub { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.sm-step { margin-bottom: 16px; }
.sm-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.sm-label .sm-required { color: var(--red); }
.sm-input, .sm-select, .sm-textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--text); outline: none; transition: border-color 0.12s; }
.sm-input:focus, .sm-select:focus, .sm-textarea:focus { border-color: var(--accent); background: var(--bg2); }
.sm-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.sm-hint { background: var(--bg3); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font-size: 12px; color: var(--text2); line-height: 1.55; margin-top: 8px; }
.sm-hint-list { padding-left: 16px; margin-top: 4px; }
.sm-hint-list li { margin-bottom: 2px; }
.sm-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--text2); }
.sm-toggle input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.sm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.sm-plan { background: var(--bg2); border: 1.5px solid var(--border); border-radius: 11px; padding: 12px 10px; cursor: pointer; transition: all 0.12s; position: relative; text-align: left; font-family: inherit; }
.sm-plan:hover { border-color: var(--border2); }
.sm-plan.selected { border-color: var(--accent); background: rgba(252,213,53,0.06); }
.sm-plan-price { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
select option { background: var(--bg3); color: var(--text); }
.sm-plan-tag   { font-size: 10px; color: var(--text3); margin-bottom: 8px; }
.sm-plan-popular { position: absolute; top: -7px; right: 8px; background: var(--accent); color: #181A20; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.sm-plan-feat { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text2); margin-top: 3px; }
.sm-submit { width: 100%; padding: 12px 16px; background: var(--accent); color: #181A20; border: none; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.sm-submit:hover { background: var(--accent2); }
.sm-submit:disabled { opacity: 0.6; cursor: wait; }
.sm-fallback { margin-top: 14px; padding: 12px 14px; background: rgba(252,213,53,0.05); border: 1px dashed rgba(252,213,53,0.25); border-radius: 9px; font-size: 12px; color: var(--text2); line-height: 1.5; text-align: center; }
.sm-fallback a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sm-success { padding: 18px; background: rgba(14,203,129,0.10); border: 1px solid rgba(14,203,129,0.25); border-radius: 11px; text-align: center; color: var(--green); font-size: 13px; }
.sm-success strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--green); }

@media (max-width: 600px) { .sm-plans { grid-template-columns: 1fr; } }

/* LANG SWITCHER */
.lang-switcher { position: relative; }
.lang-btn {
  padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--bg2); border: 1px solid var(--border2); color: var(--text2);
  cursor: pointer; font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif; transition: all 0.12s;
}
.lang-btn:hover { border-color: var(--text2); color: var(--text); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px; min-width: 130px; z-index: 300;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.lang-dropdown.open { display: block; }
.lang-option {
  padding: 6px 10px; border-radius: 6px; font-size: 13px;
  cursor: pointer; color: var(--text2); transition: background 0.1s;
}
.lang-option:hover { background: var(--bg3); }
.lang-option.active { color: var(--accent); font-weight: 600; }

@media (max-width: 760px) {
  nav { padding: 0 16px; gap: 12px; }
  .nav-center, .nav-right { display: none; }
  .nav-burger { display: inline-flex; }
}
