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

:root {
  --tg-bg: var(--tg-theme-bg-color, #ffffff);
  --tg-text: var(--tg-theme-text-color, #1a1a1a);
  --tg-hint: var(--tg-theme-hint-color, #999999);
  --tg-link: var(--tg-theme-link-color, #2B5797);
  --tg-btn: var(--tg-theme-button-color, #2B5797);
  --tg-btn-text: var(--tg-theme-button-text-color, #ffffff);
  --tg-secondary: var(--tg-theme-secondary-bg-color, #f2f2f7);
  --success: #1D9E75;
  --success-bg: rgba(29,158,117,0.08);
  --danger: #E24B4A;
  --warning: #EF9F27;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.06);
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--tg-secondary);
  color: var(--tg-text);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--tg-bg); }

/* ===== HEADER ===== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 6px; background: var(--tg-bg);
}
.header-left { display: flex; align-items: center; gap: 8px; }
.header-logo { font-size: 18px; }
.header-title { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.header-counter {
  display: flex; align-items: baseline; gap: 2px;
  padding: 4px 10px; background: var(--tg-secondary); border-radius: 20px;
}
.counter-num { font-size: 14px; font-weight: 600; color: var(--tg-link); }
.counter-label { font-size: 12px; color: var(--tg-hint); }

/* ===== SEARCH ===== */
.search-wrap {
  padding: 6px 16px 8px; position: sticky; top: 0;
  background: var(--tg-bg); z-index: 10;
}
.search-row { display: flex; gap: 8px; }
.search-field {
  flex: 1; position: relative; display: flex; align-items: center;
  background: var(--tg-secondary); border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.search-field:focus-within { box-shadow: 0 0 0 2px var(--tg-link); }
.search-icon { position: absolute; left: 14px; color: var(--tg-hint); pointer-events: none; }
.search-input {
  width: 100%; padding: 12px 36px 12px 42px; border: none; background: transparent;
  color: var(--tg-text); font-size: 15px; outline: none;
}
.search-input::placeholder { color: var(--tg-hint); }
.search-clear {
  position: absolute; right: 8px; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tg-hint); color: var(--tg-bg);
  font-size: 14px; cursor: pointer; opacity: 0.5; transition: opacity var(--transition);
}
.search-clear:active { opacity: 0.8; }
.search-btn {
  padding: 12px 20px; border-radius: var(--radius); background: var(--tg-btn);
  color: var(--tg-btn-text); border: none; font-size: 15px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; transition: all var(--transition);
}
.search-btn:active { transform: scale(0.96); opacity: 0.9; }
.search-btn:disabled { opacity: 0.5; }

/* ===== TABS ===== */
.tabs {
  display: flex; padding: 0 8px; margin: 2px 0;
  border-bottom: 1px solid var(--border); background: var(--tg-bg);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 10px; font-size: 11px; font-weight: 500;
  color: var(--tg-hint); border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
}
.tab.active { color: var(--tg-link); border-bottom-color: var(--tg-link); }
.tab svg { stroke: currentColor; }

/* ===== VIEWS ===== */
.view { display: none; padding: 0 0 24px; animation: fadeIn 0.25s ease; }
.view.active-view { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.view-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.view-header-title { font-size: 16px; font-weight: 600; }
.view-header-action { font-size: 14px; color: var(--danger); cursor: pointer; }
.view-header-count { font-size: 13px; color: var(--tg-hint); }

/* ===== WELCOME ===== */
.welcome-hero { text-align: center; padding: 28px 24px 20px; }
.welcome-icon-wrap { margin-bottom: 12px; }
.welcome-icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(43,87,151,0.1), rgba(83,74,183,0.1));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tg-link);
}
.welcome-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 6px; }
.welcome-sub { font-size: 14px; color: var(--tg-hint); line-height: 1.5; }

.popular-section { padding: 0 16px 20px; }
.popular-title { font-size: 13px; font-weight: 600; color: var(--tg-hint); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px; }
.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-tag {
  padding: 9px 14px; border-radius: 20px; background: var(--tg-secondary);
  font-size: 13px; color: var(--tg-text); cursor: pointer;
  transition: all var(--transition); font-weight: 500;
}
.quick-tag:active { transform: scale(0.95); background: var(--tg-link); color: var(--tg-btn-text); }

.how-it-works { padding: 0 16px 8px; }
.how-title { font-size: 13px; font-weight: 600; color: var(--tg-hint); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 12px; }
.how-steps { display: flex; flex-direction: column; gap: 10px; }
.how-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--tg-secondary); border-radius: var(--radius-sm);
}
.how-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--tg-link); color: var(--tg-btn-text);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.how-text { font-size: 14px; color: var(--tg-text); }

/* ===== SKELETON LOADING ===== */
.loading-header { display: flex; align-items: center; gap: 12px; padding: 20px 16px 16px; }
.loading-spinner {
  width: 28px; height: 28px; border: 3px solid var(--tg-secondary);
  border-top-color: var(--tg-link); border-radius: 50%; flex-shrink: 0;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; font-weight: 600; margin: 0; }
.loading-sub { font-size: 13px; color: var(--tg-hint); margin: 2px 0 0; }
.skeleton-cards { padding: 0 16px; }
.skeleton-card {
  background: var(--tg-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px;
}
.sk-line { height: 12px; border-radius: 6px; background: var(--tg-secondary); margin-bottom: 10px; animation: pulse 1.5s infinite; }
.sk-short { width: 30%; }
.sk-long { width: 85%; }
.sk-price { width: 40%; height: 20px; border-radius: 8px; }
.sk-btn { width: 100%; height: 38px; border-radius: var(--radius-sm); margin-bottom: 0; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ===== RESULTS ===== */
.saving-bar {
  margin: 10px 16px 8px; padding: 11px 14px;
  background: var(--success-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
}
.saving-icon-wrap { color: var(--success); flex-shrink: 0; }
.saving-text { font-size: 14px; color: var(--success); font-weight: 600; }

.results-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; }
.result-label { font-size: 13px; color: var(--tg-hint); margin: 0; }
.share-result {
  display: flex; align-items: center; gap: 4px; font-size: 13px;
  color: var(--tg-link); cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius-xs); transition: background var(--transition);
}
.share-result:active { background: var(--tg-secondary); }
.results { padding: 0 16px; }

/* ===== CARDS ===== */
.card {
  background: var(--tg-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-card);
  animation: cardIn 0.35s ease both;
  transition: transform 0.15s ease;
}
.card:active { transform: scale(0.985); }
.card.best { border: 2px solid var(--success); box-shadow: 0 2px 8px rgba(29,158,117,0.12); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }

.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-mp { font-size: 12px; font-weight: 700; color: var(--tg-hint); text-transform: uppercase; letter-spacing: 0.6px; }
.card-badges { display: flex; align-items: center; gap: 6px; }
.card-badge {
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: var(--success-bg); color: var(--success); font-weight: 600;
}
.card-cached {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: var(--tg-secondary); color: var(--tg-hint); font-weight: 500;
}
.card-fav {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--tg-hint);
  border-radius: 50%; transition: all var(--transition);
}
.card-fav:active { transform: scale(1.2); }
.card-fav.active { color: var(--warning); }

.card-name { font-size: 15px; color: var(--tg-text); margin: 0 0 8px; line-height: 1.4; font-weight: 400; }
.card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.card-price { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.card-price.best-price { color: var(--success); }
.card-old { font-size: 14px; color: var(--tg-hint); text-decoration: line-through; }
.card-discount { font-size: 12px; color: var(--success); font-weight: 600; padding: 2px 6px; background: var(--success-bg); border-radius: 4px; }
.card-btn {
  display: block; text-align: center; padding: 11px; border-radius: var(--radius-sm);
  background: var(--tg-secondary); color: var(--tg-link); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all var(--transition);
}
.card-btn:active { background: var(--tg-link); color: var(--tg-btn-text); }

/* ===== ERROR ===== */
.error-wrap { text-align: center; padding: 48px 24px; }
.error-icon-wrap { color: var(--danger); margin-bottom: 12px; }
.error-title { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.error-sub { font-size: 14px; color: var(--tg-hint); margin: 0 0 20px; }
.retry-btn {
  padding: 12px 28px; border-radius: var(--radius); background: var(--tg-btn);
  color: var(--tg-btn-text); border: none; font-size: 15px; font-weight: 600; cursor: pointer;
}
.retry-btn:active { opacity: 0.85; }

/* ===== HISTORY ===== */
.history-list { padding: 0 16px; }
.history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer;
  transition: opacity var(--transition);
}
.history-item:active { opacity: 0.6; }
.history-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.history-icon { color: var(--tg-hint); flex-shrink: 0; }
.history-query { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.history-time { font-size: 12px; color: var(--tg-hint); }
.history-delete {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: var(--tg-hint); font-size: 18px; cursor: pointer; border-radius: 50%;
  transition: all var(--transition);
}
.history-delete:active { background: rgba(226,75,74,0.1); color: var(--danger); }

/* ===== FAVORITES ===== */
.fav-list { padding: 0 16px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-icon { color: var(--tg-hint); opacity: 0.4; margin-bottom: 12px; }
.empty-title { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.empty-sub { font-size: 14px; color: var(--tg-hint); line-height: 1.5; }

/* ===== SETTINGS ===== */
.settings { padding: 12px 16px; }
.settings-section { margin-bottom: 20px; }
.settings-label { font-size: 13px; font-weight: 600; color: var(--tg-hint); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 8px; padding: 0 4px; }
.settings-group { background: var(--tg-secondary); border-radius: var(--radius); overflow: hidden; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-name { font-size: 15px; display: block; }
.setting-desc { font-size: 12px; color: var(--tg-hint); display: block; margin-top: 2px; }
.setting-value-pill { font-size: 14px; color: var(--tg-link); font-weight: 500; padding: 4px 10px; background: var(--tg-bg); border-radius: var(--radius-xs); }
.setting-link { font-size: 14px; color: var(--tg-link); cursor: pointer; }
.setting-muted { font-size: 14px; color: var(--tg-hint); }

.toggle {
  width: 48px; height: 28px; border-radius: 14px; background: var(--tg-hint);
  opacity: 0.35; position: relative; cursor: pointer;
  transition: all var(--transition); flex-shrink: 0;
}
.toggle.on { background: var(--success); opacity: 1; }
.toggle-dot {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; left: 2px; transition: left var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.on .toggle-dot { left: 22px; }

.city-select { padding: 6px 12px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--tg-bg); color: var(--tg-text); font-size: 14px; }

.premium-card {
  background: linear-gradient(135deg, #2B5797 0%, #534AB7 100%);
  border-radius: var(--radius); padding: 16px; margin-bottom: 20px; cursor: pointer;
  transition: transform var(--transition);
}
.premium-card:active { transform: scale(0.98); }
.premium-row { display: flex; align-items: center; gap: 12px; }
.premium-icon-wrap { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.premium-info { flex: 1; }
.premium-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0; }
.premium-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin: 2px 0 0; }
.premium-arrow { font-size: 22px; color: rgba(255,255,255,0.5); }
.settings-footer { text-align: center; font-size: 12px; color: var(--tg-hint); margin: 24px 0 0; line-height: 1.6; }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); animation: fadeIn 0.2s ease; }
.modal-sheet {
  position: relative; background: var(--tg-bg); border-radius: 20px 20px 0 0;
  padding: 8px 16px 36px; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  animation: sheetUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--tg-hint); opacity: 0.3; margin: 0 auto 12px; }
.modal-close { position: absolute; top: 12px; right: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--tg-hint); cursor: pointer; border-radius: 50%; background: var(--tg-secondary); }

.pm-hero { text-align: center; padding: 8px 0 16px; }
.pm-icon { font-size: 40px; margin-bottom: 4px; }
.pm-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.3px; }
.pm-sub { font-size: 14px; color: var(--tg-hint); margin: 0; }

.pm-features { margin: 0 0 20px; }
.pm-feat { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pm-feat-icon { width: 36px; height: 36px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pm-feat-icon.blue { background: rgba(43,87,151,0.1); color: #2B5797; }
.pm-feat-icon.green { background: var(--success-bg); color: var(--success); }
.pm-feat-icon.amber { background: rgba(186,117,23,0.08); color: #BA7517; }
.pm-feat-icon.purple { background: rgba(83,74,183,0.08); color: #534AB7; }
.pm-feat-name { font-size: 15px; font-weight: 600; }
.pm-feat-desc { font-size: 13px; color: var(--tg-hint); margin-top: 1px; }

.pm-plans { margin: 0 0 16px; }
.pm-plan {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer; position: relative; transition: border-color var(--transition);
}
.pm-plan.selected { border-color: var(--tg-link); border-width: 2px; }
.pm-plan-badge { position: absolute; top: -9px; right: 14px; font-size: 11px; padding: 2px 10px; border-radius: 6px; background: rgba(43,87,151,0.1); color: var(--tg-link); font-weight: 600; }
.pm-radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--tg-hint);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.pm-radio.on { border-color: var(--tg-link); }
.pm-radio.on::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--tg-link); }
.pm-plan-info { flex: 1; }
.pm-plan-name { font-size: 15px; font-weight: 600; }
.pm-plan-detail { font-size: 12px; color: var(--tg-hint); margin-top: 2px; }
.pm-plan-detail.green { color: var(--success); }
.pm-plan-price { font-size: 17px; font-weight: 700; }

.pm-pay-btn {
  display: block; width: 100%; padding: 15px; border-radius: var(--radius);
  background: var(--tg-btn); color: var(--tg-btn-text); border: none;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-bottom: 8px;
  transition: all var(--transition);
}
.pm-pay-btn:active { transform: scale(0.98); opacity: 0.9; }
.pm-stars-btn {
  display: block; width: 100%; padding: 14px; border-radius: var(--radius);
  background: var(--tg-secondary); color: var(--tg-text); border: none;
  font-size: 15px; font-weight: 500; cursor: pointer; margin-bottom: 12px;
}
.pm-note { text-align: center; font-size: 12px; color: var(--tg-hint); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  padding: 12px 20px; border-radius: var(--radius); background: var(--tg-text); color: var(--tg-bg);
  font-size: 14px; font-weight: 500; z-index: 200; white-space: nowrap; opacity: 0;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex; border-radius: var(--radius-xs); overflow: hidden;
  border: 1.5px solid var(--border); background: var(--tg-bg);
}
.lang-opt {
  padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--tg-hint); transition: all var(--transition); letter-spacing: 0.5px;
}
.lang-opt.active {
  background: var(--tg-link); color: var(--tg-btn-text);
}

/* ===== SEARCH COUNTER ===== */
.search-count {
  position: absolute; right: 38px; font-size: 11px; color: var(--tg-hint);
  pointer-events: none; font-variant-numeric: tabular-nums;
}
.search-count.warning { color: var(--warning); }
.search-count.danger { color: var(--danger); }

/* ===== LAST SEARCH BLOCK ===== */
.last-search {
  display: flex; align-items: center; gap: 12px; margin: 0 16px 20px;
  padding: 14px 16px; background: var(--tg-secondary); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
}
.last-search:active { transform: scale(0.98); }
.last-search-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--tg-bg);
  display: flex; align-items: center; justify-content: center; color: var(--tg-link);
  flex-shrink: 0;
}
.last-search-content { flex: 1; min-width: 0; }
.last-search-label { font-size: 12px; color: var(--tg-hint); margin-bottom: 2px; }
.last-search-query {
  font-size: 14px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.last-search-arrow { font-size: 20px; color: var(--tg-hint); }

/* ===== FAV SORT ===== */
.fav-sort-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px;
}
.fav-sort-label { font-size: 13px; color: var(--tg-hint); }
.fav-sort-select {
  padding: 6px 12px; border-radius: var(--radius-xs); border: 0.5px solid var(--border);
  background: var(--tg-bg); color: var(--tg-text); font-size: 13px; font-weight: 500;
  cursor: pointer; outline: none;
}

/* ===== ONBOARDING ===== */
.onboarding {
  position: fixed; inset: 0; background: var(--tg-bg); z-index: 300;
  display: flex; flex-direction: column; padding: 0;
}
.ob-content {
  flex: 1; display: flex; flex-direction: column; max-width: 480px;
  margin: 0 auto; width: 100%; padding: 16px 24px 28px;
}
.ob-skip {
  align-self: flex-end; font-size: 14px; color: var(--tg-hint);
  cursor: pointer; padding: 8px; margin-bottom: 12px;
}
.ob-slides {
  flex: 1; position: relative; display: flex; align-items: center;
  justify-content: center; min-height: 320px;
}
.ob-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: translateX(40px); transition: all 0.4s ease;
  pointer-events: none;
}
.ob-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ob-icon {
  font-size: 64px; margin-bottom: 28px;
  animation: obBounce 0.6s cubic-bezier(0.5, 1.5, 0.5, 1);
}
@keyframes obBounce { from { transform: scale(0); } to { transform: scale(1); } }
.ob-title { font-size: 26px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.5px; }
.ob-text {
  font-size: 15px; color: var(--tg-hint); line-height: 1.5;
  max-width: 320px; margin: 0;
}
.ob-dots {
  display: flex; gap: 8px; justify-content: center; margin: 24px 0;
}
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--tg-hint);
  opacity: 0.3; transition: all var(--transition);
}
.ob-dot.active { opacity: 1; width: 24px; background: var(--tg-link); }
.ob-next {
  width: 100%; padding: 15px; border-radius: var(--radius);
  background: var(--tg-btn); color: var(--tg-btn-text); border: none;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform var(--transition);
}
.ob-next:active { transform: scale(0.98); }

/* ===== OFFLINE SCREEN ===== */
.offline-screen {
  position: fixed; inset: 0; background: var(--tg-bg); z-index: 250;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.offline-content { text-align: center; max-width: 320px; }
.offline-icon { color: var(--tg-hint); opacity: 0.4; margin-bottom: 16px; display: flex; justify-content: center; }
.offline-title { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.offline-sub { font-size: 14px; color: var(--tg-hint); margin: 0 0 24px; }

/* ===== LONG WAIT MESSAGE ===== */
.long-wait {
  font-size: 13px; color: var(--warning); margin-top: 4px;
  animation: fadeIn 0.4s ease;
}
