/* Etod+ Subscription Banner — progress trial / expiry */
.etod-sub-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100070;
  padding: 10px 14px 12px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  pointer-events: none;
  animation: etodSubSlideDown 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.etod-sub-banner.etod-sub-hidden {
  display: none;
}
@keyframes etodSubSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.etod-sub-inner {
  max-width: 520px;
  margin: 0 auto;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 12px 14px 14px;
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.1),
    0 1px 3px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.etod-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.etod-sub-title-wrap {
  flex: 1;
  min-width: 0;
}
.etod-sub-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}
.etod-sub-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.4;
}

.etod-sub-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.etod-sub-btn {
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.etod-sub-btn:active { transform: scale(0.97); }
.etod-sub-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--etod-sub-a, #6366f1), var(--etod-sub-b, #4f46e5));
  box-shadow: 0 2px 10px var(--etod-sub-glow, rgba(99, 102, 241, 0.35));
}
.etod-sub-btn-ghost {
  background: transparent;
  color: #94a3b8;
  padding: 6px 8px;
  font-size: 1rem;
  line-height: 1;
}
.etod-sub-btn-ghost:hover { color: #64748b; }

/* Progress track */
.etod-sub-progress-wrap {
  position: relative;
}
.etod-sub-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}
.etod-sub-progress-labels strong {
  color: var(--etod-sub-a, #6366f1);
  font-size: 0.78rem;
}
.etod-sub-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}
.etod-sub-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--etod-sub-a, #6366f1), var(--etod-sub-b, #818cf8));
  width: 0%;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  box-shadow: 0 0 12px var(--etod-sub-glow, rgba(99, 102, 241, 0.4));
}
.etod-sub-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  animation: etodSubShimmer 2.2s ease-in-out infinite;
}
@keyframes etodSubShimmer {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Themes */
.etod-sub-theme-student {
  --etod-sub-a: #1e7c50;
  --etod-sub-b: #34d399;
  --etod-sub-glow: rgba(30, 124, 80, 0.35);
}
.etod-sub-theme-teacher {
  --etod-sub-a: #2563eb;
  --etod-sub-b: #38bdf8;
  --etod-sub-glow: rgba(37, 99, 235, 0.35);
}
.etod-sub-theme-manager {
  --etod-sub-a: #7c3aed;
  --etod-sub-b: #a78bfa;
  --etod-sub-glow: rgba(124, 58, 237, 0.35);
}

/* Warning (near expiry) */
.etod-sub-banner.etod-sub-warn .etod-sub-inner {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(165deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.97));
}
.etod-sub-banner.etod-sub-warn {
  --etod-sub-a: #d97706;
  --etod-sub-b: #fbbf24;
  --etod-sub-glow: rgba(217, 119, 6, 0.35);
}
.etod-sub-banner.etod-sub-warn .etod-sub-title { color: #92400e; }

/* Success flash (legacy activated) */
.etod-sub-banner.etod-sub-success .etod-sub-inner {
  border-color: rgba(34, 197, 94, 0.4);
}
.etod-sub-banner.etod-sub-success {
  --etod-sub-a: #16a34a;
  --etod-sub-b: #4ade80;
  --etod-sub-glow: rgba(22, 163, 74, 0.35);
}

/* Expired */
.etod-sub-banner.etod-sub-expired .etod-sub-inner {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(165deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.97));
}
.etod-sub-banner.etod-sub-expired {
  --etod-sub-a: #dc2626;
  --etod-sub-b: #f87171;
  --etod-sub-glow: rgba(220, 38, 38, 0.3);
}
.etod-sub-banner.etod-sub-expired .etod-sub-title { color: #991b1b; }

@media (max-width: 480px) {
  .etod-sub-banner { padding: 8px 10px 10px; }
  .etod-sub-inner { padding: 10px 12px 12px; border-radius: 14px; }
  .etod-sub-title { font-size: 0.78rem; }
  .etod-sub-btn-primary { padding: 6px 10px; font-size: 0.68rem; }
}

/* فضای بالای صفحه وقتی بنر باز است */
body {
  padding-top: var(--etod-sub-banner-h, 0px);
  transition: padding-top 0.35s ease;
}

/* Etod+ Plan Picker — انتخاب Pro / Pro Plus (ادغام‌شده) */
.etod-plan-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.etod-plan-picker-overlay.open { opacity: 1; visibility: visible; }
.etod-plan-picker {
  width: min(720px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.etod-plan-picker-overlay.open .etod-plan-picker { transform: translateY(0) scale(1); }
.etod-plan-picker-head {
  position: relative;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 55%, #7c3aed 100%);
  color: #fff;
}
.etod-plan-picker-head h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.etod-plan-picker-head p { margin: 0; font-size: 0.82rem; opacity: 0.92; line-height: 1.5; }
.etod-plan-picker-close {
  position: absolute; top: 14px; left: 14px; width: 34px; height: 34px;
  border: none; border-radius: 10px; background: rgba(255,255,255,0.18);
  color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.etod-plan-picker-body { padding: 20px 18px 22px; }
.etod-plan-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.etod-plan-card {
  position: relative; border: 2px solid #e2e8f0; border-radius: 18px;
  padding: 18px 16px 16px; background: #f8fafc;
}
.etod-plan-card.recommended {
  border-color: #6366f1;
  background: linear-gradient(165deg, #eef2ff 0%, #f8fafc 45%);
}
.etod-plan-card-badge {
  position: absolute; top: -10px; right: 14px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.etod-plan-card-icon { font-size: 1.6rem; margin-bottom: 6px; }
.etod-plan-card-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.etod-plan-card-tagline { font-size: 0.72rem; color: #64748b; margin: 0 0 12px; }
.etod-plan-card-price { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed #e2e8f0; }
.etod-plan-card-price .amount { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.etod-plan-card-price .vat-note { display: block; font-size: 0.65rem; color: #94a3b8; margin-top: 2px; }
.etod-plan-card-features { list-style: none; margin: 0 0 16px; padding: 0; }
.etod-plan-card-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.74rem; color: #334155; margin-bottom: 7px;
}
.etod-plan-card-features li::before {
  content: '✓'; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: #dcfce7; color: #16a34a; font-size: 0.62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.etod-plan-card.proplus .etod-plan-card-features li.plus-only::before { background: #ede9fe; color: #7c3aed; }
.etod-plan-card-btn {
  width: 100%; border: none; border-radius: 12px; padding: 11px 14px;
  font-size: 0.82rem; font-weight: 800; font-family: inherit; cursor: pointer;
}
.etod-plan-card.pro .etod-plan-card-btn { background: #fff; color: #2563eb; border: 2px solid #2563eb; }
.etod-plan-card.proplus .etod-plan-card-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff;
}
.etod-plan-picker-foot { text-align: center; margin-top: 14px; font-size: 0.72rem; color: #94a3b8; }
@media (max-width: 640px) {
  .etod-plan-picker-grid { grid-template-columns: 1fr; }
}

/* Expired lock — full-screen non-dismissible */
.etod-expired-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100200;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.etod-expired-lock-overlay.open {
  opacity: 1;
  visibility: visible;
}
html.etod-expired-locked body {
  overflow: hidden !important;
  pointer-events: none;
}
html.etod-expired-locked .etod-expired-lock-overlay,
html.etod-expired-locked .tbf-modal-overlay,
html.etod-expired-locked .tbf-modal-overlay--paywall,
html.etod-expired-locked .etod-tref-overlay,
html.etod-expired-locked .etod-tref-overlay--paywall,
html.etod-expired-locked .etod-tref-help-overlay,
html.etod-expired-locked .etod-ss-link-modal.open {
  pointer-events: auto;
}
html.etod-expired-locked .etod-expired-lock-overlay {
  pointer-events: auto;
}
.etod-expired-lock-modal {
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
}
.etod-expired-lock-head {
  text-align: center;
  padding: 24px 20px 12px;
  background: linear-gradient(165deg, #fef2f2, #fff);
  border-bottom: 1px solid #fecaca;
}
.etod-expired-lock-lock { font-size: 2rem; margin-bottom: 8px; }
.etod-expired-lock-head h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #991b1b;
}
.etod-expired-lock-head p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}
.etod-expired-lock-body { padding: 16px 18px 8px; }
.etod-expired-lock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.etod-expired-lock-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.etod-expired-lock-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.etod-expired-lock-card.recommended {
  border-color: #818cf8;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}
.etod-expired-lock-card.referral {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}
.etod-expired-lock-badge.referral-badge {
  background: #dcfce7;
  color: #15803d;
  left: auto;
  right: 10px;
}
.etod-expired-lock-mascot-wrap {
  margin: -16px -14px 8px;
  padding: 4px 6px 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  line-height: 0;
}
.etod-expired-lock-mascot {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
  background: #fff;
  filter: none;
}
.etod-expired-lock-price.free {
  color: #15803d;
}
.etod-expired-lock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.etod-expired-lock-icon { font-size: 1.6rem; margin-bottom: 6px; }
.etod-expired-lock-card h4 { margin: 0 0 4px; font-size: 0.95rem; }
.etod-expired-lock-tag { margin: 0 0 10px; font-size: 0.68rem; color: #64748b; }
.etod-expired-lock-price {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}
.etod-expired-lock-price small { font-size: 0.68rem; font-weight: 600; color: #64748b; }
.etod-expired-lock-feats {
  margin: 0 0 12px;
  padding: 0 16px 0 0;
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.6;
  flex: 1;
}
.etod-expired-lock-card .etod-expired-lock-btn[data-etod-expired-plan] {
  margin-top: auto;
}
.etod-expired-lock-btn {
  width: 100%;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.etod-expired-lock-btn.primary {
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.etod-expired-lock-btn.primary.referral {
  background: linear-gradient(135deg, #16a34a, #059669);
  margin-top: auto;
}
.etod-expired-lock-btn.ghost {
  border: 1.5px dashed #cbd5e1;
  background: transparent;
  color: #475569;
  margin-top: 6px;
  font-size: 0.72rem;
  padding: 8px 10px;
}
.etod-expired-lock-ref-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: #2563eb;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  cursor: pointer;
}
.etod-expired-lock-ref-status {
  margin: 0 0 10px;
  min-height: 36px;
}
.etod-expired-ref-mini-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  color: #64748b;
  margin-bottom: 4px;
}
.etod-expired-ref-mini-labels strong {
  color: #15803d;
  font-size: 0.68rem;
}
.etod-expired-ref-mini-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.etod-expired-ref-mini-bar div {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 99px;
  transition: width 0.3s;
}
.etod-expired-ref-count {
  font-size: 0.62rem;
  color: #475569;
  line-height: 1.5;
  text-align: center;
}
.etod-expired-ref-count.muted { color: #94a3b8; }
.etod-expired-ref-ready {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.etod-expired-ref-ready .etod-expired-lock-btn {
  font-size: 0.72rem;
  padding: 8px 10px;
}
.etod-expired-lock-foot {
  text-align: center;
  padding: 8px 16px 18px;
  font-size: 0.68rem;
  color: #94a3b8;
  margin: 0;
}
@media (max-width: 900px) {
  .etod-expired-lock-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .etod-expired-lock-grid { grid-template-columns: 1fr; }
}

/* Upgrade prompt — بالاتر از همه مودال‌های TBot (z-index 102000) */
.etod-sub-upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 102000;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
}
.etod-sub-upgrade-overlay.open {
  opacity: 1;
  visibility: visible;
}
.etod-sub-upgrade-modal {
  position: relative;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}
.etod-sub-upgrade-overlay.open .etod-sub-upgrade-modal {
  transform: translateY(0) scale(1);
}
.etod-sub-upgrade-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.etod-sub-upgrade-close:hover { background: #e2e8f0; color: #334155; }
.etod-sub-upgrade-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 10px;
}
.etod-sub-upgrade-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.etod-sub-upgrade-lead {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #475569;
}
.etod-sub-upgrade-list {
  margin: 0 0 18px;
  padding: 12px 14px 12px 0;
  list-style: none;
  text-align: right;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
}
.etod-sub-upgrade-list li {
  position: relative;
  padding: 4px 18px 4px 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4338ca;
  line-height: 1.5;
}
.etod-sub-upgrade-modal.etod-sub-upgrade-modal-wide {
  width: min(440px, 100%);
  max-height: min(92vh, 640px);
  overflow-y: auto;
}
.etod-sub-upgrade-list.etod-sub-upgrade-list-full {
  max-height: min(42vh, 300px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.etod-sub-upgrade-list li.proration {
  color: #b45309;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.45);
}
.etod-sub-upgrade-list li.proration::before {
  content: '💳';
  color: #d97706;
}
.etod-sub-upgrade-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: #6366f1;
  font-weight: 800;
}
.etod-sub-upgrade-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.etod-sub-upgrade-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.etod-sub-upgrade-btn:active { transform: scale(0.98); }
.etod-sub-upgrade-btn.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}
.etod-sub-upgrade-btn.ghost {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Pro → Pro Plus dual choice */
.etod-sub-upgrade-modal.etod-sub-upgrade-modal-dual {
  width: min(720px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  text-align: right;
  padding: 24px 20px 20px;
  -webkit-overflow-scrolling: touch;
}
.etod-sub-upgrade-dual-head {
  text-align: center;
  margin-bottom: 16px;
}
.etod-sub-upgrade-dual-head .etod-sub-upgrade-icon {
  margin-bottom: 6px;
}
.etod-sub-upgrade-dual-head .etod-sub-upgrade-title {
  margin-bottom: 6px;
}
.etod-sub-upgrade-dual-head .etod-sub-upgrade-lead {
  margin-bottom: 0;
}
.etod-sub-upgrade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 12px;
}
.etod-sub-upgrade-card {
  position: relative;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.etod-sub-upgrade-card.pay {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 45%);
}
.etod-sub-upgrade-card.referral {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 45%);
}
.etod-sub-upgrade-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 6px;
}
.etod-sub-upgrade-card h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
}
.etod-sub-upgrade-card-tag {
  margin: 0 0 8px;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.55;
}
.etod-sub-upgrade-card-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}
.etod-sub-upgrade-card-price small {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
}
.etod-sub-upgrade-card-price.free {
  color: #15803d;
}
.etod-sub-upgrade-card-note {
  font-size: 0.66rem;
  color: #b45309;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 8px;
  padding: 6px 8px;
  background: #fffbeb;
  border-radius: 10px;
  border: 1px dashed #fcd34d;
}
.etod-sub-upgrade-card-feats {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  text-align: right;
  flex: 1;
}
.etod-sub-upgrade-card-feats li {
  position: relative;
  padding: 3px 14px 3px 0;
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.5;
}
.etod-sub-upgrade-card-feats li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: #6366f1;
  font-weight: 800;
}
.etod-sub-upgrade-card.referral .etod-sub-upgrade-card-feats li::before {
  color: #16a34a;
}
.etod-sub-upgrade-card-mascot-wrap {
  margin: -4px -6px 8px;
  padding: 4px 6px 0;
  background: #fff;
  border-radius: 14px 14px 0 0;
  line-height: 0;
  overflow: hidden;
}
.etod-sub-upgrade-card-mascot {
  width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
  background: #fff;
}
.etod-sub-upgrade-card-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: auto;
}
.etod-sub-upgrade-card-btn.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.etod-sub-upgrade-card-btn.referral {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
}
.etod-sub-upgrade-referral-view {
  text-align: right;
}
.etod-sub-upgrade-back {
  appearance: none;
  border: none;
  background: #f1f5f9;
  color: #475569;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 12px;
}
.etod-sub-upgrade-referral-hero {
  text-align: center;
  margin-bottom: 12px;
}
.etod-sub-upgrade-referral-hero h3 {
  margin: 8px 0 4px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}
.etod-sub-upgrade-referral-hero p {
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .etod-sub-upgrade-grid { grid-template-columns: 1fr; }
}
