/* ===== Telegram theme variables ===== */
:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --secondary-bg: var(--tg-theme-secondary-bg-color, #f7f7fb);
  --text: var(--tg-theme-text-color, #1a1a2e);
  --hint: var(--tg-theme-hint-color, #8e8e93);
  --link: var(--tg-theme-link-color, #E91E63);
  --button: var(--tg-theme-button-color, #E91E63);
  --button-text: var(--tg-theme-button-text-color, #ffffff);
  --separator: var(--tg-theme-section-separator-color, #f0f0f5);

  /* Brend ranglari (mockup'ga mos pink theme) */
  --primary: #E91E63;
  --primary-dark: #C2185B;
  --primary-light: #FCE4EC;
  --primary-tint: #FFF0F4;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --rating-star: #FFC107;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --pad: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.10);
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--secondary-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body {
  /* Bottom-nav (68 + 12 = 80) + safe-area + qo'shimcha. */
  padding-bottom: calc(160px + env(safe-area-inset-bottom));
}
/* Har bir .page ichida oxirgi tugma navbar orqasida qolmasligi uchun
   QO'SHIMCHA kafolatlangan bo'sh joy. Bu desktop / iOS / Android'da
   bir xil ko'rinishni ta'minlaydi. */
.page::after {
  content: "";
  display: block;
  height: 100px;
}
button { font-family: inherit; font-size: inherit; cursor: pointer; }
button:focus { outline: none; }
.hidden { display: none !important; }

/* ===== Splash ===== */
.splash {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  z-index: 9999;
  gap: 12px;
}
.splash-logo { font-size: 64px; }
.splash-logo-img { width: 80px; height: 80px; border-radius: 18px; }
.splash-title { font-size: 24px; font-weight: 700; color: var(--primary); }
.splash-tagline { color: var(--text); font-size: 15px; font-weight: 500; margin-top: -4px; }
.splash-subtitle { color: var(--hint); font-size: 13px; margin-top: 4px; }
.loader {
  width: 32px; height: 32px;
  border: 3px solid var(--separator);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Page ===== */
.page {
  padding: 4px 16px 16px;
}
.page-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.page-header h1 { font-size: 22px; font-weight: 700; }
.back-btn {
  background: var(--bg); border: none;
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
}

/* ===== Bosh sahifa header (Salom, Ali! + location + bell) ===== */
.home-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.home-greeting {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.home-location {
  display: flex; align-items: center; gap: 4px;
  color: var(--hint);
  font-size: 14px;
}
.home-location .svg-icon { color: var(--primary); }
.bell-btn {
  background: var(--bg);
  border: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.bell-dot {
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 4px;
  border: 2px solid var(--bg);
}
.bell-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  border: 2px solid var(--bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Cards ===== */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 17px; font-weight: 700; margin-bottom: 12px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 2px;
}
.section-header h2 { font-size: 17px; font-weight: 700; }
.section-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
}

/* ===== Search ===== */
.search-bar {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  color: var(--hint);
}
.search-bar .svg-icon { color: var(--hint); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: none; background: transparent;
  color: var(--text); font-size: 15px;
}
.search-bar input::placeholder { color: var(--hint); }
.search-bar input:focus { outline: none; }

.filter-toggle {
  border: none;
  background: var(--secondary-bg);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 18px;
  color: var(--primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.filters-panel {
  background: var(--bg);
  border-radius: 14px;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  box-shadow: var(--shadow);
}
.filters-panel.expanded {
  padding: 12px 16px;
  max-height: 400px;
}
.filter-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}
.filter-row:last-child { border-bottom: none; }
.filter-row label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.filter-row select {
  border: none;
  background: var(--secondary-bg);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 150px;
  text-align: right;
}
.filter-row select:focus { outline: 2px solid var(--primary); }

/* ===== Categories grid (3 ustun pink tiles) ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.category-tile {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 6px 10px;
  text-align: center;
  border: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  color: var(--text);
  position: relative;
  box-shadow: var(--shadow);
}
.category-tile:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.category-tile:active { transform: scale(0.96); }
.category-icon {
  font-size: 24px;
  line-height: 1;
}
/* ===== Yangi: rangli SVG kategoriya tile'i ===== */
.category-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  margin-bottom: 4px;
}
.svg-icon svg { display: block; }
.svg-icon { line-height: 0; }
.category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ===== List items ===== */
.list-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  display: flex; gap: 12px; align-items: center;
  border: none; width: 100%;
  text-align: left;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.1s ease;
}
.list-item:active { transform: scale(0.98); }
.list-thumb {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  font-weight: 700;
  overflow: hidden;
}
.list-thumb-img { object-fit: cover; }
.branch-dist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.list-content { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-subtitle { font-size: 13px; color: var(--hint); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-arrow { color: var(--hint); font-size: 18px; }

/* Sevimliga qoshish — orgListItem ichidagi yurakcha */
.fav-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--hint);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.fav-heart:hover { background: rgba(233, 30, 99, 0.08); }
.fav-heart:active { transform: scale(0.9); }
.fav-heart.active { color: #E91E63; }

/* ===== Rating ===== */
.rating {
  color: var(--rating-star);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rating-count { color: var(--hint); font-size: 12px; }

/* ===== Status text ===== */
.status-open { color: var(--success); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.status-open::before { content: "●"; }
.status-closed { color: var(--danger); font-size: 13px; font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.1s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-arrived { background: var(--success); color: #fff; }
.btn-late { background: var(--danger); color: #fff; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.badge-pending   { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1ecf1; color: #0c5460; }
.badge-progress  { background: #d4edda; color: #155724; }
.badge-completed { background: #e2e3e5; color: #41464b; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-noshow    { background: #f8d7da; color: #721c24; }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--hint);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  color: var(--hint);
  opacity: 0.5;
}
.empty-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-text { font-size: 14px; }

/* ===== Service item ===== */
.service-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
}
.service-name { font-weight: 600; }
.service-meta { font-size: 12px; color: var(--hint); margin-top: 2px; }
.service-arrow { font-size: 22px; color: var(--primary); white-space: nowrap; margin-left: 12px; opacity: 0.55; }

/* ===== Tabs (My Bookings) ===== */
.tabs-bar {
  display: flex;
  gap: 6px;
  background: var(--secondary-bg);
  padding: 4px;
  border-radius: 14px;
  margin-top: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--hint);
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ===== QR Code ===== */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  background: var(--secondary-bg);
  border-radius: var(--radius);
  margin: 12px 0;
}
.qr-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.qr-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hint);
  text-align: center;
}

/* ===== Calendar ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.calendar-day {
  background: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.15s;
}
.calendar-day:disabled { opacity: 0.35; }
.calendar-day.selected {
  background: var(--primary);
  color: white;
}
.calendar-day .dow { font-size: 10px; color: var(--hint); margin-bottom: 2px; }
.calendar-day.selected .dow { color: rgba(255,255,255,0.8); }
.calendar-day .day-num { font-size: 18px; font-weight: 700; }

/* ===== Time slots ===== */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.slot-btn {
  background: var(--bg);
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.slot-btn:disabled {
  opacity: 0.4;
  text-decoration: line-through;
}
.slot-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* Band (booked) slot — kulrang fonda, qizg'ish matn, cursor not-allowed */
.slot-btn-booked {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  border-color: #FECACA !important;
  text-decoration: line-through;
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

/* ===== Profile rows (eski — qoladi boshqa joylar uchun) ===== */
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--separator);
}
.profile-row:last-child { border: none; }
.profile-row .key { color: var(--hint); }
.profile-row .val { font-weight: 500; }

/* ===== Yangi profil sahifasi ===== */
.profile-page { padding: 0; }
.profile-hero {
  margin: -16px -16px 16px;
  padding: 36px 20px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0 0 28px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -100px; right: -50px;
}
.profile-hero-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  z-index: 1;
}
.profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: white;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.profile-hero-camera {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.profile-hero-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.profile-hero-phone {
  font-size: 14px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}
.profile-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.profile-hero-edit {
  margin-top: 14px;
  background: white;
  color: var(--primary);
  border: none;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Action ro'yxati ===== */
.profile-actions {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid var(--separator);
  transition: background 0.15s ease;
}
.profile-action:last-child { border-bottom: none; }
.profile-action:active { background: var(--secondary-bg); }
.profile-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-action-text { flex: 1; min-width: 0; }
.profile-action-title { font-size: 15px; font-weight: 500; }
.profile-action-sub { font-size: 12px; color: var(--hint); margin-top: 2px; }
.profile-action-arrow {
  color: var(--hint);
  font-size: 22px;
  line-height: 1;
}

/* Settings card with single language row */
.profile-settings { padding: 0; }
.profile-setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.lang-select-pill {
  border: none;
  background: var(--secondary-bg);
  padding: 6px 28px 6px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.profile-close { margin-top: 8px; }

/* Profil ichidagi til tanlash dropdown */
.lang-select {
  border: none;
  background: var(--secondary-bg);
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
.lang-select:focus { outline: 2px solid var(--primary); }

/* ===== Booking summary ===== */
.summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--separator);
}
.summary-row:last-child { border: none; }
.summary-row .key { color: var(--hint); }
.summary-row .val { font-weight: 600; text-align: right; }

/* ===== Bottom nav (floating pill style) ===== */
.bottom-nav {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  background: var(--bg);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  height: 68px;
  z-index: 100;
  padding: 0 4px;
}
.nav-btn {
  flex: 1;
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--hint);
  position: relative;
  border-radius: 18px;
  margin: 6px 2px;
  transition: all 0.2s;
}
.nav-btn.active {
  color: var(--primary);
  background: var(--primary-tint);
}
.nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.nav-icon svg { width: 22px; height: 22px; }
.nav-label { font-size: 11px; font-weight: 600; }
.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  line-height: 1.5;
}

/* ===== Toast ===== */
#toast-container {
  position: fixed; top: 16px; left: 16px; right: 16px;
  z-index: 9000;
  pointer-events: none;
}
.toast {
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Skeleton loader ===== */
.skeleton {
  background: linear-gradient(90deg, var(--separator) 0%, var(--bg) 50%, var(--separator) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-list-item { height: 76px; margin-bottom: 10px; }

/* ===== Reklama bannerlari (TZ 6.6) ===== */
.banners-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
  padding: 0 16px 4px;
  margin: 12px -16px 16px;
  -webkit-overflow-scrolling: touch;
}
.banners-wrapper::-webkit-scrollbar { display: none; }
.banner-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
  min-height: 140px;
  background-color: #E11D74;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: none;
  padding: 20px;
  text-align: left;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
.banner-card:active { transform: scale(0.98); }
.banner-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.banner-card-desc {
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner-card-cta {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  align-self: flex-start;
  background: rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ===== Support composer (Telegram tarzida) ===== */
.sup-composer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px;
  margin: 12px -16px -16px;
  background: var(--bg);
  border-top: 1px solid var(--separator);
}
.sup-composer textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 14px;
  border: 1px solid var(--separator);
  border-radius: 20px;
  background: var(--card-bg, var(--bg));
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.3;
  resize: none;
  outline: none;
  box-shadow: none;
}
.sup-composer textarea:focus {
  border-color: var(--primary);
}
.sup-send {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s, transform 0.1s;
}
.sup-send:active {
  transform: scale(0.92);
}
.sup-send:disabled {
  opacity: 0.4;
  cursor: default;
}
.sup-send svg {
  margin-left: 2px;  /* Vizual markaz uchun (paper-plane biroz chap tomonda) */
}
.sup-attach-btn {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--separator);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
}
.sup-attach-btn:active {
  transform: scale(0.92);
}
