/* ====== БАЗОВІ ЗМІННІ ====== */
:root {
  --bg: #000;
  --surface: #1c1c1e;
  --text: #fff;
  --muted: #a1a1aa;
  --border: #262626;
  --cta-bg: #ffe4c4;
  --cta-fg: #000;
  --cta-hover: #ffd7b0;
  --cta-shadow: 0 8px 20px rgba(255,228,196,.18);
  --nav-h: 88px;
  --accent-color: #f5d8b9;
  --bg-dark: #000000;
  --text-light: #f5d8b9;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
}

/* ====== БАЗОВИЙ RESET ====== */
* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ====== ЗАГАЛЬНІ СТИЛІ КОНТЕЙНЕРА ====== */
#app {
  max-width: 500px;
  margin: 0 auto;
  margin-top: 32px;
  padding: 0 16px;
  min-height: 100vh;
}

/* ====== БАЗОВІ СТИЛІ ЗАГОЛОВКІВ ====== */
h1 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 40px;
  color: var(--cta-bg);
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

/* ====== БАЗОВІ КНОПКИ ====== */
.primary-btn, .create-btn, .cta-btn {
  display: block;
  background-color: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 32px;
  padding: 14px 24px;
  margin: 20px auto;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--cta-shadow);
}

.primary-btn:hover, .create-btn:hover, .cta-btn:hover {
  background-color: var(--cta-hover);
}

.primary-btn:disabled, .create-btn:disabled, .cta-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ====== УНІВЕРСАЛЬНІ СТИЛІ ДЛЯ КНОПОК ПОВЕРНЕННЯ ====== */
.back-btn, .back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #222;
  color: white;
  border: 1px solid var(--text-light); /* тонка лінія кольору заголовку */
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.back-btn:focus, .back-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--text-light, #f5d8b9);
}

/* ====== UTILITY CLASSES ====== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.loader, .end-message, .error {
  text-align: center;
  color: #ccc;
  margin: 20px;
}

.form-section {
  margin-bottom: 24px;
}
