@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #07090e;
  --card-bg: rgba(15, 18, 28, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

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

html, body {
  min-height: 100vh;
  background-color: var(--bg);
  font-family: var(--font-main);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  cursor: url('../icons/cur.png'), auto;
}

a:hover, button:hover {
  cursor: url('../icons/cur.png'), pointer;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.nav-container {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px;
}

.nav-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 16, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.nav-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 20px 60px;
}

.content-box {
  width: 100%;
  max-width: 540px;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  text-align: center;
  transition: border-color 0.25s ease;
}

.content-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 8px;
}

.page-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 26px;
}

.qr-box {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  cursor: zoom-in;
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.qr-box:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.qr-img {
  width: 220px;
  height: 220px;
  display: block;
  border-radius: 12px;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.donate-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
}

.badge-momo {
  background: #a50064;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 2001;
  background: #0f131d;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img {
  width: min(400px, 75vw);
  height: auto;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.terminal {
  width: 100%;
  background: #0b0e17;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 24px;
}

.terminal-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-family: var(--font-code);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  color: #fff;
  border-color: var(--accent);
}

.terminal-code {
  padding: 18px 16px;
  font-family: var(--font-code);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.cli-prompt { color: var(--accent); font-weight: 700; margin-right: 6px; }
.cli-cmd { color: #fff; font-weight: 600; }
.cli-out { color: #10b981; }
.cli-dim { color: var(--text-dim); }

.cli-badge {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.ticket-form {
  text-align: left;
}

.form-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: 500;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.form-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

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

.textarea-info {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.char-counter {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.char-counter.limit-near { color: #f59e0b; }
.char-counter.limit-reached { color: #ef4444; }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.84rem;
  color: var(--text-sub);
  cursor: pointer;
}

.turnstile-box {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.submit-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.submit-btn:hover:not(:disabled) {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  transform: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.ticket-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 600px) {
  .content-box { padding: 30px 20px; }
  .page-title { font-size: 1.55rem; }
  .qr-img { width: 180px; height: 180px; }
  .nav-bar { padding: 3px; gap: 2px; }
  .nav-item { font-size: 0.8rem; padding: 6px 12px; }
}
