:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-2);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 18px rgba(249, 168, 38, 0.16);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

nav li {
  position: relative;
}

nav a {
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  outline: none;
}

nav a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.12);
}

nav a:hover {
  background: rgba(14, 165, 233, 0.1);
}

*:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.6);
  outline-offset: 2px;
  border-radius: 6px;
}

.dropdown > a::after {
  content: '▾';
  margin-left: 6px;
  font-size: 0.8rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 190px;
  padding: 10px 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(14, 165, 233, 0.08);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.12));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.hero p {
  margin: 6px 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 4px 0;
}

.btn-row .btn {
  margin: 0;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px 0;
}

.actions-row label {
  font-size: 0.95rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section {
  margin-top: 48px;
}

.section h2 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.section p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

.generator-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.ticket {
  background: #fffdf5;
  border: 1px solid #fcd34d;
  box-shadow: 0 12px 30px rgba(249, 168, 38, 0.14);
}

.ticket-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ticket-hint {
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed #f59e0b;
  border-radius: 10px;
  color: #92400e;
  font-weight: 600;
}

.ticket-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.output {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.tip-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.tip-label {
  font-weight: 700;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
}

.tip-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 12px 0 20px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
}

.breadcrumb .sep {
  color: var(--muted);
}

.badge {
  background: #0f172a;
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  letter-spacing: 0.5px;
}

.badge.bonus {
  background: var(--accent);
}

.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.faq details:last-of-type {
  border-bottom: none;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.footer {
  margin-top: 60px;
  padding: 32px 20px 36px;
  color: #1f2937;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.9));
}

.footer a {
  margin: 0 8px;
  color: var(--accent);
  font-weight: 600;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-nav h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer-nav a {
  display: block;
  margin: 4px 0;
  font-weight: 600;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1100px;
  width: calc(100% - 24px);
  background: #fffdf5;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  z-index: 200;
}

.cookie-text p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .link {
  font-weight: 700;
  color: var(--accent-2);
}

.ad-box {
  margin: 32px 0;
  padding: 14px;
  background: #fffdf5;
  border: 1px dashed #fcd34d;
  border-radius: 12px;
  text-align: center;
}

.ad-box p {
  margin: 0 0 12px;
  color: var(--muted);
}

.ad-box ins.adsbygoogle {
  display: block;
  min-height: 160px;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (min-width: 721px) {
  .menu-toggle {
    display: none !important;
  }
  nav ul {
    display: flex !important;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding: 12px 14px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  nav {
    width: 100%;
  }
  nav ul {
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    display: none;
    align-items: flex-start;
  }
  nav ul.open {
    display: flex;
  }
  nav a {
    padding: 6px 8px;
  }
  .dropdown .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 6px;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown-menu a {
    padding-left: 0;
  }
  .hero {
    padding: 22px;
  }
  .cookie-banner {
    grid-template-columns: 1fr;
  }
}
