@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #f1f2f4;
  --bg-gradient: #ffffff;
  --main-color: #3e8ed0;
  --text-main: #1a2332;
  --text-muted: #8a9ba8;
  --btn-text: #ffffff;
  --shadow-dark: rgba(0, 0, 0, 0.09);
  --shadow-light: rgba(255, 255, 255, 0.9);
  --card-bg: rgba(255, 255, 255, 0.82);
  --border-color: rgba(255, 255, 255, 0.65);
  --radius-card: 28px;
  --radius-btn: 14px;
  --radius-input: 13px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── ANIMATED GRADIENT BACKGROUND ── */
.hero-bg {
  background: linear-gradient(145deg, var(--bg-color) 0%, var(--bg-gradient) 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before, .hero-bg::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: driftOrb 18s ease-in-out infinite alternate;
}
.hero-bg::before {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, var(--orb1, rgba(62,142,208,0.12)) 0%, transparent 70%);
  animation-duration: 20s;
}
.hero-bg::after {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, var(--orb2, rgba(62,142,208,0.08)) 0%, transparent 70%);
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}
@keyframes driftOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── GLASS CARD ── */
.soft-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 40px var(--shadow-dark), 0 2px 8px rgba(0,0,0,0.03);
  padding: 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  z-index: 1;
}

/* ── BRAND ── */
.vintica-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--text-main) !important;
  transition: color 0.4s ease;
  text-transform: lowercase;
  letter-spacing: -0.5px;
}

/* ── BUTTONS ── */
.soft-btn {
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65em 1.4em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.2s ease,
              background 0.2s ease,
              filter 0.2s ease;
  line-height: 1.5;
  text-decoration: none;
}
.soft-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--shadow-dark);
  background: rgba(255,255,255,0.88);
}
.soft-btn:active { transform: translateY(0); box-shadow: none; }

.soft-btn.is-primary {
  background: var(--main-color) !important;
  color: var(--btn-text) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.soft-btn.is-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  background: var(--main-color) !important;
}
.soft-btn.is-fullwidth { width: 100%; }
.soft-btn.is-medium { padding: 0.85em 1.6em; font-size: 0.95rem; }
.soft-btn.is-small { padding: 0.45em 1em; font-size: 0.78rem; }
.soft-btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.soft-btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  color: var(--btn-text);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── INPUTS ── */
.soft-input {
  border-radius: var(--radius-input);
  border: 1.5px solid var(--border-color);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05), 0 0 0 0px var(--main-color);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.soft-input::placeholder { color: var(--text-muted); opacity: 0.8; }
.soft-input:focus {
  outline: none;
  border-color: var(--main-color);
  background: rgba(255,255,255,0.85);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03), 0 0 0 3.5px rgba(62,142,208,0.13);
}

/* ── QUANTITY SELECTOR ── */
.qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin: 0.5rem auto 1.5rem;
}
.qty-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
  box-shadow: 0 2px 10px var(--shadow-dark);
}
.qty-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.9); box-shadow: 0 4px 16px var(--shadow-dark); }
.qty-btn:active { transform: scale(0.95); }
.qty-display {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--main-color);
  min-width: 70px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  line-height: 1;
}

/* ── STEP DOTS ── */
.step-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 1.2rem auto 1.8rem;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.step-dot.active {
  background: var(--main-color);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(62,142,208,0.18);
}
.step-dot.done {
  background: var(--main-color);
  opacity: 0.4;
}

/* ── STEP ANIMATIONS ── */
.step-container {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.step-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ── TYPOGRAPHY ── */
.title, .subtitle, .heading { color: var(--text-main) !important; transition: color 0.4s ease; }
.has-text-grey { color: var(--text-muted) !important; }
.brand-text { color: var(--main-color) !important; font-weight: 600; transition: color 0.4s ease; }

/* ── TABLE ── */
.table { background: transparent !important; color: var(--text-main) !important; }
.table thead th {
  color: var(--text-muted) !important;
  border-bottom: 1px solid rgba(0,0,0,0.07) !important;
  text-transform: uppercase; font-size: 0.63rem; letter-spacing: 1.5px; font-weight: 700;
}
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(255,255,255,0.55) !important; }
.table tbody td { border: none !important; border-bottom: 1px solid rgba(0,0,0,0.04) !important; vertical-align: middle; }

/* ── GUEST AVATAR ── */
.guest-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}

/* ── TOAST ── */
.toast-notification {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-main);
  color: var(--bg-gradient);
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── STAT CARD ── */
.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-dark);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* ── Equal-height stat columns ── */
.stats-cols { align-items: stretch !important; }
.stats-cols .column { display: flex !important; flex-direction: column; }

/* ── DONUT CHART ── */
.donut-wrap {
  position: relative;
  width: 110px; height: 110px;
}
.donut-wrap svg { position: absolute; top: 0; left: 0; }
.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  line-height: 1.1;
  width: 100%;
}
.donut-pct { font-size: 1.5rem; font-weight: 800; color: var(--main-color); }
.donut-label { font-size: 0.55rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── SETTINGS PANEL ── */
.settings-panel {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px var(--shadow-dark);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

/* ── COLOR SWATCHES ── */
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--main-color); transform: scale(1.15); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ── NAVBAR ── */
.navbar { background: transparent !important; padding-top: 1.5rem !important; }
.vintica-brand .dot { color: var(--main-color) !important; transition: color 0.4s ease; }

/* ── STAT LABEL ── */
.stat-label {
  text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-muted) !important; opacity: 0.9;
}

/* ── AUTO-REFRESH INDICATOR ── */
.refresh-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 3px 10px;
}
.refresh-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2ecc71;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── COPY BUTTON ── */
.copy-field {
  display: flex; gap: 8px; align-items: center;
}
.copy-field input { flex: 1; font-size: 0.78rem !important; padding: 0.6rem 0.85rem !important; }

/* ── QR WRAPPER ── */
.qr-wrapper {
  background: white;
  padding: 12px;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ── PULSE ── */
.pulse-anim { animation: pulseAnim 1.6s infinite ease-in-out; }
@keyframes pulseAnim {
  0% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.5; }
}

/* ── FADE IN ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.55s cubic-bezier(0.4,0,0.2,1) forwards; }

/* ── DELETE BTN ── */
.btn-delete {
  background: none; border: none; cursor: pointer;
  color: rgba(231,76,60,0.4); font-size: 0.8rem;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 2px 4px;
}
.btn-delete:hover { color: #e74c3c; transform: scale(1.15); }

/* ── FOOTER ── */
.vintica-footer {
  font-family: 'Poppins', sans-serif;
  margin-top: 2rem; padding-bottom: 1rem;
}
.vintica-footer p { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 6px; }
.ig-link {
  color: var(--text-muted); text-decoration: none;
  transition: all 0.2s ease; display: inline-block; font-size: 1.1rem;
}
.ig-link:hover { color: var(--text-main); transform: scale(1.1); }

/* ── RESPONSIVE ── */
@media screen and (max-width: 768px) {
  .soft-card { padding: 1.5rem; }
  .donut-wrap { width: 90px; height: 90px; }
  .donut-pct { font-size: 1.2rem; }
}