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

:root {
  --bg: #070a10;
  --bg-elevated: #0d1219;
  --bg-card: rgba(18, 24, 36, 0.82);
  --bg-card-solid: #121824;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef3fb;
  --muted: #8b9cb5;
  --accent: #5ce1e6;
  --accent-strong: #22d3ee;
  --accent-2: #fbbf24;
  --accent-purple: #a78bfa;
  --success: #34d399;
  --danger: #f87171;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(34, 211, 238, 0.12);
  --sidebar-w: 280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Scrollbar tema pannello */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.45) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.55), rgba(167, 139, 250, 0.45));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.9);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.75), rgba(167, 139, 250, 0.6));
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(167, 139, 250, 0.12), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(34, 211, 238, 0.14), transparent 24%),
    linear-gradient(180deg, #0a1018 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(167, 139, 250, 0.25));
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: var(--glow);
  font-size: 1.2rem;
}

.sidebar-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  padding-left: 3.35rem;
}

.guild-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.guild-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.guild-chip strong {
  display: block;
  font-size: 0.92rem;
}

.guild-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-section {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.85rem 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  margin-bottom: 0.25rem;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  text-decoration: none;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.08));
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  font-size: 1rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}

.user-mini img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.user-mini strong { display: block; font-size: 0.88rem; }
.user-mini span { color: var(--muted); font-size: 0.78rem; }

.main {
  flex: 1;
  padding: 1.5rem 2rem 2.5rem;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.badge-supremo {
  background: rgba(167, 139, 250, 0.14);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.28);
}

.badge-standard {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.22);
}

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  transition: 0.2s ease;
}

.card h2, .card h3 { margin-top: 0; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card-icon.cyan { background: rgba(34, 211, 238, 0.12); }
.card-icon.amber { background: rgba(251, 191, 36, 0.12); }
.card-icon.green { background: rgba(52, 211, 153, 0.12); }
.card-icon.purple { background: rgba(167, 139, 250, 0.12); }

.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 12px;
  padding: 0.78rem 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #67e8f9);
  color: #042027;
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #7289ff);
  color: white;
  width: 100%;
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  text-decoration: none;
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
}

.center-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.08), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.08), transparent 30%);
  pointer-events: none;
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.auth-hero, .auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.auth-hero p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.feature-item strong { display: block; margin-bottom: 0.15rem; }
.feature-item span { color: var(--muted); font-size: 0.88rem; }

.auth-card h2 { margin-top: 0; }
.auth-card .muted { margin-bottom: 1.25rem; }

.progress {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--success));
  border-radius: inherit;
}

.stat {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.25rem 0;
  letter-spacing: -0.03em;
}

.stat-label { color: var(--muted); font-size: 0.92rem; }

.form-grid { display: grid; gap: 1rem; }

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.82rem 0.95rem;
  font: inherit;
  transition: 0.15s ease;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.82rem 2.5rem 0.82rem 0.95rem;
  font: inherit;
  transition: 0.15s ease;
  color-scheme: dark;
  background-color: var(--bg-card-solid);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238b9cb5' width='18' height='18'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
}

select option,
select optgroup {
  background-color: var(--bg-card-solid);
  color: var(--text);
}

select option:checked,
select option:hover {
  background-color: #1a2436;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

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

.alert {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.alert-info {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.alert-success {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.18);
}

.guild-list { display: grid; gap: 0.85rem; margin-top: 1.25rem; }

.guild-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: 0.18s ease;
}

.guild-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: var(--glow);
}

.guild-item img { width: 48px; height: 48px; border-radius: 50%; }

.steps { display: grid; gap: 0.75rem; }

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.step.done {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.05);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step.done .step-num {
  background: rgba(52, 211, 153, 0.18);
  color: var(--success);
}

.hero-banner {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.1)),
    rgba(255,255,255,0.02);
  border: 1px solid rgba(34, 211, 238, 0.16);
}

.hero-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.hero-banner p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .main { padding: 1rem; }
  .auth-shell { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: stretch; }
}

/* ── Piano cards ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  position: relative;
  transition: 0.22s ease;
}

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

.plan-card.current {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12), var(--glow);
}

.plan-card.featured {
  border-color: rgba(34, 211, 238, 0.35);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.02);
  transform: scale(1.02);
  z-index: 1;
}

.plan-card.featured:hover { transform: scale(1.02) translateY(-3px); }

.plan-card.supremo-tier {
  border-color: rgba(167, 139, 250, 0.3);
}

.plan-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.plan-badge-top.popular {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.25);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}

.plan-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.plan-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  min-height: 2.8rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #c5d3e8;
}

.plan-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-features li.neg::before {
  content: "✕";
  color: var(--danger);
}

.plan-features li.neg {
  color: var(--muted);
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 0.75rem;
}

.pricing-toggle-group {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.cycle-toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.cycle-toggle-btn.active {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

.billing-cycle-hint {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.section-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.price-cycle {
  display: none;
}

.price-cycle.is-visible {
  display: block;
}

.price-cycle small {
  font-size: 0.72em;
  color: var(--muted);
  font-weight: 600;
}

.compare-limit {
  font-weight: 700;
  color: var(--accent);
}

.plan-limits {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.45rem;
}

.plan-limit-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.plan-limit-row span:first-child { color: var(--muted); }
.plan-limit-row span:last-child { font-weight: 700; }

/* ── Wizard ── */
.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.wizard-step {
  flex: 1;
  min-width: 120px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: 0.18s ease;
}

.wizard-step.active {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.wizard-step.done {
  border-color: rgba(52, 211, 153, 0.28);
}

.wizard-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.wizard-step-label {
  font-weight: 700;
  font-size: 0.88rem;
}

/* ── Form sections ── */
.form-section {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.form-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel-action-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-preview {
  margin-top: auto;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.82rem;
}

.code-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #b8c9df;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: rgba(18, 24, 36, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease;
  z-index: 100;
}

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

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

.main { animation: fadeIn 0.35s ease; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table tr:last-child td { border-bottom: none; }

.pill {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

.pill-yes { color: var(--success); border-color: rgba(52, 211, 153, 0.25); }
.pill-no { color: var(--muted); }

@media (max-width: 960px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .split-panel { grid-template-columns: 1fr; }
}

/* ── Whitelist / ticket queue ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.tab-btn.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1rem;
  align-items: start;
}

.queue-list {
  display: grid;
  gap: 0.65rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.queue-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: 0.15s ease;
  text-align: left;
  width: 100%;
  color: inherit;
  font-family: inherit;
}

.queue-item:hover,
.queue-item.active {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.queue-item-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.queue-item-body strong,
.queue-item-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.wl-search {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 260px);
  flex: 1;
  max-width: 320px;
}

.wl-search input {
  width: 100%;
}

.wl-queue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.wl-manual-card {
  padding: 1.1rem 1.15rem;
}

.wl-manual-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.7fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.wl-manual-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.wl-manual-summary {
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.05);
}

.wl-manual-summary p {
  margin: 0.25rem 0;
}

.wl-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.wl-pill-ok {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.wl-pill-manual {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
}

.wl-pill-bad {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.wl-pill-warn {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.wl-pill-wait {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.1);
}

@media (max-width: 900px) {
  .wl-manual-grid {
    grid-template-columns: 1fr;
  }

  .wl-queue-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wl-search {
    max-width: none;
  }
}

.queue-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.queue-item strong { display: block; font-size: 0.92rem; }
.queue-item span { color: var(--muted); font-size: 0.8rem; }

.detail-panel { min-height: 360px; }

.detail-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.detail-header img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.answer-block {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.answer-block strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.answer-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.action-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.pill-warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.pill-purple {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.trial-banner {
  border-left: 4px solid var(--accent);
  margin-bottom: 1rem;
}

.trial-banner-urgent,
.trial-banner-expired {
  border-left-color: var(--danger);
}

.trial-banner-setup {
  border-left-color: var(--accent-2);
}

.trial-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trial-banner h3 { margin: 0 0 0.35rem; }

.trial-guide-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.trial-checkout-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-page .admin-card {
  width: min(1100px, 100%);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.admin-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.table-wrap { overflow-x: auto; }

.admin-guild-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-guild-cell img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.admin-guild-cell .mono {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

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

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-overlay.hidden { display: none; }

.modal-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h3 { margin: 0; }

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.admin-guild-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.admin-billing-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg-card-solid);
  color: var(--text);
  color-scheme: dark;
}

.hidden { display: none !important; }

.admin-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  z-index: 1100;
}

.admin-toast--success { border-color: rgba(52, 211, 153, 0.45); }
.admin-toast--error { border-color: rgba(248, 113, 113, 0.45); }

/* ── UI polish: tables, metrics, page sections ── */
.data-table tbody tr {
  transition: background 0.15s ease;
}

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

.data-table tbody tr.row-active {
  background: rgba(34, 211, 238, 0.08);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tabs-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.tabs-scroll::-webkit-scrollbar { display: none; }

.tabs-scroll .tab-btn { white-space: nowrap; flex-shrink: 0; }

.page-intro {
  margin-bottom: 1.1rem;
}

.page-intro-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-intro-step {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.45;
}

.page-intro-step strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-card .stat {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.metric-card .stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.55rem 0;
}

.bar-row-label {
  min-width: 110px;
  font-size: 0.88rem;
  color: var(--text);
}

.bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), #67e8f9);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.bar-value {
  min-width: 36px;
  text-align: right;
  font-weight: 700;
}

.ann-send-mode { display: grid; gap: 0.55rem; }

.ann-field-label,
.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.ann-mode-tabs { margin-bottom: 0; }

.ann-mode-tabs .tab-btn {
  flex: 1;
  text-align: center;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.action-chip--warn { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
.action-chip--ban { color: #f87171; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
.action-chip--kick { color: #fb923c; border-color: rgba(251, 146, 60, 0.35); background: rgba(251, 146, 60, 0.1); }
.action-chip--mute { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.1); }
.action-chip--ok { color: var(--success); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.action-chip--info { color: var(--accent); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.1); }
.action-chip--ticket { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.1); }

.ticket-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ticket-summary-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.ticket-summary-item strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.ticket-summary-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.ticket-meta-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.ticket-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.upgrade-shell {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

.upgrade-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 2rem 1.75rem;
}

.upgrade-lock {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: var(--glow);
}

.upgrade-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
}

.upgrade-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.upgrade-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.nav-group-advanced .nav-section {
  color: #c4b5fd;
}

.card-compact {
  padding: 1rem 1.1rem;
}

.card-compact .card-icon {
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.commands-catalog {
  display: grid;
  gap: 1.5rem;
}

.commands-group-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.commands-group-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.commands-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.command-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.command-card-head {
  margin-bottom: 0.45rem;
}

.command-badge {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
}

.command-desc {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.command-hint {
  display: inline-block;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.command-hint.discord-only {
  color: var(--muted);
}

.command-hint.panel-link {
  color: var(--accent-purple);
}

.command-hint.panel-link:hover {
  color: var(--accent-strong);
}

.command-params-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.command-param-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.command-param-chip.required {
  border-color: rgba(251, 191, 36, 0.35);
}

.command-param-chip code {
  color: var(--text);
  font-size: 0.78rem;
}

.command-opt-type {
  font-size: 0.7rem;
  opacity: 0.75;
}

.panel-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.panel-guide-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.panel-guide-item:hover:not(.locked) {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.panel-guide-item strong {
  color: var(--text);
}

.panel-guide-item span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.page-tabs .page-tab-btn {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.page-tabs .page-tab-btn.active,
.page-tabs .page-tab-btn:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-tabs .tab-btn {
  padding: 0.65rem 1rem;
}

.questions-editor {
  display: grid;
  gap: 0.85rem;
}

.question-card {
  padding: 1rem 1.1rem;
}

.question-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.question-card textarea,
.question-card input,
.question-card select {
  margin-top: 0.35rem;
}

.question-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.question-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.empty-state-compact {
  padding: 1.25rem;
  font-size: 0.92rem;
}

.feature-toggle-card {
  padding: 1rem 1.15rem;
}

.feature-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.feature-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.feature-switch-ui {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.feature-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.feature-switch input:checked + .feature-switch-ui {
  background: rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.55);
}

.feature-switch input:checked + .feature-switch-ui::after {
  transform: translateX(20px);
}

.feature-switch-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 4.5rem;
}

.feature-disabled-banner {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 0.88rem;
}

.gate-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.gate-option {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.gate-option strong {
  display: block;
  font-size: 0.95rem;
}

.feature-switch.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gate-hint {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.05);
}

.gate-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.command-card-disabled {
  opacity: 0.72;
  border-style: dashed;
}

.command-disabled-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

/* Emoji picker integrato nel campo */
.emoji-picker-field {
  width: 100%;
}

.emoji-input-shell,
.emoji-textarea-shell {
  position: relative;
  width: 100%;
}

.emoji-input-shell .emoji-input-with-picker {
  width: 100%;
  padding-right: 44px;
}

.emoji-textarea-shell .emoji-textarea-with-picker {
  width: 100%;
  padding-right: 44px;
  padding-bottom: 8px;
}

.emoji-picker-infield {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.emoji-textarea-shell .emoji-picker-infield {
  top: auto;
  bottom: 8px;
  transform: none;
}

.emoji-picker-trigger-infield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0;
  color: inherit;
  opacity: 0.75;
  transition: background 0.15s, opacity 0.15s;
}

.emoji-picker-trigger-infield:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.emoji-picker-trigger-infield[aria-expanded="true"] {
  background: rgba(255, 176, 0, 0.18);
  opacity: 1;
}

.emoji-picker-trigger-infield:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.emoji-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  z-index: 130;
  width: min(320px, calc(100vw - 24px));
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-card, #1a1410);
  border: 1px solid var(--border-color, #4a341d);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 10px;
}

.emoji-textarea-shell .emoji-picker-menu {
  bottom: calc(100% + 4px);
  top: auto;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.emoji-picker-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
}

.emoji-picker-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.emoji-field-wrap {
  min-width: 100px;
  max-width: 140px;
}

