:root {
  --bg: #fff8fc;
  --bg-soft: #edfafd;
  --surface: #ffffff;
  --surface-soft: #fff2f8;
  --primary: #a91861;
  --primary-dark: #761144;
  --primary-2: #be397c;
  --text: #4b122f;
  --text-soft: #763d5a;
  --danger: #b9374f;
  --shadow: 0 12px 28px rgba(132, 22, 77, 0.14);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, #f7d9e8, transparent 30%),
    radial-gradient(circle at 90% 25%, #f5dde9, transparent 35%),
    linear-gradient(130deg, #ffffff, #fdeff6);
  min-height: 100vh;
}

[v-cloak] {
  display: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Baloo 2", cursive;
  margin: 0;
  line-height: 1.1;
}

p {
  margin: 0;
}

.page-glow {
  position: fixed;
  inset: -20vh -20vw auto;
  height: 42vh;
  background: radial-gradient(circle, rgba(164, 86, 125, 0.3), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.floating-orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.3px);
}

.orb-a {
  width: 240px;
  height: 240px;
  top: 18%;
  right: -60px;
  background: radial-gradient(circle, rgba(197, 112, 155, 0.32), rgba(197, 112, 155, 0));
  animation: bob 6s ease-in-out infinite;
}

.orb-b {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: -40px;
  background: radial-gradient(circle, rgba(226, 160, 193, 0.35), rgba(226, 160, 193, 0));
  animation: bob 7.5s ease-in-out infinite reverse;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem clamp(1rem, 2vw, 2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #e09fc0, #a84d7b);
  color: #fff;
  font-family: "Baloo 2", cursive;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}

.brand p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-wrap {
  padding: 1rem clamp(1rem, 2.5vw, 2rem) 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.site-wrap {
  max-width: 80rem;
  margin: 0 auto;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.hero-value-panel {
  border-radius: var(--radius-xl);
  border: 1px solid #e8cfdc;
  background: linear-gradient(145deg, #ffffff, #faeef4);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.4rem);
  display: grid;
  gap: 0.7rem;
}

.hero-value-panel h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: #5a1638;
}

.hero-value-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
}

.hero-value-note {
  font-size: 0.92rem;
  color: #6f2f4f;
}

.hero-card {
  background: linear-gradient(135deg, #fff8fc, #f8eaf1);
  border: 1px solid #e8cfdc;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.85rem;
  animation: pop-in 500ms ease;
}

.hero-ribbon {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-ribbon span {
  border: 1px solid #e5b5cd;
  background: linear-gradient(140deg, #ffecf6, #f8d8e8);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 700;
  animation: slide-pill 700ms ease both;
}

.hero-collage {
  position: relative;
  min-height: 332px;
  border-radius: 32px;
  background: radial-gradient(circle at 28% 18%, #fff2f8, #f6dfeb 58%, #efd2e0);
  border: 1px solid #e8b9d0;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0.6rem;
}

.hero-collage .frame {
  position: absolute;
  border-radius: 20px;
  padding: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #fcedf4);
  border: 1px solid #e9bdd3;
  box-shadow: 0 18px 28px rgba(104, 16, 60, 0.18);
  transition: transform 300ms ease;
}

.hero-collage .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.frame-main {
  --rot: -2.5deg;
  width: 48%;
  height: 66%;
  left: 26%;
  top: 14%;
  transform: rotate(var(--rot));
  animation: frame-float 5.5s ease-in-out infinite;
}

.frame-left {
  --rot: -8deg;
  width: 27%;
  height: 39%;
  left: 8%;
  top: 49%;
  transform: rotate(var(--rot));
  animation: frame-float 6.3s ease-in-out infinite reverse;
}

.frame-right {
  --rot: 8deg;
  width: 26%;
  height: 37%;
  right: 9%;
  top: 8%;
  transform: rotate(var(--rot));
  animation: frame-float 6.8s ease-in-out infinite;
}

.hero-collage:hover .frame-main {
  transform: rotate(-1deg) translateY(-4px);
}

.hero-collage:hover .frame-left {
  transform: rotate(-5deg) translateY(-2px);
}

.hero-collage:hover .frame-right {
  transform: rotate(5deg) translateY(-2px);
}

.collage-badge {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(118, 17, 68, 0.9);
  color: #ffeaf4;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  letter-spacing: 0.04em;
}

.tilt-in {
  animation: tilt-in 650ms ease;
}

.hero-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.hero-card p {
  color: var(--text-soft);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.pill {
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f2d9e5;
  color: var(--primary-dark);
  font-size: 0.87rem;
  font-weight: 700;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 280px));
  gap: 1rem;
  justify-content: center;
  justify-items: center;
  max-width: 62rem;
  margin: 0 auto;
}

.showcase-card {
  border-radius: var(--radius-lg);
  border: 1px solid #e6ceda;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: 130px auto;
  transition: transform 220ms ease, box-shadow 220ms ease;
  width: 100%;
  max-width: 280px;
}

.gm-price-cell {
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
}

.gm-price-currency {
  color: var(--text-soft);
}

.gm-price-value {
  color: var(--text);
}

.gm-price-input {
  width: 6.5rem;
  border: 1px solid #d89ab9;
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: #ffffff;
}

.gm-price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(169, 24, 97, 0.14);
}

.showcase-card img {
  width: min(76%, 200px);
  height: 104px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0.65rem auto 0.2rem;
  padding: 0.3rem;
  border-radius: 24px;
  border: 1px solid #ecd5e0;
  background: linear-gradient(180deg, #ffffff, #fff2f8);
  transition: transform 320ms ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(113, 44, 79, 0.2);
}

.showcase-card:hover img {
  transform: scale(1.05);
}

.showcase-card div {
  padding: 0.85rem;
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.showcase-card p {
  color: var(--text-soft);
}

.reveal-card {
  animation: none;
}

.delay-1 {
  animation-delay: 110ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.feature-card {
  background: var(--surface);
  border: 1px solid #ead6e0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  animation: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.scroll-reveal.delay-1 {
  transition-delay: 90ms;
}

.scroll-reveal.delay-2 {
  transition-delay: 180ms;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-card p {
  color: var(--text-soft);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(129, 52, 90, 0.28);
}

.btn-soft {
  background: #f3dfe9;
  color: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  border: 1px solid #dab5c8;
  color: var(--primary-dark);
}

.full {
  width: 100%;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(100%, 430px);
  background: var(--surface);
  border: 1px solid #e7d0dc;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  display: grid;
  gap: 0.85rem;
  animation: pop-in 450ms ease;
}

.back-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.auth-card p {
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 0.5rem;
}

.auth-form label {
  font-weight: 700;
  color: var(--primary-dark);
}

.auth-form input,
.import-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dfc4d2;
  background: #fffbfd;
  padding: 0.62rem 0.72rem;
  font-family: "Nunito", sans-serif;
  color: var(--text);
}

.auth-form input:focus,
.import-form input:focus {
  outline: 2px solid #cc8dac;
  border-color: #cc8dac;
}

.form-error {
  min-height: 1.1rem;
  color: var(--danger);
  font-size: 0.92rem;
}

.hint {
  border-radius: 14px;
  border: 1px dashed #d8b6c7;
  background: #fdf4f9;
  padding: 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.dashboard-page {
  overflow-x: hidden;
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #fff2f8, #f5e0eb);
  border-right: 1px solid #e2c6d4;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.sidebar-brand p {
  color: var(--text-soft);
}

.sidebar-nav {
  display: grid;
  gap: 0.6rem;
}

.nav-btn {
  border: 1px solid #dcb9cb;
  background: #fff;
  border-radius: 14px;
  text-align: left;
  padding: 0.72rem;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.nav-btn:hover {
  background: #fff4fa;
}

.nav-btn.is-active {
  background: linear-gradient(160deg, #f4dfea, #ebc8da);
  border-color: #cc95b0;
}

.dashboard-content {
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.imports-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.content-section.hidden-section {
  display: none;
}

.start-supplies #ordersSection {
  display: none;
}

.start-supplies #suppliesSection {
  display: block;
}

.import-card {
  border-radius: var(--radius-lg);
  border: 1px solid #e3cbd7;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.95rem;
  display: grid;
  gap: 0.45rem;
}

.import-card p {
  color: var(--text-soft);
}

.order-receipt-preview {
  display: grid;
  gap: 0.34rem;
  padding: 0.15rem 0;
}

.receipt-line {
  display: block;
  height: 0.44rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #efdce6 0%, #f8eef3 100%);
}

.receipt-line.line-1 {
  width: 88%;
}

.receipt-line.line-2 {
  width: 63%;
}

.receipt-line.line-3 {
  width: 79%;
}

.receipt-line.line-4 {
  width: 54%;
}

.meta {
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 17, 30, 0.35);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(100%, 700px);
  background: #fffbfd;
  border: 1px solid #e8d1dc;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  animation: pop-in 220ms ease;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dcb9cb;
  background: #f7e8f0;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 700;
}

.import-form {
  display: grid;
  gap: 0.55rem;
}

.items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
}

.items-container {
  display: grid;
  gap: 0.5rem;
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px 36px 240px;
  gap: 0.5rem;
  align-items: center;
}

.item-cost-chip {
  background: #fdeef6;
  border: 1px solid #ecc3d8;
  border-radius: 10px;
  padding: 0.38rem 0.48rem;
  font-size: 0.8rem;
  color: #661d42;
  display: grid;
  gap: 0.2rem;
}

.xlsx-actions {
  display: flex;
  justify-content: flex-start;
}

.xlsx-actions .meta {
  font-weight: 700;
  color: var(--primary-dark);
}

.modal-body {
  max-height: min(56vh, 420px);
  overflow: auto;
  border: 1px solid #e7d0dc;
  border-radius: 12px;
  background: #fff8fc;
  padding: 0.8rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
}

.items-table th,
.items-table td {
  text-align: left;
  padding: 0.68rem 0.9rem;
  border-bottom: 1px solid #eedbe4;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.empty-state {
  border: 1px dashed #dcb9cb;
  border-radius: 16px;
  padding: 1.1rem;
  background: #fff4fa;
  color: var(--text-soft);
}

.supplies-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid #e6cdda;
  background: #ffffff;
  overflow: auto;
  box-shadow: var(--shadow);
}

.supplies-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.supplies-table th,
.supplies-table td {
  padding: 0.74rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid #efdee6;
  font-size: 0.93rem;
}

.invoice-card {
  width: min(100%, 920px);
}

.invoice-layout {
  display: grid;
  gap: 0.85rem;
}

.invoice-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
  border: 1px solid #e7d0dc;
  background: #fff8fc;
  border-radius: 12px;
  padding: 0.75rem;
}

.invoice-meta-wide {
  grid-column: span 2;
  padding: 0.15rem 0.2rem;
}

.invoice-strong {
  font-weight: 800;
  color: var(--text);
}

.invoice-qr-panel {
  min-width: 176px;
  border: 1px solid #e7d0dc;
  background: #fff8fc;
  border-radius: 12px;
  padding: 0.65rem;
  text-align: center;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.invoice-qr-panel img {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid #e3c7d5;
  background: #ffffff;
  object-fit: contain;
  padding: 0.35rem;
  margin: 0 auto;
}

.invoice-summary {
  display: grid;
  justify-items: end;
  border: 1px solid #e7d0dc;
  background: #fff8fc;
  border-radius: 12px;
  padding: 0.8rem;
  gap: 0.1rem;
}

.invoice-total {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.invoice-qr-wrap {
  text-align: center;
}

.invoice-qr-wrap img {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  border: 1px solid #e3c7d5;
  background: #ffffff;
  object-fit: contain;
  padding: 0.35rem;
}

.items-modal-total {
  margin-top: 0.75rem;
  text-align: right;
  font-weight: 700;
  color: var(--primary-dark);
}

.supplies-table thead th {
  position: sticky;
  top: 0;
  background: #fdf2f8;
  color: var(--primary-dark);
  z-index: 1;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes tilt-in {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-8deg) translateY(14px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateY(0);
  }
}

@keyframes stagger-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frame-float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--rot, 0deg));
  }
}

@keyframes slide-pill {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 920px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    max-width: 100%;
  }

  .hero-collage {
    min-height: 300px;
  }

  .frame-main {
    width: 54%;
    left: 23%;
  }

  .frame-left,
  .frame-right {
    width: 29%;
    height: 36%;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2c6d4;
  }
}

@media (max-width: 700px) {
  .invoice-header-grid {
    grid-template-columns: 1fr;
  }

  .invoice-qr-panel {
    justify-self: center;
  }

  .showcase-grid {
    grid-template-columns: minmax(220px, 1fr);
  }

  .invoice-meta-wide {
    grid-column: span 1;
  }

  .item-row {
    grid-template-columns: 1fr;
  }

  .item-row .icon-btn {
    width: 100%;
    border-radius: 10px;
    height: 38px;
  }
}
