/* ==========================================================================
   Apex TAC v3.0 — Estilos por Vista (Hangar, Asesor, Importador, Editor)
   ========================================================================== */

.view-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Cabecera Hangar + barra búsqueda/acciones */
.hangar-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.view-heading {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
}

.view-sub {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.hangar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.search-input {
  flex: 1 1 200px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Panel destacado Asesor "¿Qué Avión Comprar?" */
.advisor-panel {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.1), var(--bg-surface) 60%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.advisor-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.segmented-toggle {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.segmented-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.segmented-btn.is-active {
  background: var(--accent);
  color: #04111d;
}

.advisor-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.advisor-select {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-weight: 700;
}

.advisor-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 720px) {
  .advisor-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.advisor-pick-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advisor-pick-card.is-next-tier {
  border-color: rgba(168, 85, 247, 0.42);
}

/* Importador 1-toque */
.import-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* Editor táctil rápido + Simulador MM en vivo */
.editor-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stepper-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stepper-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.stepper-value {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}

.quick-lvl-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sim-preview-box {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  font-size: 0.84rem;
}

.sim-preview-box.zone-safe { border-color: var(--zone-safe); background: var(--zone-safe-bg); }
.sim-preview-box.zone-transit { border-color: var(--zone-transit); background: var(--zone-transit-bg); }
.sim-preview-box.zone-trap { border-color: var(--zone-trap); background: var(--zone-trap-bg); }
.sim-preview-box.zone-mastery { border-color: var(--zone-mastery); background: var(--zone-mastery-bg); }

/* Marcador limpio para pestañas 2C/2D y bloqueo Kill-Switch */
.empty-state-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-surface);
  text-align: center;
  color: var(--text-secondary);
}

.killswitch-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-killswitch);
  background: var(--bg-canvas);
  display: grid;
  place-items: center;
  padding: var(--space-5);
  text-align: center;
}
/* ---------- Vista "¿Qué Vuelo?" (CP 2C-3) ---------- */
.fly-selector-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fly-selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fly-group-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.fly-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fly-chip {
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fly-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #04111d;
  font-weight: 800;
}

.fly-briefing-card {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), var(--bg-surface) 65%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fly-briefing-head {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.fly-briefing-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.fly-briefing-text.is-muted {
  color: var(--text-secondary);
}

.fly-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.fly-section-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.fly-section-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.fly-rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fly-rank-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.fly-rank-row.zone-safe { border-left: 3px solid var(--zone-safe); background: var(--zone-safe-bg); }
.fly-rank-row.zone-transit { border-left: 3px solid var(--zone-transit); background: var(--zone-transit-bg); }
.fly-rank-row.zone-trap { border-left: 3px solid var(--zone-trap); background: var(--zone-trap-bg); }
.fly-rank-row.zone-mastery { border-left: 3px solid var(--zone-mastery); background: var(--zone-mastery-bg); }

.fly-rank-pos {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.fly-rank-svg {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.fly-rank-svg svg {
  width: 28px;
  height: 28px;
}

.fly-rank-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.fly-rank-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fly-rank-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.fly-rank-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.fly-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  white-space: nowrap;
}

.fly-pill.is-map-top {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--accent);
}

.fly-pill.zone-safe { color: var(--zone-safe); border-color: var(--zone-safe); }
.fly-pill.zone-transit { color: var(--zone-transit); border-color: var(--zone-transit); }
.fly-pill.zone-trap { color: var(--zone-trap); border-color: var(--zone-trap); }
.fly-pill.zone-mastery { color: var(--zone-mastery); border-color: var(--zone-mastery); }

.fly-trap-dot {
  color: var(--zone-trap);
  font-size: 0.85rem;
}

.fly-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.fly-squad-box {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  border-left: 3px solid var(--accent);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ---------- Vista "Meta" (CP 2D-1) ---------- */
.meta-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.meta-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.meta-subtab {
  width: fit-content;
}

.meta-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Fila única deslizable en móvil para ahorrar espacio vertical */
.meta-role-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.meta-role-row::-webkit-scrollbar {
  display: none;
}

.meta-role-row .fly-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .meta-role-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.meta-owned-chip.is-active {
  background: var(--zone-safe);
  border-color: var(--zone-safe);
  color: #04111d;
}

.meta-bands-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.meta-band {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.meta-band-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.meta-band-range {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Grilla 2 columnas desde móvil -> 3 en tablet -> 4 en escritorio */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

@media (min-width: 760px) {
  .meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.meta-tile {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 9px 7px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

.meta-tile:hover {
  border-color: var(--border-strong);
}

.meta-tile.is-owned {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(155deg, rgba(14, 165, 233, 0.09), var(--bg-surface) 65%);
}

.meta-tile-top {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.meta-tile-svg {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.meta-tile-svg svg {
  width: 18px;
  height: 18px;
}

.meta-tile-name {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-tile-pts {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.meta-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 16px;
}

.meta-tile-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-mini-pill {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.meta-mini-pill.zone-safe { color: var(--zone-safe); border-color: var(--zone-safe); }
.meta-mini-pill.zone-transit { color: var(--zone-transit); border-color: var(--zone-transit); }
.meta-mini-pill.zone-trap { color: var(--zone-trap); border-color: var(--zone-trap); }
.meta-mini-pill.zone-mastery { color: var(--zone-mastery); border-color: var(--zone-mastery); }

.meta-tile-bar {
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: var(--bg-elevated);
  overflow: hidden;
  display: block;
}

.meta-tile-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

/* ---------- Modo Delta Nativo v3.0 (2 Columnas desde móvil) ---------- */
.meta-delta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delta-scale-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.delta-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delta-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  background: var(--bg-surface);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delta-card.is-up {
  border-left-color: var(--zone-safe);
  background: linear-gradient(90deg, var(--zone-safe-bg), var(--bg-surface) 45%);
}

.delta-card.is-down {
  border-left-color: var(--zone-trap);
  background: linear-gradient(90deg, var(--zone-trap-bg), var(--bg-surface) 45%);
}

.delta-card.is-top {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), var(--bg-surface) 45%);
}

.delta-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.delta-card-title {
  font-size: 0.84rem;
  color: var(--text-primary);
}

.delta-plane-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.delta-plane-chip {
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.delta-plane-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.delta-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-secondary);
  white-space: nowrap;
}

.delta-badge.is-up { color: var(--zone-safe); border-color: var(--zone-safe); }
.delta-badge.is-down { color: var(--zone-trap); border-color: var(--zone-trap); }
.delta-badge.is-top { color: var(--accent); border-color: rgba(56, 189, 248, 0.5); }

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

.delta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.delta-col + .delta-col {
  border-left: 1px solid var(--border-subtle);
  padding-left: 10px;
}

.delta-col-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.delta-col-body {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

@media (min-width: 680px) {
  .delta-cols {
    gap: 14px;
  }

  .delta-col + .delta-col {
    padding-left: 14px;
  }

  .delta-col-body {
    font-size: 0.82rem;
  }
}

.meta-delta-fallback {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ==========================================================================
   VISTA PERFIL DEL PILOTO (CP 2D-2)
   ========================================================================== */
.profile-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}

.profile-card {
  background: var(--bg-surface, #141923);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-sec-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
}

.profile-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
}

.profile-muted {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted, #94a3b8);
}

.profile-banner {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
}
.profile-banner.is-ok {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
.profile-banner.is-err {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.profile-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg-elevated, #0d1117);
  border-radius: 10px;
}

.profile-seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.profile-seg-btn.is-active {
  background: var(--accent-cyan, #38bdf8);
  color: #081018;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-elevated, #0d1117);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary, #f1f5f9);
  font-family: inherit;
  font-size: 0.88rem;
}
.profile-input:focus {
  outline: none;
  border-color: var(--accent-cyan, #38bdf8);
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
}
.profile-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.profile-btn-full { width: 100%; }
.profile-btn-primary {
  background: var(--accent-cyan, #38bdf8);
  color: #081018;
}
.profile-btn-outline {
  background: transparent;
  border-color: var(--accent-cyan, #38bdf8);
  color: var(--accent-cyan, #38bdf8);
}
.profile-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle, rgba(255, 255, 255, 0.1));
  color: var(--text-primary, #f1f5f9);
}
.profile-btn-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.profile-pilot-head,
.profile-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-callsign {
  margin: 2px 0 0;
  font-size: 1.15rem;
  color: var(--text-primary, #f1f5f9);
}

.profile-email {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.profile-meta-box {
  background: var(--bg-elevated, #0d1117);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.profile-chip-btn {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan, #38bdf8);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.profile-plan-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.profile-plan-badge.is-pro { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.profile-plan-badge.is-trial { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
.profile-plan-badge.is-free { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.profile-plan-badge.is-anon { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }

.profile-pay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-lang-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-lang-btn {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: var(--bg-elevated, #0d1117);
  color: var(--text-primary, #f1f5f9);
  font-weight: 700;
  cursor: pointer;
}
.profile-lang-btn.is-active {
  border-color: var(--accent-cyan, #38bdf8);
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-cyan, #38bdf8);
}

.profile-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-ticket-item {
  background: var(--bg-elevated, #0d1117);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}

.profile-ticket-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent-cyan, #38bdf8);
}

.profile-ticket-reply {
  border-left: 2px solid var(--accent-cyan, #38bdf8);
  padding-left: 8px;
  font-size: 0.82rem;
  color: var(--text-primary, #f1f5f9);
}

.profile-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-link-row {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-elevated, #0d1117);
  color: var(--text-primary, #f1f5f9);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.profile-divider {
  height: 1px;
  background: var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.profile-danger-box {
  padding: 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.profile-legal-box {
  text-align: center;
  padding: 12px 10px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.76rem;
  line-height: 1.45;
}
.profile-legal-box p { margin: 0 0 6px; }