/* =========================================================
   MÖOYA BUSINESS MANAGER
   STYLES.CSS — PREMIUM ELEGANT V3
   =========================================================
   BASE:
   - Premium Liquid Glass
   - Neutral / clear glass
   - Black background
   - Deep navy atmosphere only on upper area
   - Floating centered bottom navigation
   - TRUE CENTER navigation
   - Premium icon treatment
   - Soft jelly / spring interaction
   - Light / dark / system theme
   - Product image friendly
   - ENGINE SAFE
   ========================================================= */


/* =========================================================
   1. ROOT
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #050505;
  --bg-soft: #0b0b0d;

  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --surface-soft: rgba(255, 255, 255, 0.035);

  --glass-border: rgba(255, 255, 255, 0.105);
  --glass-highlight: rgba(255, 255, 255, 0.16);

  --text: #f7f7f8;
  --text-soft: rgba(247, 247, 248, 0.68);
  --text-muted: rgba(247, 247, 248, 0.45);

  --navy: #001f3f;
  --navy-light: #063763;

  --success: #65d69a;
  --danger: #ff7078;
  --warning: #f2c96d;

  --shadow:
    0 18px 45px rgba(0, 0, 0, 0.38);

  --shadow-soft:
    0 10px 30px rgba(0, 0, 0, 0.24);

  --nav-height: 76px;
  --nav-width: 560px;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 17px;
  --radius-sm: 13px;

  --font:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}


/* =========================================================
   2. LIGHT THEME
   ========================================================= */

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f3f4f6;
  --bg-soft: #e9eaed;

  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.46);

  --glass-border: rgba(0, 0, 0, 0.075);
  --glass-highlight: rgba(255, 255, 255, 0.82);

  --text: #111214;
  --text-soft: rgba(17, 18, 20, 0.66);
  --text-muted: rgba(17, 18, 20, 0.44);

  --shadow:
    0 18px 45px rgba(30, 32, 38, 0.12);

  --shadow-soft:
    0 10px 30px rgba(30, 32, 38, 0.08);
}


/* =========================================================
   3. SYSTEM THEME
   ========================================================= */

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    color-scheme: light;

    --bg: #f3f4f6;
    --bg-soft: #e9eaed;

    --surface: rgba(255, 255, 255, 0.62);
    --surface-strong: rgba(255, 255, 255, 0.78);
    --surface-soft: rgba(255, 255, 255, 0.46);

    --glass-border: rgba(0, 0, 0, 0.075);
    --glass-highlight: rgba(255, 255, 255, 0.82);

    --text: #111214;
    --text-soft: rgba(17, 18, 20, 0.66);
    --text-muted: rgba(17, 18, 20, 0.44);

    --shadow:
      0 18px 45px rgba(30, 32, 38, 0.12);

    --shadow-soft:
      0 10px 30px rgba(30, 32, 38, 0.08);
  }
}


/* =========================================================
   4. RESET
   ========================================================= */

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

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  background:
    radial-gradient(
      900px 500px at 50% -180px,
      rgba(0, 31, 63, 0.72),
      transparent 68%
    ),
    var(--bg);

  color: var(--text);

  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   5. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* =========================================================
   6. APP SHELL
   ========================================================= */

#app,
.app,
.app-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

main {
  width: 100%;
}


/* =========================================================
   7. ATMOSPHERE
   ========================================================= */

body::before {
  content: "";

  position: fixed;
  z-index: -2;

  top: 0;
  left: 0;
  right: 0;

  height: 390px;

  background:
    radial-gradient(
      480px 260px at 50% 0%,
      rgba(0, 31, 63, 0.85),
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(0, 31, 63, 0.55),
      transparent
    );

  pointer-events: none;
}

body::after {
  content: "";

  position: fixed;
  z-index: -3;

  inset: 0;

  background:
    radial-gradient(
      600px 600px at 100% 30%,
      rgba(255, 255, 255, 0.018),
      transparent 65%
    ),
    radial-gradient(
      500px 500px at 0% 70%,
      rgba(255, 255, 255, 0.012),
      transparent 70%
    );

  pointer-events: none;
}


/* =========================================================
   8. PAGE
   ========================================================= */

[data-page] {
  width: 100%;
  max-width: 760px;

  margin: 0 auto;

  padding:
    24px
    20px
    calc(var(--nav-height) + 54px);

  animation:
    pageIn
    0.38s
    cubic-bezier(.22, .8, .25, 1);
}

[data-page][hidden] {
  display: none !important;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   9. HEADER
   ========================================================= */

.app-header,
.page-header,
.header {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  margin-bottom: 22px;
}

.app-brand,
.brand,
.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo,
.app-logo {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.045)
    );

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-title,
.app-title {
  margin: 0;

  font-size: 20px;
  line-height: 1.1;
  font-weight: 750;

  letter-spacing: -0.035em;
}

.brand-subtitle,
.app-subtitle {
  margin: 3px 0 0;

  color: var(--text-muted);

  font-size: 12px;
}


/* =========================================================
   10. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  letter-spacing: -0.035em;
}

h1 {
  font-size: 30px;
  line-height: 1.12;
}

h2 {
  font-size: 23px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

p {
  margin-top: 0;
}

.muted,
.text-muted,
.secondary {
  color: var(--text-soft);
}

.small {
  font-size: 12px;
}

.tiny {
  font-size: 11px;
}

strong {
  font-weight: 720;
}


/* =========================================================
   11. GLASS CARD
   ========================================================= */

.card,
.glass-card,
.panel,
.stat-card,
.section-card {
  position: relative;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid var(--glass-border);

  border-radius: var(--radius-lg);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    var(--shadow-soft);

  backdrop-filter:
    blur(28px)
    saturate(125%);

  -webkit-backdrop-filter:
    blur(28px)
    saturate(125%);

  overflow: hidden;
}

.card::before,
.glass-card::before,
.panel::before,
.stat-card::before,
.section-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 16px;
  right: 16px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent
    );

  pointer-events: none;
}

.card {
  padding: 18px;
}


/* =========================================================
   12. HERO
   ========================================================= */

.hero,
.dashboard-hero,
.home-hero {
  position: relative;

  padding: 24px;

  margin-bottom: 16px;

  border-radius: var(--radius-xl);

  background:
    radial-gradient(
      300px 180px at 85% 10%,
      rgba(0, 65, 120, 0.35),
      transparent 70%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.095),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 55px rgba(0, 0, 0, 0.32);

  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);

  overflow: hidden;
}

.hero::after,
.dashboard-hero::after,
.home-hero::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  right: -70px;
  bottom: -90px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.035);

  filter: blur(2px);

  pointer-events: none;
}


/* =========================================================
   13. SECTION HEADER
   ========================================================= */

.section-header,
.card-header,
.section-title-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;
}

.section-header h2,
.section-header h3,
.card-header h2,
.card-header h3,
.section-title-row h2,
.section-title-row h3 {
  margin-bottom: 0;
}

.section-label {
  color: var(--text-muted);

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.09em;
}


/* =========================================================
   14. DASHBOARD STATS
   ========================================================= */

.stats-grid,
.dashboard-stats {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 11px;

  margin-bottom: 16px;
}

.stat-card {
  min-height: 112px;
  padding: 16px;
}

.stat-label {
  color: var(--text-muted);

  font-size: 11px;
  font-weight: 650;

  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.stat-value {
  margin-top: 8px;

  font-size: 21px;
  line-height: 1.1;

  font-weight: 760;

  letter-spacing: -0.04em;

  word-break: break-word;
}

.stat-meta {
  margin-top: 7px;

  color: var(--text-muted);

  font-size: 11px;
}


/* =========================================================
   15. GRID
   ========================================================= */

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* =========================================================
   16. PRODUCT LIST
   ========================================================= */

#productList,
#cashierProducts,
#productSalesList,
#reportProductList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card,
.product-item {
  position: relative;

  display: flex;
  align-items: center;

  gap: 13px;

  padding: 13px;

  border-radius: var(--radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.028)
    );

  border: 1px solid rgba(255, 255, 255, 0.075);

  transition:
    transform 0.25s cubic-bezier(.2, .8, .2, 1),
    background 0.25s ease,
    border-color 0.25s ease;
}

.product-card:hover,
.product-item:hover {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.082),
      rgba(255, 255, 255, 0.035)
    );

  border-color:
    rgba(255, 255, 255, 0.115);
}

.product-card:active,
.product-item:active {
  transform: scale(0.985);
}


/* =========================================================
   17. PRODUCT IMAGES
   ========================================================= */

.product-image,
.product-thumb {
  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  border-radius: 17px;

  object-fit: cover;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04)
    );

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-image-placeholder,
.product-thumb-placeholder {
  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255, 255, 255, 0.11),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.04);

  border: 1px solid var(--glass-border);

  color: var(--text-muted);

  font-size: 18px;
}

.product-card-image {
  width: 62px;
  height: 62px;

  flex: 0 0 62px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 18px;

  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.045);

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.product-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.35s cubic-bezier(.16, 1.2, .3, 1);
}

.product-card:hover
.product-card-image img {
  transform: scale(1.045);
}

.product-card-image > span {
  color: var(--text-soft);

  font-size: 20px;
  font-weight: 750;
}


/* =========================================================
   18. PRODUCT INFO
   ========================================================= */

.product-info {
  min-width: 0;
  flex: 1;
}

.product-name {
  margin: 0;

  font-size: 14px;
  font-weight: 700;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  margin-top: 3px;

  color: var(--text-soft);

  font-size: 12px;
}

.product-stock {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 11px;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =========================================================
   19. LIST ITEMS
   ========================================================= */

.list,
.list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item,
.transaction-item,
.expense-item,
.report-item {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  min-width: 0;

  padding: 13px 14px;

  border-radius: var(--radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.052),
      rgba(255, 255, 255, 0.025)
    );

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.list-item:active,
.transaction-item:active,
.expense-item:active {
  transform: scale(0.987);
}

.list-main,
.list-item-main {
  min-width: 0;
  flex: 1;
}

.list-title {
  margin: 0;

  font-size: 13px;
  font-weight: 680;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-subtitle {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 11px;
}

.list-value,
.list-item-value {
  flex-shrink: 0;

  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   20. EMPTY STATE
   ========================================================= */

.empty,
.empty-state,
.no-data {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  min-height: 120px;

  padding: 24px;

  color: var(--text-muted);

  text-align: center;
}

.empty-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  margin-bottom: 10px;

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid var(--glass-border);
}


/* =========================================================
   21. FORMS
   ========================================================= */

.form-group,
.field,
.input-group {
  display: flex;
  flex-direction: column;

  gap: 7px;
  margin-bottom: 13px;
}

label {
  color: var(--text-soft);

  font-size: 12px;
  font-weight: 620;
}

input,
select,
textarea {
  width: 100%;

  min-height: 46px;

  padding: 11px 13px;

  color: var(--text);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid var(--glass-border);

  border-radius: 14px;

  outline: none;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color:
    rgba(255, 255, 255, 0.23);

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

select option {
  color: #111;
  background: #fff;
}


/* =========================================================
   22. BUTTONS
   ========================================================= */

button,
.btn {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 42px;

  padding: 10px 15px;

  border-radius: 14px;

  color: var(--text);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.105),
      rgba(255, 255, 255, 0.055)
    );

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 7px 20px rgba(0, 0, 0, 0.16);

  cursor: pointer;

  user-select: none;

  overflow: hidden;

  transition:
    transform 0.18s cubic-bezier(.2, .9, .25, 1.15),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

button::after,
.btn::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.12),
      transparent 55%
    );

  opacity: 0;

  transition: opacity 0.2s ease;

  pointer-events: none;
}

button:hover,
.btn:hover {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.065)
    );

  border-color:
    rgba(255, 255, 255, 0.15);
}

button:hover::after,
.btn:hover::after {
  opacity: 1;
}

button:active,
.btn:active {
  transform: scale(0.94);

  transition-duration: 0.08s;
}

button:focus-visible,
.btn:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* =========================================================
   23. BUTTON VARIANTS
   ========================================================= */

.btn-primary,
button.primary,
button[data-primary="true"] {
  color: #fff;

  background:
    linear-gradient(
      145deg,
      #063763,
      #001f3f
    );

  border-color:
    rgba(110, 175, 230, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 31, 63, 0.32);
}

.btn-primary:hover,
button.primary:hover,
button[data-primary="true"]:hover {
  background:
    linear-gradient(
      145deg,
      #084577,
      #00284e
    );
}

.btn-danger,
button.danger {
  color: #fff;

  background:
    linear-gradient(
      145deg,
      rgba(160, 35, 45, 0.65),
      rgba(100, 20, 28, 0.5)
    );

  border-color:
    rgba(255, 100, 110, 0.18);
}

.btn-success,
button.success {
  color: #fff;

  background:
    linear-gradient(
      145deg,
      rgba(30, 120, 75, 0.68),
      rgba(20, 82, 52, 0.5)
    );

  border-color:
    rgba(100, 220, 155, 0.18);
}

.btn-ghost,
button.ghost {
  background: transparent;

  box-shadow: none;

  border-color: transparent;
}

.btn-icon,
.icon-btn {
  width: 40px;
  min-width: 40px;

  height: 40px;
  min-height: 40px;

  padding: 0;

  border-radius: 13px;
}


/* =========================================================
   24. BUTTON ROW
   ========================================================= */

.actions,
.button-row,
.form-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 12px;
}

.actions > button,
.button-row > button,
.form-actions > button {
  flex: 1 1 auto;
}


/* =========================================================
   25. SEARCH
   ========================================================= */

.search-wrap,
.search-box {
  position: relative;

  margin-bottom: 12px;
}

.search-wrap input,
.search-box input {
  padding-left: 42px;
}

.search-icon {
  position: absolute;

  left: 14px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--text-muted);

  pointer-events: none;
}


/* =========================================================
   26. CASHIER
   ========================================================= */

.cashier-layout {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.cashier-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cashier-product {
  width: 100%;
  justify-content: flex-start;

  text-align: left;
}

.cashier-product-image {
  width: 54px;
  height: 54px;

  flex: 0 0 54px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid var(--glass-border);
}

.cashier-product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.cashier-product-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 1px;
}

.cashier-product-info strong {
  overflow: hidden;

  max-width: 100%;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.cashier-product-info small {
  color: var(--text-muted);
}


/* =========================================================
   27. CART
   ========================================================= */

.cart {
  position: relative;

  padding: 17px;

  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    var(--shadow);

  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto
    auto;

  align-items: center;

  gap: 10px;

  padding: 12px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info strong {
  display: block;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-info small {
  color: var(--text-muted);
}

.cart-item-name {
  font-size: 13px;
  font-weight: 680;
}

.cart-item-price {
  color: var(--text-soft);
  font-size: 11px;
}

.cart-item-actions {
  display: flex;

  align-items: center;

  gap: 5px;
}

.cart-item-actions button {
  width: 31px;
  min-width: 31px;

  height: 31px;
  min-height: 31px;

  padding: 0;

  border-radius: 10px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-btn {
  width: 31px;
  min-width: 31px;

  height: 31px;
  min-height: 31px;

  padding: 0;

  border-radius: 10px;
}

.cart-total {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding-top: 14px;
  margin-top: 12px;

  border-top: 1px solid var(--glass-border);
}

.cart-total strong {
  font-size: 21px;
}


/* =========================================================
   28. PAYMENT
   ========================================================= */

.payment-box {
  margin-top: 14px;
}

.payment-method {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;

  margin-bottom: 10px;
}

.payment-method button {
  min-height: 44px;
}

.payment-method button.active {
  background:
    linear-gradient(
      145deg,
      rgba(0, 60, 110, 0.65),
      rgba(0, 31, 63, 0.7)
    );

  border-color:
    rgba(110, 175, 230, 0.24);
}


/* =========================================================
   29. FINANCE
   ========================================================= */

.finance-summary,
.report-summary {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 15px;
}

.finance-stat,
.report-stat {
  padding: 14px;

  border-radius: var(--radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.025)
    );

  border: 1px solid var(--glass-border);
}

.finance-stat-label,
.report-stat-label {
  color: var(--text-muted);

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finance-stat-value,
.report-stat-value {
  margin-top: 5px;

  font-size: 17px;
  font-weight: 730;
}


/* =========================================================
   30. EXPENSE
   ========================================================= */

.expense-form {
  padding: 16px;

  margin-bottom: 14px;

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );

  border: 1px solid var(--glass-border);
}


/* =========================================================
   31. REPORTS
   ========================================================= */

.report-section {
  margin-bottom: 16px;
}

.report-table,
.table {
  width: 100%;

  border-collapse: collapse;

  font-size: 12px;
}

.report-table th,
.report-table td,
.table th,
.table td {
  padding: 10px 8px;

  text-align: left;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.055);
}

.report-table th,
.table th {
  color: var(--text-muted);

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-table td:last-child,
.table td:last-child,
.report-table th:last-child,
.table th:last-child {
  text-align: right;
}


/* =========================================================
   32. SETTINGS
   ========================================================= */

.settings-group {
  margin-bottom: 16px;
}

.settings-item {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 14px 0;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.055);
}

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

.settings-info {
  min-width: 0;
  flex: 1;
}

.settings-title {
  font-size: 13px;
  font-weight: 680;
}

.settings-description {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 11px;
}


/* =========================================================
   33. DIVIDER
   ========================================================= */

.divider,
hr {
  height: 1px;

  margin: 16px 0;

  border: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--glass-border),
      transparent
    );
}


/* =========================================================
   34. BADGES
   ========================================================= */

.badge {
  display: inline-flex;

  align-items: center;

  min-height: 24px;

  padding: 4px 8px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.055);

  border: 1px solid var(--glass-border);

  color: var(--text-soft);

  font-size: 10px;
  font-weight: 680;
}

.badge-success {
  color: var(--success);
}

.badge-danger {
  color: var(--danger);
}

.badge-warning {
  color: var(--warning);
}


/* =========================================================
   35. STOCK
   ========================================================= */

.stock-control {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}

.stock-control button {
  width: 31px;
  min-width: 31px;

  height: 31px;
  min-height: 31px;

  padding: 0;

  border-radius: 10px;
}

.stock-value {
  min-width: 28px;

  text-align: center;

  font-size: 12px;
  font-weight: 700;
}


/* =========================================================
   36. FLOATING BOTTOM NAVIGATION
   TRUE CENTER — INDEX.HTML MATCH
   ========================================================= */

.bottom-navigation {
  position: fixed;

  z-index: 100;

  left: 50%;
  right: auto;

  bottom:
    max(
      10px,
      env(safe-area-inset-bottom)
    );

  width:
    min(
      calc(100% - 24px),
      var(--nav-width)
    );

  min-height: var(--nav-height);

  transform:
    translate3d(-50%, 0, 0);

  display: block;

  padding: 7px;

  box-sizing: border-box;

  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.105),
      rgba(255, 255, 255, 0.052)
    );

  border:
    1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 55px rgba(0, 0, 0, 0.48);

  backdrop-filter:
    blur(32px)
    saturate(135%);

  -webkit-backdrop-filter:
    blur(32px)
    saturate(135%);

  isolation: isolate;
}


/* =========================================================
   37. NAVIGATION INNER GRID
   ========================================================= */

.bottom-navigation-inner {
  width: 100%;
  min-height: 60px;

  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  align-items: stretch;
  justify-items: stretch;

  gap: 2px;

  box-sizing: border-box;
}


/* =========================================================
   38. NAVIGATION BUTTON
   ========================================================= */

.bottom-navigation .nav-button {
  position: relative;

  width: 100%;
  min-width: 0;

  min-height: 60px;

  margin: 0;
  padding: 5px 2px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 5px;

  box-sizing: border-box;

  border-radius: 19px;

  color: var(--text-muted);

  background: transparent;

  border: 1px solid transparent;

  box-shadow: none;

  overflow: visible;

  text-align: center;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transform:
    translate3d(0, 0, 0);

  transition:
    transform 0.32s cubic-bezier(.16, 1.35, .3, 1),
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}


/* =========================================================
   39. NAVIGATION INNER LIGHT
   ========================================================= */

.bottom-navigation .nav-button::before {
  content: "";

  position: absolute;

  z-index: -1;

  inset: 2px;

  border-radius: 16px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.11),
      transparent 70%
    );

  opacity: 0;

  transform: scale(0.82);

  transition:
    opacity 0.25s ease,
    transform 0.32s cubic-bezier(.16, 1.35, .3, 1);
}


/* =========================================================
   40. NAVIGATION ACTIVE
   ========================================================= */

.bottom-navigation .nav-button.active {
  color: var(--text);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.038)
    );

  border-color:
    rgba(255, 255, 255, 0.065);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 7px 20px rgba(0, 0, 0, 0.12);
}

.bottom-navigation .nav-button.active::before {
  opacity: 1;

  transform: scale(1);
}


/* =========================================================
   41. NAVIGATION ICON
   TRUE MATHEMATICAL CENTER
   ========================================================= */

.bottom-navigation .nav-icon {
  position: relative;

  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto;
  padding: 0;

  box-sizing: border-box;

  font-size: 20px;

  font-weight: 650;

  line-height: 1;

  text-align: center;

  color: currentColor;

  transform:
    translate3d(0, 0, 0)
    scale(1);

  transform-origin: center;

  transition:
    transform 0.34s cubic-bezier(.16, 1.35, .3, 1),
    filter 0.25s ease,
    opacity 0.22s ease;
}


/* SVG SUPPORT */
.bottom-navigation .nav-icon svg {
  width: 22px;
  height: 22px;

  display: block;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;
}


/* ACTIVE ICON */
.bottom-navigation .nav-button.active .nav-icon {
  transform:
    translate3d(0, -1px, 0)
    scale(1.08);

  filter:
    drop-shadow(
      0 3px 8px
      rgba(255, 255, 255, 0.08)
    );
}


/* =========================================================
   42. NAVIGATION LABEL
   TRUE CENTER
   ========================================================= */

.bottom-navigation .nav-label {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 0;

  box-sizing: border-box;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  text-align: center;

  font-size: 9px;

  line-height: 1;

  font-weight: 650;

  letter-spacing: 0.01em;

  opacity: 0.82;

  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(.16, 1.35, .3, 1);
}

.bottom-navigation .nav-button.active .nav-label {
  opacity: 1;

  transform:
    translateY(-0.5px);
}


/* =========================================================
   43. NAVIGATION HOVER
   ========================================================= */

@media (hover: hover) {

  .bottom-navigation .nav-button:hover {
    color: var(--text);

    background:
      rgba(255, 255, 255, 0.035);

    border-color:
      rgba(255, 255, 255, 0.045);

    transform:
      translate3d(0, -1px, 0);
  }

  .bottom-navigation .nav-button:hover .nav-icon {
    transform:
      translate3d(0, -1px, 0)
      scale(1.035);
  }

}


/* =========================================================
   44. NAVIGATION TOUCH / JELLY
   ========================================================= */

.bottom-navigation .nav-button:active {
  transform:
    translate3d(0, 1px, 0)
    scale(0.88);

  transition-duration: 0.08s;
}

.bottom-navigation .nav-button:active .nav-icon {
  transform:
    scale(0.82);
}


/* =========================================================
   45. NAVIGATION TOP HIGHLIGHT
   ========================================================= */

.bottom-navigation::before {
  content: "";

  position: absolute;

  z-index: -1;

  top: 0;
  left: 22px;
  right: 22px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );

  pointer-events: none;
}


/* =========================================================
   46. NAVIGATION SHADOW
   ========================================================= */

.bottom-navigation::after {
  content: "";

  position: absolute;

  z-index: -2;

  left: 50%;
  bottom: -18px;

  width: 55%;
  height: 30px;

  transform:
    translateX(-50%);

  background:
    radial-gradient(
      ellipse,
      rgba(0, 0, 0, 0.38),
      transparent 70%
    );

  filter: blur(10px);

  pointer-events: none;
}


/* =========================================================
   47. TOAST
   ========================================================= */

#toastContainer,
.toast-container {
  position: fixed;

  z-index: 1000;

  left: 50%;

  bottom:
    calc(
      var(--nav-height) +
      30px +
      env(safe-area-inset-bottom)
    );

  transform: translateX(-50%);

  width:
    min(
      calc(100% - 36px),
      430px
    );

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  pointer-events: none;
}

.toast {
  max-width: 100%;

  padding: 11px 15px;

  border-radius: 14px;

  color: var(--text);

  background:
    linear-gradient(
      145deg,
      rgba(35, 35, 38, 0.88),
      rgba(17, 17, 19, 0.88)
    );

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.38);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  font-size: 12px;

  animation:
    toastIn
    0.32s
    cubic-bezier(.16, 1.2, .3, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform:
      translateY(12px)
      scale(0.94);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* =========================================================
   48. MODAL
   ========================================================= */

.modal,
.dialog {
  position: fixed;

  z-index: 500;

  inset: 0;

  display: flex;

  align-items: flex-end;
  justify-content: center;

  padding: 16px;

  background: rgba(0, 0, 0, 0.48);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content,
.dialog-content {
  width: min(100%, 620px);

  max-height:
    min(
      88vh,
      760px
    );

  overflow-y: auto;

  padding: 20px;

  border-radius:
    28px
    28px
    22px
    22px;

  background:
    linear-gradient(
      145deg,
      rgba(35, 35, 38, 0.96),
      rgba(15, 15, 17, 0.96)
    );

  border:
    1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55);

  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);

  animation:
    sheetIn
    0.38s
    cubic-bezier(.16, 1.15, .3, 1);
}

@keyframes sheetIn {
  from {
    opacity: 0;

    transform:
      translateY(30px)
      scale(0.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


/* =========================================================
   49. LOADING
   ========================================================= */

.loading {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--text-muted);

  font-size: 12px;
}

.spinner {
  width: 15px;
  height: 15px;

  border-radius: 50%;

  border:
    2px solid rgba(255, 255, 255, 0.12);

  border-top-color:
    rgba(255, 255, 255, 0.65);

  animation:
    spin
    0.7s
    linear
    infinite;
}

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


/* =========================================================
   50. STATUS DOT
   ========================================================= */

.status-dot {
  width: 7px;
  height: 7px;

  display: inline-block;

  border-radius: 50%;

  background: currentColor;

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.035);
}


/* =========================================================
   51. TABLET
   ========================================================= */

@media (min-width: 600px) {

  [data-page] {
    padding-left: 28px;
    padding-right: 28px;
  }

  .stats-grid,
  .dashboard-stats {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .finance-summary,
  .report-summary {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .cashier-layout {
    display: grid;

    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(300px, 0.85fr);

    align-items: start;
  }

  .cart {
    position: sticky;
    top: 20px;
  }

  .bottom-navigation {
    width:
      min(
        calc(100% - 40px),
        var(--nav-width)
      );
  }

}


/* =========================================================
   52. DESKTOP
   ========================================================= */

@media (min-width: 900px) {

  [data-page] {
    max-width: 920px;

    padding-top: 34px;
  }

  .bottom-navigation {
    width:
      min(
        calc(100% - 40px),
        580px
      );
  }

}


/* =========================================================
   53. SMALL PHONES
   ========================================================= */

@media (max-width: 370px) {

  [data-page] {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bottom-navigation {
    width: calc(100% - 16px);

    bottom:
      max(
        8px,
        env(safe-area-inset-bottom)
      );

    min-height: 70px;

    padding: 6px;

    border-radius: 23px;
  }

  .bottom-navigation-inner {
    min-height: 56px;

    gap: 1px;
  }

  .bottom-navigation .nav-button {
    min-height: 54px;

    border-radius: 16px;
  }

  .bottom-navigation .nav-icon {
    width: 25px;
    height: 25px;

    flex-basis: 25px;

    font-size: 19px;
  }

  .bottom-navigation .nav-label {
    font-size: 8px;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-value {
    font-size: 18px;
  }

  .product-card-image {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

}


/* =========================================================
   54. SAFE AREA
   ========================================================= */

@supports (padding: max(0px)) {

  [data-page] {
    padding-bottom:
      calc(
        var(--nav-height) +
        44px +
        env(safe-area-inset-bottom)
      );
  }

  .bottom-navigation {
    bottom:
      max(
        10px,
        env(safe-area-inset-bottom)
      );
  }

}


/* =========================================================
   55. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;
  }

}


/* =========================================================
   56. SELECTION
   ========================================================= */

::selection {
  background:
    rgba(70, 125, 180, 0.32);

  color: var(--text);
}


/* =========================================================
   END — PREMIUM ELEGANT V3
   ========================================================= */