:root {
  --bg: #070a12;
  --glass-bg: rgba(18, 26, 43, 0.56);
  --glass-bg-hover: rgba(26, 37, 60, 0.72);
  --glass-inset: rgba(8, 12, 22, 0.48);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.24);
  --text: #f8fafc;
  --muted: #9fb0c7;
  --accent: #38bdf8;
  --accent-2: #a855f7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glass:
    0 12px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 var(--glass-highlight);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
  position: relative;
}

/* Orbes de luz ambiental para potenciar el efecto glassmorfismo */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.45;
}

.orb-1 {
  width: 460px;
  height: 460px;
  top: -110px;
  left: -90px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 70%);
}

.orb-2 {
  width: 520px;
  height: 520px;
  top: 28%;
  right: -140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42), transparent 70%);
}

.orb-3 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: 22%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.32), transparent 70%);
}

.glass-panel {
  background: rgba(12, 18, 30, 0.68);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-glass);
}

.glass-inset {
  background: var(--glass-inset);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 260px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(168, 85, 247, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #070a12;
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.brand h1 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Botón hamburguesa (visible en móvil/tablet) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-header,
.drawer-tabs {
  display: none;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(3, 6, 12, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fx-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.fx-box,
.fx-quick {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.quick-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fx-box input,
.fx-quick input,
.fx-quick select,
.pricing-actions select,
.field input,
.field select {
  background: rgba(6, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fx-box input:focus,
.fx-quick input:focus,
.field input:focus,
.field select:focus,
.filters input:focus,
.filters select:focus,
.pricing-actions select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.fx-box input,
.fx-quick input {
  width: 72px;
}

.fx-quick strong {
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s ease, background 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
}

.kpi-card span {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  margin-top: 0.25rem;
}

.kpi-card small {
  font-size: 0.76rem;
  color: #34d399;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  font-weight: 800;
}

.subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.header-actions,
.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92));
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #fff;
  padding: 0.52rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 0.45rem 0.82rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-danger-sm {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-sm:hover {
  background: rgba(239, 68, 68, 0.3);
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prov-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.prov-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.prov-chip.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #7dd3fc;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.prov-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 14px;
}

.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.52rem 0.92rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.88), rgba(129, 140, 248, 0.88));
  border-color: rgba(255, 255, 255, 0.35);
  color: #070a12;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.28);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 1 1 340px;
  justify-content: flex-end;
}

.filters input,
.filters select {
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.85rem;
}

.filters input {
  flex: 1 1 220px;
  min-width: 180px;
}

.filters select option,
.pricing-actions select option,
.field select option,
.fx-quick select option {
  background: #0d1320;
  color: var(--text);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.2rem;
}

.platform-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid var(--glass-border);
  border-top: 4px solid var(--plat-color, var(--accent));
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
}

.plat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.plat-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.03rem;
  font-weight: 800;
}

.plat-pill {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--plat-color, var(--accent));
  box-shadow: 0 0 10px var(--plat-color, var(--accent));
}

.plat-count {
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-block {
  background: rgba(8, 12, 22, 0.52);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.plan-name {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: capitalize;
}

.top2-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.winner-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.second-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.32);
}

.verdict-pill {
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.26rem 0.58rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.verdict-better {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.32);
}

.verdict-worse {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.plan-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.48rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.mini-input-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.48rem;
  border-radius: 8px;
}

.mini-input-group input {
  width: 68px;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-radius: 6px;
  padding: 0.22rem 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.76rem;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.79rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.offer-row.is-best {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.offer-row.is-second {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.24);
}

.offer-prov {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  min-width: 0;
}

.offer-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  white-space: nowrap;
}

.offer-orig {
  font-size: 0.71rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 0.68rem 0.78rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.th-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.wa-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--success);
  cursor: pointer;
}

tr.row-excluded {
  opacity: 0.45;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.cell-input {
  width: 82px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #7dd3fc;
  border-radius: 8px;
  padding: 0.34rem 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.cell-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.24);
}

.badge-margin {
  padding: 0.22rem 0.52rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.margin-good {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.margin-mid {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.margin-low {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.lot-form-card {
  margin-bottom: 1.25rem;
}

.lot-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  font-family: inherit;
}

/* Vista de consulta por plataforma */
.platform-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.15s ease;
}

.plat-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.plat-tab-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--plat-accent, var(--accent));
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28);
}

.plat-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.plat-mini-stat {
  padding: 0.85rem 1rem;
  border-radius: 14px;
}

.plat-mini-stat span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.plat-mini-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0.2rem;
  font-family: 'JetBrains Mono', monospace;
}

.plat-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.plat-detail-plan {
  padding: 0.95rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plat-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.wa-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 100;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 243, 208, 0.5);
  color: #041b13;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.75rem 1.15rem;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hidden {
  display: none !important;
}

/* Breakpoints responsive + Menú Hamburguesa */
@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hamburger-btn {
    display: inline-flex;
  }

  .controls-bar .tabs {
    display: none;
  }

  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
  }

  .drawer-close-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.74rem;
  }

  .drawer-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .drawer-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
  }

  .drawer-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(129, 140, 248, 0.9));
    border-color: rgba(255, 255, 255, 0.35);
    color: #070a12;
  }

  .fx-panel {
    display: none;
    position: fixed;
    top: 4.55rem;
    left: 1rem;
    right: 1rem;
    max-height: calc(100vh - 5.6rem);
    overflow-y: auto;
    z-index: 65;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(13, 20, 34, 0.88);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  }

  .fx-panel.is-open {
    display: flex;
  }

  .fx-box,
  .fx-quick {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .container {
    padding: 1rem 1rem 2.5rem;
  }

  .filters {
    width: 100%;
    justify-content: stretch;
  }

  .filters select {
    flex: 1 1 100%;
  }
}

@media (max-width: 540px) {
  .kpi-grid,
  .platforms-grid,
  .plat-detail-grid {
    grid-template-columns: 1fr;
  }

  .drawer-tabs {
    grid-template-columns: 1fr;
  }

  .plan-header {
    flex-direction: column;
    align-items: stretch;
  }

  .top2-pills {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .header-actions,
  .pricing-actions {
    width: 100%;
  }

  .pricing-actions > * {
    flex: 1 1 auto;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
}