/* ═══════════════════════════════════════════════════
   Subscription UI — Aligned with AAU Dark Bento Theme
═══════════════════════════════════════════════════ */
.sub-modal-card {
  max-width: 720px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0d0f15 0%, #090b10 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sub-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-modal-title-wrap svg {
  width: 19px;
  height: 19px;
  color: var(--text-dim, #a1a1aa);
}

.sub-bento-card {
  background: linear-gradient(180deg, #11141c 0%, #0a0c12 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.sub-hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #111318 0%, #0c0e14 55%, #0a0c10 100%);
}

.sub-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sub-icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.sub-icon-tile svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.sub-icon-tile.is-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.sub-icon-tile.is-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.sub-icon-tile.is-slate {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.sub-icon-tile.is-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.sub-code-copy-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text, #fafafa);
  direction: ltr;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #a1a1aa);
  white-space: nowrap;
}

.sub-pill.is-emerald {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.34);
  color: #6ee7b7;
}

.sub-pill.is-amber {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fbbf24;
}

.sub-pill.is-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.34);
  color: #fca5a5;
}

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

@media (max-width: 560px) {
  .sub-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.sub-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #11141c 0%, #0a0c12 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.sub-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sub-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim, #a1a1aa);
}

.sub-kpi-value {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text, #fafafa);
  line-height: 1.35;
}

.sub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sub-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #fafafa);
}

.sub-panel-title svg {
  width: 17px;
  height: 17px;
  color: var(--text-dim, #a1a1aa);
}

.sub-muted-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim, #a1a1aa);
  margin: 0;
}

.sub-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.sub-history-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sub-history-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #fafafa);
}

.sub-history-meta small {
  font-size: 11px;
  color: var(--text-muted, #71717a);
}

.sub-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #fafafa);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sub-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.sub-btn-ghost svg {
  width: 15px;
  height: 15px;
}

.sub-lock-screen {
  max-width: 780px;
  margin: 28px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* Light theme parity matching app-ui.css */
html[data-theme="light"] .sub-modal-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .sub-bento-card,
html[data-theme="light"] .sub-kpi-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .sub-history-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .sub-btn-ghost {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

html[data-theme="light"] .sub-icon-tile.is-neutral,
html[data-theme="light"] .sub-icon-tile {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
