* {
  box-sizing: border-box;
}

:root {
  --bg: #ebe7df;
  --surface: #ffffff;
  --surface-soft: #f7f2ea;
  --line: rgba(31, 41, 55, 0.12);
  --line-strong: rgba(31, 41, 55, 0.22);
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #f97316;
  --accent-2: #8b6f47;
  --warning: #b45309;
  --shadow-lg: 0 22px 42px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  background:
    radial-gradient(1000px 420px at 8% -10%, rgba(249, 115, 22, 0.14), transparent 58%),
    radial-gradient(960px 380px at 95% -15%, rgba(200, 169, 126, 0.16), transparent 52%),
    var(--bg);
  color: var(--text);
}

.account-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.account-hero,
.account-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.account-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: start;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}

.account-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(15, 139, 125, 0.2), transparent 72%);
  pointer-events: none;
}

.account-hero-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

.account-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 4.1vw, 42px);
  letter-spacing: -0.02em;
}

.account-hero-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.account-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-hero-badges span {
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #9a4b0f;
  background: rgba(249, 115, 22, 0.08);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 14px;
}

.account-card {
  border-radius: 18px;
}

.account-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.account-card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-family: "Space Grotesk", sans-serif;
}

.account-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.account-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-form input:focus {
  outline: none;
  border-color: rgba(15, 139, 125, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 139, 125, 0.1);
}

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

.account-row-tight {
  justify-content: flex-end;
}

.account-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.account-status {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.account-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.account-mode-badge--live {
  color: #1f5f56;
  background: rgba(15, 139, 125, 0.12);
  border-color: rgba(15, 139, 125, 0.3);
}

.account-mode-badge--dev {
  color: #1f4f9a;
  background: rgba(52, 120, 246, 0.12);
  border-color: rgba(52, 120, 246, 0.28);
}

.account-mode-badge--unknown {
  color: #4d453e;
  background: rgba(34, 28, 22, 0.06);
}

.account-status-alert {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(237, 153, 15, 0.35);
  border-radius: 10px;
  background: rgba(237, 153, 15, 0.08);
  color: var(--warning);
  font-weight: 700;
}

.account-inline-help {
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.account-status-legend {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.account-status-legend p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #4d453e;
}

.account-status-legend p:last-child {
  margin-bottom: 0;
}

.account-project-list {
  display: grid;
  gap: 8px;
}

.account-project-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fcfcfc);
  box-shadow: 0 6px 14px rgba(21, 16, 12, 0.05);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.account-project-row-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.account-project-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-health-output {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #3f372d;
  font-size: 12px;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.account-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 10px 0 12px;
}

.account-billing-grid p {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

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

.account-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5d544b;
  font-weight: 700;
}

.account-metric-label::before {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #2f2821;
  line-height: 1;
  content: "+";
}

.account-metric--plan .account-metric-label::before {
  content: "P";
  color: var(--accent);
}

.account-metric-label--status::before {
  content: "S";
  color: var(--accent-2);
}

.account-metric--interval .account-metric-label::before {
  content: "O";
  color: var(--warning);
}

.account-metric--renewal .account-metric-label::before {
  content: "R";
  color: #1f5f56;
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.account-status-badge--success {
  background: rgba(15, 139, 125, 0.12);
  color: #1b5a52;
  border-color: rgba(15, 139, 125, 0.24);
}

.account-status-badge--warning {
  background: rgba(237, 153, 15, 0.11);
  color: #8a5707;
  border-color: rgba(154, 90, 0, 0.22);
}

.account-status-badge--info {
  background: rgba(52, 120, 246, 0.11);
  color: #28548f;
  border-color: rgba(35, 95, 158, 0.22);
}

.account-status-badge--neutral {
  background: rgba(34, 28, 22, 0.05);
  color: #5b534c;
  border-color: rgba(44, 36, 30, 0.18);
}

.account-billing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border: 1px solid rgba(15, 139, 125, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 139, 125, 0.08);
  color: #1f5f56;
}

.account-actions-inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-billing .account-row {
  align-items: flex-start;
}

.account-billing .account-row-tight {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.account-metric {
  margin: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.account-metric strong {
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.account-metric--plan strong,
.account-metric--status strong {
  font-size: 17px;
}

.account-metric--renewal strong {
  font-size: 16px;
}

.account-billing .account-actions-inline {
  margin-top: 2px;
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.account-billing .account-actions-inline .primary-button,
.account-billing .account-actions-inline .ghost-button {
  min-height: 52px;
  padding: 10px 14px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.account-billing #accountInvoicesList .account-project-row {
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}

.account-billing #accountInvoicesList .account-project-row-head {
  align-items: flex-start;
  font-size: 15px;
}

.account-billing #accountInvoicesList .account-project-row-actions {
  justify-content: flex-start;
}

.account-subscriptions-list {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.account-subscription-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.account-subscription-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-subscription-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.account-subscription-price {
  margin: 3px 0 0;
  color: #5c544d;
  font-size: 13px;
  font-weight: 600;
}

.account-subscription-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-subscription-meta p {
  margin: 0;
  color: #5b544b;
  font-size: 13px;
  line-height: 1.35;
}

.account-active-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.account-plans {
  grid-column: 1 / -1;
}

.account-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-plan-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.account-plan-card {
  border: 1px solid rgba(66, 59, 50, 0.16);
  border-radius: 24px;
  padding: 18px;
  background: #f4f5f7;
  box-shadow: 0 10px 20px rgba(21, 16, 12, 0.06);
  display: grid;
  gap: 12px;
  min-height: 320px;
}

.account-plan-card header {
  display: grid;
  gap: 8px;
}

.account-plan-media {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(44, 36, 30, 0.14);
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  margin-bottom: 4px;
}

.account-plan-media--pro {
  width: 90px;
}

.account-plan-card h3 {
  margin: 0;
  font-size: 42px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.account-plan-price-line {
  margin: 0;
  display: grid;
  gap: 2px;
}

.account-plan-card strong {
  font-size: 46px;
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.account-plan-price-line span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.account-plan-section {
  display: grid;
  gap: 6px;
}

.account-plan-section h4 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5f5951;
}

.account-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #4b433d;
}

.account-plan-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.35;
}

.account-plan-list--pros li::before,
.account-plan-list--cons li::before {
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  content: "";
}

.account-plan-list--pros li::before {
  content: "+";
  color: #155f54;
  background: rgba(15, 139, 125, 0.16);
  border: 1px solid rgba(15, 139, 125, 0.3);
}

.account-plan-list--cons li::before {
  content: "-";
  color: #7f4d00;
  background: rgba(255, 196, 115, 0.26);
  border: 1px solid rgba(154, 90, 0, 0.25);
}

.account-plan-card--free strong {
  color: #4b433d;
}

.account-plan-card--pro {
  border-color: #2f66f3;
  background: #f8fbff;
  box-shadow: 0 12px 24px rgba(47, 102, 243, 0.14);
}

.account-plan-card--pro strong {
  color: #1f3f8f;
}

.account-plan-card--addon {
  border-color: rgba(53, 91, 170, 0.32);
  background: #f7f9fd;
}

.account-plan-card--addon strong {
  color: #2a4d8f;
}

.account-plan-card--addon.is-pro-required {
  opacity: 0.62;
  filter: grayscale(0.22);
  border-style: dashed;
}

.account-plan-card.is-active {
  border-color: #1f5fd6;
  box-shadow: 0 14px 24px rgba(31, 95, 214, 0.18);
}

.account-plan-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.account-plan-actions .primary-button,
.account-plan-actions .ghost-button {
  min-height: 52px;
  font-size: 16px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 16px;
  white-space: normal;
}

.account-plan-actions .primary-button {
  background: linear-gradient(160deg, #20b5a6, #119787);
  box-shadow: 0 10px 18px rgba(15, 139, 125, 0.18);
}

.account-plan-actions .primary-button.is-owned-active {
  background: linear-gradient(180deg, #e7e8eb, #d9dbe0);
  border-color: rgba(44, 36, 30, 0.24);
  color: #3f3a34;
  box-shadow: 0 6px 12px rgba(22, 18, 14, 0.08);
}

.account-plan-actions .primary-button.is-owned-active:disabled {
  opacity: 1;
  cursor: default;
  filter: none;
}

.account-plan-actions--single {
  grid-template-columns: 1fr;
}

.primary-button,
.ghost-button {
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 46px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 140ms ease, filter 120ms ease;
}

.primary-button {
  background: linear-gradient(160deg, #12a090, #0f8b7d);
  color: #fff;
  border-color: #0f8b7d;
  box-shadow: 0 10px 18px rgba(15, 139, 125, 0.22);
}

.ghost-button {
  background: linear-gradient(180deg, #fffefb, #f8f5f0);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.99);
}

.primary-button:active,
.ghost-button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.primary-button.is-loading,
.ghost-button.is-loading {
  cursor: progress;
}

.account-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 14, 0.45);
  display: grid;
  place-items: center;
  padding: 14px;
  z-index: 3000;
}

.account-modal[hidden] {
  display: none !important;
}

.account-modal-card {
  width: min(560px, 100%);
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.tecad-global-wait {
  --tecad-wait-accent: #0f8b7d;
  --tecad-wait-border: rgba(15, 139, 125, 0.34);
  --tecad-wait-bg: rgba(255, 255, 255, 0.96);
  --tecad-wait-shadow: rgba(15, 139, 125, 0.14);
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--tecad-wait-border);
  background: var(--tecad-wait-bg);
  color: var(--tecad-wait-accent);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 24px var(--tecad-wait-shadow);
}

.tecad-global-wait[hidden] {
  display: none !important;
}

.tecad-global-wait__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(31, 95, 86, 0.2);
  border-top-color: var(--tecad-wait-accent);
  animation: tecad-global-spin 0.7s linear infinite;
}

.tecad-global-wait__text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.tecad-global-wait__text::before {
  content: attr(data-icon);
  font-size: 14px;
  line-height: 1;
}

.tecad-global-wait[data-wait-type="save"] {
  --tecad-wait-accent: #0d7f67;
  --tecad-wait-border: rgba(13, 127, 103, 0.38);
  --tecad-wait-bg: rgba(236, 252, 246, 0.98);
  --tecad-wait-shadow: rgba(13, 127, 103, 0.2);
}

.tecad-global-wait[data-wait-type="load"] {
  --tecad-wait-accent: #2a6392;
  --tecad-wait-border: rgba(42, 99, 146, 0.35);
  --tecad-wait-bg: rgba(239, 247, 255, 0.98);
  --tecad-wait-shadow: rgba(42, 99, 146, 0.18);
}

.tecad-global-wait[data-wait-type="auth"] {
  --tecad-wait-accent: #6f4ab0;
  --tecad-wait-border: rgba(111, 74, 176, 0.35);
  --tecad-wait-bg: rgba(246, 240, 255, 0.98);
  --tecad-wait-shadow: rgba(111, 74, 176, 0.18);
}

.tecad-global-wait[data-wait-type="billing"] {
  --tecad-wait-accent: #9c6115;
  --tecad-wait-border: rgba(156, 97, 21, 0.35);
  --tecad-wait-bg: rgba(255, 248, 236, 0.98);
  --tecad-wait-shadow: rgba(156, 97, 21, 0.16);
}

.tecad-global-wait[data-wait-type="delete"] {
  --tecad-wait-accent: #a43d3d;
  --tecad-wait-border: rgba(164, 61, 61, 0.38);
  --tecad-wait-bg: rgba(255, 241, 241, 0.98);
  --tecad-wait-shadow: rgba(164, 61, 61, 0.18);
}

.tecad-global-wait[data-wait-type="export"] {
  --tecad-wait-accent: #356b31;
  --tecad-wait-border: rgba(53, 107, 49, 0.34);
  --tecad-wait-bg: rgba(242, 252, 239, 0.98);
  --tecad-wait-shadow: rgba(53, 107, 49, 0.16);
}

/* Premium visual polish for account panel */
.account-shell {
  max-width: 1360px;
  padding: 24px;
  gap: 20px;
}

.account-hero,
.account-card {
  border-color: rgba(66, 58, 48, 0.1);
  border-radius: 26px;
  box-shadow:
    0 24px 54px rgba(26, 20, 14, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.account-hero {
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(111, 209, 192, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(58, 109, 190, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 246, 241, 0.95));
}

.account-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 246, 241, 0.94));
}

.account-grid {
  gap: 16px;
}

.account-card h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.account-card h3 {
  font-size: 17px;
}

.account-metric {
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(77, 67, 54, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 236, 0.9));
  box-shadow:
    0 12px 24px rgba(34, 24, 15, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.account-subscription-card {
  border: 1px solid rgba(78, 67, 54, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 238, 0.92));
  box-shadow:
    0 16px 28px rgba(31, 24, 18, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
}

.account-subscription-title {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.account-subscription-price {
  font-size: 14px;
  color: #5d564e;
}

.account-subscription-meta {
  gap: 10px 14px;
}

.account-subscription-meta p {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244, 239, 231, 0.72);
}

.account-plan-card {
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 244, 239, 0.95));
  box-shadow:
    0 24px 48px rgba(28, 21, 14, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-plan-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 56px rgba(28, 21, 14, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.account-plan-card h3 {
  font-size: 38px;
  line-height: 0.95;
}

.account-plan-card strong {
  font-size: 50px;
}

.account-plan-card--free {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 239, 233, 0.94));
}

.account-plan-card--pro {
  border-color: rgba(41, 98, 197, 0.24);
  background:
    radial-gradient(circle at top left, rgba(89, 158, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.99), rgba(243, 248, 255, 0.95));
  box-shadow:
    0 28px 52px rgba(44, 98, 194, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.account-plan-card--addon {
  border-color: rgba(15, 139, 125, 0.18);
  background:
    radial-gradient(circle at top left, rgba(111, 209, 192, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(252, 255, 254, 0.99), rgba(242, 249, 247, 0.95));
}

.account-plan-card.is-active {
  border-color: rgba(95, 104, 116, 0.26);
  box-shadow:
    0 24px 42px rgba(51, 61, 71, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.account-plan-actions {
  gap: 12px;
}

.account-plan-actions .primary-button,
.account-plan-actions .ghost-button,
.account-billing .account-actions-inline .primary-button,
.account-billing .account-actions-inline .ghost-button {
  border-radius: 18px;
  min-height: 56px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.primary-button {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: rgba(234, 88, 12, 0.9);
  box-shadow: 0 16px 28px rgba(234, 88, 12, 0.22);
}

.ghost-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 234, 0.92));
  box-shadow: 0 10px 20px rgba(25, 19, 15, 0.05);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.account-plan-actions .primary-button.is-owned-active {
  background: linear-gradient(180deg, #e9eaed, #d6d9de);
  border-color: rgba(70, 73, 79, 0.18);
  color: #42403b;
  box-shadow: 0 10px 20px rgba(27, 24, 20, 0.08);
}

.account-billing-badge {
  border-radius: 999px;
  padding: 5px 12px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

@media (max-width: 1100px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-billing {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    padding: 12px;
  }

  .account-hero-logo {
    width: min(280px, 100%);
  }

  .account-actions-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-billing .account-row {
    flex-direction: column;
    align-items: stretch;
  }

  .account-billing .account-row-tight {
    justify-content: flex-start;
  }

  .account-billing-grid {
    grid-template-columns: 1fr;
  }

  .account-subscription-meta {
    grid-template-columns: 1fr;
  }

  .account-subscription-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-metric {
    min-height: 64px;
  }

  .account-metric strong,
  .account-metric--plan strong,
  .account-metric--status strong,
  .account-metric--renewal strong {
    font-size: 16px;
  }

  .account-billing .account-actions-inline {
    grid-template-columns: 1fr;
  }

  .account-plan-grid,
  .account-plan-grid--4 {
    grid-template-columns: 1fr;
  }

  .account-plan-card h3 {
    font-size: 34px;
  }

  .account-plan-card strong {
    font-size: 38px;
  }

  .account-plan-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-04 cleaner account panel override */
:root {
  --bg: #f3f4f6;
  --surface-soft: #fbfaf7;
  --accent-2: #b88746;
  --shadow-lg: 0 14px 28px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body {
  background:
    radial-gradient(1000px 420px at 8% -10%, rgba(249, 115, 22, 0.06), transparent 58%),
    radial-gradient(960px 380px at 95% -15%, rgba(184, 135, 70, 0.06), transparent 52%),
    var(--bg);
}

.account-hero,
.account-card,
.account-subscription-card,
.account-plan-card,
.account-metric {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.account-metric {
  background: #fbfaf7;
}

.account-mode-badge--live,
.account-billing-badge--paid,
.account-status-chip--active {
  color: #166534;
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.22);
}

.account-mode-badge--dev,
.account-billing-badge--free {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.22);
}

.account-plan-card--free {
  background: #fbfaf7;
}

.account-plan-card--pro {
  border-color: rgba(184, 135, 70, 0.28);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 247, 241, 0.94));
  box-shadow: 0 10px 22px rgba(184, 135, 70, 0.08);
}

.account-plan-card--pro strong,
.account-plan-card--addon strong {
  color: #8b6f47;
}

.account-plan-card--addon {
  border-color: rgba(184, 135, 70, 0.2);
  background: #ffffff;
}

.account-plan-card--addon.is-pro-required {
  opacity: 0.72;
  border-style: dashed;
}

.primary-button,
.account-plan-actions .primary-button {
  background: #f97316;
  border-color: #f97316;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.14);
}

.primary-button:hover,
.account-plan-actions .primary-button:hover {
  background: #ea580c;
  border-color: #ea580c;
}

.ghost-button {
  background: #ffffff;
  box-shadow: none;
}
