/* ============================================================================
   BEATPORT BOOST — TELEGRAM STARS MINI APP STYLESHEET (public/styles.css)
   Design System synchronized with /Users/valentinboyko/Documents/tg_music.pen
   Tokens:
   - $bg-screen: #0B0E14 | $bg-surface: #131822 | $bg-elevated: #1B2230
   - $accent-neon: #01FF95 | $accent-gold: #FFB800 | $accent-blue: #2AABEE
   - $font-sans: Inter | $font-mono: JetBrains Mono
   ============================================================================ */

:root {
  --bg-base: #0b0e14;
  --bg-surface: #131822;
  --bg-elevated: #1b2230;
  --bg-glass: rgba(19, 24, 34, 0.90);
  --bg-input: #0e131c;

  --border-subtle: #232d3f;
  --border-strong: #32415a;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --bp-neon: #01ff95;
  --bp-neon-dim: rgba(1, 255, 149, 0.12);
  --bp-neon-soft: rgba(1, 255, 149, 0.08);
  --bp-neon-border: rgba(1, 255, 149, 0.30);

  --stars-gold: #ffb800;
  --stars-gold-dim: rgba(255, 184, 0, 0.14);
  --stars-gold-border: rgba(255, 184, 0, 0.35);

  --danger: #ff4d6a;
  --danger-dim: rgba(255, 77, 106, 0.14);
  --danger-border: rgba(255, 77, 106, 0.40);

  --info: #2aabee;
  --info-dim: rgba(42, 171, 238, 0.14);
  --info-border: rgba(42, 171, 238, 0.38);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-glow-neon: 0 0 24px rgba(1, 255, 149, 0.18);
  --shadow-glow-gold: 0 0 24px rgba(255, 184, 0, 0.16);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(1, 255, 149, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(255, 184, 0, 0.05) 0%, transparent 40%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: var(--bp-neon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-all;
}

.mono-val {
  font-family: var(--font-mono);
}

.text-neon {
  color: var(--bp-neon) !important;
}

.text-gold {
  color: var(--stars-gold) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-muted {
  color: var(--text-secondary) !important;
}

/* ============================================================================
   1. DEV PERSONA SWITCHER TOP BAR
   ============================================================================ */
.persona-bar {
  background: #07090e;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px;
  position: relative;
  z-index: 120;
  width: 100%;
}

.persona-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.persona-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bp-neon);
  box-shadow: 0 0 8px var(--bp-neon);
  flex-shrink: 0;
}

.persona-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 100%;
}

.persona-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.persona-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.persona-btn.active {
  background: var(--bp-neon-dim);
  color: var(--bp-neon);
  border-color: var(--bp-neon-border);
  box-shadow: 0 0 12px rgba(1, 255, 149, 0.16);
}

.lang-toggle-btn {
  background: var(--stars-gold-dim);
  color: var(--stars-gold);
  border: 1px solid var(--stars-gold-border);
  border-radius: var(--radius-pill);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: var(--stars-gold);
  color: #191100;
}

/* ============================================================================
   2. MAIN HEADER (Component / App Top Header from tg_music.pen)
   ============================================================================ */
.app-header {
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 115;
  width: 100%;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bp-neon-dim);
  border: 1px solid var(--bp-neon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.header-wallet-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--stars-gold-dim);
  border: 1px solid var(--stars-gold-border);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}

.star-svg-icon {
  flex-shrink: 0;
}

.wallet-pill-amount {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--stars-gold);
}

.wallet-pill-star {
  font-size: 12px;
  line-height: 1;
}

.wallet-pill-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding-left: 6px;
  border-left: 1px solid rgba(255, 184, 0, 0.25);
}

/* ============================================================================
   3. FLOATING BOTTOM GLASS TAB BAR (Component / Bottom Glass Tab Bar)
   ============================================================================ */
.app-tabs-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: min(540px, calc(100vw - 20px));
  pointer-events: none;
}

.tabs-dock-inner {
  pointer-events: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 5px 6px;
  display: flex;
  align-items: stretch;
  gap: 3px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.tab-btn {
  flex: 1 1 0;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 20px;
  padding: 7px 4px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  transition: all 0.16s ease;
  min-width: 0;
}

.tab-btn[hidden] {
  display: none !important;
}

.tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--bp-neon-dim);
  color: var(--bp-neon);
  font-weight: 700;
}

.tab-svg {
  width: 17px;
  height: 17px;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.tab-btn.active .tab-svg {
  transform: translateY(-1px);
  stroke: var(--bp-neon);
}

.tab-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  line-height: 14px;
}

.tab-btn.active .tab-badge {
  background: var(--bp-neon);
  color: #06130c;
  border-color: var(--bp-neon);
}

.tab-badge-gold {
  background: var(--stars-gold) !important;
  color: #191100 !important;
  border-color: var(--stars-gold) !important;
}

/* ============================================================================
   4. MAIN CONTAINER, SECTIONS & CARDS
   ============================================================================ */
.app-main {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px 104px;
}

.view-section {
  width: 100%;
  max-width: 100%;
}

.view-section[hidden] {
  display: none !important;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 240px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 12px;
  max-width: 780px;
  line-height: 1.45;
}

.escrow-pool-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 100%;
}

.card,
.pen-surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.pen-surface-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Deep-Link Banner */
.deeplink-banner {
  background: linear-gradient(90deg, rgba(1, 255, 149, 0.14), rgba(42, 171, 238, 0.14));
  border: 1px solid var(--bp-neon-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.deeplink-banner[hidden] {
  display: none !important;
}

.deeplink-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  flex-wrap: wrap;
  min-width: 0;
}

.deeplink-badge {
  background: var(--bp-neon);
  color: #06130c;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

/* ============================================================================
   5. BUTTONS, BADGES & INPUTS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-xs {
  padding: 5px 9px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.btn-neon {
  background: var(--bp-neon);
  color: #06130c;
  border-color: var(--bp-neon);
  font-weight: 800;
}

.btn-neon:hover:not(:disabled) {
  background: #2bffa6;
  box-shadow: var(--shadow-glow-neon);
}

.btn-gold {
  background: var(--stars-gold);
  color: #1a1100;
  border-color: var(--stars-gold);
  font-weight: 800;
}

.btn-gold:hover:not(:disabled) {
  background: #ffc633;
  box-shadow: var(--shadow-glow-gold);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: #242e40;
}

.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-info {
  background: var(--info-dim);
  color: var(--info);
  border-color: var(--info-border);
}

.btn-info:hover:not(:disabled) {
  background: var(--info);
  color: #04131c;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.badge-neon {
  background: var(--bp-neon-dim);
  color: var(--bp-neon);
  border-color: var(--bp-neon-border);
}

.badge-gold {
  background: var(--stars-gold-dim);
  color: var(--stars-gold);
  border-color: var(--stars-gold-border);
}

.badge-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: var(--danger-border);
}

.badge-info {
  background: var(--info-dim);
  color: var(--info);
  border-color: var(--info-border);
}

.badge-neutral {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 0.15s ease;
  width: 100%;
}

.mono-input {
  font-family: var(--font-mono);
}

.form-textarea {
  min-height: 74px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--bp-neon);
  box-shadow: 0 0 0 2px rgba(1, 255, 149, 0.15);
}

.input-action-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.input-action-row > .form-input {
  flex: 1 1 140px;
  min-width: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* ============================================================================
   6. SCREEN 1: MARKETPLACE & BEATPORT CAMPAIGN CARD (tg_music.pen)
   ============================================================================ */
.mp-controls-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
}

.search-bar-pen {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.search-bar-pen:focus-within {
  border-color: var(--bp-neon-border);
  box-shadow: 0 0 0 2px rgba(1, 255, 149, 0.12);
}

.search-svg {
  flex-shrink: 0;
}

.search-input-pen {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
  min-width: 0;
  outline: none;
}

.search-filter-chip {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.pen-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bp-neon-dim);
  color: var(--bp-neon);
  border: 1px solid var(--bp-neon-border);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.pen-sort-select {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 160px;
  min-width: 0;
  max-width: 260px;
  text-overflow: ellipsis;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
  width: 100%;
}

/* Beatport Campaign Card (Component / Beatport Campaign Card from tg_music.pen) */
.campaign-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.campaign-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.campaign-card.deeplink-highlight {
  border-color: var(--bp-neon);
  box-shadow: var(--shadow-glow-neon);
}

.campaign-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.campaign-cover-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--bp-neon-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.campaign-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-meta {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.campaign-genre-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--bp-neon);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-track-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.campaign-artist {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gold Reward Badge Box on right of Card Top (from tg_music.pen) */
.pen-reward-badge-box {
  background: var(--stars-gold-dim);
  border: 1px solid var(--stars-gold-border);
  border-radius: 11px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}

.pen-reward-main {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--stars-gold);
  white-space: nowrap;
}

.pen-reward-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Progress Section */
.slot-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.slot-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
}

.slot-progress-left {
  font-weight: 600;
  color: var(--text-secondary);
}

.slot-progress-right {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--bp-neon);
}

.slot-progress-bar {
  width: 100%;
  height: 7px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.slot-progress-fill {
  height: 100%;
  background: var(--bp-neon);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.campaign-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.claim-slot-btn {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 40px;
  height: auto;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

/* ============================================================================
   7. SCREEN 2: MY CLAIMS & PROOF UPLOAD (tg_music.pen Screen 2)
   ============================================================================ */
.pills-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pill-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn.active {
  background: var(--bp-neon-dim);
  color: var(--bp-neon);
  border-color: var(--bp-neon-border);
  font-weight: 700;
}

.claims-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Active Claim Hero Card (tg_music.pen Screen 2) */
.claim-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.claim-card.claim-reserved {
  border: 1.5px solid var(--bp-neon-border);
}

.claim-card.claim-approved {
  border-color: var(--bp-neon-border);
}

.pen-claim-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pen-claim-slot-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--bp-neon);
  letter-spacing: 0.02em;
}

.pen-claim-escrow-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--stars-gold);
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--stars-gold-dim);
  color: var(--stars-gold);
  border: 1px solid var(--stars-gold-border);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* Step 1 Beatport Link Box */
.pen-step-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.pen-step-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 0%;
}

.pen-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pen-step-url {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--bp-neon);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Order ID Input with Unique Indicator */
.pen-order-input-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pen-order-input-box:focus-within {
  border-color: var(--bp-neon);
}

.pen-order-input-raw {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  min-width: 0;
  outline: none;
}

.pen-order-ok-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bp-neon);
  white-space: nowrap;
  flex-shrink: 0;
}

/* PDF / PNG Dropzone Box (from tg_music.pen Screen 2) */
.pen-dropzone-box {
  background: var(--bp-neon-soft);
  border: 1.5px solid var(--bp-neon-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  min-width: 0;
  max-width: 100%;
}

.pen-dropzone-box:hover {
  background: rgba(1, 255, 149, 0.13);
}

.pen-dropzone-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pen-dropzone-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pen-dropzone-sub {
  font-size: 10px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.fixture-helper-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}

.fixture-helper-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.fixture-buttons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 6px;
}

/* ============================================================================
   8. SCREEN 3: PRODUCER STUDIO (tg_music.pen Screen 3)
   ============================================================================ */
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.studio-main-stack,
.studio-form-stack,
.studio-side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.preset-tracks-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}

.preset-tracks-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.preset-tracks-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-track-btn {
  background: var(--bg-surface);
  color: var(--bp-neon);
  border: 1px solid var(--bp-neon-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.preset-track-btn:hover {
  background: var(--bp-neon-dim);
}

/* URL Input Row with "✓ Найдено" pill */
.pen-url-input-row {
  background: var(--bg-elevated);
  border: 1px solid var(--bp-neon-border);
  border-radius: 12px;
  height: 42px;
  padding: 0 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.pen-url-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  width: 100%;
  min-width: 0;
  flex: 1 1 0%;
  outline: none;
}

.pen-parsed-btn {
  background: var(--bp-neon-dim);
  color: var(--bp-neon);
  border: 1px solid var(--bp-neon-border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pen-parsed-btn:hover {
  background: var(--bp-neon);
  color: #06130c;
}

/* Parsed Preview Card */
.pen-parsed-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pen-parsed-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bp-neon-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pen-parsed-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 0%;
}

.pen-parsed-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.pen-parsed-sub {
  font-size: 11px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* 3 Metric Boxes Row (Цена трека / Бонус / Выкупов) */
.pen-metrics-3-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.pen-metric-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pen-metric-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pen-metric-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
}

.pen-metric-prefix,
.pen-metric-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.pen-metric-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  min-width: 0;
  outline: none;
}

/* Gold-bordered Budget & 10% Commission Card (tg_music.pen Screen 3) */
.pen-budget-gold-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--stars-gold-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.pen-budget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pen-budget-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.pen-budget-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}

.pen-budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.pen-budget-row-subtotal {
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
}

.pen-escrow-total-box {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pen-escrow-total-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.pen-escrow-total-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: var(--bp-neon);
  white-space: nowrap;
}

.pen-launch-cta {
  min-height: 46px;
  height: auto;
  border-radius: 14px;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mini-item-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}

.slot-breakdown-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.slot-mini-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

/* ============================================================================
   9. SCREEN 4: WALLET & DOUBLE-ENTRY LEDGER (tg_music.pen Screen 4)
   ============================================================================ */
.wallet-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
  width: 100%;
}

.wallet-side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.pen-wallet-hero-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--stars-gold-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.pen-wallet-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pen-wallet-hero-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pen-wallet-hero-balance {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--stars-gold);
  line-height: 1.2;
  margin-top: 2px;
}

.pen-wallet-split-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pen-wallet-sub-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pen-wallet-sub-label {
  font-size: 10px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pen-wallet-sub-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.preset-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.pen-preset-pill {
  min-width: 0;
  height: 34px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  padding: 0 4px;
}

.pen-preset-pill:hover,
.pen-preset-pill.active {
  background: var(--stars-gold-dim);
  color: var(--stars-gold);
  border-color: var(--stars-gold-border);
}

.pen-wallet-cta-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.pen-wallet-topup-cta {
  flex: 1 1 180px;
  min-height: 42px;
  border-radius: 12px;
}

/* Closed-Economy Reinvestment Card (from tg_music.pen Screen 4) */
.pen-closed-economy-card {
  background: var(--bp-neon-soft);
  border: 1px solid var(--bp-neon-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.pen-ce-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bp-neon-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pen-ce-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 0%;
}

.pen-ce-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--bp-neon);
}

.pen-ce-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.invoice-preview-box {
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--stars-gold-border);
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ledger-table th,
.ledger-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.ledger-table th {
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ledger-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================================
   10. SCREEN 5: ADMIN & MONETIZATION PANEL (tg_music.pen Screen 5)
   ============================================================================ */
.admin-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.pen-treasury-gold-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--stars-gold-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

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

.pen-treasury-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pen-treasury-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--stars-gold);
  margin: 4px 0;
}

.pen-treasury-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.pen-fee-badge-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.pen-fee-box-label {
  font-size: 10px;
  color: var(--text-secondary);
}

.pen-fee-box-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--bp-neon);
}

/* Global Invariant Card (tg_music.pen Screen 5 neon green box) */
.pen-invariant-card {
  background: var(--bp-neon-soft);
  border: 1px solid var(--bp-neon-border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.pen-invariant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pen-invariant-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.pen-invariant-formula {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invariant-equation-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.eq-box {
  flex: 1 1 110px;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
}

.eq-box-deposits {
  border-color: var(--bp-neon-border);
}

.eq-box-gold {
  border-color: var(--stars-gold-border);
}

.eq-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.eq-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.eq-op {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--bp-neon);
}

.admin-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

/* Telegram Channel Broadcast Card (tg_music.pen Screen 5 blue card) */
.pen-channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--info-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.pen-channel-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.pen-channel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--info);
  letter-spacing: 0.02em;
}

.channel-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  min-width: 0;
}

.channel-post-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(42, 171, 238, 0.28);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.channel-post-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--info);
  font-weight: 700;
}

.channel-post-text {
  font-size: 12px;
  white-space: pre-line;
  color: var(--text-primary);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pen-channel-deeplink-btn {
  width: 100%;
  min-height: 36px;
  height: auto;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--info-dim);
  border: 1px solid var(--info-border);
  color: var(--info);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.pen-channel-deeplink-btn:hover {
  background: var(--info);
  color: #04131c;
}

/* ============================================================================
   11. EMPTY STATES & TOAST NOTIFICATIONS
   ============================================================================ */
.empty-state,
.empty-state-sm,
.empty-cell {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state-sm {
  padding: 16px 12px;
  font-size: 12px;
}

.toast-container {
  position: fixed;
  bottom: 80px;
  right: 12px;
  left: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-left: 4px solid var(--bp-neon);
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 600;
  max-width: min(380px, 100%);
  animation: toastSlideIn 0.2s ease-out;
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-gold {
  border-left-color: var(--stars-gold);
}

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

/* ============================================================================
   12. RESPONSIVE BREAKPOINTS (MOBILE TELEGRAM WEBAPP & DESKTOP)
   ============================================================================ */
@media (max-width: 920px) {
  .studio-layout,
  .wallet-top-layout,
  .admin-top-grid,
  .admin-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .campaigns-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-pill-sub {
    display: none;
  }

  .invariant-equation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .invariant-equation-grid .eq-op {
    display: none;
  }

  .invariant-equation-grid .eq-box-deposits {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .app-main {
    padding: 12px 10px 100px;
  }

  .campaign-card,
  .claim-card,
  .card,
  .pen-surface-card,
  .pen-budget-gold-card,
  .pen-wallet-hero-card,
  .pen-treasury-gold-card,
  .pen-invariant-card,
  .pen-channel-card {
    padding: 12px;
  }

  .campaign-cover-wrap {
    width: 50px;
    height: 50px;
  }

  .campaign-track-title {
    font-size: 13px;
  }

  .pen-reward-badge-box {
    padding: 5px 8px;
  }

  .pen-reward-main {
    font-size: 13px;
  }

  .pen-wallet-split-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pen-wallet-split-row > .pen-wallet-sub-box:last-child {
    grid-column: 1 / -1;
  }
}

