/* ================================================
   662BET - Global Stylesheet
   Target: Bangladesh (bn-BD)
   Visual System: Deep green + Gold accent
   Layout: Aggregation-distribution homepage
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a5632;
  --color-primary-dark: #0d2b19;
  --color-primary-deeper: #071a0f;
  --color-accent: #f0c040;
  --color-accent-hover: #e8a020;
  --color-accent-light: #ffe066;
  --color-white: #ffffff;
  --color-text: #e0e0e0;
  --color-text-muted: #a0a0a0;
  --color-text-dark: #1a1a1a;
  --color-bg-dark: #0a1f12;
  --color-bg-section: #0f2a1a;
  --color-bg-card: #14402a;
  --color-bg-card-hover: #1a5632;
  --color-border: rgba(46,204,113,0.15);
  --color-border-gold: rgba(240,192,64,0.3);
  --color-success: #2ecc71;
  --color-danger: #e74c3c;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-subtle: 0 2px 8px rgba(0,0,0,0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-bn: "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --max-width: 1280px;
  --header-height: 70px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-bn);
  background: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-white);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Info Bar --- */
.top-bar {
  background: var(--color-primary-deeper);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar a {
  color: var(--color-text-muted);
  font-size: 13px;
}

.top-bar a:hover {
  color: var(--color-accent);
}

/* --- Header --- */
.site-header {
  background: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-logo img,
.site-logo svg {
  max-height: 44px;
  width: auto;
  max-width: 160px;
}

/* --- Main Navigation --- */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav li a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: var(--color-accent);
  background: rgba(240,192,64,0.08);
}

/* --- Header CTA Buttons --- */
.header-cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-bn);
}

.btn-register {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-text-dark);
}

.btn-register:hover {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: var(--color-text-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,192,64,0.3);
}

.btn-login {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-login:hover {
  background: rgba(240,192,64,0.1);
  color: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-banner img,
.hero-banner svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Category Shortcuts Grid --- */
.category-shortcuts {
  padding: 40px 0;
  background: var(--color-bg-section);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.shortcut-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.shortcut-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.shortcut-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: 2px solid var(--color-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcut-card .card-icon svg {
  width: 24px;
  height: 24px;
}

.shortcut-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.shortcut-card p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Section Common --- */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-section);
}

.section-dark {
  background: var(--color-primary-deeper);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 12px;
  border-radius: 2px;
}

.section-title-center {
  text-align: center;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 720px;
}

.section-subtitle-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- Content Feed / Games Grid --- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.content-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.content-card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.content-card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.content-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.content-card-body {
  padding: 16px;
}

.content-card-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-white);
}

.content-card-body p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.content-card-body .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Feature Blocks / Distribution Section --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
}

.feature-block:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-card);
}

.feature-block h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.feature-block p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.feature-block .btn {
  margin-top: 16px;
}

/* --- Long-form Content Area --- */
.longform-section {
  padding: 60px 0;
}

.longform-content {
  max-width: 960px;
  margin: 0 auto;
}

.longform-content h2 {
  font-size: 24px;
  margin: 36px 0 16px;
  color: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
}

.longform-content h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--color-accent);
}

.longform-content p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.longform-content ul,
.longform-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.longform-content ul {
  list-style: disc;
}

.longform-content ol {
  list-style: decimal;
}

.longform-content li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

.longform-content a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(240,192,64,0.3);
}

.longform-content a:hover {
  border-bottom-color: var(--color-accent);
}

/* --- FAQ Section --- */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-bn);
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.faq-answer-inner a {
  color: var(--color-accent);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-deeper));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-section h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 14px 36px;
  font-size: 16px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(240,192,64,0.1);
  color: var(--color-accent-light);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-text-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,192,64,0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-deeper);
  border-top: 1px solid var(--color-border);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 8px;
  opacity: 0.5;
}

.footer-brand-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  align-items: flex-start;
}

.footer-contact-label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 55px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
}

.breadcrumb-list {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li a {
  color: var(--color-text-muted);
}

.breadcrumb-list li a:hover {
  color: var(--color-accent);
}

.breadcrumb-list li.active {
  color: var(--color-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.breadcrumb-separator {
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* --- Page Hero (Inner Pages) --- */
.page-hero {
  padding: 50px 0 40px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-bg-dark));
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.page-hero .hero-lead {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 700px;
  line-height: 1.7;
}

/* --- News / Article List --- */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.news-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-bg-section));
  position: relative;
}

.news-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.news-card-body {
  padding: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-body h3 a {
  color: var(--color-white);
}

.news-card-body h3 a:hover {
  color: var(--color-accent);
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Article Detail --- */
.article-header {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-header h1 {
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-content h2 {
  font-size: 22px;
  margin: 32px 0 14px;
  color: var(--color-white);
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
}

.article-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* --- Related Articles --- */
.related-articles {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.related-articles h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

/* --- Sidebar-style Modules --- */
.page-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.sidebar-widget {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 16px;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-link-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-link-list li:last-child {
  border-bottom: none;
}

.sidebar-link-list li a {
  font-size: 14px;
  color: var(--color-text-muted);
}

.sidebar-link-list li a:hover {
  color: var(--color-accent);
}

/* --- Steps / Process --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  margin-top: 8px;
  color: var(--color-accent);
}

.step-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Bonus / Promotion Cards --- */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bonus-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.bonus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
}

.bonus-card h3 {
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.bonus-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.bonus-conditions {
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.bonus-conditions h4 {
  font-size: 14px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.bonus-conditions ul {
  list-style: disc;
  padding-left: 20px;
}

.bonus-conditions li {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}

/* --- Download Section --- */
.download-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-deeper));
  text-align: center;
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 30px auto 0;
}

.platform-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.platform-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.platform-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* --- Policy / Legal Content --- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0;
}

.legal-content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--color-white);
}

.legal-content h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--color-accent);
}

.legal-content p {
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--color-text);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}

.legal-content li {
  margin-bottom: 6px;
  line-height: 1.7;
  font-size: 15px;
}

/* --- 404 Page --- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page h1 {
  font-size: 96px;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.error-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links a {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 14px;
}

.error-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Internal Link Cards --- */
.internal-links-section {
  padding: 40px 0;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.internal-link-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

.internal-link-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.internal-link-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.internal-link-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .shortcuts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-sidebar-layout {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--color-primary-dark);
    border-right: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px;
    transition: left var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.open {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li a {
    padding: 14px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-logo img,
  .site-logo svg {
    max-height: 36px;
  }

  .header-cta .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 22px;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .download-platforms {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .internal-links-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .error-page h1 {
    font-size: 64px;
  }
}

/* --- Utility --- */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* --- Mobile overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}

.nav-overlay.show {
  display: block;
}
