/* css/components.css */
/* ── GREETING ── */
.greeting {
  margin-bottom: 24px;
}

.greeting h1 {
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.greeting h1 .time,
.greeting h1 .name {
  color: var(--pink);
}

.greeting p {
  font-size: 13px;
  color: var(--muted);
}

/* ── SITE SWITCHER ── */
.site-switcher-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.site-switcher-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-pill {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid transparent;
}

.site-pill.active {
  background: var(--pink);
  color: #fff;
}

.site-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.add-site-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border2);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: 0.15s;
}

.add-site-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── UPGRADE BANNER ── */
.upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(
    135deg,
    rgba(253, 54, 110, 0.1),
    rgba(139, 92, 246, 0.06)
  );
  border: 1px solid rgba(253, 54, 110, 0.2);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.upgrade-banner p {
  font-size: 13px;
  font-weight: 500;
}

.upgrade-banner p strong {
  color: var(--text);
}

.btn-upgrade {
  background: var(--pink);
  color: #fff;
  border-radius: 40px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  transition: 0.15s;
  white-space: nowrap;
}

.btn-upgrade:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── SCORE CARD ── */
.score-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 24px;
  margin-bottom: 16px;
}

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.score-card-info h2 {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.score-card-info p {
  font-size: 12px;
  color: var(--muted);
}

.score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.score-ring .num {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.score-ring .lbl {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r);
  padding: 14px 10px;
  text-align: center;
}

.metric .val {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric .val.g {
  color: var(--green);
}
.metric .val.a {
  color: var(--amber);
}
.metric .val.p {
  color: var(--purple);
}
.metric .val.r {
  color: var(--red);
}

.metric .lbl {
  font-size: 11px;
  color: var(--muted);
}

.score-history {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r);
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.score-history strong {
  color: var(--green);
}

.score-lock {
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  margin-bottom: 14px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-refresh,
.btn-report {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  border-radius: 40px;
  padding: 8px 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: 0.15s;
  flex: 1;
}

.btn-refresh:hover,
.btn-report:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── BATTLE CARD ── */
.battle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 22px;
  margin-bottom: 16px;
}

.battle-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.battle-title h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-loss {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-win {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.battle-speeds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.speed-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.why-box {
  background: rgba(253, 54, 110, 0.07);
  border: 1px solid rgba(253, 54, 110, 0.15);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.why-box .why-title {
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.why-box .fix {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* ── WHO BEATING ── */
.who-beating {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 22px;
  margin-bottom: 16px;
}

.who-beating h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.comp-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.comp-hint strong {
  color: var(--text);
}

.unlock-link {
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.unlock-link:hover {
  text-decoration: underline;
}

/* ── AI COACH ── */
.coach-card {
  background: linear-gradient(
    135deg,
    rgba(253, 54, 110, 0.07),
    rgba(139, 92, 246, 0.05)
  );
  border: 1px solid rgba(253, 54, 110, 0.15);
  border-radius: var(--r3);
  padding: 22px;
  margin-bottom: 16px;
}

.coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(253, 54, 110, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.coach-title h3 {
  font-size: 14px;
  font-weight: 600;
}

.coach-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.active-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
}

.coach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.coach-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coach-step:last-child {
  border-bottom: none;
}

.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink2);
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.step-pts {
  color: var(--green);
  font-weight: 600;
}

.coach-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 10px;
}

.projected {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.projected strong {
  color: var(--green);
}

.btn-session {
  background: var(--pink);
  color: #fff;
  border-radius: 40px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s;
}

.btn-session:hover {
  opacity: 0.88;
}

/* ── WHITELABEL CARD ── */
.whitelabel-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--r2);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.whitelabel-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whitelabel-card p {
  font-size: 12px;
  color: var(--muted);
}

.btn-generate {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  border-radius: 40px;
  padding: 8px 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.15s;
}

.btn-generate:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── AGENCY GRID ── */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.agency-site-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 16px;
  cursor: pointer;
  transition: 0.15s;
}

.agency-site-card:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.04);
}

.agency-site-card.alert-site {
  border-color: rgba(239, 68, 68, 0.25);
}

.agency-site-card .a-domain {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-site-card .a-score {
  font-size: 26px;
  font-weight: 700;
  font-family: "Syne", sans-serif;
  margin-bottom: 2px;
}

.agency-site-card .a-delta {
  font-size: 11px;
  font-weight: 500;
}

.a-score.g {
  color: var(--green);
}
.a-score.a {
  color: var(--amber);
}
.a-score.r {
  color: var(--red);
}
.a-delta.up {
  color: var(--green);
}
.a-delta.down {
  color: var(--red);
}

.add-site-dashed {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--r2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.15s;
  min-height: 100px;
}

.add-site-dashed:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.add-site-dashed span {
  font-size: 12px;
  color: var(--dim);
}

.agency-alert {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.agency-alert .a-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.agency-alert .a-title {
  font-weight: 600;
  color: var(--red);
  margin-bottom: 2px;
}

.agency-alert .a-body {
  color: var(--muted);
  font-size: 12px;
}

/* ── LANDING PAGE ── */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--pink);
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-input {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 24px;
}

.hero-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  outline: none;
}

.hero-input input:focus {
  border-color: rgba(253, 54, 110, 0.5);
}

.hero-input .btn-analyze {
  background: var(--pink);
  color: #fff;
  border-radius: 40px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.social-proof {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.sp {
  text-align: center;
}

.sp .num {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.sp .lbl {
  font-size: 12px;
  color: var(--dim);
}

/* ── PRICING PAGE ── */
.pricing-page {
  padding: 48px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header h1 {
  font-family: "Syne", sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-header p {
  font-size: 15px;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.p-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 22px;
}

.p-card.featured {
  border-color: rgba(253, 54, 110, 0.35);
  background: rgba(253, 54, 110, 0.04);
}

.popular-tag {
  background: var(--pink2);
  border: 1px solid var(--pink3);
  color: var(--pink);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 10px;
}

.p-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.p-tier.f {
  color: rgba(255, 255, 255, 0.4);
}
.p-tier.pm {
  color: var(--amber);
}
.p-tier.pr {
  color: var(--pink);
}
.p-tier.ag {
  color: var(--purple);
}

.p-price {
  font-family: "Syne", sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 4px;
}

.p-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.p-tagline {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.p-feat {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.p-feat:last-of-type {
  border-bottom: none;
}

.p-feat .ck {
  color: var(--green);
  font-size: 14px;
}

.p-feat .no {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.p-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s;
}

.p-btn.cta {
  background: var(--pink);
  color: #fff;
}

.p-btn.cta:hover {
  opacity: 0.88;
}

.p-btn.outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border2);
  color: var(--text);
}

.p-btn.outline:hover {
  background: rgba(255, 255, 255, 0.09);
}

.pricing-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #11111c;
  border: 1px solid rgba(253, 54, 110, 0.25);
  border-radius: var(--r3);
  max-width: 440px;
  width: 90%;
  padding: 28px;
}

.modal h3 {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.modal-features {
  background: var(--pink2);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.8;
}

.modal-features strong {
  color: var(--text);
}

.modal-cta {
  width: 100%;
  padding: 12px;
  background: var(--pink);
  color: #fff;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-cancel {
  width: 100%;
  padding: 8px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a28;
  border: 1px solid var(--pink);
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 13px;
  z-index: 999;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agency-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-input {
    flex-direction: column;
  }
  .toast {
    white-space: normal;
    max-width: 90%;
    text-align: center;
  }
}

/* Make sure the tier-container has proper width constraints */
.tier-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fix the competitor table width */
.competitor-table {
  overflow-x: auto;
  width: 100%;
}

/* Ensure metrics don't overflow */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

/* Fix score-card width */
.score-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.delete-site {
  margin-left: 6px;
  opacity: 0.4;
  font-size: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.delete-site:hover {
  opacity: 1;
  color: #fd366e;
}

/* TEXT SIZE INCREASE */
/* ============================================
   STANDARDIZED TEXT SIZES
   ============================================ */

/* Base text sizes */
:root {
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --text-3xl: 32px;
  --text-4xl: 42px;
}

/* Greeting */
.greeting h1 {
  font-size: var(--text-2xl);
}

.greeting p {
  font-size: var(--text-sm);
}

/* Site pills */
.site-pill {
  font-size: var(--text-sm);
}

.add-site-btn {
  font-size: var(--text-xs);
}

/* Score card */
.score-card-info h2 {
  font-size: var(--text-xl);
}

.score-card-info p {
  font-size: var(--text-xs);
}

.metric .val {
  font-size: var(--text-lg);
}

.metric .lbl {
  font-size: var(--text-xs);
}

.score-history {
  font-size: var(--text-xs);
}

/* Buttons */
.btn-refresh,
.btn-report,
.btn-upgrade,
.btn-add-site {
  font-size: var(--text-xs);
}

/* Battle card */
.battle-title h3 {
  font-size: var(--text-base);
}

.badge-loss,
.badge-win {
  font-size: var(--text-xs);
}

.speed-box {
  font-size: var(--text-sm);
}

.why-box {
  font-size: var(--text-sm);
}

/* AI Coach */
.coach-title h3 {
  font-size: var(--text-base);
}

.coach-title p {
  font-size: var(--text-xs);
}

.step-text {
  font-size: var(--text-sm);
}

.projected {
  font-size: var(--text-sm);
}

/* Agency grid */
.agency-site-card .a-domain {
  font-size: var(--text-sm);
}

.agency-site-card .a-score {
  font-size: var(--text-xl);
}

.agency-site-card .a-delta {
  font-size: var(--text-xs);
}

/* Competitor table */
.competitor-row {
  font-size: var(--text-sm);
}

.competitor-row.header-row {
  font-size: var(--text-xs);
}

/* Upgrade banner */
.upgrade-banner p {
  font-size: var(--text-sm);
}

/* Hero section */
.hero h1 {
  font-size: var(--text-4xl);
}

.hero p {
  font-size: var(--text-md);
}

.hero-input input,
.hero-input .btn-analyze {
  font-size: var(--text-base);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .greeting h1 {
    font-size: 22px;
  }
  .metric .val {
    font-size: 16px;
  }
}

/*waste */
/* Ad Waste Detector */
.ad-waste-card {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4),
    rgba(253, 54, 110, 0.05)
  );
  border: 1px solid rgba(253, 54, 110, 0.2);
  border-radius: var(--r3);
  padding: 22px;
  margin-bottom: 20px;
}

.ad-waste-card.locked {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.ad-waste-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ad-waste-icon {
  font-size: 24px;
}

.ad-waste-header h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.badge-locked {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dim);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.badge-high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.badge-low {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.waste-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.waste-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.waste-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.insight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r);
  font-size: 13px;
}

.insight-item.warning {
  border-left: 3px solid #ef4444;
}

.insight-item.good {
  border-left: 3px solid #10b981;
}

.savings-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.savings-label {
  font-size: 13px;
  color: var(--muted);
}

.savings-amount {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
}

.btn-analyze-ads {
  width: 100%;
  padding: 10px;
  background: rgba(253, 54, 110, 0.1);
  border: 1px solid rgba(253, 54, 110, 0.3);
  border-radius: 40px;
  color: #fd366e;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-analyze-ads:hover {
  background: rgba(253, 54, 110, 0.2);
  transform: translateY(-1px);
}

/* Competitor Ad Insights */
.competitor-ads-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 22px;
  margin-bottom: 20px;
}

.competitor-ads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.competitor-ads-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.badge-pro {
  background: rgba(253, 54, 110, 0.15);
  color: #fd366e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.ad-comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r);
  flex-wrap: wrap;
  gap: 10px;
}

.ad-comp-name {
  font-weight: 600;
  font-size: 13px;
}

.ad-comp-metrics {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-view-ads {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
}

.btn-view-ads:hover {
  border-color: #fd366e;
  color: #fd366e;
}

/* Ad Waste Teaser for Free tier */
.ad-waste-teaser {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r);
}

.teaser-item {
  font-size: 12px;
  color: var(--muted);
  filter: blur(3px);
  cursor: pointer;
  transition: filter 0.2s;
}

.teaser-item:hover {
  filter: blur(0);
  color: #fd366e;
}

.sml-msg-ok {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.sml-msg-error {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

/* Toast container - positioned within right panel */
#soho-toast-container {
  position: fixed;
  top: 50px; /* Below the right-nav */
  right: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

#soho-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: none;
}

#soho-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#soho-toast-container .toast {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  background: #1a1a28;
  border: 1px solid #fd366e;
  border-radius: 40px;
  padding: 12px 24px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#soho-toast-container .toast.show {
  opacity: 1;
}
