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

:root {
  --red: #C8102E;
  --red-deep: #8B0A1F;
  --red-glow: #E8294A;
  --black: #0A0A0A;
  --surface: #111111;
  --surface-2: #1A1A1A;
  --surface-3: #242424;
  --border: rgba(255,255,255,0.07);
  --border-red: rgba(200,16,46,0.35);
  --text: #F0EDE8;
  --text-muted: #787068;
  --text-dim: #4A4642;
  --grey: #9A9590;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.97);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
}

.logo .ls { color: var(--grey); }
.logo .raffles { color: var(--red); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px 6px 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.balance-chip:hover { border-color: rgba(255,255,255,0.15); }

.balance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-glow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: var(--surface-2); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 4px; }
.btn-full { width: 100%; }

/* ── PROGRESS ── */
.progress-wrap { margin-bottom: 16px; }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* ── TIMER ── */
.timer {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.timer-unit {
  background: var(--surface-3);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
}
.timer-sep { color: var(--text-dim); font-size: 16px; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(200,16,46,0.5);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23787068' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option { background: var(--surface-2); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
}

/* ── TAGS / BADGES ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.tag-red { background: rgba(200,16,46,0.15); color: var(--red-glow); border: 1px solid var(--border-red); }
.tag-white { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.tag-green { background: rgba(96,168,96,0.1); color: #72c472; border: 1px solid rgba(96,168,96,0.25); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  text-decoration: none;
}
.footer-logo .ls { color: var(--text-dim); }
.footer-logo .raffles { color: var(--red-deep); }

.footer-note { font-size: 11px; color: var(--text-dim); }

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  max-width: 300px;
}

#toast.show { opacity: 1; transform: translateY(0); }
#toast.success { border-color: rgba(96,168,96,0.4); }
#toast.error { border-color: var(--border-red); }

/* ── UTILS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.font-display { font-family: var(--font-display); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
