/* ===================================================================
   ATLANTICGROUP TELEGRAM WEBAPP - RED LUXURY AUTOMOTIVE THEME
   Elevated with fluid animations, micro-interactions & crisp typography
   =================================================================== */

:root {
  --bg-main: #0c0c10;
  --bg-card: #15151e;
  --bg-card-hover: #1e1e2c;
  --bg-input: #12121a;
  --bg-glass: rgba(22, 22, 32, 0.88);

  --accent-red: #ff1e27;
  --accent-red-hover: #ff3840;
  --accent-red-dark: #b70912;
  --accent-red-glow: rgba(255, 30, 39, 0.4);
  --accent-red-subtle: rgba(255, 30, 39, 0.12);
  --accent-red-border: rgba(255, 30, 39, 0.28);

  --text-white: #ffffff;
  --text-light: #e6e6f0;
  --text-muted: #9595a8;
  --text-dim: #656578;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 30, 39, 0.2);

  --radius-sm: 18px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  min-height: 100vh;
}

/* ===================================================================
   MASTER KEYFRAME ANIMATIONS
   =================================================================== */

@keyframes viewSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rateCardIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes carCardIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes compareItemIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes selectPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes btnShimmer {
  0% { left: -70%; }
  30%, 100% { left: 150%; }
}

@keyframes resultGlow {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 0 45px rgba(255, 30, 39, 0.7);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 35px rgba(255, 30, 39, 0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  }
}

@keyframes itemFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlowText {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px var(--accent-red-glow);
  }
  50% {
    transform: scale(1.06);
    text-shadow: 0 0 25px var(--accent-red), 0 0 35px var(--accent-red);
    color: #ffffff;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 14px var(--accent-red-glow);
  }
}

@keyframes navIconBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.28) translateY(-2px); }
  65% { transform: scale(0.94); }
  100% { transform: scale(1.06); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes heroMeshPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}

@keyframes cardPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 30, 39, 0.12);
  }
  50% {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 30, 39, 0.28);
  }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(18px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===================================================================
   LAYOUT & CONTAINER
   =================================================================== */

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-main);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(12, 12, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--accent-red-border);
  transition: all var(--transition-normal);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast);
}

.brand-logo:active {
  transform: scale(0.97);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 14px var(--accent-red-glow);
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
}

.brand-logo:hover .logo-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 4px 18px var(--accent-red-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-white);
}

.text-accent {
  color: var(--accent-red) !important;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header Currency Pill - Clean & Prominent */
.fx-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.fx-badge:hover {
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-light);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--accent-red-border);
  background: var(--bg-card-hover);
}

.lang-toggle-btn:active {
  transform: scale(0.93);
  border-color: var(--accent-red);
}

/* Scrollable Content */
.app-content {
  flex: 1;
  padding: 16px 16px 85px 16px;
}

/* Views */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: viewSlideUp 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
  transform: translateX(-2px);
}

.back-btn:active {
  transform: scale(0.92);
  background: var(--accent-red);
  color: #fff;
}

.view-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
}

.view-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================================
   HERO BANNER
   =================================================================== */

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1d0f14 0%, #15151e 65%, #101017 100%);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 30, 39, 0.25);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-card:hover {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 25px rgba(255, 30, 39, 0.15);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroMeshPulse 5s ease-in-out infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 12px;
  animation: floatBadge 3.2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.stat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-red-border);
  background: rgba(255, 30, 39, 0.08);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-red);
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

/* Section Header */
.section-header {
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.section-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ===================================================================
   MAIN MENU CARDS (Staggered Entrance & Interactive Lift)
   =================================================================== */

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  overflow: hidden;
  animation: cardSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-grid .menu-card:nth-child(1) { animation-delay: 0.03s; }
.menu-grid .menu-card:nth-child(2) { animation-delay: 0.07s; }
.menu-grid .menu-card:nth-child(3) { animation-delay: 0.11s; }
.menu-grid .menu-card:nth-child(4) { animation-delay: 0.15s; }
.menu-grid .menu-card:nth-child(5) { animation-delay: 0.19s; }
.menu-grid .menu-card:nth-child(6) { animation-delay: 0.23s; }
.menu-grid .menu-card:nth-child(7) { animation-delay: 0.27s; }

.menu-card:hover {
  transform: translateY(-3px) scale(1.008);
  border-color: var(--accent-red-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 30, 39, 0.16);
}

.menu-card:active {
  transform: scale(0.97) translateY(0) !important;
  border-color: var(--accent-red);
  background: var(--bg-card-hover);
}

.menu-card:hover .card-arrow {
  transform: translateX(5px);
  color: var(--accent-red);
}

.menu-card:hover .card-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: rgba(255, 30, 39, 0.18);
  border-color: var(--accent-red);
}

.menu-card.highlight-card {
  border-color: rgba(255, 30, 39, 0.35);
  background: linear-gradient(135deg, #201218 0%, #15151e 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 30, 39, 0.12);
  animation: cardPulse 4s ease-in-out infinite, cardSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 30, 39, 0.1);
  border: 1px solid rgba(255, 30, 39, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-bounce), background var(--transition-fast), border-color var(--transition-fast);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-white);
}

.card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  color: var(--text-dim);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.card-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.tag-hot {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 8px var(--accent-red-glow);
}

.tag-new {
  background: #ff9100;
  color: #000;
}

.admin-card {
  border-color: #ffd700;
  background: linear-gradient(135deg, #221c10 0%, #16151e 100%);
}

.admin-card .card-icon-box {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.3);
  color: #ffd700;
}

/* ===================================================================
   FORMS, INPUTS & CONTROLS
   =================================================================== */

.form-group {
  margin-bottom: 18px;
  animation: cardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.sub-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.custom-input,
.custom-textarea,
.custom-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.custom-input:focus,
.custom-textarea:focus,
.custom-select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-subtle), 0 0 16px var(--accent-red-glow);
}

.custom-textarea {
  resize: vertical;
}

/* Chips & Segmented Controls */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.chip-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.chip-btn {
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.chip-btn:active {
  transform: scale(0.95);
}

.chip-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.15);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.country-card-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: cardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.country-card-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.country-card-btn:active {
  transform: scale(0.95);
}

.country-card-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.15);
}

.country-flag {
  font-size: 18px;
}

.segmented-control {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.segment-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segment-btn:hover {
  color: var(--text-white);
}

.segment-btn:active {
  transform: scale(0.95);
}

.segment-btn.active {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.15);
}

/* Currency Input & Clear Typography (No small letters) */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-tag {
  position: absolute;
  right: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-red);
  font-size: 13.5px;
  letter-spacing: 0.6px;
  pointer-events: none;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}

.price-approx {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-red);
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
  text-shadow: 0 0 12px var(--accent-red-glow);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-approx.pulse-update {
  animation: pulseGlowText 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.quick-chip {
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--accent-red-glow);
}

.quick-chip:active {
  transform: scale(0.92);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.year-select-wrap {
  margin-top: 10px;
}

/* ===================================================================
   BUTTONS (Shimmer, Glow & Haptic Press)
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.btn:active {
  transform: scale(0.96) translateY(1px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 24px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-red-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 26px var(--accent-red-glow);
  transform: translateY(-2px);
}

.glow-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 22px var(--accent-red-glow);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btnShimmer 3.8s infinite;
}

.glow-btn:hover {
  box-shadow: 0 6px 30px rgba(255, 30, 39, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--accent-red-border);
  color: var(--text-light);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.btn-secondary:active {
  background: var(--bg-card-hover);
  transform: scale(0.96);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-red-border);
  color: var(--text-white);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  background: var(--accent-red-subtle);
  transform: translateY(-1px);
}

/* ===================================================================
   CALCULATION RESULT CARD (Dramatic Reveal & Glowing Currency)
   =================================================================== */

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  animation: viewSlideUp 0.35s ease;
  transition: all var(--transition-normal);
}

.result-card.pulse-highlight {
  animation: resultGlow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-header {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.result-total-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Bold, Beautiful Currencies (Clear, No Small Letters) */
.result-total-usd {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  letter-spacing: -0.5px;
}

.result-total-rub {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-red);
  margin-top: 5px;
  text-shadow: 0 0 16px var(--accent-red-glow);
}

.result-meta {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 8px;
}

.breakdown-box {
  padding: 16px 0;
}

.breakdown-title {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg-input);
  border-radius: 7px;
  font-size: 12.5px;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.breakdown-item:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--accent-red);
  transform: translateX(3px);
}

.breakdown-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  font-size: 12.5px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* ===================================================================
   CURRENCY RATES & LIVE CONVERTER
   =================================================================== */

.rates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.rate-card {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rate-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-red-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 30, 39, 0.1);
}

.rate-flag {
  font-size: 26px;
  transition: transform var(--transition-bounce);
}

.rate-card:hover .rate-flag {
  transform: scale(1.15) rotate(4deg);
}

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

.rate-code {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.rate-value {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-red);
}

/* Converter Card */
.converter-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.converter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 14px;
}

.converter-amount-wrap {
  margin-bottom: 14px;
}

.converter-currencies-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.converter-col {
  flex: 1;
}

.converter-swap-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 30, 39, 0.12);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 2px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.converter-swap-btn:hover {
  background: rgba(255, 30, 39, 0.25);
  transform: rotate(180deg) scale(1.06);
  box-shadow: 0 0 14px var(--accent-red-glow);
}

.converter-swap-btn:active {
  transform: scale(0.92);
}

.converter-result-box {
  background: var(--bg-input);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  box-shadow: inset 0 0 14px rgba(255, 30, 39, 0.08);
}

.converter-result-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-red);
  margin-top: 4px;
  text-shadow: 0 0 16px var(--accent-red-glow);
  transition: all var(--transition-fast);
}

.converter-result-value.pulse-update {
  animation: pulseGlowText 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.converter-rate-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===================================================================
   CARS CATALOG
   =================================================================== */

.catalog-filters {
  margin-bottom: 16px;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.search-input {
  padding-left: 38px;
}

.search-input:focus + .search-icon,
.search-input-wrap:focus-within .search-icon {
  color: var(--accent-red);
}

.filter-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  white-space: nowrap;
  padding: 7px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--accent-red-border);
  color: var(--text-white);
}

.filter-pill:active {
  transform: scale(0.94);
}

.filter-pill.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 2px 10px var(--accent-red-glow);
  animation: selectPop 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease;
  animation: carCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.car-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 30, 39, 0.14);
}

.car-card:active {
  transform: scale(0.98);
  border-color: var(--accent-red);
}

.car-card-body {
  padding: 16px;
}

.car-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.car-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.car-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  border-radius: var(--radius-full);
}

.car-card-price {
  font-family: var(--font-heading);
  font-size: 18.5px;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 30, 39, 0.2);
}

.car-card-engine {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.car-card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* ===================================================================
   ORDERS & HISTORY
   =================================================================== */

.orders-list,
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.order-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  animation: cardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.order-item-card:hover {
  border-color: var(--accent-red-border);
  transform: translateY(-2px);
}

.order-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.order-item-type {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-red);
}

.order-item-desc {
  font-size: 13px;
  color: var(--text-white);
  white-space: pre-line;
  line-height: 1.45;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state i {
  font-size: 38px;
  color: var(--text-dim);
  margin-bottom: 10px;
  animation: floatBadge 3s ease-in-out infinite;
}

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-red-border);
}

.faq-item.active {
  border-color: var(--accent-red);
  box-shadow: 0 4px 18px rgba(255, 30, 39, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-arrow {
  color: var(--accent-red);
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 16px 16px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-answer {
  display: block;
  animation: cardSlideIn 0.25s ease;
}

/* ===================================================================
   ADMIN PANEL
   =================================================================== */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--accent-red-border);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  font-size: 20px;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--text-white);
}

.stat-card .stat-name {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-tab-content {
  margin-top: 16px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}

.form-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

/* ===================================================================
   BOTTOM NAVIGATION BAR (Interactive Spring & Glowing Active Tab)
   =================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 18px;
  left: 16px;
  right: 16px;
  width: auto;
  max-width: 440px;
  margin: 0 auto;
  height: 64px;
  border-radius: 9999px;
  background: rgba(18, 18, 24, 0.78);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  z-index: 9999;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-item i {
  font-size: 18px;
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active i {
  filter: none;
}

.nav-item.active::after {
  display: none;
}

/* ===================================================================
   MODALS & OVERLAYS
   =================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  animation: viewSlideUp 0.24s ease;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 30, 39, 0.15);
  animation: modalPopIn 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--accent-red);
  transform: rotate(90deg) scale(1.1);
}

.modal-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.compare-item:hover {
  border-color: var(--accent-red-border);
  transform: translateX(2px);
}

.compare-item.selected {
  border-color: var(--accent-red);
  background: var(--accent-red-subtle);
  box-shadow: inset 0 0 0 1px var(--accent-red);
}

.compare-country {
  font-weight: 700;
  color: var(--text-white);
  font-size: 13.5px;
}

.compare-port {
  font-size: 11px;
  color: var(--text-dim);
}

.compare-price {
  text-align: right;
}

/* Clear, Prominent Comparison Currencies (No Small/Dimmed Letters) */
.compare-usd {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
}

.compare-rub {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-red);
  margin-top: 2px;
}

/* Success Modal */
.modal-success {
  text-align: center;
  padding: 30px 20px;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 6px 24px var(--accent-red-glow);
  animation: selectPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 8px 0 20px 0;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background: rgba(22, 22, 30, 0.96);
  border: 1px solid var(--accent-red-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 30, 39, 0.2);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive tweaks */
@media (max-width: 360px) {
  .hero-title { font-size: 17px; }
  .country-grid { grid-template-columns: 1fr; }
  .grid-2-cols { grid-template-columns: 1fr; }
  .rates-grid { grid-template-columns: 1fr; }
  .converter-row { grid-template-columns: 1fr; }
}

/* ===================================================================
   ADMIN HEADER BUTTON & AI BOT CARD
   =================================================================== */

.admin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255, 30, 39, 0.12);
  border: 1px solid rgba(255, 30, 39, 0.35);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-header-btn:hover,
.admin-header-btn:active {
  background: rgba(255, 30, 39, 0.25);
  border-color: var(--accent-red);
  transform: scale(0.96);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.ai-bot-card {
  border-color: rgba(255, 30, 39, 0.45) !important;
  background: linear-gradient(145deg, rgba(28, 22, 26, 0.95) 0%, rgba(18, 18, 24, 0.95) 100%) !important;
}

.ai-glow {
  background: radial-gradient(circle at 85% 20%, rgba(255, 30, 39, 0.22) 0%, transparent 65%) !important;
}

.ai-icon-box {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.25) 0%, rgba(255, 30, 39, 0.05) 100%) !important;
  color: #ff3b44 !important;
  box-shadow: 0 0 16px rgba(255, 30, 39, 0.3) !important;
}

.tag-ai {
  background: rgba(46, 213, 115, 0.16);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-ai::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ed573;
  box-shadow: 0 0 8px #2ed573;
  animation: pulseDot 1.4s infinite;
}

/* ===================================================================
   AI CHAT INTERFACE (AI Integration)
   =================================================================== */

/* Single-Window Full-Height Chat Mode */
body.chat-view-active .app-header {
  display: none !important;
}

body.chat-view-active .app-content {
  padding: 0 !important;
  overflow: hidden !important;
}

#view-chat {
  display: none;
  flex-direction: column;
  height: calc(100vh - 65px);
  height: calc(100dvh - 65px);
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-main);
  overflow: hidden;
  position: relative;
  padding: 0;
}

#view-chat.active {
  display: flex !important;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: rgba(18, 18, 26, 0.98);
  border-bottom: 1px solid var(--accent-red-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  z-index: 30;
}

.chat-avatar-wrap {
  position: relative;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 14px var(--accent-red-glow);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #2ed573;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 6px #2ed573;
}

.chat-header-info {
  flex: 1;
}

.chat-bot-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.chat-bot-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-clear-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.chat-clear-btn:hover,
.chat-clear-btn:active {
  color: var(--text-white);
  border-color: var(--accent-red);
  transform: rotate(180deg);
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 92%;
  animation: messageIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.bot-bubble {
  align-self: flex-start;
}

.user-bubble {
  align-self: flex-end;
  flex-direction: row;
}

.chat-bubble .bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.bot-bubble .bubble-avatar {
  background: rgba(255, 30, 39, 0.18);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
}

.user-bubble .user-avatar {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bubble-content {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.bot-bubble .bubble-content {
  background: #191924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 4px;
  color: var(--text-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.bot-bubble .bubble-content p {
  margin-bottom: 6px;
}

.bot-bubble .bubble-content p:last-child {
  margin-bottom: 0;
}

.bot-bubble .bubble-content b {
  color: var(--text-white);
}

.bubble-hint {
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 6px;
  margin-top: 8px;
}

.user-bubble .bubble-content {
  background: linear-gradient(135deg, var(--accent-red) 0%, #a80006 100%);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 16px var(--accent-red-glow);
}

.user-bubble .bubble-content p {
  margin: 0;
}

/* Quick Question Chips */
.quick-questions-scroll {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-questions-scroll::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  background: rgba(26, 26, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.quick-chip:hover,
.quick-chip:active {
  border-color: var(--accent-red);
  background: rgba(255, 30, 39, 0.12);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Typing Indicator */
.typing-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 10px 18px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.typing-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 10px 14px 14px 14px;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.chat-input-field {
  flex: 1;
  background: rgba(14, 14, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 11px 18px;
  color: var(--text-white);
  font-size: 13.5px;
  outline: none;
  transition: all var(--transition-fast);
}

.chat-input-field:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 14px var(--accent-red-glow);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-red-glow);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--accent-red-glow);
}

.chat-send-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===================================================================
   ADMIN REDESIGN (4-CARD MENU, SUBVIEWS, DEEPSEEK STATS)
   =================================================================== */

.admin-subviews-wrap {
  animation: viewSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.admin-back-menu-btn {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-sub-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
}

.admin-sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.admin-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.admin-user-card:hover {
  border-color: var(--accent-red-border);
  transform: translateY(-1px);
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.admin-user-name-box {
  display: flex;
  flex-direction: column;
}

.admin-user-tag {
  font-size: 11.5px;
  color: var(--accent-red);
  font-family: var(--font-heading);
}

.admin-user-meta {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.badge-admin {
  background: rgba(255, 171, 0, 0.15);
  color: #ffab00;
  border: 1px solid rgba(255, 171, 0, 0.35);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-blocked {
  background: rgba(255, 59, 68, 0.15);
  color: #ff3b44;
  border: 1px solid rgba(255, 59, 68, 0.35);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.badge-lead {
  background: rgba(255, 30, 39, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-call {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.35);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* API Balance Card */
.api-balance-card {
  background: linear-gradient(145deg, rgba(28, 22, 26, 0.95) 0%, rgba(18, 18, 24, 0.95) 100%);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 30, 39, 0.12);
}

.api-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.api-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
}

.api-status-pill.online {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.35);
}

.api-status-pill.offline {
  background: rgba(255, 59, 68, 0.15);
  color: #ff3b44;
  border: 1px solid rgba(255, 59, 68, 0.35);
}

.api-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.api-balance-caption {
  font-size: 12px;
  color: var(--text-muted);
}

.api-balance-val {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-white);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  line-height: 1.1;
  margin-top: 2px;
}

.api-sub-balances {
  display: flex;
  gap: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  font-size: 11.5px;
}

.api-sub-item {
  display: flex;
  gap: 6px;
}

.sub-label {
  color: var(--text-muted);
}

.sub-val {
  color: var(--text-white);
  font-weight: 700;
}

/* User Token Cards */
.token-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.token-user-card:hover {
  border-color: var(--accent-red-border);
  transform: translateY(-1px);
}

.token-user-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.token-user-name {
  color: var(--text-white);
  font-size: 13.5px;
  display: block;
}

.token-user-sub {
  font-size: 11px;
  color: var(--accent-red);
}

.token-total-badge {
  background: rgba(255, 30, 39, 0.12);
  border: 1px solid var(--accent-red-border);
  border-radius: 12px;
  padding: 3px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-white);
}

.token-user-breakdown {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.token-user-breakdown b {
  color: var(--text-white);
}

.token-user-time {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 4px;
}

/* Success Modal Bot Prompt Banner */
.success-bot-banner {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.14) 0%, rgba(20, 20, 28, 0.95) 100%);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 16px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.bot-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 30, 39, 0.2);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.bot-banner-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-white);
  margin-bottom: 2px;
}

.bot-banner-sub {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* ===================================================================
   ADMIN USER ACTION MODAL & SHEET
   =================================================================== */

.user-action-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.user-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.2) 0%, rgba(255, 30, 39, 0.05) 100%);
  border: 1px solid var(--accent-red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 20px;
  flex-shrink: 0;
}

.user-action-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-action-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-action-tag {
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 600;
}

.user-action-id {
  font-size: 11px;
  color: var(--text-dim);
  font-family: monospace;
}

.action-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-white);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.action-sheet-btn i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.action-sheet-btn:hover {
  transform: translateY(-1px);
}

.action-sheet-btn:active {
  transform: scale(0.98);
}

/* Action variations */
.action-sheet-btn.primary-action {
  background: rgba(0, 168, 255, 0.08);
  border-color: rgba(0, 168, 255, 0.3);
  color: #38bdf8;
}

.action-sheet-btn.primary-action:hover {
  background: rgba(0, 168, 255, 0.16);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.action-sheet-btn.danger-action {
  background: rgba(255, 30, 39, 0.08);
  border-color: rgba(255, 30, 39, 0.3);
  color: #ff4757;
}

.action-sheet-btn.danger-action:hover {
  background: rgba(255, 30, 39, 0.16);
  border-color: #ff4757;
  box-shadow: 0 0 14px rgba(255, 71, 87, 0.25);
}

.action-sheet-btn.warning-action {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.action-sheet-btn.warning-action:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}

.action-sheet-btn.success-action {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.action-sheet-btn.success-action:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.25);
}

/* Admin Users List Card */
.admin-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.admin-user-card:hover {
  border-color: var(--accent-red-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.admin-user-card:active {
  transform: scale(0.99);
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-user-name-box b {
  font-size: 14px;
  color: var(--text-white);
}

.admin-user-tag {
  font-size: 11.5px;
  color: var(--accent-red);
  display: block;
  margin-top: 2px;
}

.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-dim);
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

.admin-user-meta code {
  color: var(--text-light);
  font-family: monospace;
}

.badge-admin {
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-blocked {
  background: rgba(255, 30, 39, 0.15);
  border: 1px solid rgba(255, 30, 39, 0.4);
  color: #ff4757;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-call {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================================
   AI MODEL PROVIDER SWITCHER (OLLAMA vs DEEPSEEK)
   =================================================================== */

.active-provider-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-provider-pill.gemini-pill {
  background: rgba(0, 230, 118, 0.16) !important;
  border: 1px solid rgba(0, 230, 118, 0.45) !important;
  color: #00e676 !important;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.active-provider-pill.ollama-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.active-provider-pill.deepseek-pill {
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.4);
  color: #38bdf8;
}

.badge-gemini {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.18);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.provider-switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 540px) {
  .provider-switch-grid {
    grid-template-columns: 1fr;
  }
}

.provider-card {
  background: rgba(25, 26, 35, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.provider-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.provider-card.active {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.provider-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 6px;
}

.provider-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.provider-title-wrap b {
  font-size: 13px;
  color: var(--text-white);
}

.badge-free {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  white-space: nowrap;
}

.badge-paid {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.35);
  color: #38bdf8;
  white-space: nowrap;
}

.provider-card-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 8px;
}

.provider-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 6px;
}

.status-dot-mini {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.status-dot-mini.online {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.status-dot-mini.offline {
  background: #ff4757;
}

.vps-specs-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(0, 168, 255, 0.06);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-light);
}

.vps-specs-callout b {
  color: var(--text-white);
  display: block;
  margin-bottom: 3px;
}

.vps-specs-callout p {
  margin: 0;
}

.badge-mini-model {
  font-size: 10px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-red);
}

.api-balance-card.inactive-card {
  opacity: 0.65;
  filter: grayscale(0.2);
  transition: all var(--transition-fast);
}

.api-balance-card.inactive-card:hover {
  opacity: 0.9;
}

/* ==========================================================================
   LIQUID GLASS AI SETTINGS (NO RED COLORS)
   ========================================================================== */
.liquid-glass-card {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.liquid-glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.liquid-slider-group {
  margin-bottom: 14px;
}

.liquid-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.liquid-slider-title {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.liquid-slider-val {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.liquid-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: all 0.2s ease;
}

.liquid-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.liquid-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.liquid-glass-tab {
  padding: 6px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.liquid-glass-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.liquid-glass-tab.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.liquid-glass-tab.add-tab {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.35);
  color: #00e676;
}

.liquid-glass-tab.add-tab:hover {
  background: rgba(0, 230, 118, 0.22);
}

.btn-glass-delete {
  padding: 7px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 8px;
  font-size: 11.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-glass-delete:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.btn-glass-save {
  width: 100%;
  cursor: pointer;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.85) 0%, rgba(14, 165, 233, 0.85) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-glass-save:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 1) 0%, rgba(14, 165, 233, 1) 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}






