:root {
  --text: #17202a;
  --muted: #667085;
  --line: #dfe7ef;
  --soft: #f4f7fa;
  --white: #ffffff;
  --green: #13a76b;
  --green-dark: #08764f;
  --green-soft: #e8f8f0;
  --blue: #2563eb;
  --amber: #f5a524;
  --rose: #df4f72;
  --navy: #101828;
  --ink: #111827;
  --shadow: 0 18px 46px rgba(16, 24, 40, 0.13);
  --shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(19, 167, 107, 0.09), transparent 32vw),
    linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
  font-family: "Inter", "Noto Sans", "Segoe UI Symbol", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(32, 178, 107, 0.25);
  outline-offset: 3px;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}

.brand-ticket-cut {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 999px;
  transform: translateY(-50%);
}

.brand-ticket-cut-left {
  left: -7px;
}

.brand-ticket-cut-right {
  right: -7px;
}

.brand-ticket-line {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.9) 0 3px, transparent 3px 6px);
}

.brand-ticket-percent {
  position: absolute;
  right: 9px;
  top: 7px;
  font-weight: 900;
}

.brand-word {
  color: #151a20;
  font-size: 1.16rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-word span:first-child {
  color: var(--green-dark);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.main-nav a,
.nav-tool-btn {
  color: #404956;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  padding: 9px 8px;
  border-radius: 999px;
}

.main-nav a:hover,
.nav-tool-btn:hover,
.nav-tool-btn.is-active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  overflow: hidden;
}

.search-box input {
  width: 172px;
  height: 100%;
  padding: 0 11px;
  border: 0;
  background: transparent;
  outline: 0;
}

.search-box button,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.search-box button {
  height: 100%;
  padding: 0 16px;
  color: var(--white);
  background: var(--green);
}

.button {
  padding: 0 18px;
}

.button:hover,
.search-box button:hover,
.product-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.button-outline {
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid rgba(8, 118, 79, 0.18);
}

.language-switch {
  position: relative;
}

.language-trigger,
.lang-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 96px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms var(--ease);
}

.language-switch.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-btn {
  justify-content: flex-start;
  border: 0;
}

.lang-btn.is-active {
  color: var(--white);
  background: var(--green);
}

.flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.globe-icon {
  width: 16px;
  height: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 58px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 18, 30, 0.94) 0%, rgba(16, 24, 40, 0.8) 42%, rgba(16, 24, 40, 0.42) 100%),
    url("assets/affiliate-hero.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  margin: 0 auto;
  text-align: left;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin: 0 auto 12px;
  color: #161b22;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: #1a2028;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.hero .eyebrow {
  width: fit-content;
  padding: 7px 11px;
  color: #9ff0c6;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.hero h1 {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  color: var(--white);
  font-size: clamp(2.55rem, 4.2vw, 4.45rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero .button-outline {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-metrics strong {
  color: var(--white);
}

.logo-strip {
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: center;
}

.logo-tile,
.store-card,
.deal-card,
.feature-post-card,
.feedback-card,
.trustpilot-summary,
.faq-item,
.admin-offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.logo-tile {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #212832;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.logo-tile img {
  max-width: 124px;
  max-height: 52px;
  object-fit: contain;
}

.section {
  padding: 56px 0;
}

.store-detail-section {
  padding: 38px 0 44px;
  background: #f3f3f3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.store-detail-section[hidden] {
  display: none;
}

.store-detail-section.is-open {
  display: block;
}

.store-search {
  width: min(560px, 100%);
  height: 44px;
  display: flex;
  margin: 0 auto 36px;
  background: var(--white);
  border: 1px solid #dfe4ea;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
  overflow: hidden;
}

.store-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: 0;
}

.store-search button {
  width: 56px;
  border: 0;
  border-left: 1px solid var(--line);
  color: transparent;
  background: #f7f8fa;
  cursor: pointer;
  font-size: 0;
  position: relative;
}

.store-search button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #4b5563;
  border-radius: 999px;
  transform: translate(-58%, -58%);
}

.store-search button::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 31px;
  width: 8px;
  height: 2px;
  background: #4b5563;
  transform: rotate(45deg);
}

.store-detail-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.store-profile-main,
.store-stats,
.store-coupon-card,
.about-store-card {
  background: var(--white);
  border: 1px solid #edf0f2;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.store-profile-main {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 22px 16px 14px;
  text-align: center;
}

.store-product-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, #ff4fb2, #ffc02f);
  font-weight: 900;
}

.store-product-thumb-blue {
  background: linear-gradient(145deg, #1f6feb, #23c7d9);
}

.store-profile-main h2 {
  color: var(--green-dark);
  font-size: 0.9rem;
}

.store-rating {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.store-rating span {
  color: #f5b43d;
  font-size: 1rem;
  letter-spacing: 0;
}

.store-rating small {
  color: #8b95a1;
  font-size: 0.78rem;
}

.coupon-alert-btn {
  width: 100%;
  min-height: 34px;
  margin-top: 4px;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.coupon-alert-btn:hover {
  color: var(--white);
  background: var(--green);
}

.store-stats {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 14px 10px;
}

.store-stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #4b5563;
  font-size: 0.78rem;
}

.store-stats dt,
.store-stats dd {
  margin: 0;
}

.store-stats dt {
  font-weight: 800;
}

.store-coupon-heading {
  margin-bottom: 12px;
}

.store-coupon-heading h2 {
  margin-bottom: 9px;
  color: #4a4f57;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.store-coupon-heading p {
  margin: 0;
  color: #555f6d;
  font-size: 0.88rem;
  font-weight: 700;
}

.coupon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-tab {
  min-width: 82px;
  min-height: 34px;
  padding: 0 14px;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid #edf0f2;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.coupon-tab.is-active {
  color: var(--white);
  background: #029b22;
  border-color: #029b22;
  box-shadow: 0 4px 10px rgba(2, 155, 34, 0.22);
}

.store-coupon-list {
  display: grid;
  gap: 16px;
}

.store-coupon-group {
  display: grid;
  gap: 8px;
}

.store-coupon-group.is-hidden {
  display: none;
}

.store-coupon-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fbf9;
  border: 1px solid #e5ece8;
}

.store-coupon-group-head p,
.store-coupon-group-head h3 {
  margin: 0;
}

.store-coupon-group-head p {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-coupon-group-head h3 {
  margin-top: 4px;
  color: #26313d;
  font-size: 1.05rem;
}

.store-group-link {
  color: inherit;
  text-decoration: none;
}

.store-group-link:hover,
.store-group-link:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-coupon-group-head span,
.store-group-count {
  flex: 0 0 auto;
  color: #596579;
  font-size: 0.8rem;
  font-weight: 800;
}

.store-group-count {
  padding: 8px 10px;
  background: #eefaf4;
  border: 1px solid #cceedd;
  border-radius: 999px;
  text-decoration: none;
}

.store-group-count:hover,
.store-group-count:focus-visible {
  color: var(--white);
  background: var(--green-dark);
}

.store-coupon-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 86px 1fr 130px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.store-coupon-card.is-hidden {
  display: none;
}

.coupon-discount {
  display: grid;
  place-items: center;
  color: #05a324;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.coupon-discount span {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.coupon-copy {
  min-width: 0;
}

.coupon-brand-line {
  margin-bottom: 7px;
}

.verified-label {
  margin: 0;
  color: #0f8f5d;
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.coupon-copy h3 {
  margin-bottom: 7px;
  color: #4a4f57;
  font-size: 0.98rem;
}

.coupon-copy p:last-child {
  margin: 0;
  color: #7a8491;
  font-size: 0.78rem;
}

.store-coupon-action {
  min-height: 34px;
  color: var(--white);
  background: #029b22;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.store-coupon-action:hover {
  background: #00881d;
}

.about-store-card {
  margin-top: 20px;
  padding: 18px;
}

.about-store-card h2 {
  margin-bottom: 22px;
  color: #333a44;
  font-size: 1.25rem;
}

.about-store-card h3 {
  color: #4a4f57;
  font-size: 1.1rem;
}

.about-store-card p {
  max-width: 760px;
  margin-bottom: 0;
  color: #626c78;
}

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

.section-title a,
.read-link {
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.section-title a:hover,
.read-link:hover {
  text-decoration: underline;
}

.section-intro {
  max-width: 780px;
  margin: -4px 0 22px;
  color: var(--muted);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.store-card {
  min-height: 142px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 20px 14px;
  text-align: center;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.store-card:hover,
.deal-card:hover,
.admin-offer-card:hover,
.feedback-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(19, 167, 107, 0.25);
}

.store-logo,
.avatar {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  font-weight: 900;
}

.store-logo {
  width: 72px;
  height: 72px;
  font-size: 1.2rem;
  border-radius: 16px;
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.12);
}

.store-logo.teal,
.avatar.teal {
  background: #168f8b;
}

.store-logo.blue {
  background: var(--blue);
}

.store-logo.rose {
  background: var(--rose);
}

.store-logo.gold,
.avatar.gold {
  background: #bd8415;
}

.store-logo.navy {
  background: #27384d;
}

.store-logo.lime {
  background: #7eaa1b;
}

.store-logo.coral {
  background: #df7049;
}

.deal-band {
  background:
    linear-gradient(180deg, rgba(232, 248, 240, 0.94), rgba(244, 247, 250, 0.94));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.deal-finder {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin: 18px 0 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(204, 238, 221, 0.9);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.deal-finder label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.deal-finder label span {
  color: #526174;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-finder input,
.deal-finder select {
  width: 100%;
  min-height: 40px;
  color: #17202a;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  font-weight: 800;
}

.deal-finder input {
  padding: 0 14px;
}

.deal-finder select {
  padding: 0 36px 0 14px;
  cursor: pointer;
}

.deal-type-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #edf8f3;
  border: 1px solid #cceedd;
  border-radius: 999px;
}

.deal-type-btn {
  min-height: 32px;
  padding: 0 12px;
  color: #334155;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.deal-type-btn.is-active {
  color: var(--white);
  background: var(--green-dark);
  box-shadow: 0 8px 16px rgba(8, 118, 79, 0.18);
}

.deal-category-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  margin: 18px 0 20px;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-padding-inline: 4px;
}

.deal-category-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 12px;
  color: #334155;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.deal-category-chip strong {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.72rem;
}

.deal-category-chip:hover,
.deal-category-chip.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-color: var(--green);
  transform: translateY(-1px);
}

.deal-category-chip:hover strong,
.deal-category-chip.is-active strong {
  color: #0f5132;
  background: var(--white);
}

.deal-empty-state {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.deal-empty-state {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 0;
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.1);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.deal-media {
  position: relative;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #111827 0%, #26374d 100%);
  isolation: isolate;
}

.deal-media::after {
  position: absolute;
  right: -34px;
  bottom: -44px;
  z-index: -1;
  width: 124px;
  height: 124px;
  border: 18px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  content: "";
}

.deal-media.green {
  background: linear-gradient(135deg, #0d8752 0%, #20b26b 100%);
}

.deal-media.amber {
  color: #2d2100;
  background: linear-gradient(135deg, #f2b544 0%, #ffe08a 100%);
}

.deal-media strong {
  max-width: 11ch;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.deal-media small {
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.86;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.deal-badge {
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.deal-content {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.deal-content h3 {
  margin: 0;
  color: #17202a;
  font-size: 1.06rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.deal-title-link {
  color: inherit;
  text-decoration: none;
}

.deal-title-link:hover,
.deal-title-link:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-name {
  margin: 0;
  color: #0f5132;
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.brand-highlight,
.coupon-brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-highlight {
  padding: 9px 10px;
  background: #eefaf4;
  border: 1px solid #cceedd;
  border-radius: 8px;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.deal-card.is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border: 2px solid #0f9f63;
  box-shadow: 0 14px 30px rgba(8, 118, 79, 0.24);
  transform: translateY(-2px);
}

.deal-card.is-category-highlight .brand-highlight .store-name {
  color: var(--green-dark);
  font-weight: 900;
}

.deal-card.is-category-highlight .brand-highlight .brand-initials {
  color: var(--white);
  background: #08764f;
  box-shadow: 0 8px 18px rgba(8, 118, 79, 0.24);
}

.deal-card[data-category="fashion"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #ffe4ef, #fff5f8);
  border-color: #db2777;
  box-shadow: 0 14px 30px rgba(219, 39, 119, 0.22);
}

.deal-card[data-category="fashion"].is-category-highlight .brand-highlight .store-name {
  color: #9d174d;
}

.deal-card[data-category="fashion"].is-category-highlight .brand-highlight .brand-initials {
  background: #db2777;
  box-shadow: 0 8px 18px rgba(219, 39, 119, 0.24);
}

.deal-card[data-category="health-and-wellness"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border-color: #16a34a;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.deal-card[data-category="health-and-wellness"].is-category-highlight .brand-highlight .store-name {
  color: #166534;
}

.deal-card[data-category="health-and-wellness"].is-category-highlight .brand-highlight .brand-initials {
  background: #16a34a;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.24);
}

.deal-card[data-category="beauty-and-spa"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #f3e8ff, #fdf4ff);
  border-color: #9333ea;
  box-shadow: 0 14px 30px rgba(147, 51, 234, 0.22);
}

.deal-card[data-category="beauty-and-spa"].is-category-highlight .brand-highlight .store-name {
  color: #6b21a8;
}

.deal-card[data-category="beauty-and-spa"].is-category-highlight .brand-highlight .brand-initials {
  background: #9333ea;
  box-shadow: 0 8px 18px rgba(147, 51, 234, 0.24);
}

.deal-card[data-category="home-goods"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #fef3c7, #fff8e1);
  border-color: #d97706;
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.22);
}

.deal-card[data-category="home-goods"].is-category-highlight .brand-highlight .store-name {
  color: #92400e;
}

.deal-card[data-category="home-goods"].is-category-highlight .brand-highlight .brand-initials {
  background: #d97706;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.24);
}

.deal-card[data-category="pets"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-color: #2563eb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.deal-card[data-category="pets"].is-category-highlight .brand-highlight .store-name {
  color: #1d4ed8;
}

.deal-card[data-category="pets"].is-category-highlight .brand-highlight .brand-initials {
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.deal-card[data-category="safety-and-emergency"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #fee2e2, #fff1f2);
  border-color: #dc2626;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
}

.deal-card[data-category="safety-and-emergency"].is-category-highlight .brand-highlight .store-name {
  color: #991b1b;
}

.deal-card[data-category="safety-and-emergency"].is-category-highlight .brand-highlight .brand-initials {
  background: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.24);
}

.deal-card[data-category="gifts"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
  border-color: #0d9488;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.22);
}

.deal-card[data-category="gifts"].is-category-highlight .brand-highlight .store-name {
  color: #0f766e;
}

.deal-card[data-category="gifts"].is-category-highlight .brand-highlight .brand-initials {
  background: #0d9488;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.24);
}

.deal-card[data-category="software"].is-category-highlight .brand-highlight {
  background: linear-gradient(135deg, #e0e7ff, #f5f3ff);
  border-color: #4f46e5;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.deal-card[data-category="software"].is-category-highlight .brand-highlight .store-name {
  color: #3730a3;
}

.deal-card[data-category="software"].is-category-highlight .brand-highlight .brand-initials {
  background: #4f46e5;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.24);
}

.brand-initials {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-initials.small {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  font-size: 0.68rem;
}

.brand-logo,
.admin-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 3px;
  background: #fff;
  border: 1px solid #dce7e2;
  border-radius: 10px;
  object-fit: contain;
}

.brand-logo.small {
  width: 26px;
  height: 26px;
  border-radius: 5px;
}

.logo-upload-field {
  display: grid;
  gap: 8px;
}

.form-help {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
}

.logo-preview[hidden] {
  display: none;
}

.logo-preview img {
  width: 72px;
  height: 72px;
  padding: 5px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  object-fit: contain;
}

.admin-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product-desc {
  min-height: 52px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.coupon-code-line {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px dashed #c9d5e1;
  border-radius: 8px;
}

.deal-full-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.deal-full-details div {
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e3ebf1;
  border-radius: 8px;
}

.deal-full-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-full-details dd {
  margin: 3px 0 0;
  color: #17202a;
  font-size: 0.84rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.coupon-code-line span,
.price-line small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coupon-code-line strong {
  color: #17202a;
  font-size: 0.98rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

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

.price-line span {
  color: #111827;
  font-size: 1.16rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.feature-post-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) 1fr;
  overflow: hidden;
  border: 0;
  box-shadow: var(--shadow);
}

.feature-post-media {
  min-height: 240px;
  background: #eaf0f6;
}

.feature-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-post-card.uses-logo .feature-post-media img {
  padding: 36px;
  object-fit: contain;
  background: #fff;
}

.feature-post-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.feature-post-copy h3 {
  max-width: 660px;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 900;
}

.feature-post-copy p {
  max-width: 640px;
  color: var(--muted);
}

.trustpilot-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trustpilot-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 18px;
}

.trustpilot-summary {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.trustpilot-summary p,
.feedback-card p,
.faq-item p,
.admin-offer-card p {
  color: var(--muted);
}

.rating-row,
.feedback-head,
.admin-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stars {
  color: #00b67a;
  font-weight: 900;
}

.feedback-grid,
.faq-grid,
.admin-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feedback-card,
.faq-item,
.admin-offer-card {
  padding: 20px;
}

.avatar {
  width: 42px;
  height: 42px;
}

.source-note {
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
}

.compact-faq {
  padding-top: 30px;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-cloud a,
.admin-offer-meta span,
.coupon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #354052;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.category-cloud a:hover,
.category-cloud a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-color: var(--green);
}

.coupon-pill {
  color: #6b4a00;
  background: #fff4d5;
  border-color: #f4d47a;
}

.admin-offer-card {
  display: grid;
  gap: 12px;
}

.admin-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-offer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-empty-state,
.deal-empty-state {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 4px;
  font-weight: 800;
}

.delete-offer-btn {
  color: #b42318;
  border-color: #f2b8b5;
  background: #fff5f5;
}

.newsletter-section {
  padding: 28px 0 72px;
}

.newsletter-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 42px 48px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(43, 195, 143, 0.24), transparent 35%),
    linear-gradient(135deg, #0d3148, #114d61);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(13, 49, 72, 0.2);
}

.newsletter-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.newsletter-copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.newsletter-copy p {
  max-width: 560px;
  margin: 0;
  color: #c4d8e2;
  line-height: 1.65;
}

.newsletter-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 20px;
  color: #d9e9ef;
  font-size: 0.78rem;
  font-weight: 800;
}

.newsletter-benefits span::first-letter {
  color: #6ee7b7;
}

.newsletter-form {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: #17344b;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(4, 27, 40, 0.2);
}

.newsletter-form > label:first-child {
  font-size: 0.76rem;
  font-weight: 900;
}

.newsletter-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.newsletter-field-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  color: #17344b;
  background: #f7fafb;
  border: 1px solid #dbe4e9;
  border-radius: 10px;
  outline: none;
}

.newsletter-field-row input:focus {
  border-color: #087dbd;
  box-shadow: 0 0 0 3px rgba(8, 125, 189, 0.11);
}

.newsletter-field-row button {
  height: 48px;
  padding: 0 17px;
  color: #fff;
  background: #0a9b67;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.newsletter-field-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.newsletter-field-row button span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms var(--ease);
}

.newsletter-field-row button:hover span {
  transform: translateX(3px);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #71818d;
  font-size: 0.7rem;
  line-height: 1.45;
}

.newsletter-consent input {
  margin-top: 2px;
  accent-color: #0a9b67;
}

.newsletter-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.newsletter-status {
  min-height: 18px;
  margin: 0;
  color: #607483;
  font-size: 0.74rem;
  font-weight: 750;
}

.newsletter-status.is-success {
  color: #087c56;
}

.newsletter-status.is-error {
  color: #b42318;
}

@media (max-width: 840px) {
  .newsletter-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px;
  }
}

@media (max-width: 560px) {
  .newsletter-section {
    padding-bottom: 48px;
  }

  .newsletter-shell {
    width: min(calc(100% - 24px), 1340px);
    padding: 26px 18px;
    border-radius: 18px;
  }

  .newsletter-form {
    padding: 17px;
  }

  .newsletter-field-row {
    grid-template-columns: 1fr;
  }

  .newsletter-field-row button {
    width: 100%;
  }
}

.site-footer {
  padding: 50px 0;
  color: #cbd5e1;
  background: #101828;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 26px;
}

.footer-brand,
.site-footer h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.footer-brand {
  font-size: 1.45rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 360px;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #7ee0ad;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-cms-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  color: #202a35;
  background: #f3f5f8;
}

.cms-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  overflow-y: auto;
  color: #cfd5dc;
  background: #343b43;
  box-shadow: 2px 0 8px rgba(15, 23, 42, 0.12);
}

.cms-brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: #f5f7fa;
  background: #30363e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.cms-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #343b43;
  background: #e6eaee;
  border-radius: 50%;
  font-weight: 950;
}

.cms-brand strong { font-size: 1.18rem; font-weight: 500; }
.cms-menu-label { margin: 20px 16px 10px; color: #aab2bb; font-size: 0.7rem; font-weight: 800; }
.cms-nav { display: grid; gap: 3px; padding: 0 8px; }

.cms-nav button {
  width: 100%;
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: #cbd1d8;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.cms-nav button:hover,
.cms-nav button.is-active { color: #fff; background: #087cf0; }
.cms-nav-item > span { width: 20px; font-size: 1rem; text-align: center; }
.cms-parent-item b { margin-left: auto; font-size: 1rem; }
.cms-subnav { display: grid; padding-left: 14px; }
.cms-subnav[hidden] { display: none; }
.cms-subnav button { min-height: 37px; padding-left: 21px; font-size: 0.86rem; }
.cms-system-label { margin-top: 26px; }

.cms-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 12px 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}

.cms-user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #087cf0;
  border-radius: 50%;
  font-weight: 900;
}

.cms-user-card > span:last-child { min-width: 0; display: grid; }
.cms-user-card strong { color: #fff; font-size: 0.8rem; }
.cms-user-card small { overflow: hidden; color: #aeb6bf; font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.cms-workspace { min-width: 0; }

.cms-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 18px;
  color: #f0f3f6;
  background: #343b43;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.cms-menu-toggle,
.cms-topbar nav button,
.cms-top-actions button { color: inherit; background: transparent; border: 0; cursor: pointer; font: inherit; }
.cms-menu-toggle { font-size: 1.18rem; }
.cms-topbar nav { display: flex; gap: 24px; }
.cms-topbar nav button:hover,
.cms-top-actions a:hover,
.cms-top-actions button:hover { color: #62b0ff; }
.cms-top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 0.82rem; }
.cms-top-actions a { color: inherit; font-weight: 700; text-decoration: none; }
.cms-main { min-height: calc(100vh - 58px); padding: 20px 16px 36px; }
.cms-panel[hidden] { display: none !important; }
.cms-panel.is-active { animation: cms-panel-in 180ms ease-out; }

@keyframes cms-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cms-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 17px;
  border-bottom: 1px solid #d8dde4;
}

.cms-page-heading h1,
.cms-page-heading p { margin: 0; }
.cms-page-heading h1 { color: #202a35; font-family: inherit; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 500; }
.cms-page-heading p { margin-top: 5px; color: #7b8794; font-size: 0.82rem; }
.cms-breadcrumb { display: flex; align-items: center; gap: 10px; padding-top: 8px; color: #66717e; font-size: 0.8rem; }
.cms-breadcrumb button { color: #087cf0; background: transparent; border: 0; cursor: pointer; }

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.category-search,
.category-actions { display: flex; align-items: center; gap: 5px; }

.category-search input,
.category-search select {
  height: 34px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  outline: none;
}

.category-search input { width: min(220px, 30vw); }
.category-search select { min-width: 160px; }
.category-search input:focus,
.category-search select:focus { border-color: #087cf0; box-shadow: 0 0 0 3px rgba(8, 124, 240, 0.12); }

.cms-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.cms-btn-primary { background: #087cf0; }
.cms-btn-info { background: #12a7bd; }
.cms-btn-danger { background: #dc245a; }
.cms-btn-dark { background: #353b43; }
.cms-btn:hover { filter: brightness(0.92); }

.category-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 5px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.category-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 0.82rem; }
.category-table th,
.category-table td { height: 48px; padding: 7px 8px; border-right: 1px dotted #e2e6eb; border-bottom: 1px dotted #dce1e7; text-align: left; vertical-align: middle; }
.category-table th { color: #111820; background: #fff; border-bottom: 2px solid #d9dee5; font-weight: 900; }
.category-table tr:hover td { background: #f8fbff; }
.category-table .row-number { width: 42px; color: #596673; text-align: center; }
.category-table .check-cell { width: 44px; text-align: center; }
.category-table input[type="checkbox"] { width: 22px; height: 22px; accent-color: #087cf0; }
.category-name-link { padding: 0; color: #0073ff; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.category-name-link:hover { text-decoration: underline; }
.category-type-label {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px;
  color: #607080;
  background: #eef2f6;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
}
.category-table select,
.category-order { height: 32px; padding: 4px 8px; background: #fff; border: 1px solid #98a2ad; border-radius: 2px; }
.category-table select { width: 78px; }
.category-order { width: 82px; }
.category-table .row-actions { width: 94px; white-space: nowrap; }

.table-edit-btn,
.table-delete-btn { width: 34px; height: 34px; margin-right: 4px; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.table-edit-btn { background: #12a7bd; }
.table-delete-btn { background: #df3048; }
.category-no-results { height: 150px !important; color: #7b8794; text-align: center !important; }

.coupon-manager-panel .cms-page-heading p {
  display: none;
}

.coupon-manager-panel .category-table-wrap {
  min-height: 86px;
}

.coupon-data-table td {
  height: 54px;
}

.coupon-table-logo {
  width: 48px;
  height: 36px;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 3px;
}

.coupon-image-empty {
  color: #8a95a1;
  font-size: 0.72rem;
}

.coupon-code-note {
  display: block;
  margin-top: 4px;
  color: #7b8794;
  font-size: 0.68rem;
}

.coupon-no-data {
  height: 42px !important;
  padding-left: 18px !important;
  color: #e02424;
}

.cms-create-heading {
  align-items: flex-start;
}

.cms-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 0 14px;
}

.cms-editor-form {
  display: grid;
  gap: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.cms-field-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(180px, 25%) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 54px;
}

.cms-field-row > label:first-child {
  color: #111820;
  font-size: 0.82rem;
  font-weight: 900;
}

.cms-field-row > input,
.cms-field-row > select {
  width: 100%;
  height: 39px;
  padding: 8px 12px;
  color: #344054;
  background: #fff;
  border: 1px solid #cdd5df;
  border-radius: 4px;
  outline: none;
}

.cms-field-row > input:focus,
.cms-field-row > select:focus {
  border-color: #087cf0;
  box-shadow: 0 0 0 3px rgba(8, 124, 240, 0.12);
}

.cms-file-picker {
  height: 39px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cdd5df;
  border-radius: 3px;
}

.cms-file-button {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #fff !important;
  background: #087cf0;
  cursor: pointer;
  font-weight: 700 !important;
}

.cms-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cms-file-picker span {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: #7b8794;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-preview-row[hidden] {
  display: none;
}

.cms-deal-image-preview {
  position: relative;
  width: 160px;
  height: 90px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #d9e0e8;
  border-radius: 4px;
}

.cms-deal-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-deal-image-preview button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  color: #fff;
  background: #df3048;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.cms-switch {
  width: fit-content;
  display: inline-flex;
  cursor: pointer;
}

.cms-switch input {
  position: absolute;
  opacity: 0;
}

.cms-switch span {
  min-width: 84px;
  padding: 7px 11px;
  color: #fff;
  background: linear-gradient(90deg, #087cf0 0 50%, #f4f6f8 50%);
  border: 1px solid #cdd5df;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 800;
}

.cms-switch input:not(:checked) + span {
  color: #66717e;
  background: #f4f6f8;
}

.cms-description-row {
  align-items: start;
  padding: 10px 0;
}

.cms-description-row > label {
  padding-top: 12px;
}

.cms-rich-editor {
  min-width: 0;
  border: 1px solid #c8cfd8;
}

.cms-editor-toolbar {
  min-height: 108px;
  display: flex;
  align-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 10px;
  background: #f7f7f7;
  border-bottom: 1px solid #c8cfd8;
}

.cms-editor-toolbar button,
.cms-editor-toolbar select {
  min-width: 30px;
  height: 28px;
  padding: 4px 7px;
  color: #303944;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.74rem;
}

.cms-editor-toolbar button:hover,
.cms-editor-toolbar select:hover {
  background: #e8ebef;
}

.cms-editor-toolbar span {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: #cbd2da;
}

.cms-rich-editor textarea {
  width: 100%;
  min-height: 210px;
  display: block;
  padding: 14px;
  border: 0;
  outline: 0;
  resize: vertical;
}

.cms-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 40px;
  color: #6c7885;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 5px;
  text-align: center;
}

.cms-placeholder > span { font-size: 2.6rem; color: #087cf0; }
.cms-placeholder h2,
.cms-placeholder p { margin: 0; }
.cms-main > .cms-panel.container { width: 100%; max-width: none; }

.admin-mode {
  background:
    radial-gradient(circle at 14% 0%, rgba(19, 167, 107, 0.14), transparent 28vw),
    linear-gradient(180deg, #f6faf9 0%, #edf4f6 100%);
}

.admin-mode .admin-section {
  padding: 58px 0 38px;
}

.admin-mode .admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  align-items: start;
  gap: 28px;
}

.admin-mode .admin-copy {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  padding: 30px;
  color: var(--white);
  background: linear-gradient(145deg, #0f172a 0%, #104b3c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-mode .admin-copy .eyebrow,
.admin-mode .admin-copy h2,
.admin-mode .admin-copy p {
  margin: 0;
}

.admin-mode .admin-copy .eyebrow {
  color: #7ff0bd;
}

.admin-mode .admin-copy h2 {
  max-width: 560px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.admin-mode .admin-copy > p {
  color: rgba(255, 255, 255, 0.78);
}

.admin-mode .admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-mode .admin-stats span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.admin-mode .admin-stats strong {
  display: block;
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1;
}

.admin-mode .admin-session-label {
  grid-column: 1 / -1;
  min-height: auto;
}

.admin-mode .admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.admin-mode .admin-form > input[type="hidden"],
.admin-mode .admin-form > label,
.admin-mode .admin-form > .form-row,
.admin-mode .admin-form > .logo-upload-field {
  min-width: 0;
}

.admin-mode .admin-form > label,
.admin-mode .admin-form .form-row label,
.admin-mode .logo-upload-field {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-mode .admin-form > label:not(.logo-upload-field),
.admin-mode .logo-upload-field,
.admin-mode .admin-form > .form-row {
  grid-column: span 2;
}

.admin-mode .admin-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-mode .admin-form input,
.admin-mode .admin-form select,
.admin-mode .admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-mode .admin-form textarea {
  min-height: 118px;
  resize: vertical;
}

.admin-mode .admin-form input:focus,
.admin-mode .admin-form select:focus,
.admin-mode .admin-form textarea:focus {
  background: var(--white);
  border-color: rgba(19, 167, 107, 0.72);
  box-shadow: 0 0 0 4px rgba(19, 167, 107, 0.12);
}

.admin-mode .admin-form input[type="file"] {
  padding: 9px;
  background: #f8fafc;
}

.admin-mode .logo-preview {
  width: 100%;
  justify-content: space-between;
  border-radius: 8px;
}

.admin-mode #save-offer-btn,
.admin-mode #cancel-edit-btn,
.admin-mode #logout-btn {
  min-height: 46px;
}

.admin-mode main > .section.container {
  padding-top: 28px;
}

.admin-mode .section-title {
  margin-bottom: 18px;
}

.admin-mode .section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.admin-mode .admin-offer-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.admin-mode .admin-offer-card {
  border-radius: 8px;
}

.admin-mode .admin-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-mode .admin-brand-title h3,
.admin-mode .admin-brand-title p {
  margin: 0;
}

.admin-mode .admin-brand-title h3 {
  overflow-wrap: anywhere;
}

.admin-mode .admin-offer-actions .button,
.admin-mode .admin-offer-actions .product-link {
  min-height: 40px;
}

.admin-mode .admin-project-section {
  display: block;
  padding-bottom: 34px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-section-heading .eyebrow,
.admin-section-heading h2,
.admin-section-heading p {
  margin: 0;
}

.admin-section-heading .eyebrow {
  margin-bottom: 7px;
}

.admin-section-heading > div > p:last-child {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
}

.security-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #08764f;
  background: #e8f8f0;
  border: 1px solid rgba(19, 167, 107, 0.22);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-upload-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(420px, 1.12fr);
  align-items: start;
  gap: 20px;
}

.admin-mode .project-upload-form {
  position: sticky;
  top: 24px;
}

.admin-mode .project-dropzone {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 28px;
  color: #475467;
  background: #f8fbfa;
  border: 1.5px dashed #9db9ae;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: 160ms ease;
}

.admin-mode .project-dropzone:hover,
.admin-mode .project-dropzone.is-dragging,
.admin-mode .project-dropzone.has-file {
  color: #08764f;
  background: #eefbf5;
  border-color: #13a76b;
}

.admin-mode .project-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #08764f;
  background: #dff7eb;
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 900;
}

.project-dropzone strong {
  color: #172b24;
  font-size: 1rem;
}

.project-dropzone > span:last-child {
  max-width: 360px;
  font-size: 0.78rem;
  font-weight: 600;
}

.selected-project-file {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #dce5e1;
  border-radius: 8px;
}

.selected-project-file[hidden] {
  display: none;
}

.selected-project-file > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.selected-project-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-project-file small {
  color: var(--muted);
}

.file-type-badge {
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #08764f;
  background: #e8f8f0;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.file-remove-btn {
  width: 32px;
  height: 32px;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.file-remove-btn:hover {
  color: #b42318;
  background: #fee4e2;
}

.project-submit-btn {
  grid-column: 1 / -1;
}

.project-submit-btn:disabled {
  opacity: 0.64;
  cursor: wait;
}

.project-library {
  display: grid;
  gap: 12px;
}

.project-file-card,
.project-empty-state {
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.project-file-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.project-file-card h3,
.project-file-card p {
  margin: 0;
}

.project-file-card h3 {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.project-kind {
  margin-bottom: 3px !important;
  color: #08764f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-description {
  margin-top: 14px !important;
  color: #475467;
  line-height: 1.62;
  white-space: pre-wrap;
}

.project-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.project-file-meta span {
  max-width: 100%;
  padding: 6px 8px;
  overflow: hidden;
  color: #667085;
  background: #f2f4f7;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-card .admin-offer-actions {
  margin-top: 16px;
}

.project-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
}

.project-empty-state h3,
.project-empty-state p {
  max-width: 360px;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .admin-cms-shell {
    grid-template-columns: 1fr;
  }

  .cms-sidebar {
    position: fixed;
    left: 0;
    width: 250px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .cms-sidebar.is-open {
    transform: translateX(0);
  }

  .category-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-actions {
    flex-wrap: wrap;
  }

  .admin-mode .admin-layout {
    grid-template-columns: 1fr;
  }

  .project-upload-layout {
    grid-template-columns: 1fr;
  }

  .admin-mode .project-upload-form {
    position: static;
  }

  .admin-mode .admin-copy {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .brand-word {
    font-size: 1.08rem;
  }

  .logo-grid,
  .store-grid,
  .deal-grid,
  .feedback-grid,
  .faq-grid,
  .admin-offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deal-finder {
    grid-template-columns: 1fr 1fr;
  }

  .deal-finder-search {
    grid-column: 1 / -1;
  }

  .trustpilot-panel,
  .store-detail-layout,
  .feature-post-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .store-profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 12px;
  }

  .store-stats {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .cms-editor-form {
    padding: 14px;
  }

  .cms-field-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px 0;
  }

  .cms-preview-row > span {
    display: none;
  }

  .cms-editor-toolbar {
    min-height: auto;
  }

  .cms-main {
    padding: 16px 10px 28px;
  }

  .cms-topbar {
    gap: 12px;
    padding: 0 12px;
  }

  .cms-topbar nav {
    display: none;
  }

  .cms-top-actions {
    gap: 10px;
  }

  .cms-top-actions span,
  .cms-top-actions button {
    display: none;
  }

  .cms-page-heading {
    flex-direction: column;
  }

  .cms-breadcrumb {
    padding-top: 0;
  }

  .category-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .category-search input {
    width: 100%;
    grid-column: 1 / -1;
  }

  .category-search select {
    min-width: 0;
  }

  .category-actions .cms-btn {
    flex: 1 1 auto;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .admin-mode .admin-section {
    padding: 28px 0 22px;
  }

  .admin-mode .admin-copy,
  .admin-mode .admin-form {
    padding: 18px;
  }

  .admin-mode .admin-stats,
  .admin-mode .admin-form,
  .admin-mode .admin-form .form-row {
    grid-template-columns: 1fr;
  }

  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-mode .project-dropzone {
    min-height: 164px;
    padding: 20px 14px;
  }

  .project-file-meta {
    display: grid;
  }

  .admin-mode .admin-form > label:not(.logo-upload-field),
  .admin-mode .logo-upload-field,
  .admin-mode .admin-form > .form-row {
    grid-column: 1;
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 0;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .hero {
    padding: 48px 0 34px;
    background:
      linear-gradient(90deg, rgba(10, 18, 30, 0.94) 0%, rgba(16, 24, 40, 0.84) 100%),
      url("assets/affiliate-hero.png") 58% center / cover;
  }

  .hero-inner {
    max-width: none;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-metrics {
    align-items: stretch;
    flex-direction: column;
  }

  .hero h1,
  h1 {
    font-size: clamp(2rem, 12vw, 2.6rem);
    line-height: 1.06;
  }

  .logo-grid,
  .store-grid,
  .store-profile,
  .deal-grid,
  .feedback-grid,
  .faq-grid,
  .admin-offer-grid,
  .admin-offer-actions {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .deal-finder {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .deal-type-filter {
    width: 100%;
  }

  .deal-type-btn {
    flex: 1;
  }

  .store-detail-section {
    padding: 28px 0 34px;
  }

  .store-search {
    margin-bottom: 22px;
  }

  .store-coupon-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .coupon-discount {
    place-items: start;
    text-align: left;
  }
}

/* Structured CMS workspace: mirrors Category > Store > Offer / Deal data relationships. */
.admin-mode .cms-sidebar { background: #202733; border-right: 1px solid rgba(255,255,255,.06); }
.admin-mode .cms-brand { min-height: 72px; background: #171d27; }
.admin-mode .cms-nav-item, .admin-mode .cms-subnav button { border-left: 3px solid transparent; }
.admin-mode .cms-nav-item.is-active, .admin-mode .cms-subnav button.is-active { color: #fff; background: rgba(25,171,122,.18); border-left-color: #22c58b; }
.admin-mode .cms-nav em, .admin-mode .cms-subnav em { min-width: 24px; margin-left: auto; padding: 2px 7px; color: #cbd5df; background: rgba(255,255,255,.1); border-radius: 999px; font-size: .66rem; font-style: normal; text-align: center; }
.admin-mode .cms-topbar { gap: 18px; min-height: 72px; padding: 10px 24px; }
.cms-global-search { display: flex; align-items: center; flex: 1; max-width: 520px; min-width: 240px; padding: 0 12px; background: #f4f6f8; border: 1px solid #dde3e8; border-radius: 6px; }
.cms-global-search > span { color: #6d7882; font-size: 1.15rem; }
.cms-global-search input { flex: 1; min-width: 0; padding: 10px; background: transparent; border: 0; outline: 0; }
.cms-global-search kbd { padding: 3px 6px; color: #87919a; background: #fff; border: 1px solid #d7dde2; border-radius: 4px; font: 600 .65rem/1.2 Inter,Arial,sans-serif; }
.admin-mode .cms-main { background: #f3f5f7; }
.admin-mode .cms-page-heading { align-items: center; padding-bottom: 17px; border-bottom: 1px solid #dde3e8; }
.cms-data-architecture { margin-bottom: 18px; padding: 20px; background: #fff; border: 1px solid #dce3e8; border-radius: 6px; box-shadow: 0 4px 14px rgba(28,45,60,.05); }
.cms-data-architecture-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.cms-data-architecture-head h2 { margin: 3px 0 5px; font-size: 1.15rem; }
.cms-data-architecture-head p { max-width: 760px; margin: 0; color: #71808c; font-size: .82rem; line-height: 1.55; }
.cms-kicker { color: #15956d; font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.cms-entity-flow { display: grid; align-items: stretch; grid-template-columns: minmax(150px,.8fr) 30px minmax(160px,1fr) 30px minmax(300px,1.7fr); gap: 10px; }
.cms-entity-flow > i { align-self: center; color: #a0adb7; font-style: normal; text-align: center; }
.cms-entity-flow button, .cms-entity-secondary button { cursor: pointer; text-align: left; }
.cms-entity-flow button { display: grid; gap: 4px; min-height: 100px; padding: 14px; color: #2f4150; background: #f7fafb; border: 1px solid #dbe4e9; border-radius: 5px; }
.cms-entity-flow button:hover { border-color: #54b795; box-shadow: 0 4px 12px rgba(25,130,94,.1); }
.cms-entity-flow button span { color: #168660; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.cms-entity-flow button strong { font-size: 1.55rem; }
.cms-entity-flow button small { color: #7b8993; }
.cms-entity-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cms-entity-secondary { display: grid; grid-template-columns: repeat(6,minmax(100px,1fr)); gap: 8px; margin-top: 10px; }
.cms-entity-secondary button { display: grid; gap: 3px; padding: 11px 12px; color: #40515e; background: #fff; border: 1px solid #e0e6ea; border-radius: 4px; }
.cms-entity-secondary button:hover { background: #f5faf8; border-color: #77bfa7; }
.cms-entity-secondary b { font-size: .78rem; }
.cms-entity-secondary span { color: #85919a; font-size: .66rem; }
.admin-mode .category-toolbar { position: sticky; top: 72px; z-index: 4; padding: 12px; background: rgba(255,255,255,.96); border: 1px solid #dfe5e9; border-radius: 5px; box-shadow: 0 3px 10px rgba(30,47,61,.05); }
.admin-mode .category-table-wrap { border: 1px solid #dde4e9; border-radius: 5px; box-shadow: 0 3px 12px rgba(28,45,60,.04); }
.admin-mode .category-table thead th { position: sticky; top: 0; z-index: 2; color: #51616d; background: #f2f5f7; font-size: .68rem; letter-spacing: .035em; text-transform: uppercase; }
.admin-mode .category-table tbody tr:hover { background: #f5fbf8; }
.cms-data-chip { display: inline-block; max-width: 180px; padding: 4px 8px; overflow: hidden; color: #31576b; background: #edf5f8; border-radius: 999px; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.cms-status-warning { display: inline-block; padding: 4px 7px; color: #9b5b05; background: #fff5df; border-radius: 4px; font-size: .68rem; font-weight: 800; }
@media (max-width:1100px) { .cms-global-search { max-width:360px; } .cms-entity-flow { grid-template-columns:1fr; } .cms-entity-flow > i { display:none; } .cms-entity-secondary { grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px) { .cms-global-search { order:3; flex-basis:100%; max-width:none; } .admin-mode .cms-topbar { flex-wrap:wrap; } .cms-data-architecture-head { flex-direction:column; } .cms-entity-split, .cms-entity-secondary { grid-template-columns:1fr 1fr; } .admin-mode .category-toolbar { position:static; } }

/* Teelacodes-inspired public homepage — AloCoupon branding and live data */
body:not(.admin-mode) {
  color: #20262d;
  background: #f6f7f9;
}

body:not(.admin-mode) .container {
  width: min(100% - 32px, 1180px);
}

body:not(.admin-mode) .site-header {
  position: relative;
  top: auto;
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
}

body:not(.admin-mode) .header-inner {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 28px 0 34px;
}

body:not(.admin-mode) .brand {
  justify-content: center;
  gap: 14px;
}

body:not(.admin-mode) .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(1, 124, 194, 0.2);
}

body:not(.admin-mode) .brand-word {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.06em;
}

body:not(.admin-mode) .brand-word span:first-child {
  color: #152333;
}

body:not(.admin-mode) .brand-word span:last-child {
  color: #017cc2;
}

.header-tagline {
  margin: 4px 0 16px;
  color: #111820;
  font-size: 0.78rem;
  font-weight: 800;
}

body:not(.admin-mode) .main-nav {
  display: none;
}

body:not(.admin-mode) .header-actions {
  width: min(100%, 960px);
  display: flex;
  justify-content: center;
}

body:not(.admin-mode) .search-box {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7dce2;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(15, 35, 50, 0.14);
}

body:not(.admin-mode) .search-box input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
}

body:not(.admin-mode) .search-box button {
  min-height: 58px;
  color: #fff;
  background: #017cc2;
  border: 0;
  border-radius: 0;
  font-size: 0;
}

body:not(.admin-mode) .search-box button::before {
  content: "⌕";
  font-size: 1.7rem;
}

body:not(.admin-mode) .language-switch {
  position: absolute;
  top: 18px;
  right: 0;
}

#home {
  display: flex;
  flex-direction: column;
}

#home > .hero { order: 1; }
#home > .logo-strip { order: 2; }
#home > #stores { order: 3; }
#home > #deals { order: 4; }
#home > #feature-post { order: 5; }
#home > #feedback { order: 6; }
#home > #affiliate-preview { order: 7; }
#home > #faq { order: 8; }
#home > #categories { order: 9; }

body:not(.admin-mode) .hero {
  padding: 12px 0 44px;
  color: #20262d;
  background: #fff;
  text-align: center;
}

body:not(.admin-mode) .hero-inner {
  max-width: 1180px;
}

body:not(.admin-mode) .hero .eyebrow,
body:not(.admin-mode) .hero-actions,
body:not(.admin-mode) .hero-metrics {
  display: none;
}

body:not(.admin-mode) .hero h1 {
  max-width: none;
  margin: 0 auto;
  color: #111820;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-align: center;
}

body:not(.admin-mode) .hero-copy {
  max-width: 780px;
  margin: 14px auto 30px;
  color: #606b76;
  font-size: 1rem;
  line-height: 1.7;
}

.home-feature-carousel {
  position: relative;
}

.home-store-rail {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.home-store-chip {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  color: #334756;
  background: #fff;
  border: 1px solid #d9e1e7;
  border-radius: 999px;
  cursor: pointer;
  scroll-snap-align: center;
}

.home-store-chip img,
.home-store-chip span {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f7f9;
  font-size: 0.65rem;
  font-weight: 900;
}

.home-store-chip b {
  font-size: 0.8rem;
  white-space: nowrap;
}

.home-store-chip:hover,
.home-store-chip.is-active {
  color: #005b8f;
  border-color: #42a9dc;
  box-shadow: 0 3px 12px rgba(0, 91, 143, 0.12);
}

.home-store-chip.is-filtered {
  color: #fff;
  background: #005b8f;
  border-color: #005b8f;
}

.home-feature-banner {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #043f63, #017cc2);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(15, 35, 50, 0.18);
  text-align: left;
  text-decoration: none;
}

.home-feature-banner::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(1, 124, 194, 0.12));
  content: "";
  pointer-events: none;
}

.home-banner-copy {
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 5vw, 64px);
}

.home-banner-action {
  align-self: flex-start;
  padding: 12px 17px;
  color: #07466a;
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
}

.home-banner-visual {
  min-width: 0;
  overflow: hidden;
  background: #f3f7fa;
}

.home-banner-copy small {
  color: #aee6ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.home-banner-copy strong {
  max-width: 13ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.home-banner-copy em {
  width: fit-content;
  padding: 10px 14px;
  color: #043f63;
  background: #fff;
  border-radius: 3px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.home-feature-banner img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.home-feature-banner.uses-product-image img {
  padding: clamp(14px, 2.5vw, 34px);
  object-fit: contain;
  background: #fff;
}

.home-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #073f60;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 35, 56, 0.2);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-banner-arrow.is-prev { left: 12px; }
.home-banner-arrow.is-next { right: 12px; }

.home-banner-dots {
  min-height: 30px;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 13px;
  overflow: hidden;
}

.home-banner-dots button {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  padding: 0;
  background: #c5cbd0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.home-banner-dots button.is-active {
  width: 24px;
  background: #005b8f;
  border-radius: 999px;
}

body:not(.admin-mode) .logo-strip {
  padding: 22px 0;
  background: #fff;
  border-top: 1px solid #eceff2;
  border-bottom: 1px solid #e1e5e9;
}

body:not(.admin-mode) .logo-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

body:not(.admin-mode) .logo-tile {
  min-height: 78px;
  color: #35424e;
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  box-shadow: none;
  font-size: 0.92rem;
}

body:not(.admin-mode) .section {
  padding-top: 42px;
  padding-bottom: 42px;
}

body:not(.admin-mode) .section-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe3e7;
}

body:not(.admin-mode) .section-title h2 {
  color: #20262d;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 750;
}

body:not(.admin-mode) .section-title a,
body:not(.admin-mode) .read-link {
  color: #017cc2;
}

body:not(.admin-mode) .section-intro {
  display: none;
}

body:not(.admin-mode) #stores {
  width: min(100% - 32px, 1180px);
}

body:not(.admin-mode) .store-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body:not(.admin-mode) .store-card {
  min-width: 0;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: #2c3742;
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 18px;
  box-shadow: 0 4px 13px rgba(15, 35, 50, 0.05);
  text-decoration: none;
  text-align: left;
}

body:not(.admin-mode) .store-card:hover {
  border-color: #017cc2;
  box-shadow: 0 14px 32px rgba(1, 124, 194, 0.14);
}

body:not(.admin-mode) .store-logo.dynamic-store-logo {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  color: #017cc2;
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 16px;
  box-shadow: none;
}

.dynamic-store-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 6px;
  background: #fff;
  object-fit: contain;
}

body:not(.admin-mode) .store-card h3 {
  margin: 0;
  color: #17344b;
  font-size: 1.08rem;
  line-height: 1.3;
}

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

.store-offer-count {
  align-self: flex-start;
  padding: 6px 10px;
  color: #08704c;
  background: #e9f8f1;
  border: 1px solid #ccecdf;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.store-card-content {
  display: grid;
  gap: 5px;
}

.store-domain {
  margin: 0;
  overflow: hidden;
  color: #778592;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card-bottom {
  padding-top: 15px;
  border-top: 1px solid #edf0f2;
}

.store-best-offer {
  color: #08704c;
  font-size: 0.9rem;
  font-weight: 950;
}

.store-card-cta {
  color: #017cc2;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.store-card-cta b {
  display: inline-block;
  transition: transform 180ms var(--ease);
}

.store-card:hover .store-card-cta b {
  transform: translateX(3px);
}

.store-logo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #017cc2;
  background: linear-gradient(145deg, #f1f9fd, #e8f6f1);
  font-size: 1.15rem;
  font-weight: 950;
}

.store-logo-fallback.is-visible {
  display: grid;
}

body:not(.admin-mode) .deal-band {
  background: #fff;
  border-color: #e0e4e8;
}

body:not(.admin-mode) .deal-finder {
  background: #f8fafc;
  border-color: #e0e4e8;
  border-radius: 4px;
  box-shadow: none;
}

body:not(.admin-mode) .deal-finder input,
body:not(.admin-mode) .deal-finder select,
body:not(.admin-mode) .deal-type-filter,
body:not(.admin-mode) .deal-category-chip {
  border-radius: 3px;
}

body:not(.admin-mode) .deal-type-btn.is-active,
body:not(.admin-mode) .deal-category-chip.is-active,
body:not(.admin-mode) .deal-category-chip:hover {
  background: #017cc2;
  border-color: #017cc2;
}

body:not(.admin-mode) .deal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.admin-mode) .deal-card {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(15, 35, 50, 0.07);
}

body:not(.admin-mode) .deal-card:hover {
  border-color: #b9dced;
  box-shadow: 0 12px 26px rgba(1, 124, 194, 0.14);
}

body:not(.admin-mode) .deal-media,
body:not(.admin-mode) .deal-media.green,
body:not(.admin-mode) .deal-media.amber {
  min-height: 126px;
  color: #fff;
  background: linear-gradient(135deg, #07557f, #0197cf);
}

body:not(.admin-mode) .deal-media strong {
  font-size: 1.65rem;
}

.deal-product-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  width: 74px;
  height: 54px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(15, 35, 50, 0.2);
}

body:not(.admin-mode) .deal-content {
  gap: 10px;
  padding: 16px;
}

body:not(.admin-mode) .deal-content .button-primary {
  background: #017cc2;
  border-radius: 3px;
}

body:not(.admin-mode) .store-name,
body:not(.admin-mode) .deal-title-link:hover {
  color: #017cc2;
}

body:not(.admin-mode) #feature-post,
body:not(.admin-mode) #categories,
body:not(.admin-mode) #faq {
  width: min(100% - 32px, 1180px);
}

body:not(.admin-mode) .feature-post-card,
body:not(.admin-mode) .feedback-card,
body:not(.admin-mode) .faq-item {
  border-radius: 4px;
}

body:not(.admin-mode) .category-cloud a {
  color: #35424e;
  background: #fff;
  border: 1px solid #dfe3e7;
  border-radius: 3px;
}

body:not(.admin-mode) .category-cloud a:hover {
  color: #fff;
  background: #017cc2;
  border-color: #017cc2;
}

body:not(.admin-mode) .site-footer {
  background: #073d57;
  border-top: 0;
}

body:not(.admin-mode) .footer-grid {
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 34px;
}

@media (max-width: 980px) {
  body:not(.admin-mode) .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-mode) .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-mode) .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  body:not(.admin-mode) .header-inner {
    padding: 22px 0 26px;
  }

  body:not(.admin-mode) .language-switch {
    position: static;
  }

  body:not(.admin-mode) .header-actions {
    align-items: center;
  }

  body:not(.admin-mode) .search-box {
    min-height: 50px;
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  body:not(.admin-mode) .search-box input,
  body:not(.admin-mode) .search-box button {
    min-height: 50px;
  }

  .home-feature-banner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .home-feature-banner img {
    min-height: 180px;
    max-height: 220px;
  }

  .home-banner-copy {
    min-height: 245px;
    padding: 36px 42px;
  }

  .home-banner-arrow {
    top: 68%;
    width: 36px;
    height: 36px;
  }

  .home-store-rail {
    margin-inline: -4px;
  }

  body:not(.admin-mode) .store-grid,
  body:not(.admin-mode) .deal-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-mode) .store-card {
    min-height: 220px;
    padding: 18px;
  }

  body:not(.admin-mode) .store-logo.dynamic-store-logo {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  body:not(.admin-mode) .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.store-coupon-card.is-search-hidden,
.store-coupon-group.is-search-hidden {
  display: none !important;
}

/* Keep the classic coupon-store product grid inside the new homepage shell. */
body:not(.admin-mode) #deals .container {
  width: min(calc(100% - 32px), 1340px);
}

body:not(.admin-mode) #deals .deal-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body:not(.admin-mode) #deals .deal-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #d9dee3;
  border-radius: 2px;
  box-shadow: none;
  overflow: hidden;
}

body:not(.admin-mode) #deals .deal-card:hover {
  border-color: #aeb8c1;
  box-shadow: 0 5px 16px rgba(19, 38, 53, 0.1);
  transform: none;
}

body:not(.admin-mode) #deals .deal-media,
body:not(.admin-mode) #deals .deal-media.green,
body:not(.admin-mode) #deals .deal-media.amber {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 210px;
  padding: 0;
  place-items: center;
  color: #263746;
  background: #f7f8f9;
  border-bottom: 1px solid #e5e8eb;
}

body:not(.admin-mode) #deals .deal-media::after {
  display: none;
}

body:not(.admin-mode) #deals .deal-product-logo {
  position: static;
  z-index: 0;
  width: 100%;
  height: 210px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.deal-product-placeholder {
  display: grid;
  width: 100%;
  height: 210px;
  padding: 24px 16px;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(145deg, #f8fafb, #eaf1f5);
}

body:not(.admin-mode) #deals .deal-product-placeholder strong {
  max-width: none;
  color: #087eb8;
  font-size: 3rem;
  line-height: 1;
}

body:not(.admin-mode) #deals .deal-product-placeholder small {
  color: #556574;
  font-size: 0.72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.deal-flash {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #fff;
  background: #ff4d56;
  border-radius: 50%;
  font-size: 0.65rem;
}

body:not(.admin-mode) #deals .deal-content {
  display: flex;
  min-height: 205px;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 10px 8px 8px;
}

body:not(.admin-mode) #deals .brand-highlight,
body:not(.admin-mode) #deals .product-desc,
body:not(.admin-mode) #deals .product-link {
  display: none;
}

body:not(.admin-mode) #deals .deal-content h3 {
  min-height: 84px;
  color: #101820;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
}

.deal-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

body:not(.admin-mode) #deals .price-line {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

body:not(.admin-mode) #deals .price-line small {
  color: #ef3943;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-mode) #deals .price-line span {
  color: #00875a;
  font-size: 0.98rem;
  font-weight: 500;
}

.deal-favorite {
  padding: 2px;
  color: #71808b;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.deal-favorite:hover,
.deal-favorite.is-active {
  color: #ff4d56;
}

body:not(.admin-mode) #deals .deal-content .claim-btn {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  color: #596775;
  background: #fff;
  border: 1px solid #82909c;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 500;
}

body:not(.admin-mode) #deals .deal-detail-link {
  color: #087dbd;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

body:not(.admin-mode) #deals .deal-detail-link:hover,
body:not(.admin-mode) #deals .deal-detail-link:focus-visible {
  color: #075f91;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:not(.admin-mode) #deals .deal-content .claim-btn:hover {
  color: #fff;
  background: #087eb8;
  border-color: #087eb8;
}

@media (max-width: 1180px) {
  body:not(.admin-mode) #deals .deal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body:not(.admin-mode) #deals .deal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body:not(.admin-mode) #deals .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-mode) #deals .deal-media,
  body:not(.admin-mode) #deals .deal-media.green,
  body:not(.admin-mode) #deals .deal-media.amber,
  body:not(.admin-mode) #deals .deal-product-logo,
  .deal-product-placeholder {
    min-height: 150px;
    height: 150px;
  }
}

/* Professional public-page polish: motion, focus, and lightweight feedback. */
::selection {
  color: #fff;
  background: #087dbd;
}

section[id] {
  scroll-margin-top: 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 120;
  padding: 11px 16px;
  color: #fff;
  background: #073d57;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 61, 87, 0.24);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #07557f, #13a76b);
  box-shadow: 0 0 12px rgba(19, 167, 107, 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #07557f, #0197cf);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(7, 85, 127, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 16px 36px rgba(7, 85, 127, 0.36);
  transform: translateY(-2px) scale(1.02);
}

.noscript-note {
  margin: 0;
  padding: 12px 20px;
  color: #6b4a00;
  background: #fff4d5;
  border-top: 1px solid #f4d47a;
  text-align: center;
  font-weight: 750;
}

.footer-disclosure {
  max-width: 360px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.65;
}

.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

body:not(.admin-mode) .section-title h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 9px;
  background: linear-gradient(90deg, #017cc2, #13a76b);
  border-radius: 999px;
  content: "";
  transition: width 240ms var(--ease);
}

body:not(.admin-mode) section:hover > .section-title h2::after,
body:not(.admin-mode) section:hover > .container > .section-title h2::after {
  width: 68px;
}

body:not(.admin-mode) .home-feature-banner,
body:not(.admin-mode) .feature-post-card,
body:not(.admin-mode) .store-card,
body:not(.admin-mode) #deals .deal-card,
body:not(.admin-mode) .faq-item {
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

body:not(.admin-mode) .home-feature-banner:hover,
body:not(.admin-mode) .feature-post-card:hover {
  box-shadow: 0 24px 54px rgba(15, 35, 50, 0.2);
  transform: translateY(-3px);
}

body:not(.admin-mode) .feature-post-media {
  overflow: hidden;
}

body:not(.admin-mode) .feature-post-media img,
body:not(.admin-mode) #deals .deal-product-logo,
body:not(.admin-mode) .store-card img {
  transition: transform 320ms var(--ease);
}

body:not(.admin-mode) .feature-post-card:hover .feature-post-media img {
  transform: scale(1.035);
}

body:not(.admin-mode) #deals .deal-card:hover .deal-product-logo,
body:not(.admin-mode) .store-card:hover img {
  transform: scale(1.06);
}

body:not(.admin-mode) .home-banner-action,
body:not(.admin-mode) .read-link,
body:not(.admin-mode) .claim-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body:not(.admin-mode) .home-banner-action::after,
body:not(.admin-mode) .claim-btn::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  content: "";
  transform: translateX(-120%);
  transition: transform 420ms var(--ease);
}

body:not(.admin-mode) .home-banner-action:hover::after,
body:not(.admin-mode) .claim-btn:hover::after {
  transform: translateX(120%);
}

@media (hover: hover) {
  body:not(.admin-mode) .store-card:hover,
  body:not(.admin-mode) #deals .deal-card:hover,
  body:not(.admin-mode) .faq-item:hover {
    border-color: rgba(1, 124, 194, 0.35);
    box-shadow: 0 16px 34px rgba(15, 35, 50, 0.12);
    transform: translateY(-4px);
  }
}

@media (max-width: 680px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress span,
  .back-to-top,
  body:not(.admin-mode) .home-feature-banner,
  body:not(.admin-mode) .feature-post-card,
  body:not(.admin-mode) .store-card,
  body:not(.admin-mode) #deals .deal-card,
  body:not(.admin-mode) .faq-item,
  body:not(.admin-mode) .feature-post-media img,
  body:not(.admin-mode) #deals .deal-product-logo,
  body:not(.admin-mode) .store-card img {
    transition: none !important;
  }
}

/* Complete store directory */
body:not(.admin-mode) #stores .section-intro {
  display: block;
  max-width: 760px;
  margin: -6px 0 22px;
  color: #687785;
  line-height: 1.65;
}

.store-directory-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px;
  background: linear-gradient(135deg, #f7fbfd, #f2faf6);
  border: 1px solid #dfe8ed;
  border-radius: 14px;
}

.store-directory-search {
  width: min(100%, 520px);
  display: grid;
  gap: 7px;
  color: #234057;
  font-size: 0.76rem;
  font-weight: 900;
}

.store-directory-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  color: #17344b;
  background: #fff;
  border: 1px solid #ccd9e1;
  border-radius: 9px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.store-directory-search input:focus {
  border-color: #017cc2;
  box-shadow: 0 0 0 4px rgba(1, 124, 194, 0.1);
}

.store-directory-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  color: #637482;
  font-size: 0.82rem;
}

.store-directory-summary strong {
  color: #08704c;
  font-weight: 950;
}

.store-card[hidden] {
  display: none !important;
}

.store-directory-empty {
  padding: 30px;
  color: #667785;
  background: #fff;
  border: 1px dashed #cdd9e0;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
}

.store-directory-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.store-show-all {
  min-height: 46px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #07557f, #017cc2);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(1, 124, 194, 0.2);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.store-show-all:hover {
  box-shadow: 0 14px 30px rgba(1, 124, 194, 0.28);
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  .store-directory-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .store-directory-summary {
    justify-content: flex-start;
  }
}

body:not(.admin-mode) #deals .section-title {
  margin-bottom: 18px;
}

/* CMS system modules: file manager, users and site settings. */
.admin-mode .cms-system-nav {
  margin-top: 0;
}

.admin-mode .cms-system-label {
  order: 0;
}

.admin-mode .cms-system-nav + .cms-system-label {
  display: none;
}

.admin-user-toolbar,
.cms-settings-form {
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce2e8;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(21, 32, 43, 0.05);
}

.cms-inline-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr 1fr 1fr auto;
  gap: 10px;
}

.cms-inline-form input,
.cms-inline-form select,
.cms-settings-form input,
.cms-settings-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: #24313d;
  background: #fff;
  border: 1px solid #cad3dc;
  border-radius: 3px;
}

.cms-settings-form textarea {
  resize: vertical;
}

.cms-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.cms-setting-upload {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cms-setting-upload input[type="file"] {
  max-width: 420px;
}

.cms-setting-upload img {
  width: auto;
  max-width: 220px;
  height: 76px;
  padding: 5px;
  object-fit: contain;
  background: #f4f7f9;
  border: 1px solid #d8e0e6;
  border-radius: 4px;
}

.cms-table-sub {
  display: block;
  margin-top: 3px;
  color: #7a8793;
  font-size: 0.72rem;
}

.cms-status-active {
  color: #16864c;
  font-weight: 700;
}

.cms-status-disabled {
  display: inline-block;
  padding: 4px 8px;
  color: #8b3b3b;
  background: #fdeaea;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.project-media-thumb {
  width: 100%;
  height: 150px;
  margin-bottom: 12px;
  object-fit: contain;
  background: #f2f5f7;
  border: 1px solid #e0e5e9;
  border-radius: 4px;
}

.bulk-deal-import {
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid #d7e0e7;
  border-radius: 4px;
}

.bulk-deal-import summary {
  padding: 12px 16px;
  color: #087cf0;
  font-weight: 800;
  cursor: pointer;
}

.bulk-deal-import form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid #e4e9ed;
}

.bulk-deal-import label {
  display: grid;
  gap: 7px;
  color: #313c47;
  font-weight: 700;
}

.bulk-deal-import input[type="file"] {
  min-height: 39px;
  padding: 6px;
  border: 1px solid #cbd4dc;
  border-radius: 3px;
}

.bulk-deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-deal-import .bulk-auto-assets {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #eef7ff;
  border: 1px solid #cce5ff;
  border-radius: 6px;
}

.bulk-auto-assets input { margin-top: 3px; }
.bulk-auto-assets span { display: grid; gap: 3px; }
.bulk-auto-assets small { color: #617180; font-weight: 500; }

.bulk-preview {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid #d9e2e8;
  border-radius: 7px;
  overflow: hidden;
}

.bulk-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 14px;
  background: #f7fafc;
  color: #4b5c68;
  font-size: 0.86rem;
}

.bulk-preview-summary strong { color: #137849; }
.bulk-preview-table-wrap { max-height: 520px; overflow: auto; }
.bulk-preview-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.bulk-preview-table th { position: sticky; top: 0; z-index: 1; background: #253342; color: #fff; text-align: left; }
.bulk-preview-table th,
.bulk-preview-table td { padding: 10px; border-bottom: 1px solid #e6ebef; vertical-align: middle; }
.bulk-preview-table td img { width: 64px; height: 48px; object-fit: contain; background: #fff; border: 1px solid #e1e7eb; border-radius: 5px; }
.bulk-preview-table td strong,
.bulk-preview-table td small { display: block; }
.bulk-preview-table td small { margin-top: 3px; color: #73808a; }
.bulk-preview-table tr.has-error { background: #fff7f7; }
.bulk-type,
.bulk-status { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.bulk-type { background: #edf2ff; color: #315fc5; }
.bulk-type.code { background: #fff3df; color: #a76200; }
.bulk-status.ok { background: #e6f7ed; color: #137849; }
.bulk-status.error { max-width: 260px; white-space: normal; background: #ffe9e9; color: #b32d2d; }

.admin-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-dashboard-loading { grid-column: 1 / -1; padding: 28px; color: #66727e; background: #fff; border: 1px solid #dce4ea; border-radius: 8px; }
.admin-stat-card { display: grid; gap: 7px; min-height: 126px; padding: 17px; text-align: left; color: #344451; background: linear-gradient(145deg, #fff, #f5f9fc); border: 1px solid #d9e3ea; border-radius: 9px; cursor: pointer; box-shadow: 0 5px 14px rgba(28, 47, 63, 0.05); }
.admin-stat-card:hover { transform: translateY(-2px); border-color: #7db9ee; box-shadow: 0 8px 20px rgba(28, 90, 140, 0.12); }
.admin-stat-card span { color: #60717e; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.admin-stat-card strong { color: #172b3a; font-size: 2rem; line-height: 1; }
.admin-stat-card small { color: #83919b; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-dashboard-block { padding: 17px; background: #fff; border: 1px solid #dce4ea; border-radius: 9px; box-shadow: 0 5px 16px rgba(28, 47, 63, 0.05); }
.admin-dashboard-block-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.admin-dashboard-block-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.admin-dashboard-block-head p { margin: 0; color: #75838d; font-size: 0.82rem; }
#admin-quality-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.admin-quality-item { display: grid; gap: 5px; padding: 12px; background: #f6f9fb; border-radius: 7px; }
.admin-quality-item span { color: #6c7c87; font-size: 0.76rem; }
.admin-quality-item strong { color: #203746; font-size: 1.35rem; }
.admin-quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.admin-quick-actions button { min-height: 54px; padding: 10px 12px; color: #155a91; font-weight: 800; text-align: left; background: #edf7ff; border: 1px solid #cce7fa; border-radius: 7px; cursor: pointer; }
.admin-quick-actions button:hover { background: #dff1ff; }

@media (max-width: 1250px) {
  .admin-dashboard-cards { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 760px) {
  .admin-dashboard-cards,
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  #admin-quality-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-dashboard-block-head { flex-direction: column; }
}

#bulk-deal-result {
  grid-column: 1 / -1;
  margin: 0;
  color: #66727e;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .bulk-deal-import form {
    grid-template-columns: 1fr;
  }
}

.custom-site-logo {
  width: auto;
  max-width: 290px;
  height: 68px;
  object-fit: contain;
}

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

@media (max-width: 680px) {
  .cms-inline-form {
    grid-template-columns: 1fr;
  }

  .cms-settings-form .cms-field-row {
    grid-template-columns: 1fr;
  }
}

body:not(.admin-mode) #deals.reveal {
  opacity: 1;
  transform: none;
}

body:not(.admin-mode) #deals .section-title h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 500;
}

body:not(.admin-mode) #deals .section-title > a {
  color: #00a000;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  text-decoration: none;
}

.deal-slider-dots {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -22px 0 42px;
}

.deal-page-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #c6c6c6;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.deal-page-dot:hover,
.deal-page-dot.is-active {
  background: #292929;
  transform: scale(1.08);
}

.deal-tools {
  margin: 0 0 16px;
}

.deal-tools > summary {
  width: fit-content;
  margin-left: auto;
  padding: 7px 12px;
  color: #53616d;
  background: #fff;
  border: 1px solid #d5dce1;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  list-style-position: inside;
}

.deal-tools[open] > summary {
  margin-bottom: 12px;
}

.trustpilot-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: #65727d;
  background: #fff;
  border: 1px solid #dce3e7;
  text-align: center;
}

.trustpilot-review-meta {
  color: #6b7280;
  font-size: 0.78rem;
}

.feedback-card .source-note {
  color: #008f58;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 620px) {
  .deal-slider-dots {
    max-width: 100%;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 26px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .deal-page-dot {
    min-width: 9px;
    width: 9px;
    height: 9px;
  }
}

/* TeelaCodes-inspired information architecture. This is visual structure
   only; stores, coupons and deals still come from AloCoupon's own API. */
.teela-inspired-theme main { display: flex; flex-direction: column; }
.teela-inspired-theme .hero { order: 1; padding: 44px 0 24px; background: #fff; }
.teela-inspired-theme .is-tool-panel { order: 2; }
.teela-inspired-theme #stores { order: 3; }
.teela-inspired-theme #deals { order: 4; }
.teela-inspired-theme #feature-post { order: 5; }
.teela-inspired-theme #affiliate-preview { order: 6; }
.teela-inspired-theme #categories { order: 7; }
.teela-inspired-theme #faq { order: 8; }
.teela-inspired-theme #newsletter { order: 9; }

.teela-inspired-theme .site-header {
  border-bottom: 1px solid #e7ebef;
  background: #fff;
  box-shadow: 0 2px 12px rgba(32, 48, 64, 0.06);
}
.teela-inspired-theme .header-inner { min-height: 64px; }
.teela-inspired-theme .header-tagline { display: none; }
.teela-inspired-theme .main-nav a,
.teela-inspired-theme .main-nav button { color: #334155; font-weight: 700; }
.teela-inspired-theme .header-actions .search-box { display: none; }

.teela-home-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}
.teela-home-brand .brand-mark { width: 72px; height: 72px; }
.teela-home-brand .brand-ticket-percent { font-size: 2rem; }
.teela-home-logo { width: auto; max-width: min(423px, 90vw); height: 86px; object-fit: contain; }
.teela-home-slogan { margin: 7px 0 24px; color: #111827; font-size: 0.78rem; font-weight: 800; }
.teela-home-search {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0 auto 28px;
  border: 1px solid #d8dee6;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(31, 50, 68, 0.13);
  overflow: hidden;
}
.teela-home-search input {
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  color: #263442;
  background: #fff;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
}
.teela-home-search button {
  min-width: 124px;
  color: #fff;
  background: #087cf0;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}
.teela-inspired-theme .hero-inner { max-width: 1180px; text-align: center; }
.teela-inspired-theme .hero .eyebrow { margin-top: 12px; color: #087cf0; }
.teela-inspired-theme .hero h1 { margin-top: 5px; font-size: clamp(1.9rem, 4vw, 3.25rem); }
.teela-inspired-theme .hero-copy { max-width: 760px; margin-inline: auto; }
.teela-inspired-theme .hero-actions,
.teela-inspired-theme .hero-metrics { display: none; }
.teela-inspired-theme .home-feature-carousel { margin-top: 28px; }
.teela-inspired-theme #stores,
.teela-inspired-theme #feature-post,
.teela-inspired-theme #categories { padding-top: 56px; padding-bottom: 30px; }
.teela-inspired-theme #stores { max-width: 1180px; }
.teela-inspired-theme #stores .section-intro { margin-bottom: 20px; }
.teela-inspired-theme .store-grid { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 12px; }
.teela-inspired-theme .store-card {
  min-height: 180px;
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(33, 50, 66, 0.08);
}
.teela-inspired-theme .deal-band { background: #f4f7f9; }
.teela-inspired-theme .section-title { border-bottom: 1px solid #dce2e8; }
.teela-inspired-theme .section-title h2 { font-size: 1.45rem; }
.teela-inspired-theme .category-cloud a { color: #334155; background: #fff; border: 1px solid #d8dee6; border-radius: 4px; }

@media (max-width: 1050px) {
  .teela-inspired-theme .store-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
}
@media (max-width: 720px) {
  .teela-inspired-theme .main-nav { display: none; }
  .teela-inspired-theme .store-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .teela-home-search button { min-width: 92px; }
  .teela-home-brand .brand-mark { width: 54px; height: 54px; }
}

/* AdminLTE-inspired CMS structure from the reference project. */
.admin-mode .cms-sidebar { background: #343a40; }
.admin-mode .cms-brand { background: #343a40; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24); }
.admin-mode .cms-topbar { color: #4b5563; background: #fff; border-bottom: 1px solid #dee2e6; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.admin-mode .cms-top-actions a,
.admin-mode .cms-top-actions button,
.admin-mode .cms-menu-toggle,
.admin-mode .cms-topbar nav button { color: #4b5563; }
.admin-mode .cms-main { background: #f4f6f9; }
.admin-mode .admin-dashboard-cards { grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 16px; }
.admin-mode .admin-stat-card { position: relative; min-height: 140px; color: #fff; border: 0; border-radius: 4px; box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18); overflow: hidden; }
.admin-mode .admin-stat-card:nth-child(4n + 1) { background: #17a2b8; }
.admin-mode .admin-stat-card:nth-child(4n + 2) { background: #28a745; }
.admin-mode .admin-stat-card:nth-child(4n + 3) { color: #1f2937; background: #ffc107; }
.admin-mode .admin-stat-card:nth-child(4n + 4) { background: #dc3545; }
.admin-mode .admin-stat-card span,
.admin-mode .admin-stat-card strong,
.admin-mode .admin-stat-card small { color: inherit; }
.admin-mode .admin-stat-card strong { font-size: 2.25rem; }
.admin-mode .admin-stat-card small { align-self: end; margin: 8px -17px -17px; padding: 8px 17px; background: rgba(0, 0, 0, 0.12); }
.cms-source-note { margin: 16px 0 12px; padding: 11px 14px; color: #405466; background: #eaf5ff; border-left: 4px solid #087cf0; font-size: 0.82rem; }
.cms-content-type { display: inline-flex; padding: 4px 8px; color: #1769aa; background: #e8f4ff; border-radius: 999px; font-size: 0.72rem; font-weight: 800; }
.cms-content-preview { max-width: 520px; color: #657482; }
.cms-content-preview code,
.category-table code { color: #7a3e9d; background: #f5eef9; border-radius: 3px; padding: 3px 6px; }

@media (max-width: 1050px) {
  .admin-mode .admin-dashboard-cards { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

/* TeelaCodes homepage parity: the public shell keeps AloCoupon data and branding. */
body.teela-inspired-theme:not(.admin-mode) {
  background: #f3f3f3;
}

body.teela-inspired-theme:not(.admin-mode) > .site-header {
  display: none;
}

.teela-inspired-theme .hero {
  padding: 38px 0 30px;
  background: #f3f3f3;
}

.teela-inspired-theme .hero-inner {
  width: min(calc(100% - 40px), 1298px);
  max-width: 1298px;
}

.teela-inspired-theme .teela-home-brand {
  gap: 12px;
  margin-bottom: 2px;
}

.teela-inspired-theme .teela-home-brand .brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 17px;
}

.teela-inspired-theme .teela-home-brand .brand-word {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.teela-inspired-theme .teela-home-slogan {
  margin: 8px 0 48px;
  font-size: 0.72rem;
}

.teela-inspired-theme .teela-home-search {
  width: min(100%, 954px);
  margin-bottom: 54px;
  background: #fff;
  border-color: #cfd4d9;
  box-shadow: 0 9px 18px rgba(23, 35, 48, 0.15);
}

.teela-inspired-theme .teela-home-search input {
  height: 48px;
  min-height: 48px;
}

.teela-inspired-theme .teela-home-search button {
  width: 82px;
  min-width: 82px;
  min-height: 48px;
  color: #2e3d4c;
  background: #e9edf1;
}

.teela-inspired-theme .teela-home-search button::before {
  color: #2e3d4c;
  font-size: 1.35rem;
}

.teela-inspired-theme .hero h1 {
  color: #303b45;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.teela-inspired-theme .hero-copy {
  max-width: 960px;
  margin: 7px auto 20px;
  color: #34414c;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.teela-inspired-theme .home-feature-carousel {
  margin-top: 20px;
}

.teela-inspired-theme .home-store-rail,
.teela-inspired-theme .home-banner-copy {
  display: none;
}

.teela-inspired-theme .home-feature-banner {
  min-height: 0;
  display: block;
  aspect-ratio: 16 / 9;
  background: #e6eaee;
  border-radius: 0;
  box-shadow: none;
}

.teela-inspired-theme .home-feature-banner::after {
  display: none;
}

.teela-inspired-theme .home-banner-visual,
.teela-inspired-theme .home-feature-banner img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  object-fit: cover;
  background: #fff;
}

.teela-inspired-theme .home-feature-banner.uses-product-image img {
  padding: clamp(22px, 4vw, 58px);
  object-fit: contain;
}

.teela-inspired-theme .home-banner-arrow {
  width: 40px;
  height: 40px;
  color: #2d3943;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 12px rgba(20, 31, 42, 0.22);
}

.teela-inspired-theme .home-banner-dots {
  padding-top: 13px;
}

.teela-inspired-theme .home-banner-dots button,
.teela-inspired-theme .deal-page-dot {
  width: 10px;
  height: 10px;
  background: #c5c5c5;
}

.teela-inspired-theme .home-banner-dots button.is-active,
.teela-inspired-theme .deal-page-dot.is-active {
  width: 10px;
  background: #303030;
}

.teela-inspired-theme #stores,
.teela-inspired-theme #deals .container,
.teela-inspired-theme #feature-post,
.teela-inspired-theme #categories {
  width: min(calc(100% - 40px), 1298px);
  max-width: 1298px;
}

.teela-inspired-theme #stores {
  padding-top: 18px;
  padding-bottom: 34px;
}

.teela-inspired-theme #deals {
  padding: 26px 0 42px;
  background: #f3f3f3;
}

.teela-inspired-theme #deals .container {
  margin-inline: auto;
}

.teela-inspired-theme .section-title {
  margin-bottom: 24px;
  padding-bottom: 0;
  border: 0;
}

.teela-inspired-theme .section-title h2 {
  color: #303b45;
  font-size: 1.7rem;
  font-weight: 500;
}

.teela-inspired-theme #deals .section-title a {
  color: #09a51d;
  font-size: 1.35rem;
  font-weight: 500;
}

.teela-inspired-theme #stores .section-title a,
.teela-inspired-theme #stores .section-intro,
.teela-inspired-theme .store-directory-toolbar,
.teela-inspired-theme .store-directory-actions,
.teela-inspired-theme .deal-tools {
  display: none;
}

.horizontal-carousel {
  position: relative;
}

.horizontal-carousel .carousel-track {
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
}

.horizontal-carousel .carousel-track::-webkit-scrollbar {
  display: none;
}

.teela-inspired-theme .store-grid {
  display: flex !important;
  gap: 35px;
  padding: 2px 8px 4px;
  overflow-x: auto;
}

.teela-inspired-theme .store-card {
  min-height: 0;
  flex: 0 0 calc((100% - 210px) / 7);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0;
  color: #303b45;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-snap-align: start;
}

.teela-inspired-theme .store-card:hover {
  border: 0;
  box-shadow: none;
  transform: translateY(-2px);
}

.teela-inspired-theme .store-card-top {
  width: 100%;
  display: block;
}

.teela-inspired-theme .store-logo.dynamic-store-logo,
.teela-inspired-theme .store-card > .store-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 8px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.teela-inspired-theme .store-logo.dynamic-store-logo img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}

.teela-inspired-theme .store-logo-fallback {
  font-size: 1.55rem;
}

.teela-inspired-theme .store-offer-count,
.teela-inspired-theme .store-domain,
.teela-inspired-theme .store-card-bottom {
  display: none;
}

.teela-inspired-theme .store-card-content {
  width: 100%;
  text-align: center;
}

.teela-inspired-theme .store-card h3 {
  margin: 0;
  color: #303b45;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.teela-inspired-theme #deals .deal-grid {
  display: grid !important;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 50px) / 6);
  gap: 10px;
  padding: 2px;
  overflow-x: auto;
}

.teela-inspired-theme #deals .deal-card {
  width: 100%;
  scroll-snap-align: start;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  color: #303b45;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(21, 31, 41, 0.18);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-arrow-prev { left: -18px; }
.carousel-arrow-next { right: -18px; }
.carousel-arrow:disabled { opacity: 0.28; cursor: default; }
.store-horizontal-carousel .carousel-arrow { top: 42%; }

.carousel-page-dots {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 15px 0 0;
  padding: 0;
}

.carousel-page-dots[hidden] {
  display: none;
}

.carousel-page-dots .deal-page-dot {
  flex: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.teela-inspired-theme #feature-post,
.teela-inspired-theme #categories {
  padding-top: 38px;
}

@media (max-width: 980px) {
  .teela-inspired-theme .store-grid { gap: 22px; }
  .teela-inspired-theme .store-card { flex-basis: calc((100% - 88px) / 5); }
  .teela-inspired-theme #deals .deal-grid { grid-auto-columns: calc((100% - 30px) / 4); }
}

@media (max-width: 680px) {
  .teela-inspired-theme .hero { padding-top: 24px; }
  .teela-inspired-theme .hero-inner,
  .teela-inspired-theme #stores,
  .teela-inspired-theme #deals .container,
  .teela-inspired-theme #feature-post,
  .teela-inspired-theme #categories { width: min(calc(100% - 24px), 1298px); }
  .teela-inspired-theme .teela-home-brand .brand-mark { width: 52px; height: 52px; }
  .teela-inspired-theme .teela-home-brand .brand-word { font-size: 2.25rem; }
  .teela-inspired-theme .teela-home-slogan { margin-bottom: 30px; }
  .teela-inspired-theme .teela-home-search { margin-bottom: 34px; }
  .teela-inspired-theme .hero h1 { font-size: 1.65rem; }
  .teela-inspired-theme .hero-copy { font-size: 0.86rem; }
  .teela-inspired-theme .home-feature-banner { aspect-ratio: 16 / 10; }
  .teela-inspired-theme .home-banner-arrow { top: 50%; }
  .teela-inspired-theme .store-grid { gap: 14px; }
  .teela-inspired-theme .store-card { flex-basis: calc((100% - 28px) / 3); }
  .teela-inspired-theme #deals .deal-grid { grid-auto-columns: calc((100% - 10px) / 2); }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.65rem; }
  .carousel-arrow-prev { left: -7px; }
  .carousel-arrow-next { right: -7px; }
  .teela-inspired-theme .section-title h2 { font-size: 1.4rem; }
  .teela-inspired-theme #deals .section-title a { font-size: 1rem; }
}
@media (max-width: 620px) {
  .admin-mode .admin-dashboard-cards { grid-template-columns: 1fr; }
}

/* Sharp banner treatment: high-resolution product art stays in the foreground;
   smaller brand landing art is used only as an intentionally softened backdrop. */
body.teela-inspired-theme:not(.admin-mode) .home-banner-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #edf1f4;
}

body.teela-inspired-theme:not(.admin-mode) .home-banner-visual::before {
  position: absolute;
  z-index: -2;
  inset: -22px;
  background-image: var(--banner-background, none);
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(14px) saturate(0.9);
  opacity: 0.4;
  transform: scale(1.04);
}

body.teela-inspired-theme:not(.admin-mode) .home-banner-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.88));
  content: "";
}

body.teela-inspired-theme:not(.admin-mode) .home-feature-banner.uses-product-image img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(82%, 920px);
  height: 88%;
  max-height: 620px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 20px rgba(25, 35, 45, 0.18));
  image-rendering: auto;
}

@media (max-width: 680px) {
  body.teela-inspired-theme:not(.admin-mode) .home-feature-banner.uses-product-image img {
    max-width: 88%;
    height: 86%;
  }
}

/* Reference-style Feature Post grid, category tags, and green information footer. */
body.teela-inspired-theme:not(.admin-mode) #feature-post {
  width: min(calc(100% - 40px), 1370px);
  max-width: 1370px;
  padding: 34px 0 36px;
}

body.teela-inspired-theme:not(.admin-mode) #feature-post .section-title {
  margin-bottom: 18px;
}

body.teela-inspired-theme:not(.admin-mode) #feature-post .section-title h2,
body.teela-inspired-theme:not(.admin-mode) #categories .section-title h2 {
  color: #27313b;
  font-size: 1.72rem;
  font-weight: 500;
}

.feature-post-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 9px;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-card {
  min-width: 0;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dde2;
  border-radius: 2px;
  box-shadow: none;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-card:hover {
  border-color: #b7c1ca;
  box-shadow: 0 5px 16px rgba(20, 34, 46, 0.1);
  transform: translateY(-2px);
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-media {
  width: 100%;
  height: 210px;
  min-height: 210px;
  display: block;
  overflow: hidden;
  background: #edf1f4;
  text-decoration: none;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-media img,
body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-card.uses-logo .feature-post-media img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-copy {
  min-height: 198px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 9px 8px;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-copy h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-copy h3 a {
  color: #111820;
  text-decoration: none;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-copy p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #27313b;
  font-size: 0.78rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .read-link {
  min-height: 38px;
  display: flex;
  align-items: end;
  justify-content: center;
  margin-top: auto;
  padding-top: 10px;
  color: #506579;
  border-top: 1px solid #d8dde2;
  font-size: 0.93rem;
  font-weight: 400;
  text-decoration: none;
}

.feature-post-actions {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.feature-post-actions[hidden] {
  display: none;
}

.view-all-articles {
  min-height: 40px;
  padding: 8px 14px;
  color: #009fe3;
  background: #fff;
  border: 1px solid #00aeef;
  border-radius: 4px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.view-all-articles:hover,
.view-all-articles:focus-visible {
  color: #fff;
  background: #00aeef;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
  outline: none;
}

body.teela-inspired-theme:not(.admin-mode) #categories {
  width: min(calc(100% - 40px), 1455px);
  max-width: 1455px;
  padding: 46px 0 32px;
}

body.teela-inspired-theme:not(.admin-mode) #categories .section-title {
  margin-bottom: 16px;
}

body.teela-inspired-theme:not(.admin-mode) #categories .category-cloud {
  gap: 8px 10px;
}

body.teela-inspired-theme:not(.admin-mode) #categories .category-cloud a {
  min-height: 38px;
  padding: 0 12px;
  color: #111820;
  background: #fff;
  border: 1px solid #d4dbe1;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 400;
}

body.teela-inspired-theme:not(.admin-mode) .site-footer {
  padding: 34px 0 48px;
  color: #fff;
  background: #075f04;
  border: 0;
}

body.teela-inspired-theme:not(.admin-mode) .site-footer .container {
  width: min(calc(100% - 40px), 1455px);
  max-width: 1455px;
}

body.teela-inspired-theme:not(.admin-mode) .footer-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(280px, 1.5fr);
  gap: 42px;
}

body.teela-inspired-theme:not(.admin-mode) .site-footer h3 {
  margin: 0 0 22px;
  color: #b8d5b8;
  font-size: 0.83rem;
  font-weight: 700;
}

body.teela-inspired-theme:not(.admin-mode) .site-footer a {
  margin-top: 0;
  margin-bottom: 13px;
  color: #fff;
  font-size: 0.84rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
}

body.teela-inspired-theme:not(.admin-mode) .footer-social-links a {
  min-width: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

body.teela-inspired-theme:not(.admin-mode) .footer-social-links a[aria-label="LinkedIn"] {
  font-size: 1.35rem;
}

body.teela-inspired-theme:not(.admin-mode) .footer-language {
  max-width: 360px;
  margin: 18px 0 0;
  color: #fff;
  font-size: 0.84rem;
  line-height: 2.15;
}

@media (max-width: 1100px) {
  .feature-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.teela-inspired-theme:not(.admin-mode) .footer-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 680px) {
  body.teela-inspired-theme:not(.admin-mode) #feature-post,
  body.teela-inspired-theme:not(.admin-mode) #categories {
    width: min(calc(100% - 24px), 1455px);
  }
  .feature-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-media {
    height: 160px;
    min-height: 160px;
  }
  body.teela-inspired-theme:not(.admin-mode) .feature-post-grid .feature-post-card { min-height: 370px; }
  body.teela-inspired-theme:not(.admin-mode) .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  body.teela-inspired-theme:not(.admin-mode) .footer-social-column { grid-column: 1 / -1; }
}

body.teela-inspired-theme:not(.admin-mode) #categories { order: 6 !important; }
body.teela-inspired-theme:not(.admin-mode) #faq { display: none; }

body.teela-inspired-theme:not(.admin-mode) #newsletter.newsletter-section {
  position: fixed;
  z-index: 110;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 23, 32, 0.62);
  backdrop-filter: blur(5px);
}
body.teela-inspired-theme:not(.admin-mode) #newsletter.newsletter-section.is-open { display: flex; }
body.teela-inspired-theme:not(.admin-mode) #newsletter .newsletter-shell {
  position: relative;
  width: min(100%, 920px);
  max-height: calc(100vh - 40px);
  margin: 0;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}
.newsletter-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.floating-deal-alert {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  background: #ff7518;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(255, 117, 24, 0.32);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}
.floating-deal-alert:hover { background: #f3680c; transform: translateY(-2px); }
body.newsletter-modal-open { overflow: hidden; }
@media (max-width: 680px) {
  .floating-deal-alert { right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; }
  body.teela-inspired-theme:not(.admin-mode) #newsletter.newsletter-section { padding: 12px; }
  body.teela-inspired-theme:not(.admin-mode) #newsletter .newsletter-shell { max-height: calc(100vh - 24px); }
}

/* Final public overrides use higher specificity than the legacy theme rules. */
html,
body.teela-inspired-theme:not(.admin-mode) {
  max-width: 100%;
  overflow-x: hidden;
}

body.teela-inspired-theme:not(.admin-mode) .teela-home-search {
  grid-template-columns: minmax(0, 1fr) 82px;
}

body.teela-inspired-theme:not(.admin-mode) .teela-home-search input {
  min-width: 0;
}

body.teela-inspired-theme:not(.admin-mode) .teela-home-search button {
  width: 82px;
  min-width: 82px;
  color: #2e3d4c;
  background: #e9edf1;
}

body.teela-inspired-theme:not(.admin-mode) #stores .section-title,
body.teela-inspired-theme:not(.admin-mode) #deals .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  border: 0;
}

body.teela-inspired-theme:not(.admin-mode) .section-title h2::after {
  display: none;
}

body.teela-inspired-theme:not(.admin-mode) #stores .section-intro,
body.teela-inspired-theme:not(.admin-mode) #stores .store-directory-toolbar,
body.teela-inspired-theme:not(.admin-mode) #stores .store-directory-actions,
body.teela-inspired-theme:not(.admin-mode) #deals .deal-tools {
  display: none !important;
}

body.teela-inspired-theme:not(.admin-mode) .horizontal-carousel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body.teela-inspired-theme:not(.admin-mode) .store-grid {
  width: 100%;
  max-width: 100%;
}

body.teela-inspired-theme:not(.admin-mode) #deals .deal-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-template-rows: repeat(2, auto) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: calc((100% - 50px) / 6);
  align-items: stretch;
  overflow-x: auto;
}

body.teela-inspired-theme:not(.admin-mode) #deals .deal-card {
  width: 100%;
  height: 100%;
}

body.teela-inspired-theme:not(.admin-mode) .store-card {
  min-height: 0;
  flex: 0 0 calc((100% - 210px) / 7);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.teela-inspired-theme:not(.admin-mode) .store-card:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.teela-inspired-theme:not(.admin-mode) .store-card-top {
  width: 100%;
  display: block;
}

body.teela-inspired-theme:not(.admin-mode) .store-logo.dynamic-store-logo,
body.teela-inspired-theme:not(.admin-mode) .store-card > .store-logo {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 0 8px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.teela-inspired-theme:not(.admin-mode) .store-card-content {
  padding: 0;
}

body.teela-inspired-theme:not(.admin-mode) .store-card h3 {
  color: #303b45;
  font-size: 0.86rem;
  font-weight: 500;
}

@media (max-width: 980px) {
  body.teela-inspired-theme:not(.admin-mode) .store-card {
    flex-basis: calc((100% - 88px) / 5);
  }
  body.teela-inspired-theme:not(.admin-mode) #deals .deal-grid {
    grid-auto-columns: calc((100% - 30px) / 4);
  }
}

@media (max-width: 680px) {
  body.teela-inspired-theme:not(.admin-mode) .teela-home-search {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  body.teela-inspired-theme:not(.admin-mode) .teela-home-search button {
    width: 58px;
    min-width: 58px;
  }
  body.teela-inspired-theme:not(.admin-mode) .hero h1,
  body.teela-inspired-theme:not(.admin-mode) .hero-copy {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body.teela-inspired-theme:not(.admin-mode) .store-card {
    flex-basis: calc((100% - 28px) / 3);
  }
  body.teela-inspired-theme:not(.admin-mode) #deals .deal-grid {
    grid-auto-columns: calc((100% - 10px) / 2);
  }
}

/* Final admin theme precedence. */
.admin-mode .cms-sidebar { background: #202733; border-right: 1px solid rgba(255,255,255,.06); }
.admin-mode .cms-brand { min-height: 72px; background: #171d27; }
.admin-mode .cms-nav-item.is-active,
.admin-mode .cms-subnav button.is-active { color: #fff; background: rgba(25,171,122,.18); border-left-color: #22c58b; }
@media (max-width:760px) {
  .cms-global-search { order: 3; flex-basis: 100%; max-width: none; }
  .admin-mode .cms-topbar { flex-wrap: wrap; }
  .cms-data-architecture-head { flex-direction: column; }
  .cms-entity-split,
  .cms-entity-secondary { grid-template-columns: 1fr 1fr; }
  .admin-mode .category-toolbar { position: static; }
}

.admin-mode .cms-data-architecture {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(28, 46, 62, .09);
}
.admin-mode .cms-data-architecture::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #0f9f73, #2f80ed, #8b5cf6);
}
.admin-mode .cms-data-architecture-head { align-items: center; }
.admin-mode .cms-data-architecture-head h2 { color: #152b3b; font-size: 1.3rem; letter-spacing: -.02em; }
.admin-mode .cms-kicker { display: inline-flex; padding: 4px 8px; background: #e8f8f2; border-radius: 999px; }
.admin-mode .cms-entity-card { position: relative; min-height: 112px; padding: 16px 18px; background: #fff; border: 1px solid #e0e7ec; border-radius: 10px; box-shadow: 0 5px 14px rgba(33, 50, 65, .06); }
.admin-mode .cms-entity-card span { display: flex; align-items: center; gap: 7px; }
.admin-mode .cms-entity-card span i { display: grid; width: 26px; height: 26px; place-items: center; color: currentColor; background: currentColor; border-radius: 7px; font-size: 0; font-style: normal; opacity: .12; }
.admin-mode .cms-entity-card strong { color: #172b3a; font-size: 1.8rem; line-height: 1; }
.admin-mode .cms-entity-card small { margin-top: 3px; font-size: .72rem; }
.admin-mode .entity-category span { color: #7c3aed; }
.admin-mode .entity-store span { color: #2563eb; }
.admin-mode .entity-offer span { color: #059669; }
.admin-mode .entity-deal span { color: #ea580c; }
.admin-mode .cms-flow-arrow { display: grid; width: 30px; height: 30px; align-self: center; place-items: center; color: #7d8b96; background: #edf2f5; border-radius: 50%; font-size: .9rem; }
.admin-mode .cms-entity-secondary { padding-top: 12px; border-top: 1px dashed #d9e1e6; }
.admin-mode .cms-entity-secondary button { min-height: 58px; padding: 12px 14px; background: rgba(255,255,255,.82); border-radius: 8px; }

/* Store CMS editor mirrors the imported proCMS data structure. */
.admin-mode .cms-store-editor-panel { padding-bottom: 42px; }
.admin-mode .cms-store-actions { position: sticky; top: 0; z-index: 8; margin: -6px 0 14px; padding: 10px 12px; background: rgba(246,248,251,.94); border: 1px solid #dce3e9; border-radius: 8px; backdrop-filter: blur(8px); }
.admin-mode .cms-store-editor { overflow: hidden; padding: 0; background: #fff; border: 1px solid #dce3e9; border-radius: 9px; box-shadow: 0 10px 24px rgba(30,48,64,.07); }
.admin-mode .cms-store-editor .cms-field-row { min-height: 58px; margin: 0; padding: 10px 18px; border-bottom: 1px solid #edf1f4; }
.admin-mode .cms-store-editor .cms-field-row > label:first-child { color: #344656; font-size: .76rem; font-weight: 800; }
.admin-mode .cms-store-editor input,
.admin-mode .cms-store-editor select,
.admin-mode .cms-store-editor textarea { border-color: #d8e0e6; border-radius: 5px; background: #fff; }
.admin-mode .cms-store-editor input:focus,
.admin-mode .cms-store-editor select:focus,
.admin-mode .cms-store-editor textarea:focus { border-color: #2b8fca; box-shadow: 0 0 0 3px rgba(43,143,202,.11); outline: 0; }
.admin-mode .cms-store-source-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.admin-mode .cms-store-source-control input { min-width: 0; }
.admin-mode .cms-field-help { grid-column: 2; margin-top: 5px; color: #768692; font-size: .7rem; }
.admin-mode .cms-store-editor .cms-file-picker { align-items: center; display: grid; grid-template-columns: auto minmax(220px,1fr) auto; gap: 8px; }
.admin-mode .cms-store-editor .cms-file-picker input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-mode .cms-store-editor .cms-file-picker input[type=text] { min-width: 0; width: 100%; }
.admin-mode .cms-store-media-preview { display: flex; flex-wrap: wrap; gap: 18px; }
.admin-mode .cms-store-media-preview > div { display: grid; gap: 5px; }
.admin-mode .cms-store-media-preview small { color: #72828f; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.admin-mode .cms-store-media-preview img { width: 190px; height: 112px; object-fit: contain; background: #f7f9fa; border: 1px solid #dce3e8; border-radius: 8px; }
.admin-mode .cms-store-editor .cms-rich-editor textarea { min-height: 132px; }
.admin-mode .cms-store-editor #store-about { min-height: 220px; }
.admin-mode .cms-form-footer { display: grid; grid-template-columns: minmax(150px, 24%) 1fr; padding: 15px 18px; background: #f8fafb; }
.admin-mode .cms-form-footer .cms-btn { justify-self: start; min-width: 88px; }

@media (max-width: 820px) {
  .admin-mode .cms-store-actions { position: static; }
  .admin-mode .cms-store-source-control { grid-template-columns: 1fr; }
  .admin-mode .cms-store-editor .cms-file-picker { grid-template-columns: 1fr; }
  .admin-mode .cms-field-help { grid-column: 1; }
}

/* Refined public motion system. */
body:not(.admin-mode) .site-header {
  transition:
    min-height 240ms var(--ease),
    background-color 240ms var(--ease),
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

body:not(.admin-mode) .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(151, 171, 186, 0.5);
  box-shadow: 0 10px 30px rgba(15, 35, 50, 0.11);
}

body:not(.admin-mode) .header-inner {
  transition: min-height 240ms var(--ease);
}

body:not(.admin-mode) .site-header.is-scrolled .header-inner {
  min-height: 66px;
}

body:not(.admin-mode) .brand-mark {
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

body:not(.admin-mode) .brand:hover .brand-mark {
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08), 0 8px 20px rgba(19, 167, 107, 0.22);
  transform: rotate(-2deg) translateY(-1px);
}

body:not(.admin-mode) .main-nav a {
  position: relative;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

body:not(.admin-mode) .main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms var(--ease);
}

body:not(.admin-mode) .main-nav a:hover::after,
body:not(.admin-mode) .main-nav a:focus-visible::after {
  transform: scaleX(1);
}

body:not(.admin-mode) .search-box {
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}

body:not(.admin-mode) .search-box:focus-within {
  background: #fff;
  border-color: rgba(19, 167, 107, 0.55);
  box-shadow: 0 0 0 4px rgba(19, 167, 107, 0.1), 0 10px 28px rgba(15, 35, 50, 0.08);
}

body:not(.admin-mode) .button,
body:not(.admin-mode) button,
body:not(.admin-mode) .read-link,
body:not(.admin-mode) .store-card-cta {
  -webkit-tap-highlight-color: transparent;
}

body:not(.admin-mode) .button:active,
body:not(.admin-mode) button:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 80ms;
}

body.motion-ready:not(.admin-mode) .hero {
  --hero-shift: 0px;
  background-position: center calc(50% + var(--hero-shift));
  transition: background-position 80ms linear;
}

body.motion-ready:not(.admin-mode) .hero .teela-home-brand,
body.motion-ready:not(.admin-mode) .hero .teela-home-slogan,
body.motion-ready:not(.admin-mode) .hero .teela-home-search,
body.motion-ready:not(.admin-mode) .hero .eyebrow,
body.motion-ready:not(.admin-mode) .hero h1,
body.motion-ready:not(.admin-mode) .hero .hero-copy,
body.motion-ready:not(.admin-mode) .hero .hero-actions,
body.motion-ready:not(.admin-mode) .hero .hero-metrics,
body.motion-ready:not(.admin-mode) .hero .home-feature-carousel {
  opacity: 0;
  transform: translateY(16px);
}

body.motion-ready.page-loaded:not(.admin-mode) .hero .teela-home-brand,
body.motion-ready.page-loaded:not(.admin-mode) .hero .teela-home-slogan,
body.motion-ready.page-loaded:not(.admin-mode) .hero .teela-home-search,
body.motion-ready.page-loaded:not(.admin-mode) .hero .eyebrow,
body.motion-ready.page-loaded:not(.admin-mode) .hero h1,
body.motion-ready.page-loaded:not(.admin-mode) .hero .hero-copy,
body.motion-ready.page-loaded:not(.admin-mode) .hero .hero-actions,
body.motion-ready.page-loaded:not(.admin-mode) .hero .hero-metrics,
body.motion-ready.page-loaded:not(.admin-mode) .hero .home-feature-carousel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

body.motion-ready.page-loaded:not(.admin-mode) .hero .teela-home-slogan { transition-delay: 50ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero .teela-home-search { transition-delay: 100ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero .eyebrow { transition-delay: 140ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero h1 { transition-delay: 180ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero .hero-copy { transition-delay: 220ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero .hero-actions { transition-delay: 260ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero .hero-metrics { transition-delay: 300ms; }
body.motion-ready.page-loaded:not(.admin-mode) .hero .home-feature-carousel { transition-delay: 340ms; }

body.motion-ready:not(.admin-mode) .motion-card {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 440ms var(--ease),
    transform 440ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
  transition-delay: var(--motion-delay, 0ms), var(--motion-delay, 0ms), 0ms, 0ms;
}

body.motion-ready:not(.admin-mode) .motion-card.motion-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body:not(.admin-mode) .carousel-arrow,
body:not(.admin-mode) .home-banner-arrow {
  transition: opacity 180ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color 180ms var(--ease);
}

body:not(.admin-mode) .carousel-arrow:active,
body:not(.admin-mode) .home-banner-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

@media (hover: hover) {
  body:not(.admin-mode) .carousel-arrow:not(:disabled):hover,
  body:not(.admin-mode) .home-banner-arrow:hover {
    transform: translateY(-50%) scale(1.08);
  }

  body.motion-ready:not(.admin-mode) .store-card.motion-card.motion-card-visible:hover,
  body.motion-ready:not(.admin-mode) .feature-post-card.motion-card.motion-card-visible:hover,
  body.motion-ready:not(.admin-mode) .faq-item.motion-card.motion-card-visible:hover {
    transform: translateY(-4px) scale(1);
  }

  body:not(.admin-mode) .category-cloud a:hover {
    box-shadow: 0 10px 22px rgba(15, 35, 50, 0.1);
    transform: translateY(-2px);
  }
}

body:not(.admin-mode) .category-cloud a {
  transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

body:not(.admin-mode) .faq-item h3,
body:not(.admin-mode) .feature-post-copy h3,
body:not(.admin-mode) .deal-card h3 {
  transition: color 200ms var(--ease);
}

body:not(.admin-mode) .faq-item:hover h3,
body:not(.admin-mode) .feature-post-card:hover h3,
body:not(.admin-mode) .deal-card:hover h3 {
  color: var(--green-dark);
}

@media (max-width: 680px) {
  body.motion-ready:not(.admin-mode) .hero {
    background-position: center;
    transition: none;
  }

  body:not(.admin-mode) .site-header.is-scrolled .header-inner {
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready:not(.admin-mode) .hero,
  body.motion-ready:not(.admin-mode) .hero *,
  body.motion-ready:not(.admin-mode) .motion-card,
  body:not(.admin-mode) .site-header,
  body:not(.admin-mode) .header-inner,
  body:not(.admin-mode) .brand-mark,
  body:not(.admin-mode) .main-nav a::after {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
