/* Wonaco-inspired (Ireland) — Original Dark Ocean Theme
   Note: selectors preserved to avoid HTML conflicts */

/* New font stack (unique vs Inter) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&family=Space+Grotesk:wght@500;700&display=swap');

:root{
  --bg-0:#050b1a;
  --bg-1:#06142e;
  --bg-2:#08203d;

  --surface-0: rgba(10, 28, 52, 0.72);
  --surface-1: rgba(13, 41, 74, 0.78);
  --surface-2: rgba(18, 55, 98, 0.62);

  --text:#eaf2ff;
  --muted:#a8bdd9;
  --muted-2:#7e97b9;

  /* Wonaco vibe: ocean + gold */
  --ocean:#19b6c7;
  --ocean-2:#0f8fa6;
  --gold:#f5c542;
  --gold-2:#e7a91b;

  /* Ireland nod (subtle) */
  --emerald:#169b62;
  --emerald-2:#0f7f4f;

  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.12);

  --shadow-lg: 0 18px 50px rgba(0,0,0,.45);
  --shadow-md: 0 12px 30px rgba(0,0,0,.35);
  --shadow-sm: 0 6px 16px rgba(0,0,0,.25);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --focus: 0 0 0 3px rgba(25,182,199,.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body{
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Ocean-night background (different from the original) */
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(25,182,199,.12), transparent 55%),
    radial-gradient(900px 600px at 85% 8%, rgba(245,197,66,.08), transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

/* Header */
header{
  background:
    linear-gradient(180deg, rgba(10, 28, 52,.92) 0%, rgba(6, 20, 46,.86) 100%);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;

  border-bottom: 1px solid rgba(25,182,199,.35);
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.header-container{
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.logo-img{
  height: 40px;
  width:auto;
  display:block;
  filter: drop-shadow(0 0 10px rgba(25,182,199,.18));
}

.desktop-nav{
  display:flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

nav a{
  color: rgba(234,242,255,.86);
  text-decoration:none;
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  padding: .45rem 0;
  transition: color .2s ease, background-size .2s ease, filter .2s ease;

  /* Underline animation (different mechanic) */
  background-image: linear-gradient(90deg, var(--ocean) 0%, var(--gold) 100%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
}

.desktop-nav a:hover{
  color: #ffffff;
  background-size: 100% 2px;
  filter: drop-shadow(0 0 10px rgba(25,182,199,.18));
}

/* Hamburger */
.hamburger{
  display:none;
  position:relative;
  width: 34px;
  height: 22px;
  background: transparent;
  border: none;
  cursor:pointer;
  padding:0;
  z-index: 1001;
}

.hamburger span{
  display:block;
  width:100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ocean) 0%, var(--gold) 100%);
  border-radius: 999px;
  transition: transform .25s ease, opacity .2s ease;
  position:absolute;
  left:0;
}

.hamburger span:nth-child(1){ top: 2px; }
.hamburger span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3){ bottom: 2px; }

.hamburger.active span:nth-child(1){
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;

  background: linear-gradient(180deg, rgba(10, 28, 52,.96) 0%, rgba(5, 11, 26,.96) 100%);
  border-bottom: 1px solid rgba(25,182,199,.35);
  padding: 1.8rem;
  flex-direction: column;
  gap: 1rem;

  transform: translateY(-16px);
  opacity:0;
  visibility:hidden;
  transition: all .25s ease;
  z-index:999;

  max-height: calc(100vh - 80px);
  overflow-y:auto;
  overflow-x:hidden;
  box-shadow: 0 22px 34px rgba(0,0,0,.55);
}

.mobile-nav.active{
  transform: translateY(0);
  opacity:1;
  visibility:visible;
}

.mobile-nav > a:not(.btn){
  padding: .9rem 1rem;
  font-size: 1.05rem;
  color: rgba(234,242,255,.95);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  font-weight: 700;
}

.mobile-nav > a:not(.btn):hover{
  background: rgba(25,182,199,.10);
  border-color: rgba(25,182,199,.22);
}

.mobile-buttons{
  display:flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}
.mobile-buttons .btn{ flex:1; width:50%; text-align:center; }

.header-buttons{
  display:flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons — new shape (not pill) */
.btn{
  padding: .78rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.1;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
  text-decoration:none;
  display:inline-block;
  text-align:center;
  white-space: nowrap;
  letter-spacing: .6px;
  text-transform: uppercase;

  box-shadow: var(--shadow-sm);
}

.btn:focus-visible{
  outline: none;
  box-shadow: var(--shadow-sm), var(--focus);
}

.btn-login{
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-color: rgba(25,182,199,.35);
}

.btn-login:hover{
  transform: translateY(-1px);
  border-color: rgba(245,197,66,.45);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.btn-register{
  color: #06142e;
  background: linear-gradient(135deg, var(--gold) 0%, var(--ocean) 55%, var(--emerald) 120%);
  border-color: rgba(255,255,255,.06);
}

.btn-register:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(0,0,0,.40), 0 0 0 1px rgba(25,182,199,.12);
}

/* Main */
main{
  flex:1;
  width:100%;
  padding: 3rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(25,182,199,.10) 0%, transparent 55%),
    radial-gradient(circle at 20% 40%, rgba(245,197,66,.07) 0%, transparent 55%);
}

.main-container{
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-section{
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(25,182,199,.16);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.content-section h1{
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  color: #ffffff;
  margin-bottom: 1.8rem;
  font-size: 2.45rem;
  font-weight: 700;
  text-align:center;
  text-transform: uppercase;
  letter-spacing: -.5px;
}

/* New underline treatment */
.content-section h1::after{
  content:'';
  display:block;
  width: 84px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ocean) 0%, var(--gold) 100%);
  box-shadow: 0 0 18px rgba(25,182,199,.18);
}

.content-section h2{
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  color: rgba(234,242,255,.92);
  margin-top: 2.6rem;
  margin-bottom: 1.1rem;
  font-size: 1.7rem;
  font-weight: 700;
  position: relative;
}

.content-section h2::before{
  content:'';
  display:inline-block;
  width: 10px;
  height: 10px;
  margin-right: .55rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--gold) 100%);
  transform: translateY(-1px);
}

.content-section h3{
  color: rgba(234,242,255,.90);
  margin-top: 1.9rem;
  margin-bottom: .9rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.content-section h4{
  color: var(--muted);
  margin-top: 1.4rem;
  margin-bottom: .85rem;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.content-section p{
  margin-bottom: 1.4rem;
  font-size: 1.04rem;
  line-height: 1.85;
  color: rgba(234,242,255,.82);
}

.content-section a:not(.btn){
  color: var(--ocean);
  text-decoration:none;
  font-weight: 800;
  border-bottom: 1px solid rgba(25,182,199,.45);
  transition: color .15s ease, border-color .15s ease, filter .15s ease;
}

.content-section a:hover{
  color: var(--gold);
  border-color: rgba(245,197,66,.55);
  filter: drop-shadow(0 0 10px rgba(245,197,66,.16));
}

.content-section img{
  display:block;
  margin: 2.6rem auto;
  max-width:100%;
  height:auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-md);
}

/* Content Toggle Button */
.content-toggle-btn{
  display:block;
  margin: 2.2rem auto;
  padding: 1rem 2.6rem;
  background: rgba(255,255,255,.03);
  color: rgba(234,242,255,.92);
  border: 1px solid rgba(25,182,199,.22);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 800;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.content-toggle-btn:hover{
  transform: translateY(-2px);
  background: rgba(25,182,199,.10);
  border-color: rgba(245,197,66,.35);
}

.content-toggle-btn.active{
  color: #04101f;
  background: linear-gradient(135deg, var(--gold) 0%, var(--ocean) 100%);
  border-color: transparent;
}

/* TOC */
.table-of-contents{
  display:none;
  margin: 2rem 0;
  padding: 2.2rem;
  background: linear-gradient(180deg, rgba(6,20,46,.35) 0%, rgba(5,11,26,.35) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25,182,199,.20);
}

.table-of-contents.active{ display:block; }

.table-of-contents .toc-title{
  color: rgba(234,242,255,.92);
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align:center;
}

.toc-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  list-style:none;
  padding:0;
  margin:0;
  counter-reset: toc-counter;
}

.toc-list li{
  counter-increment: toc-counter;
  margin-bottom:0;
  display:flex;
  align-items:center;
  background: rgba(255,255,255,.03);
  padding: .85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.toc-list li:hover{
  transform: translateY(-1px);
  background: rgba(25,182,199,.08);
  border-color: rgba(25,182,199,.20);
}

.toc-list li::before{
  content: counter(toc-counter);
  background: linear-gradient(135deg, var(--ocean) 0%, var(--gold) 100%);
  color: #04101f;
  font-weight: 900;
  font-size: .8rem;
  margin-right: 1rem;
  width: 26px;
  height: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 9px;
  flex-shrink:0;
}

.toc-list a{
  color: rgba(234,242,255,.9);
  text-decoration:none;
  font-size: .95rem;
  border-bottom:none;
  font-weight: 700;
}

.toc-list a:hover{ color: #ffffff; }

.content-section ul,
.content-section ol{
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.content-section ul li,
.content-section ol li{
  margin-bottom: .75rem;
  font-size: 1.03rem;
  color: rgba(234,242,255,.82);
}

/* Reviews */
.reviews-container{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.review-card{
  background: linear-gradient(180deg, var(--surface-2) 0%, rgba(10,28,52,.42) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.review-card:hover{
  transform: translateY(-4px);
  border-color: rgba(245,197,66,.28);
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}

.review-header{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  gap: .5rem;
}

.review-author{
  color: var(--gold);
  font-weight: 900;
  font-size: 1rem;
}

.review-date{
  color: var(--muted-2);
  font-size: .8rem;
  font-style: normal;
}

.review-text{
  color: rgba(234,242,255,.80);
  line-height: 1.6;
  margin:0;
  font-size: .92rem;
  font-style: italic;
}

/* FAQ */
.faq-container{ margin: 3rem 0; }

.faq-item{
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  overflow:hidden;
  background: linear-gradient(180deg, rgba(13,41,74,.55) 0%, rgba(10,28,52,.38) 100%);
}

.faq-question{
  width:100%;
  padding: 1.15rem 1.4rem;
  background-color: transparent;
  border:none;
  text-align:left;
  color: rgba(234,242,255,.95);
  font-size: 1.03rem;
  font-weight: 800;
  cursor:pointer;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 1rem;
  transition: background .18s ease, color .18s ease;
}

.faq-question:hover{
  background: rgba(255,255,255,.03);
}

.faq-question.active{
  background: linear-gradient(90deg, rgba(25,182,199,.16) 0%, rgba(245,197,66,.06) 60%, transparent 100%);
  color: #ffffff;
  border-left: 4px solid var(--ocean);
}

.faq-question h3{
  flex:1;
  margin:0;
  font-size: 1.02rem;
  font-weight: 800;
  color: inherit;
}

.faq-icon{
  font-size: 1.15rem;
  color: var(--muted-2);
  transition: transform .25s ease, color .25s ease;
}

.faq-question.active .faq-icon{
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer{
  max-height: 0;
  overflow:hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1.4rem;
  background: rgba(0,0,0,.18);
}

.faq-answer.active{
  max-height: 1200px;
  padding: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.faq-answer p{
  margin:0;
  color: rgba(168,189,217,.95);
  line-height: 1.75;
  font-size: .96rem;
}

/* Content buttons */
.content-buttons{
  display:flex;
  justify-content:center;
  gap: 1.2rem;
  margin: 3rem 0;
  flex-direction: row;
}

.content-buttons .btn{
  padding: 1.05rem 2.6rem;
  font-size: 1.05rem;
}

/* Table */
.table-wrapper{
  overflow-x:auto;
  margin: 2.5rem 0;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

table{
  width:100%;
  border-collapse: collapse;
  background: rgba(13,41,74,.35);
  min-width: 600px;
}

table tr:first-child{
  background: linear-gradient(90deg, rgba(25,182,199,.18) 0%, rgba(245,197,66,.10) 100%);
  color: rgba(234,242,255,.95);
  font-weight: 900;
}

table tr:not(:first-child):nth-child(even){
  background-color: rgba(0,0,0,.12);
}

table tr:hover:not(:first-child){
  background-color: rgba(25,182,199,.08);
}

table td{
  padding: 1.15rem;
  text-align:left;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(234,242,255,.82);
}

table tr:first-child td{
  border-bottom: 1px solid rgba(25,182,199,.20);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: 1px;
}

/* Footer */
footer{
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(25,182,199,.10), transparent 60%),
    linear-gradient(180deg, #040816 0%, #020617 100%);
  padding: 4rem 2rem;
  text-align:center;
  margin-top:auto;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap: 2rem;
  margin-bottom: 2.3rem;
  flex-wrap: wrap;
}

.footer-links a{
  color: rgba(168,189,217,.70);
  text-decoration:none;
  font-size: .9rem;
  transition: color .15s ease, filter .15s ease;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .5px;
}

.footer-links a:hover{
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(245,197,66,.16));
}

footer p{
  color: rgba(126,151,185,.70);
  font-size: .85rem;
  margin: .5rem 0;
}

/* Responsive */
@media (max-width: 1055px){
  header{ padding: 1rem; }

  .header-container{
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo-img{ height: 34px; }

  .hamburger{ display:flex; }

  .desktop-nav, .desktop-buttons{ display:none; }
  .mobile-nav{ display:flex; }

  main{ padding: 1.5rem 0; }

  .content-section{
    padding: 2rem 1.3rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
  }

  .content-section h1{ font-size: 2rem; }

  .toc-list{ grid-template-columns: 1fr; }

  .reviews-container{
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px){
  .content-section{ padding: 0; }

  .mobile-buttons{ gap: .8rem; }
  .mobile-buttons .btn{ padding: .85rem; font-size: .85rem; border-radius: 12px; }

  .footer-links{ flex-direction: column; gap: 1rem; }

  .content-section h1{ font-size: 1.75rem; }
  .content-section h2{ font-size: 1.45rem; }

  .content-buttons{ flex-direction: column; width:100%; gap: 1rem; }
  .content-buttons .btn{ width:100%; border-radius: 12px; }
}

/* =========================================
   3D RIBBONS (restyled)
   ========================================= */
ol.ribbon-list{
  list-style:none;
  padding:0;
  counter-reset: ribbon;
}

ol.ribbon-list li{
  position:relative;
  background: rgba(13,41,74,.55);
  color: rgba(234,242,255,.86);
  margin-bottom: 14px;
  padding: 14px 14px 14px 62px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

ol.ribbon-list li:hover{
  transform: translateX(4px);
  background: rgba(25,182,199,.10);
  border-color: rgba(25,182,199,.22);
}

ol.ribbon-list li::before{
  counter-increment: ribbon;
  content: counter(ribbon);

  position:absolute;
  left: -10px;
  top: 10px;

  width: 42px;
  height: 30px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--gold) 100%);
  color: #04101f;
  text-align:center;
  line-height: 30px;
  font-weight: 900;

  box-shadow: 2px 8px 18px rgba(0,0,0,.28);
  border-radius: 10px 4px 10px 4px;
}

ol.ribbon-list li::after{
  content:"";
  position:absolute;
  top: 40px;
  left: -10px;
  width:0;
  height:0;
  border-top: 10px solid rgba(15,143,166,.95);
  border-left: 10px solid transparent;
}

/* =========================================
   Neon Steps (restyled)
   ========================================= */
ol.neon-steps{
  list-style:none;
  padding:0;
  counter-reset: neon-counter;
}

ol.neon-steps li{
  position:relative;
  padding-left: 52px;
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(234,242,255,.90);
  transition: transform .2s ease, color .2s ease;
  cursor: default;
}

ol.neon-steps li::before{
  counter-increment: neon-counter;
  content: counter(neon-counter);

  position:absolute;
  left: 0;
  top: -2px;

  width: 34px;
  height: 34px;
  border: 1px solid rgba(25,182,199,.55);
  border-radius: 12px;

  color: var(--gold);
  text-align:center;
  line-height: 34px;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  background: rgba(0,0,0,.10);
  box-shadow: 0 0 0 1px rgba(245,197,66,.10), 0 0 16px rgba(25,182,199,.14);
  transition: .2s ease;
}

ol.neon-steps li:hover::before{
  background: rgba(25,182,199,.14);
  border-color: rgba(245,197,66,.55);
  box-shadow: 0 0 0 1px rgba(245,197,66,.18), 0 0 22px rgba(245,197,66,.18);
}

ol.neon-steps li:hover{
  color: #ffffff;
  transform: translateX(4px);
}

/* Widget Container */
.casino-widget-container {
    background-color: #0b1221;
    border-radius: 16px;
    /* Уменьшаем верхний отступ контейнера до 15px или даже меньше, если нужно */
    padding: 15px 20px 20px 20px; 
    margin: 30px 0;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    /* Защита от "выпадающих" марджинов */
    overflow: hidden; 
}

.widget-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    
    /* !!! ГЛАВНОЕ ИЗМЕНЕНИЕ НИЖЕ !!! */
    /* Добавляем !important, чтобы перебить настройки темы */
    margin-top: 0 !important; 
    padding-top: 0 !important;
    line-height: 1.2; /* Убираем лишнюю высоту строки */
    
    margin-bottom: 15px;
    border-bottom: none;
}

/* Tabs Navigation */
.widget-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
    flex-wrap: wrap;
}

.widget-tab {
    background: transparent;
    border: none;
    color: #8ea5c8;
    padding: 8px 12px; /* Чуть увеличил боковой паддинг для красоты */
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-tab:hover {
    color: #fff;
}

.widget-tab.active {
    background-color: #1c2638;
    color: #ffffff;
}

/* Games Grid (Основная настройка) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    
    /* БЫЛО: gap: 5px 15px; */
    /* СТАЛО: gap: 0px 15px; */
    /* Первое число (0px) - это отступ между рядами (верх/низ). 
       Второе число (15px) - между колонками (лево/право). */
    gap: 0px 15px;
}

.game-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 0 !important; /* Гарантирует отсутствие отступа у картинки */
}

.game-card span {
    /* --- ОСНОВНЫЕ ИЗМЕНЕНИЯ --- */
    /* Используем отрицательный отступ, чтобы "подтянуть" текст вверх к картинке. 
       Попробуйте значения от -5px до -10px, чтобы найти идеальный баланс. */
    margin-top: 8px; 
    
    /* Уменьшаем высоту строки, чтобы у текста было меньше "воздуха" сверху и снизу */
    line-height: 1.2; 
    
    /* Чтобы текст корректно отображался поверх фона/картинки при сильном смещении */
    position: relative; 
    z-index: 2;
    /* -------------------------- */

    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Небольшой отступ слева, если текст слишком прилипает к краю карточки (по желанию) */
    padding: 0 4px; 
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .casino-widget-container {
        padding: 15px;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .widget-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .widget-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Контейнер для кнопки Show More */
.show-more-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px; /* Отступ от игр сверху */
}

/* Сама кнопка-ссылка */
.btn-show-more {
    display: inline-block;
    text-decoration: none;
    background-color: #1c2638; /* Темно-синий фон кнопки */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 30px;
    border-radius: 20px; /* Закругленные края */
    border: 1px solid #2a3b55; /* Тонкая рамка */
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    background-color: #3b82f6; /* Ярко-синий при наведении (можно поменять на другой цвет) */
    border-color: #3b82f6;
    transform: translateY(-2px); /* Легкое всплытие */
}

/* --- Winners Widget Styles --- */

.winners-widget-container {
    background-color: #0b1221;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #fff;
    overflow: hidden;
}

.winners-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.winners-header h2 {
    margin: 0 !important;
    padding: 0;
    font-size: 22px;
    color: #fff;
}

/* Индикатор LIVE */
.live-indicator {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blink-dot {
    width: 6px;
    height: 6px;
    background-color: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* --- Top Row Cards --- */
.top-winners-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px; /* Для скроллбара */
}

/* Стилизация скроллбара */
.top-winners-row::-webkit-scrollbar {
    height: 6px;
}
.top-winners-row::-webkit-scrollbar-thumb {
    background: #1c2638;
    border-radius: 3px;
}

.top-winner-card {
    background: linear-gradient(180deg, #162032 0%, #0f1623 100%);
    border: 1px solid #2a3b55;
    border-radius: 12px;
    min-width: 140px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.top-winner-card:hover {
    transform: translateY(-3px);
    border-color: #4b6cb7;
}

.winner-game-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.winner-name {
    font-size: 12px;
    color: #8ea5c8;
    margin-bottom: 4px;
}

.winner-amount {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #1c2638;
    padding: 4px 10px;
    border-radius: 15px;
    margin-bottom: 5px;
    border: 1px solid #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.winner-game-name {
    font-size: 11px;
    color: #5d7a9e;
}

/* --- Bottom Table Fix --- */

.winners-table-wrapper {
    background-color: #101929;
    border-radius: 12px;
    border: 1px solid #1c2638;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
}

.winners-table-wrapper::-webkit-scrollbar {
    height: 6px;
}
.winners-table-wrapper::-webkit-scrollbar-track {
    background: #0b1221;
    border-radius: 3px;
}
.winners-table-wrapper::-webkit-scrollbar-thumb {
    background: #2a3b55;
    border-radius: 3px;
}

.winners-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px; 
}

.winners-table td, 
.winners-table th {
    white-space: nowrap;
    padding: 12px 15px; 
    border-bottom: 1px solid #1c2638;
    color: #fff;
    vertical-align: middle;
}

/* Чересстрочная раскраска */
.winners-table tbody tr:nth-child(even) {
    background-color: #0d1420;
}
.winners-table tbody tr:hover {
    background-color: #1c2638;
}

/* Ячейки таблицы */
.game-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-name {
    font-weight: 600;
    color: #3b82f6; 
    cursor: pointer;
}

.game-name:hover {
    text-decoration: underline;
}

.multiplier {
    color: #8ea5c8;
    font-weight: 500;
}

.profit-positive {
    color: #00e701; 
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 231, 1, 0.2);
}

.profit-positive.highlight {
    color: #00ff00;
    font-size: 15px;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .top-winner-card {
        min-width: 120px;
    }
    .winners-table th, .winners-table td {
        padding: 10px;
        font-size: 13px;
    }
    .winner-amount {
        font-size: 13px;
    }
}

/* =========================================
   !!! FIX FOR FIRST ROW (ИСПРАВЛЕНИЕ) !!!
   Добавляем это в конец, чтобы перебить стили темы
   ========================================= */

/* 1. Сбрасываем фон, эффекты и УБИРАЕМ НИЖНЮЮ ГРАНИЦУ у первой строки */
.winners-table tbody tr:first-child {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border-bottom: none !important; /* Убрали полоску */
}

/* 2. Сбрасываем стили ячеек первой строки и убираем у них границу */
.winners-table tbody tr:first-child td {
    font-weight: 400 !important;
    text-transform: none !important;
    color: #fff !important;
    background-color: transparent !important;
    letter-spacing: normal !important;
    border-bottom: none !important; /* Дополнительная гарантия, что полоски нет */
}

/* 3. Возвращаем стили только для имени игры (Синий цвет) */
.winners-table tbody tr:first-child .game-name {
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

/* 4. УБИРАЕМ ЗЕЛЕНОЕ ВЫДЕЛЕНИЕ у выигрыша в первой строке */
.winners-table tbody tr:first-child .profit-positive {
    color: #fff !important; /* Делаем цвет белым, как обычный текст */
    font-weight: 400 !important; /* Убираем жирность, если нужно */
    text-shadow: none !important; /* Убираем свечение */
}

    /* Стили для виджета 18+ */
    .age-verify-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0b1221; /* Подстраховка цветом */
        background-color: rgba(11, 18, 33, 0.98); /* Почти непрозрачный фон */
        z-index: 999999; /* Поверх всего, даже меню */
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    /* Класс активности */
    .age-verify-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .age-verify-modal {
        background-color: #1c2638;
        padding: 40px;
        border-radius: 20px;
        border: 1px solid #2a3b55;
        text-align: center;
        max-width: 420px;
        width: 90%;
        box-shadow: 0 20px 50px rgba(0,0,0,0.7);
        font-family: 'Inter', sans-serif;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .age-verify-overlay.active .age-verify-modal {
        transform: scale(1);
    }

    .age-verify-icon {
        font-size: 48px;
        margin-bottom: 20px;
        display: block;
    }

    .age-verify-title {
        color: #ffffff;
        font-size: 24px;
        font-weight: 700;
        margin: 0 0 15px 0;
        line-height: 1.2;
    }

    .age-verify-text {
        color: #8ea5c8;
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .age-verify-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .btn-verify {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        padding: 12px 24px;
        border-radius: 12px;
        cursor: pointer;
        border: none;
        transition: all 0.2s;
        flex: 1;
        text-transform: none;
    }

    .btn-verify-yes {
        background-color: #3b82f6;
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    }
    .btn-verify-yes:hover {
        background-color: #2563eb;
        transform: translateY(-2px);
    }

    .btn-verify-no {
        background-color: transparent;
        border: 1px solid #2a3b55;
        color: #8ea5c8;
    }
    .btn-verify-no:hover {
        border-color: #ffffff;
        color: #ffffff;
    }

/* Основной контейнер */
.game-of-week-widget {
    background: linear-gradient(180deg, #5b8bf7 0%, #3a6df0 100%);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    font-family: sans-serif;
    
    /* --- ИЗМЕНЕНИЯ ЗДЕСЬ --- */
    width: 100%;             /* Растягиваем на всю ширину родителя */
    max-width: 100%;         /* Убираем ограничение в 320px */
    box-sizing: border-box;  /* Чтобы отступы (padding) не ломали ширину */
    /* ----------------------- */
    
    margin: 20px auto;       /* Отступы сверху и снизу */
    box-shadow: 0 10px 20px rgba(58, 109, 240, 0.3);
    position: relative;
    overflow: hidden;
}

/* Декоративные блики (опционально) */
.game-of-week-widget::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(20px);
}

/* Заголовок */
.gow-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Контейнер для картинки и венков */
.gow-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

/* Венки (заглушка стилями, лучше заменить на картинки) */
.gow-laurel {
    font-size: 24px;
    opacity: 0.6;
    /* Если будете использовать SVG картинки венков: */
    /* width: 40px; height: auto; opacity: 1; */
}
.gow-laurel.left { transform: scaleX(-1); } /* Отразить левый венок */

/* Карточка игры */
.gow-card {
    position: relative;
    width: 100px; /* Размер картинки игры */
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
}

.gow-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Надпись PLAY ME поверх картинки */
.gow-overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Белая кнопка */
.gow-btn {
    display: block;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}