/* ================================================================
   EKOMSPACE ADMIN SHELL — Design System
   All classes prefixed ek- to avoid Tailwind/Avo conflicts
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --ek-bg:        #fbfaf9;
  --ek-surface:   #ffffff;
  --ek-surface-2: #f5f4f3;
  --ek-line:      #e7e5e4;
  --ek-ink:       #0c0a09;
  --ek-ink-2:     #44403c;
  --ek-ink-3:     #78716c;
  --ek-ink-4:     #a8a29e;
  --ek-purple:    #5b3df5;
  --ek-purple-bg: #efeafe;
  --ek-purple-dk: #3b22c2;
  --ek-r:         8px;
  --ek-font:      "Inter", ui-sans-serif, system-ui, sans-serif;
  --ek-mono:      "Geist Mono", "SF Mono", ui-monospace, monospace;
  --ek-shadow:    0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.07);
}

/* ================================================================
   TOPBAR
   ================================================================ */
.ek-topbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 10020;
  display: flex !important;
  align-items: center;
  background: var(--ek-surface) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  font-family: var(--ek-font);
}

/* Keep divider only under center/right area (not under left store switcher) */
.ek-topbar::after {
  content: "";
  position: absolute;
  left: 256px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ek-line);
}

/* Left: store picker slot — 256px, matches sidebar width */
.ek-topbar-left {
  width: 256px;
  flex: none;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--ek-line);
}

/* Center: search — fills remaining space */
.ek-topbar-center {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Keep search compact like admin_new_design instead of full-width */
.ek-topbar-center > * {
  width: 100%;
  max-width: 360px;
  flex: none;
}

/* Right: user */
.ek-topbar-right {
  flex: none;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ek-header-buy-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ek-purple);
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .12s;
  white-space: nowrap;
}

.ek-header-buy-credits:hover {
  background: #4d31df;
}

.ek-header-buy-credits svg {
  flex: none;
}

.ek-header-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ek-purple-bg);
  color: #4b2fc8;
  border: 1px solid #dccffd;
  text-decoration: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .12s, border-color .12s;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ek-header-credits:hover {
  background: #e4dcff;
  border-color: var(--ek-purple);
}

.ek-header-credits svg {
  color: var(--ek-purple);
  flex: none;
}

/* ── AI Credits Overlay Checkout ─────────────────────────────────── */
.ek-cc-hide {
  display: none !important;
}

.ek-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: #f5f5f6;
  overflow-y: auto;
}

.ek-cc-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ek-line);
  border-radius: 999px;
  background: #f2f2f2;
  color: var(--ek-ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}

.ek-cc-close:hover {
  background: #fff;
  color: var(--ek-ink);
  border-color: #d6d3d1;
}

.ek-cc-close svg {
  width: 16px;
  height: 16px;
}

.ek-cc-pack-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 56px auto 40px;
  padding: 0 24px;
}

.ek-cc-title {
  margin: 0 0 4px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #111827;
  font-weight: 600;
}

.ek-cc-title--center,
.ek-cc-subtitle {
  text-align: center;
}

.ek-cc-subtitle {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 14px;
}

.ek-cc-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ek-cc-pack-card {
  position: relative;
  border: 1px solid #d8d8da;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  text-align: left;
  transition: border-color .12s, box-shadow .12s, transform .12s;
  cursor: pointer;
}

.ek-cc-pack-card:hover {
  border-color: #6f56f7;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
  transform: translateY(-1px);
}

.ek-cc-pack-card.is-best {
  border-color: #6f56f7;
  box-shadow: 0 0 0 3px #ece8ff;
}

.ek-cc-pack-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: #6354f5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ek-cc-pack-credits {
  color: #111827;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.ek-cc-pack-credits small {
  margin-left: 5px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.ek-cc-pack-price {
  margin-top: 4px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.ek-cc-pack-bonus {
  margin-top: 5px;
  color: #1f9d55;
  font-size: 13px;
  font-weight: 600;
  min-height: 16px;
}

.ek-cc-pack-bonus--empty {
  color: #9ca3af;
  font-weight: 400;
}

.ek-cc-pack-buy {
  margin-top: 12px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6a4ff6 0%, #5c45f4 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ek-cc-checkout-wrap {
  width: 100%;
  max-width: 520px;
  margin: 78px auto 38px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ek-cc-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10061;
  pointer-events: none;
}

.ek-cc-loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid #e5e7eb;
  border-top-color: #6a4ff6;
  animation: ek-cc-spin .8s linear infinite;
}

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

.ek-cc-title--checkout {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.ek-cc-card {
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .04);
}

.ek-cc-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.ek-cc-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ek-cc-order-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ek-cc-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ece8ff;
  color: #5b3df5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ek-cc-icon-box svg {
  width: 20px;
  height: 20px;
}

.ek-cc-order-name {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.ek-cc-order-amount {
  color: #111827;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.ek-cc-bump {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eeebff;
  border: 1px solid #b8a9ff;
  border-radius: 10px;
  padding: 12px;
}

.ek-cc-bump input {
  margin-top: 3px;
}

.ek-cc-bump-title {
  color: #4b38cc;
  font-size: 13px;
  font-weight: 600;
}

.ek-cc-bump-sub {
  margin-top: 2px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.ek-cc-divider {
  margin: 12px 0;
  border-top: 1px solid #ececec;
}

.ek-cc-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.ek-cc-total-amount {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ek-cc-pm {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--ek-line);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  margin-bottom: 8px;
  background: #fff;
  transition: border-color .12s, background .12s;
}

.ek-cc-pm input {
  margin: 0;
  accent-color: #5b3df5;
}

.ek-cc-pm.is-selected {
  border-color: #6a4ff6;
  background: #f4f2ff;
}

.ek-cc-pm-brand,
.ek-cc-pm-plus {
  min-width: 28px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ek-cc-pm-label {
  color: #374151;
  font-size: 13px;
}

.ek-cc-card-form {
  margin-top: 8px;
}

.ek-cc-card-form-label {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 6px;
}

.ek-cc-card-element {
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.ek-cc-card-error,
.ek-cc-error {
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  padding: 9px 12px;
  font-size: 12px;
}

.ek-cc-card-error {
  margin-top: 6px;
}

.ek-cc-pay-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #6a4ff6 0%, #5c45f4 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ek-cc-pay-btn:disabled,
.ek-cc-pay-btn.is-loading {
  opacity: .75;
  cursor: not-allowed;
}

.ek-cc-trust {
  margin-top: 4px;
  color: #6b7280;
  font-size: 11.5px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ek-cc-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ek-cc-trust svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.ek-cc-success-icon {
  margin: 10px auto 2px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
  background: #dcfce7;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ek-cc-success-icon svg {
  width: 34px;
  height: 34px;
}

.ek-cc-success-sub {
  margin: 0 0 8px;
  color: #4b5563;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.ek-cc-success-sub b {
  color: #166534;
}

.ek-cc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ek-cc-card-top h3 {
  margin: 0;
}

.ek-cc-card-edit {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ek-purple);
  cursor: pointer;
}

.ek-cc-card-edit:hover {
  text-decoration: underline;
}

.ek-cc-order-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}

.ek-cc-order-sub:empty {
  display: none;
}

.ek-cc-promo-block {
  margin-top: 12px;
}

.ek-cc-promo-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ek-cc-promo-input {
  flex: 1;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  font-size: 13px;
  color: #111827;
}

.ek-cc-promo-apply {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ek-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ek-cc-promo-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 500;
}

.ek-cc-checkout-wrap--subscription .ek-cc-order-amount {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ek-cc-checkout-wrap--subscription .ek-cc-total-amount {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .ek-cc-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ek-cc-pack-wrap,
  .ek-cc-checkout-wrap {
    margin-top: 64px;
    padding: 0 16px;
  }

  .ek-cc-title {
    font-size: 32px;
  }

  .ek-cc-pack-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Account Tabs + AI Credits Page ─────────────────────────────── */
.ek-account-shell {
  max-width: none;
  margin: 0;
  padding: 0;
}

.ek-account-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #111827;
  font-weight: 600;
}

.ek-acct-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ek-line);
  padding-top: 24px;
  margin: 0 0 8px;
}

.ek-acct-tabs a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  margin-bottom: -1px;
  text-decoration: none;
  color: #57534e;
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color .12s, border-color .12s;
}

.ek-acct-tabs a:hover {
  color: #111827;
}

.ek-acct-tabs a.active {
  color: #111827;
  border-bottom-color: var(--ek-purple);
  font-weight: 600;
}

.ek-sub-wrap {
  max-width: 780px;
  margin: 0;
  padding: 0 0 18px;
  margin-top: 0;
}

.ek-subscription-page-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ek-sub-wrap--wide {
  max-width: 1120px;
}

/* No subscription empty state */
.ek-sub-empty {
  padding: 32px 24px 36px;
  text-align: center;
}

.ek-sub-empty-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.ek-sub-empty-desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: #78716c;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.ek-sub-choose-plan-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ek-purple);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .12s;
}

.ek-sub-choose-plan-btn:hover {
  background: var(--ek-purple-dk);
}

/* Full-screen plan picker overlay (admin_new_design account.html) */
.ek-pp-hidden {
  display: none !important;
}

.ek-pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: #fafafa;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ek-pp-fade .18s ease-out;
}

@keyframes ek-pp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ek-pp-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #78716c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
  z-index: 1;
}

.ek-pp-close:hover {
  color: #111827;
  border-color: #a8a29e;
}

.ek-pp-close svg {
  width: 16px;
  height: 16px;
}

.ek-pp-picker-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 48px auto 40px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ek-pp-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #111827;
  text-align: center;
}

.ek-pp-title--left {
  text-align: left;
}

.ek-pp-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #78716c;
  text-align: center;
}

.ek-pp-subtitle--left {
  text-align: left;
  margin-bottom: 20px;
}

.ek-pp-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f5f4f3;
  border-radius: 8px;
  margin-bottom: 24px;
}

.ek-pp-period-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: #78716c;
  letter-spacing: -0.005em;
  transition: background .12s, color .12s, box-shadow .12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ek-pp-period-btn.active {
  background: #fff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 20, 30, .06);
}

.ek-pp-save-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ek-pp-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 900px) {
  .ek-pp-plans-grid {
    grid-template-columns: 1fr;
  }
}

.ek-pp-plan {
  position: relative;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}

.ek-pp-plan:hover {
  border-color: var(--ek-purple);
  box-shadow: 0 4px 12px rgba(20, 20, 30, .08);
  transform: translateY(-1px);
}

.ek-pp-plan-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ek-pp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
}

.ek-pp-amount {
  font-size: 36px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ek-pp-per {
  font-size: 13px;
  color: #78716c;
}

.ek-pp-meta {
  font-size: 12px;
  color: #78716c;
  line-height: 1.55;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.ek-pp-meta .ek-pp-save {
  color: #15803d;
  font-weight: 600;
}

.ek-pp-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #111827;
  letter-spacing: -0.005em;
}

.ek-pp-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ek-pp-features svg {
  width: 14px;
  height: 14px;
  color: #16a34a;
  flex: none;
}

.ek-pp-cta {
  appearance: none;
  margin-top: 16px;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ek-purple);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .12s;
}

.ek-pp-cta:hover {
  background: var(--ek-purple-dk);
}

.ek-pp-payment-wrap {
  width: 100%;
  max-width: 520px;
  margin: 80px auto 40px;
  padding: 0 24px;
}

.ek-pp-payment-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ek-pp-checkout-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 30, .04);
}

.ek-pp-checkout-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #111827;
}

.ek-pp-checkout-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ek-pp-edit-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ek-purple);
  cursor: pointer;
}

.ek-pp-edit-link:hover {
  text-decoration: underline;
}

.ek-pp-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.ek-pp-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ek-pp-summary-row--total {
  padding-top: 10px;
  border-top: 1px solid #f5f4f3;
}

.ek-pp-summary-row--promo {
  color: #16a34a;
}

.ek-pp-summary-label {
  color: #78716c;
}

.ek-pp-summary-value {
  font-weight: 500;
  color: #111827;
}

.ek-pp-summary-detail {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #a8a29e;
}

.ek-pp-summary-amount {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.ek-pp-promo-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ek-pp-promo-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
}

.ek-pp-promo-apply {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ek-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ek-pp-field-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: #78716c;
}

.ek-pp-field-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  font-size: 15px;
  color: #111827;
  margin-bottom: 14px;
}

.ek-pp-stripe-card {
  padding: 12px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  min-height: 44px;
}

.ek-pp-stripe-errors {
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
}

.ek-pp-payment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ek-pp-back-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57534e;
}

.ek-pp-submit-btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ek-purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ek-pp-submit-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
}

.ek-pp-spinner {
  width: 20px;
  height: 20px;
  animation: ek-pp-spin 1s linear infinite;
}

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

.ek-sub-card {
  border-radius: 12px;
}

.ek-sub-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eeecea;
}

.ek-account-card .ek-sub-cardhead {
  padding: 16px 22px;
}

.ek-sub-cardhead h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
}

.ek-sub-card-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #292524;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: inherit;
  cursor: pointer;
}

.ek-sub-plan-current {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.ek-sub-pn-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ek-sub-pn-name {
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
}

.ek-sub-pn-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
}

.ek-sub-pn-amount {
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.03em;
}

.ek-sub-pn-per {
  font-size: 13px;
  color: #78716c;
  margin-left: 4px;
}

.ek-sub-pn-bill {
  margin-top: 6px;
  font-size: 12px;
  color: #78716c;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.ek-sub-pn-switch {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 8px;
  align-self: flex-start;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ek-purple);
  cursor: pointer;
  text-align: left;
}

.ek-sub-pn-switch:hover {
  text-decoration: underline;
}

.ek-sub-pn-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #111827;
  letter-spacing: -0.005em;
}

.ek-sub-pn-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ek-sub-pn-features svg {
  width: 14px;
  height: 14px;
  color: #16a34a;
  flex: none;
}

.ek-sub-pn-right {
  background: #f5f4f3;
  border: 1px solid #eeecea;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
  min-height: 208px;
  justify-self: start;
}

.ek-sub-pn-label {
  font-family: var(--ek-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #78716c;
}

.ek-sub-pn-val {
  font-size: 13px;
  color: #111827;
  letter-spacing: -0.005em;
  margin-top: 3px;
  font-weight: 500;
}

.ek-sub-pn-val-sub {
  font-size: 11.5px;
  color: #78716c;
  margin-top: 2px;
}

.ek-sub-pn-sep {
  height: 1px;
  background: #eeecea;
  margin: 2px 0;
}

.ek-sub-pn-spacer {
  flex: 1;
  min-height: 8px;
}

.ek-sub-pn-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  align-self: flex-end;
  text-align: right;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #dc2626;
  text-decoration: none;
  cursor: pointer;
}

.ek-sub-pn-link:hover {
  text-decoration: underline;
}

.ek-sub-pn-link--muted {
  color: #78716c;
  cursor: default;
}

@media (max-width: 760px) {
  .ek-sub-plan-current {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .ek-sub-pn-right {
    width: 100%;
    min-height: 0;
  }
}

.ek-account-card {
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 14px;
  overflow: hidden;
}

.ek-account-card--spaced {
  margin-bottom: 18px;
}

.ek-account-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid #eeecea;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
}

/* Delete confirmation modal (product page pattern) */
.ek-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 20, 30, .32);
  backdrop-filter: blur(2px);
}

.ek-confirm-modal.hide {
  display: none !important;
}

.ek-confirm-backdrop {
  position: absolute;
  inset: 0;
}

.ek-confirm-card {
  position: relative;
  width: unquote("min(92vw, 420px)");
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 12px;
  box-shadow: var(--ek-shadow);
}

.ek-confirm-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.ek-confirm-text {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #78716c;
}

.ek-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ek-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  color: #292524;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.ek-confirm-btn:hover {
  background: #f5f5f4;
}

.ek-confirm-btn--danger {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.ek-confirm-btn--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Team (account tab) */
.ek-team-wrap {
  max-width: none;
}

.ek-team-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ek-purple, #6c54ff);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
}

.ek-team-invite-btn:hover {
  filter: brightness(1.05);
}

.ek-team-invite-btn svg {
  width: 14px;
  height: 14px;
}

.ek-team-thead,
.ek-team-trow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.5fr) 0.8fr minmax(140px, auto);
  gap: 16px;
  align-items: center;
  padding: 0 22px;
}

.ek-team-thead {
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #fafafa;
  border-bottom: 1px solid var(--ek-line, #e7e5e4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78716c;
}

.ek-team-thead-actions {
  text-align: right;
}

.ek-team-trow {
  min-height: 68px;
  border-bottom: 1px solid #f5f5f4;
}

.ek-team-trow:last-child {
  border-bottom: 0;
}

.ek-team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ek-team-av {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.ek-team-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.01em;
}

.ek-team-meta {
  font-size: 11.5px;
  color: #78716c;
  margin-top: 1px;
}

.ek-team-email {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13.5px;
  color: #57534e;
}

.ek-team-email-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ek-team-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 500;
  color: #c2410c;
  white-space: nowrap;
}

.ek-team-pending-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
}

.ek-team-role {
  font-size: 13.5px;
  color: #44403c;
}

.ek-team-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.ek-team-resend-form {
  display: inline;
  margin: 0;
}

.ek-team-resend-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #78716c;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}

.ek-team-resend-btn:hover {
  background: #f5f5f4;
  border-color: #e7e5e4;
  color: #44403c;
}

.ek-team-resend-btn svg {
  width: 14px;
  height: 14px;
}

.ek-team-icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #78716c;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}

.ek-team-icon-btn:hover {
  background: #f5f5f4;
  border-color: #e7e5e4;
  color: #44403c;
}

.ek-team-icon-btn--remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.ek-team-icon-btn svg {
  width: 16px;
  height: 16px;
}

.ek-team-limit-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.ek-team-limit-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.ek-team-limit-banner-sub {
  margin-top: 4px !important;
  font-size: 12px;
  opacity: 0.9;
}

.ek-team-invite-card {
  width: unquote("min(480px, 100%)");
}

.ek-team-invite-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ek-team-field {
  margin-bottom: 12px;
}

.ek-team-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #44403c;
}

.ek-team-invite-card .ek-team-input,
.ek-team-invite-card input.ek-cc-promo-input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d6d3d1;
  border-radius: 999px !important;
  background: #fff;
  background-image: none !important;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.ek-team-invite-card .ek-team-input:focus,
.ek-team-invite-card input.ek-cc-promo-input:focus {
  outline: none;
  border-color: var(--ek-purple, #6c54ff);
  box-shadow: 0 0 0 3px rgba(108, 84, 255, 0.12);
}

.ek-team-role-box {
  padding: 12px 14px;
  border: 1px solid #e7e5e4;
  border-radius: 9px;
  background: #fafaf9;
}

.ek-team-role-box-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.ek-team-role-box-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #78716c;
}

/* Subscription cancel flow modal (same dim pattern as product delete confirm) */
.ek-cp-hidden {
  display: none !important;
}

.ek-cp-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(20, 20, 30, .32);
  backdrop-filter: blur(2px);
}

.ek-cp-backdrop {
  position: absolute;
  inset: 0;
}

.ek-cp-card {
  position: relative;
  width: unquote("min(92vw, 560px)");
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ek-cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid #ece7e2;
}

.ek-cp-title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
  font-family: var(--ek-sans);
  color: #111827;
  font-weight: 600;
}

.ek-cp-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ek-cp-close svg {
  width: 16px;
  height: 16px;
}

.ek-cp-body {
  padding: 16px 22px 14px;
}

.ek-cp-lead {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: #111827;
  font-family: var(--ek-sans);
}

.ek-cp-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #78716c;
  line-height: 1.5;
}

.ek-cp-danger-list {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px 12px 18px;
  color: #7f1d1d;
}

.ek-cp-danger-list ul {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
}

.ek-cp-danger-list li {
  margin-bottom: 6px;
}

.ek-cp-danger-list li:last-child {
  margin-bottom: 0;
}

.ek-cp-danger-list strong {
  font-weight: 600;
}

.ek-cp-foot {
  border-top: 1px solid #ece7e2;
  padding: 12px 22px;
  display: flex;
  justify-content: flex-end;
}

.ek-cp-foot-split {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ek-cp-checkrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #292524;
}

.ek-cp-checkrow input {
  width: 14px;
  height: 14px;
}

.ek-cp-actions {
  display: flex;
  gap: 8px;
}

.ek-cp-btn {
  height: 32px;
  border-radius: 9px;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #292524;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ek-cp-btn-primary {
  background: var(--ek-purple);
  border-color: var(--ek-purple);
  color: #fff;
}

.ek-cp-btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ek-cp-btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.ek-cp-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #57534e;
}

.ek-cp-select {
  width: 100%;
  height: 44px;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  padding: 0 12px;
  outline: none;
}

.ek-cp-select:focus {
  border-color: var(--ek-purple);
  box-shadow: 0 0 0 2px rgba(99, 91, 255, .18);
}

.ek-cp-textarea {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  min-height: 120px;
}

.ek-cp-textarea:focus {
  border-color: var(--ek-purple);
  box-shadow: 0 0 0 2px rgba(99, 91, 255, .18);
}

.ek-cp-danger-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 14px 16px;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.5;
}

.ek-cp-danger-box svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #dc2626;
  margin-top: 2px;
}

.ek-cp-danger-box strong {
  display: block;
  margin-bottom: 3px;
}

@media (max-width: 640px) {
  .ek-cp-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .ek-cp-card {
    width: 100%;
  }

  .ek-cp-title {
    font-size: 16px;
  }

  .ek-cp-lead {
    font-size: 14px;
  }

  .ek-cp-foot,
  .ek-cp-foot-split {
    flex-direction: column;
    align-items: stretch;
  }

  .ek-cp-actions {
    width: 100%;
  }

  .ek-cp-btn,
  .ek-cp-btn-danger,
  .ek-cp-btn-primary {
    flex: 1;
  }
}

/* AI credits — balance hero (admin_new_design/studio/account.html .credits-hero) */
.ek-credits-hero {
  background: linear-gradient(135deg, var(--ek-purple-bg) 0%, #fff 100%);
  border: 1px solid #dccffd;
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 18px;
}

.ek-credits-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b2fc8;
  margin-bottom: 6px;
}

.ek-credits-hero-amount {
  display: flex;
  align-items: center;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #111827;
}

.ek-credits-hero-amount svg {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--ek-purple);
  margin-right: 6px;
}

.ek-credits-hero-amount [data-ai-credits-target="balanceDisplay"] {
  font-variant-numeric: tabular-nums;
}

.ek-credits-hero-amount small {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #78716c;
  letter-spacing: -0.005em;
}

.ek-credits-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ek-credits-banner svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.ek-credits-banner div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ek-credits-banner b {
  font-size: 13px;
  font-weight: 600;
}

.ek-credits-banner span {
  font-size: 13px;
  line-height: 1.4;
}

.ek-credits-banner--on {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ek-credits-banner--off {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.ek-credits-banner--hidden {
  display: none;
}

.ek-credits-banner-btn {
  margin-left: auto;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
}

.ek-ar-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .36);
}

.ek-ar-modal--hidden {
  display: none;
}

.ek-ar-modal-card {
  width: unquote("min(640px, 100%)");
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 12px;
  box-shadow: var(--ek-shadow);
  overflow: hidden;
}

.ek-ar-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #ecebea;
}

.ek-ar-modal-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
  font-weight: 600;
}

.ek-ar-modal-close {
  border: 0;
  background: transparent;
  color: #78716c;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.ek-ar-modal-close:hover {
  background: #f5f5f5;
  color: #111827;
}

.ek-ar-modal-close svg {
  width: 16px;
  height: 16px;
}

.ek-ar-modal-body {
  padding: 14px 22px 12px;
}

.ek-ar-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ek-line);
  border-radius: 9px;
  background: #fafafa;
  margin-bottom: 16px;
}

.ek-ar-toggle-title {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.ek-ar-toggle-sub {
  font-size: 12px;
  color: #78716c;
  margin-top: 2px;
  line-height: 1.4;
}

.ek-ar-switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  flex: none;
}

.ek-ar-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.ek-ar-switch-ui {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d6d3d1;
  position: relative;
  transition: background .15s;
}

.ek-ar-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .15s;
}

.ek-ar-switch input:checked + .ek-ar-switch-ui {
  background: #6f56f7;
}

.ek-ar-switch input:checked + .ek-ar-switch-ui::after {
  transform: translateX(16px);
}

.ek-ar-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ek-ar-fields.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.ek-ar-field-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: center;
  gap: 14px;
}

.ek-ar-field-row label {
  font-size: 13px;
  color: #111827;
  letter-spacing: -0.005em;
  font-weight: 500;
}

.ek-ar-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 36px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--ek-line);
  border-radius: 8px;
  background-color: #fff;
  color: #111827;
  font-family: var(--ek-font);
  font-size: 13px;
  letter-spacing: -0.005em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7' fill='none'><path d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}

.ek-ar-input:hover {
  border-color: #a8a29e;
}

.ek-ar-input:focus {
  border-color: var(--ek-purple);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, .12);
  outline: none;
}

.ek-ar-amount-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #ecebea;
  font-size: 13px;
  color: #111827;
  letter-spacing: -0.005em;
}

.ek-ar-amount-line b {
  font-family: var(--ek-font);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.ek-ar-error {
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.4;
  padding: 9px 10px;
}

.ek-ar-hidden {
  display: none;
}

.ek-ar-modal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #ecebea;
  padding: 14px 22px;
}

.ek-ar-btn {
  height: 32px;
  border-radius: 9px;
  border: 1px solid #dfddda;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0 14px;
  cursor: pointer;
}

.ek-ar-btn-primary {
  border-color: #6f56f7;
  background: #6f56f7;
  color: #fff;
  font-weight: 600;
}

.ek-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.ek-price-card {
  appearance: none;
  position: relative;
  width: 100%;
  border: 1px solid #dedad7;
  border-radius: 13px;
  background: #fff;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}

.ek-price-card:hover {
  border-color: #6f56f7;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
  transform: translateY(-1px);
}

.ek-price-card:focus-visible {
  outline: none;
  border-color: #6f56f7;
  box-shadow: 0 0 0 3px #eee9ff;
}

.ek-price-card.is-best {
  border-color: #6f56f7;
  box-shadow: 0 0 0 2px #eee9ff;
}

.ek-price-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #6354f5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ek-price-credits {
  color: #111827;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.ek-price-credits small {
  margin-left: 5px;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.ek-price-value {
  margin-top: 4px;
  color: #111827;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.ek-price-bonus {
  margin-top: 5px;
  min-height: 18px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
}

.ek-price-bonus--empty {
  color: #a8a29e;
  font-weight: 400;
}

.ek-price-buy {
  margin-top: 12px;
  width: 100%;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(90deg, #6a4ff6 0%, #5c45f4 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ek-hist-head,
.ek-hist-row {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 16px;
  padding: 14px 18px;
  align-items: center;
}

.ek-hist-head {
  background: #fafafa;
  border-bottom: 1px solid #eeecea;
  color: #78716c;
  font-family: var(--ek-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ek-hist-head .right,
.ek-hist-row .right {
  text-align: right;
  justify-self: end;
}

.ek-hist-row {
  border-bottom: 1px solid #eeecea;
}

.ek-hist-row:last-of-type {
  border-bottom: 0;
}

.ek-hist-date {
  font-size: 13px;
  color: #57534e;
}

.ek-hist-desc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ek-hist-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  color: #57534e;
  flex: none;
}

.ek-hist-ico svg {
  width: 14px;
  height: 14px;
}

.ek-hist-label {
  font-size: 13px;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ek-hist-amount {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
}

.ek-hist-amount.is-pos {
  color: #16a34a;
}

.ek-hist-amount.is-neg {
  color: #374151;
}

.ek-hist-empty {
  padding: 20px 18px;
  color: #78716c;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .ek-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ek-account-shell {
    padding: 0;
  }

  .ek-account-title {
    font-size: 26px;
  }

  .ek-credits-hero-amount {
    font-size: 32px;
  }

  .ek-credits-banner {
    flex-wrap: wrap;
  }

  .ek-credits-banner-btn {
    margin-left: 0;
  }

  .ek-price-grid {
    grid-template-columns: 1fr;
  }

  .ek-hist-head,
  .ek-hist-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ek-hist-head .right,
  .ek-hist-row .right,
  .ek-hist-amount {
    justify-self: start;
    text-align: left;
  }

  .ek-ar-modal {
    padding: 14px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .ek-ar-modal-card {
    width: 100%;
    margin: 24px 0;
  }

  .ek-ar-modal-head h2 {
    font-size: 20px;
  }

  .ek-ar-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ek-ar-input {
    width: 100%;
  }

  .ek-team-thead {
    display: none;
  }

  .ek-team-trow {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "member actions"
      "email email"
      "role role";
    gap: 8px 12px;
    padding: 14px 18px;
  }

  .ek-team-member {
    grid-area: member;
  }

  .ek-team-email {
    grid-area: email;
    white-space: normal;
  }

  .ek-team-role {
    grid-area: role;
  }

  .ek-team-actions {
    grid-area: actions;
  }

  .ek-team-invite-row {
    grid-template-columns: 1fr;
  }
}

/* ── Store Picker ───────────────────────────────────────────────── */
.ek-store-picker {
  position: relative;
  width: 100%;
}
.ek-store-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 8px;
  background: var(--ek-surface-2);
  border: 1px solid var(--ek-line);
  border-radius: var(--ek-r);
  cursor: pointer;
  font-family: var(--ek-font);
  text-align: left;
  transition: background .12s, border-color .12s;
}
.ek-store-btn:hover {
  background: var(--ek-surface);
  border-color: #ddd9d7;
}
.ek-store-picker:not([data-controller]) .ek-store-btn {
  cursor: default;
}
.ek-store-picker:not([data-controller]) .ek-store-chev {
  opacity: .55;
}
.ek-store-favicon {
  width: 26px; height: 26px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}
.ek-store-badge {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #5b3df5, #7c5cf7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex: none;
}
.ek-store-info { flex: 1; min-width: 0; }
.ek-store-name {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ek-ink);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ek-store-domain {
  font-size: 10.5px; color: var(--ek-ink-3);
  font-family: var(--ek-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ek-store-chev { color: var(--ek-ink-3); flex: none; }

.ek-store-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: var(--ek-surface);
  border: 1px solid var(--ek-line);
  border-radius: var(--ek-r);
  box-shadow: var(--ek-shadow);
  padding: 6px;
  z-index: 10030;
}
.ek-store-menu.hidden { display: none !important; }
.ek-store-menu-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ek-ink-4);
  padding: 4px 8px 6px;
}
.ek-store-menu-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .10s;
  cursor: pointer;
}
.ek-store-menu-row:hover { background: var(--ek-surface-2); }
.ek-store-menu-row.ek-active { background: var(--ek-purple-bg); }
.ek-store-check { color: var(--ek-purple); flex: none; }
.ek-store-menu-sep {
  height: 1px;
  background: var(--ek-line);
  margin: 6px 0;
}
.ek-store-menu-row.ek-create-store .ek-store-name {
  color: var(--ek-purple);
}
.ek-store-badge.ek-store-badge-create {
  background: #fafafa;
  color: var(--ek-ink-3);
  border: 1px dashed var(--ek-line);
}

/* ── Search (override Avo GlobalSearchComponent) ────────────────── */
.ek-topbar-center .global-search {
  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;
  background: var(--ek-surface-2) !important;
  border: 1px solid var(--ek-line) !important;
  border-radius: var(--ek-r) !important;
  height: 34px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color .12s, background .12s, box-shadow .12s !important;
}
.ek-topbar-center .global-search:focus-within {
  background: var(--ek-surface) !important;
  border-color: var(--ek-purple) !important;
  box-shadow: 0 0 0 3px rgba(91,61,245,.12) !important;
}

/* Fallback safety when Avo changes internal classnames */
.ek-topbar-center [data-controller*="search"],
.ek-topbar-center form[action*="search"],
.ek-topbar-center .relative.flex {
  width: 100%;
  max-width: 360px;
}
/* Hide the Avo kbd button since we display it ourselves */
.ek-topbar-center .global-search [data-search-target="button"] {
  right: 8px !important;
  font-size: 10px !important;
  color: var(--ek-ink-3) !important;
  background: var(--ek-surface) !important;
  border-color: var(--ek-line) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
}
/* The autocomplete input injected by Stimulus */
.ek-topbar-center .global-search input {
  font-family: var(--ek-font) !important;
  font-size: 12.5px !important;
  color: var(--ek-ink) !important;
}
.ek-topbar-center .global-search input::placeholder {
  color: var(--ek-ink-3) !important;
}

/* Fallback search (when GlobalSearchComponent not available) */
.ek-search-fallback {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  width: 100%; height: 34px;
  background: var(--ek-surface-2);
  border: 1px solid transparent;
  border-radius: var(--ek-r);
  padding: 0 12px;
  cursor: text;
  transition: border-color .12s, background .12s;
}
.ek-search-fallback:focus-within {
  background: var(--ek-surface);
  border-color: var(--ek-purple);
  box-shadow: 0 0 0 3px rgba(91,61,245,.12);
}
.ek-search-fallback svg { color: var(--ek-ink-3); flex: none; }
.ek-search-fallback input {
  flex: 1; border: 0 !important; outline: 0 !important; background: transparent !important;
  font-size: 12.5px; color: var(--ek-ink); font-family: var(--ek-font);
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.ek-search-fallback input:focus,
.ek-search-fallback input:active,
.ek-search-fallback input:focus-visible {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ek-search-fallback input::placeholder { color: var(--ek-ink-3); }
.ek-search-fallback .ek-search-clear {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ek-ink-3);
  width: 20px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 999px;
  transition: background .12s, color .12s;
}
.ek-search-fallback .ek-search-clear svg {
  width: 12px;
  height: 12px;
  display: block;
}
.ek-search-fallback .ek-search-clear:hover {
  background: #e7e5e4;
  color: var(--ek-ink-2);
}
.ek-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--ek-surface);
  border: 1px solid var(--ek-line);
  border-radius: 12px;
  box-shadow: var(--ek-shadow);
  z-index: 135;
  overflow: hidden;
}
.ek-search-dropdown-status {
  font-size: 11px;
  color: var(--ek-ink-3);
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--ek-line);
}
.ek-search-dropdown-results {
  max-height: 360px;
  overflow: auto;
  padding: 8px;
}
.ek-search-group + .ek-search-group {
  margin-top: 10px;
}
.ek-search-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ek-ink-4);
  padding: 0 4px 6px;
}
.ek-search-group-items {
  display: grid;
  gap: 4px;
}
.ek-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .12s, transform .12s;
}
.ek-search-item:hover,
.ek-search-item.is-selected {
  background: var(--ek-purple-bg);
}
.ek-search-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.ek-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ek-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ek-search-item-subtitle,
.ek-search-item-meta {
  font-size: 11.5px;
  color: var(--ek-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ek-search-item-meta {
  flex: none;
  padding-left: 8px;
}
.ek-search-dropdown-status:empty {
  display: none;
}
.ek-search-fallback.is-focused .ek-kbd,
.ek-search-fallback:focus-within .ek-kbd,
.ek-search-fallback.has-value .ek-kbd {
  display: none;
}
.ek-search-fallback.has-value .ek-search-clear {
  display: inline-flex;
}
.ek-kbd {
  font-family: var(--ek-mono);
  font-size: 10px; color: var(--ek-ink-3);
  background: var(--ek-surface);
  border: 1px solid var(--ek-line);
  padding: 1px 5px; border-radius: 4px;
  flex: none;
}

/* ── User Dropdown ──────────────────────────────────────────────── */
.ek-user-wrap { position: relative; }
.ek-user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 0 5px 5px;
  background: transparent;
  border: 0;
  border-radius: var(--ek-r);
  cursor: pointer;
  font-family: var(--ek-font);
  font-size: 12.5px; color: var(--ek-ink); font-weight: 500;
  transition: background .12s;
}
.ek-user-btn:hover { background: transparent; }
.ek-user-btn svg { color: var(--ek-ink-3); }
.ek-user-name { letter-spacing: -0.01em; }
.ek-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ek-purple);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  font-family: var(--ek-font);
  flex: none;
}
.ek-avatar--lg { width: 36px; height: 36px; font-size: 14px; }

.ek-user-menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  width: 260px;
  background: var(--ek-surface);
  border: 1px solid var(--ek-line);
  border-radius: var(--ek-r);
  box-shadow: var(--ek-shadow);
  padding: 6px;
  z-index: 130;
}

.ek-user-menu.hidden { display: none !important; }
.ek-user-menu-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 10px;
}
.ek-user-menu-name { font-size: 13px; font-weight: 600; color: var(--ek-ink); }
.ek-user-menu-email { font-size: 11.5px; color: var(--ek-ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-sep { height: 1px; background: var(--ek-line); margin: 4px 0; }

.ek-menu-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  font-family: var(--ek-font); font-size: 12.5px; font-weight: 500;
  color: var(--ek-ink); text-decoration: none;
  cursor: pointer; text-align: left;
  transition: background .10s;
  box-shadow: none !important;
}
.ek-menu-row:hover { background: var(--ek-surface-2); }
.ek-menu-row svg { color: var(--ek-ink-3); flex: none; }
.ek-menu-row .ek-menu-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--ek-ink-3);
}
.ek-menu-row--ai svg { color: var(--ek-purple); }
.ek-menu-row--danger { color: #dc2626; }
.ek-menu-row--danger:hover { background: #fee2e2; }
.ek-menu-row--danger svg { color: #dc2626; }
.ek-menu-row-form { display: block; width: 100%; }

@media (max-width: 900px) {
  .ek-header-buy-credits,
  .ek-header-credits {
    display: none;
  }
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.ek-side-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--ek-surface);
  border-right: 1px solid var(--ek-line);
  font-family: var(--ek-font);
  overflow: hidden;
}

/* Scrollable nav body */
.ek-side-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--ek-line) transparent;
}

/* Nav group */
.ek-navgroup { margin-bottom: 8px; }
.ek-navlabel {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ek-ink-4);
  padding: 6px 10px 3px;
  user-select: none;
}
.ek-navlabel-action {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--ek-ink-3); text-decoration: none; text-transform: uppercase;
  padding: 2px 5px; border-radius: 4px;
  transition: color .15s, background .15s;
}
.ek-navlabel-action:hover { color: var(--ek-ink-2); background: var(--ek-surface-2); }

/* Nav item */
.ek-nav {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--ek-r);
  background: transparent;
  border: 0;
  color: var(--ek-ink-2);
  font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; font-family: var(--ek-font);
  text-align: left;
  transition: background .10s, color .10s;
}
.ek-nav-ico { color: var(--ek-ink-3); display: flex; flex: none; }
.ek-nav-grow { flex: 1; }
.ek-nav-badge {
  font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 999px;
  background: var(--ek-purple-bg); color: var(--ek-purple-dk);
}
.ek-nav:hover {
  background: var(--ek-surface-2);
}
.ek-nav:hover .ek-nav-ico { color: var(--ek-ink-2); }
/* active state — force override any Avo/Tailwind rules */
.ek-nav.active,
.ek-nav[aria-current="page"] {
  background: var(--ek-purple-bg) !important;
  border: 0 !important;
  color: var(--ek-purple-dk) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.ek-nav.active .ek-nav-ico,
.ek-nav[aria-current="page"] .ek-nav-ico { color: var(--ek-purple) !important; }

/* Sidebar footer */
.ek-side-footer {
  flex: none; padding: 8px 10px 12px;
  border-top: 0;
}
.ek-powered {
  padding: 8px 4px 4px;
  margin-top: 6px;
  border-top: 1px solid var(--ek-line);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ek-powered-label {
  font-size: 10.5px;
  color: var(--ek-ink-3);
  font-weight: 400;
}
.ek-powered img {
  height: 15px;
  width: auto;
  opacity: .82;
}

/* SVG icon helper */
.ek-ico {
  display: block; flex: none;
  fill: none; stroke: currentColor;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ================================================================
   OVERRIDE: cancel old custom.css sidebar gradient/border-left
   ================================================================ */
.avo-sidebar .ek-nav.active,
.avo-sidebar .ek-nav[aria-current="page"] {
  background: var(--ek-purple-bg) !important;
  border: 0 !important;
  border-left: 0 !important;
  color: var(--ek-purple-dk) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  background-image: none !important;
}
.avo-sidebar .ek-nav.active .ek-nav-ico,
.avo-sidebar .ek-nav[aria-current="page"] .ek-nav-ico {
  color: var(--ek-purple) !important;
}
.avo-sidebar .ek-nav:not(.active):not([aria-current="page"]):hover {
  background: var(--ek-surface-2) !important;
  background-image: none !important;
  border: 0 !important;
  border-left: 0 !important;
  color: var(--ek-ink-2) !important;
}

/* ================================================================
   OVERRIDE: reset button/form styles for ek-menu-row inside forms
   ================================================================ */
.ek-menu-row-form button,
.ek-menu-row-form button:hover,
.ek-menu-row-form button:focus,
.ek-menu-row-form button:active {
  all: unset;
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px;
  border-radius: 6px;
  font-family: var(--ek-font); font-size: 12.5px; font-weight: 500;
  cursor: pointer; text-align: left;
  box-sizing: border-box;
}
.ek-menu-row-form .ek-menu-row--danger { color: #dc2626; }
.ek-menu-row-form .ek-menu-row--danger:hover { background: #fee2e2; }
