/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #0d0e14;
  --surface:     #16181f;
  --surface-2:   #1e2028;
  --border:      rgba(255,255,255,0.07);
  --accent:      #7c5cfc;
  --accent-2:    #a87cff;
  --accent-glow: rgba(124, 92, 252, 0.35);
  --green:       #22c55e;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --text:        #f0f0f5;
  --text-2:      #9898b0;
  --text-3:      #5a5a70;
  --nav-h:       70px;
  --radius:      16px;
  --radius-sm:   10px;
  font-family: 'Outfit', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }

/* ── Screen system ───────────────────────────────────────────────────────────── */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.screen.active { opacity: 1; pointer-events: all; }

/* ── Loading ─────────────────────────────────────────────────────────────────── */
.screen-loading {
  align-items: center; justify-content: center;
  background: var(--bg);
}
.loading-logo {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.rope-ring {
  font-size: 56px;
  animation: spin 2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-logo p { color: var(--text-2); font-size: 15px; letter-spacing: 0.05em; }

/* ── Telegram-only gate ──────────────────────────────────────────────────────── */
.screen-tg-only {
  background: var(--bg);
  align-items: center; justify-content: center;
}
.tg-only-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 32px 28px; text-align: center;
  max-width: 320px;
}
.tg-only-icon { font-size: 64px; animation: float 3s ease-in-out infinite; }
.screen-tg-only h2 { font-size: 26px; font-weight: 800; }
.screen-tg-only p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.btn-tg-open {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2aabee, #1e96d7);
  color: #fff; text-decoration: none;
  border-radius: 14px; padding: 14px 28px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 0 24px rgba(42,171,238,0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  width: 100%;
}
.btn-tg-open:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(42,171,238,0.45); }
.tg-only-note { color: var(--text-3); font-size: 13px; }



/* ── Registration ────────────────────────────────────────────────────────────── */
.screen-register {
  background: var(--bg);
  padding: 0 24px env(safe-area-inset-bottom, 16px);
  overflow-y: auto;
  justify-content: center; gap: 32px;
}
.register-hero { text-align: center; }
.hero-badge { font-size: 64px; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.register-hero h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.brand {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 15px; line-height: 1.5; }

.register-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; text-transform: uppercase; }
.field-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.field-input:focus { border-color: var(--accent); }
.field-error { color: var(--red); font-size: 13px; }
.field-error.hidden { display: none; }
.reg-note { color: var(--text-3); font-size: 12px; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 28px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-lg { font-size: 16px; padding: 16px 24px; }
.btn-spinner.hidden, .btn-text.hidden { display: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Main app layout ─────────────────────────────────────────────────────────── */
.screen-app { background: var(--bg); }

.tab-content {
  flex: 1; overflow-y: auto;
  padding: 20px 16px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  display: none;
}
.tab-content.active { display: block; }

/* ── Page header ─────────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 26px; font-weight: 800; }
.page-sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* ── Profile card ────────────────────────────────────────────────────────────── */
.profile-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.profile-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.profile-avatar { font-size: 48px; flex-shrink: 0; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-handle { color: var(--accent); font-size: 13px; margin-top: 2px; }
.profile-since { color: var(--text-3); font-size: 12px; margin-top: 4px; }

/* ── Section title ───────────────────────────────────────────────────────────── */
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px;
}

/* ── Transaction list ────────────────────────────────────────────────────────── */
.txn-list { display: flex; flex-direction: column; gap: 8px; }
.txn-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.txn-left .txn-label { font-size: 14px; font-weight: 600; }
.txn-left .txn-date  { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.txn-right .txn-amount { font-size: 15px; font-weight: 700; }
.txn-right .txn-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  display: inline-block; margin-top: 4px; text-align: right;
}
.badge-paid    { background: rgba(34,197,94,0.15); color: var(--green); }
.badge-pending { background: rgba(245,158,11,0.15); color: var(--amber); }
.badge-failed  { background: rgba(239,68,68,0.15);  color: var(--red);   }

.empty-state {
  text-align: center; padding: 40px 16px;
  color: var(--text-2);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; line-height: 1.6; }

/* ── Pricing grid ────────────────────────────────────────────────────────────── */
.pricing-grid { display: flex; flex-direction: column; gap: 12px; }

.pricing-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  padding: 8px 0 4px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.pricing-card:hover { border-color: rgba(124,92,252,0.4); transform: translateY(-1px); }

.pricing-card.is-featured {
  border-color: rgba(124,92,252,0.5);
  background: linear-gradient(135deg, var(--surface), rgba(124,92,252,0.08));
}
.featured-badge {
  position: absolute; top: 0; right: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-bottom-left-radius: 10px;
  letter-spacing: 0.05em;
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.card-emoji { font-size: 22px; margin-bottom: 6px; display: block; }
.card-title { font-size: 16px; font-weight: 700; }
.card-price { text-align: right; }
.price-amount { font-size: 22px; font-weight: 800; color: var(--accent-2); line-height: 1; }
.price-period { font-size: 11px; color: var(--text-3); }
.card-desc { font-size: 13px; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }

.card-actions { display: flex; align-items: center; gap: 10px; }
.qty-picker {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-2); border-radius: 8px; padding: 6px 10px;
}
.qty-btn {
  background: none; border: none; color: var(--text-2);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 0 4px;
  transition: color 0.15s;
}
.qty-btn:hover { color: var(--accent); }
.qty-val { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }

.pay-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; border: none; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 12px 16px; cursor: pointer;
  box-shadow: 0 0 16px var(--accent-glow);
  transition: all 0.18s ease;
}
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 24px var(--accent-glow); }
.pay-btn:active { transform: none; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.loading-prices { color: var(--text-3); font-size: 14px; text-align: center; padding: 32px; }

/* ── Group modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px; width: 100%; max-width: 480px;
}
.modal-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.modal-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; padding: 8px 0; }
.checkbox-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.group-total { font-size: 16px; font-weight: 700; color: var(--accent-2); text-align: right; padding-top: 8px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; padding: 14px; font-size: 15px; }

/* ── Admin tab ───────────────────────────────────────────────────────────────── */
.tab-admin { padding: 0 !important; display: flex; flex-direction: column; }

/* Sub-nav */
.admin-subnav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.adm-tab {
  flex: 1; background: none; border: none; color: var(--text-2);
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 14px 8px; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.adm-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Sections */
.adm-section {
  flex: 1; overflow-y: auto;
  padding: 20px 16px calc(var(--nav-h) + env(safe-area-inset-bottom,0px) + 16px);
}
.adm-section.hidden { display: none; }

/* Admin wrapper (iframe panel) */
.adm-section .admin-wrapper { height: 100%; min-height: 60vh; }
.admin-wrapper iframe { width: 100%; height: 100%; min-height: 60vh; border: none; background: var(--bg); }

/* ── Pricing editor rows ─────────────────────────────────────────────────────── */
.pricing-editor-list { display: flex; flex-direction: column; gap: 10px; }
.pe-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.pe-emoji { font-size: 20px; flex-shrink: 0; }
.pe-info { flex: 1; min-width: 0; }
.pe-label { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-type { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pe-price-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pe-price-wrap span { font-size: 13px; color: var(--text-3); }
.pe-input {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit;
  font-size: 15px; font-weight: 700;
  padding: 8px 10px; width: 80px; text-align: right;
  outline: none; transition: border-color 0.2s;
}
.pe-input:focus { border-color: var(--accent); }
.pe-save {
  background: var(--accent); border: none; border-radius: 8px;
  color: white; font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 14px; cursor: pointer; flex-shrink: 0;
  transition: opacity 0.2s;
}
.pe-save:hover { opacity: 0.85; }
.pe-save:disabled { opacity: 0.4; cursor: not-allowed; }
.pe-saved { color: var(--green); font-size: 16px; opacity: 0; transition: opacity 0.3s; }
.pe-saved.show { opacity: 1; }

/* ── Bottom nav ──────────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 24, 31, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 50;
}
.nav-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 20px; color: var(--text-3);
  transition: color 0.2s;
  position: relative;
}
.nav-btn.active { color: var(--accent); }
.nav-btn::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: width 0.2s;
}
.nav-btn.active::after { width: 24px; }
.nav-icon { font-size: 22px; line-height: 1; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.nav-admin.hidden { display: none; }

/* ── Toast ───────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: opacity 0.3s;
  z-index: 200;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ── Friends & Gifts ─────────────────────────────────────────────────────── */

.friends-loading, .friends-error {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-2);
  font-size: 14px;
}

.friends-section {
  padding: 16px;
  margin-bottom: 8px;
}

.friends-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin: 0 0 12px 0;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.friend-card.pending  { border-color: var(--accent); }
.friend-card.sent     { opacity: 0.7; }

.friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9f7bea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

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

.friend-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-sub {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}

.friend-actions {
  display: flex;
  gap: 8px;
}

.friend-actions button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
}

.friend-actions button:hover { background: var(--surface-1); }

.btn-gift-friend {
  background: linear-gradient(135deg, #f59e42, #f43f5e);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.btn-gift-friend:hover { opacity: 0.85; }

.friends-empty {
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}

/* Gift cards */
.gift-card {
  background: linear-gradient(135deg, rgba(245,158,66,0.12), rgba(244,63,94,0.10));
  border: 1px solid rgba(245,158,66,0.35);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
}

.gift-from {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.gift-product {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.gift-message {
  font-size: 13px;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 12px;
}

.gift-card-actions {
  display: flex;
  gap: 10px;
}

.btn-accept-gift {
  flex: 1;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-decline-gift {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--surface-2);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-accept-gift:hover, .btn-decline-gift:hover { opacity: 0.8; }

/* Gift mode banner on Pay tab */
.gift-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245,158,66,0.15), rgba(244,63,94,0.12));
  border: 1px solid rgba(245,158,66,0.4);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f59e42;
}

.gift-banner button {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
}

/* ── Stripe Embedded Checkout Modal ─────────────────────────────────────────── */
.pay-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.pay-modal.hidden { display: none; }

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

.pay-modal-inner {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.pay-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.08); border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer; color: #333;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}
.pay-modal-close:hover { background: rgba(0,0,0,0.15); }

#stripe-checkout-container {
  min-height: 200px;
  padding: 16px 0 8px;
}

/* ── Settings Tab ─────────────────────────────────────────────────────────── */
.settings-card {
  padding: 16px;
}
.settings-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}
.settings-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}
#tab-settings .field-input {
  width: 100%;
  box-sizing: border-box;
}
#tab-settings textarea.field-input {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}

/* ── Gift mode ─────────────────────────────────────────────────────────────── */
.gift-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #f59e0b22, #f59e0b44);
  border: 1px solid #f59e0b88;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #fbbf24;
  gap: 10px;
}
.gift-mode-banner b { color: #fff; }
.gift-cancel-btn {
  background: transparent;
  border: 1px solid #f59e0b88;
  color: #fbbf24;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.gift-cancel-btn:hover { background: #f59e0b33; }

.gift-mode-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.gift-mode-card { position: relative; border-color: #f59e0b66 !important; }

.gift-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000 !important;
}
.gift-btn:hover { opacity: 0.9; }

/* ── Subscription list (Settings tab) ────────────────────────────── */
.sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sub-item:last-child { border-bottom: none; }
.sub-info { flex: 1; min-width: 0; }
.sub-label { font-size: 15px; font-weight: 600; color: var(--text, #f0f0f0); }
.sub-meta  { font-size: 12px; color: var(--text-muted, #888); margin-top: 2px; }
.sub-cancelling { font-size: 12px; color: #f59e0b; margin-top: 4px; }
.btn-cancel-sub {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(248,113,113,0.4);
  background: rgba(248,113,113,0.1);
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-cancel-sub:hover { background: rgba(248,113,113,0.2); }
.btn-cancel-sub:disabled { opacity: 0.5; cursor: not-allowed; }
