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

html { overflow-x: hidden; background: #070012; }
body.kosmo-body { overflow-x: hidden; min-height: 100%; }

@keyframes bgPan {
  0%   { transform: scale(1.09) translate(0%, 0%); }
  25%  { transform: scale(1.09) translate(-1.8%, -1.2%); }
  50%  { transform: scale(1.09) translate(-0.5%, -2.2%); }
  75%  { transform: scale(1.09) translate(1.2%, -0.8%); }
  100% { transform: scale(1.09) translate(0%, 0%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-14px) rotate(0.8deg); }
  66%      { transform: translateY(-6px) rotate(-0.5deg); }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(240,192,64,.5), 0 2px 8px rgba(0,0,0,.9); }
  50%      { text-shadow: 0 0 36px rgba(240,192,64,.95), 0 0 70px rgba(150,80,255,.4), 0 2px 8px rgba(0,0,0,.9); }
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes btnRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,200,66,.55), 0 6px 32px rgba(240,192,64,.5); }
  50%      { box-shadow: 0 0 0 10px rgba(245,200,66,0), 0 6px 32px rgba(240,192,64,.5); }
}

@keyframes starFloat {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: .9; transform: scale(1.3); }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(8,0,20,.5); }
::-webkit-scrollbar-thumb { background: rgba(100,50,200,.5); border-radius: 3px; }

/* Background */
.kosmo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.kosmo-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bgPan 28s ease-in-out infinite;
  transform-origin: center;
}

.kosmo-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,0,18,.42) 0%, rgba(4,0,12,.18) 45%, rgba(6,0,18,.72) 100%);
}

.kosmo-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: starFloat 2.8s ease-in-out infinite;
}

.kosmo-star-1 { top: 8%; left: 22%; width: 3px; height: 3px; }
.kosmo-star-2 { top: 14%; left: 60%; width: 2px; height: 2px; background: #E0D0FF; animation-duration: 3.5s; animation-delay: .6s; }
.kosmo-star-3 { top: 5%; left: 78%; width: 4px; height: 4px; animation-duration: 2.2s; animation-delay: 1.1s; }
.kosmo-star-4 { top: 30%; left: 45%; width: 2px; height: 2px; background: #F0E0FF; animation-duration: 4.1s; animation-delay: .3s; }
.kosmo-star-5 { top: 18%; left: 88%; width: 3px; height: 3px; animation-duration: 3s; animation-delay: 1.8s; }
.kosmo-star-6 { top: 40%; left: 12%; width: 2px; height: 2px; background: #D8C8FF; animation-duration: 2.6s; animation-delay: .9s; }

.kosmo-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  background: transparent;
}

.kosmo-backdrop.is-open { display: block; }

/* Page shell */
.kosmo-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
  color: #E8DEFF;
}

/* Header */
.kosmo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  background: rgba(8,2,28,.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120,70,255,.2);
}

.kosmo-header-spacer { flex: 1; }

.kosmo-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.kosmo-logo {
  width: 200px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.kosmo-logo--footer {
  width: 200px;
  height: 54px;
  object-position: center;
}

.kosmo-header-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login,
.btn-register,
.btn-hero-cta,
.btn-sidebar-bonus,
.btn-login--sidebar,
.btn-register--sidebar {
  cursor: pointer;
  font-family: 'Russo One', sans-serif;
  transition: all .2s;
}

.btn-login {
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid rgba(150,100,255,.6);
  border-radius: 8px;
  color: #C4AAFF;
  font-size: 13px;
  letter-spacing: .5px;
}

.btn-login:hover {
  background: rgba(100,50,220,.25);
  color: #fff;
  border-color: rgba(190,150,255,.9);
}

.btn-register {
  padding: 10px 26px;
  background: linear-gradient(90deg, #F5C842, #D4900A, #F5C842);
  background-size: 200% auto;
  border: none;
  border-radius: 8px;
  color: #1A0800;
  font-size: 13px;
  letter-spacing: .4px;
  animation: shimmer 3s linear infinite;
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(240,192,64,.4);
}

.btn-register:hover {
  box-shadow: 0 7px 32px rgba(240,192,64,.75);
  transform: translateY(-1px);
}

.kosmo-hamburger.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(150,100,255,.5);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.kosmo-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #C4AAFF;
  border-radius: 2px;
  transition: all .3s;
}

/* Body layout */
.kosmo-body-wrap {
  display: flex;
  flex: 1;
  margin-top: 70px;
}

.kosmo-sidebar-wrap {
  width: 232px;
  flex-shrink: 0;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  height: calc(100vh - 70px);
  z-index: 400;
}

.kosmo-sidebar {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(8,2,28,.65);
  border-right: 1px solid rgba(120,70,255,.2);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
}

.kosmo-sidebar-head {
  padding: 14px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(160,100,255,.25);
  margin-bottom: 10px;
}

.kosmo-sidebar-label {
  font-family: 'Russo One', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(200,160,255,.6);
  text-transform: uppercase;
}

.kosmo-sidebar-close {
  display: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(200,160,255,.3);
  border-radius: 6px;
  color: #E0C8FF;
  font-size: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

.kosmo-sidebar-close:hover {
  background: rgba(255,255,255,.22);
}

/* Sidebar menu */
.kosmo-nav-slot--mobile { display: none; }

.kosmo-nav-slot--desktop .kosmo-nav-inner,
.kosmo-nav-slot--mobile .kosmo-nav-inner {
  display: flex;
  flex-direction: column;
}

.kosmo-nav-slot--desktop .kosmo-menu-link,
.kosmo-nav-slot--mobile .kosmo-menu-link {
  padding: 15px 20px 15px 22px;
  display: flex;
  align-items: center;
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-left: 3px solid rgba(110,65,205,.2);
  background: transparent;
  color: #9888C0;
  transition: all .25s ease;
  margin-bottom: 2px;
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  user-select: none;
}

.kosmo-nav-slot--desktop .kosmo-menu-link:hover,
.kosmo-nav-slot--mobile .kosmo-menu-link:hover {
  background: linear-gradient(90deg, rgba(120,55,235,.48) 0%, rgba(60,15,120,.18) 100%);
  color: #FFD060;
  border-left-color: #B080FF;
}

.kosmo-sidebar-mobile-auth {
  display: none;
  padding: 16px 14px 8px;
  border-top: 1px solid rgba(120,70,255,.2);
  margin-top: 8px;
  flex-direction: column;
  gap: 8px;
}

.btn-login--sidebar {
  width: 100%;
  padding: 11px 0;
  background: transparent;
  border: 1.5px solid rgba(150,100,255,.6);
  border-radius: 10px;
  color: #C4AAFF;
  font-size: 13px;
}

.btn-register--sidebar {
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(90deg, #F5C842, #D4900A, #F5C842);
  background-size: 200% auto;
  border: none;
  border-radius: 10px;
  color: #1A0800;
  font-size: 13px;
  animation: shimmer 3s linear infinite;
  font-weight: 900;
}

.kosmo-sidebar-cta {
  padding: 14px 14px 8px;
  border-top: 1px solid rgba(120,70,255,.2);
  margin-top: 10px;
}

.btn-sidebar-bonus {
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(90deg, #F5C842, #D4900A, #F5C842);
  background-size: 200% auto;
  border: none;
  border-radius: 10px;
  color: #1A0800;
  font-size: 12px;
  letter-spacing: .6px;
  animation: shimmer 3s linear infinite;
  box-shadow: 0 4px 16px rgba(240,192,64,.4);
  font-weight: 900;
}

.btn-sidebar-bonus:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(240,192,64,.65);
}

/* Main */
.kosmo-main {
  flex: 1;
  min-width: 0;
}

/* Hero */
.kosmo-hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 32px 64px 32px 48px;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.kosmo-hero-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 55% 55%, rgba(110,50,240,.14) 0%, transparent 68%);
  pointer-events: none;
}

.kosmo-hero-mascot {
  flex: 0 0 52%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.kosmo-mascot-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 65%, rgba(120,55,255,.22) 0%, transparent 68%);
  pointer-events: none;
}

.kosmo-mascot-img {
  width: 132%;
  max-width: 860px;
  object-fit: contain;
  animation: float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 28px 64px rgba(100,50,255,.65)) drop-shadow(0 0 32px rgba(240,192,64,.22));
  position: relative;
  margin-bottom: -32px;
  display: block;
}

.kosmo-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  position: relative;
  text-align: left;
}

.kosmo-hero-h1 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.07;
  color: #FFF8EC;
  text-shadow: 0 0 40px rgba(255,220,120,.25), 0 2px 8px rgba(0,0,0,.8);
  animation: glowPulse 3.2s ease-in-out infinite;
  font-weight: 400;
}

.btn-hero-cta {
  width: 100%;
  padding: 22px 0;
  background: linear-gradient(90deg, #F5C842, #E8A010, #F5C842);
  background-size: 200% auto;
  border: none;
  border-radius: 16px;
  color: #1A0800;
  font-size: 22px;
  letter-spacing: .5px;
  animation: shimmer 2.6s linear infinite, btnRing 2s ease-in-out infinite;
  font-weight: 900;
}

.btn-hero-cta:hover {
  transform: translateY(-4px);
}

/* Content section */
.kosmo-content-section {
  background: rgba(8,2,28,.65);
  backdrop-filter: blur(4px);
  padding: 72px 68px 84px 52px;
  border-top: 1px solid rgba(120,70,255,.25);
}

.kosmo-content h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 34px;
  color: #FFE080;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 0 30px rgba(240,192,64,.4);
}

.kosmo-content h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  color: #D4A8FF;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3px solid #9060EE;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
}

.kosmo-content p {
  font-size: 17px;
  line-height: 1.85;
  color: #EEE8FF;
  margin-bottom: 48px;
  max-width: 740px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.kosmo-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kosmo-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  background: rgba(10,2,40,.72);
  border: 1px solid rgba(120,70,230,.3);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.kosmo-content ul li::before {
  content: '\2726';
  color: #F5C842;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.kosmo-content ul li strong {
  color: #FFE080;
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  display: block;
  margin-bottom: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.kosmo-content ul li span,
.kosmo-content ul li {
  color: #D8CCFF;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

.kosmo-content > div[style*="overflow"],
.kosmo-content .table-wrap {
  overflow-x: auto;
  margin-bottom: 50px;
  border-radius: 12px;
  border: 1px solid rgba(120,70,230,.35);
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}

.kosmo-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.kosmo-content table thead tr {
  background: linear-gradient(90deg, rgba(75,28,200,.85), rgba(38,8,100,.82));
}

.kosmo-content table th {
  padding: 13px 18px;
  color: #F5C842;
  font-family: 'Russo One', sans-serif;
  font-size: 12px;
  letter-spacing: .6px;
  border-bottom: 1px solid rgba(90,50,185,.32);
}

.kosmo-content table td {
  padding: 13px 18px;
  color: #D8CCFF;
  border-bottom: 1px solid rgba(80,45,170,.22);
  background: rgba(8,2,35,.55);
}

.kosmo-content table tbody tr:nth-child(even) td {
  background: rgba(12,4,45,.65);
}

.kosmo-content details {
  margin-bottom: 12px;
  background: rgba(8,2,35,.8);
  border: 1px solid rgba(100,58,200,.3);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.kosmo-content details summary {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #F0E8FF;
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  list-style: none;
}

.kosmo-content details summary::-webkit-details-marker { display: none; }

.kosmo-content details summary::after {
  content: '\25BC';
  color: #7860A8;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.kosmo-content details[open] summary::after {
  transform: rotate(180deg);
  color: #F5C842;
}

.kosmo-content details[open] {
  border-color: rgba(160,100,255,.6);
}

.kosmo-content details > div,
.kosmo-content details > p {
  padding: 0 20px 18px;
  color: #C8B8E8;
  font-size: 15px;
  line-height: 1.72;
}

/* Footer */
.kosmo-footer {
  position: relative;
  z-index: 2;
  background: rgba(4,0,15,.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(80,45,180,.3);
}

.kosmo-providers {
  border-bottom: 1px solid rgba(45,22,95,.5);
}

.kosmo-providers-label {
  text-align: center;
  padding: 22px 0 16px;
  font-family: 'Russo One', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(120,90,180,.45);
  text-transform: uppercase;
}

.kosmo-providers-img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 310px;
}

.kosmo-footer-main {
  padding: 44px 60px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.kosmo-logo-link--footer {
  justify-content: center;
}

.kosmo-nav-slot--footer .kosmo-footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.kosmo-nav-slot--footer .kosmo-footer-link {
  color: rgba(180,160,220,.75);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}

.kosmo-nav-slot--footer .kosmo-footer-link:not(:last-child)::after {
  content: ' - ';
  color: rgba(120,90,180,.55);
  pointer-events: none;
}

.kosmo-nav-slot--footer .kosmo-footer-link:hover {
  color: #F5C842;
}

.kosmo-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68,24,155,.35);
  border: 1px solid rgba(88,52,188,.28);
  border-radius: 12px;
  color: #B098D8;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}

.social-btn:hover {
  color: #fff;
  transform: translateY(-3px);
}

.social-btn:nth-child(1):hover { background: rgba(193,53,132,.55); }
.social-btn:nth-child(2):hover { background: rgba(0,136,204,.55); }
.social-btn:nth-child(3):hover { background: rgba(0,119,255,.5); }
.social-btn:nth-child(4):hover { background: rgba(255,0,0,.5); }

.kosmo-footer-copy {
  color: rgba(65,48,100,.62);
  font-size: 12px;
  text-align: center;
  line-height: 1.75;
  max-width: 560px;
}

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 768px) {
  .kosmo-logo {
    width: 140px;
    height: 54px;
  }

  .kosmo-header-btns { display: none; }

  .kosmo-hamburger.hamburger-btn { display: flex; }

  .kosmo-sidebar-wrap {
    position: fixed;
    top: 70px;
    left: -240px;
    height: calc(100vh - 70px);
    transition: left .3s cubic-bezier(.2,0,0,1);
  }

  .kosmo-sidebar-wrap.is-open { left: 0; }

  .kosmo-sidebar {
    background: rgba(72,35,160,1);
  }

  .kosmo-sidebar-close { display: flex; }

  .kosmo-nav-slot--desktop { display: none; }
  .kosmo-nav-slot--mobile { display: block; }

  .kosmo-sidebar-mobile-auth { display: flex; }

  .kosmo-hero {
    min-height: auto;
    flex-direction: column;
    padding: 28px 20px 40px;
    gap: 0;
  }

  .kosmo-hero-mascot {
    flex: none;
    width: 100%;
    order: -1;
  }

  .kosmo-mascot-img {
    width: 88%;
    max-width: 340px;
    margin-bottom: -10px;
  }

  .kosmo-hero-text {
    gap: 14px;
    text-align: center;
    width: 100%;
  }

  .kosmo-hero-h1 { font-size: 30px; }

  .btn-hero-cta {
    padding: 18px 0;
    font-size: 18px;
  }

  .kosmo-content-section {
    padding: 40px 20px 60px;
  }

  .kosmo-content h2 { font-size: 24px; }
  .kosmo-content h3 { font-size: 18px; }

  .kosmo-footer-main {
    padding: 28px 20px 24px;
    gap: 20px;
  }
}
