
:root {
  /* Colors */
  --color-bg-body: #0f1115;
  --color-bg-card: #1c1f26;
  --color-bg-dark: #16181d;
  
  --color-primary: #ffc107;
  --color-primary-hover: #ffca2c;
  --color-secondary: #e91e63;
  --color-accent: #00e5ff;
  
  --color-text-main: #ffffff;
  --color-text-muted: #a0a5b1;
  --color-border: #2d323e;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height: 1.6;

  /* Spacing & Sizing */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 0.25rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --gap-md: 1.5rem;

  /* Effects */
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 193, 7, 0.4);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--color-primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  border-left: 4px solid var(--color-secondary);
  padding-left: 1rem;
  margin-top: 2.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

ul li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

ol {
  counter-reset: item;
}

ol li {
  padding-left: 0.5rem;
}

ol li::before {
  content: counter(item) ".";
  counter-increment: item;
  color: var(--color-secondary);
  font-weight: bold;
  margin-right: 0.5rem;
  position: absolute;
  left: -1.5rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
header {
  background: rgba(28, 31, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fix for logo links based on HTML structure */
.men1 a {
  display: block;
  width: 150px;
  height: 50px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 50"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="%23ffc107" font-weight="bold" font-family="sans-serif" font-size="24">JOYCASINO</text></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header.mob {
  display: none; /* Hidden by default on desktop if duplicate */
}

/* Navigation Menu */
.menn {
  display: flex;
  gap: 1rem;
}

.men3, .men4 {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

/* Login Button */
.men3 {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.men3:hover {
  background: rgba(255, 193, 7, 0.1);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

/* Register Button */
.men4 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.men4:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* --- Main Content --- */
.main {
  padding: 2rem 0;
}

/* Hero Section (joyl-slide) */
.joyl-slide {
  position: relative;
  background: radial-gradient(circle at top right, #2a2e38, var(--color-bg-dark));
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.joyl-slide::after {
  content: 'BONUS 200%';
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  z-index: 1;
}

/* Wrapper for Flex/Grid Layout */
/* Targeting the specific div with inline flex style */
div[style*="display:flex"] {
  display: grid !important;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Content Column */
.main-left {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.joy-left p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Sidebar */
.main-right {
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-dark) 100%);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 100px;
}

.main-right b {
  color: var(--color-primary);
  display: block;
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

/* --- Buttons --- */
.btn-box {
  text-align: center;
  margin: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(90deg, var(--color-secondary), #c2185b);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #c2185b, var(--color-secondary));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.6);
}

.btn:hover::before {
  opacity: 1;
}

/* --- Tables (if any in content) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: var(--color-bg-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
}

/* --- Footer --- */
footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
}

.menu-fo {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.menu-fo a {
  color: var(--color-text-muted);
  margin: 0 0.5rem;
}

.menu-fo a:hover {
  color: var(--color-primary);
}

/* --- Scroller (Back to top) --- */
#scroller {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  opacity: 0.8;
}

#scroller:hover {
  transform: translateY(-5px);
  opacity: 1;
}

.b-top-but {
  font-size: 0; /* Hide text, show icon */
}

#scroller::after {
  content: '↑';
  font-size: 1.5rem;
  color: #000;
  font-weight: bold;
}

/* --- Mobile / Responsive --- */
@media (max-width: 992px) {
  div[style*="display:flex"] {
    grid-template-columns: 1fr; /* Stack sidebar below content */
  }
  
  .main-right {
    order: -1; /* Sidebar with "mirror" info on top on mobile? Optional, usually stick to bottom */
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  header {
    display: none; /* Hide desktop header */
  }
  
  header.mob {
    display: block; /* Show mobile header */
  }

  header.mob .container {
    flex-direction: column;
    gap: 1rem;
  }

  .men1 a {
    margin: 0 auto;
  }

  .menn {
    width: 100%;
    justify-content: center;
  }

  .men3, .men4 {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  .main-left {
    padding: 1.5rem;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
  
  #scroller {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* --- Animation Classes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-left, .main-right {
  animation: fadeInUp 0.6s ease-out forwards;
}
