@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
  background-color: var(--color-black);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.font-headline {
  font-family: var(--font-headline);
  letter-spacing: 1px;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-pale);
}

/* Form controls */
input, select, textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-badge);
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold-muted);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-sharp);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-gold);
  color: #111;
  font-weight: 700;
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-border-gold);
}

.btn-outline:hover {
  background: var(--color-gold-muted);
  border-color: var(--color-gold);
}

.btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: #423f47;
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #a93226;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-badge);
  text-transform: uppercase;
}

.badge-gold {
  background: var(--color-gold-muted);
  color: var(--color-gold-light);
  border: 1px solid var(--color-border-gold);
}

.badge-success {
  background: var(--color-success-bg);
  color: #6ed172;
  border: 1px solid rgba(110, 209, 114, 0.3);
}

.badge-danger {
  background: var(--color-danger-bg);
  color: #f17062;
  border: 1px solid rgba(241, 112, 98, 0.3);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: #f3be6a;
  border: 1px solid rgba(243, 190, 106, 0.3);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-dark);
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 22px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-cream);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-surface);
  border-left: 4px solid var(--color-gold);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-card);
  padding: 14px 20px;
  border-radius: var(--radius-badge);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: toastIn 0.3s ease;
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
