/* SellPix Studio — Clean, Optimized & Responsive Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #7c3aed;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6478;
  --border: #e4e7f0;
  --success: #059669;
  --ink: #0b1026;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.05), 0 20px 44px rgba(79, 70, 229, 0.13);
  --r: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(880px 400px at 88% -60px, rgba(124, 58, 237, 0.09), transparent 70%),
    radial-gradient(680px 360px at 4% -40px, rgba(79, 70, 229, 0.09), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Sticky Glass Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  padding: 11px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.32);
}

.brand-name {
  font-size: 1.26rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.89rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: #f1f3f9;
  color: var(--text);
}

.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.wallet-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-pill {
  background: linear-gradient(180deg, #ffffff, #f5f7fc);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.credit-pill span {
  color: var(--primary);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: 0;
  padding: 10px 19px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.34);
  filter: brightness(1.04);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.81rem;
  border-radius: 9px;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
  background: #f8f9fd;
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
  filter: none;
}

.btn-dark {
  background: linear-gradient(135deg, #1e293b, var(--ink));
  box-shadow: 0 6px 16px rgba(11, 16, 38, 0.28);
}

/* Main Container & Cards */
.container {
  max-width: 1040px;
  width: 100%;
  margin: 28px auto;
  padding: 0 18px;
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.55px;
  margin-bottom: 5px;
}

.page-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-free {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-paid {
  background: var(--primary-soft);
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 10px 14px;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    order: 3;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 0.85rem;
  }
  .card {
    padding: 19px;
  }
  .hero-box {
    padding: 38px 18px 34px !important;
  }
  .hero-box h1 {
    font-size: 1.55rem !important;
  }
}

/* Hero Section */
.hero-box {
  text-align: center;
  padding: 52px 28px 44px;
  margin: 0 auto 28px;
  border-radius: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 15% 0%, rgba(124, 58, 237, 0.55), transparent 70%),
    radial-gradient(520px 260px at 90% 100%, rgba(79, 70, 229, 0.6), transparent 70%),
    linear-gradient(135deg, #0b1026, #1b1f4b);
  box-shadow: var(--shadow-lg);
}

.hero-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-box > * {
  position: relative;
  z-index: 1;
}

.hero-box h1 {
  font-size: 2.28rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 14px;
  letter-spacing: -0.85px;
  max-width: 760px;
}

.hero-box p {
  color: rgba(226, 232, 255, 0.84);
  font-size: 1.02rem;
  margin: 0 auto 24px;
  max-width: 630px;
}

.hero-box .badge-paid {
  background: rgba(255, 255, 255, 0.12);
  color: #e0e7ff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-box .btn-outline {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.19);
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(226, 232, 255, 0.82);
}

.hero-metrics span strong {
  color: #fff;
}

/* Feature & Step Cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.feature-card h2 {
  font-size: 1.26rem;
  margin: 12px 0 8px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.89rem;
}

.feature-list li {
  margin-bottom: 7px;
  color: #334155;
}

.step-box {
  background: linear-gradient(180deg, #fafbff, #f4f5fc);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.step-box:hover {
  border-color: #c7d2fe;
  transform: translateY(-2px);
}

.step-num {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

/* Option Cards & Dropzones */
.option-card {
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 15px 17px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  background: var(--surface);
}

.option-card:hover {
  border-color: #c7d2fe;
}

.option-card.active {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f7f8ff, #eef0ff);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.11);
}

.option-card h3 {
  font-size: 0.96rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.option-card p {
  font-size: 0.84rem;
  color: var(--muted);
}

.dropzone {
  border: 2px dashed #c4c9df;
  border-radius: 16px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, #fcfcff, #f4f6fd);
  margin-top: 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: #f1f3ff;
  transform: translateY(-1px);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.dropzone h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.dropzone span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Preview Canvas & Checkerboard */
.preview-box {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #eef0f6 25%, transparent 25%),
    linear-gradient(-45deg, #eef0f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0f6 75%),
    linear-gradient(-45deg, transparent 75%, #eef0f6 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

.preview-box img,
.preview-box canvas {
  max-width: 100%;
  max-height: 380px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.11);
}

.swatch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.swatch {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.swatch:hover {
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.swatch.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
}

.controls-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  padding: 15px;
  background: #f8f9fd;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.controls-bar select,
.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: #fff;
  font-size: 0.91rem;
  width: 100%;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.controls-bar select:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  outline: 0;
}

.status-bar {
  background: var(--primary-soft);
  color: #312e81;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 14px;
  display: none;
  border-left: 4px solid var(--primary);
  align-items: center;
  gap: 10px;
}

.status-bar.show {
  display: flex;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(79, 70, 229, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

/* Info / FAQ */
.info-section h1 {
  letter-spacing: -0.55px;
}

.info-section h2 {
  font-size: 1.24rem;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.info-section h3 {
  font-size: 1.01rem;
  margin: 16px 0 4px;
}

.info-section p,
.info-section li {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 6px;
}

.info-section ul {
  padding-left: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h3 {
  font-size: 0.99rem;
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.91rem;
  color: var(--muted);
  margin: 0;
}

/* Pricing */
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
}

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

.plan-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f8f8ff, #eef0ff);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), var(--shadow-lg);
}

.plan-price {
  font-size: 2.15rem;
  font-weight: 800;
  margin: 8px 0;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-features {
  list-style: none;
  text-align: left;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 14px 0 20px;
}

.plan-features li {
  margin-bottom: 7px;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.89rem;
  display: block;
  overflow-x: auto;
}

.clean-table th,
.clean-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}

.clean-table th {
  background: #f6f7fc;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.clean-table tbody tr:hover {
  background: #fafbff;
}

/* Modal & Toast */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 38, 0.56);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 300;
  padding: 16px;
}

.modal-box {
  background: var(--surface);
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  padding: 26px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  animation: rise 0.25s ease both;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 500;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mannequin Template Grid & Garment Picker */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 12px;
}

.cat-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.cat-tab:hover {
  border-color: #c7d2fe;
  color: var(--text);
}

.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.24);
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding: 6px 4px;
  margin-bottom: 18px;
}

.tpl-card {
  border: 2px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tpl-card:hover {
  border-color: #a5b4fc;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tpl-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
  background: var(--primary-soft);
}

.tpl-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(110deg, #f1f5f9 30%, #e2e8f0 50%, #f1f5f9 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  overflow: hidden;
}

.tpl-img-wrap.loaded {
  animation: none;
  background: #f8fafc;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

.tpl-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpl-meta {
  padding: 7px 8px;
  text-align: center;
}

.tpl-meta strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.25;
}

.tpl-meta span {
  display: block;
  font-size: 0.69rem;
  color: var(--muted);
  margin-top: 2px;
}

.tpl-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.61rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.custom-box {
  background: linear-gradient(180deg, #f8f9ff, #f1f3ff);
  border: 1.5px dashed #a5b4fc;
  border-radius: 14px;
  padding: 15px 16px;
  margin-bottom: 18px;
}

.custom-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}

.custom-box-body {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dde2f7;
}

.custom-box-body.open {
  display: block;
}

.garment-upload-card {
  border: 2px dashed #c4c9df;
  border-radius: 15px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #fcfcff, #f4f6fd);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  margin-top: 10px;
}

.garment-upload-card:hover,
.garment-upload-card.dragover {
  border-color: var(--primary);
  background: #f1f3ff;
}

.garment-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  text-align: left;
}

.garment-preview-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.garment-thumb {
  width: 66px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.scene-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #f8f9fd;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* Footer */
footer {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  margin-top: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.container > * {
  animation: rise 0.4s ease both;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
/* Easy Login & Account UI */
.account-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.account-btn:hover {
  border-color: #c7d2fe;
  background: #f8f9ff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}
.account-btn.logged-in {
  background: var(--primary-soft);
  border-color: #c7d2fe;
  color: var(--primary);
}
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin: 14px 0 16px;
}
.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--muted);
  cursor: pointer;
  transition: 0.18s;
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.sync-key-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}
.sync-key-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  color: #334155;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
  margin: 8px 0;
  max-height: 64px;
  overflow-y: auto;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.order-row:last-child {
  border-bottom: 0;
}
