/* ============================================================
   CapPick - Zamonaviy Dark Mode Dizayni (CSS)
   ============================================================ */

:root {
  --bg-main: #0B0F19;
  --bg-card: #131A2B;
  --bg-card-hover: #192238;
  --bg-input: #0D1322;
  --bg-glass: rgba(19, 26, 43, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.25);
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: all 0.22s ease-in-out;
}

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

input,
button,
select,
textarea,
optgroup,
option {
  font-family: var(--font-family);
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

/* Fon effekti - nozik neon nurlar */
body::before {
  content: "";
  position: fixed;
  top: -10vw;
  right: -5vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: -10vw;
  left: -5vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVBAR (Yuqori menyu)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.06);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  isolation: isolate;
}

.nav-active-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.32s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.32s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-img-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px;
}

@keyframes spinClockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.reload-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s ease;
}

.reload-icon-img.spinning,
.spinning .reload-icon-img {
  animation: spinClockwise 0.75s linear infinite !important;
}

.page-reload-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-reload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.stat-icon-img-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.stat-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

/* Nav links ichidagi sliding animatsiya uchun */
.nav-links .nav-btn {
  position: relative;
  z-index: 2;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.25s ease;
}

.nav-links .nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06) !important;
}

.nav-links .nav-btn.active {
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-links .nav-btn.active:hover {
  background: transparent !important;
}

.nav-btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-btn-icon:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-btn-icon img {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-btn-icon.active {
  color: #fff;
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.45);
}

.nav-btn-icon.active img {
  transform: rotate(60deg) scale(1.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-lang-pill {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: #0B0F19;
}

.profile-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
}

.profile-avatar-btn:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}

.avatar-name {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================================
   ASOSIY KONTEYNER VA VIEWLAR
   ============================================================ */
.main-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AUTH EKRANI (Login / Signup)
   ============================================================ */
/* Zero-flicker / Anti-FOUC Auth Rules */
html.user-logged-in #auth-view {
  display: none !important;
}
html.user-logged-in #main-navbar {
  display: flex !important;
}
html.user-logged-in #app-view {
  display: block !important;
}

.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
}

.auth-logo-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
  display: inline-block;
  transition: transform 0.2s ease;
}

.auth-logo-img:hover {
  transform: scale(1.05);
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input option {
  background: #0f172a;
  color: #fff;
  font-family: var(--font-family) !important;
  font-size: 0.9rem;
  padding: 6px 10px;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-input:disabled,
.form-input[readonly],
.form-input.form-input-locked {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #94A3B8 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  user-select: none;
}

.badge-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  margin-top: 0.5rem;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.35rem;
  cursor: pointer;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ============================================================
   STATISTIKA KARTALARI (Dashboard Stats)
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: #fff;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

/* ============================================================
   JADVAL VA RO'YXATLAR (Tables)
   ============================================================ */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-header-bar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-header-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background: var(--bg-card-hover);
}

.custom-table tr.acc-row td {
  border-bottom: 1px solid var(--border-color);
}

.custom-table tr.acc-row:hover td {
  background: var(--bg-card-hover);
}

.btn-action-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: not-allowed;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.row-index-badge, .account-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  flex-shrink: 0;
}

.row-coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 1px solid;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* ============================================================
   RANK / LEVEL BADGES
   ============================================================ */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.rank-crown {
  font-size: 0.72rem;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

/* 1. Stone (Tosh) - Kulrang */
.rank-badge.rank-stone {
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

/* 2. Iron (Temir) - Po'lat temir rang */
.rank-badge.rank-iron {
  background: rgba(148, 163, 184, 0.18);
  color: #CBD5E1;
  border: 1px solid rgba(203, 213, 225, 0.35);
}

/* 3. Bronze (Bronza) - Bronza / qahrabo */
.rank-badge.rank-bronze {
  background: rgba(217, 119, 6, 0.16);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.15);
}

/* 4. Silver (Kumush) - Yorqin kumush */
.rank-badge.rank-silver {
  background: rgba(226, 232, 240, 0.18);
  color: #F8FAFC;
  border: 1px solid rgba(226, 232, 240, 0.45);
  box-shadow: 0 0 6px rgba(226, 232, 240, 0.2);
}

/* 5. Gold (Oltin) - Oltin sariq */
.rank-badge.rank-gold {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, rgba(202, 138, 4, 0.28) 100%);
  color: #FACC15;
  border: 1px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}

/* 6. Platinum (Platina) - Muz ko'k / neon platina */
.rank-badge.rank-platinum {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18) 0%, rgba(56, 189, 248, 0.25) 100%);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

/* 7. Diamond (Olmos) - Binafsha-moviy kristall */
.rank-badge.rank-diamond {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(168, 85, 247, 0.28) 100%);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

/* 8. Master (Afsonaviy) - Qizil-binafsha afsonaviy gradient va toj */
.rank-badge.rank-master {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(236, 72, 153, 0.3) 50%, rgba(168, 85, 247, 0.35) 100%);
  color: #FDA4AF;
  border: 1px solid rgba(244, 63, 94, 0.65);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5), inset 0 0 6px rgba(236, 72, 153, 0.25);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Status badgelari */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-ready {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-waiting {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* History Amaliyot turi badgelari (Type: Faucet / Withdraw) */
.badge-type-faucet {
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 600;
  font-size: 0.76rem;
}

.badge-type-withdraw {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
  font-weight: 600;
  font-size: 0.76rem;
}

/* History Natija badgelari (Status: Complete / Failed) */
.badge-status-complete {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-weight: 600;
  font-size: 0.76rem;
}

.badge-status-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
  font-weight: 600;
  font-size: 0.76rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-action-claim {
  background: var(--success);
  color: #0B0F19;
}

.btn-action-claim:hover {
  background: #059669;
}

.btn-action-claiming {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
  cursor: wait;
  border: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

.claiming-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGlow 1.2s infinite ease-in-out;
}

/* ============================================================
   CLAIMING ROW ANIMATION - YAGONA, SEAMLESS VA PREMIUM
   Barcha kataklar (td) uchun 1 ta yaxlit fon va silliq to'lqin animatsiyasi
   ============================================================ */
.custom-table tr.tr-claiming {
  background: linear-gradient(
    90deg,
    rgba(14, 165, 233, 0.08) 0%,
    rgba(56, 189, 248, 0.22) 50%,
    rgba(14, 165, 233, 0.08) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: claimingRowSweep 3.5s ease-in-out infinite alternate, claimingRowGlow 2.5s ease-in-out infinite alternate !important;
  position: relative;
}

.custom-table tr.tr-claiming td {
  background: transparent !important;
  box-shadow: none !important;
  border-top: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35) !important;
  transition: all 0.25s ease;
}

.custom-table tr.tr-claiming:hover td,
.custom-table tr.acc-row.tr-claiming:hover td {
  background: transparent !important;
}

.custom-table tr.tr-claiming td:first-child {
  border-left: 3px solid #38bdf8 !important;
}

.custom-table tr.tr-claiming td:last-child {
  border-right: 1px solid rgba(56, 189, 248, 0.35) !important;
}

@keyframes claimingRowSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes claimingRowGlow {
  0% {
    background-color: rgba(14, 165, 233, 0.06);
  }
  100% {
    background-color: rgba(56, 189, 248, 0.16);
  }
}


.btn-action-disabled, .countdown-cell {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  padding: 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  font-family: monospace, var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: not-allowed;
  user-select: none;
}

.btn-timer-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 1px 1px 0;
  transition: width 0.8s linear, background-color 0.4s ease;
  pointer-events: none;
}

.btn-timer-line.line-green {
  background: #10B981;
}

.btn-timer-line.line-yellow {
  background: #F59E0B;
}

.btn-timer-line.line-red {
  background: #EF4444;
}

/* History Pagination (Show More Button) */
.btn-history-load-more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-history-load-more:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-history-load-more:active {
  transform: translateY(0);
}

.btn-history-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Section Reload Button (Kran balanslari bo'limi uchun) */
.section-reload-btn {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-reload-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.5);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.section-reload-btn:active {
  transform: scale(0.96);
}

.section-reload-btn svg.spinning,
.section-reload-btn.spinning svg {
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   WALLET (Hamyon kartalari)
   ============================================================ */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.crypto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.crypto-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-card);
}

.crypto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crypto-card-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crypto-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
}

.crypto-balance-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.crypto-balance-amount {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.crypto-balance-usd {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ============================================================
   SOZLAMALAR & PROFIL (Settings & Profile Cards)
   ============================================================ */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.settings-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--primary-gradient);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ============================================================
   MODAL DIALOG (Yangi hisob qo'shish)
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

/* ============================================================
   TOAST NOTIFICATIONS (Bildirishnomalar)
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

/* ============================================================
   PRICING (Tariflar dizayni)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.pricing-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li span {
  color: var(--success);
  font-weight: bold;
}

/* ============================================================
   GENLOGIN WALLET STYLES (from genlogin/users/flutter_app)
   ============================================================ */
.genlogin-balance-card {
  background: linear-gradient(135deg, #131D33 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}

.genlogin-balance-info {
  display: flex;
  flex-direction: column;
}

.genlogin-balance-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.genlogin-balance-val {
  color: #FFFFFF;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

.genlogin-btn-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* UZS Deposit Button (Blue gradient) */
.genlogin-btn-uzs {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border: 1.2px solid rgba(96, 165, 250, 0.55);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
  color: #fff;
}

.genlogin-btn-uzs:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* USDT Deposit Button (Emerald green gradient) */
.genlogin-btn-usdt {
  background: linear-gradient(135deg, #047857 0%, #10B981 100%);
  border: 1.2px solid rgba(52, 211, 153, 0.55);
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  color: #fff;
}

.genlogin-btn-usdt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.genlogin-btn-icon-box {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.genlogin-btn-icon-box-usdt {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.95rem;
  color: #FDE047;
  display: flex;
  align-items: center;
  justify-content: center;
}

.genlogin-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.genlogin-btn-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.genlogin-btn-title {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.82rem;
}

.genlogin-pill-manual {
  background: rgba(147, 197, 253, 0.25);
  border: 1px solid rgba(191, 219, 254, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #DBEAFE;
}

.genlogin-pill-auto {
  background: rgba(253, 224, 71, 0.25);
  border: 1px solid rgba(253, 224, 71, 0.5);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #FEF08A;
}

.genlogin-btn-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 500;
}

/* ============================================================
   KICHIK VA IXCHAM COIN DIVLARI (Compact Mini Cards)
   ============================================================ */
.coin-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}

.coin-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.coin-mini-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.coin-mini-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.coin-mini-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast);
}

.coin-mini-card:hover .coin-mini-icon {
  transform: scale(1.08);
}

.coin-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.coin-glyph.single-char {
  font-size: 1.45rem;
  font-weight: 900;
  font-family: system-ui, -apple-system, sans-serif;
}

.coin-glyph.multi-char {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.coin-mini-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coin-mini-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.coin-mini-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.coin-mini-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
}

.coin-mini-usd {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

/* ============================================================
   COIN DETAIL & AUTO-WITHDRAW SUB-VIEW STYLES
   ============================================================ */
.btn-coin-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-coin-back:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  color: #fff;
  transform: translateX(-3px);
}

.coin-autowithdraw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.coin-autowithdraw-card.active-glow {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.12);
}

.coin-autowithdraw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  flex-wrap: wrap;
}

.coin-autowithdraw-body {
  padding: 1.5rem;
}

.coin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.coin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.coin-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.coin-badge-req {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.coin-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.coin-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.coin-input-wrapper .coin-form-input {
  padding-right: 3.5rem;
}

.coin-form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.coin-form-input[readonly] {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: not-allowed;
}

.coin-input-suffix {
  position: absolute;
  right: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.coin-form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Custom Toggle Switch */
.custom-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.custom-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-toggle-switch input:checked + .toggle-slider {
  background-color: #10b981;
  border-color: #059669;
}

.custom-toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Compact Toggle Switch for Account Rows */
.custom-toggle-switch-sm {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.custom-toggle-switch-sm input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider-sm {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toggle-slider-sm:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.custom-toggle-switch-sm input:checked + .toggle-slider-sm {
  background-color: #10b981;
  border-color: #059669;
}

.custom-toggle-switch-sm input:checked + .toggle-slider-sm:before {
  transform: translateX(16px);
}

/* Action Delete Button */
.btn-action-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.btn-action-delete:active {
  transform: translateY(0);
}

/* Auto-withdraw status pill in accounts table */
.auto-withdraw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.auto-withdraw-pill.active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.auto-withdraw-pill.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}


/* ============================================================
   DASHBOARD FILTERLAR VA QIDIRUV STRUKTURASI
   ============================================================ */
.dash-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.dash-search-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  min-width: 260px;
  flex: 1 1 260px;
  position: relative;
  transition: var(--transition);
}

.dash-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.dash-search-icon {
  font-size: 0.9rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}

.dash-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  width: 100%;
}

.dash-search-input::placeholder {
  color: var(--text-dim);
}

.dash-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 4px;
}

.dash-clear-btn:hover {
  color: #fff;
}

.dash-select-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dash-select {
  font-family: var(--font-family) !important;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.52rem 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.dash-select:hover, .dash-select:focus {
  border-color: var(--primary);
}

.dash-select option {
  background: #0f172a;
  color: #fff;
  font-family: var(--font-family) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 10px;
}

.dash-reload-btn {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.dash-reload-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

/* ============================================================
   RESPONSIVLIK VA MOBIL MOSLASHUV (Mobile Responsive System)
   ============================================================ */

/* 1. Planshetlar va Kichik Noutbuklar (max-width: 1024px) */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faucet-coins-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* 2. Standart Mobil Qurilmalar (max-width: 768px) */
@media (max-width: 768px) {
  /* Yuqori Navbar */
  .navbar {
    padding: 0.65rem 1rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0B0F19 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .brand-icon,
  .brand-logo-img {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  /* Nav actions: Profil nomini yashirib, faqat ixcham avatarni qoldirish */
  .avatar-name {
    display: none !important;
  }

  .profile-avatar-btn {
    padding: 2px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border-color: transparent !important;
  }

  .avatar-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }

  .nav-btn-icon {
    width: 34px !important;
    height: 34px !important;
  }

  /* Pastki Mobil Navigatsiya Paneli (Bottom Bar) */
  .nav-links {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(11, 15, 25, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom, 8px)) 0.25rem !important;
    z-index: 9999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
  }

  .nav-links .nav-btn {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 0.35rem 0.4rem !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    line-height: 1.1 !important;
  }

  .nav-links .nav-btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    font-size: 0.68rem !important;
  }

  .nav-img-icon, .nav-btn svg {
    width: 19px !important;
    height: 19px !important;
  }

  #nav-active-indicator {
    border-radius: 10px !important;
  }

  /* Asosiy Konteyner (pastki navbar ustma-ust tushmasligi uchun) */
  .main-container {
    padding: 0.85rem 0.75rem calc(80px + env(safe-area-inset-bottom, 15px)) 0.75rem !important;
    max-width: 100% !important;
  }

  /* Sahifa Sarlavhasi (Reload tugmasi DOIM o'ng tomonda yonma-yon) */
  .page-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
  }

  .page-header > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .page-title {
    font-size: 1.25rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    margin: 0 !important;
  }

  .page-subtitle {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
    color: var(--text-muted) !important;
    margin-top: 2px !important;
  }

  .page-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .page-header-actions .btn-primary {
    width: auto !important;
    padding: 0.42rem 0.75rem !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .page-reload-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .page-reload-btn .reload-icon-img {
    width: 18px !important;
    height: 18px !important;
  }

  /* Statistika Kartalari: 2x2 Ixcham Qator */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .stat-card {
    padding: 0.85rem 0.95rem !important;
    border-radius: var(--radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .stat-label {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    color: var(--text-muted) !important;
  }

  .stat-value {
    font-size: 1.35rem !important;
    margin-top: 0.2rem !important;
    font-weight: 800 !important;
  }

  .stat-icon-img-box, .stat-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 4px !important;
    border-radius: 8px !important;
  }

  /* Dashboard va History Filtr Paneli */
  .dash-filter-bar {
    padding: 0.75rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .dash-search-box {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    padding: 0.45rem 0.75rem !important;
  }

  .dash-search-input {
    font-size: 0.82rem !important;
  }

  .dash-select-group {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .dash-select {
    width: 100% !important;
    font-size: 0.8rem !important;
    padding: 0.5rem 0.6rem !important;
  }

  #dash-filter-level {
    grid-column: span 2 !important;
  }

  .dash-badge-counter {
    grid-column: span 2 !important;
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    padding: 0.35rem !important;
    width: 100% !important;
  }

  /* Jadvallar (Dashboard va History) */
  .table-card {
    border-radius: var(--radius-sm) !important;
    margin-bottom: 1.5rem !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .custom-table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .custom-table th {
    padding: 0.6rem 0.45rem !important;
    font-size: 0.7rem !important;
  }

  .custom-table td {
    padding: 0.65rem 0.45rem !important;
    font-size: 0.78rem !important;
  }

  /* Dashboard jadvali: Proksi ustunini yashirish va ustunlar taqsimoti */
  #view-dashboard .custom-table th:nth-child(1),
  #view-dashboard .custom-table td:nth-child(1) {
    width: 50% !important;
    padding-left: 0.4rem !important;
    padding-right: 0.25rem !important;
  }

  #view-dashboard .custom-table th:nth-child(2),
  #view-dashboard .custom-table td:nth-child(2) {
    width: 25% !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  #view-dashboard .custom-table th:nth-child(3),
  #view-dashboard .custom-table td:nth-child(3) {
    display: none !important;
  }

  #view-dashboard .custom-table th:nth-child(4),
  #view-dashboard .custom-table td:nth-child(4) {
    width: 25% !important;
    padding-left: 0.25rem !important;
    padding-right: 0.4rem !important;
    text-align: right !important;
  }

  /* Hisob / Sayt katagi ichki elementlari */
  .row-acc-cell {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .row-acc-info {
    min-width: 0 !important;
    overflow: hidden !important;
    flex: 1 !important;
  }

  .row-acc-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  .row-acc-name {
    font-size: 0.76rem !important;
    max-width: 65px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
    color: #fff !important;
  }

  .row-acc-sub {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Balans katagi: valyutani raqam ostiga joylashtirish */
  .col-balance .balance-num {
    display: block !important;
    font-size: 0.78rem !important;
    line-height: 1.1 !important;
  }

  .col-balance .balance-curr {
    display: block !important;
    font-size: 0.62rem !important;
    color: var(--text-dim) !important;
    margin-left: 0 !important;
    line-height: 1 !important;
    margin-top: 2px !important;
  }

  /* History jadvali: 5 ta ustun qat'iy 100% byudjetda (ID va Vaqt yashiriladi) */
  #view-history .custom-table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  #view-history .col-hist-id,
  #view-history .col-hist-time,
  #view-history .custom-table th:nth-child(1),
  #view-history .custom-table td:nth-child(1),
  #view-history .custom-table th:nth-child(6),
  #view-history .custom-table td:nth-child(6) {
    display: none !important;
  }

  /* 1. Hisob */
  #view-history .col-hist-account,
  #view-history .custom-table th:nth-child(2),
  #view-history .custom-table td:nth-child(2) {
    width: 25% !important;
    padding: 0.45rem 0.2rem 0.45rem 0.35rem !important;
    overflow: hidden !important;
  }

  /* 2. Sayt */
  #view-history .col-hist-site,
  #view-history .custom-table th:nth-child(3),
  #view-history .custom-table td:nth-child(3) {
    width: 21% !important;
    padding: 0.45rem 0.2rem !important;
    overflow: hidden !important;
  }

  /* 3. Tur (Faucet / Withdraw) */
  #view-history .col-hist-type,
  #view-history .custom-table th:nth-child(4),
  #view-history .custom-table td:nth-child(4) {
    width: 16% !important;
    padding: 0.45rem 0.15rem !important;
    text-align: center !important;
  }

  /* 4. Miqdor */
  #view-history .col-hist-amount,
  #view-history .custom-table th:nth-child(5),
  #view-history .custom-table td:nth-child(5) {
    width: 22% !important;
    padding: 0.45rem 0.2rem !important;
    line-height: 1.15 !important;
  }

  /* 5. Natija (Complete / Failed) */
  #view-history .col-hist-status,
  #view-history .custom-table th:nth-child(7),
  #view-history .custom-table td:nth-child(7) {
    width: 16% !important;
    padding: 0.45rem 0.35rem 0.45rem 0.15rem !important;
    text-align: right !important;
  }

  /* Textlar ixchamligi (User: "textlarni kichraytiraver konarli bolsa boaldi") */
  .hist-acc-name {
    display: block !important;
    font-size: 0.70rem !important;
    color: #fff !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
  }

  .hist-site-name {
    display: block !important;
    font-size: 0.65rem !important;
    color: var(--primary) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .hist-amt-val {
    display: block !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .hist-amt-coin {
    display: block !important;
    font-size: 0.58rem !important;
    color: var(--text-dim) !important;
    line-height: 1 !important;
    margin-top: 1px !important;
  }

  /* Badgelarning hashamini kamaytirish: ortiqcha border, padding va soyalardan xoli */
  .badge-type-faucet,
  .badge-type-withdraw,
  .badge-status-complete,
  .badge-status-failed {
    display: inline-block !important;
    padding: 1px 3.5px !important;
    font-size: 0.58rem !important;
    line-height: 1.15 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
  }

  .badge-type-faucet {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
  }

  .badge-type-withdraw {
    background: rgba(168, 85, 247, 0.12) !important;
    color: #c084fc !important;
    border: 1px solid rgba(192, 132, 252, 0.3) !important;
  }

  .badge-status-complete {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
  }

  .badge-status-failed {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
  }

  /* Claiming va Barcha Action Tugmalari Ixchamligi */
  .btn-sm, .btn-action-claiming, .countdown-cell, .btn-action-claim, .btn-action-pending, .btn-login-fix {
    min-width: 62px !important;
    max-width: 72px !important;
    height: 26px !important;
    padding: 0.15rem 0.35rem !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    justify-content: center !important;
    gap: 0.25rem !important;
  }

  .btn-action-claiming {
    font-size: 0.66rem !important;
    letter-spacing: -0.02em !important;
  }

  .claiming-dot {
    width: 4px !important;
    height: 4px !important;
    min-width: 4px !important;
  }

  .countdown-cell {
    font-size: 0.7rem !important;
    font-family: monospace !important;
    letter-spacing: -0.02em !important;
  }

  .btn-history-load-more {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 0.7rem 1.25rem !important;
    font-size: 0.82rem !important;
  }

  /* Hamyon (Wallet) Bo'limi */
  .genlogin-balance-card {
    padding: 1.15rem 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .genlogin-balance-val {
    font-size: 1.85rem !important;
  }

  .genlogin-btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .genlogin-btn-uzs, .genlogin-btn-usdt {
    padding: 0.65rem 0.6rem !important;
  }

  .genlogin-btn-title {
    font-size: 0.82rem !important;
  }

  .genlogin-btn-sub {
    font-size: 0.68rem !important;
  }

  .faucet-coins-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
  }

  .coin-stat-card {
    padding: 0.75rem !important;
  }

  .coin-mini-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.82rem !important;
  }

  /* Tariflar (Pricing) */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .pricing-card {
    padding: 1.25rem 1rem !important;
  }

  /* Profil va Sozlamalar */
  .profile-card, .settings-card {
    padding: 1.25rem 1rem !important;
  }

  /* Modallar */
  .modal-content {
    width: 95% !important;
    max-width: 95vw !important;
    max-height: 88vh !important;
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md) !important;
    overflow-y: auto !important;
  }

  /* Avtorizatsiya (Login / Register) */
  .auth-wrapper {
    padding: 1rem !important;
  }

  .auth-card {
    padding: 1.5rem 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .auth-title {
    font-size: 1.4rem !important;
  }
}

/* 3. O'ta Kichik Mobil Qurilmalar (max-width: 480px) */
@media (max-width: 480px) {
  .stats-grid {
    gap: 0.45rem !important;
  }

  .stat-card {
    padding: 0.65rem 0.75rem !important;
  }

  .stat-value {
    font-size: 1.2rem !important;
  }

  .custom-table th, .custom-table td {
    padding: 0.45rem 0.2rem !important;
    font-size: 0.72rem !important;
  }

  #view-history .custom-table th,
  #view-history .custom-table td {
    padding: 0.38rem 0.15rem !important;
  }

  .hist-acc-name {
    font-size: 0.67rem !important;
  }

  .hist-site-name {
    font-size: 0.62rem !important;
  }

  .hist-amt-val {
    font-size: 0.63rem !important;
  }

  .hist-amt-coin {
    font-size: 0.54rem !important;
  }

  .row-acc-name {
    max-width: 55px !important;
    font-size: 0.72rem !important;
  }

  .btn-sm, .btn-action-claiming, .countdown-cell, .btn-action-claim, .btn-action-pending, .btn-login-fix {
    min-width: 58px !important;
    max-width: 68px !important;
    height: 24px !important;
    font-size: 0.64rem !important;
    padding: 0.12rem 0.25rem !important;
  }

  .claiming-dot {
    width: 3.5px !important;
    height: 3.5px !important;
  }

  .rank-badge {
    font-size: 0.5rem !important;
    padding: 0.5px 2.5px !important;
  }

  .rank-crown {
    font-size: 0.54rem !important;
  }

  .nav-links .nav-btn {
    padding: 0.3rem 0.2rem !important;
    font-size: 0.65rem !important;
  }

  .nav-img-icon, .nav-btn svg {
    width: 17px !important;
    height: 17px !important;
  }
}

/* ============================================================
   PAY AS YOU GO & MULTI-SITE PROFILE SELECTOR STYLES
   ============================================================ */
.profile-mode-btn {
  background: transparent;
  color: var(--text-muted);
}

.profile-mode-btn:hover {
  color: #fff;
}

.profile-mode-btn.active {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.profile-mode-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .payg-hero-card {
    padding: 1.25rem 1rem !important;
  }
  .payg-calculator-card {
    padding: 1.25rem 1rem !important;
  }
  .profile-mode-btn {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.3rem !important;
  }
}

/* ============================================================
   ACCOUNT VERIFICATION & LOGIN FIX STYLES
   ============================================================ */
.btn-login-fix {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem;
  transition: all 0.2s ease;
  min-width: 78px;
}

.btn-login-fix:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.55) !important;
  filter: brightness(1.1);
}

.tr-login-error {
  background: rgba(239, 68, 68, 0.05) !important;
  border-left: 3px solid #ef4444 !important;
}

.tr-login-error:hover {
  background: rgba(239, 68, 68, 0.09) !important;
}

.status-login-error {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: pulseLoginErr 2s infinite ease-in-out;
}

@keyframes pulseLoginErr {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.verify-step-box {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#verify-success-details-card {
  animation: cardFadeUp 0.35s ease forwards;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Jonli SSE Real-time Pulsatsiyasi va Yangi qator animatsiyasi */
.live-pulse-dot {
  animation: ssePulseAnim 1.8s infinite ease-in-out;
}

@keyframes ssePulseAnim {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.7;
    box-shadow: 0 0 12px #10b981;
  }
}

.tr-new-claim {
  animation: highlightNewRow 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes highlightNewRow {
  0% {
    background-color: rgba(16, 185, 129, 0.38) !important;
  }
  70% {
    background-color: rgba(16, 185, 129, 0.12) !important;
  }
  100% {
    background-color: transparent !important;
  }
}
