/* ==========================================================================
   Fælles Fordele — Komplet Stylesheet
   Design: Matcher fforsikring.dk's visuelle identitet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0C1E21;
  --color-primary-light: #1a3a40;
  --color-primary-dark: #060f11;
  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-error: #dc2626;
  --color-error-light: #fef2f2;
  --color-warning: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-section: #f3f6f6;
  --color-text: #0C1E21;
  --color-text-light: #4a5568;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(12,30,33,0.08);
  --shadow-card-hover: 0 8px 24px rgba(12,30,33,0.12);
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --nav-height: 72px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-light); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--color-text); }
h1 { font-size: 2.75rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; overflow: visible; }
.container--narrow { max-width: 720px; }
.container--wide { max-width: 1400px; }
.section { padding: 5rem 0; overflow: visible; }
.section--gray { background: var(--color-bg-section); }
.section--dark { background: var(--color-primary); color: white; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p { color: white; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__logo img { height: 36px; width: auto; }
.nav__logo-badge {
  background: var(--color-bg-section);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 0.5rem 0;
  position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--color-primary); }
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-text);
}
.nav__user-avatar {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Dark Navigation Variant */
.nav--dark {
  background: var(--color-primary);
  border-bottom: none;
  height: auto;
  padding: 0.75rem 0;
}
.nav--dark .nav__inner {
  height: auto;
}
.nav--dark .nav__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.nav--dark .nav__actions {
  margin-left: auto;
  margin-right: 1rem;
}
.nav--dark .nav__logo img {
  height: 36px;
  filter: brightness(0) invert(1);
}
.nav--dark .nav__title h1 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.nav--dark .nav__title p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin: 0;
}

/* Navigation Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 2rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}
.nav__link:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}
.nav__link--active {
  color: white;
  background: rgba(255,255,255,0.15);
}
.nav__link--dropdown svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}
.nav__dropdown {
  position: relative;
}
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 100;
}
.nav__dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.nav__dropdown-item:hover {
  background: var(--color-bg-section);
  color: var(--color-primary);
}
.nav__dropdown-icon {
  font-size: 1rem;
}

/* Dark mode for nav dropdown */
body.dark-mode .nav__dropdown-menu {
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
}
body.dark-mode .nav__dropdown-item {
  color: var(--color-text);
}
body.dark-mode .nav__dropdown-item:hover {
  background: var(--color-bg);
}

/* Centered Navigation Variant */
.nav--centered .nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav--centered .nav__brand {
  flex: 0 0 auto;
  min-width: 200px;
}
.nav--centered .nav__links--centered {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}
.nav--centered .nav__actions {
  flex: 0 0 auto;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

/* Mobile nav links */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
}

/* Hamburger Button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 8px;
  transition: all var(--transition-fast);
}
.nav__hamburger:hover {
  background: rgba(255,255,255,0.2);
}
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-base);
}
@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.mobile-menu.show {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.mobile-menu__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}
.mobile-menu.show .mobile-menu__content {
  transform: translateX(0);
}
.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
}
.mobile-menu__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}
.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-bg-section);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}
.mobile-menu__close:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}
.mobile-menu__close svg {
  width: 20px;
  height: 20px;
}
.mobile-menu__nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}
.mobile-menu__link:hover {
  background: var(--color-bg-section);
}
.mobile-menu__link--active {
  background: var(--color-bg-section);
  color: var(--color-primary);
}
.mobile-menu__link svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}
.mobile-menu__link--active svg {
  color: var(--color-primary);
}
.mobile-menu__icon {
  font-size: 1.1rem;
}
.mobile-menu__divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 0.75rem 0;
}

/* Dark mode for mobile menu */
body.dark-mode .mobile-menu__content {
  background: var(--color-bg);
}
body.dark-mode .mobile-menu__header {
  border-color: var(--color-border);
}
body.dark-mode .mobile-menu__close {
  background: var(--color-bg-section);
}
body.dark-mode .mobile-menu__link:hover {
  background: var(--color-bg-section);
}
body.dark-mode .mobile-menu__link--active {
  background: var(--color-bg-section);
}
body.dark-mode .mobile-menu__divider {
  background: var(--color-border);
}

.nav--dark .nav__user {
  background: rgba(255,255,255,0.15);
  color: white;
}
.nav--dark .nav__user-avatar {
  background: white;
  color: var(--color-primary);
}
.nav--dark .btn--ghost {
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.nav--dark .btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 640px) {
  .nav--dark { padding: 0.6rem 0; }
  .nav--dark .nav__brand { gap: 0.75rem; }
  .nav--dark .nav__logo img { height: 32px; }
  .nav--dark .nav__title h1 { font-size: 1rem; }
  .nav--dark .nav__title p { font-size: 0.75rem; }
}

/* Mobile nav */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: block; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--color-primary); color: white; }
.btn--primary:hover { background: var(--color-primary-light); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--secondary:hover { background: var(--color-primary); color: white; }

.btn--white { background: white; color: var(--color-primary); }
.btn--white:hover { background: var(--color-bg-section); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--color-text-light); padding: 0.5rem 0.75rem; }
.btn--ghost:hover { background: var(--color-bg-section); color: var(--color-text); }

.btn--danger { background: var(--color-error); color: white; }
.btn--danger:hover { background: #b91c1c; }

.btn--sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card__body { padding: 1.5rem; }
.card__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card__title { font-size: 1rem; font-weight: 600; margin: 0; }

/* --------------------------------------------------------------------------
   Hero Section (Landing)
   -------------------------------------------------------------------------- */
.hero { padding: 4rem 0 5rem; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__content { max-width: 540px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--color-success-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: #166534;
  margin-bottom: 1.25rem;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
}
.hero__title { font-size: 2.75rem; margin-bottom: 1.25rem; line-height: 1.15; }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__benefits { list-style: none; margin-bottom: 2rem; }
.hero__benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}
.hero__benefit-icon {
  width: 22px;
  height: 22px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}
.hero__benefit-icon svg { width: 12px; height: 12px; }
.hero__actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.hero__trust {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__trust svg { width: 14px; height: 14px; }

/* Hero cards visual */
.hero__visual { position: relative; }
.hero__cards { position: relative; height: 380px; }
.hero__card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-slow);
  width: 200px;
}
.hero__card:nth-child(1) { top: 10px; left: 0; transform: rotate(-6deg); z-index: 1; }
.hero__card:nth-child(2) { top: 70px; left: 90px; transform: rotate(4deg); z-index: 2; }
.hero__card:nth-child(3) { top: 140px; left: 30px; transform: rotate(-3deg); z-index: 3; }
.hero__card:hover { transform: rotate(0) translateY(-6px) scale(1.03); z-index: 10; box-shadow: var(--shadow-card-hover); }
.hero__card-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 0.6rem;
  background: var(--color-bg-section);
}
.hero__card-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.hero__card-discount { font-size: 0.8rem; font-weight: 600; color: var(--color-success); }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__content { max-width: 100%; }
}
@media (max-width: 640px) {
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Features Grid (Landing)
   -------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}
.feature__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature__text { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; }

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; gap: 1rem; }
}

/* --------------------------------------------------------------------------
   Steps (How it works)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.step { text-align: center; padding: 1.5rem; }
.step__number {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}
.step__title { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step__text { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.7; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Disclaimer Box
   -------------------------------------------------------------------------- */
.disclaimer {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.disclaimer__icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer__icon svg { width: 20px; height: 20px; }
.disclaimer__content {}
.disclaimer__title { font-size: 0.875rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.25rem; }
.disclaimer__text { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }

/* --------------------------------------------------------------------------
   Partner Cards (Tilbud)
   -------------------------------------------------------------------------- */
.partners-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.partners-header h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.partners-header p { color: var(--color-text-light); margin: 0; font-size: 0.95rem; }

/* Partners Toolbar - Search + Filters on same line */
.partners-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.partners-toolbar .search-bar {
  max-width: 320px;
}
.partners-toolbar .partners-filters {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

/* Sort row - right above the grid */
.partners-sort-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.partners-sort-row .partners-count {
  margin: 0;
}
.partners-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.partners-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
}
.partners-filters::-webkit-scrollbar {
  height: 4px;
}
.partners-filters::-webkit-scrollbar-track {
  background: transparent;
}
.partners-filters::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
.filter-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-bg-section); }
.filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.filter-btn .filter-icon { font-size: 1rem; line-height: 1; }
/* Category-specific active colors */
.filter-btn[data-filter="fitness"].active { background: #22c55e; border-color: #22c55e; }
.filter-btn[data-filter="optik"].active { background: #3b82f6; border-color: #3b82f6; }
.filter-btn[data-filter="dagligvarer"].active { background: #f97316; border-color: #f97316; }
.filter-btn[data-filter="livsstil"].active { background: #ec4899; border-color: #ec4899; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

.partner-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--color-primary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.partner-card:hover::before {
  transform: scaleX(1);
}
.partner-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(12,30,33,0.15);
  transform: translateY(-6px) scale(1.01);
}
/* Category accent colors */
.partner-card[data-category="fitness"] { --card-accent: #22c55e; }
.partner-card[data-category="optik"] { --card-accent: #3b82f6; }
.partner-card[data-category="dagligvarer"] { --card-accent: #f97316; }
.partner-card[data-category="livsstil"] { --card-accent: #ec4899; }
.partner-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.partner-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-bg-section);
  flex-shrink: 0;
}
.partner-card__info { flex: 1; min-width: 0; }
.partner-card__name { font-size: 1rem; font-weight: 600; margin-bottom: 0.1rem; }
.partner-card__category {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.partner-card__badge {
  background: var(--color-success-light);
  color: #166534;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.partner-card__discount {
  background: var(--color-primary);
  color: white;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  flex: 1;
}
.partner-card__discount-headline { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.partner-card__discount-text { font-size: 0.8rem; opacity: 0.9; line-height: 1.5; }
.partner-card__disclaimer {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}
.partner-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.partner-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a50 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.partner-card__cta:hover {
  background: linear-gradient(135deg, #1a4a50 0%, var(--color-primary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12,30,33,0.3);
}
.partner-card__cta svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.partner-card__cta:hover svg { transform: translateX(3px); }

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

/* --------------------------------------------------------------------------
   Design Switcher
   -------------------------------------------------------------------------- */
.design-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.design-switcher__btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.design-switcher__btn:hover {
  border-color: var(--color-primary);
}
.design-switcher__btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* --------------------------------------------------------------------------
   DESIGN 1: Hero Image Card
   -------------------------------------------------------------------------- */
.card-hero {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.card-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.card-hero__image-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.card-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-hero__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card-hero__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: white;
  border: 2px solid white;
}
.card-hero__name {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.card-hero__category {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-hero__badge {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.card-hero__badge--new {
  background: #22c55e;
  color: white;
}
.card-hero__content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-hero__offer {
  margin-bottom: 0.75rem;
}
.card-hero__offer-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.card-hero__headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.card-hero__text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.card-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.card-hero__code-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.card-hero__code-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}
.card-hero__code-btn svg {
  width: 18px;
  height: 18px;
}
.card-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a50 100%);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.card-hero__cta:hover {
  background: linear-gradient(135deg, #1a4a50 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
}
.card-hero__cta svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   DESIGN 2: Compact with Large Logo
   -------------------------------------------------------------------------- */
.card-compact {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}
.card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.card-compact__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #22c55e;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.card-compact__top {
  position: relative;
  margin-bottom: 1rem;
}
.card-compact__logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 4px solid var(--color-bg-section);
}
.card-compact__discount-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a50 100%);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.card-compact__content {
  flex: 1;
  margin-bottom: 1rem;
}
.card-compact__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem 0;
  color: var(--color-text);
}
.card-compact__category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.card-compact__text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
}
.card-compact__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-section);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}
.card-compact__cta:hover {
  background: var(--color-primary);
  color: white;
}
.card-compact__cta svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   DESIGN 3: Discount-focused
   -------------------------------------------------------------------------- */
.card-discount {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.card-discount:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: var(--color-primary);
}
.card-discount__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.card-discount__new {
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.card-discount__category-tag {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-bg-section);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}
.card-discount__hero {
  text-align: center;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.card-discount__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1;
}
.card-discount__label {
  font-size: 0.85rem;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.card-discount__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.card-discount__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.card-discount__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}
.card-discount__text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}
.card-discount__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-discount__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}
.card-discount__code span {
  color: var(--color-text-muted);
}
.card-discount__code strong {
  color: var(--color-primary);
  letter-spacing: 1px;
}
.card-discount__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.card-discount__cta:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateY(-2px);
}
.card-discount__cta svg {
  width: 18px;
  height: 18px;
}

/* Dark mode for new card designs */
body.dark-mode .card-hero,
body.dark-mode .card-compact,
body.dark-mode .card-discount {
  background: var(--color-bg-card);
}
body.dark-mode .card-hero__headline,
body.dark-mode .card-compact__name,
body.dark-mode .card-discount__name {
  color: var(--color-text);
}
body.dark-mode .card-discount__hero {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}
body.dark-mode .card-discount__value {
  color: #fde68a;
}
body.dark-mode .card-discount__label {
  color: #fcd34d;
}
body.dark-mode .design-switcher__btn {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text);
}
body.dark-mode .design-switcher__btn.active {
  background: var(--color-primary);
  color: white;
}

/* --------------------------------------------------------------------------
   Legal Grid
   -------------------------------------------------------------------------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.legal-item {
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}
.legal-item__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.legal-item__title svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; }
.legal-item__text { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.65; margin: 0; }

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item__icon svg { width: 20px; height: 20px; }
.faq-item.active .faq-item__icon { transform: rotate(45deg); color: var(--color-primary); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.active .faq-item__answer { max-height: 500px; }
.faq-item__answer-inner { padding-bottom: 1.1rem; font-size: 0.875rem; color: var(--color-text-light); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Login / Auth Pages
   -------------------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-page__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-bg-section);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.auth-card__header {
  padding: 2rem;
  text-align: center;
  background: var(--color-primary);
  color: white;
}
.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.auth-card__logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.auth-card__title { font-size: 1.4rem; margin-bottom: 0.4rem; }
.auth-card__subtitle { font-size: 0.875rem; opacity: 0.9; line-height: 1.5; }
.auth-card__body { padding: 2rem; }

/* Tabs */
.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border-light);
}
.auth-tab {
  flex: 1;
  padding: 0.875rem;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}
.auth-tab:hover { color: var(--color-text); }
.auth-tab.active { color: var(--color-primary); }
.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Forms */
.auth-form { display: none; }
.auth-form.active { display: block; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: white;
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(12,30,33,0.08); }
.form-input::placeholder { color: var(--color-text-muted); }
.form-input.error { border-color: var(--color-error); }
.form-hint { font-size: 0.7rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--color-primary); }
.form-checkbox label { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.45; }
.form-checkbox a { color: var(--color-primary); text-decoration: underline; }
.form-footer { margin-top: 1.5rem; text-align: center; }
.form-footer a { font-size: 0.85rem; color: var(--color-primary); }

/* Alerts */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: none;
}
.alert.show { display: block; }
.alert--error { background: var(--color-error-light); color: var(--color-error); border: 1px solid rgba(220,38,38,0.2); }
.alert--success { background: var(--color-success-light); color: #166534; border: 1px solid rgba(34,197,94,0.2); }

/* --------------------------------------------------------------------------
   Admin Panel
   -------------------------------------------------------------------------- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--color-primary);
  color: white;
  padding: 1.5rem;
}
.admin-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
}
.admin-sidebar__logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.admin-nav { list-style: none; }
.admin-nav__item { margin-bottom: 0.25rem; }
.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.admin-nav__link:hover { background: rgba(255,255,255,0.1); color: white; }
.admin-nav__link.active { background: rgba(255,255,255,0.15); color: white; }
.admin-nav__link svg { width: 18px; height: 18px; }

.admin-main { background: var(--color-bg-section); }
.admin-header {
  background: white;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header__title { font-size: 1.1rem; font-weight: 600; }
.admin-content { padding: 1.5rem; }

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.admin-card__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-card__title { font-size: 1rem; font-weight: 600; margin: 0; }
.admin-card__body { padding: 1.25rem; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}
.admin-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--color-bg-section);
}
.admin-table td { font-size: 0.875rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table__actions { display: flex; gap: 0.5rem; }

.admin-badge {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
}
.admin-badge--active { background: var(--color-success-light); color: #166534; }
.admin-badge--inactive { background: var(--color-bg-section); color: var(--color-text-muted); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.admin-stat__label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 0.25rem; }
.admin-stat__value { font-size: 1.75rem; font-weight: 700; color: var(--color-text); }

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.modal.show { opacity: 1; visibility: visible; }
.modal__content {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}
.modal.show .modal__content { transform: translateY(0); }
.modal__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal__title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.modal__close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.modal__close:hover { color: var(--color-text); }
.modal__body { padding: 1.5rem; }
.modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copyright { font-size: 0.8rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__link { color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.footer__link:hover { color: white; }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-direction: column; gap: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --------------------------------------------------------------------------
   Sort Select
   -------------------------------------------------------------------------- */
.partners-header__sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast);
}
.sort-select:hover { border-color: var(--color-primary); }
.sort-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(12,30,33,0.08); }

@media (max-width: 640px) {
  .partners-header { flex-direction: column; align-items: flex-start; }
  .partners-header__sort { width: 100%; margin-top: 1rem; }
  .sort-select { width: 100%; }
}

/* --------------------------------------------------------------------------
   Checkbox Grid (Profile)
   -------------------------------------------------------------------------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.checkbox-item:hover { background: var(--color-border-light); }
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* Compact variant for many items (15 categories) */
.checkbox-grid--compact {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
}
.checkbox-grid--compact .checkbox-item {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}
@media (max-width: 768px) {
  .checkbox-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .checkbox-grid--compact { grid-template-columns: 1fr; }
}

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

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1100;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Footer Brand
   -------------------------------------------------------------------------- */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .footer__brand { align-items: center; }
}

/* --------------------------------------------------------------------------
   Hero Logo Banner
   -------------------------------------------------------------------------- */
.hero-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a40 100%);
  padding: 2rem 0;
}
.hero-banner__content {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-banner__logo {
  height: 60px;
}
.hero-banner__text h1 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}
.hero-banner__text p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}
@media (max-width: 640px) {
  .hero-banner__content { flex-direction: column; text-align: center; }
  .hero-banner__logo { height: 50px; }
  .hero-banner__text h1 { font-size: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Promo Banner (Horizontal Rotating)
   -------------------------------------------------------------------------- */
.promo-banner {
  padding: 1.5rem 0;
}
.promo-banner__slider {
  position: relative;
  min-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promo-banner__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promo-banner__slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.promo-banner__slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 180px;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a50 100%);
  color: white;
}
.promo-banner__slide-inner.slide--green {
  background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}
.promo-banner__slide-inner.slide--blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}
.promo-banner__slide-inner.slide--orange {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
}
.promo-banner__text {
  flex: 1;
}
.promo-banner__badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.promo-banner__text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: white;
}
.promo-banner__text p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.95rem;
}
.promo-banner__image {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: 2rem;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.5rem;
}
.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.promo-banner__cta:hover {
  transform: translateX(4px);
  color: var(--color-primary);
}
.promo-banner__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.promo-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.promo-banner__dot.active,
.promo-banner__dot:hover {
  background: var(--color-primary);
}
@media (max-width: 640px) {
  .promo-banner__slide-inner { padding: 1rem 1.25rem; height: auto; min-height: 120px; }
  .promo-banner__text h3 { font-size: 1.15rem; }
  .promo-banner__image { width: 70px; height: 70px; margin-left: 1rem; }
}

/* --------------------------------------------------------------------------
   Content with Sidebar Layout
   -------------------------------------------------------------------------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  overflow: visible;
}
.content-main {
  min-width: 0;
  overflow: visible;
}
.content-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: flex-start;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow: visible;
}
/* --------------------------------------------------------------------------
   Sidebar Banner (Vertical) - Promotional Style
   -------------------------------------------------------------------------- */
.sidebar-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 550px;
}
.sidebar-banner__slider {
  position: relative;
  height: 550px;
}
.sidebar-banner__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sidebar-banner__slide.active {
  opacity: 1;
  visibility: visible;
}
.sidebar-banner__slide-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  color: white;
  text-align: center;
}
.sidebar-banner__slide-inner.slide--dark {
  background: linear-gradient(180deg, var(--color-primary) 0%, #1a3a40 100%);
}
.sidebar-banner__slide-inner.slide--green {
  background: linear-gradient(180deg, #166534 0%, #22c55e 100%);
}
.sidebar-banner__slide-inner.slide--blue {
  background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%);
}
.sidebar-banner__image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 0 auto 1.5rem;
}
.sidebar-banner__badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.sidebar-banner__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff !important;
}
.sidebar-banner__text {
  font-size: 1rem;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.5;
}
.sidebar-banner__badge {
  color: #ffffff !important;
}
.sidebar-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: white;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  margin-top: auto;
}
.sidebar-banner__cta:hover {
  transform: scale(1.02);
  color: var(--color-primary);
}
.sidebar-banner__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.sidebar-banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.sidebar-banner__dot.active {
  background: white;
}

/* Legacy support for info slides */
.sidebar-banner__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.sidebar-banner__slide p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}
.sidebar-banner__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}
.sidebar-banner__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* Sidebar Ad */
.sidebar-ad {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a40 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.sidebar-ad__text {
  color: white;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Expiring Soon Badge
   -------------------------------------------------------------------------- */
.partner-card__expiring {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.search-bar {
  position: relative;
  max-width: 400px;
  margin-bottom: 1.5rem;
}
.search-bar__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  background: white;
  transition: all var(--transition-fast);
}
.search-bar__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(12,30,33,0.1);
}
.search-bar__input::placeholder {
  color: var(--color-text-muted);
}
.search-bar__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.search-bar__icon svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Promo Banner Arrows
   -------------------------------------------------------------------------- */
.promo-banner__nav {
  position: absolute;
  top: 90px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
  color: var(--color-primary);
}
.promo-banner__nav:hover {
  background: var(--color-primary);
  color: white;
  scale: 1.1;
}
.promo-banner__nav svg {
  width: 20px;
  height: 20px;
}
.promo-banner__nav--prev { left: -20px; }
.promo-banner__nav--next { right: -20px; }
@media (max-width: 768px) {
  .promo-banner__nav { display: none; }
}

/* --------------------------------------------------------------------------
   Dark Mode
   -------------------------------------------------------------------------- */

/* Dark mode styles */
body.dark-mode {
  --color-bg: #0f1419;
  --color-bg-section: #1a2027;
  --color-text: #e7e9ea;
  --color-text-light: #8b98a5;
  --color-text-muted: #6b7280;
  --color-border: #2f3336;
  --color-border-light: #2f3336;
  background: var(--color-bg);
  color: var(--color-text);
}
body.dark-mode .nav--dark {
  background: #0a1214;
}
body.dark-mode .partner-card {
  background: var(--color-bg-section);
  border-color: var(--color-border);
}
body.dark-mode .partner-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
body.dark-mode .filter-btn {
  background: var(--color-bg-section);
  border-color: var(--color-border);
  color: var(--color-text-light);
}
body.dark-mode .filter-btn:hover {
  background: var(--color-bg);
}
body.dark-mode .search-bar__input {
  background: var(--color-bg-section);
  border-color: var(--color-border);
  color: var(--color-text);
}
body.dark-mode .promo-banner__slide-inner {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
body.dark-mode .sidebar-banner,
body.dark-mode .sidebar-ad {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
body.dark-mode .sort-select {
  background: var(--color-bg-section);
  border-color: var(--color-border);
  color: var(--color-text);
}
body.dark-mode .section--gray {
  background: var(--color-bg);
}
body.dark-mode .promo-banner__nav {
  background: var(--color-bg-section);
  color: var(--color-text);
}
body.dark-mode .promo-banner__nav:hover {
  background: var(--color-primary);
  color: white;
}

/* ==========================================================================
   Mobile Optimization
   ========================================================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav--dark {
    padding: 0.5rem 0;
  }
  .nav--dark .nav__inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav--dark .nav__brand {
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
  }
  .nav--dark .nav__logo img {
    height: 28px;
  }
  .nav--dark .nav__title h1 {
    font-size: 0.95rem;
  }
  .nav--dark .nav__title p {
    font-size: 0.7rem;
    display: none;
  }
  .nav__actions {
    gap: 0.5rem;
  }
}

/* Mobile Promo Banner */
@media (max-width: 768px) {
  .promo-banner {
    padding: 1rem 0;
  }
  .promo-banner__slider {
    min-height: 120px;
  }
  .promo-banner__slide-inner {
    height: auto;
    min-height: 120px;
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  .promo-banner__text {
    order: 2;
  }
  .promo-banner__badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  .promo-banner__text h3 {
    font-size: 1.1rem;
  }
  .promo-banner__text p {
    font-size: 0.8rem;
    display: none;
  }
  .promo-banner__cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  .promo-banner__image {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    order: 1;
  }
  .promo-banner__dots {
    margin-top: 0.75rem;
  }
  .promo-banner__dot {
    width: 6px;
    height: 6px;
  }
}

/* Mobile Header Section */
@media (max-width: 768px) {
  .partners-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .partners-header h2 {
    font-size: 1.25rem !important;
  }
  .partners-header p {
    font-size: 0.85rem;
  }
  .partners-header__sort {
    width: 100%;
  }
  .sort-select {
    width: 100%;
  }
}

/* Mobile Search Bar */
@media (max-width: 768px) {
  .search-bar {
    max-width: 100%;
  }
  .search-bar__input {
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Mobile Filters - Horizontal Scroll */
@media (max-width: 768px) {
  .partners-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .partners-toolbar .search-bar {
    flex: none;
    max-width: 100%;
  }
  .partners-toolbar .partners-filters {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .partners-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .partners-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  .filter-btn .filter-icon {
    font-size: 0.9rem;
  }
  .partners-sort-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Mobile Partner Grid */
@media (max-width: 640px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .partner-card {
    padding: 1rem;
  }
  .partner-card__header {
    gap: 0.75rem;
  }
  .partner-card__logo {
    width: 44px;
    height: 44px;
  }
  .partner-card__name {
    font-size: 0.9rem;
  }
  .partner-card__category {
    font-size: 0.7rem;
  }
  .partner-card__discount {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .partner-card__discount-headline {
    font-size: 0.9rem;
  }
  .partner-card__discount-text {
    font-size: 0.75rem;
  }
  .partner-card__footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .partner-card__valid {
    text-align: center;
  }
  .partner-card__cta {
    justify-content: center;
    width: 100%;
  }
  .partner-card__expiring {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Mobile Sidebar - Show below content */
@media (max-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    position: static;
    margin-top: 2rem;
  }
  .sidebar-banner {
    flex: 1;
    min-height: 200px;
  }
  .sidebar-banner__slider {
    height: 200px;
  }
  .sidebar-banner__slide-inner {
    padding: 1rem;
  }
  .sidebar-banner__image {
    width: 50px;
    height: 50px;
  }
  .sidebar-banner__title {
    font-size: 1rem;
  }
  .sidebar-banner__text {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sidebar-banner__cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  .sidebar-ad {
    flex: 1;
    padding: 1rem;
  }
  .sidebar-ad__text {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
  .content-sidebar {
    flex-direction: column;
  }
  .sidebar-banner {
    min-height: 180px;
  }
  .sidebar-banner__slider {
    height: 180px;
  }
}

/* Mobile Legal & FAQ */
@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .legal-item {
    padding: 1rem;
  }
  .faq-item__question {
    padding: 1rem;
    font-size: 0.9rem;
  }
  .faq-item__answer-inner {
    padding: 1rem;
    font-size: 0.85rem;
  }
}

/* Mobile Footer */
@media (max-width: 640px) {
  .footer {
    padding: 2rem 0;
  }
  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Mobile Modal */
@media (max-width: 640px) {
  .modal__content {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
    max-height: 100vh;
  }
  .modal__body {
    padding: 1rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile User Nav */
@media (max-width: 768px) {
  .nav__user {
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    font-size: 0.8rem;
  }
  .nav__user-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  .btn--sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  .filter-btn,
  .promo-banner__dot,
  .btn,
  .partner-card__cta,
  .nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Prevent horizontal scroll - use clip to not break sticky positioning */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  overflow-y: visible;
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Partner Card Actions & Discount Code Button
   -------------------------------------------------------------------------- */
.partner-card__actions {
  margin-bottom: 0.75rem;
}
.partner-card__code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
}
.partner-card__code-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34,197,94,0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
.partner-card__code-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Discount Code Modal
   -------------------------------------------------------------------------- */
.discount-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.discount-modal.show {
  opacity: 1;
  visibility: visible;
}
.discount-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.discount-modal__content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}
.discount-modal.show .discount-modal__content {
  transform: scale(1);
}
.discount-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast);
}
.discount-modal__close:hover {
  color: var(--color-text);
}
.discount-modal__close svg {
  width: 20px;
  height: 20px;
}
.discount-modal__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.discount-modal__title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.discount-modal__partner {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.discount-modal__discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.discount-modal__code-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-section);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}
.discount-modal__code {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
  letter-spacing: 2px;
}
.discount-modal__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.discount-modal__copy:hover {
  background: var(--color-primary-light);
}
.discount-modal__copy svg {
  width: 14px;
  height: 14px;
}
.discount-modal__hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}
.discount-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a50 100%);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 1rem;
}
.discount-modal__cta:hover {
  background: linear-gradient(135deg, #1a4a50 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  color: white;
}
.discount-modal__cta svg {
  width: 18px;
  height: 18px;
}

/* Dark mode for discount modal */
body.dark-mode .discount-modal__content {
  background: var(--color-bg-section);
}
body.dark-mode .discount-modal__code-box {
  background: var(--color-bg);
  border-color: var(--color-border);
}

/* --------------------------------------------------------------------------
   User Dropdown Menu
   -------------------------------------------------------------------------- */
.nav__user-dropdown {
  position: relative;
}
.nav__user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 100;
}
.nav__user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}
.nav__user-menu-item:hover {
  background: var(--color-bg-section);
}
.nav__user-menu-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}
.nav__user-menu-item--danger {
  color: var(--color-error);
}
.nav__user-menu-item--danger:hover {
  background: var(--color-error-light);
}
.nav__user-menu-item--danger svg {
  color: var(--color-error);
}
.nav__user-menu-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 0.5rem 0;
}

/* Dark mode for dropdown */
body.dark-mode .nav__user-menu {
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
}
body.dark-mode .nav__user-menu-item:hover {
  background: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Smaller Dark Mode Toggle
   -------------------------------------------------------------------------- */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dark-mode-toggle:hover {
  background: rgba(255,255,255,0.2);
}
.dark-mode-toggle svg {
  width: 18px;
  height: 18px;
}
.dark-mode-toggle span {
  display: none;
}

/* --------------------------------------------------------------------------
   Better Mobile Banner
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .promo-banner {
    padding: 0.75rem 0;
  }
  .promo-banner__slider {
    min-height: auto;
    border-radius: var(--radius-md);
  }
  .promo-banner__slide-inner {
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 90px;
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }
  .promo-banner__image {
    width: 50px;
    height: 50px;
    margin: 0;
    order: 0;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    padding: 0.25rem;
  }
  .promo-banner__text {
    order: 1;
    flex: 1;
    text-align: left;
    min-width: 0;
  }
  .promo-banner__badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
    margin-bottom: 0.35rem;
  }
  .promo-banner__text h3 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .promo-banner__text p {
    display: none;
  }
  .promo-banner__cta {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    margin-top: 0.35rem;
  }
  .promo-banner__dots {
    margin-top: 0.5rem;
  }
  .promo-banner__dot {
    width: 5px;
    height: 5px;
  }
}

/* Mobile dark mode toggle */
@media (max-width: 768px) {
  .dark-mode-toggle {
    width: 32px;
    height: 32px;
  }
  .dark-mode-toggle svg {
    width: 16px;
    height: 16px;
  }
}

/* Mobile user dropdown */
@media (max-width: 768px) {
  .nav__user-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1rem;
    min-width: 100%;
    transform: translateY(100%);
  }
  .nav__user-menu.show {
    transform: translateY(0);
  }
  .nav__user-menu-item {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Mobile discount modal */
@media (max-width: 480px) {
  .discount-modal__content {
    padding: 1.5rem;
    margin: 1rem;
  }
  .discount-modal__icon {
    font-size: 2.5rem;
  }
  .discount-modal__code {
    font-size: 1.25rem;
  }
  .discount-modal__code-box {
    flex-direction: column;
    gap: 0.75rem;
  }
  .discount-modal__copy {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination__btn:hover:not(.disabled) {
  background: var(--color-bg-section);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination__btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__btn svg {
  width: 16px;
  height: 16px;
}

.pagination__numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination__num:hover:not(.active) {
  background: var(--color-bg-section);
  border-color: var(--color-primary);
}

.pagination__num.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Dark mode pagination */
body.dark-mode .pagination__btn,
body.dark-mode .pagination__num {
  background: var(--color-bg-section);
  border-color: var(--color-border);
  color: var(--color-text);
}

body.dark-mode .pagination__btn:hover:not(.disabled),
body.dark-mode .pagination__num:hover:not(.active) {
  background: var(--color-bg);
  border-color: var(--color-primary);
}

body.dark-mode .pagination__num.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Mobile pagination */
@media (max-width: 640px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination__btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .pagination__btn span {
    display: none;
  }

  .pagination__numbers {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .pagination__num {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .pagination__dots {
    width: 28px;
    height: 32px;
  }
}
