/* ===========================
   MisterV2 — Telegram UI Kit Base
   Цвета: Telegram Dark Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* === Telegram Official CSS Variables === */
:root {
  /* Premium True Black Palette */
  --tg-bg: #000000;
  --tg-secondary-bg: #0f0f0f;
  --tg-surface: #141414;
  --tg-elevated: #1a1a1a;

  --tg-blue: #bc9356;
  --tg-blue-hover: #d4a86a;
  --tg-blue-dim: rgba(188, 147, 86, 0.15);
  --tg-blue-border: rgba(188, 147, 86, 0.3);

  --tg-text: #ffffff;
  --tg-hint: #8a8a8a;
  --tg-link: #bc9356;
  --tg-destructive: #ff4444;
  --tg-destructive-dim: rgba(255, 68, 68, 0.12);
  --tg-destructive-border: rgba(255, 68, 68, 0.25);

  --tg-green: #bc9356;
  --tg-green-dim: rgba(188, 147, 86, 0.15);
  --tg-green-border: rgba(188, 147, 86, 0.3);

  --tg-divider: #1a1a1a;
  --tg-border: #222222;
  --tg-border-active: #bc9356;

  --tg-radius-sm: 8px;
  --tg-radius-md: 12px;
  --tg-radius-lg: 16px;
  --tg-radius-xl: 20px;

  --tg-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  --tg-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  width: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  width: 100%;
  font-family: var(--font);
  background: var(--tg-bg);
  color: var(--tg-text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  background: var(--tg-bg);
}

@media (min-width: 801px) {
  body {
    background: #050508;
  }

  .page-wrapper {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
}

/* ========== Telegram Header ========== */
.tg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tg-secondary-bg);
  border-bottom: 1px solid var(--tg-divider);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tg-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-link);
  transition: background var(--tg-transition);
  text-decoration: none;
  margin-left: -8px;
}

.tg-header__back:hover {
  background: var(--tg-divider);
}

.tg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.tg-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #bc9356, #8e6d3d);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(188, 147, 86, 0.25);
}

.tg-logo__icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.tg-logo__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--tg-text);
  letter-spacing: -0.01em;
}

.tg-header__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tg-link);
  transition: background var(--tg-transition);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.tg-header__action:hover {
  background: var(--tg-divider);
}

/* ========== Telegram Sections ========== */
.tg-section {
  margin-bottom: 8px;
}

.tg-section__header {
  padding: 16px 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-hint);
  letter-spacing: 0.05em;
}

.tg-section__footer {
  padding: 8px 16px 12px;
  font-size: 13px;
  color: var(--tg-hint);
  line-height: 1.5;
}

/* ========== Telegram List / Cells ========== */
.tg-list {
  background: var(--tg-secondary-bg);
  border-radius: 0;
  overflow: hidden;
}

.tg-modal .tg-list {
  background: transparent;
}

.tg-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  position: relative;
  cursor: pointer;
  transition: background var(--tg-transition);
  text-decoration: none;
  color: var(--tg-text);
  min-height: 52px;
}

.tg-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 0;
  height: 1px;
  background: var(--tg-divider);
}

.tg-cell:active,
.tg-cell:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tg-cell__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tg-blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-cell__icon svg {
  width: 18px;
  height: 18px;
  color: var(--tg-blue);
}

.tg-cell__icon--red {
  background: var(--tg-destructive-dim);
}

.tg-cell__icon--red svg {
  color: var(--tg-destructive);
}

.tg-cell__icon--green {
  background: var(--tg-green-dim);
}

.tg-cell__icon--green svg {
  color: var(--tg-green);
}

.tg-cell__body {
  flex: 1;
  min-width: 0;
}

.tg-cell__title {
  font-size: 16px;
  font-weight: 400;
  color: var(--tg-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-cell__subtitle {
  font-size: 13px;
  color: var(--tg-hint);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-cell__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tg-cell__chevron {
  color: var(--tg-hint);
  opacity: 0.6;
}

.tg-cell__value {
  font-size: 15px;
  color: var(--tg-hint);
}

/* ========== Telegram Buttons ========== */
.tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--tg-radius-lg);
  cursor: pointer;
  transition: all var(--tg-transition);
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

.tg-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tg-btn--primary {
  background: var(--tg-blue);
  color: #fff;
}

.tg-btn--primary:hover {
  background: var(--tg-blue-hover);
}

.tg-btn--primary:active {
  transform: scale(0.98);
  background: #1e87da;
}

.tg-btn--secondary {
  background: var(--tg-elevated);
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
}

.tg-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tg-btn--secondary:active {
  transform: scale(0.98);
}

.tg-btn--destructive {
  background: var(--tg-destructive-dim);
  color: var(--tg-destructive);
  border: 1px solid var(--tg-destructive-border);
}

.tg-btn--destructive:hover {
  background: rgba(229, 57, 53, 0.2);
}

.tg-btn--ghost {
  background: transparent;
  color: var(--tg-link);
  font-size: 15px;
  padding: 10px 16px;
  border-radius: var(--tg-radius-md);
  width: auto;
}

.tg-btn--ghost:hover {
  background: var(--tg-divider);
}

.tg-btn--sm {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--tg-radius-md);
  width: auto;
}

/* ========== Telegram Inputs ========== */
.tg-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.tg-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--tg-elevated);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-md);
  color: var(--tg-text);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color var(--tg-transition);
  -webkit-appearance: none;
  appearance: none;
}

.tg-input::placeholder {
  color: var(--tg-hint);
}

.tg-input:focus {
  border-color: var(--tg-blue);
}

.tg-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--tg-elevated);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-md);
  color: var(--tg-text);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color var(--tg-transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  cursor: pointer;
}

.tg-select:focus {
  border-color: var(--tg-blue);
}

.tg-input--error {
  border-color: var(--tg-destructive) !important;
}

.tg-input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--tg-hint);
  margin-bottom: 6px;
}

.tg-input-hint {
  font-size: 13px;
  color: var(--tg-hint);
  margin-top: 6px;
  padding: 0 4px;
}

/* ========== Telegram Alert / Toast ========== */
.tg-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--tg-radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tg-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tg-alert--error {
  background: var(--tg-destructive-dim);
  border: 1px solid var(--tg-destructive-border);
  color: #ff6b6b;
}

.tg-alert--success {
  background: var(--tg-green-dim);
  border: 1px solid var(--tg-green-border);
  color: #6be09a;
}

.tg-alert--info {
  background: var(--tg-blue-dim);
  border: 1px solid var(--tg-blue-border);
  color: #bc9356;
}

/* ========== Badge ========== */
.tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.tg-badge--green {
  background: var(--tg-green-dim);
  color: var(--tg-green);
  border: 1px solid var(--tg-green-border);
}

.tg-badge--blue {
  background: var(--tg-blue-dim);
  color: var(--tg-link);
  border: 1px solid var(--tg-blue-border);
}

.tg-badge--dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: tg-pulse 2s ease-in-out infinite;
}

/* ========== Divider ========== */
.tg-divider {
  height: 1px;
  background: var(--tg-divider);
  margin: 0;
}

.tg-spacer {
  height: 8px;
  background: var(--tg-bg);
}

/* ========== Typography ========== */
.tg-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tg-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tg-subtitle {
  font-size: 15px;
  color: var(--tg-hint);
  line-height: 1.5;
}

/* ========== Utilities ========== */
.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.px-16 {
  padding-left: 16px;
  padding-right: 16px;
}

.py-12 {
  padding-top: 12px;
  padding-bottom: 12px;
}

.py-16 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.p-16 {
  padding: 16px;
}

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

.text-link {
  color: var(--tg-link);
}

.text-hint {
  color: var(--tg-hint);
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 12px;
}

.text-destructive {
  color: var(--tg-destructive);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* ========== Animations ========== */
@keyframes tg-fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tg-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tg-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes tg-spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-in {
  animation: tg-fade-up 0.3s ease both;
}

.animate-delay-1 {
  animation-delay: 0.05s;
}

.animate-delay-2 {
  animation-delay: 0.1s;
}

.animate-delay-3 {
  animation-delay: 0.15s;
}

.animate-delay-4 {
  animation-delay: 0.2s;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--tg-divider);
  border-radius: 2px;
}

/* ========== Spinner ========== */
.tg-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tg-spin 0.7s linear infinite;
}

/* ========== Policy content ========== */
.policy-content {
  padding: 0 0 60px;
  background: var(--tg-bg);
}

.policy-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--tg-secondary-bg);
  border-bottom: 1px solid var(--tg-divider);
  scrollbar-width: none;
}

.policy-nav::-webkit-scrollbar {
  display: none;
}

.policy-nav-link {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tg-hint);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--tg-transition);
  white-space: nowrap;
}

.policy-nav-link:hover,
.policy-nav-link.active {
  color: var(--tg-blue);
  border-bottom-color: var(--tg-blue);
}

.policy-body {
  padding: 20px 16px;
}

.policy-body h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.policy-body h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--tg-link);
  margin: 24px 0 8px;
}

.policy-body p,
.policy-body li {
  font-size: 14px;
  color: var(--tg-hint);
  line-height: 1.75;
}

.policy-body ul {
  padding-left: 18px;
  margin: 8px 0;
}

.policy-body a {
  color: var(--tg-link);
  text-decoration: none;
}

.policy-date {
  font-size: 13px;
  color: var(--tg-hint);
  margin-bottom: 24px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}

.policy-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--tg-hint);
  font-weight: 600;
  border-bottom: 1px solid var(--tg-divider);
}

.policy-table td {
  padding: 10px;
  color: var(--tg-hint);
  border-bottom: 1px solid var(--tg-divider);
  vertical-align: top;
}

.policy-table td:first-child {
  color: var(--tg-text);
  font-weight: 500;
}

/* Language Switcher */
.lang-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-hint);
  transition: color 0.2s;
}

.lang-link--active {
  color: var(--tg-blue) !important;
}

.auth-lang-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #8a8a8a;
  transition: color 0.2s;
}

.auth-lang-link--active {
  color: #bc9356 !important;
}

/* Language Select UI */
.tg-lang-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--tg-elevated);
  border-radius: 12px;
  padding: 0 12px;
  height: 36px;
  border: 1px solid var(--tg-divider);
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 70px;
}

.tg-lang-select-wrap:hover {
  border-color: var(--tg-blue);
  background: var(--tg-blue-dim);
}

.tg-lang-select-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--tg-hint);
  margin-right: 6px;
  pointer-events: none;
  opacity: 0.8;
}

.tg-lang-current {
  font-size: 13px;
  font-weight: 700;
  color: var(--tg-text);
  pointer-events: none;
  padding-right: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
}

.tg-lang-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.auth-lang-select-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(188, 147, 86, 0.2);
  height: 38px;
}

.auth-lang-select-wrap:hover {
  border-color: #bc9356;
  background: rgba(188, 147, 86, 0.05);
}

.auth-lang-select-wrap .tg-lang-current {
  color: #bc9356;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bc9356' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.auth-lang-select-wrap svg {
  color: #bc9356;
}

/* ========== Spoiler / Accordion ========== */
.tg-spoiler {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

.tg-spoiler--open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.tg-spoiler__content {
  min-height: 0;
}

.tg-cell__chevron--rotate {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* ========== Modal (Consolidated in premium section) ========== */

/* ========== Auth Tabs ========== */
.auth-tabs {
  display: flex;
  background: var(--tg-secondary-bg);
  padding: 4px;
  border-radius: var(--tg-radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--tg-divider);
}

.auth-tab {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--tg-hint);
  border-radius: calc(var(--tg-radius-md) - 2px);
  cursor: pointer;
  transition: all var(--tg-transition);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-tab--active {
  background: var(--tg-elevated);
  color: var(--tg-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.app-item {
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

.app-item--highlight {
  background: rgba(188, 147, 86, 0.08) !important;
  box-shadow: inset 0 0 15px rgba(188, 147, 86, 0.1);
}

.app-item--highlight::after {
  content: attr(data-label);
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  font-weight: 900;
  color: #bc9356;
  background: rgba(188, 147, 86, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ========== Modal / Bottom Sheet (Premium Style) ========== */
.tg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  cursor: default;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tg-modal-overlay--open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.tg-modal {
  background: #1c1c1e;
  /* Darker premium background */
  width: 100%;
  max-width: 800px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(188, 147, 86, 0.3);
  /* Gold top border */
  position: relative;
}

/* Handle indicator */
.tg-modal::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.tg-modal-overlay--open .tg-modal {
  transform: translateY(0);
}

.tg-modal__header {
  padding: 10px 10px 10px;
  /* Ultra compact */
  border-bottom: none;
  /* Removed border for cleaner look with solid buttons */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tg-modal__title {
  font-size: 14px;
  font-weight: 800;
  color: #bc9356;
  /* Gold title */
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tg-modal__close {
  background: rgba(188, 147, 86, 0.1);
  border: none;
  color: #bc9356;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tg-modal__close:hover {
  background: rgba(188, 147, 86, 0.2);
  transform: scale(1.1);
}

/* Premium list items in modal (Solid Gold Buttons) */
.tg-modal .tg-list {
  padding: 4px 8px env(safe-area-inset-bottom, 8px);
  /* Ultra minimal padding */
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Tiny gap */
}

.tg-modal .tg-cell {
  padding: 8px 12px;
  /* Tight padding */
  background: #bc9356;
  /* Solid Gold */
  border: none;
  border-radius: 8px;
  /* Slightly sharper */
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tg-modal .tg-cell::after {
  display: none;
}

.tg-modal .tg-cell:hover {
  background: #d4a76a;
  /* Brighter gold */
  transform: scale(0.99);
}

.tg-modal .tg-cell__title {
  font-weight: 700;
  font-size: 13px;
  color: #1c1c1e;
  /* Dark text on gold */
}

.tg-modal .tg-cell__chevron {
  color: #1c1c1e;
  width: 12px;
  height: 12px;
  opacity: 0.8;
}