/* Hallmark · Sportsbook Editorial Theme · melbet-2027.com
 * Density: sports data & editorial portal
 * Palette: #FFC400 (Melbet Yellow), #111214 (Dark Charcoal), #222326 (Dark Surface), #F2F3F5 (Light Gray Canvas), #FFFFFF (Surfaces)
 * Pre-emit critique: P5 H5 E5 S5 R5 V5
 */

:root {
  --color-accent: #FFC400;
  --color-accent-hover: #E5B000;
  --color-accent-rgb: 255, 196, 0;
  --color-dark-bg: #111214;
  --color-dark-surface: #222326;
  --color-dark-border: #2E3035;
  --color-light-bg: #F2F3F5;
  --color-white: #FFFFFF;
  --color-border: #D9DADD;
  --color-border-subtle: #E6E7EA;
  --color-text: #202124;
  --color-text-muted: #6B6F76;
  --color-text-light: #F4F5F7;
  --color-green: #00B159;
  --color-red: #E53935;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 4px 14px rgba(0, 0, 0, 0.15);
  
  --max-w: 1240px;
}

/* 1. Reset & Layout safety (Hallmark & User Prompt rules) */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-light-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  overflow-x: hidden;
}

/* Rule 3: CSS Grid children must have min-width: 0 */
.layout__main, .layout__side, .portal-grid > *, .cards-grid > *, .hero__grid > * {
  min-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #000;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* 2. Header & Sportsbook Top Navigation */
.site-header {
  background-color: var(--color-dark-bg);
  color: #fff;
  border-bottom: 2px solid var(--color-accent);
}

.top-bar {
  background-color: #0B0C0D;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-dark-border);
  color: #9A9EAB;
}
.top-bar__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar__left, .top-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4CAF50;
  font-weight: 600;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4CAF50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.top-bar__link {
  color: #9A9EAB;
  text-decoration: none;
  transition: color 0.15s;
}
.top-bar__link:hover {
  color: #fff;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-dark-surface);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #D1D4DC;
}

/* Header Main Row */
.header-main {
  padding: 12px 0;
}
.header-main__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search .search-icon {
  position: absolute;
  left: 12px;
  color: #6B6F76;
  pointer-events: none;
}
.header-search input {
  width: 100%;
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 36px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.header-search input:focus {
  border-color: var(--color-accent);
}
.header-search input::placeholder {
  color: #6B6F76;
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.2s;
}

/* Yellow Navigation Bar */
.nav-yellow {
  background-color: var(--color-accent);
  color: #111214;
}
.nav-yellow__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-yellow__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-yellow__list::-webkit-scrollbar {
  display: none;
}
.nav-yellow__list li {
  flex-shrink: 0;
}
.nav-yellow__list a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111214;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.nav-yellow__list a:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
.nav-yellow__list a.is-active {
  background-color: var(--color-dark-bg);
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.nav-yellow__extra {
  flex-shrink: 0;
  padding-left: 12px;
}
.chip-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-dark-bg);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  text-decoration: none;
}
.chip-live .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E53935;
  animation: pulse 1.2s infinite;
}

/* Mobile Nav Drawer */
.mobile-nav {
  background-color: var(--color-dark-surface);
  border-top: 1px solid var(--color-dark-border);
  padding: 16px;
}
.mobile-nav__quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav__list a {
  display: block;
  padding: 8px 12px;
  color: #D1D4DC;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-xs);
}
.mobile-nav__list a:hover, .mobile-nav__list a.is-active {
  background-color: var(--color-dark-bg);
  color: var(--color-accent);
}
.mobile-nav__list .divider {
  height: 1px;
  background-color: var(--color-dark-border);
  margin: 8px 0;
}

/* Sports ticker bar */
.sports-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: 13px;
}
.sports-bar__in {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sports-bar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.sports-bar__items {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.sports-bar__items::-webkit-scrollbar {
  display: none;
}
.sports-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}
.sports-pill:hover {
  background-color: #fff;
  border-color: var(--color-accent);
  color: #000;
}
.sports-pill__tag {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 400;
}

/* Breadcrumbs */
.breadcrumb-wrap {
  padding-top: 10px;
  padding-bottom: 6px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: #9A9EAB;
}
.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--color-text);
  text-decoration: underline;
}
.breadcrumbs span[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}
.btn--accent {
  background-color: var(--color-accent);
  color: #111214;
  border-color: #E5B000;
}
.btn--accent:hover {
  background-color: var(--color-accent-hover);
  color: #000;
}
.btn--ghost-dark {
  background-color: transparent;
  color: #fff;
  border-color: var(--color-dark-border);
}
.btn--ghost-dark:hover {
  background-color: var(--color-dark-surface);
  border-color: #fff;
}
.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background-color: #fff;
  border-color: var(--color-text);
}
.btn--dark {
  background-color: var(--color-dark-bg);
  color: #fff;
  border-color: var(--color-dark-border);
}
.btn--dark:hover {
  background-color: #000;
  color: var(--color-accent);
}
.btn--lg {
  padding: 12px 22px;
  font-size: 15px;
}
.btn--sm {
  padding: 5px 10px;
  font-size: 12px;
}
.btn--block {
  width: 100%;
}

/* 3. Main layout container (Sports Editorial Grid) */
.site-main {
  padding-top: 16px;
  padding-bottom: 80px; /* Space for fixed bonus bar */
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.layout__main {
  min-width: 0;
}
.layout__side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Feature Banner */
.hero-feature {
  background: linear-gradient(135deg, #111214 0%, #1c1d21 100%);
  border-radius: var(--radius-md);
  color: #fff;
  margin-bottom: 24px;
  border: 1px solid var(--color-dark-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.hero-feature__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  align-items: center;
}
.hero-feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 196, 0, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
}
.hero-feature__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px 0;
  color: #FFFFFF;
}
.hero-feature__lead {
  font-size: 14px;
  color: #C0C3CC;
  line-height: 1.55;
  margin: 0 0 20px 0;
}
.hero-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-feature__visual {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-dark-border);
}
.hero-feature__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Secondary Headlines Bar (3 items grid) */
.sub-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.sub-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.sub-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
.sub-card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #B38600;
  margin-bottom: 6px;
}
.sub-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
  color: var(--color-text);
}
.sub-card__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 12px 0;
}
.sub-card__more {
  font-size: 12px;
  font-weight: 700;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Sports Data Table / Live odds banner */
.odds-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.odds-widget__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 8px;
}
.odds-widget__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.odds-table th {
  text-align: left;
  padding: 6px 8px;
  background: var(--color-light-bg);
  color: var(--color-text-muted);
  font-size: 11px;
  text-transform: uppercase;
}
.odds-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.odds-cell {
  background: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-weight: 700;
  color: #111214;
  text-align: center;
  display: inline-block;
  min-width: 44px;
}

/* Promo Code Box with Hallmark Copy Interaction */
.promo-box {
  background-color: var(--color-dark-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.promo-box__info {
  flex: 1;
  min-width: 220px;
}
.promo-box__badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.promo-box__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #fff;
}
.promo-box__desc {
  font-size: 13px;
  color: #C0C3CC;
  margin: 0;
}
.promo-box__interactive {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 14px;
}
.promo-code-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}
.copy-btn {
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.copy-btn:hover {
  background-color: #fff;
}
.copy-btn.copied {
  background: var(--color-green);
  color: #fff;
}

/* Articles Cards Grid (3 columns on desktop, 2 on tablet, 1 on mobile) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-accent);
}
.card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-light-bg);
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card__img {
  transform: scale(1.03);
}
.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #B38600;
  margin-bottom: 6px;
}
.card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
  color: var(--color-text);
}
.card__title a {
  color: inherit;
  text-decoration: none;
}
.card__title a:hover {
  color: #000;
  text-decoration: underline;
}
.card__lead {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 14px 0;
  flex: 1;
}
.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 10px;
  color: var(--color-text-muted);
}
.card__more {
  color: #111214;
  font-weight: 700;
  text-decoration: none;
}
.card__more:hover {
  text-decoration: underline;
}

/* Sidebar Widgets */
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.widget__head {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.widget__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--color-text);
}
.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-list li a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s;
}
.widget-list li a:hover {
  color: #B38600;
}
.widget-list .meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Article Page Details (Rich Text .rt) */
.art {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow-x: hidden;
  overflow-wrap: break-word;
}
.art__head {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.art__h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px 0;
  color: #111214;
}
.art__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.art__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rich text rules */
.rt {
  overflow-x: hidden;
  overflow-wrap: break-word;
  font-size: 15px;
  line-height: 1.7;
  color: #2D3139;
}
.rt h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111214;
  margin: 32px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.rt h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111214;
  margin: 24px 0 10px 0;
}
.rt p {
  margin: 0 0 16px 0;
}
.rt ul, .rt ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}
.rt li {
  margin-bottom: 6px;
}
.rt a {
  color: #0E65C9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rt a:hover {
  color: #000;
}
.rt hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}
.rt-figure, .art-figure {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.rt-figure img, .art-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Rule 7: Tables wrapped with overflow-x: auto */
.table-wrap {
  width: 100%;
  overflow-x: hidden;
  margin: 20px 0;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.table-scroll th {
  background: #F4F5F7;
  font-weight: 700;
  color: #111214;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--color-border);
}
.table-scroll td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.table-scroll tr:nth-child(even) td {
  background-color: #FAFAFB;
}

/* Similar articles section */
.similar-section {
  margin-top: 40px;
  border-top: 2px solid var(--color-accent);
  padding-top: 24px;
}
.similar-section__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #111214;
}

/* 4. Footer */
.site-footer {
  background-color: var(--color-dark-bg);
  color: #C0C3CC;
  padding: 48px 0 24px 0;
  border-top: 1px solid var(--color-dark-border);
  font-size: 13px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer__brand {
  min-width: 0;
}
.footer__logo-link {
  display: inline-block;
  margin-bottom: 14px;
}
.footer__desc {
  font-size: 13px;
  line-height: 1.6;
  color: #8C909B;
  margin: 0 0 16px 0;
}
.footer__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-badge {
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 11px;
  color: #D1D4DC;
}
.footer__nav-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin: 0 0 16px 0;
}
.footer__nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__nav-links a {
  color: #C0C3CC;
  text-decoration: none;
  transition: color 0.15s;
}
.footer__nav-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__bottom {
  border-top: 1px solid var(--color-dark-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 760px;
  color: #727680;
  font-size: 11px;
  line-height: 1.5;
}
.age-badge {
  background-color: #E53935;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.footer__copyright {
  text-align: right;
  color: #727680;
  font-size: 12px;
}
.footer__note {
  margin: 4px 0 0 0;
  font-size: 11px;
}

/* 5. Fixed bonus bar at bottom (User prompt requirement) */
.fixed-bonus-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-dark-bg);
  border-top: 2px solid var(--color-accent);
  color: #fff;
  padding: 10px 0;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.fixed-bonus-bar.is-hidden {
  transform: translateY(100%);
}
.fixed-bonus-bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fixed-bonus-bar__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bonus-tag {
  background-color: var(--color-accent);
  color: #111214;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}
.bonus-title {
  font-size: 14px;
  color: #fff;
}
.fixed-bonus-bar__action {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bonus-action-btn {
  padding: 8px 20px;
  font-size: 14px;
}
.fixed-bonus-bar__close {
  background: none;
  border: none;
  color: #9A9EAB;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.fixed-bonus-bar__close:hover {
  color: #fff;
}

/* 6. Responsive Breakpoints (320px, 375px, 425px, 768px, 1024px, 1440px) */

@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout__side {
    margin-top: 20px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sub-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* Rule 6: flex containers with horizontal layout switch to column */
  .header-main__in {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .burger {
    display: flex;
  }
  .nav-yellow {
    display: none; /* Collapses into mobile-nav */
  }
  .hero-feature__in {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .hero-feature__title {
    font-size: 22px;
  }
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sub-features {
    grid-template-columns: minmax(0, 1fr);
  }
  .promo-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .promo-box__interactive {
    width: 100%;
    justify-content: space-between;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__bottom {
    flex-direction: column;
  }
  .footer__copyright {
    text-align: left;
  }
  .fixed-bonus-bar__in {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .fixed-bonus-bar__info {
    justify-content: center;
  }
  .fixed-bonus-bar__action {
    justify-content: center;
  }
  .art {
    padding: 16px;
  }
  .art__h1 {
    font-size: 24px;
  }
}

@media (max-width: 425px) {
  .hero-feature__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-feature__actions .btn {
    width: 100%;
  }
  .art__meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 320px) {
  .brand__logo {
    height: 22px;
  }
  .header__actions .btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .art__h1 {
    font-size: 20px;
  }
}
