:root {
  --primary-color: #202124;
  --secondary-color: #1a73e8;
  --accent-color: #fbbc04;
  --text-main: #3c4043;
  --text-sub: #70757a;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --border-color: #dadce0;
  --premium-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --primary-color: #e8eaed;
  --secondary-color: #8ab4f8;
  --accent-color: #fdd663;
  --text-main: #e8eaed;
  --text-sub: #9aa0a6;
  --bg-light: #202124;
  --bg-gray: #303134;
  --border-color: #3c4043;
  --premium-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.8;
  margin: 0;
  color: var(--text-main);
  background-color: var(--bg-light);
  transition: all 0.3s;
}

/* Navigation & Logo */
nav {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  display: flex;
  gap: 4px;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dot-1 { background-color: #fbc400; } /* 1-10 */
.dot-2 { background-color: #69c8f2; } /* 11-20 */
.dot-3 { background-color: #ff7272; } /* 21-30 */
.dot-4 { background-color: #aaaaaa; } /* 31-40 */
.dot-5 { background-color: #b0d840; } /* 41-45 */

.nav-logo-text {
  color: var(--secondary-color);
  background: linear-gradient(135deg, var(--secondary-color), #0d47a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
}

/* Header */
header.hero {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bg-gray);
}

/* Generator Styling */
section.card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.generator-box {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
  color: white;
  border-radius: 16px;
  box-shadow: var(--premium-shadow);
}

.lotto-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.lotto-number {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: inset -4px -4px 8px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.1);
}

/* Ball Colors (DHLottery Standard) */
.ball-yellow { background-color: #fbc400; color: #fff; }
.ball-blue { background-color: #69c8f2; color: #fff; }
.ball-red { background-color: #ff7272; color: #fff; }
.ball-gray { background-color: #aaaaaa; color: #fff; }
.ball-green { background-color: #b0d840; color: #fff; }

.lotto-number.bonus {
  border: 3px solid #fff;
}

.plus-sign {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0 5px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #202124;
  border: none;
  padding: 18px 50px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(251, 188, 4, 0.4);
  transition: all 0.2s;
}

/* Premium Contact Form */
.premium-form-section {
  background-color: var(--bg-gray);
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  padding: 40px;
}

.container { max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 768px) { .grid { grid-template-columns: 1fr; } }

/* Fortune Score Colors */
.score-low { color: #aaaaaa !important; }    /* 1-30% */
.score-mid { color: #69c8f2 !important; }    /* 31-60% */
.score-high { color: #b0d840 !important; }   /* 61-99% */
.score-max { 
  color: #fbc400 !important; 
  text-shadow: 0 0 20px rgba(251, 196, 0, 0.5);
  animation: celebrate 0.5s infinite alternate;
}

@keyframes celebrate {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* Confetti Effect */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #fbc400;
  top: -10px;
  border-radius: 2px;
  animation: fall 3s linear forwards;
  z-index: 100;
}

@keyframes fall {
  to {
    transform: translateY(500px) rotate(720deg);
    opacity: 0;
  }
}

footer { background: var(--primary-color); color: white; padding: 60px 20px; margin-top: 100px; text-align: center; }
.theme-toggle { cursor: pointer; padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 8px; background: none; color: inherit; }
