/* =========================================
   SalonHQ — Luxury Noir with Gold Accents
   ========================================= */

:root {
  --bg: #060606;
  --bg-elevated: #0c0c0c;
  --bg-card: rgba(255,255,255,0.025);
  --bg-card-hover: rgba(255,255,255,0.045);
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --gold-dim: rgba(201,169,110,0.15);
  --cream: #f0ebe0;
  --cream-60: rgba(240,235,224,0.6);
  --cream-40: rgba(240,235,224,0.4);
  --cream-20: rgba(240,235,224,0.2);
  --green: #6ec9a0;
  --blue: #6ea0c9;
  --rose: #c96e8c;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(201,169,110,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

em { font-style: italic; color: var(--gold); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,6,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
  padding: 0.6rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream-60);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  background: var(--gold);
  color: #0a0a0a;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.3);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.5rem;
}
.mobile-menu a {
  font-size: 0.95rem;
  color: var(--cream-60);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .nav-links, .nav > .nav-inner > .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream-20);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-deco-1 {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-deco-2 {
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-deco-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.03);
  pointer-events: none;
}
.hero-line-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 820px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(201,169,110,0.15);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--cream-60);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--cream-40);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 4rem auto 0;
  z-index: 2;
}
.mockup-frame {
  background: #111;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.3),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03) inset;
}
.mockup-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}
.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28c840; }
.mockup-url {
  font-size: 0.75rem;
  color: var(--cream-40);
  background: rgba(255,255,255,0.04);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  flex: 1;
  max-width: 300px;
}
.mockup-body {
  display: flex;
  min-height: 340px;
}
.mockup-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 160px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Mock Sidebar */
.mock-sidebar {
  width: 52px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.mock-sidebar-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.mock-sidebar-item {
  width: 30px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
}
.mock-sidebar-item.active {
  background: var(--gold);
  opacity: 0.6;
}

/* Mock Main */
.mock-main {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-header-title {
  width: 120px;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.mock-header-actions {
  display: flex;
  gap: 6px;
}
.mock-header-actions span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.mock-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mock-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-stat-info { display: flex; flex-direction: column; gap: 0.15rem; }
.mock-stat-label {
  font-size: 0.6rem;
  color: var(--cream-40);
  letter-spacing: 0.03em;
}
.mock-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
}
.mock-stat-badge {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  width: fit-content;
}
.mock-stat-badge.up {
  background: rgba(110,201,160,0.15);
  color: var(--green);
}
.mock-stat-badge.neutral {
  background: rgba(110,160,201,0.15);
  color: var(--blue);
}

/* Mock Charts */
.mock-charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.6rem;
  flex: 1;
}
.mock-chart-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
}
.mock-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.mock-chart-header span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cream-60);
}
.mock-chart-period {
  font-size: 0.6rem !important;
  color: var(--cream-40) !important;
  font-weight: 400 !important;
}
.mock-area-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.mock-area-chart svg { width: 100%; height: 80px; }
.mock-pie-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mock-pie-chart svg { width: 80px; height: 80px; }
.mock-pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  justify-content: center;
}
.mock-pie-legend span {
  font-size: 0.55rem;
  color: var(--cream-40);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-pie-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== SECTION COMMON ===== */
.section-deco-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--cream-60);
  line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features {
  padding: 7rem 0;
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201,169,110,0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--cream);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--cream-60);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== SPLIT LAYOUT (Dashboard, POS) ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
    direction: ltr;
  }
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--cream-60);
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
  padding: 7rem 0;
  position: relative;
}
.dash-preview {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.dash-preview::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201,169,110,0.1), transparent, transparent, rgba(201,169,110,0.05));
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}
.dash-preview-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.dash-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.dash-mini-header span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-60);
}
.dash-mini-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(110,201,160,0.15);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-mini-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.dash-mini-chart svg {
  width: 100%;
  height: 40px;
}
.dash-preview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.dash-preview-small {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
}
.dash-small-label {
  font-size: 0.7rem;
  color: var(--cream-40);
  margin-bottom: 0.25rem;
}
.dash-small-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.dash-small-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.dash-small-bar div {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s var(--ease);
}
.dash-client-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.dash-client-item { text-align: center; }
.dash-client-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.dash-client-label {
  font-size: 0.72rem;
  color: var(--cream-40);
}

@media (max-width: 600px) {
  .dash-preview-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== POS SECTION ===== */
.pos-section {
  padding: 7rem 0;
  position: relative;
}
.pos-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pos-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pos-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pos-feature-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 0.15rem;
}
.pos-feature-item span {
  font-size: 0.85rem;
  color: var(--cream-40);
  line-height: 1.5;
}

/* POS Bill Mock */
.pos-preview {
  display: flex;
  justify-content: center;
}
.pos-bill-mock {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.pos-bill-mock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.pos-bill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.pos-bill-header span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.pos-bill-num {
  font-size: 0.75rem;
  color: var(--cream-40);
  font-family: var(--font-body);
  font-weight: 400;
}
.pos-bill-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.pos-client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pos-bill-client strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}
.pos-bill-client span {
  font-size: 0.72rem;
  color: var(--cream-40);
}
.pos-bill-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pos-bill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.pos-item-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
}
.pos-item-staff {
  font-size: 0.7rem;
  color: var(--cream-40);
}
.pos-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
}
.pos-bill-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}
.pos-bill-coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.pos-bill-coupon span:first-of-type {
  font-weight: 600;
  background: var(--gold-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
}
.pos-coupon-val {
  margin-left: auto;
  color: var(--green);
  font-weight: 600;
}
.pos-bill-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.pos-bill-payments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.pos-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.55rem 0.25rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--cream-60);
  cursor: pointer;
  transition: all 0.3s;
}
.pos-pay-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== STAFF PORTAL SECTION ===== */
.staff-portal-section {
  padding: 7rem 0;
  position: relative;
}

/* Portal Tabs */
.portal-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.portal-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.portal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.portal-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--cream-40);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}
.portal-tab:hover { color: var(--cream-60); }
.portal-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.portal-content {
  padding: 2rem;
  min-height: 400px;
}
.portal-panel {
  display: none;
  animation: fadePanel 0.4s var(--ease);
}
.portal-panel.active { display: block; }
@keyframes fadePanel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Attendance Calendar */
.portal-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.attendance-calendar {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.att-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.att-cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--cream-60);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.att-cal-nav:hover { border-color: var(--gold); color: var(--gold); }
.att-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.att-day-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cream-40);
  padding: 0.4rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.att-day {
  font-size: 0.8rem;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  color: var(--cream-40);
  position: relative;
}
.att-day.present {
  background: rgba(110,201,160,0.1);
  color: var(--green);
  font-weight: 500;
}
.att-day.half {
  background: rgba(201,169,110,0.1);
  color: var(--gold);
  font-weight: 500;
}
.att-day.absent {
  background: rgba(201,110,140,0.1);
  color: var(--rose);
  font-weight: 500;
}
.att-day.weekoff {
  background: rgba(110,160,201,0.08);
  color: var(--blue);
  opacity: 0.7;
}
.att-day.today {
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
}
.att-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.att-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--cream-40);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.present { background: var(--green); }
.legend-dot.half { background: var(--gold); }
.legend-dot.absent { background: var(--rose); }
.legend-dot.weekoff { background: var(--blue); opacity: 0.7; }

/* Attendance Details */
.attendance-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.att-punch-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.att-punch-header {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cream);
}
.att-punch-times {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.att-punch-in, .att-punch-out {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.att-punch-label {
  display: block;
  font-size: 0.7rem;
  color: var(--cream-40);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.att-punch-time {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  font-family: var(--font-display);
}
.att-punch-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.att-hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--cream-60);
}
.att-hours-val {
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
}
.att-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.att-summary-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.att-summary-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.att-summary-num.present { color: var(--green); }
.att-summary-num.half { color: var(--gold); }
.att-summary-num.absent { color: var(--rose); }
.att-summary-num.weekoff { color: var(--blue); }
.att-summary-label {
  font-size: 0.72rem;
  color: var(--cream-40);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Staff Dashboard Tab */
.staff-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.staff-dash-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.staff-dash-card.highlight {
  grid-column: span 2;
  border-color: var(--border-gold);
  background: rgba(201,169,110,0.03);
}
.staff-dash-card.wide {
  grid-column: span 2;
}
.staff-dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.staff-dash-card-header span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream-60);
}
.staff-dash-period {
  font-size: 0.68rem !important;
  color: var(--cream-40) !important;
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.staff-dash-big-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
}
.staff-dash-compare {
  margin-top: 0.35rem;
}
.staff-dash-compare .up {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
}

/* Incentive Bar */
.incentive-bar-wrap {
  margin-top: 0.25rem;
}
.incentive-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--cream-60);
  margin-bottom: 0.5rem;
}
.incentive-pct {
  font-weight: 700;
  color: var(--gold);
}
.incentive-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.incentive-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.5s var(--ease);
}
.incentive-reward {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--gold);
}

/* Staff Appointments Tab */
.staff-appt-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.staff-appt-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.staff-appt-item:hover {
  border-color: rgba(255,255,255,0.1);
}
.staff-appt-time {
  min-width: 55px;
  text-align: center;
}
.staff-appt-hour {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}
.staff-appt-ampm {
  font-size: 0.65rem;
  color: var(--cream-40);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.staff-appt-details {
  flex: 1;
}
.staff-appt-details strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
.staff-appt-details span {
  font-size: 0.8rem;
  color: var(--cream-40);
}
.staff-appt-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.staff-appt-status.upcoming {
  background: rgba(110,160,201,0.12);
  color: var(--blue);
}
.staff-appt-status.completed {
  background: rgba(110,201,160,0.12);
  color: var(--green);
}
.staff-appt-status.cancelled {
  background: rgba(201,110,140,0.12);
  color: var(--rose);
}

/* Staff Bills Tab */
.staff-bills-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.staff-bill-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.staff-bill-row:hover { border-color: rgba(255,255,255,0.1); }
.staff-bill-id {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-60);
  font-family: var(--font-body);
}
.staff-bill-client {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cream);
}
.staff-bill-services {
  font-size: 0.82rem;
  color: var(--cream-40);
}
.staff-bill-amount {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  text-align: right;
}
.staff-bill-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.staff-bill-status.paid {
  background: rgba(110,201,160,0.12);
  color: var(--green);
}
.staff-bill-status.pending {
  background: rgba(201,169,110,0.12);
  color: var(--gold);
}
.staff-bill-status.partial {
  background: rgba(110,160,201,0.12);
  color: var(--blue);
}

/* Staff Portal Responsive */
@media (max-width: 900px) {
  .portal-panel-grid { grid-template-columns: 1fr; }
  .staff-dash-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-dash-card.highlight,
  .staff-dash-card.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .portal-content { padding: 1.25rem; }
  .portal-tab { padding: 0.75rem 1rem; font-size: 0.78rem; }
  .staff-dash-grid { grid-template-columns: 1fr; }
  .staff-dash-card.highlight,
  .staff-dash-card.wide { grid-column: span 1; }
  .staff-bill-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .staff-bill-services { display: none; }
  .att-summary-grid { grid-template-columns: repeat(4, 1fr); }
  .att-summary-item { padding: 0.75rem 0.5rem; }
  .att-summary-num { font-size: 1.2rem; }
}

/* ===== MANAGEMENT SECTION ===== */
.management-section {
  padding: 7rem 0;
  position: relative;
}
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.mgmt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.mgmt-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.04), transparent);
  pointer-events: none;
}
.mgmt-card:hover {
  border-color: rgba(201,169,110,0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.mgmt-card-icon { margin-bottom: 1.5rem; }
.mgmt-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.mgmt-card p {
  font-size: 0.92rem;
  color: var(--cream-60);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.mgmt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mgmt-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  background: var(--gold-dim);
  color: var(--gold);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .mgmt-grid { grid-template-columns: 1fr; }
}

/* ===== CASH MANAGEMENT & IOT SECTION ===== */
.cash-iot-section {
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.cash-iot-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

/* Smart Drawer Device */
.drawer-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.drawer-device {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.drawer-body {
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.03) inset;
}
.drawer-screen {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.drawer-screen-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.drawer-wifi-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.drawer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110,201,160,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(110,201,160,0); }
}
.drawer-screen-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
}
.drawer-time {
  font-size: 0.72rem;
  color: var(--cream-40);
  font-variant-numeric: tabular-nums;
}
.drawer-screen-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer-amount-display {
  text-align: center;
  padding: 1rem;
  background: rgba(201,169,110,0.05);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: var(--radius);
}
.drawer-amount-label {
  display: block;
  font-size: 0.7rem;
  color: var(--cream-40);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.drawer-amount-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.drawer-denom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.drawer-denom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.denom-note {
  font-size: 0.72rem;
  color: var(--cream-60);
  font-weight: 500;
}
.denom-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  font-family: var(--font-display);
}
.drawer-sync-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 0.68rem;
  color: var(--green);
}
.drawer-sync-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: syncPulse 1.5s ease-in-out infinite;
}
@keyframes syncPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Drawer Tray */
.drawer-tray {
  padding: 1rem 1.25rem 1.25rem;
  position: relative;
}
.drawer-tray-slots {
  display: flex;
  gap: 4px;
  margin-bottom: 0.75rem;
}
.drawer-slot {
  flex: 1;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.drawer-slot::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0 0 3px 3px;
  transition: height 0.6s var(--ease);
}
.drawer-slot.slot-500::after { height: 75%; background: rgba(201,169,110,0.25); }
.drawer-slot.slot-200::after { height: 50%; background: rgba(201,169,110,0.2); }
.drawer-slot.slot-100::after { height: 90%; background: rgba(201,169,110,0.18); }
.drawer-slot.slot-50::after { height: 60%; background: rgba(201,169,110,0.15); }
.drawer-slot.slot-coins::after { height: 40%; background: rgba(201,169,110,0.12); border-radius: 50% 50% 3px 3px; }
.drawer-tray-handle {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0 auto;
}
.drawer-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* IoT Connection Lines */
.iot-connection-lines {
  width: 100%;
  max-width: 380px;
  height: 40px;
  margin-top: -4px;
}
.iot-connection-lines svg { width: 100%; height: 100%; }

/* Cash Feature Cards Grid */
.cash-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.cash-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.cash-feature-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.cash-feature-card.iot-highlight {
  grid-column: span 2;
  border-color: rgba(201,169,110,0.15);
  background: rgba(201,169,110,0.03);
  position: relative;
  overflow: hidden;
}
.cash-feature-card.iot-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.cash-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.cash-feature-icon.iot {
  background: rgba(110,201,160,0.12);
  color: var(--green);
}
.cash-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.cash-feature-card p {
  font-size: 0.85rem;
  color: var(--cream-60);
  line-height: 1.65;
}

/* IoT Badges */
.iot-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.iot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--gold-dim);
  color: var(--gold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.iot-badge.live {
  background: rgba(110,201,160,0.12);
  color: var(--green);
}
.iot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: syncPulse 1.5s ease-in-out infinite;
}

/* Cash Flow Timeline */
.cash-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.cash-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.timeline-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.timeline-balance {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.timeline-bal-item {
  text-align: center;
}
.timeline-bal-label {
  display: block;
  font-size: 0.68rem;
  color: var(--cream-40);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.timeline-bal-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}
.timeline-bal-value.highlight { color: var(--gold); }
.timeline-bal-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* Timeline Entries */
.timeline-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
}
.timeline-entries::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-entry {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s;
}
.timeline-entry:hover { background: rgba(255,255,255,0.02); }
.timeline-dot {
  position: absolute;
  left: -21px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}
.timeline-entry.cash-in .timeline-dot {
  border-color: var(--green);
  background: rgba(110,201,160,0.2);
}
.timeline-entry.cash-out .timeline-dot {
  border-color: var(--rose);
  background: rgba(201,110,140,0.2);
}
.timeline-entry.alert .timeline-dot {
  border-color: #e8a838;
  background: rgba(232,168,56,0.2);
  animation: alertPulse 2s ease-in-out infinite;
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,168,56,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(232,168,56,0); }
}
.timeline-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cream-40);
  font-variant-numeric: tabular-nums;
}
.timeline-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.1rem;
}
.timeline-info span {
  font-size: 0.75rem;
  color: var(--cream-40);
}
.timeline-amount {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.timeline-amount.in { color: var(--green); }
.timeline-amount.out { color: var(--rose); }
.timeline-amount.alert {
  color: #e8a838;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
}

/* Cash IoT Responsive */
@media (max-width: 900px) {
  .cash-iot-layout { grid-template-columns: 1fr; }
  .cash-features-grid { grid-template-columns: 1fr; }
  .cash-feature-card.iot-highlight { grid-column: span 1; }
}
@media (max-width: 600px) {
  .cash-timeline { padding: 1.25rem; }
  .timeline-entry {
    grid-template-columns: 55px 1fr auto;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
  }
  .timeline-balance { gap: 1rem; }
  .timeline-bal-value { font-size: 1rem; }
  .drawer-denom-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PRICING ===== */
.pricing-section {
  padding: 7rem 0;
  position: relative;
}
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.pricing-card-inner {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}
.pricing-card-inner::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.08), transparent);
  pointer-events: none;
}
.pricing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--gold);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.pricing-plan {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cream);
}
.pricing-period {
  font-size: 1rem;
  color: var(--cream-40);
}
.pricing-desc {
  font-size: 0.95rem;
  color: var(--cream-60);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  text-align: left;
  position: relative;
  z-index: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--cream-60);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--cream-40);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cream);
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--cream-40);
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--cream-40);
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 6rem 1rem 3rem; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .mock-stats-row { grid-template-columns: repeat(2, 1fr); }
  .mock-charts-row { grid-template-columns: 1fr; }
  .features, .dashboard-section, .pos-section, .staff-portal-section, .cash-iot-section, .management-section, .pricing-section {
    padding: 4rem 0;
  }
  .section-header { margin-bottom: 2.5rem; }
  .mgmt-card { padding: 1.75rem; }
  .pricing-card-inner { padding: 2rem; }
  .pricing-amount { font-size: 4rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .pos-bill-payments { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ANIMATED GRADIENT BORDER for Pricing ===== */
@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%, transparent 60%, var(--gold-light));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: borderGlow 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===== SMOOTH SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(201,169,110,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,110,0.5); }

/* Selection color */
::selection {
  background: rgba(201,169,110,0.3);
  color: var(--cream);
}

/* ===== LAUNCHER MODAL ===== */
.launcher-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.launcher-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.launcher-modal {
  width: 100%;
  max-width: 620px;
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.launcher-overlay.open .launcher-modal {
  transform: translateY(0) scale(1);
}
.launcher-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.launcher-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--cream-60);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
  z-index: 2;
}
.launcher-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Steps */
.launcher-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.launcher-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  transition: opacity 0.4s;
}
.launcher-step.active { opacity: 1; }
.launcher-step.done { opacity: 0.7; }
.launcher-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream-60);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.launcher-step.active .launcher-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}
.launcher-step.done .launcher-step-num {
  background: rgba(110,201,160,0.15);
  border-color: var(--green);
  color: var(--green);
}
.launcher-step span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream-60);
}
.launcher-step-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 0.75rem;
}

/* Panels */
.launcher-panel {
  display: none;
  animation: fadePanel 0.4s var(--ease);
}
.launcher-panel.active { display: block; }
.launcher-panel-header {
  margin-bottom: 1.75rem;
}
.launcher-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.launcher-panel-header p {
  font-size: 0.88rem;
  color: var(--cream-40);
}

/* Fields */
.launcher-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.launcher-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.launcher-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.launcher-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream-60);
  letter-spacing: 0.02em;
}
.launcher-field label .req { color: var(--gold); }
.launcher-field input,
.launcher-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.launcher-field input::placeholder {
  color: var(--cream-40);
  opacity: 0.6;
}
.launcher-field input:focus,
.launcher-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}
.launcher-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
.launcher-field select option {
  background: #111;
  color: var(--cream);
}
.launcher-input-wrap {
  position: relative;
}
.launcher-input-wrap input { width: 100%; padding-right: 2.5rem; }
.toggle-pass {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cream-40);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.3s;
}
.toggle-pass:hover { color: var(--gold); }

/* Actions */
.launcher-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

/* Loading state */
.launcher-modal .btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.launcher-modal .btn.loading span {
  visibility: hidden;
}
.launcher-modal .btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.launcher-success {
  text-align: center;
  padding: 1rem 0;
}
.launcher-success-icon {
  margin-bottom: 1.25rem;
  animation: successPop 0.5s var(--ease);
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.launcher-success h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.launcher-success p {
  font-size: 0.92rem;
  color: var(--cream-60);
  margin-bottom: 1.5rem;
}
.launcher-success-details {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.launcher-success-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.launcher-success-label {
  font-size: 0.78rem;
  color: var(--cream-40);
  font-weight: 500;
}
.launcher-success-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
}

/* Toast */
.launcher-toast {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(201,110,140,0.15);
  border: 1px solid rgba(201,110,140,0.25);
  color: var(--rose);
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  white-space: nowrap;
  max-width: 90%;
  z-index: 3;
}
.launcher-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* Responsive */
@media (max-width: 600px) {
  .launcher-modal { padding: 1.5rem; }
  .launcher-row { grid-template-columns: 1fr; }
  .launcher-step span { display: none; }
  .launcher-step-line { width: 24px; margin: 0 0.4rem; }
  .launcher-actions { flex-direction: column-reverse; }
  .launcher-actions .btn { width: 100%; justify-content: center; }
}
