:root {
  /* FONTS */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* BACKGROUNDS */
  --bg-dark: #18181b;
  --bg-surface: #27272a;
  --bg-card: #3f3f46;
  --bg-secondary: #27272a;
  --bg-header: rgba(39, 39, 42, 0.88);
  --bg-banner-overlay: rgba(63, 63, 70, 0.85);
  --bg-banner-overlay-dark: rgba(24, 24, 27, 0.95);
  --bg-table-row-even: rgba(255, 255, 255, 0.02);
  --bg-badge-cyan: rgba(59, 130, 246, 0.15);
  --bg-meta: #323236;

  /* BORDERS */
  --border: #52525b;
  --border-color: #52525b;
  --border-table: #71717a;
  --border-meta: #3b82f6;
  --iframe-border: none;

  /* NEON & ACCENTS */
  --neon-cyan: #3b82f6;
  --neon-magenta: #ec4899;
  --neon-green: #10b981;
  --neon-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-green-dark: #059669;
  --accent-blue: #3b82f6;
  --brand-red: #f43f5e;

  /* TEXT COLORS */
  --text-main: #f4f4f5;
  --text-muted: #e4e4e7;
  --text-dim: #a1a1aa;
  --text-white: #ffffff;
  --text-black: #000000;
  --text-cyan-light: #93c5fd;
  --text-meta-title: #ffffff;
  --text-meta-value: #3b82f6;
  --text-meta-author: #ec4899;

  /* RADIUS */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-meta: 4px;

  /* GLOWS & SHADOWS */
  --glow-cyan: 0 0 15px rgba(59, 130, 246, 0.35);
  --glow-magenta: 0 0 15px rgba(236, 72, 153, 0.35);
  --glow-green: 0 0 15px rgba(16, 185, 129, 0.35);
  --shadow-black: rgba(0, 0, 0, 0.5);
  --shadow-black-soft: rgba(0, 0, 0, 0.3);
  --shadow-black-deep: rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gtm-noscript-iframe {
  display: none;
  visibility: hidden;
}

/* HEADER & NAV */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 120px;
  height: 60px;
  object-fit: contain;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--neon-cyan);
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-cyan);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
  z-index: 101;
}

.main-nav.active {
  transform: translateY(0);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* HERO BANNER & META INFO */
.hero-banner {
  background: linear-gradient(135deg, var(--bg-banner-overlay) 0%, var(--bg-banner-overlay-dark) 100%),
              radial-gradient(circle at top right, rgba(0, 240, 255, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(255, 0, 127, 0.15), transparent 50%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-black);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
}

.hero-banner h1 {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--text-white), var(--text-cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero-banner p {
  font-size: 1rem;
  color: var(--text-muted);
}

.article-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 14px;
  margin: 16px 0 0px 0;
  background-color: var(--bg-meta);
  border-left: 3px solid var(--border-meta);
  border-radius: var(--radius-meta);
  font-size: 0.875rem;
  color: var(--text-meta-title);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  stroke: var(--accent-blue);
  flex-shrink: 0;
}

.meta-time {
  font-weight: 600;
  color: var(--text-meta-value);
}

.meta-author-name {
  font-weight: 600;
  color: var(--text-meta-author);
}

/* LAYOUT GRID */
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ARTICLE SCOPED STYLES */
.article {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow-black-soft);
}

.casino-widget-iframe {
  width: 100%;
  border: var(--iframe-border);
  display: block;
  overflow: hidden;
}

.article h1, .article h2, .article h3, .article h4 {
  color: var(--text-white);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article h1 { font-size: 1.75rem; }
.article h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  position: relative;
}

.article h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.article h3 { font-size: 1.2rem; color: var(--neon-cyan); }

.article > *:first-child {
  margin-top: 0;
}

.article p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.article img {
  border-radius: 5px;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px var(--shadow-black);
}

.article ul, .article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.article ul li, .article ol li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article ul li::marker {
  color: var(--neon-magenta);
}

.article ol li::marker {
  color: var(--neon-cyan);
  font-weight: 700;
}

.article table {
  display: block;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem auto;
  background-color: var(--bg-surface);
  border-radius: 5px;
  border: 1px solid var(--border-table);
  -webkit-overflow-scrolling: touch;
}

.article table th,
.article table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border: 1px solid var(--border-table);
}

.article table th {
  background-color: var(--bg-secondary);
  color: var(--accent-emerald);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap; 
}

.article table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  width: 20%; 
  min-width: 12ch;
}

.article table tr:last-child td {
  border-bottom: none;
}

.article table tr:nth-child(even) {
  background-color: var(--bg-table-row-even);
}

/* SIDEBAR & WIDGETS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-white);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--neon-magenta);
  box-shadow: var(--glow-magenta);
  border-radius: 2px;
}

.top-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.top-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.top-list-item:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

.top-list-info {
  display: flex;
  flex-direction: column;
}

.top-list-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
}

.top-list-badge {
  font-size: 0.75rem;
  color: var(--neon-gold);
}

.btn-cta {
  background: linear-gradient(135deg, var(--neon-green), var(--accent-green-dark));
  color: var(--text-black);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--glow-green);
  transition: filter 0.2s, transform 0.2s;
}

.btn-cta:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

/* AUTHOR BLOCK */
.author-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px var(--shadow-black-deep);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.author-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.author-badge {
  background: var(--bg-badge-cyan);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-nav-list {
  list-style: none; /* Прибирає маркери списку */
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0;
  margin: 0;
}
.footer-nav-list li {
  list-style-type: none; /* Захист від успадкування стилів bullets з глобальних чи article стилів */
  margin: 0;
  padding: 0;
}

.footer-nav-link {
  color: var(--text-white);   /* Білий колір */
  text-decoration: none;      /* Прибирає підкреслення повністю */
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--neon-cyan);
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-badges a {
  display: inline-block;
  width: 100px;
  height: 40px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}

.footer-badges a:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.footer-badges img {
  width: 100px;
  height: 40px;
  object-fit: contain;
}

.footer-legal {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.775rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.footer-legal p {
  margin-bottom: 0.5rem;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--neon-cyan);
  color: var(--text-black);
}

/* LOGO IMAGE CLASS */
.logo-img {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-red);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.logo-img:hover {
  opacity: 0.7;
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    padding: 0;
    background: transparent;
    border: none;
    width: auto;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .hero-banner {
    padding: 3.5rem 2.5rem;
  }

  .hero-banner h1 {
    font-size: 2.5rem;
  }

  .main-layout {
    display: grid;
    align-items: start;
  }

  .article {
    padding: 2.25rem;
  }

  .author-block {
    flex-direction: row;
    text-align: left;
  }

  .author-meta {
    justify-content: flex-start;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .logo-img {
    font-size: 18px;
    letter-spacing: 0.5px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .logo-img {
    font-size: 16px;
    max-width: 150px;
  }
}