/* FILE: static/styles.css
 * Stil enterprise (grayscale premium), mobile-first, fără culori stridente.
 *
 * Obiective:
 * - UI curat, lizibil, spacing consistent, focus states corecte.
 * - Cardul de autentificare să fie centrat și să nu se întindă aiurea pe desktop.
 * - Reset password UI să arate ca o componentă “serioasă”, nu ca un hack.
 *
 * Debug UI:
 * - Dacă elemente noi nu se stilizează: verifică ID-urile din index.html:
 *   #btn-forgot-password, #password-reset-card, #btn-reset-close, #forgot-form, #reset-form
 * - Pentru Cont: clasele din account_page.js:
 *   .account-layout, .account-card, .account-grid, .account-row, .account-actions, .account-page-head
 * - Pentru Abonament: clasele din billing_page.js:
 *   .billing-layout, .billing-card, .billing-row, .billing-plans, .billing-plan-card, .billing-head
 * - Pentru apelare: clasele din call_dialog.js:
 *   .call-overlay, .call-dialog, .call-head, .call-actions, .call-qr-wrap, .call-help-box
 *
 * Întăriri pentru punctul 3 (SMS template + preview):
 * - Stil pentru <textarea> (template) la fel ca input-urile (premium, consistent).
 * - Badge-uri lipsă: .badge.info + .badge.neutral (folosite în UI).
 * - Stil pentru preview modal (sms_gaps.js): meta badges + aliniere acțiuni.
 */

:root {
  /* Layout */
  --maxw: 1180px;

  /* Base */
  --bg: #f4f5f7;
  --bg2: #edf0f4;
  --card: #ffffff;
  --card-soft: #f9fafb;

  /* Borders */
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);

  /* Text */
  --text: #0f172a;
  --muted: #64748b;

  /* Accent (grayscale) */
  --accent: #111827;
  --accent-hover: #0b1220;

  /* Radius */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);

  /* Focus ring */
  --ring: rgba(17, 24, 39, 0.35);

  /* Spacing */
  --gap: 16px;
}

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

html,
body {
  height: 100%;
}

/* Background global (în afara cardurilor) – soft, premium, fără “alb mort” */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0) 60%),
    radial-gradient(700px 360px at 85% 12%, rgba(100, 116, 139, 0.10) 0%, rgba(100, 116, 139, 0) 55%),
    linear-gradient(180deg, #f1f4f8 0%, #eef2f7 35%, #e9edf4 100%);
}

/* Container */
#app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: var(--gap);
  padding: 12px 14px;

  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);

  /* Enterprise feeling */
  backdrop-filter: blur(4px);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
}

.user-info {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main layout */
.app-main {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 16px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.hint {
  margin: 0 0 10px 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Code inside hints (premium, lizibil) */
.hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  white-space: nowrap;
}

/* Auth card: center + “enterprise width” */
#auth-section.card {
  max-width: 680px;
  margin: 0 auto;
}

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

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

.form-group label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* generic form row (folosit în SMS settings etc.) */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--card-soft);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

/* TEXTAREA (lipsă anterior) — folosit critic la Template SMS */
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--card-soft);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  resize: vertical;
  min-height: 120px;

  /* UX: evita salturi vizuale */
  box-shadow: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(100, 116, 139, 0.75);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(17, 24, 39, 0.30);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.10);
}

/* Better focus for keyboard navigation */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.btn:focus-visible,
.tab:focus-visible,
a.btn:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.14);
  outline-offset: 2px;
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  cursor: pointer;

  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;

  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.24);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.secondary {
  background: var(--card);
  border-color: var(--border-strong);
}

.btn-small {
  font-size: 0.78rem;
  padding: 7px 12px;
}

/* Icon buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
}

.btn-danger {
  background: #f3f4f6;
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: var(--text);
}

.btn-danger:hover {
  background: #e9edf1;
  border-color: rgba(100, 116, 139, 0.5);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tab {
  flex: 1;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font-size: 0.85rem;
  background: var(--card);
  color: var(--muted);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  background: #f3f4f6;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Forgot password button - enterprise “link button” */
#btn-forgot-password {
  margin-top: 4px;
  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: underline;
  justify-content: center;
}

#btn-forgot-password:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.10);
  color: var(--text);
}

/* Doc card */
.doc-card {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-lg);
  background: var(--card-soft);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  font-size: 0.82rem;
  color: var(--muted);
}

.doc-card h3 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.doc-card ul {
  padding-left: 18px;
  margin: 0 0 10px 0;
}

.doc-card li {
  margin-bottom: 6px;
}

/* Reset password card: highlight */
#password-reset-card {
  border-left: 4px solid rgba(17, 24, 39, 0.25);
}

/* --- Dashboard shell + navigație (mobile-first) --- */
.dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.dashboard-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.dashboard-nav::-webkit-scrollbar {
  height: 8px;
}
.dashboard-nav::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

.nav-item {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.24);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Dashboard content + pages */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  flex: 1;
  min-width: 0;
}

.dash-page {
  width: 100%;
}

.page-hidden {
  display: none !important;
}

/* Orders page layout: filter + table */
.orders-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* Table */
.table-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: auto;
  max-height: 460px;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead {
  position: sticky;
  top: 0;
  background: var(--card-soft);
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

th {
  text-align: left;
  font-weight: 700;
  color: var(--muted);
}

tbody tr:nth-child(odd) {
  background: var(--card);
}

tbody tr:nth-child(even) {
  background: #fafbfc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.badge.neutral {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.10);
  color: var(--muted);
}

.badge.info {
  background: rgba(100, 116, 139, 0.06);
  border-color: rgba(100, 116, 139, 0.18);
  color: #334155;
}

.badge.ok {
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.18);
}

.badge.warn {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.22);
  color: #374151;
}

.badge.err {
  background: rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.28);
}

/* =========================
   SMS Preview modal (sms_gaps.js)
   ========================= */

.sms-preview-overlay {
  /* Separăm ușor de call dialog (dacă există în paralel) */
  z-index: 80;
}

.sms-preview-dialog {
  max-width: 760px;
}

.sms-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px 0;
}

.sms-preview-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.sms-preview-actions {
  justify-content: flex-end;
}

/* =========================
   Account page ("Contul meu")
   ========================= */

.account-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.account-card {
  /* hook */
}

.account-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.account-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.account-row:last-child {
  border-bottom: none;
}

.account-row-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.account-row-value {
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;

  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.account-form {
  margin-top: 6px;
}

/* =========================
   Billing page ("Abonament")
   ========================= */

.billing-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.billing-card {
  /* hook */
}

.billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.billing-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.billing-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.billing-row:last-child {
  border-bottom: none;
}

.billing-row-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.billing-row-value {
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;

  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.billing-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.billing-plan-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 14px 14px;
}

.billing-plan-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.billing-plan-name {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1rem;
}

.billing-plan-price {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.billing-plan-mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.billing-plan-quota {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.billing-plan-trial {
  color: var(--muted);
  font-size: 0.82rem;
}

.billing-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* =========================
   Call dialog ("Sună")
   ========================= */

.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;

  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(3px);
}

.call-dialog {
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
}

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

.call-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-help-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}

.call-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.call-tel-link.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.call-qr-wrap {
  border-radius: var(--radius-lg);
  background: var(--card-soft);
  border: 1px solid var(--border);
  padding: 12px 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.call-qr-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
}

.call-qr-canvas {
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.call-help-box {
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.call-help-inner h4 {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.call-help-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.call-help-title {
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}

.call-help-box ol {
  margin: 0;
  padding-left: 18px;
}

.call-help-box li {
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Status bar */
.status-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.status-bar-inner {
  max-width: 720px;
  width: calc(100% - 20px);
  padding: 12px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.status-bar-inner.error {
  border-color: rgba(15, 23, 42, 0.30);
}

.status-bar-inner.success {
  border-color: rgba(15, 23, 42, 0.18);
}

/* SMS info */
.sms-info {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.sms-info p {
  margin: 4px 0;
}

/* PNK mapping */
.product-link-form {
  margin-top: 10px;
}

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

.product-link-pnk {
  flex: 0 0 140px;
}

.product-link-equal {
  flex: 0 0 auto;
  padding: 0 4px;
  font-size: 1rem;
  color: var(--muted);
}

.product-link-url {
  flex: 1 1 auto;
}

.product-links-toggle-row {
  margin-top: 10px;
}

#btn-product-links-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

#btn-product-links-toggle:hover {
  background: #f3f4f6;
}

#btn-product-links-toggle::after {
  content: "▼";
  font-size: 0.75rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.9;
  color: var(--muted);
}

#btn-product-links-toggle.expanded::after {
  content: "▲";
}

.product-links-list {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 0.82rem;
  background: var(--card-soft);
}

.product-links-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.product-links-list-item:last-child {
  border-bottom: none;
}

.product-links-list-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-links-list-item-code {
  font-weight: 800;
  color: var(--text);
}

.product-links-list-item-url {
  color: var(--muted);
  word-break: break-all;
}

.product-links-list-item-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

/* Helpers */
.hidden {
  display: none !important;
}

/* Responsiv */
@media (min-width: 768px) {
  #app {
    padding: 24px;
  }
}

@media (min-width: 900px) {
  .dashboard-shell {
    flex-direction: row;
    align-items: flex-start;
  }

  .dashboard-nav {
    flex-direction: column;
    min-width: 220px;
    max-width: 260px;
    overflow-x: visible;

    position: sticky;
    top: 14px;
  }

  .orders-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  #card-filter {
    flex: 0 0 320px;
  }

  #card-orders {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Account: label/value pe un rând (desktop) */
  .account-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .account-row-label {
    flex: 0 0 180px;
  }

  .account-row-value {
    flex: 1 1 auto;
    justify-content: flex-end;
    text-align: right;
  }

  /* Billing: label/value pe un rând (desktop) */
  .billing-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .billing-row-label {
    flex: 0 0 180px;
  }

  .billing-row-value {
    flex: 1 1 auto;
    justify-content: flex-end;
    text-align: right;
  }

  /* Plan cards: 3 coloane pe desktop */
  .billing-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .billing-plan-top {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .product-links-list-item-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  th,
  td {
    padding: 10px 8px;
  }
}

/* --- Enterprise polish: global busy + spinner --- */

html.busy,
html.busy * {
  cursor: progress !important;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn-label {
  font-weight: 700;
}

/* Link partener (SEO + accesibilitate) */
.home-partner-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

.home-partner-link:hover,
.home-partner-link:focus {
  border-bottom-color: rgba(15, 23, 42, 0.34);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
