/* ==========================================================================
   MedPrice - Telegram Web App Design System
   ========================================================================== */

:root {
  /* Dynamic Telegram or fallback colors */
  --bg-color: var(--tg-theme-bg-color, #f8fafc);
  --secondary-bg: var(--tg-theme-secondary-bg-color, #ffffff);
  --text-color: var(--tg-theme-text-color, #0f172a);
  --text-muted: var(--tg-theme-hint-color, #64748b);
  --link-color: var(--tg-theme-link-color, #2563eb);
  --button-color: var(--tg-theme-button-color, #2563eb);
  --button-text-color: var(--tg-theme-button-text-color, #ffffff);

  /* Brand and Accent colors */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --accent-color: #0284c7;
  --accent-light: #e0f2fe;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  /* Surfaces & Borders */
  --card-bg: var(--tg-theme-secondary-bg-color, #ffffff);
  --border-color: rgba(226, 232, 240, 0.8);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: var(--tg-theme-bg-color, #090d16);
    --secondary-bg: var(--tg-theme-secondary-bg-color, #131b2e);
    --text-color: var(--tg-theme-text-color, #f1f5f9);
    --text-muted: var(--tg-theme-hint-color, #94a3b8);
    --card-bg: var(--tg-theme-secondary-bg-color, #131b2e);
    --border-color: rgba(51, 65, 85, 0.6);
  }
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 70px;
  overflow-x: hidden;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 4px;
}

/* ==========================================================================
   Top Header & Live Rate Bar
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.portal-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-color);
  line-height: 1.2;
}

.portal-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.rate-control-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px 6px 4px 12px;
}

.rate-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.rate-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.rate-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: none;
  border-radius: 20px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.rate-badge:hover {
  background: rgba(37, 99, 235, 0.2);
}

.currency-toggle {
  display: flex;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.curr-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.curr-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* ==========================================================================
   Toolbar Section (Search & Actions)
   ========================================================================== */
.toolbar-section {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 38px 12px 42px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: rgba(148, 163, 184, 0.2);
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.view-switch {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-btn span {
  display: none;
}

@media (min-width: 640px) {
  .view-btn span { display: inline; }
}

.view-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
}

.cart-trigger-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-trigger-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: #2563eb;
  color: #2563eb;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger-color);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   Categories Nav Bar
   ========================================================================== */
.categories-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.categories-nav::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cat-tab .badge {
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 12px;
}

.cat-tab.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cat-tab.active .badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Sub-filters (Type pills)
   ========================================================================== */
.subfilters-container {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.subfilters-container::-webkit-scrollbar { display: none; }

.subfilter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-pill {
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.filter-pill.active {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

/* ==========================================================================
   Results Info Bar
   ========================================================================== */
.results-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
  padding: 0 4px;
}

.sync-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.sync-refresh-btn:hover {
  background: rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Products Grid (Cards View)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.4);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.no-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
  background: rgba(148, 163, 184, 0.08);
}

.brand-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.ref-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-color);
}

.specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.spec-chip {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-usd {
  font-size: 0.96rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.1;
}

.price-uzs {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-cart-btn {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.card-cart-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   Table View
   ========================================================================== */
.products-table-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.products-table th {
  background: rgba(148, 163, 184, 0.08);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.products-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.products-table tr:hover {
  background: rgba(37, 99, 235, 0.03);
}

.table-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-color);
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay, .cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}

.mini-modal {
  max-width: 380px;
}

.modal-close-btn, .cart-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(148, 163, 184, 0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.modal-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-brand-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.modal-ref {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: monospace;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-color);
  padding: 10px;
  border-radius: var(--border-radius-sm);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-item .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.spec-item .val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-color);
}

.modal-price-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.price-row-usd, .price-row-uzs {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-val-usd {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2563eb;
}

.price-val-uzs {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-color);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.qty-value {
  font-weight: 800;
  font-size: 1.1rem;
}

.btn-primary, .btn-telegram, .btn-secondary, .btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-telegram {
  background: #229ED9;
  color: #ffffff;
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-color);
}

.btn-checkout {
  width: 100%;
  background: var(--success-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  justify-content: flex-end;
  padding: 0;
}

.cart-drawer {
  background: var(--card-bg);
  width: 100%;
  max-width: 440px;
  height: 100%;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-color);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.cart-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-prices {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 700;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--danger-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.uzs-total {
  font-size: 1.1rem;
  color: #2563eb;
  font-weight: 800;
  margin-bottom: 14px;
}

.dealer-info-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.dealer-info-form input {
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

/* Rate edit input wrap */
.rate-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.rate-input-wrap input {
  width: 100%;
  padding: 12px 60px 12px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
}

.rate-suffix {
  position: absolute;
  right: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--border-color);
}
.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
