/* ==========================================================================
   PlayerOK Premium Minimalist Web3 Stylesheet
   Crafted for Telegram Mini Apps (iOS & Android Native Feel)
   ========================================================================== */

:root {
  --bg: #f0f2f5;
  --card: #ffffff;
  --card-subtle: #f8fafc;
  --card-border: rgba(0, 0, 0, 0.05);
  
  --ink: #0f172a;
  --ink-secondary: #475569;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;

  --brand: #0088cc;
  --brand-hover: #0077b5;
  --brand-gradient: linear-gradient(135deg, #0088cc, #00a2ff);
  
  --ok: #10b981;
  --ok-bg: #ecfdf5;
  --warn: #f59e0b;
  --warn-bg: #fffbeb;
  --bad: #ef4444;
  --bad-bg: #fef2f2;
  
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #f97316;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 12px 36px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-btn: 0 4px 14px rgba(0, 136, 204, 0.35);

  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  user-select: none;
}

/* Header Bar */
#top-bar {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-star-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulse-star 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(175, 82, 222, 0.35));
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.tg-prem-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, rgba(128, 85, 254, 0.12), rgba(255, 45, 85, 0.12));
  border: 1px solid rgba(175, 82, 222, 0.3);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #8055fe;
  letter-spacing: 0.02em;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:active {
  transform: scale(0.96);
  background: #f8fafc;
}

/* Main View */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 115px;
}

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  color: var(--ink);
}

h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}

.muted {
  color: var(--text-secondary, #64748b);
  font-size: 13px;
  font-weight: 500;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 20px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--shadow-btn);
  margin-bottom: 10px;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.25);
}

.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn.ghost:active {
  background: #f8fafc;
}

.btn.danger {
  background: var(--card);
  color: var(--bad);
  border: 1px solid #fecaca;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.06);
}

.btn.danger:active {
  background: var(--bad-bg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
  width: auto;
  display: inline-flex;
  margin-bottom: 0;
}

/* Segments */
.seg {
  display: flex;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.seg button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Deal Cards in List */
.deal {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.deal:active {
  transform: scale(0.985);
}

.deal .id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(0, 136, 204, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 6px 0 2px;
}

.amount small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  margin-top: 4px;
}

.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.status b {
  font-size: 13px;
  font-weight: 700;
}

.status.paid {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

.status.done {
  background: #ecfdf5;
  border-color: #d1fae5;
  color: #065f46;
}

.status.cancelled {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #991b1b;
}

.status.disputed {
  background: #fffbeb;
  border-color: #fef3c7;
  color: #92400e;
}

.bars {
  display: flex;
  gap: 4px;
  margin: 8px 0 4px;
}

.bars i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: #e2e8f0;
  transition: background 0.3s ease;
}

.bars i.on {
  background: var(--brand);
}

/* ==========================================================================
   Stacked Realistic Wallet Card Component
   ========================================================================== */

.wallet-stage {
  position: relative;
  padding-top: 10px;
  margin-bottom: 18px;
}

/* Peeking background cards for realistic 3D depth */
.wallet-card-back-2 {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  opacity: 0.65;
  transform: translateY(0);
  z-index: 1;
}

.wallet-card-back-1 {
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 50px;
  border-radius: 24px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  opacity: 0.85;
  z-index: 2;
}

.wcard {
  position: relative;
  z-index: 3;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  min-height: 185px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #0088cc), var(--c2, #005580));
  box-shadow: 0 16px 36px -6px rgba(0, 85, 128, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Holographic / radar concentric waves pattern */
.wcard::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    0 0 0 25px rgba(255, 255, 255, 0.08),
    0 0 0 50px rgba(255, 255, 255, 0.05),
    0 0 0 75px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* Card Header */
.wcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 4;
}

.wcard-brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.95;
}

.contactless-wave {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -1px;
  opacity: 0.8;
}

.wcard-cur-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcard-cur-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  backdrop-filter: blur(4px);
}

.wcard-cur-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wcard-cur-sub {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 600;
}

/* Card Body */
.wcard-body {
  margin: 18px 0 10px;
  position: relative;
  z-index: 4;
}

.wcard-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.75;
  text-transform: uppercase;
}

.wcard-bal {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Card Footer */
.wcard-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 4;
}

.wcard-address {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Realistic Golden EMV Smart Card Chip */
.emv-chip {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #b45309 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

.emv-chip::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  border: 1px solid rgba(180, 83, 9, 0.6);
  background: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(180, 83, 9, 0.5) 8px, rgba(180, 83, 9, 0.5) 9px);
}

/* Carousel Dots */
.card-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 16px;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s ease;
}

.card-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--brand);
}

/* Currency Chips Horizontal Scroll */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

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

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip:active {
  transform: scale(0.96);
}

.chip.on {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.chip-coin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Payout card */
.payout-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-top: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Deal Details & Modal (Exact Screenshot 15 Recreation)
   ========================================================================== */

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

.deal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
}

.deal-hero {
  text-align: center;
  padding: 8px 0 16px;
}

.deal-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.35);
}

/* Participant Flow Box */
.party-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 18px;
  padding: 16px 12px;
  margin: 14px 0;
}

.party-node {
  text-align: center;
  flex: 1;
}

.party-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.party-icon.middle {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.party-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.party-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 auto;
}

.party-line {
  flex: 0 0 18px;
  height: 1px;
  border-top: 1.5px dashed #cbd5e1;
}

/* Stepper Component */
.stepper {
  margin: 16px 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.stepper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.stepper-bars {
  display: flex;
  gap: 4px;
}

.stepper-bars div {
  flex: 1;
  text-align: center;
}

.stepper-bars i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.stepper-bars div.active i {
  background: var(--warn);
}

.stepper-bars div.done i {
  background: var(--brand);
}

.stepper-bars span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.stepper-bars div.active span {
  color: var(--warn);
  font-weight: 800;
}

.stepper-bars div.done span {
  color: var(--brand);
}

/* Context NOW Banner */
.now-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #78350f;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.06);
}

.now-banner b {
  color: #d97706;
}

/* Price Calculation Breakdown Card */
.calc-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  margin: 14px 0;
  font-size: 13px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  color: var(--ink-secondary);
}

.calc-row.total {
  border-top: 1px dashed #cbd5e1;
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

/* Leaderboard Page (Screenshot 16 Recreation) */
.season-banner {
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: var(--shadow-btn);
}

.season-banner-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
}

/* Countdown Flip Cards */
.countdown-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-bottom: 16px;
}

.count-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.count-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.count-cell {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 52px;
}

.count-cell b {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.count-cell span {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* Podium Top 3 */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.podium-slot {
  flex: 1;
  text-align: center;
}

.podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  font-size: 20px;
  background: #fff;
}

.podium-slot.first .podium-avatar {
  border-color: #f59e0b;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.podium-reward {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 6px;
}

.podium-bar {
  border-radius: 14px 14px 0 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.podium-slot.second .podium-bar {
  height: 70px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.podium-slot.first .podium-bar {
  height: 95px;
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

.podium-slot.third .podium-bar {
  height: 55px;
  background: linear-gradient(180deg, #fdba74, #f97316);
}

/* Bottom Floating Navigation Bar */
#tabs {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-float);
  z-index: 50;
}

#tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px 4px;
  border-radius: 22px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

#tabs button:active .tab-icon {
  transform: scale(0.9);
}

#tabs button.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

/* Modals & Bottom Sheets */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

#modal .sheet {
  background: #ffffff;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  padding: 22px 18px 34px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.hidden {
  display: none !important;
}

/* Form Inputs */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  font-family: var(--font);
  font-size: 15px;
  margin-bottom: 12px;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

textarea {
  min-height: 95px;
  resize: vertical;
}

/* Toast Message */
#toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--brand);
  font-weight: 700;
  font-size: 14px;
  z-index: 200;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 136, 204, 0.08);
  color: var(--brand);
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.admin-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
  margin-left: 6px;
}

/* Language Selection Grid */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1.5px solid #edf2f7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-card:active {
  transform: scale(0.98);
}

.lang-card.active {
  background: #eff6ff;
  border-color: var(--brand);
}

.lang-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-card-flag {
  font-size: 24px;
}

.lang-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

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

.lang-card-check {
  color: var(--brand);
  font-weight: 800;
  font-size: 18px;
}

/* Transaction List Rows */
.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.tx-row:last-child {
  border-bottom: 0;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.bal-row {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.bal-row:last-child {
  border-bottom: 0;
}

.big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 4px;
}

/* Telegram Native Quote Preview */
.tg-quote-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tg-quote-bubble {
  position: relative;
  background: #f1f9ed;
  border-left: 3.5px solid #4caf50;
  border-radius: 8px;
  padding: 8px 24px 8px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #1b381e;
  word-break: break-word;
}
.tg-quote-bubble::after {
  content: "”";
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 18px;
  line-height: 1;
  color: #7cb342;
  opacity: 0.8;
  font-family: Georgia, serif;
}
.tg-quote-bubble a {
  color: #0088cc;
  text-decoration: none;
}
.tg-share-link {
  font-size: 13px;
  color: #0088cc;
  word-break: break-all;
  padding: 2px 4px;
  font-weight: 500;
}

/* Share Modal Language Switcher Pills */
.share-lang-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.share-lang-row::-webkit-scrollbar {
  display: none;
}
.share-lang-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.share-lang-pill:active {
  transform: scale(0.96);
}
.share-lang-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
}


