/* ============================================================
   Minepay — Optimallaşdırılmış CSS (mobil üçün yüngül)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap');

:root {
  --cream:      #fef9f4;
  --soft-white: #fffcf9;
  --peach:      #fde8d8;
  --peach2:     #fbd5bb;
  --rose:       #f9c5b5;
  --mauve:      #e8b4c8;
  --lavender:   #d4c5e8;
  --sky:        #c5ddf8;
  --mint:       #c5edd8;
  --yellow:     #fdecc8;
  --gold:       #f5c842;
  --orange:     #f5874a;
  --pink:       #e86a9a;
  --purple:     #9a7bc8;
  --blue:       #5a9adc;
  --green:      #4ac895;
  --red:        #e85a6a;
  --text-dark:  #3d2a2a;
  --text-mid:   #7a6060;
  --text-light: #b09090;
  --shadow:     rgba(200,150,130,0.12);
  --shadow2:    rgba(200,150,130,0.22);
  --card-bg:    #fffcf9;
  --radius-sm:  12px;
  --radius-md:  18px;
  --radius-lg:  26px;
  --radius-xl:  32px;
  --transition: 0.22s ease;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Arxa fon — animasiyasız, sadə gradient */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 15%, rgba(253,232,216,.5) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 85% 85%, rgba(212,197,232,.4) 0%, transparent 70%);
  z-index: -1;
}

/* Orb-lar silindi — blur(65px) çox ağır idi */
.orb { display: none; }

/* Overlay — backdrop-filter yox */
.overlay {
  position: fixed; inset: 0;
  background: rgba(50,20,15,.35);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* Sidebar — backdrop-filter yox */
.sidebar {
  position: fixed; left: 0; top: 0; height: 100vh; width: 285px;
  background: #fffcf9;
  border-right: 1.5px solid rgba(240,220,210,.6);
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(200,150,130,.14);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(240,220,210,.5);
  display: flex; align-items: center; gap: 13px;
}
.sidebar-logo {
  width: 44px; height: 44px; border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(245,135,74,.3);
}
.sidebar-brand { font-size: 21px; font-weight: 900; color: var(--text-dark); }
.sidebar-brand span { color: var(--orange); }

.sidebar-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  color: var(--text-light); text-transform: uppercase;
  padding: 20px 24px 8px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px; cursor: pointer;
  position: relative; color: var(--text-mid);
  font-size: 14px; font-weight: 600;
  transition: background .18s, color .18s;
}
.sidebar-item::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--orange), var(--pink));
  transition: height .18s;
}
.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(245,135,74,.08);
  color: var(--orange);
}
.sidebar-item:hover::before,
.sidebar-item.active::before { height: 65%; }

.sidebar-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.si-orange  { background: rgba(245,135,74,.13); }
.si-pink    { background: rgba(232,106,154,.13); }
.si-purple  { background: rgba(154,123,200,.13); }
.si-blue    { background: rgba(90,154,220,.13); }
.si-green   { background: rgba(74,200,149,.13); }
.si-yellow  { background: rgba(245,200,66,.13); }
.si-rose    { background: rgba(249,197,181,.28); }
.si-mauve   { background: rgba(232,180,200,.22); }
.si-sky     { background: rgba(197,221,248,.38); }
.si-promo   { background: rgba(255,215,0,.15); }

.sidebar-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(240,220,210,.5); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-mid);
  transition: background .18s;
}
.sidebar-close:hover { background: var(--peach2); }

/* Topbar — backdrop-filter yox */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 68px;
  background: rgba(255,252,249,.97);
  border-bottom: 1.5px solid rgba(240,220,210,.5);
  display: flex; align-items: center; padding: 0 22px; gap: 14px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(200,150,130,.08);
}

.hamburger {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(245,200,66,.14);
  border: 1.5px solid rgba(245,135,74,.2);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.hamburger span {
  width: 20px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.topbar-logo { font-size: 22px; font-weight: 900; color: var(--text-dark); flex: 1; }
.topbar-logo span { color: var(--orange); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-user {
  display: flex; align-items: center;
  cursor: pointer; transition: opacity .18s;
  position: relative;
}
.topbar-user:hover { opacity: .8; }
.topbar-user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #f5874a, #e86a9a);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; color: #fff; font-weight: 900;
  box-shadow: 0 2px 8px rgba(245,135,74,.3);
  transition: box-shadow .3s, border .3s;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0; overflow: hidden;
  text-align: center;
  letter-spacing: 0;
  user-select: none;
}
.tier-crown {
  position: absolute; top: -6px; right: -6px;
  font-size: 14px; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
  pointer-events: none;
}
.topbar-btn {
  padding: 9px 18px; border-radius: 22px; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px;
  transition: background .18s;
}
.tb-login { background: transparent; color: var(--text-mid); border: 1.5px solid rgba(200,160,140,.4); }
.tb-login:hover { background: var(--peach); color: var(--orange); }
.tb-register {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff; box-shadow: 0 4px 14px rgba(245,135,74,.28);
}

/* Ana içərik */
.main {
  margin-top: 88px; padding: 0 22px 60px;
  max-width: 1080px; margin-left: auto; margin-right: auto;
}

.welcome-text { font-size: 13px; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.page-title   { font-size: 26px; font-weight: 900; color: var(--text-dark); margin-bottom: 26px; }
.page-title span { color: var(--orange); }

/* Balans kartı — animasiyasız */
.balance-card {
  background: linear-gradient(135deg, #ff9a6c 0%, #e8607a 40%, #c85aa0 70%, #9a7bc8 100%);
  border-radius: 20px; padding: 20px 22px; color: #fff;
  box-shadow: 0 10px 32px rgba(200,80,120,.25);
  position: relative; overflow: hidden; margin-bottom: 24px;
  min-height: 185px;
}
.balance-card.mining-on {
  box-shadow: 0 10px 36px rgba(200,80,120,.38), 0 0 0 1.5px rgba(255,255,255,.12);
}
.balance-card::before {
  content: ''; position: absolute; top: -55px; right: -55px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.balance-card::after {
  content: ''; position: absolute; bottom: -35px; left: 40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.card-top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.card-label { font-size: 9px; opacity: .55; font-weight: 700; letter-spacing: 2.2px; margin-bottom: 6px; text-transform: uppercase; }
.card-balance { font-size: 28px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1; display: flex; align-items: flex-start; gap: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.balance-currency { font-size: 28px; font-weight: 900; opacity: .95; margin-top: 0; letter-spacing: 0; }
.card-number {
  font-size: 15px; font-weight: 600; letter-spacing: 2.5px;
  opacity: .8; margin-bottom: 16px;
  font-family: 'Courier New', monospace;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.card-footer-left { display: flex; flex-direction: column; }
.card-expire-label { font-size: 8px; opacity: .6; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; margin-bottom: 1px; }
.card-expire { font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.card-name { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.card-footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card-visa {
  font-size: 20px; font-weight: 900; font-style: italic;
  letter-spacing: -0.5px; font-family: 'Times New Roman', serif;
}
.card-chip {
  width: 38px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,220,150,.95), rgba(255,180,80,.75));
  position: relative; flex-shrink: 0;
}
.card-chip::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(180,120,40,.45); transform: translateX(-50%);
}
.card-chip::after {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(180,120,40,.45); transform: translateY(-50%);
}
.card-mining-badge {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px; padding: 4px 10px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.card-mining-badge.badge-active {
  background: rgba(80,220,100,.18);
  border-color: rgba(100,255,130,.32);
}
.mining-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #b0b0b0;
}
.mining-pulse.active {
  background: #4ade80;
  animation: pulse-glow 1.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50%      { box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

.card-mining-badge {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 22px; padding: 6px 14px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.mining-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #b0b0b0;
}
.mining-pulse.active {
  background: #7dff8a;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 26px; }

.stat-card {
  background: var(--card-bg);
  border-radius: 22px; padding: 20px;
  border: 1.5px solid rgba(240,220,210,.6);
  box-shadow: 0 4px 18px var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px var(--shadow2); }

.stat-icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.si-grad1 { background: linear-gradient(135deg, rgba(245,200,66,.22), rgba(245,135,74,.22)); }
.si-grad2 { background: linear-gradient(135deg, rgba(90,154,220,.22), rgba(154,123,200,.22)); }
.si-grad3 { background: linear-gradient(135deg, rgba(74,200,149,.22), rgba(90,154,220,.22)); }

.stat-label { font-size: 12px; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 900; color: var(--text-dark); }
.stat-sub   { font-size: 11px; color: var(--green); font-weight: 700; margin-top: 3px; }

.section-title {
  font-size: 18px; font-weight: 800; color: var(--text-dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-badge {
  font-size: 11px; padding: 4px 11px; border-radius: 20px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff; font-weight: 700;
}

/* Mining panel — backdrop-filter yox */
.mining-panel {
  background: var(--card-bg);
  border-radius: var(--radius-lg); padding: 28px;
  border: 1.5px solid rgba(240,220,210,.6);
  box-shadow: 0 6px 24px var(--shadow);
  margin-bottom: 24px;
}

.deposit-area { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 20px; align-items: end; }

.input-group label {
  font-size: 12px; font-weight: 700; color: var(--text-mid);
  display: block; margin-bottom: 8px; letter-spacing: .5px;
}
.input-wrap { position: relative; }
.input-wrap input {
  width: 100%; padding: 14px 16px 14px 50px;
  border-radius: var(--radius-md); border: 1.5px solid rgba(220,200,190,.5);
  background: rgba(255,250,246,.9);
  font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--text-dark); outline: none; transition: border-color .2s;
}
.input-wrap input:focus {
  border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(245,135,74,.1);
}
.input-prefix {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 18px; font-weight: 900; color: var(--orange);
}

/* Buttons */
.mine-btn {
  padding: 14px 28px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800;
  box-shadow: 0 5px 18px rgba(245,135,74,.3);
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mine-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,135,74,.42); }

.collect-btn {
  padding: 14px 26px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green), #2eb87a);
  color: #fff; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800;
  box-shadow: 0 5px 18px rgba(74,200,149,.3);
  display: flex; align-items: center; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.collect-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(74,200,149,.42); }
.collect-btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* Progress */
.mining-progress { margin-top: 4px; }
.prog-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.prog-label  { font-size: 13px; font-weight: 700; color: var(--text-mid); }
.prog-pct    { font-size: 13px; font-weight: 800; color: var(--orange); }

.prog-track {
  height: 14px; border-radius: 10px;
  background: rgba(230,210,200,.3); overflow: hidden;
}
.prog-fill {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink));
  transition: width .6s ease;
}

/* Earn Row */
.earn-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,200,66,.08);
  border-radius: var(--radius-md); padding: 18px 22px; margin-top: 20px;
  border: 1.5px solid rgba(245,200,66,.2);
}
.earn-label  { font-size: 12px; color: var(--text-light); font-weight: 600; }
.earn-amount { font-size: 28px; font-weight: 900; color: var(--orange); }
.earn-rate   { font-size: 12px; color: var(--green); font-weight: 700; margin-top: 2px; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }

.action-card {
  background: var(--card-bg);
  border-radius: 22px; padding: 22px;
  border: 1.5px solid rgba(240,220,210,.6);
  box-shadow: 0 4px 18px var(--shadow);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.action-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow2); }
.action-icon  { font-size: 32px; }
.action-title { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.action-desc  { font-size: 12px; color: var(--text-light); font-weight: 600; margin-top: -10px; }
.action-arrow {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; align-self: flex-end; margin-top: -8px;
}
.aa-orange { background: rgba(245,135,74,.15); }
.aa-blue   { background: rgba(90,154,220,.15); }

/* History */
.history-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg); padding: 28px;
  border: 1.5px solid rgba(240,220,210,.6);
  box-shadow: 0 6px 24px var(--shadow);
  margin-bottom: 24px;
}
.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(230,210,200,.3);
}
.history-item:last-child { border-bottom: none; }
.hist-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.hist-info   { flex: 1; min-width: 0; }
.hist-title  {
  font-size: 13px; font-weight: 700; color: var(--text-dark);
  word-break: break-word; line-height: 1.4;
}
.hist-date   { font-size: 11px; color: var(--text-light); font-weight: 600; margin-top: 3px; }
.hist-amount {
  font-size: 15px; font-weight: 800;
  flex-shrink: 0; white-space: nowrap; text-align: right;
  min-width: 64px;
}
.pos  { color: var(--green); }
.neg  { color: var(--pink); }
.pend { color: var(--orange); }

/* Rates */
.rates-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.rate-item {
  background: rgba(245,200,66,.07);
  border: 1px solid rgba(245,200,66,.2); border-radius: var(--radius-md);
  padding: 15px; text-align: center;
}
.rate-range { font-size: 11px; color: var(--text-light); font-weight: 700; margin-bottom: 4px; }
.rate-val   { font-size: 20px; font-weight: 900; color: var(--orange); }
.rate-speed { font-size: 11px; color: var(--green); font-weight: 700; }

/* Referral */
.ref-box {
  background: rgba(154,123,200,.08);
  border: 1.5px solid rgba(154,123,200,.2); border-radius: var(--radius-md);
  padding: 18px; display: flex; align-items: center; gap: 12px; margin-top: 16px;
}
.ref-code {
  flex: 1; font-size: 18px; font-weight: 900; color: var(--purple);
  letter-spacing: 2px;
}
.copy-btn {
  padding: 9px 18px; border-radius: 13px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label {
  font-size: 13px; font-weight: 700; color: var(--text-mid);
  display: block; margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 14px 18px;
  border-radius: var(--radius-md); border: 1.5px solid rgba(220,200,190,.5);
  background: rgba(255,250,246,.9);
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--text-dark); outline: none; transition: border-color .2s;
}
.form-input:focus {
  border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(245,135,74,.1);
}

/* Modals — backdrop-filter azaldıldı */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(40,20,15,.45);
  z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  overflow-y: auto; padding: 0;
}
.modal-bg.show { opacity: 1; pointer-events: all; }

.modal {
  background: #fffcf9;
  border-radius: 0; padding: 32px 20px 40px; width: 100%; max-width: 100%;
  min-height: 100vh;
  box-shadow: none;
  transform: scale(.97) translateY(20px);
  transition: transform .3s ease;
  position: relative;
}
@media (min-width: 540px) {
  .modal-bg { padding: 20px; align-items: center; }
  .modal { border-radius: 22px; max-width: 460px; min-height: unset;
           box-shadow: 0 24px 65px rgba(200,100,80,.2); }
}
.modal-bg.show .modal { transform: scale(1) translateY(0); }

.modal-title { font-size: 25px; font-weight: 900; color: var(--text-dark); margin-bottom: 6px; }
.modal-sub   { font-size: 14px; color: var(--text-light); font-weight: 600; margin-bottom: 28px; }

.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(230,210,200,.42); border: none; cursor: pointer;
  font-size: 18px; color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
}

.modal-btn {
  width: 100%; padding: 16px; border-radius: 18px; border: none; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800;
  margin-top: 8px; transition: transform .2s ease, box-shadow .2s ease;
}
.mb-primary {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff; box-shadow: 0 5px 18px rgba(245,135,74,.28);
}
.mb-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,135,74,.4); }
.mb-secondary {
  background: transparent; color: var(--text-mid);
  border: 1.5px solid rgba(200,160,140,.42);
}
.mb-secondary:hover { background: var(--peach); color: var(--orange); }
.mb-danger {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
}

.divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--text-light); font-size: 12px; font-weight: 600;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(220,200,190,.4);
}

/* Toast */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  background: rgba(45,25,20,.93);
  color: #fff; padding: 14px 26px; border-radius: 22px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.toast.show { opacity: 1; pointer-events: auto; }
.toast-icon { font-size: 20px; }

/* Page sections */
.page-section { display: none; }
.page-section.active {
  display: block;
  animation: pageIn .32s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Spinner */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 640px) {
  .stats-row      { grid-template-columns: 1fr; }
  .quick-actions  { grid-template-columns: 1fr; }
  .rates-grid     { grid-template-columns: 1fr 1fr; }
  .balance-card   { padding: 22px; }
  .card-balance   { font-size: 28px; }
  .deposit-area   { grid-template-columns: 1fr; }
  .topbar-logo    { font-size: 18px; }
  .mine-btn       { width: 100%; justify-content: center; }
}

/* ── NOWPayments Kripto UI ─────────────────────────────── */
.crypto-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,152,0,0.1);
  border: 1px solid rgba(255,152,0,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.crypto-info-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

.cib-row {
  font-size: 12px;
  color: var(--text-light);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cib-row:last-child { border-bottom: none; }

.crypto-address-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,152,0,0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: monospace;
  font-size: 12px;
  color: #fff;
  word-break: break-all;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.2s;
  margin: 8px 0;
}
.crypto-address-box:hover { background: rgba(255,152,0,0.1); }
.copy-icon { font-size: 16px; flex-shrink: 0; }

.crypto-balance-display {
  background: linear-gradient(135deg, rgba(255,152,0,0.1), rgba(255,87,34,0.05));
  border: 1px solid rgba(255,152,0,0.2);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 8px;
}

#depositQR img {
  border-radius: 12px;
  border: 3px solid rgba(255,152,0,0.4);
  padding: 8px;
  background: #fff;
}

/* ── Bildiriş bell düyməsi ── */
.notif-btn {
  position: relative;
  background: rgba(245,135,74,.1);
  border: 1.5px solid rgba(245,135,74,.2);
  color: var(--orange); font-size: 17px;
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.notif-btn.visible { display: flex; }
.notif-btn:hover { background: rgba(245,135,74,.22); }
.notif-btn.has-notif { animation: bell-shake .5s ease; }
@keyframes bell-shake {
  0%,100% { transform: rotate(0); }
  20%      { transform: rotate(-15deg); }
  40%      { transform: rotate(15deg); }
  60%      { transform: rotate(-10deg); }
  80%      { transform: rotate(10deg); }
}
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  background: #ff4444; color: #fff;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--bg, #0d0f17);
}
.notif-panel {
  position: fixed; top: 72px; right: 8px;
  width: min(320px, calc(100vw - 16px)); max-height: 65vh;
  background: #13161f; border: 1px solid rgba(255,117,48,.3);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.7);
  z-index: 9998; display: none; flex-direction: column;
  overflow: hidden; animation: panel-drop .22s cubic-bezier(.34,1.4,.64,1);
}
@keyframes panel-drop {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.notif-panel.open { display: flex; }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 13px; font-weight: 700; color: #ffd580; flex-shrink: 0;
}
.notif-panel-head button {
  background: none; border: none; color: #666; font-size: 13px;
  cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: color .2s, background .2s;
}
.notif-panel-head button:hover { color: #ff7530; background: rgba(255,117,48,.1); }
.notif-panel-list { overflow-y: auto; flex: 1; }
.notif-panel-list::-webkit-scrollbar { width: 4px; }
.notif-panel-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.notif-item {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s; cursor: default;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(255,117,48,.06); }
.notif-item:hover  { background: rgba(255,255,255,.04); }
.notif-item-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,117,48,.15);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 12px; font-weight: 700; color: #dde3ee; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-text  { font-size: 11px; color: #8892a4; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item-time  { font-size: 10px; color: #555; white-space: nowrap; align-self: flex-start; margin-top: 2px; }
.notif-empty { padding: 32px 16px; text-align: center; color: #555; font-size: 13px; }
