:root {
  --bg-0: #070b13;
  --bg-1: #0e1626;
  --surface: rgba(20, 27, 43, 0.62);
  --surface-solid: #131b2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f1f5f9;
  --text-muted: #97a3b8;

  --accent-green: #22e0a0;
  --accent-green-dark: #0fae7c;
  --accent-gold: #f2b705;
  --accent-gold-dark: #caa008;
  --danger: #f8515c;
  --danger-bg: rgba(248, 81, 92, 0.12);
  --success-bg: rgba(34, 224, 160, 0.12);
  --warning-bg: rgba(242, 183, 5, 0.1);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(34, 224, 160, 0.16), transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(242, 183, 5, 0.14), transparent 40%),
    var(--bg-0);
  color: var(--text-primary);
  min-height: 100dvh;
}

h1, h2, .detail-value, button#submitBtn {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* ---------- Top bar / language switch ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 19, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.lang-btn:hover { color: var(--text-primary); }

.lang-btn.is-active {
  background: linear-gradient(120deg, var(--accent-gold), var(--accent-green));
  color: #06140f;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 24px 64px;
  margin: 0 -16px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-radius: 0 0 28px 28px;
  isolation: isolate;
}

.hero-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 183, 5, 0.1);
  border: 1px solid rgba(242, 183, 5, 0.35);
  color: var(--accent-gold);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.hero-badge .icon { width: 16px; height: 16px; }

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.accent-text {
  background: linear-gradient(120deg, var(--accent-gold), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Card ---------- */

.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  margin-top: -36px;
  padding: 30px 24px;
}

.intro {
  margin-top: 34px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.intro p {
  line-height: 1.65;
  color: var(--text-primary);
  opacity: 0.92;
  margin: 0 0 14px;
  font-size: 15px;
}

.speakers {
  list-style: none;
  padding: 0;
  margin: 18px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speakers li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
}

.speakers .icon {
  color: var(--accent-green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Details ---------- */

.details {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .details { grid-template-columns: 1fr 1fr; }
}

.detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(34, 224, 160, 0.1);
  border: 1px solid rgba(34, 224, 160, 0.25);
  color: var(--accent-green);
}

.detail-icon .icon { width: 19px; height: 19px; }

.detail-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Warning ---------- */

.warning {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warning-bg);
  border: 1px solid rgba(242, 183, 5, 0.35);
  color: var(--accent-gold);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.warning .icon { flex-shrink: 0; width: 20px; height: 20px; }

/* ---------- Form ---------- */

.form-section {
  margin-top: 0;
}

.form-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
}

#registerForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

input, select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  min-height: 48px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

input::placeholder { color: #64708a; }

input:focus, select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(34, 224, 160, 0.15);
}

button#submitBtn {
  margin-top: 8px;
  background: linear-gradient(120deg, var(--accent-gold), var(--accent-green));
  color: #06140f;
  border: none;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 12px 30px rgba(34, 224, 160, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

button#submitBtn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(34, 224, 160, 0.35); }
button#submitBtn:active { transform: translateY(0); }
button#submitBtn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.success-msg, .error-msg {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.success-msg .icon, .error-msg .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }

.success-msg { background: var(--success-bg); border: 1px solid rgba(34, 224, 160, 0.3); color: var(--accent-green); }
.error-msg { background: var(--danger-bg); border: 1px solid rgba(248, 81, 92, 0.35); color: var(--danger); }

.hidden { display: none; }

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 32px;
}

/* ---------- Icons (default) ---------- */

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
