:root[data-theme="dark"] {
  --bg-gradient: radial-gradient(circle at 50% 0%, #2b0b0e 0%, #0b0f17 70%);
  --glass-card: rgba(20, 25, 35, 0.65);
  --glass-card-border: rgba(255, 255, 255, 0.1);
  --glass-inner: rgba(26, 34, 48, 0.55);
  --glass-input: rgba(15, 20, 30, 0.7);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #dc2626;
  --primary-hover: #ef4444;
  --primary-glow: rgba(220, 38, 38, 0.35);
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: #ef4444;
}

:root[data-theme="light"] {
  --bg-gradient: radial-gradient(circle at 50% 0%, #fee2e2 0%, #f1f5f9 65%);
  --glass-card: rgba(255, 255, 255, 0.75);
  --glass-card-border: rgba(220, 38, 38, 0.15);
  --glass-inner: rgba(248, 250, 252, 0.85);
  --glass-input: rgba(255, 255, 255, 0.95);
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-glow: rgba(220, 38, 38, 0.2);
  --border: rgba(15, 23, 42, 0.12);
  --border-focus: #dc2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-circle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #dc2626;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 24px;
  color: #dc2626;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.brand-titles h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.theme-toggle-btn {
  background: var(--glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-card-border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
}

.glass-card {
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-card-border);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

:root[data-theme="light"] .hero-tag {
  color: #dc2626;
}

.glass-card h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.glass-card p.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="email"],
input[type="text"],
input[type="tel"],
select {
  width: 100%;
  background: var(--glass-input);
  border: 1px solid var(--glass-card-border);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

select {
  cursor: pointer;
}

select option {
  background: #141923;
  color: #f8fafc;
}

:root[data-theme="light"] select option {
  background: #ffffff;
  color: #0f172a;
}

input:focus,
select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.field-error-msg {
  font-size: 11.5px;
  font-weight: 700;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}

input.input-invalid,
select.input-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-card {
  border-radius: 20px;
  padding: 22px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: slideFadeDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(20, 25, 35, 0.7) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pending .status-badge-icon {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.status-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(20, 25, 35, 0.7) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-success .status-badge-icon {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.status-badge-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.status-badge-icon svg {
  width: 22px;
  height: 22px;
}

.status-content {
  flex: 1;
}

.status-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.status-pending .status-label {
  color: #f59e0b;
}

.status-success .status-label {
  color: #22c55e;
}

.status-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}

.status-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.user-email-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--text);
  font-family: monospace;
}

.notice-box {
  background: var(--glass-inner);
  border-left: 3px solid var(--primary);
  padding: 14px 16px;
  border-radius: 6px 12px 12px 6px;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.hidden {
  display: none !important;
}

footer {
  margin-top: auto;
  padding: 35px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}

.strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
}

.won-stamp {
  font-family: 'Caveat', cursive, sans-serif;
  color: #dc2626;
  font-size: 24px;
  font-weight: 700;
  transform: rotate(-3deg);
}

.footer-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.emoji-three-fingers {
  display: inline-block;
  vertical-align: -4px;
  margin-left: 4px;
}

@media (max-width: 540px) {
  .glass-card {
    padding: 24px 18px;
  }
  .status-card {
    flex-direction: column;
    gap: 12px;
  }
}