* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 100% 70% at 0% -20%, var(--bg-glow-1), transparent 58%),
    radial-gradient(ellipse 80% 55% at 100% 0%, var(--bg-glow-2), transparent 52%),
    radial-gradient(ellipse 70% 50% at 55% 115%, var(--bg-glow-3), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 40%, var(--bg-glow-4), transparent 50%),
    var(--bg);
  color: var(--secondary);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  border-radius: 50%;
  content: "";
  filter: blur(90px);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  animation: aurora-drift 20s ease-in-out infinite;
  background: radial-gradient(circle, var(--blob-1), transparent 68%);
  height: 65vmax;
  left: -18%;
  top: -22%;
  width: 65vmax;
}

body::after {
  animation: aurora-drift 26s ease-in-out infinite reverse;
  background: radial-gradient(circle, var(--blob-2), transparent 68%);
  bottom: -20%;
  height: 55vmax;
  right: -15%;
  width: 55vmax;
}

::selection {
  background: var(--selection-bg);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.topbar h1 {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0;
}

.brand-lockup {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  border-radius: 16px;
  box-shadow: 0 12px 32px var(--brand-shadow);
  flex-shrink: 0;
}

.brand-name {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.15rem 0 0;
}

.landing-brand {
  margin-bottom: 0.5rem;
}

.landing-brand .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.landing-brand .eyebrow {
  margin: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a,
.ghost-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--secondary);
  cursor: pointer;
  font-weight: 700;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.nav a:hover,
.ghost-button:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--nav-hover-border);
  transform: translateY(-1px);
}

.nav a.active {
  background: var(--gradient-btn);
  border-color: transparent;
  box-shadow: 0 8px 28px var(--nav-active-shadow);
  color: white;
}

main {
  display: grid;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem) 3rem;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-content,
.hero-card,
.panel,
.stats-grid article,
.price-card,
.landing-proof article {
  backdrop-filter: blur(22px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
  var(--gradient-surface) border-box;
}

.hero-content {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-content h2 {
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0.8rem 0 1rem;
  max-width: 980px;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-card {
  align-content: end;
  background: var(--hero-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  display: grid;
  min-height: 280px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 45%);
  pointer-events: none;
}

.hero-card span,
.hero-card small {
  opacity: 0.85;
}

.hero-card strong {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  color: var(--primary-bright);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.85rem;
  text-transform: uppercase;
}

.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gradient-btn);
  box-shadow: var(--btn-shadow);
  color: white;
  overflow: hidden;
  position: relative;
}

.button.primary::after {
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.button.primary:hover::after {
  transform: translateX(120%);
}

.button.secondary {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid var(--line);
  color: white;
}

.button.full {
  width: 100%;
}

.button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.hidden,
[hidden].scan-modal {
  display: none !important;
}

.stats-grid,
.reports-grid,
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-grid article {
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.stats-grid article:hover {
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.stats-grid article:nth-child(1) strong {
  background: linear-gradient(135deg, #fff, var(--cyan));
}

.stats-grid article:nth-child(2) strong {
  background: linear-gradient(135deg, #fff, var(--primary-bright));
}

.stats-grid article:nth-child(3) strong {
  background: linear-gradient(135deg, #fff, #86efac);
}

.stats-grid article:nth-child(4) strong {
  background: linear-gradient(135deg, #fff, var(--warning));
}

.stats-grid article:nth-child(5) strong {
  background: linear-gradient(135deg, #fff, var(--gold));
}

.stats-grid article:nth-child(6) strong {
  background: linear-gradient(135deg, #fff, var(--accent));
}

.stats-grid span,
.checkout-box label,
.cart-line small,
.transaction small,
.price-card p,
footer {
  color: var(--muted);
}

.stats-grid strong {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 800;
  margin-top: 0.35rem;
}

.workspace {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.panel {
  padding: 1.4rem;
}

.section-heading h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
}

.section-heading.center {
  justify-content: center;
  text-align: center;
}

input,
select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--secondary);
  outline: none;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

input:focus,
select:focus {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

#searchInput {
  max-width: 320px;
}

.search-tools,
.toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.barcode-form {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.barcode-form input {
  min-width: 220px;
}

.barcode-form input.barcode-ok {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
}

.barcode-feedback {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.barcode-feedback.error {
  color: var(--danger);
}

.scan-modal {
  align-items: center;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 200;
}

.scan-modal-card {
  display: grid;
  gap: 0.75rem;
  max-width: 420px;
  padding: 1.25rem;
  width: 100%;
}

.scan-modal-card h2 {
  font-weight: 800;
  margin: 0;
}

.scan-video {
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
}

.scan-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.settings-form {
  display: grid;
  gap: 1rem;
}

.settings-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-wide {
  grid-column: 1 / -1;
}

.settings-check {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
}

.settings-check input {
  width: auto;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.settings-backup {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.settings-account {
  margin-top: 1rem;
}

.settings-theme-block {
  margin-bottom: 0.5rem;
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-picker-large {
  gap: 0.75rem;
}

.theme-option {
  align-items: center;
  background: var(--surface-soft);
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.theme-picker-large .theme-option {
  min-width: 88px;
  padding: 0.65rem 0.5rem;
}

.theme-option:hover {
  border-color: var(--nav-hover-border);
  transform: translateY(-2px);
}

.theme-option.active {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.theme-swatch {
  border-radius: 10px;
  height: 28px;
  width: 100%;
}

.theme-picker-large .theme-swatch {
  height: 36px;
}

.theme-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-option.active .theme-label {
  color: var(--primary-bright);
}

.user-bar .theme-picker .theme-option {
  min-width: 0;
  padding: 0.35rem;
}

.user-bar .theme-picker .theme-label {
  display: none;
}

.user-bar .theme-picker .theme-swatch {
  height: 22px;
  width: 22px;
  border-radius: 8px;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.staff-form {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
}

.staff-form button {
  grid-column: 1 / -1;
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.product-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 36px rgba(45, 212, 191, 0.18), var(--glow);
  transform: translateY(-4px) scale(1.01);
}

.product-card h3 {
  font-weight: 800;
  margin: 0;
}

.product-actions,
.transaction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.5rem 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.mini-button:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
}

.mini-button.danger {
  color: var(--danger);
}

.mini-button.danger:hover:not(:disabled) {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.4);
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-meta {
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  justify-content: space-between;
}

.stock-low {
  color: var(--warning);
  font-weight: 800;
}

.stock-empty {
  color: var(--danger);
  font-weight: 800;
}

.cart-panel {
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

.cart-items {
  display: grid;
  gap: 0.75rem;
  max-height: 320px;
  overflow: auto;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: var(--muted);
  padding: 1rem;
  text-align: center;
}

.cart-line,
.transaction {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr auto;
  padding: 0.85rem;
}

.cart-controls {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--secondary);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
  transition: background 0.2s;
}

.icon-button:hover {
  background: rgba(139, 92, 246, 0.25);
}

.checkout-box {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.checkout-box label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr auto;
  padding-top: 1rem;
}

.totals strong:last-child {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.45rem;
  font-weight: 800;
}

.management,
.pricing,
.shift-panel,
.settings-panel {
  scroll-margin-top: 7rem;
}

.product-form,
.customer-form {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.6fr 0.9fr 0.9fr 1fr auto auto;
}

.product-form.editing {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 18px;
  padding: 1rem;
}

.customer-form {
  grid-template-columns: 1fr 1fr auto;
  margin-bottom: 1rem;
}

.customer-list,
.best-seller-list,
.insight-list,
.stock-movement-list,
.opname-list {
  display: grid;
  gap: 0.75rem;
}

.customer-card,
.best-seller-card,
.insight-card,
.stock-movement-card,
.opname-row {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr auto;
  padding: 0.9rem;
}

.opname-row {
  grid-template-columns: 1fr auto auto auto;
}

.customer-card p,
.best-seller-card p,
.insight-card p,
.stock-movement-card p,
.opname-row small {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.insight-card.warning {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.1);
}

.insight-card.danger {
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 0 24px rgba(251, 113, 133, 0.1);
}

.customer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.metric-pill {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  color: var(--primary-bright);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
}

.metric-pill.danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--danger);
}

.reports-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.transaction-list {
  display: grid;
  gap: 0.75rem;
}

.ai-panel ul,
.price-card ul {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.2rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  transition: transform 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card.featured {
  background: var(--price-featured-bg);
  border-color: var(--price-featured-border);
  box-shadow: var(--glow);
  transform: translateY(-8px);
}

.price-card h3,
.price-card p {
  margin: 0;
}

.price-card strong {
  font-size: 1.75rem;
  font-weight: 800;
}

.manage-grid {
  margin-top: 1rem;
}

.landing-gate {
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
}

.landing-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin: auto;
  max-width: 1200px;
}

.landing-marketing h2 {
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.8rem 0 1rem;
}

.landing-marketing p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

.landing-features {
  color: var(--muted);
  line-height: 1.9;
  margin: 1.2rem 0;
  padding-left: 1.2rem;
}

.landing-proof {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-proof span {
  color: var(--muted);
  font-size: 0.88rem;
}

.landing-login h2 {
  font-weight: 800;
  margin: 0.25rem 0 0.5rem;
}

.login-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.login-hint {
  color: var(--muted);
  margin: 0;
}

.demo-quick {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.demo-quick p {
  color: var(--muted);
  margin: 0;
}

.login-error {
  color: var(--danger);
  font-weight: 700;
  margin-top: 0.8rem;
}

.user-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.user-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  color: var(--primary-bright);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.5rem 0.85rem;
}

.shift-status {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 1rem;
}

.shift-status.open {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.12);
}

.shift-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ppob-panel {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.ppob-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr 1fr 1.2fr auto;
}

.opname-panel {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.opname-diff.plus {
  color: var(--cyan);
  font-weight: 800;
}

.opname-diff.minus {
  color: var(--danger);
  font-weight: 800;
}

footer {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}

@keyframes aurora-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(6%, 10%) scale(1.1);
  }
}

* {
  scrollbar-color: rgba(168, 85, 247, 0.45) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 980px) {
  .landing-layout {
    grid-template-columns: 1fr;
  }

  .landing-proof {
    grid-template-columns: 1fr;
  }

  .hero,
  .workspace,
  .reports-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-panel {
    position: static;
  }

  .product-form,
  .customer-form {
    grid-template-columns: 1fr 1fr;
  }

  .search-tools,
  .toolbar-actions,
  .barcode-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .user-bar {
    justify-content: flex-start;
  }

  .stats-grid,
  .product-form,
  .customer-form,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .staff-form {
    grid-template-columns: 1fr;
  }

  #searchInput {
    max-width: none;
  }

  .barcode-form input {
    min-width: 0;
  }

  .ppob-grid {
    grid-template-columns: 1fr;
  }

  .opname-row {
    grid-template-columns: 1fr;
  }
}
