/* =========================================================================
   PROJECT REFERENCE PORT — exact visual language from project/src/index.css
   ========================================================================= */
:root {
  --bg: #07090a;
  --bg-card: #0d1011;
  --border: #232728;
  --border-bright: #383e3e;
  --text: #f2f4f3;
  --text-dim: #9ba3a1;
  --text-faint: #6b7371;
  --accent: #4ade80;
  --accent-bright: #5ff5a0;
  --accent-dim: rgba(74, 222, 128, .15);
  --mx-accent: #4ade80;
  --green: #4ade80;
  --green-bright: #5ff5a0;
}

html[data-theme],
html[data-theme] body,
html, body {
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand-text { font-family: 'Space Grotesk', sans-serif; }
.brand-text, .hero-copy h1 { font-family: 'Unbounded', sans-serif; }

#app.app-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, #131819, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, #0e1513, transparent 50%),
    var(--bg);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 1;
}
.ambient-glow-one { width: 500px; height: 500px; top: -250px; left: 30%; background: #2dd47e; opacity: .05; }
.ambient-glow-two { width: 400px; height: 400px; right: -200px; top: 40%; background: #1a8d54; opacity: .04; }
.ambient-glow-three { width: 350px; height: 350px; left: -150px; bottom: 10%; background: #2dd47e; opacity: .03; }

.site-header.app-header,
.app-header.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 0 !important;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 10, .8) !important;
  border-bottom: 1px solid rgba(35, 39, 40, .5) !important;
  box-shadow: none !important;
  inset: auto !important;
  opacity: 1 !important;
}
.site-header .header-inner {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
}
.site-header .header-profile {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: min(240px, calc(100vw - 128px)) !important;
  min-width: 148px !important;
  height: 52px !important;
  padding: 5px 10px 5px 5px !important;
  margin: 0 !important;
  border: 1px solid rgba(74, 222, 128, .28) !important;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(74, 222, 128, .14), transparent 55%),
    linear-gradient(180deg, rgba(16, 22, 20, .98), rgba(8, 11, 10, .98)) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.32) !important;
  border-radius: 18px !important;
  flex: 0 1 auto !important;
}
.site-header .header-profile:hover,
.site-header .header-profile:focus-visible {
  background: linear-gradient(180deg, rgba(20, 28, 24, .98), rgba(12, 16, 14, .98)) !important;
  border-color: rgba(74, 222, 128, .4) !important;
}
.site-header .header-profile::after { display: none !important; content: none !important; }
.site-header .header-avatar {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  position: relative;
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  color: #07120d !important;
  background: var(--accent) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 0 16px rgba(74, 222, 128, .28) !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
.site-header .header-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.site-header .header-avatar-inner {
  display: grid;
  place-items: center;
  color: #07120d !important;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}
.site-header .header-profile-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  max-width: 132px !important;
  line-height: 1.1 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow: hidden !important;
}
.site-header .header-name,
.site-header #header-name {
  display: block !important;
  max-width: 132px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #f4f7f5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -.3px !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}
.site-header .header-balance,
.site-header #header-balance {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  white-space: nowrap !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}
.site-header .header-profile-chevron {
  display: grid;
  place-items: center;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: 2px;
}
.header-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.header-nav button {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color .2s;
  background: none;
  border: none;
  padding: 0;
}
.header-nav button:hover,
.header-nav button.active { color: var(--text); }
.site-header .header-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  margin-left: auto;
}
.site-header .bot-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: var(--accent) !important;
  color: #07120d !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
}
.site-header .bot-button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74, 222, 128, .3); }
.site-header .round-action,
.site-header .header-notifications-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}
.site-header .header-support-btn,
.site-header .header-icon-btn,
.site-header #header-lang-btn,
.site-header #header-theme-btn {
  display: none !important;
}
.site-header .header-notifications-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #07120d;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.app-main {
  max-width: none;
  margin: 0;
  padding: 0 !important;
  width: 100%;
  position: relative;
  z-index: 1;
}
#user-menu.dashboard,
.home-screen.dashboard,
.home-screen {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.home-screen .main-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  width: 100%;
}

.hero-card {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 50px 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(circle at 85% 50%, rgba(36, 42, 41, .5), transparent 40%),
    linear-gradient(125deg, #101415 0%, #0a0c0d 55%, #0e1213 100%);
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 540px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 3.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); display: inline-block; }
.hero-copy h1 {
  font-size: clamp(48px, 6.5vw, 72px);
  line-height: .95;
  letter-spacing: -3px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-copy h1 em { display: block; color: var(--accent); font-style: normal; text-shadow: 0 0 30px rgba(74, 222, 128, .2); }
.hero-copy p { font-size: 16px; line-height: 1.6; color: var(--text-dim); font-weight: 500; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.primary-button,
.cta-button,
.info-cta-btn,
.exchange-submit-btn,
.history-empty-cta,
.btn-gold {
  height: 56px;
  padding: 0 6px 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  border-radius: 30px;
  color: #07120d !important;
  background: var(--accent) !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(74, 222, 128, .25);
  border: none !important;
}
.primary-button:hover,
.cta-button:hover,
.exchange-submit-btn:hover,
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(74, 222, 128, .4);
}
.button-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #dafff0;
  background: #0f1e18;
  border-radius: 50%;
  flex-shrink: 0;
}
.ghost-button {
  height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 30px;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
}
.ghost-button:hover { border-color: var(--accent); background: rgba(74, 222, 128, .06); }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(35, 39, 40, .6); }
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--text); }
.hero-stats span { font-size: 12px; color: var(--text-faint); }

.coin-scene { position: absolute; width: 46%; height: 100%; top: 0; right: 0; transform: rotate(-8deg); }
.orbit { position: absolute; border: 1px solid rgba(224, 231, 229, .4); border-radius: 50%; display: block !important; }
.orbit-one { width: 420px; height: 130px; top: 100px; left: 0; transform: rotate(-28deg); box-shadow: 0 0 14px rgba(255, 255, 255, .1); }
.orbit-two { width: 370px; height: 155px; top: 110px; left: 30px; transform: rotate(25deg); opacity: .4; }
.hero-coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #101314, #b9bdbd 47%, #303334 49%, #080909 82%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5), inset 0 0 0 3px #6d7070, inset 0 0 0 9px #242627;
  animation: mx-float 6s ease-in-out infinite;
}
.coin-face {
  display: grid;
  place-items: center;
  width: 72%;
  height: 72%;
  border: 1px solid #747878;
  border-radius: 50%;
  color: #bfc4c3;
  background: linear-gradient(145deg, #9ba09f, #353a3b 57%, #9da2a1);
  box-shadow: inset 0 0 10px #161819;
}
.coin-face svg { filter: drop-shadow(2px 2px 1px #252728); }
.coin-face span { font-size: 44px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.coin-btc { width: 140px; height: 140px; top: 130px; left: 120px; transform: rotate(12deg); --r: 12deg; }
.coin-btc .coin-face { color: #f7931a; }
.coin-usdt { width: 130px; height: 130px; top: 50px; right: 50px; transform: rotate(16deg); animation-delay: 1.5s; --r: 16deg; }
.coin-usdt .coin-face, .coin-usdt .coin-face span { color: #26a17b; }
.coin-xmr { width: 95px; height: 95px; top: 30px; left: 70px; transform: rotate(18deg); animation-delay: 3s; --r: 18deg; }
.coin-xmr .coin-face { color: #ff6600; }
.star { position: absolute; color: #fcffff; text-shadow: 0 0 12px #fff; animation: mx-twinkle 3s ease-in-out infinite; }
.star-one { top: 70px; right: 160px; font-size: 18px; }
.star-two { top: 100px; right: 230px; font-size: 10px; animation-delay: 1s; }
.star-three { bottom: 80px; right: 100px; font-size: 14px; animation-delay: 2s; }
@keyframes mx-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 12deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 12deg)); } }
@keyframes mx-twinkle { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.section-heading { margin-bottom: 24px; }
.section-heading.centered {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  margin-bottom: 32px;
  gap: 0 !important;
}
.section-heading.centered h2,
.section-heading.centered p {
  width: 100% !important;
  max-width: 520px;
  text-align: center !important;
}
.section-heading h2,
.view-header h2,
.history-title,
.roulette-hero-title {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}
.section-heading p,
.view-header p,
.history-subtitle,
.roulette-hero-tagline { margin-top: 8px !important; color: var(--text-dim); font-size: 15px; }
.link-button { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; font-weight: 500; }
.link-button:hover { color: var(--accent); }
.section-heading:not(.centered) { display: flex; align-items: flex-end; justify-content: space-between; }

.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.benefit-card,
.bonus-card,
.info-card,
.currency-card,
.pay-card,
.contact-card,
.exchange-card,
.order-summary-card,
.home-admin-card,
.roulette-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 20, 21, .9), rgba(10, 12, 13, .9));
  transition: transform .25s, border-color .25s;
}
.benefit-card:hover,
.bonus-card:hover,
.currency-card:hover,
.contact-card:hover,
.roulette-card:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, .4); }
.benefit-icon, .bonus-icon, .info-icon {
  width: 52px !important; height: 52px !important; display: grid !important; place-items: center;
  border-radius: 15px !important; color: var(--accent) !important;
  background: rgba(74, 222, 128, .08) !important;
  border: 1px solid rgba(74, 222, 128, .2) !important;
  margin-bottom: 16px;
}
.benefit-icon svg,
.bonus-icon svg,
.info-icon svg,
.currency-icon svg,
.coin-face svg,
.cta-badge svg,
.contact-icon svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: inherit !important;
  stroke: currentColor;
  flex-shrink: 0;
}
.coin-face svg { width: 42px; height: 42px; }
.coin-xmr .coin-face svg { width: 28px; height: 28px; }
.benefit-card h3, .bonus-card h3, .info-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.benefit-card p, .bonus-card p, .info-card p { font-size: 13px; line-height: 1.5; color: var(--text-dim); }

.currencies-section, .bonuses-section, .pay-section { margin-top: 48px; }
.currency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.currency-card { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; text-align: left; width: 100%; }
.currency-icon {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  flex-shrink: 0 !important;
  font-weight: 700;
}
.currency-icon .glyph { font-size: 22px; font-family: 'Space Grotesk', sans-serif; }
.btc { color: #f7931a; background: rgba(247, 147, 26, .1); border: 1px solid rgba(247, 147, 26, .25); }
.usdt { color: #26a17b; background: rgba(38, 161, 123, .1); border: 1px solid rgba(38, 161, 123, .25); }
.ltc { color: #a6a9aa; background: rgba(166, 169, 170, .1); border: 1px solid rgba(166, 169, 170, .25); }
.xmr { color: #ff6600; background: rgba(255, 102, 0, .1); border: 1px solid rgba(255, 102, 0, .25); }
.eth { color: #627eea; background: rgba(98, 126, 234, .1); border: 1px solid rgba(98, 126, 234, .25); }
.ton { color: #0098ea; background: rgba(0, 152, 234, .1); border: 1px solid rgba(0, 152, 234, .25); }
.currency-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.currency-copy strong { font-size: 15px; font-weight: 600; color: var(--text); }
.currency-copy span { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.currency-copy small { font-size: 11px; color: var(--text-dim); }
.currency-arrow {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .04);
  color: var(--text-dim); flex-shrink: 0; margin-left: auto;
}
.currency-card:hover .currency-arrow { background: var(--accent); color: #07120d; }
.skeleton { pointer-events: none; }
.skeleton-line { width: 80px; height: 14px; margin-bottom: 6px; background: rgba(255, 255, 255, .04); border-radius: 8px; }
.skeleton-line.short { width: 50px; height: 12px; }

.bonuses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bonus-card { position: relative; padding: 28px 24px; overflow: hidden; cursor: pointer; }
.bonus-glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent); opacity: .05; filter: blur(40px); }
.pay-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.pay-card { display: flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 16px; color: var(--text-dim); font-size: 15px; font-weight: 600; }

.cta-card {
  margin-top: 48px;
  padding: 56px 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, .06), transparent 60%), linear-gradient(145deg, #101415, #0a0c0d);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 400px; height: 200px; background: var(--accent); opacity: .06; filter: blur(60px); border-radius: 50%; }
.cta-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--accent); background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .2); margin-bottom: 20px; }
.cta-card h2 { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; }
.cta-card p { font-size: 16px; color: var(--text-dim); max-width: 480px; line-height: 1.6; margin-bottom: 28px; }

.site-footer { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-tagline { font-size: 14px; color: var(--text-dim); max-width: 400px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a,
.footer-links button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 13px; color: var(--text-dim); font-weight: 500; background: transparent;
}
.footer-links a:hover, .footer-links button:hover { color: var(--accent); border-color: rgba(74, 222, 128, .3); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-faint);
}
.footer-disclaimer { font-style: italic; }

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  height: 68px;
  padding: 8px;
  border: 1px solid var(--border-bright);
  border-radius: 22px;
  background: rgba(13, 16, 17, .95);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  z-index: 100;
}
@media (min-width: 901px) {
  .bottom-nav,
  .bottom-nav.visible {
    display: none !important;
  }
}
.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 500;
  background: none;
  border: none;
}
.bottom-nav .nav-icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: transparent; color: inherit; box-shadow: none;
}
.bottom-nav .nav-item.active { color: var(--accent); font-weight: 500; }
.bottom-nav .nav-item.active .nav-icon { background: rgba(74, 222, 128, .1); color: var(--accent); box-shadow: none; }

.view-section { padding-top: 8px; }
.view-header { margin-bottom: 32px; }
.exchange-container, .history-container, .info-page, .roulette-page, .form-screen, .profile-screen .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 100px;
}
.exchange-form, .exchange-card, .history-orders-list .history-order-card, .coupons-list .coupon-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 20, 21, .9), rgba(10, 12, 13, .9));
}
.exchange-card { padding: 20px; margin-bottom: 16px; }
.exchange-amount-input, .exchange-wallet-input, .input-text, textarea.input-text {
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
}
.exchange-amount-input:focus, .exchange-wallet-input:focus, .input-text:focus {
  border-color: var(--accent);
  outline: none;
}
.exchange-submit-btn { width: 100%; height: 54px; margin-top: 8px; }
.exchange-select-wrap, .exchange-method-grid .exchange-method-btn, .payment-method-chip {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text);
}
.exchange-method-btn.active, .payment-method-chip.active, .exchange-toggle-btn.active {
  border-color: var(--accent);
  background: rgba(74, 222, 128, .08);
  color: var(--accent);
}
.history-order-card, .order-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 20, 21, .9), rgba(10, 12, 13, .9));
}
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.info-contacts h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.contact-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; }
.contact-icon.bot { color: var(--accent); background: rgba(74, 222, 128, .08); }
.contact-icon.support { color: #60a5fa; background: rgba(96, 165, 250, .08); }
.contact-icon.news { color: #fbbf24; background: rgba(251, 191, 36, .08); }
.contact-card strong { font-size: 14px; font-weight: 600; display: block; color: var(--text); }
.contact-card span { font-size: 12px; color: var(--text-dim); }
.info-cta {
  text-align: center;
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, .06), transparent 60%), linear-gradient(145deg, #101415, #0a0c0d);
}
.info-cta h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.info-cta p { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.roulette-hero { margin-bottom: 28px; }
.roulette-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roulette-card { text-align: left; cursor: pointer; }
.profile-screen .container, .referral-program-container, .referral-subpage-container {
  max-width: 640px; margin: 0 auto; padding: 8px 16px 100px;
}
.home-recent { margin-top: 48px; }
.home-section-title { font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.home-section-link { color: var(--text-dim); }
.home-section-link:hover { color: var(--accent); }
.home-recent-item, .home-admin-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 20, 21, .9), rgba(10, 12, 13, .9));
  color: var(--text); margin-top: 12px;
}
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.hero-grid, .hero-orb { display: none !important; }
.coin:not(.hero-coin) { display: none; }
.coin-scene .orbit { display: block !important; }

@media (max-width: 900px) {
  .header-nav { display: none !important; }
  .benefits-grid, .bonuses-grid { grid-template-columns: repeat(2, 1fr); }
  .currency-grid, .info-cards, .contact-links, .roulette-cards { grid-template-columns: 1fr 1fr; }
  .home-screen .main-content { padding: 16px 16px 24px; }
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    min-height: 0;
  }
  .hero-copy { max-width: 100%; padding-right: 0; }
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy p { padding-right: 36%; }
  .coin-scene {
    position: absolute;
    width: 46%;
    height: 100%;
    top: 0;
    right: 0;
    margin-top: 0;
    transform: rotate(-8deg);
    pointer-events: none;
  }
  .coin-btc { width: 100px !important; height: 100px !important; top: 16%; left: 10%; }
  .coin-usdt { width: 90px !important; height: 90px !important; top: 3%; right: 2%; }
  .coin-xmr { width: 70px !important; height: 70px !important; top: 0; left: 0; }
  .coin-face svg { width: 32px !important; height: 32px !important; }
  .coin-xmr .coin-face svg { width: 22px !important; height: 22px !important; }
  .orbit-one { width: 240px; height: 78px; top: 24%; left: 0; }
  .orbit-two { width: 210px; height: 86px; top: 28%; left: 8px; }
  .hero-stats { gap: 20px; margin-top: 24px; padding-top: 20px; }
  .hero-stats strong { font-size: 22px; }
  .benefits-grid { margin-top: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .bottom-nav, .bottom-nav.visible { display: flex !important; justify-content: space-between; }
  .home-screen .main-content { padding-bottom: 96px; }
}

@media (max-width: 600px) {
  .home-screen .main-content { padding: 12px 12px 96px; }
  .site-header .header-inner { padding: 0 12px !important; gap: 8px !important; }
  .site-header .brand-text { font-size: 14px !important; }
  .site-header .header-profile {
    min-width: 0 !important;
    max-width: min(228px, calc(100vw - 116px)) !important;
  }
  .site-header .bot-button span { display: none; }
  .site-header .bot-button { width: 44px !important; padding: 0 !important; }
  .hero-card { padding: 20px 16px; border-radius: 20px; }
  .hero-copy { padding-right: 0; }
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy p { padding-right: 40%; }
  .hero-copy h1 { font-size: clamp(30px, 8.4vw, 38px); letter-spacing: -1.6px; margin-bottom: 10px; }
  .hero-copy p { font-size: 13px; margin-bottom: 16px; }
  .eyebrow { font-size: 9px; gap: 8px; letter-spacing: 2px; margin-bottom: 12px; }
  .hero-actions { gap: 10px; }
  .primary-button, .cta-button, .info-cta-btn { height: 48px; font-size: 14px; gap: 10px; padding: 0 5px 0 16px; }
  .ghost-button { height: 48px; font-size: 14px; padding: 0 16px; }
  .button-arrow { width: 36px; height: 36px; }
  .hero-stats { flex-wrap: nowrap; gap: 12px; margin-top: 18px; padding-top: 16px; width: 100%; }
  .hero-stats > div { flex: 1; min-width: 0; }
  .hero-stats strong { font-size: 18px; }
  .coin-btc { width: 100px !important; height: 100px !important; top: 14%; left: 6%; }
  .coin-usdt { width: 90px !important; height: 90px !important; top: 1%; right: 0; }
  .coin-xmr { width: 70px !important; height: 70px !important; top: -2%; left: -6%; }
  .orbit-one { width: 220px; height: 70px; }
  .orbit-two { width: 190px; height: 76px; }
  .coin-face span { font-size: 34px !important; }
  .benefits-grid, .bonuses-grid, .currency-grid, .info-cards, .contact-links, .roulette-cards { grid-template-columns: 1fr; }
  .currencies-section, .bonuses-section, .pay-section, .cta-card { margin-top: 28px; }
  .section-heading h2, .view-header h2, .history-title { font-size: 22px; }
  .cta-card { padding: 28px 20px; border-radius: 20px; }
  .cta-card h2 { font-size: 24px; }
  .pay-card { padding: 12px 20px; font-size: 13px; }
  .footer-links { gap: 12px; }
  .footer-links a, .footer-links button { padding: 8px 16px; font-size: 12px; }
}

/* Override leftover premium.css layout that squeezed the Telegram home screen */
.home-screen .main-content {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.bottom-nav,
.bottom-nav.visible {
  width: calc(100% - 32px) !important;
  max-width: 420px !important;
}
.hero-card {
  min-height: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .home-screen .main-content { padding: 16px 16px 96px !important; }
  .hero-card { padding: 24px 20px !important; border-radius: 22px !important; }
  .hero-copy h1, .hero-card h1 { font-size: clamp(32px, 7vw, 40px) !important; }
}
@media (max-width: 600px) {
  .home-screen .main-content { padding: 12px 12px 96px !important; }
  .hero-card { padding: 20px 16px !important; border-radius: 20px !important; }
  .hero-copy h1, .hero-card h1 { font-size: clamp(30px, 8.4vw, 38px) !important; letter-spacing: -1.6px !important; }
}
