/* ════════════════════════════════════════════════════════════════
   Cabinet premium polish — overrides on top of skeleton kit + pages
   Adds richer hover/transition states + brand-glow accents.
   ════════════════════════════════════════════════════════════════ */

/* ───── Gift tier cards ─────────────────────────────────────── */
.gf-tier {
  transition: transform .25s cubic-bezier(.2,.9,.4,1),
              border-color .25s,
              box-shadow .25s,
              background-color .25s;
  text-decoration: none;
}
.gf-tier:hover {
  transform: translateY(-3px);
  border-color: rgba(245,158,11,0.40) !important;
  background-color: rgba(20,22,30,0.55);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.45),
    0 0 0 1px rgba(245,158,11,0.15);
}
.gf-tier:hover .gf-tier-cta {
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: #1a1206;
  border-color: rgba(245,158,11,0.55);
  box-shadow: 0 10px 24px rgba(245,158,11,0.30);
}

.gf-tier--feat {
  position: relative;
  border-color: rgba(245,158,11,0.45) !important;
  background-color: rgba(245,158,11,0.04);
  box-shadow:
    0 18px 60px rgba(245,158,11,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.gf-tier--feat:hover {
  transform: translateY(-5px);
  border-color: rgba(245,158,11,0.65) !important;
  box-shadow:
    0 24px 72px rgba(245,158,11,0.28),
    0 0 0 1px rgba(245,158,11,0.30),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.gf-tier--feat .gf-tier-cta {
  background: linear-gradient(135deg, var(--amber), #d97706) !important;
  color: #1a1206 !important;
  border-color: rgba(245,158,11,0.55) !important;
  box-shadow: 0 10px 24px rgba(245,158,11,0.30);
}

/* "Популярное" badge — bring it inside the card so it's not clipped */
.gf-tier-badge {
  position: absolute;
  top: 10px !important;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.40);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.15);
  z-index: 2;
}

/* CTA button polish — base state */
.gf-tier-cta {
  display: block;
  margin-top: auto;
  padding: 13px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  transition: all .22s ease;
  letter-spacing: -0.005em;
}

/* ───── How-it-works steps polish ───────────────────────────── */
.gf-how-step {
  position: relative;
  transition: transform .25s, border-color .25s, background-color .25s;
}
.gf-how-step::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(245,158,11,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.gf-how-step > * { position: relative; z-index: 1; }
.gf-how-step:hover {
  border-color: rgba(245,158,11,0.30) !important;
  background-color: rgba(20,22,30,0.50);
  transform: translateY(-2px);
}

/* ───── Plan cards in /renew ────────────────────────────────── */
.rn-plan {
  transition: transform .22s, border-color .22s, box-shadow .22s, background-color .22s;
  text-decoration: none;
}
.rn-plan:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,11,0.35) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.40);
}

/* Period selectors */
.rn-period {
  transition: transform .22s, border-color .22s, box-shadow .22s, background-color .22s;
  text-decoration: none;
}
.rn-period:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.40) !important;
  background-color: rgba(56,189,248,0.06);
  box-shadow: 0 12px 30px rgba(56,189,248,0.15);
}
.rn-period.is-selected {
  border-color: rgba(56,189,248,0.55) !important;
  background-color: rgba(56,189,248,0.08);
  box-shadow:
    0 12px 36px rgba(56,189,248,0.20),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ───── Sidebar nav links ───────────────────────────────────── */
.sb-link {
  transition: background-color .18s, color .18s, border-color .18s;
}
.sb-link:hover {
  background: rgba(56,189,248,0.06);
  color: #fff;
}

/* ───── Generic buttons polish ──────────────────────────────── */
.btn {
  transition: transform .18s, box-shadow .22s, background-color .22s, border-color .22s, filter .22s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), #d97706);
  border: 1px solid rgba(245,158,11,0.55);
  color: #1a1206;
  box-shadow: 0 12px 28px rgba(245,158,11,0.25);
}
.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(245,158,11,0.40);
  filter: brightness(1.08);
}

/* Small action buttons in panels */
.btn-micro, .dv-add-btn, .dv-pill, .mb-invite-btn, .mb-act, .bl-tab {
  transition: background-color .18s, border-color .18s, color .18s, transform .15s;
}
.dv-pill:hover, .bl-tab:hover, .mb-act:hover {
  border-color: rgba(56,189,248,0.40) !important;
  color: #fff !important;
}
.dv-add-btn:hover, .mb-invite-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ───── Card-obsidian + qa hover (account bento) ────────────── */
.qa, .card-obsidian {
  transition: transform .25s, border-color .25s, box-shadow .25s, background-color .25s;
}
a.qa:hover, a.card-obsidian:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.30) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.40);
}

/* ───── Mission control cards (account) ─────────────────────── */
.mi-card {
  transition: transform .28s cubic-bezier(.2,.9,.4,1), border-color .25s, box-shadow .25s;
  text-decoration: none;
}
.mi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.45);
}
.mi-card--hero:hover .mi-cta-btn--hot {
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(245,158,11,0.45);
}

/* ───── Help cards & FAQ links ──────────────────────────────── */
.hp-card { transition: transform .22s, border-color .22s, background-color .22s; }
.hp-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.hp-qlist a {
  transition: color .15s, padding-left .18s;
  cursor: pointer;
}
.hp-qlist a:hover {
  color: var(--cyan) !important;
  padding-left: 4px;
}

.hp-contact-item {
  transition: transform .22s, border-color .22s, background-color .22s;
}
.hp-contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.40);
}

/* ───── Settings switches & buttons ─────────────────────────── */
.st-switch { transition: background-color .2s, border-color .2s; }
.st-side a {
  transition: background-color .15s, color .15s, border-color .15s, padding-left .15s;
}
.st-side a:hover { padding-left: 18px; }

.st-btn { transition: background-color .18s, border-color .18s, color .18s, transform .15s, filter .18s; }
.st-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.st-btn:active { transform: translateY(1px); }

/* ───── Referral panel polish ───────────────────────────────── */
.rf-share-btn, .rf-link-row button, .rf-code-chip {
  transition: background-color .18s, border-color .18s, color .18s, transform .15s, filter .18s;
}
.rf-share-btn:hover, .rf-link-row button:hover {
  filter: brightness(1.10);
  transform: translateY(-1px);
}

/* ───── Auth (signup/login/verify) inputs polish ───────────── */
.au-field input,
.au-otp input {
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.au-field input:focus,
.au-otp input:focus {
  border-color: rgba(56,189,248,0.50) !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
  background-color: rgba(0,0,0,0.40);
}

.au-btn { transition: filter .18s, transform .15s, box-shadow .22s; }
.au-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.au-btn:active { transform: translateY(1px); }

.au-tg { transition: border-color .18s, background-color .18s, transform .15s; }
.au-tg:hover {
  border-color: rgba(56,189,248,0.40);
  background-color: rgba(56,189,248,0.08);
  transform: translateY(-1px);
}

/* ───── Connect-telegram code box ───────────────────────────── */
.ct-card { animation: ct-card-in .35s ease-out backwards; }
@keyframes ct-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ct-code-box .code {
  transition: color .15s, transform .15s;
}
.ct-code-box .code:hover { color: var(--cyan); transform: scale(1.02); }
.ct-btn { transition: filter .18s, transform .15s, box-shadow .22s; }
.ct-btn:hover { filter: brightness(1.10); transform: translateY(-1px); }
