/* =========================================================
   QuickEats — Global Styles
   Design tokens, layout primitives, and shared components.
   ========================================================= */

:root {
  --primary: #FF6B00;
  --primary-dark: #E65A00;
  --primary-soft: #FFF1E6;
  --dark: #111827;
  --bg: #F9FAFB;
  --surface: #ffffff;
  --muted: #6B7280;
  --border: #E5E7EB;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.06);
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --t: 0.25s cubic-bezier(.4, .0, .2, 1);
}

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

html,
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

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

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.input,
.select,
textarea.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff;
  font-family: inherit;
  transition: border var(--t), box-shadow var(--t);
}

.input:focus,
.select:focus,
textarea.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.field {
  margin-bottom: 16px;
}

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin-inline: auto;
}

.form-card h2 {
  margin-bottom: 6px;
}

.form-card .sub {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-foot a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins';
  font-weight: 800;
  font-size: 1.4rem;
}

.brand .logo {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.brand span:last-child {
  color: var(--dark);
}

.brand .accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  transition: color var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.cart-badge {
  position: relative;
}

.cart-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cart-badge[data-count="0"]::after {
  display: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn:not(.cart-badge) {
    display: none;
  }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card-img img {
  transform: scale(1.06);
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.tag {
  background: var(--bg);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF8F2 0%, #FFE9D6 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.18), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: 480px;
}

.hero-img {
  position: relative;
}

.hero-img img {
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-img .glass {
  position: absolute;
  left: -20px;
  bottom: 30px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px 18px;
  border-radius: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow);
}

.hero-img .glass strong {
  display: block;
  font-size: 0.95rem;
}

.hero-img .glass small {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 50px 0 70px;
  }
}

/* ---------- Search ---------- */
.search-bar {
  display: flex;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 520px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 22px;
  font-size: 0.95rem;
  font-family: inherit;
}

.search-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 26px;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 60px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer ul a {
  color: #cbd5e1;
  transition: color var(--t);
  font-size: 0.9rem;
}

.footer ul a:hover {
  color: var(--primary);
}

.footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer .brand span:last-child {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Categories ---------- */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.cat-card {
  background: #fff;
  padding: 22px 14px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-card .emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.cat-card div:last-child {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- AI section ---------- */
.ai-banner {
  background: linear-gradient(135deg, var(--dark), #1f2937);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ai-banner::before {
  content: '✨';
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 10rem;
  opacity: 0.06;
}

.ai-banner h2 {
  color: #fff;
}

.ai-banner p {
  color: #cbd5e1;
  margin: 10px 0 18px;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.2);
  color: #FFB87A;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .ai-banner {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

/* ---------- Layouts: dashboard, listing ---------- */
.layout-listing {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 30px 0;
}

.sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  align-self: start;
  position: sticky;
  top: 90px;
}

.sidebar h4 {
  font-size: 0.95rem;
  margin: 14px 0 10px;
}

.sidebar h4:first-child {
  margin-top: 0;
}

.filter-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.filter-list label {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .layout-listing {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

/* Admin/vendor/rider/customer dashboard layout */
.layout-dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-side {
  background: #ffffff;
  border-right: 1px solid var(--border);
  color: var(--dark);
  padding: 30px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-side .brand {
  color: var(--dark);
  margin-bottom: 30px;
  font-size: 1.4rem;
}

.dash-side .brand span:last-child {
  color: var(--dark);
}

.dash-side .section-title {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 700;
  margin-top: 10px;
}

.dash-nav {
  list-style: none;
  display: grid;
  gap: 8px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  transition: all var(--t);
  font-weight: 500;
  font-size: 0.95rem;
}

.dash-nav a:hover {
  background: var(--bg);
  color: var(--dark);
}

.dash-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.dash-main {
  padding: 40px;
  background: var(--bg);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .layout-dash {
    grid-template-columns: 1fr;
  }

  .dash-side {
    padding: 16px;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dash-nav {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-card .label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Poppins';
}

.stat-card .delta {
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 4px;
}

/* Tables */
.table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

td {
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #DCFCE7;
  color: #166534;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-muted {
  background: var(--bg);
  color: var(--muted);
}

/* OTP */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.otp-box {
  width: 54px;
  height: 60px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.otp-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.otp-timer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cart */
.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 26px;
  padding: 30px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 4px;
  border-radius: 999px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.qty button:hover {
  background: var(--primary);
  color: #fff;
}

.summary {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
  align-self: start;
}

.summary .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
}

.summary .row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 820px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

/* Tracking timeline */
.timeline {
  display: grid;
  gap: 0;
  margin: 20px 0;
}

.tl-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}

.tl-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--muted);
  z-index: 1;
}

.tl-step.done .tl-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.tl-step.active .tl-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tl-step.done:not(:last-child)::before {
  background: var(--success);
}

.tl-step strong {
  display: block;
}

.tl-step small {
  color: var(--muted);
}

.map-placeholder {
  height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #DCEEFF, #E9F7E9);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  border: 2px dashed #B6D4F4;
}

/* Restaurant detail */
.rest-banner {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}

.rest-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.rest-banner-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #fff;
  z-index: 1;
}

.rest-banner-info h1 {
  color: #fff;
}

.menu-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 12px;
}

.menu-cats button {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--t);
}

.menu-cats button.active,
.menu-cats button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.menu-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}

.menu-row:hover {
  box-shadow: var(--shadow);
}

.menu-row img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.menu-row .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.menu-row .price {
  color: var(--primary);
  font-weight: 700;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-card h3 {
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--t);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* Auth page wrapper */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, #FFF8F2, #FFE9D6);
}

/* Helpers */
.text-muted {
  color: var(--muted);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-2 {
  margin-bottom: 16px;
}

.flex {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.between {
  justify-content: space-between;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}