:root {
  --bg-color: #0f0d0e;
  --card-bg: rgba(26, 22, 23, 0.85);
  --border-color: rgba(220, 160, 110, 0.2);
  --primary-accent: #d97706;
  --primary-hover: #b45309;
  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --cookie-gold: #fbbf24;
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* Floating Cookies Background Animation */
.background-decor {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-cookie {
  position: absolute;
  font-size: 4rem;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.cookie-1 { top: 10%; left: 10%; animation-delay: 0s; }
.cookie-2 { top: 65%; right: 12%; animation-delay: 2.5s; }
.cookie-3 { bottom: 10%; left: 15%; animation-delay: 5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

/* Glassmorphism Card */
.card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(217, 119, 6, 0.08);
}

.card-header {
  text-align: center;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--cookie-gold);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}

textarea {
  width: 100%;
  background: rgba(15, 13, 14, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.2s ease;
  outline: none;
}

textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-hover));
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

button:hover {
  transform: translateY(-2deg);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner Loader */
.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Notifications */
.status-box {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.status-box.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-box.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
  display: none !important;
}