/* ═══════════════════════════════════════════════════════════
   COSMIC THEME — fonts: Orbitron (display/headers), Rajdhani
   (UI labels), Space Grotesk (body/UI text).
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

/* safety net: any element without an explicit color rule should still
   read as light text on this dark cosmic background, never browser-default black */
body { color: var(--cream, #E7E9FF); }
a { color: inherit; text-decoration: none; }

:root {
  /* shared color tokens */
  --wood-dark:   #1F0748;
  --wood-mid:    #33136A;
  --wood-light:  #431B89;
  --gold:        #9D6FFF;  /* brightened from #7940DA — old value was only ~3.5:1 contrast on dark bg, too low for text */
  --gold-bright: #0AD6FF;
  --gold-light:  #66E1F9;
  --gold-dim:    #420E9C;
  --parchment:   #B9AEFF;
  --wood-tan:    #8B7FE8;
  --cream:       #E7E9FF;
  --cream-dark:  #C7CBF0;
  --stone:       #7C82B8;
  --green:       #4ADE80;
  --red:         #F87171;
  --blue:        #60A5FA;
  --orange:      #FB923C;
  --purple:      #C084FC;
  /* backgrounds */
  --bg:          #05060F;
  --bg2:         #0A0C1F;
  --bg3:         #10132E;
  --card:        #0D0F26;
  --card2:       #161A3D;
  /* borders */
  --border:      rgba(121,64,218,0.25);
  --border-b:    rgba(121,64,218,0.5);
  /* legacy aliases kept for landing compatibility */
  --green-accent: #2A5C1A;
  /* cosmic accents (2026 aurora/holographic trend) */
  --nova-cyan:    #22D3EE;
  --nova-violet:  #8B5CF6;
  --nova-pink:    #F472B6;
  --nova-glow:    0 0 24px rgba(139,92,246,0.45);
}


body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(139,92,246,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(34,211,238,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(244,114,182,0.08) 0%, transparent 65%),
    #05060F;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
/* twinkling starfield, layered so it never repeats identically */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 40% 65%, #fff 100%, transparent),
    radial-gradient(2px 2px at 65% 15%, rgba(255,255,255,0.9) 100%, transparent),
    radial-gradient(1px 1px at 78% 45%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,0.85) 100%, transparent),
    radial-gradient(1px 1px at 25% 85%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 55% 92%, rgba(255,255,255,0.8) 100%, transparent),
    radial-gradient(1px 1px at 8% 55%, #fff 100%, transparent),
    radial-gradient(2px 2px at 33% 40%, rgba(103,232,249,0.9) 100%, transparent),
    radial-gradient(1.5px 1.5px at 70% 70%, rgba(192,132,252,0.9) 100%, transparent);
  background-repeat: repeat;
  background-size: 340px 340px;
  animation: starTwinkle 6s ease-in-out infinite alternate;
  opacity: 0.75;
}
@keyframes starTwinkle {
  0%   { opacity: 0.45; }
  50%  { opacity: 0.85; }
  100% { opacity: 0.55; }
}
/* every direct child of body's stacking sits above the starfield */
body > * { position: relative; z-index: 1; }

::selection { background: rgba(139,92,246,0.4); color: #fff; }

/* slim neon scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0C1F; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--nova-violet), var(--nova-cyan));
  border-radius: 10px;
}

/* ═══ HERO SECTION ═══ */
.hero-section {
  position: relative;
/*  min-height: 100vh;*/
  background: url('/img/51872.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(0,0,0,0.08) 38px, rgba(0,0,0,0.08) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 78px, rgba(0,0,0,0.05) 78px, rgba(0,0,0,0.05) 80px);
  pointer-events: none; z-index: 1;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(66,14,156,0.6) 0%, transparent 70%),
    linear-gradient(180deg, transparent 30%, rgba(22,3,54,0.7) 100%);
  pointer-events: none; z-index: 2;
}
.hero-content { position: relative; z-index: 10; }

/* ─── NAV ─── */
.main-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(16,1,42,0.97) 0%, rgba(24,2,63,0.92) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 20px rgba(121,64,218,0.3), 0 6px 40px rgba(0,0,0,0.8);
  position: relative; z-index: 100;
}
.main-nav::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; /*height: 3px;*/
  background: linear-gradient(90deg, transparent, var(--wood-tan), var(--gold), var(--wood-tan), transparent);
}
.nav-logo { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.nav-logo-icon {
  width: 52px; height: 52px;
  background: radial-gradient(circle at 40% 35%, #0AD6FF, #4F07CB 60%, #33136A 100%);
  border-radius: 50%; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 0 15px rgba(10,214,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.nav-logo-text {
  font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900;
  color: var(--gold); text-shadow: 0 0 15px rgba(10,214,255,0.5), 2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  display: block; padding: 14px 22px;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--cream); text-decoration: none;
  text-transform: uppercase; text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transition: all 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }

/* mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: all 0.3s;
}

/* ─── HERO BANNER ─── */
.hero-banner {
  text-align: center; padding: 18px 20px 14px;
  background: linear-gradient(90deg, transparent 0%, rgba(12,1,31,0.85) 15%, rgba(12,1,31,0.9) 50%, rgba(12,1,31,0.85) 85%, transparent 100%);
  border-top: 1px solid rgba(121,64,218,0.3); border-bottom: 1px solid rgba(121,64,218,0.3);
}
.hero-banner h1 {
  font-family: 'Orbitron', sans-serif; font-size: clamp(14px, 2.5vw, 30px);
  font-weight: 900; letter-spacing: 0.2em; color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(10,214,255,0.6), 2px 2px 8px rgba(0,0,0,0.9);
  text-transform: uppercase;
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: flex; justify-content: center;
  background: linear-gradient(180deg, rgba(21,3,52,0.95) 0%, rgba(16,1,42,0.98) 100%);
  border-bottom: 2px solid rgba(121,64,218,0.4); flex-wrap: wrap;
}
.stat-block {
  padding: 12px 40px; text-align: center;
  border-right: 1px solid rgba(121,64,218,0.2); min-width: 130px;
}
.stat-block:last-child { border-right: none; }
.stat-block-label {
  font-family: 'Rajdhani', sans-serif; font-size: 9px; letter-spacing: 0.18em;
  color: var(--stone); text-transform: uppercase; margin-bottom: 4px;
}
.stat-block-value {
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--gold-bright); text-shadow: 0 0 10px rgba(10,214,255,0.4);
}
.stat-block-value.small { font-size: 16px; }

/* ─── HERO MAIN (3 columns) ─── */
.hero-main {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; min-height: 380px; padding: 10px;
  align-items: center; position: relative;
}

/* game description block */
.hero-desc-block {
  position: relative; z-index: 10; text-align: center;
}
.hero-desc-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 2.8vw, 48px);
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(10,214,255,0.6), 2px 2px 8px rgba(0,0,0,0.9);
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-desc-title span {
  display: block;
  color: var(--cream);
  font-size: 0.65em;
  letter-spacing: 0.15em;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
}
.hero-desc-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--cream-dark);
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  margin-bottom: 20px;
/*  font-style: italic;*/
}
.hero-desc-badges {
  display: flex; flex-direction: column; gap: 8px;
}
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(12,1,31,0.65);
  border: 1px solid rgba(121,64,218,0.35);
  border-radius: 3px; padding: 8px 12px;
  backdrop-filter: blur(4px);
}
.hero-badge-icon { font-size: 18px; flex-shrink: 0; }
.hero-badge-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  color: var(--cream); letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-badge-val {
  margin-left: auto;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(10,214,255,0.4);
}
.wood-frame {
  background: linear-gradient(145deg, rgba(40,13,87,0.92) 0%, rgba(31,7,71,0.92) 20%, rgba(51,19,106,0.92) 35%, rgba(31,7,71,0.92) 50%, rgba(40,13,87,0.92) 65%, rgba(58,21,122,0.92) 80%, rgba(40,13,87,0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139,92,246,0.5);
  box-shadow: 0 0 0 1px rgba(121,64,218,0.2), inset 0 0 0 1px rgba(103,232,249,0.12), 0 8px 40px rgba(0,0,0,0.6), var(--nova-glow);
  position: relative;
}
.wood-frame::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(121,64,218,0.2); pointer-events: none;
}
.auth-panel { border-radius: 4px; padding: 0; position: relative; z-index: 10; }
.auth-panel-header {
  background: linear-gradient(180deg, rgba(121,64,218,0.25) 0%, rgba(121,64,218,0.1) 100%);
  border-bottom: 2px solid var(--gold); padding: 10px 20px; text-align: center;
}
.auth-panel-title {
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--gold-bright); text-shadow: 0 0 10px rgba(10,214,255,0.4), 1px 1px 3px rgba(0,0,0,0.8);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.auth-form { padding: 20px; }
.auth-field {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 100%);
  border: 1px solid rgba(121,64,218,0.35); border-radius: 3px; padding: 0 12px;
}
.auth-field-icon { color: var(--gold); font-size: 16px; opacity: 0.8; flex-shrink: 0; }
.auth-field input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 11px 0; color: var(--cream); font-family: 'Space Grotesk', sans-serif; font-size: 20px;
}
.auth-field input::placeholder { color: var(--stone); opacity: 0.7; }
.auth-captcha { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.auth-captcha-img {
  background: linear-gradient(135deg, #B9AEFF, #9F8CF0); border: 1px solid var(--gold);
  border-radius: 3px; padding: 6px 14px;
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600;
  color: var(--wood-dark); letter-spacing: 0.15em; font-style: italic;
}
.auth-captcha .auth-field { flex: 1; margin: 0; }
.btn-login {
  width: 100%; padding: 12px;
  background: linear-gradient(180deg, #631EDA 0%, #420E9C 40%, #31067C 70%, #420E9C 100%);
  border: 2px solid var(--gold-bright); border-radius: 3px;
  color: var(--cream); font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.btn-login:hover {
  background: linear-gradient(180deg, #7939E6 0%, #4F16B1 40%, #38088B 70%, #4F16B1 100%);
  box-shadow: 0 4px 20px rgba(121,64,218,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* hero image area */
.hero-image-area {
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; z-index: 10; padding-bottom: 0;
}
.hero-mine-img {
  width: 100%; max-width: 380px;
  filter: drop-shadow(0 10px 40px rgba(121,64,218,0.4)) drop-shadow(0 0 80px rgba(66,14,156,0.5));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.btn-register-big {
  display: block; text-align: center; margin: 20px 40px; padding: 14px 20px;
  background: linear-gradient(180deg, #5C8A20 0%, #3A5C10 40%, #2A4208 70%, #3A5C10 100%);
  border: 2px solid #7AB030; border-radius: 3px;
  color: var(--cream); font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative; z-index: 10; transition: all 0.2s;
}
.btn-register-big::after {
  content: '▶▶'; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); font-size: 12px; color: #7AB030;
}
.btn-register-big:hover {
  background: linear-gradient(180deg, #70A030 0%, #4A7020 40%, #365010 70%, #4A7020 100%);
  box-shadow: 0 4px 25px rgba(90,160,30,0.25);
}

/* ═══ FEATURES BAR ═══ */
.features-bar {
  background: linear-gradient(180deg, rgba(16,1,42,0.98) 0%, rgba(12,1,31,1) 100%);
  border-top: 2px solid rgba(121,64,218,0.4); border-bottom: 2px solid rgba(121,64,218,0.4);
  padding: 18px 40px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; max-width: 900px; margin: 0 auto;
}
.feature-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  background: linear-gradient(180deg, rgba(121,64,218,0.08) 0%, rgba(121,64,218,0.03) 100%);
  border: 1px solid rgba(121,64,218,0.2); border-radius: 2px;
}
.feature-diamond {
  width: 28px; height: 28px;
  background: radial-gradient(circle at 40% 35%, #0AD6FF, #4F07CB 70%, #33136A 100%);
  border-radius: 50%; border: 1px solid var(--gold); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  box-shadow: 0 0 8px rgba(10,214,255,0.3);
}
.feature-text {
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--cream); text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* ═══ SECTION BLOCK ═══ */
.section-block {
  background: linear-gradient(180deg, rgba(12,1,31,1) 0%, rgba(16,1,42,1) 50%, rgba(25,12,2,1) 100%);
  position: relative; overflow: hidden;
}
.section-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(66,14,156,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(51,19,106,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(51,19,106,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.section-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px; position: relative; z-index: 1;
}

/* ─── WOOD TITLE ─── */
.wood-title-bar {
  text-align: center; margin-bottom: 32px; position: relative;
}
.wood-title-bar::before, .wood-title-bar::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 160px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(121,64,218,0.3));
}
.wood-title-bar::before { left: 0; }
.wood-title-bar::after { right: 0; background: linear-gradient(90deg, rgba(121,64,218,0.3), var(--gold), transparent); }
.wood-title {
  display: inline-block; padding: 8px 36px;
  background: linear-gradient(180deg, #280D57 0%, #1F0747 40%, #19063A 70%, #1F0747 100%);
  border: 2px solid var(--gold); border-radius: 2px;
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: var(--gold-bright);
  letter-spacing: 0.15em; text-transform: uppercase;
  text-shadow: 0 0 15px rgba(10,214,255,0.4), 1px 1px 3px rgba(0,0,0,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.wood-subtitle {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--stone);
  text-align: center; margin-top: -18px; margin-bottom: 28px; font-style: italic;
}

/* ─── HOW IT WORKS STEPS ─── */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px;
}
.how-step {
  background: linear-gradient(160deg, #19063A 0%, #120429 100%);
  border: 1px solid rgba(121,64,218,0.35); border-radius: 3px;
  padding: 7px 14px; text-align: center; position: relative; transition: all 0.25s;
}
.how-step:hover { border-color: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.how-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: rgba(121,64,218,0.4); font-size: 18px; z-index: 2;
}
.how-num { font-family: 'Rajdhani', sans-serif; font-size: 9px; color: var(--stone); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; }
.how-icon {  display: block; /*margin-bottom: 10px; font-size: 34px;*/}
.how-ttl { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; color: var(--gold-bright); margin-bottom: 6px; letter-spacing: 0.05em; margin-top: -10px;}
.how-dsc { font-size: 12px; color: #FFF; line-height: 1.5;  }

/* ─── MINER CARDS ─── */
.miners-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 12px; }
.miner-card {
  background: linear-gradient(180deg, #19063A 0%, #120429 100%);
  border: 2px solid rgba(121,64,218,0.5); border-radius: 2px;
  overflow: hidden; transition: all 0.25s; cursor: pointer; position: relative;
}
.miner-card:hover { border-color: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 20px rgba(121,64,218,0.2); }
.miner-card-header {
  background: linear-gradient(180deg, rgba(121,64,218,0.2) 0%, rgba(121,64,218,0.08) 100%);
  border-bottom: 1px solid rgba(121,64,218,0.3); padding: 5px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.miner-card-name { font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-bright); text-transform: uppercase; }
.miner-card-pct { font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--gold-bright); text-shadow: 0 0 8px rgba(10,214,255,0.5); }
.miner-portrait { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.miner-emoji-portrait { font-size: 70px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); position: relative; z-index: 1; }
.miner-portrait-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(66,14,156,0.3) 0%, rgba(12,1,31,0.8) 70%); }
.miner-card-stats { padding: 8px 10px; border-top: 1px solid rgba(121,64,218,0.2); }
.miner-income-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.income-label { font-family: 'Space Grotesk', sans-serif; font-size: 9px; color: var(--stone); font-style: italic; }
.income-value { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: var(--gold-bright); text-shadow: 0 0 6px rgba(10,214,255,0.3); }
.income-period { font-size: 9px; color: var(--stone); font-family: 'Space Grotesk', sans-serif; }
.price-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(121,64,218,0.15); padding-top: 5px; margin-top: 3px; }
.price-label { font-family: 'Space Grotesk', sans-serif; font-size: 9px; color: var(--stone); font-style: italic; }
.price-value { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; color: var(--cream); }

/* ─── MINES ─── */
.mines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mine-card {
  background: linear-gradient(160deg, #19063A 0%, #100325 50%, #140331 100%);
  border: 2px solid rgba(121,64,218,0.45); border-radius: 3px; overflow: hidden; transition: all 0.25s; cursor: pointer;
}
.mine-card:hover { border-color: var(--gold-bright); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 25px rgba(121,64,218,0.15); }
.mine-card-top {
  background: linear-gradient(180deg, rgba(121,64,218,0.15) 0%, rgba(121,64,218,0.05) 100%);
  border-bottom: 1px solid rgba(121,64,218,0.3); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mine-tier { font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.15em; padding: 3px 10px; border: 1px solid currentColor; border-radius: 2px; text-transform: uppercase; }
.mine-tier.t1 { color: #9CA3AF; }
.mine-tier.t2 { color: #2AFFD5; }
.mine-tier.t3 { color: var(--gold-bright); }
.mine-card-portrait {
  width: 100%; height: 160px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(66,14,156,0.25) 0%, rgba(9,3,20,0.9) 70%);
  font-size: 90px; position: relative; overflow: hidden;
}
.mine-card-portrait::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(0,0,0,0.06) 8px, rgba(0,0,0,0.06) 9px),
    repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(0,0,0,0.04) 16px, rgba(0,0,0,0.04) 17px);
}
.mine-name { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; color: var(--gold-bright); text-shadow: 0 0 10px rgba(10,214,255,0.3); }
.mine-card-body { padding: 16px; }
.mine-desc { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--stone); font-style: italic; line-height: 1.6; margin-bottom: 14px; }
.mine-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mine-stat-box { background: rgba(0,0,0,0.4); border: 1px solid rgba(121,64,218,0.2); border-radius: 2px; padding: 8px 10px; text-align: center; }
.mine-stat-val { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: var(--gold-bright); }
.mine-stat-lbl { font-size: 9px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Rajdhani', sans-serif; }
.mine-progress { margin-bottom: 14px; }
.mine-progress-top { display: flex; justify-content: space-between; font-size: 10px; color: var(--stone); font-family: 'Rajdhani', sans-serif; letter-spacing: 0.05em; margin-bottom: 5px; }
.mine-progress-track { height: 6px; background: rgba(0,0,0,0.5); border: 1px solid rgba(121,64,218,0.2); border-radius: 1px; overflow: hidden; }
.mine-progress-fill { height: 100%; background: linear-gradient(90deg, #420E9C, var(--gold-bright)); box-shadow: 0 0 6px rgba(10,214,255,0.4); }
.btn-enter-mine {
  display: block; width: 100%; padding: 10px;
  background: linear-gradient(180deg, #280D57 0%, #19063A 50%, #13042E 100%);
  border: 1px solid rgba(121,64,218,0.4); border-radius: 2px;
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--gold-light); text-align: center; cursor: pointer; text-transform: uppercase;
  transition: all 0.2s; text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.btn-enter-mine:hover { background: linear-gradient(180deg, #3A157A 0%, #280D57 50%, #1D0547 100%); border-color: var(--gold); box-shadow: 0 0 15px rgba(121,64,218,0.15); }

/* ─── BOTTOM: ACTIVITY + AUTH ─── */
.tables-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Activity feed */
.activity-box {
  background: linear-gradient(180deg, rgba(16,1,42,0.95) 0%, rgba(12,1,31,0.98) 100%);
  border: 1px solid rgba(121,64,218,0.3); border-radius: 3px; overflow: hidden;
}
.activity-box-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(121,64,218,0.2);
  background: linear-gradient(180deg, rgba(121,64,218,0.12) 0%, rgba(121,64,218,0.05) 100%);
}
.activity-box-title { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: var(--gold-bright); text-shadow: 0 0 8px rgba(10,214,255,0.3); }
.live-badge { display: flex; align-items: center; gap: 7px; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: #4ADE80; letter-spacing: 0.12em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 8px #4ADE80; animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.act-tabs { display: flex; border-bottom: 1px solid rgba(121,64,218,0.15); }
.act-tab { flex: 1; padding: 9px; text-align: center; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--stone); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; letter-spacing: 0.06em; text-transform: uppercase; }
.act-tab.on { color: var(--gold-bright); border-bottom-color: var(--gold); }
.act-table { width: 100%; border-collapse: collapse; }
.act-table tr { border-bottom: 1px solid rgba(121,64,218,0.08); transition: background 0.15s; }
.act-table tr:hover { background: rgba(121,64,218,0.04); }
.act-table tr:last-child { border-bottom: none; }
.act-table td { padding: 9px 12px; font-size: 12px; }
.td-t { font-family: 'Rajdhani', sans-serif; font-size: 10px; color: var(--stone); }
.td-f { font-size: 16px; }
.td-u { color: var(--cream); font-weight: bold; font-family: 'Space Grotesk', sans-serif; }
.td-a { text-align: right; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px; }
.td-a.pos { color: #4ADE80; }
.td-a.neg { color: #F87171; }
.td-bp { text-align: right; }
.bp { font-size: 9px; font-family: 'Rajdhani', sans-serif; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.bp-m { background: rgba(74,222,128,0.1); color: #FFF; border: 1px solid rgba(74,222,128,0.2); }
.bp-h { background: rgba(121,64,218,0.1); color: var(--gold); border: 1px solid rgba(121,64,218,0.2); }
.bp-u { background: rgba(251,146,60,0.1); color: #FB923C; border: 1px solid rgba(251,146,60,0.2); }

/* Auth join box */
.auth-join-box {
  background: linear-gradient(160deg, #19063A 0%, #100325 100%);
  border: 2px solid rgba(121,64,218,0.45); border-radius: 3px; padding: 0; overflow: hidden;
}
.join-header {
  background: linear-gradient(180deg, rgba(121,64,218,0.2) 0%, rgba(121,64,218,0.08) 100%);
  border-bottom: 2px solid var(--gold); padding: 12px 20px; text-align: center;
}
.join-title { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 0 12px rgba(10,214,255,0.4); }
.join-subtitle { font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--stone); font-style: italic; margin-top: 4px; }
.join-body { padding: 20px; }
.bonus-banner {
  background: linear-gradient(135deg, rgba(121,64,218,0.12), rgba(66,14,156,0.15));
  border: 1px solid rgba(121,64,218,0.3); border-radius: 3px;
  padding: 12px 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--gold-light);
}
.bonus-banner span:first-child { font-size: 22px; }
.join-field { margin-bottom: 12px; }
.join-field label {
  display: block; font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700;
  color: var(--stone); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px;
}
.join-field input {
  width: 100%; padding: 10px 14px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(121,64,218,0.3); border-radius: 2px;
  color: var(--cream); font-family: 'Space Grotesk', sans-serif; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.join-field input:focus { border-color: var(--gold); box-shadow: 0 0 8px rgba(121,64,218,0.15); }
.join-field input::placeholder { color: var(--stone); opacity: 0.6; }
.btn-join {
  width: 100%; padding: 13px;
  background: linear-gradient(180deg, #5C8A20 0%, #3A5C10 40%, #2A4208 70%, #3A5C10 100%);
  border: 2px solid #7AB030; border-radius: 3px;
  color: var(--cream); font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.2s; margin-bottom: 12px;
}
.btn-join:hover { background: linear-gradient(180deg, #70A030 0%, #4A7020 40%, #365010 70%, #4A7020 100%); box-shadow: 0 4px 20px rgba(90,160,30,0.2); }
.join-switch { text-align: center; font-family: 'Space Grotesk', sans-serif; font-size: 12px; color: var(--stone); }
.join-switch a { color: var(--gold); text-decoration: none; font-weight: bold; }
.join-switch a:hover { color: var(--gold-bright); }

/* ═══ FOOTER ═══ */
.main-footer { background: linear-gradient(180deg, rgba(10,2,26,1) 0%, #070014 100%); border-top: 2px solid rgba(121,64,218,0.3); }
.footer-nav { display: flex; justify-content: center; gap: 0; border-bottom: 1px solid rgba(121,64,218,0.15); flex-wrap: wrap; }
.footer-nav a { padding: 14px 28px; font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--stone); text-decoration: none; text-transform: uppercase; border-right: 1px solid rgba(121,64,218,0.1); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-payments { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 40px; flex-wrap: wrap; }
.payment-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border: 1px solid rgba(121,64,218,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s; }
.payment-icon:hover { background: rgba(121,64,218,0.1); border-color: var(--gold); }
.footer-copy { text-align: center; padding: 12px; font-family: 'Space Grotesk', sans-serif; font-size: 11px; color: var(--stone); border-top: 1px solid rgba(121,64,218,0.1); opacity: 0.6; }

/* ═══ MOBILE RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-main { grid-template-columns: 1fr 1fr; padding: 30px; gap: 20px; }
  .hero-image-area { grid-column: 1 / -1; order: 1; }
  .hero-mine-img { max-width: 260px; }
  .miners-row { grid-template-columns: repeat(3, 1fr); }
  .mines-grid { grid-template-columns: 1fr 1fr; }
  .tables-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-step::after { display: none; }
  .btn-register-big { margin: 15px 30px; }
  .section-inner { padding: 30px 24px; }
}

@media (max-width: 768px) {
  .hero-main { grid-template-columns: 1fr; padding: 20px 16px; gap: 16px; }
  .hero-image-area { grid-column: auto; order: 3; }
  .hero-mine-img { max-width: 220px; }
  .main-nav { padding: 0 16px; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(12,1,31,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; padding: 16px 32px; border-bottom: 1px solid rgba(121,64,218,0.15); width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .stat-block { padding: 10px 20px; min-width: 100px; }
  .stat-block-value { font-size: 18px; }
  .miners-row { grid-template-columns: repeat(2, 1fr); }
  .mines-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .section-inner { padding: 24px 16px; }
  .btn-register-big { margin: 12px 16px; font-size: 14px; letter-spacing: 0.1em; }
  .hero-banner h1 { font-size: clamp(12px, 3.5vw, 18px); letter-spacing: 0.08em; }
  .wood-title { font-size: 16px; padding: 7px 20px; }
  .footer-nav a { padding: 12px 16px; font-size: 11px; }
}

@media (max-width: 480px) {
  .miners-row { grid-template-columns: repeat(2, 1fr); }
  .mines-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step::after { display: none; }
  .hero-main { padding: 20px 16px; }
  .hero-mine-img { max-width: 220px; }
  .auth-form { padding: 14px; }
  .tables-row { gap: 16px; }
  .stat-block { padding: 8px 14px; }
  .footer-nav { flex-direction: column; }
  .footer-nav a { border-right: none; border-bottom: 1px solid rgba(121,64,218,0.1); text-align: center; padding: 12px; }
}









.top-nav {
  position: sticky; top: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  background: linear-gradient(180deg, rgba(16,1,42,0.99) 0%, rgba(12,1,31,0.99) 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 3px 20px rgba(121,64,218,0.2), 0 4px 30px rgba(0,0,0,0.8);
  flex-shrink: 0;
}
.tnav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tnav-logo-icon {
  width: 38px; height: 38px;
  background: radial-gradient(circle at 40% 35%, #0AD6FF, #4F07CB 60%, #33136A 100%);
  border-radius: 50%; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 0 12px rgba(10,214,255,0.35);
}
.tnav-logo-text {
  font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 900;
  color: var(--gold); text-shadow: 0 0 12px rgba(10,214,255,0.4);
}
.tnav-links { display: flex; list-style: none; gap: 2px; }
.tnav-links a {
  display: block; padding: 10px 16px;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--cream-dark); text-decoration: none;
  text-transform: uppercase; transition: all 0.2s; position: relative;
}
.tnav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.2s;
}
.tnav-links a:hover { color: var(--gold-light); }
.tnav-links a:hover::after { transform: scaleX(1); }
.tnav-right { display: flex; align-items: center; gap: 12px; }
.tnav-user {
  display: flex; align-items: center; gap: 9px;
  background: rgba(121,64,218,0.08); border: 1px solid var(--border-b);
  border-radius: 3px; padding: 6px 12px; cursor: pointer;
}
.tnav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  border: 1px solid var(--gold);
}
.tnav-username { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700; color: var(--gold-light); }
.tnav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.tnav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: all 0.3s; }

/* ════════════════════════════════════════
   BALANCE BAR
════════════════════════════════════════ */
.balance-bar {
  background: linear-gradient(90deg,
    rgba(12,1,31,0.98) 0%, rgba(19,3,47,0.98) 50%, rgba(12,1,31,0.98) 100%);
  border-bottom: 1px solid var(--border-b);
  padding: 0 32px;
  display: flex; align-items: center; gap: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.bal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 28px; border-right: 1px solid var(--border);
}
.bal-item:last-child { border-right: none; }
.bal-icon { font-size: 22px; }
.bal-info {}
.bal-label {
  font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700;
  color: var(--stone); text-transform: uppercase; letter-spacing: 0.14em;
  display: block; margin-bottom: 2px;
}
.bal-value {
  font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700;
  display: block;
}
.bal-value.gold   { color: var(--gold-bright); text-shadow: 0 0 8px rgba(10,214,255,0.35); }
.bal-value.cyan   { color: #67E8F9; text-shadow: 0 0 8px rgba(103,232,249,0.35); }
.bal-value.green  { color: var(--green); text-shadow: 0 0 8px rgba(74,222,128,0.35); }
.bal-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-topup {
  padding: 8px 20px;
  background: linear-gradient(180deg, #5C8A20 0%, #3A5C10 40%, #2A4208 70%, #3A5C10 100%);
  border: 1px solid #7AB030; border-radius: 3px;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--cream); text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.btn-topup:hover { background: linear-gradient(180deg, #70A030 0%, #4A7020 40%, #365010 70%, #4A7020 100%); }
.btn-withdraw {
  padding: 8px 20px;
  background: linear-gradient(180deg, #631EDA 0%, #420E9C 50%, #631EDA 100%);
  border: 1px solid var(--gold-bright); border-radius: 3px;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--cream); text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.2s;
}
.btn-withdraw:hover { box-shadow: 0 0 12px rgba(10,214,255,0.25); }

/* ════════════════════════════════════════
   MAIN LAYOUT: sidebar + content
════════════════════════════════════════ */
.app-body {
  display: flex; flex: 1; min-height: 0;
}

/* ─── LEFT SIDEBAR ─── */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-right: 1px solid var(--border-b);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar-section { padding: 16px 0 8px; }
.sidebar-section-label {
  font-family: 'Rajdhani', sans-serif; font-size: 8px; font-weight: 700;
  color: var(--stone); text-transform: uppercase; letter-spacing: 0.2em;
  padding: 0 16px 8px; display: block; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.slink {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; transition: all 0.2s;
  border-left: 3px solid transparent; text-decoration: none;
  position: relative;
}
.slink:hover { background: rgba(121,64,218,0.06); border-left-color: rgba(121,64,218,0.3); }
.slink.active {
  background: linear-gradient(90deg, rgba(121,64,218,0.12) 0%, transparent 100%);
  border-left-color: var(--gold);
}
.slink-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }
.slink-text { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; color: var(--cream-dark); text-transform: uppercase; letter-spacing: 0.08em; }
.slink.active .slink-text { color: var(--gold-light); }
.slink-badge {
  margin-left: auto; background: var(--gold); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center;
}
.slink-badge.red { background: #F87171; }
.slink-badge.green { background: var(--green); }

.sidebar-section-img .slink-icon { width: 100px; }

/* ─── CONTENT AREA ─── */
.content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  background: #2A1946;
  padding: 28px 32px;
}

/* all pages hidden by default */
.page { display: none; }
.page.active { display: block; }

/* ════════════════════════════════════════
   REUSABLE COMPONENTS
════════════════════════════════════════ */
.page-title {
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700;
  color: var(--gold-bright); text-shadow: 0 0 15px rgba(10,214,255,0.25);
  margin-bottom: 6px;
}
.page-sub {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-style: italic;
  color: var(--stone); margin-bottom: 28px;
}

/* wood card */
.wcard {
  background: linear-gradient(160deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--border-b); border-radius: 4px; overflow: hidden;
}
.wcard-head {
  background: linear-gradient(90deg, rgba(121,64,218,0.14) 0%, rgba(121,64,218,0.05) 100%);
  border-bottom: 1px solid var(--border-b); padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.wcard-title {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--gold-bright); letter-spacing: 0.1em; text-transform: uppercase;
}
.wcard-body { padding: 18px; }

/* stat grid */
.stat-grid { display: grid; gap: 14px; }
.stat-grid-4 { grid-template-columns: repeat(4,1fr); }
.stat-grid-3 { grid-template-columns: repeat(3,1fr); }
.stat-grid-2 { grid-template-columns: repeat(2,1fr); }

.stat-box {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border); border-radius: 3px; padding: 14px 16px;
  text-align: center;
}
.stat-box-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.stat-box-val {
  font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700;
  color: var(--gold-bright); display: block; margin-bottom: 3px;
}
.stat-box-val.cyan   { color: #67E8F9; }
.stat-box-val.green  { color: var(--green); }
.stat-box-val.orange { color: var(--orange); }
.stat-box-val.purple { color: var(--purple); }
.stat-box-lbl { font-family: 'Rajdhani', sans-serif; font-size: 9px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.12em; }

/* section gap */
.sec-gap { margin-bottom: 24px; }

/* small btn */
.btn-sm {
  padding: 7px 7px; border-radius: 3px; border: none;
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.btn-gold {
  background: linear-gradient(180deg, #631EDA 0%, #420E9C 50%, #631EDA 100%);
  border: 1px solid var(--gold-bright); color: var(--cream);
}
.btn-gold:hover { box-shadow: 0 0 14px rgba(10,214,255,0.3); }
.btn-green {
  background: linear-gradient(180deg, #5C8A20 0%, #3A5C10 50%, #5C8A20 100%);
  border: 1px solid #7AB030; color: var(--cream);
}
.btn-green:hover { box-shadow: 0 0 12px rgba(90,160,30,0.25); }
.btn-red {
  background: linear-gradient(180deg, #8A2020 0%, #5C1010 50%, #8A2020 100%);
  border: 1px solid #F87171; color: var(--cream);
}
.btn-outline {
  background: transparent; border: 1px solid var(--border-b); color: var(--cream-dark);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* progress bar */
.prog-wrap { margin: 10px 0; }
.prog-labels { display: flex; justify-content: space-between; margin-bottom: 5px; }
.prog-label { font-family: 'Rajdhani', sans-serif; font-size: 9px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.08em; }
.prog-track { height: 8px; background: rgba(0,0,0,0.5); border-radius: 4px; border: 1px solid var(--border); overflow: hidden; }
.prog-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); box-shadow: 0 0 8px rgba(10,214,255,0.4); transition: width 1s ease; }
.prog-fill.cyan  { background: linear-gradient(90deg, #0891B2, #67E8F9); box-shadow: 0 0 8px rgba(103,232,249,0.4); }
.prog-fill.green { background: linear-gradient(90deg, #059669, var(--green)); box-shadow: 0 0 8px rgba(74,222,128,0.4); }

/* table */
.wtable { width: 100%; border-collapse: collapse; }
.wtable thead tr { background: rgba(121,64,218,0.08); border-bottom: 1px solid var(--border-b); }
.wtable th { padding: 9px 12px; font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; text-align: left; }
.wtable tbody tr { border-bottom: 1px solid rgba(121,64,218,0.07); transition: background 0.15s; }
.wtable tbody tr:hover { background: rgba(121,64,218,0.04); }
.wtable tbody tr:last-child { border-bottom: none; }
.wtable td { padding: 10px 12px; font-size: 12px; color: var(--cream-dark); }
.td-gold { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--gold-bright); }
.td-green { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--green); }
.td-red   { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--red); }
.td-mono  { font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* badge */
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.tag-green  { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.25); }
.tag-gold   { background: rgba(121,64,218,0.12); color: var(--gold); border: 1px solid rgba(121,64,218,0.25); }
.tag-red    { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.25); }
.tag-blue   { background: rgba(96,165,250,0.12); color: var(--blue); border: 1px solid rgba(96,165,250,0.25); }
.tag-purple { background: rgba(192,132,252,0.12); color: var(--purple); border: 1px solid rgba(192,132,252,0.25); }

/* ════════════════════════════════════════
   PAGE 1 — CABINET (dashboard)
════════════════════════════════════════ */
.mine-overview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.mine-ov-card {
  background: linear-gradient(160deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--border-b); border-radius: 4px; overflow: hidden;
  position: relative; transition: all 0.25s; cursor: pointer;
}
.mine-ov-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.mine-ov-card.t1::before { background: linear-gradient(90deg,#6B7280,#CBD5E1); }
.mine-ov-card.t2::before { background: linear-gradient(90deg,#67E8F9,#3B82F6); }
.mine-ov-card.t3::before { background: linear-gradient(90deg,var(--gold),var(--orange),var(--gold)); background-size:200%; animation: gShine 2s linear infinite; }
@keyframes gShine { 0%{background-position:0%} 100%{background-position:200%} }
.mine-ov-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.mine-ov-top { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.mine-ov-emoji { font-size: 28px; }
.mine-ov-info {}
.mine-ov-name { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; color: var(--gold-bright); }
.mine-ov-tier { font-family: 'Rajdhani', sans-serif; font-size: 9px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; }
.mine-ov-body { padding: 12px 14px; }
.mine-ov-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mine-ov-key { font-size: 16px; color: var(--stone); font-style: bold; }
.mine-ov-val { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--gold-bright); }
.mine-ov-val.g { color: var(--green); }
.mine-ov-val.c { color: #67E8F9; }

/* activity feed */
.act-feed { }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(121,64,218,0.07); }
.feed-row:last-child { border-bottom: none; }
.feed-ico { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.feed-text { flex: 1; font-size: 12px; color: var(--cream-dark); font-style: italic; }
.feed-text strong { color: var(--cream); font-style: normal; }
.feed-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--stone); }
.feed-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; }

/* tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.tool-card {
  background: rgb(22,3,54); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px; text-align: center; transition: all 0.2s;
}
.tool-card:hover { border-color: var(--gold); }
.tool-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.tool-name { font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tool-lvl { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--stone); }
.tool-lvl span { color: var(--green); }

/* ════════════════════════════════════════
   PAGE 2 — TOP UP
════════════════════════════════════════ */
.topup-methods { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 28px; }
.pay-method {
  background: rgba(0,0,0,0.35); border: 2px solid var(--border); border-radius: 4px;
  padding: 18px 12px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.pay-method:hover, .pay-method.sel {
  border-color: var(--gold); background: rgba(121,64,218,0.06);
  box-shadow: 0 0 16px rgba(121,64,218,0.12);
}
.pay-ico { font-size: 28px; display: block; margin-bottom: 8px; }
.pay-name { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: var(--cream); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.pay-min { font-size: 14px; color: #55E32D; font-style: bold; font-family: 'JetBrains Mono', monospace;}

.topup-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-family: 'Rajdhani', sans-serif; font-size: 9px; font-weight: 700;
  color: var(--stone); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 7px;
}
.form-field input, .form-field select {
  width: 100%; padding: 11px 14px;
  background: rgba(0,0,0,0.5); border: 1px solid var(--border-b); border-radius: 3px;
  color: var(--cream);
  /*font-family: 'Space Grotesk', sans-serif; */
  font-size: 18px;
  outline: none; transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--gold); box-shadow: 0 0 8px rgba(121,64,218,0.12); }
.form-field input::placeholder { color: var(--stone); opacity: 0.6; }
.form-field select option { background: var(--bg2); }

.qr-box {
  background: rgba(255,255,255,0.95); border-radius: 6px;
  width: 140px; height: 140px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.wallet-addr {
  background: rgba(0,0,0,0.5); border: 1px solid var(--border-b); border-radius: 3px;
  padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--gold-light); word-break: break-all; text-align: center; margin-bottom: 12px;
}
.copy-btn {
  display: block; width: 100%; padding: 9px;
  background: rgba(121,64,218,0.1); border: 1px solid var(--border-b); border-radius: 3px;
  font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: all 0.2s;
}
.copy-btn:hover { background: rgba(121,64,218,0.18); }

.rate-info {
  background: linear-gradient(135deg, rgba(121,64,218,0.08), rgba(66,14,156,0.1));
  border: 1px solid var(--border-b); border-radius: 3px; padding: 14px 18px;
  margin-bottom: 16px;
}
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.rate-key { font-size: 12px; color: var(--stone); font-style: italic; }
.rate-val { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--gold-bright); }

/* ════════════════════════════════════════
   PAGE 3 — MINE
════════════════════════════════════════ */
.mine-page-grid { grid-template-columns: 1fr 320px; gap: 24px; }

.mine-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.mine-tab {
  padding: 9px 20px; background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 3px; font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--stone); cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.08em;
}
.mine-tab.on, .mine-tab:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(121,64,218,0.08); }

/* live mining display */
.live-mine-display {
  background: radial-gradient(ellipse at 50% 30%, rgba(66,14,156,0.18) 0%, rgba(9,3,20,0.95) 70%);
  border: 1px solid var(--border-b); border-radius: 4px;
  padding: 28px; text-align: center; position: relative; overflow: hidden;
  min-height: 220px; margin-bottom: 16px;
}
.live-mine-display::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(121,64,218,0.03) 18px, rgba(121,64,218,0.03) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(121,64,218,0.02) 36px, rgba(121,64,218,0.02) 37px);
  pointer-events: none;
}
.mine-scene { position: relative; z-index: 1; }
.mine-big-emoji { font-size: 50px; display: block; animation: mineFloat 3s ease-in-out infinite; margin-bottom: 12px; filter: drop-shadow(0 0 20px rgba(121,64,218,0.4)); color: azure;}
@keyframes mineFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.mine-live-counter {
  font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 700;
  color: #FFF; text-shadow: 0 0 20px rgba(10,214,255,0.5);
  animation: countPulse 2s ease-in-out infinite;
}
@keyframes countPulse { 0%,100%{opacity:1} 50%{opacity:0.8} }
.mine-live-label { font-family: 'Rajdhani', sans-serif; font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
.live-badge-row { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.lbr { background: rgba(0,0,0,0.5); border: 1px solid var(--border); border-radius: 3px; padding: 6px 14px; }
.lbr-val { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--gold-bright); }
.lbr-lbl { font-size: 9px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Rajdhani', sans-serif; }

/* worker slots */
.worker-slots { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-bottom: 16px; }
.worker-slot {
  aspect-ratio: 1; background: rgba(0,0,0,0.4); border: 1px dashed rgba(121,64,218,0.25);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; transition: all 0.2s; position: relative;
}
.worker-slot.filled { border-style: solid; border-color: var(--border-b); background: rgba(121,64,218,0.06); }
.worker-slot.filled:hover { border-color: var(--gold); }
.worker-slot.empty:hover { background: rgba(121,64,218,0.05); border-color: rgba(121,64,218,0.4); }
.worker-slot .w-lvl {
  position: absolute; bottom: 2px; right: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--gold); font-weight: 700;
}

/* tools shop */
.tools-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-item {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px; display: flex; align-items: flex-start; gap: 10px; transition: all 0.2s;
}
.shop-item:hover { border-color: var(--gold); }
.shop-item-icon { font-size: 26px; flex-shrink: 0; }
.shop-item-info { flex: 1; }
.shop-item-name { font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--cream); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.shop-item-desc { font-size: 16px; color: var(--green); font-weight: bold; margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }

.shop-item-desc-o { font-size: 14px; color: var(--stone); font-style: italic; margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }


.shop-item-price { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: var(--gold-bright); }

/* mine purchase panel */
.mine-buy-list { display: flex; flex-direction: column; gap: 10px; }
.mine-buy-item {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: 3px;
  padding: 14px; transition: all 0.2s;
}
.mine-buy-item:hover { border-color: var(--gold-bright); }
.mine-buy-item.owned { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.04); }
.mbi-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mbi-emoji { font-size: 28px; }
.mbi-info { flex: 1; }
.mbi-name { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; color: var(--gold-bright); }
.mbi-tier { font-size: 9px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Rajdhani', sans-serif; }
.mbi-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.mbi-stat { background: rgba(0,0,0,0.3); border-radius: 2px; padding: 5px 8px; }
.mbi-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--gold-bright); }
.mbi-stat-lbl { font-size: 8px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Rajdhani', sans-serif; }

/* ════════════════════════════════════════
   PAGE 4 — REFERRAL
════════════════════════════════════════ */
.ref-hero {
  background: linear-gradient(135deg, rgba(121,64,218,0.08) 0%, rgba(66,14,156,0.05) 100%);
  border: 1px solid var(--border-b); border-radius: 4px; padding: 28px;
  text-align: center; margin-bottom: 24px;
}
.ref-hero-title {
  font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--gold-bright); text-shadow: 0 0 12px rgba(10,214,255,0.3);
  margin-bottom: 8px;
}
.ref-hero-sub { font-size: 18px; color: #fff; font-family: 'Rajdhani', sans-serif; margin-bottom: 20px; }
.ref-link-box {
  background: rgba(0,0,0,0.5); border: 1px solid var(--border-b); border-radius: 3px;
  padding: 12px 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--gold-light); display: flex; align-items: center; gap: 12px;
  max-width: 500px; margin: 0 auto 14px;
}
.ref-link-url { flex: 1; word-break: break-all; }
.ref-copy { padding: 7px 16px; background: rgba(121,64,218,0.12); border: 1px solid var(--border-b); border-radius: 3px; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--gold); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.ref-copy:hover { background: rgba(121,64,218,0.22); }

.ref-copy-banner { padding: 7px 16px; background: rgba(121,64,218,0.12); border: 1px solid var(--border-b); border-radius: 3px; font-family: 'Rajdhani', sans-serif; font-size: 10px; font-weight: 700; color: var(--gold); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.ref-copy-banner:hover { background: rgba(121,64,218,0.22); }

.ref-stats-row { display: flex; justify-content: center; gap: 40px; margin-top: 14px; flex-wrap: wrap; }
.ref-stat { text-align: center; }
.ref-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; color: var(--gold-bright); text-shadow: 0 0 12px rgba(10,214,255,0.3); }
.ref-stat-lbl { font-size: 10px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.12em; font-family: 'Rajdhani', sans-serif; margin-top: 4px; }

.ref-levels { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.ref-level {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 3px;
  padding: 16px; text-align: center;
}
.ref-level-num { font-family: 'Rajdhani', sans-serif; font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.ref-level-pct { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--gold-bright); text-shadow: 0 0 12px rgba(10,214,255,0.3); margin-bottom: 4px; }
.ref-level-desc { font-size: 12px; color: #F4F6FF;  }

/* ════════════════════════════════════════
   PAGE 5 — BONUSES
════════════════════════════════════════ */
.bonus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.bonus-card {
  background: linear-gradient(160deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--border); border-radius: 4px; padding: 20px;
  text-align: center; position: relative; overflow: hidden; transition: all 0.25s;
}
.bonus-card:hover { border-color: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.bonus-card.claimed { opacity: 0.55; }
.bonus-card.claimed::after { content: '✓ Claimed'; position: absolute; top: 10px; right: 10px; background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.3); border-radius: 3px; color: var(--green); font-family: 'Rajdhani', sans-serif; font-size: 8px; font-weight: 700; padding: 2px 7px; letter-spacing: 0.1em; text-transform: uppercase; }
.bonus-card-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.bonus-card-name { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; color: var(--gold-bright); margin-bottom: 6px; letter-spacing: 0.06em; }
.bonus-card-desc { font-size: 13px; color: #fff; line-height: 1.5; margin-bottom: 12px; }
.bonus-card-val { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.bonus-prog { margin-bottom: 14px; }
.bonus-prog-txt { display: flex; justify-content: space-between; font-size: 9px; color: var(--stone); margin-bottom: 4px; font-family: 'Rajdhani', sans-serif; letter-spacing: 0.06em; }

.bonus-history-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(121,64,218,0.07); }
.bonus-history-row:last-child { border-bottom: none; }
.bh-icon { font-size: 20px; width: 28px; text-align: center; }
.bh-info { flex: 1; }
.bh-name { font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700; color: var(--cream); }
.bh-date { font-size: 10px; color: var(--stone); font-style: italic; }
.bh-amount { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--green); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stat-grid-4 { grid-template-columns: repeat(2,1fr); }
  .mine-overview-grid { grid-template-columns: repeat(2,1fr); }
  .mine-page-grid { grid-template-columns: 1fr; }
  .topup-methods { grid-template-columns: repeat(1,1fr); }
  .topup-form-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: repeat(2,1fr); }
  .ref-levels { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(3,1fr); }
  .worker-slots { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 1100px) {
  .sidebar { width: 0; overflow: hidden; position: fixed; left: 0; top: 0; bottom: 0; z-index: 250; transition: width 0.3s; padding-top: 120px; }
  .sidebar.open { width: 220px; }
  .tnav-toggle { display: flex; }
  .tnav-links { display: none; }
  .balance-bar { padding: 0 16px; flex-wrap: wrap; }
  .bal-item { padding: 8px 14px; }
  .content { padding: 20px 16px; }
  .mine-overview-grid { grid-template-columns: 1fr; }
  .tools-shop { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .ref-levels { grid-template-columns: 1fr; }
  .worker-slots { grid-template-columns: repeat(3,1fr); }
  .stat-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .bal-actions { padding: 8px 0; width: 100%; justify-content: flex-start; }

}
@media (max-width: 480px) {
  .topup-methods { grid-template-columns: repeat(1,1fr); }
  .tool-grid { grid-template-columns: repeat(1,1fr); }
  .stat-grid-4 { grid-template-columns: 1fr 1fr; }

}








/* ─── Terms checkbox ─── */
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(121,64,218,0.2);
  border-radius: 3px;
}

.auth-terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid rgba(121,64,218,0.5);
  border-radius: 2px;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.auth-terms input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #420E9C, var(--gold-bright));
  border-color: var(--gold-bright);
  box-shadow: 0 0 8px rgba(10,214,255,0.35);
}

.auth-terms input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.auth-terms-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--stone);
  line-height: 1.5;
  font-style: italic;
}

.auth-terms-text a {
  color: var(--gold);
  text-decoration: none;
  font-style: normal;
  font-weight: bold;
  transition: color 0.2s;
}

.auth-terms-text a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 8px rgba(10,214,255,0.3);
}


/* ─── Registration errors block ─── */
.auth-errors {
  margin: 14px 0 10px;
  border: 1px solid rgba(248,113,113,0.4);
  border-radius: 3px;
  overflow: hidden;
}

.auth-errors.visible {
  display: block;
}

.auth-errors-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(248,113,113,0.12);
  border-bottom: 1px solid rgba(248,113,113,0.25);
}

.auth-errors-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.auth-errors-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #F87171;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex: 1;
}

.auth-errors-close {
  background: none;
  border: none;
  color: rgba(248,113,113,0.6);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
  font-family: monospace;
}

.auth-errors-close:hover {
  color: #F87171;
}

.auth-errors-list {
  list-style: none;
  padding: 8px 0;
  background: rgba(248,113,113,0.05);
}

.auth-errors-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: #FCA5A5;
  line-height: 1.4;
  border-bottom: 1px solid rgba(248,113,113,0.08);
}

.auth-errors-list li:last-child {
  border-bottom: none;
}

.auth-errors-list li::before {
  content: '—';
  color: rgba(248,113,113,0.5);
  flex-shrink: 0;
  margin-top: 1px;
}



/* ======================= */
.auth-succes {
  margin: 14px 0 10px;
  border: 1px solid rgba(74,222,128,0.4);
  border-radius: 3px;
  overflow: hidden;
}

.auth-succes.visible {
  display: block;
}

.auth-succes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(74,222,128,0.18);
  border-bottom: 1px solid rgba(74,222,128,0.3);
}

.auth-succes-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.auth-succes-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex: 1;
}







.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 36px 32px 40px;
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.card::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  border-radius:24px 24px 0 0;
  background:linear-gradient(90deg,#4f8eff,#9c6eff,#00e5ff);
}

.card-title {
  font-family:'Outfit',sans-serif;
  font-size:22px; font-weight:800; letter-spacing:-.02em;
  text-align:center; margin-bottom:28px; color: #00D1FB;
}

/* label */
.field-label {
  font-size:13px; color:rgba(255,255,255,.55);
  margin-bottom:8px; padding-left:2px;
}
.field-label strong { color:#fff; }

/* copy row */
.copy-row {
  display:flex; align-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  overflow:hidden;
  margin-bottom:20px;
  transition:border-color .2s;
}
.copy-row:focus-within { border-color:rgba(79,142,255,.5); }

.copy-icon {
  width:52px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  border-right:1px solid rgba(255,255,255,.08);
  padding:14px 0;
}
.copy-icon img { width:28px; height:28px; object-fit:contain; }

.copy-value {
  flex:1; padding:14px 14px;
  font-family:'Space Grotesk',sans-serif;
  font-size:14px; color:#fff;
  background:transparent; border:none; outline:none;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  cursor:default; user-select:all;
}

.copy-btn {
  flex-shrink:0;
  width:50px; height:100%;
  display:flex; align-items:center; justify-content:center;
  border:none; background:transparent;
  border-left:1px solid rgba(255,255,255,.08);
  cursor:pointer; color:rgba(255,255,255,.45);
  transition:all .2s; padding:14px 0;
}
.copy-btn:hover { background:rgba(79,142,255,.12); color:#4f8eff; }
.copy-btn.copied { color:#00e676; background:rgba(0,230,118,.1); }

.copy-btn svg { width:18px; height:18px; }

/* hint */
.field-hint {
  font-size:12px; color:rgba(255,255,255,.35);
  margin-top:-12px; margin-bottom:20px;
  padding-left:2px; line-height:1.5;
}

/* status bar */
.status-bar {
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.07);
  border-radius:12px; padding:16px 20px;
  font-size:15px; font-weight:600;
  margin-bottom:28px;
}
.status-label { color:rgba(255,255,255,.55); }
.status-val   { color:#0AD6FF; display:flex; align-items:center; gap:6px; }

/* spinner dots */
.dots span {
  display:inline-block; width:5px; height:5px;
  border-radius:50%; background:#0AD6FF;
  animation:blink 1.4s infinite;
}
.dots span:nth-child(2) { animation-delay:.2s; }
.dots span:nth-child(3) { animation-delay:.4s; }
@keyframes blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* QR */
.qr-wrap {
  display:flex; justify-content:center;
}
.qr-wrap img {
  width:200px; height:200px;
  border-radius:14px;
  border:3px solid rgba(255,255,255,.1);
  background:#fff; padding:8px;
}





.mine-scenes {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    gap: 20px;
    padding: 20px;
    background: rgba(14,5,30, 0.6); 
    border: 2px solid #240F49;
    border-radius: 12px;
}


.mine-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}


.col-main {
    flex: 2; 
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 15px;
}


@media (max-width: 1000px) {
    .mine-scenes {
        flex-direction: column; 
        gap: 30px; 
        text-align: center;
    }

    .col-main {
        
        border-left: none;
        border-right: none;

        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 20px 0; 
    }
    
    .col-delivery {

        min-height: auto; 
    }
}


.col-status .status-text {
    font-family: 'Orbitron', sans-serif;
    color: #ff4a4a; 
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 74, 74, 0.5);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.col-status .miner-img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}


.col-main {
    flex: 2; 
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 15px;
}


.col-delivery {
    justify-content: space-between; 
    height: 100%;
    min-height: 180px;
}


.vertical-progress-container {
    width: 20px;
    height: 150px;
    background: #120724; 
    border: 2px solid var(--gold-bright, #0AD6FF);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end; 
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}


.vertical-progress-bar {
    width: 100%;
    background: linear-gradient(to top, #0AD6FF, var(--gold-bright, #0AD6FF));
    box-shadow: 0 0 8px var(--gold-bright, #0AD6FF);
    transition: height 0.3s ease; 
}


.col-delivery .cart-img {
	max-width: 100px;
	height: auto;
	margin-left: 30px;
    object-fit: contain;
}



.layout {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: 1fr 1fr;

    width: 100%;
    height: 100%;

    border: 1px solid #000;
}

.left {
    grid-row: 1 / 3; /* занимает две строки */
    border-right: 1px solid #000;
}

.top {
    border-bottom: 1px solid #000;
}

.bottom {
}	



.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; max-width: 520px; margin-bottom: 16px; }
.settings-card h3 { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ── ROWS ── */
.rowk {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgb(15,2,37);
  border: 1px solid rgb(121,64,218);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.rowk:hover { border-color: rgb(140,245,255); }

/* saved row */
.rowk.saved {
  border-color: rgba(0,230,118,.2);
  background: rgba(0,230,118,.04);
}
.rowk.saved:hover { border-color: rgba(0,230,118,.45); }

/* icon */
.coin-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.coin-icon img { width: 26px; height: 26px; object-fit: contain; }

/* label + input stack */
.row-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.row-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #fff;
}
.ticker {
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  color: #7940DA;
  background: rgba(79,142,255,.12);
  border: 1px solid rgba(79,142,255,.22);
  border-radius: 100px;
  padding: 2px 8px;
}

.row-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  padding: 9px 13px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all .2s;
}
.row-input::placeholder { color: rgba(255,255,255,.3); }
.row-input:focus {
  border-color: rgba(79,142,255,.55);
  background: rgba(79,142,255,.07);
  box-shadow: 0 0 0 3px rgba(79,142,255,.1);
}

/* readonly / saved input */
.row-input[readonly] {
  color: #00e676;
  border-color: rgba(0,230,118,.25);
  background: rgba(0,230,118,.05);
  cursor: default;
  opacity: .8;
}

/* save button */
.btn-save {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 800;
  border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,230,118,.3);
  transition: all .22s;
  white-space: nowrap;
}
.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,230,118,.45);
}



.field        { margin-bottom: 18px; }
.label        { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); margin-bottom: 7px; }
.label .req   { color: var(--red); margin-left: 2px; }
.field-hint   { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input-wrap   { position: relative; }

.info-box {
	margin-top: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: rgba(79,142,255,.08);
	border: 1px solid rgb(56,25,112);
    font-size: 13px;
    color: rgba(79,142,255,.9);
    line-height: 1.6;
}

.hi_buy {
    display: none;
}


@media (max-width: 700px) {
    .hi_buy {
        display: block; 
    }
}


.swiper-slide {
    width: auto !important; 
    display: flex;
    align-items: center;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px; 
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

.sep { color: var(--stone); }
.time { color: #aaa; }
.username { font-weight: bold; }
.amount { color: #00ff00; font-weight: bold; display: flex; align-items: center; gap: 5px; }

.bonus {
    background: #1a331a; 
    border: 1px solid #2d5a2d;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #88cc88;
}

.swiper {
    width: 100%;
    height: 25px;
    background: transparent; 
}
.swiper-wrapper {
    transition-timing-function: linear !important;
}


.warning-blink {
    font-size: 15px;
    display: inline-block;
    vertical-align: middle;
    margin-left: auto;    
    animation: opacityBlink 1s ease-in-out infinite;
}

@keyframes opacityBlink {
    0% { opacity: 0.2; }   
    50% { opacity: 1; }    
    100% { opacity: 0.2; }
}





.flex-container {
    display: flex;
    flex-wrap: wrap; 
    width: 100%;             
    box-sizing: border-box;
    gap: 10px; 
}

.left-col {
    flex: 1 0 auto;       
    padding: 5px 10px;
}

.right-col {
    flex: 1 1 300px;         
    display: flex;
    align-items: center;         
    padding: 5px 10px;
}


.page-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cream);
}


.page-sub {
    color: var(--stone);
}


@media (max-width: 600px) {
    .right-col {
        justify-content: flex-start; 
    }
}




.rewards-title {
  color: #0AD6FF;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Rajdhani', sans-serif;
}


.chests-container {
  display: flex;
  justify-content: space-between;
  gap: 20px; 
}


.chest-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}


.chest-image {
  width: 100%;
  max-width: 90px; 
  height: auto; 
  display: block;
}




.is-dimmed .chest-image {
  opacity: 0.4;
  filter: brightness(0.6);
}


.is-animated .chest-image {
  animation: chestWobble 2.5s ease-in-out infinite;
  transform-origin: bottom center; 
}

@keyframes chestWobble {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.03) rotate(-3deg); }
  40%  { transform: scale(0.98) rotate(3deg); }
  60%  { transform: scale(1.02) rotate(-2deg); }
  80%  { transform: scale(0.99) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}