:root {
  --bg: #f8feff;
  --bg-soft: #edfafd;
  --surface: #ffffff;
  --surface-soft: #f2feff;
  --primary: #18a999;
  --primary-dark: #11766e;
  --primary-2: #39be83;
  --text: #12474b;
  --text-soft: #3d7276;
  --danger: #b9374f;
  --shadow: 0 12px 28px rgba(22, 126, 132, 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%, #d9f7f4, transparent 30%),
    radial-gradient(circle at 90% 25%, #ddf5e9, transparent 35%),
    linear-gradient(130deg, #ffffff, #effbfd);
  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(86, 164, 108, 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(112, 197, 132, 0.32), rgba(112, 197, 132, 0));
  animation: bob 6s ease-in-out infinite;
}

.orb-b {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: -40px;
  background: radial-gradient(circle, rgba(160, 226, 173, 0.35), rgba(160, 226, 173, 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, #9fe0ac, #4da867);
  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-card {
  background: linear-gradient(135deg, #f8fff9, #eaf8ec);
  border: 1px solid #cfe8d3;
  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 #b5e5df;
  background: linear-gradient(140deg, #ecfffd, #d8f8f0);
  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: 360px;
  border-radius: 30px;
  background: radial-gradient(circle at 28% 18%, #f2fffd, #dff6f1 58%, #d2efe7);
  border: 1px solid #b9e8df;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-collage .frame {
  position: absolute;
  border-radius: 18px;
  padding: 0.45rem;
  background: linear-gradient(180deg, #ffffff, #edfcf9);
  border: 1px solid #bde9e0;
  box-shadow: 0 18px 28px rgba(16, 100, 104, 0.18);
  transition: transform 300ms ease;
}

.hero-collage .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.frame-main {
  --rot: -2.5deg;
  width: 57%;
  height: 72%;
  left: 21%;
  top: 11%;
  transform: rotate(var(--rot));
  animation: frame-float 5.5s ease-in-out infinite;
}

.frame-left {
  --rot: -8deg;
  width: 32%;
  height: 46%;
  left: 2.8%;
  top: 45%;
  transform: rotate(var(--rot));
  animation: frame-float 6.3s ease-in-out infinite reverse;
}

.frame-right {
  --rot: 8deg;
  width: 31%;
  height: 42%;
  right: 3.2%;
  top: 3%;
  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(17, 118, 110, 0.9);
  color: #eaffff;
  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: #d9f2de;
  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(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.showcase-card {
  border-radius: var(--radius-lg);
  border: 1px solid #cee6d2;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px auto;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(44, 113, 67, 0.2);
}

.showcase-card:hover img {
  transform: scale(1.05);
}

.showcase-card div {
  padding: 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.showcase-card p {
  color: var(--text-soft);
}

.reveal-card {
  animation: stagger-reveal 640ms ease both;
}

.delay-1 {
  animation-delay: 110ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.feature-card {
  background: var(--surface);
  border: 1px solid #d6ead9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  animation: float-up 550ms ease;
}

.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(52, 129, 77, 0.28);
}

.btn-soft {
  background: #dff3e3;
  color: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  border: 1px solid #b5daba;
  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 #d0e7d4;
  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 #c4dfc9;
  background: #fbfffc;
  padding: 0.62rem 0.72rem;
  font-family: "Nunito", sans-serif;
  color: var(--text);
}

.auth-form input:focus,
.import-form input:focus {
  outline: 2px solid #8dcc9d;
  border-color: #8dcc9d;
}

.form-error {
  min-height: 1.1rem;
  color: var(--danger);
  font-size: 0.92rem;
}

.hint {
  border-radius: 14px;
  border: 1px dashed #b6d8bd;
  background: #f4fdf5;
  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, #f2fff4, #e0f5e5);
  border-right: 1px solid #c6e2cc;
  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 #b9dcbe;
  background: #fff;
  border-radius: 14px;
  text-align: left;
  padding: 0.72rem;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.nav-btn:hover {
  background: #f4fff6;
}

.nav-btn.is-active {
  background: linear-gradient(160deg, #dff4e4, #c8ebd2);
  border-color: #95cc9f;
}

.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 #cbe3cf;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.95rem;
  display: grid;
  gap: 0.45rem;
}

.import-card p {
  color: var(--text-soft);
}

.meta {
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 43, 23, 0.35);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(100%, 700px);
  background: #fbfffb;
  border: 1px solid #d1e8d5;
  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 #b9dcbe;
  background: #e8f7eb;
  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: #eefdf8;
  border: 1px solid #c3ece1;
  border-radius: 10px;
  padding: 0.38rem 0.48rem;
  font-size: 0.8rem;
  color: #1d6664;
  display: grid;
  gap: 0.2rem;
}

.xlsx-actions {
  display: flex;
  justify-content: flex-start;
}

.modal-body {
  max-height: min(56vh, 420px);
  overflow: auto;
  border: 1px solid #d0e7d4;
  border-radius: 12px;
  background: #f8fff9;
  padding: 0.8rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
}

.items-table th,
.items-table td {
  text-align: left;
  padding: 0.45rem;
  border-bottom: 1px solid #dbeee0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.empty-state {
  border: 1px dashed #b9dcbe;
  border-radius: 16px;
  padding: 1.1rem;
  background: #f4fff5;
  color: var(--text-soft);
}

.supplies-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid #cde6d2;
  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.62rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #deefe1;
  font-size: 0.93rem;
}

.supplies-table thead th {
  position: sticky;
  top: 0;
  background: #f2fdf4;
  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;
  }

  .hero-collage {
    min-height: 320px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #c6e2cc;
  }
}

@media (max-width: 700px) {
  .item-row {
    grid-template-columns: 1fr;
  }

  .item-row .icon-btn {
    width: 100%;
    border-radius: 10px;
    height: 38px;
  }
}
