:root {
  --bg: #090b14;
  --bg-soft: #121625;
  --card: #151a2e;
  --card-2: #1c2340;
  --line: #2b355e;
  --text: #eef2ff;
  --muted: #aab6e8;
  --accent: #4de2b3;
  --accent-2: #5ea8ff;
  --danger: #ff6b88;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(94, 168, 255, 0.15), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(77, 226, 179, 0.16), transparent 35%),
    linear-gradient(180deg, #090b14 0%, #0f1322 45%, #101428 100%);
  font-family: "Nunito", "Segoe UI", sans-serif;
  min-height: 100vh;
}

header,
main,
footer {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

header {
  padding: 1.25rem 0 0.75rem;
}

.lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.lang-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--accent);
}

.hero {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
}

.hero-graphic {
  width: 140px;
  height: 96px;
  margin: 0 auto 0.8rem;
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(94, 168, 255, 0.22), rgba(77, 226, 179, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-graphic .moon {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 1.3rem;
}

.hero-graphic .baby {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 2.35rem;
}

.hero-graphic .star {
  position: absolute;
  color: #f6d365;
  animation: blink 1.8s ease-in-out infinite;
}

.hero-graphic .star-a {
  top: 18px;
  right: 24px;
}

.hero-graphic .star-b {
  top: 38px;
  left: 52px;
  animation-delay: 0.6s;
}

@keyframes blink {
  0%, 100% { opacity: 0.35; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
}

.subtitle,
.description {
  color: var(--muted);
  margin: 0.35rem 0;
}

.due-date {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 168, 255, 0.45);
  background: rgba(94, 168, 255, 0.15);
  color: #cce3ff;
  font-size: 0.83rem;
  font-weight: 700;
}

main {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.8rem;
}

section {
  background: linear-gradient(160deg, rgba(28, 35, 64, 0.95), rgba(21, 26, 46, 0.94));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.revolut-section--hidden {
  display: none;
}

h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.revolut-description,
.revolut-note {
  color: var(--muted);
}

.revolut-btn,
.submit-btn,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 800;
}

.revolut-btn {
  background: linear-gradient(135deg, var(--accent-2), #4a7dff);
  color: white;
}

.revolut-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(25%);
}

.revolut-btn--hidden {
  display: none;
}

.revolut-btn:hover {
  filter: brightness(1.1);
}

label {
  display: block;
  margin-top: 0.7rem;
  margin-bottom: 0.35rem;
  color: #d7defa;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1428;
  color: var(--text);
  padding: 0.8rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 226, 179, 0.18);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.date-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f152d;
  color: var(--text);
  padding: 0.55rem 0.3rem;
  min-height: 72px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.date-tile:hover {
  border-color: var(--accent-2);
}

.date-tile.selected {
  border-color: var(--accent);
  background: rgba(77, 226, 179, 0.16);
}

.date-day {
  font-size: 1.25rem;
  font-weight: 800;
}

.date-month {
  font-size: 0.8rem;
  color: var(--muted);
}

.submit-btn {
  margin-top: 0.8rem;
  width: 100%;
  justify-content: center;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #35c999);
  color: #082016;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error,
.bets-error {
  color: var(--danger);
  min-height: 1.2rem;
  margin-top: 0.4rem;
  font-weight: 700;
}

.approval-note {
  margin: 0.2rem 0 0.7rem;
  color: #c6d6ff;
  font-size: 0.92rem;
}

.bets-board {
  display: grid;
  gap: 0.55rem;
}

.bet-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.admin-actions {
  display: flex;
  gap: 0.45rem;
}

.approve-btn,
.reject-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.approve-btn {
  background: linear-gradient(135deg, #4de2b3, #2fc995);
  color: #07221a;
}

.reject-btn {
  background: rgba(255, 107, 136, 0.16);
  color: #ffd3dd;
  border: 1px solid rgba(255, 107, 136, 0.45);
}

.admin-auth-section input {
  margin-bottom: 0.55rem;
}

.bet-card__date {
  color: #cfe4ff;
  font-weight: 800;
}

.bets-loading,
.bets-empty {
  color: var(--muted);
}

.hero--compact {
  padding-top: 0.4rem;
}

.hero-icon {
  font-size: 2rem;
}

.success-message {
  font-size: 1.05rem;
}

.success-note {
  color: var(--muted);
}

.back-link {
  margin-top: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: #dce5ff;
}

footer {
  text-align: center;
  color: var(--muted);
  padding-bottom: 1.5rem;
}

.admin-link {
  color: #c7dcff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(199, 220, 255, 0.5);
}

.admin-link:hover {
  color: #eef5ff;
  border-bottom-color: rgba(238, 245, 255, 0.9);
}

@media (min-width: 840px) {
  main {
    grid-template-columns: 1fr 1fr;
  }

  .revolut-section,
  .bets-board-section {
    grid-column: span 2;
  }
}
