/* BillMaster Pro — Premium Design System v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@700;800;900&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --topbar-height: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-cool: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --sidebar-bg-from: #0f172a;
  --sidebar-bg-to: #1a1040;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes float { 0%,100% { transform:translateY(0px); } 50% { transform:translateY(-20px); } }
@keyframes pulse-glow { 0%,100% { box-shadow:0 0 20px rgba(99,102,241,0.4); } 50% { box-shadow:0 0 40px rgba(99,102,241,0.8); } }
@keyframes shimmer { 0% { background-position:-1000px 0; } 100% { background-position:1000px 0; } }
@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes gradientShift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }
@keyframes blobPulse { 0%,100% { border-radius:60% 40% 30% 70%/60% 30% 70% 40%; } 50% { border-radius:30% 60% 70% 40%/50% 60% 30% 60%; } }
@keyframes ripple { to { transform:scale(4); opacity:0; } }
@keyframes countUp { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes ring { 0%,100% { transform:rotate(0deg); } 20% { transform:rotate(8deg); } 40% { transform:rotate(-8deg); } 60% { transform:rotate(4deg); } 80% { transform:rotate(-4deg); } }

.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.5s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.5s ease forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-slideDown { animation: slideDown 0.3s ease forwards; }
.animate-countUp { animation: countUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

/* ===== PAGE TRANSITION ===== */
.page-content { animation: fadeInUp 0.35s ease; }

/* ===== BUTTONS ===== */
.btn-premium {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: all 0.25s ease; position: relative; overflow: hidden;
  background: var(--gradient); color: white; white-space: nowrap;
}
.btn-premium::after { content:''; position:absolute; inset:0; background:rgba(255,255,255,0); transition:0.25s; }
.btn-premium:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(99,102,241,0.35); color:white; }
.btn-premium:hover::after { background:rgba(255,255,255,0.08); }
.btn-premium:active { transform:translateY(0) scale(0.98); }
.btn-outline-premium { background:transparent; border:2px solid var(--primary); color:var(--primary); box-shadow:none; }
.btn-outline-premium:hover { background:var(--primary); color:white; transform:translateY(-2px); box-shadow:0 8px 20px rgba(99,102,241,0.25); }
.btn-sm-premium { padding:7px 16px; font-size:12px; gap:6px; }
.btn-danger-premium { background:linear-gradient(135deg,#ef4444,#dc2626); }
.btn-danger-premium:hover { box-shadow:0 8px 24px rgba(239,68,68,0.35); }
.btn-success-premium { background:linear-gradient(135deg,#10b981,#059669); }
.btn-success-premium:hover { box-shadow:0 8px 24px rgba(16,185,129,0.35); }
.btn-warning-premium { background:linear-gradient(135deg,#f59e0b,#d97706); }
.btn-icon { width:36px; height:36px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); background:white; cursor:pointer; transition:all 0.2s; color:var(--text-muted); }
.btn-icon:hover { background:var(--primary); color:white; border-color:var(--primary); transform:translateY(-1px); }

/* ===== CARDS ===== */
.card-premium {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-premium:hover { box-shadow: var(--shadow-md); }
.card-premium .card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); font-weight: 700; display:flex; align-items:center; justify-content:space-between; background:var(--bg-card); }
.card-premium .card-body { padding: 24px; }

.glass-card {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-glass {
  background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
  border-radius: var(--radius); color: white;
}

/* ===== STAT CARDS (v2) ===== */
.stat-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.stat-card::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:var(--radius) var(--radius) 0 0; }
.stat-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.stat-card .stat-icon { width:48px; height:48px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:14px; }
.stat-card .stat-value { font-size:26px; font-weight:800; line-height:1.1; color:var(--dark); font-family:'Poppins',sans-serif; animation: countUp 0.6s ease; }
.stat-card .stat-label { font-size:12px; color:var(--text-muted); font-weight:500; margin-top:4px; }
.stat-card .stat-change { font-size:11px; font-weight:600; display:flex; align-items:center; gap:4px; margin-top:10px; padding:3px 8px; border-radius:20px; display:inline-flex; }
.stat-card .stat-change.up { background:rgba(16,185,129,0.1); color:var(--success); }
.stat-card .stat-change.down { background:rgba(239,68,68,0.08); color:var(--danger); }
.stat-card .stat-change.neutral { background:rgba(100,116,139,0.08); color:var(--text-muted); }

/* Stat card color variants */
.stat-card.primary::after { background:var(--gradient); }
.stat-card.primary .stat-icon { background:rgba(99,102,241,0.1); color:var(--primary); }
.stat-card.success::after { background:linear-gradient(135deg,#10b981,#059669); }
.stat-card.success .stat-icon { background:rgba(16,185,129,0.1); color:var(--success); }
.stat-card.warning::after { background:linear-gradient(135deg,#f59e0b,#d97706); }
.stat-card.warning .stat-icon { background:rgba(245,158,11,0.1); color:var(--warning); }
.stat-card.danger::after { background:linear-gradient(135deg,#ef4444,#dc2626); }
.stat-card.danger .stat-icon { background:rgba(239,68,68,0.1); color:var(--danger); }
.stat-card.info::after { background:linear-gradient(135deg,#0ea5e9,#0284c7); }
.stat-card.info .stat-icon { background:rgba(14,165,233,0.1); color:var(--secondary); }
.stat-card.purple::after { background:linear-gradient(135deg,#8b5cf6,#7c3aed); }
.stat-card.purple .stat-icon { background:rgba(139,92,246,0.1); color:#8b5cf6; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width); height: 100vh; position: fixed; top: 0; left: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--sidebar-bg-from) 0%, var(--sidebar-bg-to) 100%);
  display: flex; flex-direction: column; transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.25); overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }
.sidebar.collapsed .sidebar-item span,
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .user-info-sidebar div,
.sidebar.collapsed .nav-badge { display: none; }
.sidebar.collapsed .sidebar-item { justify-content: center; padding: 12px; gap: 0; }
.sidebar.collapsed .sidebar-item .nav-icon { width: auto; font-size: 20px; }
.sidebar.collapsed .sidebar-logo { justify-content: center; padding: 20px 0; }

.sidebar-logo {
  padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; gap: 12px; min-height: 70px;
}
.sidebar-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink:0;
}
.sidebar-logo .logo-text { font-family:'Poppins',sans-serif; font-weight:800; font-size:15px; color:white; line-height:1.2; overflow:hidden; white-space:nowrap; }
.sidebar-logo .logo-text small { display:block; font-size:10px; font-weight:400; color:rgba(255,255,255,0.4); font-family:'Inter',sans-serif; }

.sidebar-collapse-btn {
  position: absolute; top: 22px; right: -14px; width: 28px; height: 28px;
  background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; font-size: 12px; border: 2px solid var(--sidebar-bg-from);
  transition: all 0.3s; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar-collapse-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.sidebar.collapsed .sidebar-collapse-btn { right: -14px; }
.sidebar.collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

.sidebar-nav { flex:1; overflow-y:auto; padding:12px 10px; }
.sidebar-nav::-webkit-scrollbar { width:3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:3px; }
.sidebar-section-label {
  font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px;
  color:rgba(255,255,255,0.28); padding:14px 10px 6px; white-space:nowrap; overflow:hidden;
}
.sidebar-item {
  display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:11px; margin-bottom:2px;
  color:rgba(255,255,255,0.58); font-size:13.5px; font-weight:500; transition:all 0.2s ease; cursor:pointer;
  text-decoration:none; position:relative; white-space:nowrap;
}
.sidebar-item:hover { background:rgba(255,255,255,0.09); color:white; }
.sidebar-item.active {
  background: linear-gradient(135deg,rgba(99,102,241,0.3),rgba(14,165,233,0.2));
  color: white; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.25);
}
.sidebar-item .nav-icon { width:20px; font-size:16px; flex-shrink:0; text-align:center; }
.sidebar-item .nav-badge {
  margin-left:auto; background:var(--danger); color:white; font-size:9px; font-weight:700;
  padding:2px 6px; border-radius:20px; white-space:nowrap; min-width:18px; text-align:center;
}
.sidebar-item .nav-badge.green { background:var(--success); }
.sidebar-footer { padding:12px; border-top:1px solid rgba(255,255,255,0.07); flex-shrink:0; }
.user-info-sidebar { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:11px; background:rgba(255,255,255,0.06); overflow:hidden; }
.user-info-sidebar img { width:34px; height:34px; border-radius:9px; object-fit:cover; flex-shrink:0; }
.user-info-sidebar .user-name { font-size:12.5px; font-weight:600; color:white; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-info-sidebar .user-role { font-size:10px; color:rgba(255,255,255,0.4); white-space:nowrap; }

/* Sidebar tooltip when collapsed */
.sidebar.collapsed .sidebar-item[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  background: var(--dark-2); color: white; font-size: 12px; padding: 6px 12px;
  border-radius: 8px; white-space: nowrap; z-index: 999; margin-left: 12px;
  box-shadow: var(--shadow-md); pointer-events:none;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-height); background: white; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 14px;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--border);
}
.topbar .page-title { font-size:17px; font-weight:700; color:var(--dark); flex:1; line-height:1.2; }
.topbar .page-title small { display:block; font-size:11px; color:var(--text-muted); font-weight:400; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.topbar-icon-btn {
  width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background:var(--bg);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.2s; color:var(--text-muted);
}
.topbar-icon-btn:hover { background:rgba(99,102,241,0.08); color:var(--primary); border-color:rgba(99,102,241,0.2); }
.topbar-icon-btn .badge-dot { position:absolute; top:8px; right:8px; width:7px; height:7px; border-radius:50%; background:var(--danger); border:2px solid white; }
.topbar-clock { font-size:12px; font-weight:600; color:var(--text-muted); padding:6px 14px; border-radius:20px; background:var(--bg); border:1px solid var(--border); white-space:nowrap; display:flex; align-items:center; gap:6px; }
.topbar-user { display:flex; align-items:center; gap:10px; padding:6px 12px; border-radius:11px; cursor:pointer; transition:all 0.2s; border:1px solid var(--border); background:white; }
.topbar-user:hover { background:var(--bg); border-color:rgba(99,102,241,0.2); }
.topbar-user img { width:32px; height:32px; border-radius:8px; object-fit:cover; }
.topbar-user .user-name { font-size:13px; font-weight:600; }
.topbar-user .user-role { font-size:10px; color:var(--text-muted); }
.expiry-badge { padding:5px 12px; border-radius:30px; font-size:11px; font-weight:700; }
.expiry-badge.danger { background:rgba(239,68,68,0.08); color:var(--danger); }
.expiry-badge.warning { background:rgba(245,158,11,0.08); color:var(--warning); }
.expiry-badge.success { background:rgba(16,185,129,0.08); color:var(--success); }

/* ===== MAIN LAYOUT ===== */
.portal-layout { display:flex; min-height:100vh; }
.main-content { margin-left:var(--sidebar-width); flex:1; display:flex; flex-direction:column; transition:margin-left 0.3s cubic-bezier(0.4,0,0.2,1); min-width:0; }
.main-content.sidebar-collapsed { margin-left:var(--sidebar-collapsed-width); }
.page-content { flex:1; padding:24px 28px; }

/* ===== TABLES ===== */
.table-premium { width:100%; border-collapse:collapse; }
.table-premium th { padding:12px 16px; text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-muted); border-bottom:2px solid var(--border); background:#f8fafc; white-space:nowrap; }
.table-premium td { padding:13px 16px; border-bottom:1px solid rgba(226,232,240,0.6); font-size:13.5px; vertical-align:middle; }
.table-premium tr:last-child td { border-bottom:none; }
.table-premium tbody tr { transition:background 0.15s; }
.table-premium tbody tr:hover td { background:rgba(99,102,241,0.03); }
.table { font-size:13.5px; }
.table th { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }

/* ===== BADGES ===== */
.badge-premium { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:30px; font-size:11px; font-weight:700; }
.badge-premium.active, .badge-premium.paid { background:rgba(16,185,129,0.1); color:#059669; }
.badge-premium.pending { background:rgba(245,158,11,0.1); color:#d97706; }
.badge-premium.suspended, .badge-premium.unpaid { background:rgba(239,68,68,0.09); color:#dc2626; }
.badge-premium.expiring { background:rgba(245,158,11,0.12); color:#d97706; }
.badge-premium.draft { background:rgba(100,116,139,0.1); color:var(--text-muted); }
.badge-premium.completed { background:rgba(99,102,241,0.1); color:var(--primary); }
.badge-premium.cancelled { background:rgba(100,116,139,0.08); color:var(--text-muted); }
.badge-premium.credit { background:rgba(139,92,246,0.1); color:#7c3aed; }

/* ===== FORMS ===== */
.form-group-premium { margin-bottom:18px; }
.form-label-premium { display:block; font-size:12.5px; font-weight:600; color:var(--dark-2); margin-bottom:5px; }
.form-control-premium {
  width:100%; padding:10px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--border);
  font-size:13.5px; font-family:'Inter',sans-serif; background:white; color:var(--text);
  transition:all 0.2s ease; outline:none;
}
.form-control-premium:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(99,102,241,0.1); }
.form-control-premium.error { border-color:var(--danger); box-shadow:0 0 0 3px rgba(239,68,68,0.08); }
.select-premium { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; }
.form-control:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(99,102,241,0.1); }

/* ===== QUICK ACTION GRID ===== */
.quick-action-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.quick-action-item {
  display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px;
  border:1.5px solid var(--border); background:white; cursor:pointer; transition:all 0.2s;
  text-decoration:none; color:var(--dark);
}
.quick-action-item:hover { border-color:var(--primary); background:rgba(99,102,241,0.04); color:var(--primary); transform:translateY(-2px); box-shadow:var(--shadow); }
.quick-action-item .qa-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.quick-action-item .qa-label { font-size:12px; font-weight:600; }
.quick-action-item .qa-sub { font-size:10px; color:var(--text-muted); margin-top:1px; }

/* ===== POS ===== */
.pos-layout { display:flex; height:100vh; background:#0c111d; overflow:hidden; }
.pos-left { flex:1; display:flex; flex-direction:column; border-right:1px solid rgba(255,255,255,0.07); }
.pos-right { width:390px; display:flex; flex-direction:column; background:rgba(15,23,42,0.98); }
.pos-topbar { height:58px; padding:0 18px; display:flex; align-items:center; gap:12px; border-bottom:1px solid rgba(255,255,255,0.07); background:rgba(0,0,0,0.2); }
.pos-topbar .pos-title { font-size:15px; font-weight:700; color:white; }
.pos-search { flex:1; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.1); border-radius:10px; padding:9px 14px; color:white; font-size:13px; outline:none; transition:border-color 0.2s; }
.pos-search:focus { border-color:rgba(99,102,241,0.5); background:rgba(255,255,255,0.1); }
.pos-search::placeholder { color:rgba(255,255,255,0.35); }
.pos-category-tabs { display:flex; gap:7px; padding:10px 14px; overflow-x:auto; border-bottom:1px solid rgba(255,255,255,0.07); }
.pos-category-tabs::-webkit-scrollbar { display:none; }
.pos-cat-tab { padding:6px 14px; border-radius:30px; font-size:11px; font-weight:700; cursor:pointer; white-space:nowrap; transition:all 0.2s; border:1.5px solid rgba(255,255,255,0.12); color:rgba(255,255,255,0.55); background:transparent; }
.pos-cat-tab.active { background:var(--primary); border-color:var(--primary); color:white; box-shadow:0 4px 12px rgba(99,102,241,0.4); }
.pos-cat-tab:hover:not(.active) { background:rgba(255,255,255,0.07); color:white; }
.pos-products { flex:1; overflow-y:auto; padding:14px; display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:10px; }
.pos-products::-webkit-scrollbar { width:3px; }
.pos-products::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.08); border-radius:3px; }
.pos-product-tile {
  background:rgba(255,255,255,0.04); border:1.5px solid rgba(255,255,255,0.07); border-radius:14px;
  padding:14px 10px; cursor:pointer; transition:all 0.2s ease; text-align:center; position:relative;
}
.pos-product-tile:hover { background:rgba(99,102,241,0.18); border-color:rgba(99,102,241,0.45); transform:scale(1.02); box-shadow:0 4px 20px rgba(99,102,241,0.2); }
.pos-product-tile:active { transform:scale(0.97); }
.pos-product-tile .prod-emoji { font-size:30px; margin-bottom:8px; display:block; line-height:1; }
.pos-product-tile .prod-name { font-size:11.5px; font-weight:600; color:rgba(255,255,255,0.9); margin-bottom:4px; line-height:1.3; }
.pos-product-tile .prod-price { font-size:14px; font-weight:800; color:var(--accent); }
.pos-product-tile .prod-stock { font-size:10px; color:rgba(255,255,255,0.35); margin-top:2px; }
.pos-product-tile .prod-gst { font-size:9px; color:rgba(255,255,255,0.25); }
.pos-product-tile.low-stock { border-color:rgba(245,158,11,0.35); }
.pos-product-tile .add-indicator { position:absolute; top:7px; right:7px; background:var(--success); color:white; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; opacity:0; transition:0.15s; }
.pos-product-tile:hover .add-indicator { opacity:1; }

/* POS Cart */
.pos-cart-header { padding:14px 18px; border-bottom:1px solid rgba(255,255,255,0.07); }
.pos-cart-header h4 { color:white; font-weight:700; font-size:14px; }
.pos-cart-items { flex:1; overflow-y:auto; padding:10px; }
.pos-cart-items::-webkit-scrollbar { width:3px; }
.cart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:180px; color:rgba(255,255,255,0.25); }
.cart-empty i { font-size:44px; margin-bottom:10px; }
.cart-empty p { font-size:12px; }
.cart-item { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:11px; background:rgba(255,255,255,0.04); margin-bottom:7px; border:1px solid rgba(255,255,255,0.06); transition:background 0.15s; }
.cart-item:hover { background:rgba(255,255,255,0.07); }
.cart-item .item-name { flex:1; font-size:12.5px; font-weight:600; color:rgba(255,255,255,0.9); }
.cart-item .item-price { font-size:13px; font-weight:800; color:var(--accent); }
.cart-item .qty-control { display:flex; align-items:center; gap:5px; }
.qty-btn { width:24px; height:24px; border-radius:7px; border:none; background:rgba(255,255,255,0.09); color:white; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; transition:all 0.15s; }
.qty-btn:hover { background:var(--primary); }
.qty-display { min-width:26px; text-align:center; font-size:13px; font-weight:700; color:white; }
.cart-item .remove-item { width:22px; height:22px; border-radius:6px; border:none; background:rgba(239,68,68,0.12); color:var(--danger); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:12px; transition:0.15s; }
.cart-item .remove-item:hover { background:rgba(239,68,68,0.25); }
.pos-totals { padding:14px 18px; border-top:1px solid rgba(255,255,255,0.07); }
.total-row { display:flex; justify-content:space-between; margin-bottom:7px; font-size:12.5px; color:rgba(255,255,255,0.65); }
.total-row.grand { font-size:20px; font-weight:800; color:white; margin-top:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.1); }
.pos-payment { padding:14px; }
.pos-payment-modes { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-bottom:12px; }
.payment-mode-btn { padding:8px 4px; border-radius:9px; border:1.5px solid rgba(255,255,255,0.09); background:transparent; color:rgba(255,255,255,0.6); font-size:10px; font-weight:700; cursor:pointer; text-align:center; transition:all 0.2s; display:flex; flex-direction:column; align-items:center; gap:3px; }
.payment-mode-btn i { font-size:16px; }
.payment-mode-btn.selected { border-color:var(--primary); background:rgba(99,102,241,0.2); color:white; box-shadow:0 2px 10px rgba(99,102,241,0.3); }
.payment-mode-btn:hover:not(.selected) { border-color:rgba(255,255,255,0.2); background:rgba(255,255,255,0.06); color:white; }
.checkout-btn { width:100%; padding:15px; border-radius:13px; border:none; background:var(--gradient); color:white; font-size:15px; font-weight:700; cursor:pointer; transition:all 0.25s; display:flex; align-items:center; justify-content:center; gap:8px; }
.checkout-btn:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(99,102,241,0.45); }
.checkout-btn:disabled { opacity:0.35; cursor:not-allowed; transform:none; box-shadow:none; }

/* ===== PUBLIC HOMEPAGE ===== */
.public-nav { position:fixed; top:0; left:0; right:0; z-index:1000; padding:0 40px; height:70px; display:flex; align-items:center; background:rgba(15,23,42,0.85); backdrop-filter:blur(20px); border-bottom:1px solid rgba(255,255,255,0.07); transition:all 0.3s; }
.public-nav.scrolled { background:rgba(15,23,42,0.98); box-shadow:0 4px 20px rgba(0,0,0,0.3); }
.nav-logo { display:flex; align-items:center; gap:12px; flex:1; }
.nav-logo .logo-mark { width:36px; height:36px; background:var(--gradient); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.nav-logo .brand { font-family:'Poppins',sans-serif; font-weight:800; font-size:17px; color:white; }
.nav-logo .brand span { color:var(--primary-light); }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-links a { color:rgba(255,255,255,0.7); font-size:14px; font-weight:500; padding:8px 16px; border-radius:8px; transition:all 0.2s; }
.nav-links a:hover { color:white; background:rgba(255,255,255,0.08); }
.nav-actions { display:flex; align-items:center; gap:12px; margin-left:auto; }

.hero-section { min-height:100vh; background:linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:140px 40px 80px; position:relative; overflow:hidden; }
.hero-blob { position:absolute; border-radius:60% 40% 30% 70%/60% 30% 70% 40%; animation:blobPulse 12s ease-in-out infinite; opacity:0.12; }
.hero-blob-1 { width:500px; height:500px; background:var(--primary); top:-100px; left:-100px; }
.hero-blob-2 { width:400px; height:400px; background:var(--secondary); bottom:-80px; right:-80px; animation-delay:4s; }
.hero-blob-3 { width:300px; height:300px; background:var(--accent); top:50%; left:60%; animation-delay:8s; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 18px; border-radius:30px; background:rgba(99,102,241,0.18); border:1px solid rgba(99,102,241,0.35); color:#a5b4fc; font-size:13px; font-weight:600; margin-bottom:24px; }
.hero-badge .dot { width:7px; height:7px; border-radius:50%; background:var(--primary-light); animation:pulse-glow 2s ease-in-out infinite; }
.hero-title { font-family:'Poppins',sans-serif; font-size:clamp(38px,6vw,70px); font-weight:900; line-height:1.1; color:white; margin-bottom:24px; }
.hero-title .gradient-text { background:linear-gradient(135deg,#a5b4fc,#7dd3fc,#6ee7b7); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-size:200% 200%; animation:gradientShift 4s ease infinite; }
.hero-subtitle { font-size:clamp(15px,2.5vw,19px); color:rgba(255,255,255,0.6); max-width:580px; line-height:1.75; margin-bottom:40px; }
.hero-cta-group { display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center; margin-bottom:60px; }
.hero-stats { display:flex; gap:40px; flex-wrap:wrap; justify-content:center; }
.hero-stat .num { font-family:'Poppins',sans-serif; font-size:30px; font-weight:900; color:white; }
.hero-stat .lbl { font-size:12px; color:rgba(255,255,255,0.5); }
.hero-divider { width:1px; height:40px; background:rgba(255,255,255,0.12); }

.features-section { padding:100px 40px; background:var(--bg); }
.section-tag { display:inline-block; padding:5px 14px; border-radius:30px; background:rgba(99,102,241,0.1); color:var(--primary); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-bottom:14px; }
.section-title { font-family:'Poppins',sans-serif; font-size:clamp(26px,4vw,42px); font-weight:800; color:var(--dark); line-height:1.2; margin-bottom:14px; }
.section-subtitle { font-size:16px; color:var(--text-muted); max-width:580px; line-height:1.75; }

.feature-card { background:white; border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); border:1px solid var(--border); transition:all 0.3s ease; }
.feature-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.feature-card .feature-icon { width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:26px; margin-bottom:18px; background:linear-gradient(135deg,rgba(99,102,241,0.1),rgba(14,165,233,0.1)); color:var(--primary); }
.feature-card h3 { font-size:17px; font-weight:700; color:var(--dark); margin-bottom:10px; }
.feature-card p { font-size:14px; color:var(--text-muted); line-height:1.7; }
.feature-card .feature-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.feature-tag { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; background:rgba(99,102,241,0.08); color:var(--primary); }

.pricing-card { background:white; border-radius:var(--radius); padding:34px; box-shadow:var(--shadow); border:2px solid var(--border); transition:all 0.3s ease; position:relative; }
.pricing-card.featured { border-color:var(--primary); background:linear-gradient(135deg,rgba(99,102,241,0.03),rgba(14,165,233,0.03)); transform:scale(1.04); box-shadow:var(--shadow-md); }
.pricing-card .popular-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--gradient); color:white; padding:5px 16px; border-radius:30px; font-size:11px; font-weight:700; white-space:nowrap; }
.pricing-card .plan-name { font-size:12px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; }
.pricing-card .plan-price { font-family:'Poppins',sans-serif; font-size:40px; font-weight:900; color:var(--dark); line-height:1; }
.pricing-card .plan-price sup { font-size:18px; vertical-align:super; font-weight:700; }
.pricing-card .plan-price span { font-size:14px; font-weight:400; color:var(--text-muted); }
.pricing-card .plan-features { margin:22px 0; list-style:none; }
.pricing-card .plan-features li { display:flex; align-items:center; gap:10px; padding:8px 0; font-size:14px; border-bottom:1px solid var(--border); }
.pricing-card .plan-features li:last-child { border-bottom:none; }
.pricing-card .plan-features li .check { color:var(--success); font-size:15px; }

/* ===== MISC UTILITIES ===== */
.divider { border:none; border-top:1px solid var(--border); margin:20px 0; }
.text-gradient { background:var(--gradient); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.bg-gradient-primary { background:var(--gradient); }
.bg-gradient-warm { background:var(--gradient-warm); }
.bg-gradient-cool { background:var(--gradient-cool); }
.rounded-premium { border-radius:var(--radius); }
.shadow-premium { box-shadow:var(--shadow); }
.page-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.page-header h2 { font-size:21px; font-weight:800; color:var(--dark); }
.page-header p { font-size:13px; color:var(--text-muted); margin-top:2px; }
.breadcrumb-premium { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.breadcrumb-premium a { color:var(--primary); font-weight:500; }
.breadcrumb-premium .sep { color:var(--border); }

/* Alerts */
.alert-premium { padding:13px 16px; border-radius:var(--radius-sm); font-size:13.5px; display:flex; align-items:center; gap:10px; margin-bottom:18px; font-weight:500; }
.alert-premium.success { background:rgba(16,185,129,0.08); border:1px solid rgba(16,185,129,0.2); color:#065f46; }
.alert-premium.error { background:rgba(239,68,68,0.07); border:1px solid rgba(239,68,68,0.18); color:#991b1b; }
.alert-premium.warning { background:rgba(245,158,11,0.08); border:1px solid rgba(245,158,11,0.18); color:#92400e; }
.alert-premium.info { background:rgba(99,102,241,0.07); border:1px solid rgba(99,102,241,0.18); color:#3730a3; }

/* Progress bar */
.progress-premium { height:6px; border-radius:30px; background:var(--border); overflow:hidden; }
.progress-bar-premium { height:100%; border-radius:30px; background:var(--gradient); transition:width 0.8s cubic-bezier(0.4,0,0.2,1); }

/* Empty state */
.empty-state { text-align:center; padding:56px 20px; }
.empty-state .empty-icon { font-size:56px; color:var(--border); margin-bottom:14px; }
.empty-state h3 { font-size:17px; font-weight:700; color:var(--dark); margin-bottom:8px; }
.empty-state p { font-size:13.5px; color:var(--text-muted); max-width:380px; margin:0 auto 18px; line-height:1.6; }

/* Scrollbar */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:6px; }
::-webkit-scrollbar-thumb:hover { background:var(--text-muted); }

/* Responsive */
@media (max-width:1024px) {
  :root { --sidebar-width: 240px; }
}
@media (max-width:768px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); box-shadow:0 0 0 100vw rgba(0,0,0,0.5); }
  .main-content { margin-left:0 !important; }
  .page-content { padding:16px; }
  .sidebar-collapse-btn { display:none; }
  .hero-section { padding:110px 20px 60px; }
  .public-nav { padding:0 20px; }
  .hero-stats { gap:16px; }
  .hero-divider { display:none; }
  .pos-layout { flex-direction:column; height:auto; }
  .pos-right { width:100%; }
  .topbar { padding:0 16px; gap:8px; }
  .topbar-clock { display:none; }
}

/* Loading skeleton */
.skeleton { background:linear-gradient(90deg,#f0f2f5 25%,#e4e8ec 50%,#f0f2f5 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:8px; }

/* Tooltip */
[data-tooltip] { position:relative; }
[data-tooltip]::after { content:attr(data-tooltip); position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); background:var(--dark-2); color:white; font-size:11px; padding:5px 10px; border-radius:6px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity 0.15s; z-index:999; }
[data-tooltip]:hover::after { opacity:1; }

/* Admin Critical Area */
.critical-terminal { background:#0d1117; border-radius:12px; padding:20px; font-family:'Courier New',monospace; font-size:13px; color:#58d68d; min-height:200px; max-height:400px; overflow-y:auto; border:1px solid rgba(88,214,141,0.18); }
.critical-terminal .cmd-output { color:#cdd6f4; margin-top:8px; }
.critical-terminal .cmd-error { color:#f38ba8; }
.critical-warning { background:rgba(239,68,68,0.07); border:1px solid rgba(239,68,68,0.18); border-radius:12px; padding:16px 20px; color:#991b1b; display:flex; gap:12px; align-items:start; margin-bottom:20px; }
.db-table-row { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:1px solid var(--border); font-size:13.5px; }
.db-table-row:hover { background:rgba(99,102,241,0.03); }
.db-table-row .table-name { font-weight:600; color:var(--dark); }
.db-table-row .table-size { font-size:12px; color:var(--text-muted); }

/* ===== NOTIFICATION PANEL ===== */
.notif-dropdown { position:absolute; top:calc(100% + 8px); right:0; width:320px; background:white; border-radius:var(--radius); box-shadow:var(--shadow-lg); border:1px solid var(--border); z-index:9999; animation:slideDown 0.2s ease; overflow:hidden; }
.notif-header { padding:14px 18px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.notif-header h6 { font-size:13px; font-weight:700; margin:0; }
.notif-item { padding:12px 18px; border-bottom:1px solid rgba(226,232,240,0.6); display:flex; gap:10px; align-items:flex-start; transition:background 0.15s; cursor:pointer; }
.notif-item:hover { background:rgba(99,102,241,0.04); }
.notif-item:last-child { border-bottom:none; }
.notif-item.unread { background:rgba(99,102,241,0.04); }
.notif-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.notif-text { font-size:12.5px; color:var(--text); line-height:1.5; }
.notif-time { font-size:10.5px; color:var(--text-muted); margin-top:2px; }

/* ===== SEARCH BAR ===== */
.topbar-search { position:relative; }
.topbar-search input { width:200px; padding:8px 14px 8px 36px; border-radius:10px; border:1.5px solid var(--border); font-size:13px; background:var(--bg); outline:none; transition:all 0.2s; color:var(--text); }
.topbar-search input:focus { width:260px; border-color:var(--primary); background:white; box-shadow:0 0 0 3px rgba(99,102,241,0.1); }
.topbar-search .search-icon { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:var(--text-muted); font-size:14px; }
@media (max-width:1024px) { .topbar-search { display:none; } }

/* ===== CHART CONTAINER ===== */
.chart-container { position:relative; }
.chart-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:14px; }
.chart-legend-item { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); font-weight:500; }
.chart-legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }

/* ===== DATA TABLE ACTIONS ===== */
.action-btn-group { display:flex; gap:4px; }
.action-btn-group a, .action-btn-group button { width:30px; height:30px; border-radius:7px; display:inline-flex; align-items:center; justify-content:center; font-size:13px; border:1px solid var(--border); background:white; cursor:pointer; color:var(--text-muted); transition:all 0.15s; }
.action-btn-group a:hover { background:var(--primary); color:white; border-color:var(--primary); transform:translateY(-1px); }

/* ===== STATUS INDICATOR ===== */
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; }
.status-dot.active { background:var(--success); box-shadow:0 0 0 3px rgba(16,185,129,0.2); }
.status-dot.pending { background:var(--warning); box-shadow:0 0 0 3px rgba(245,158,11,0.2); }
.status-dot.inactive { background:var(--text-muted); }
.status-dot.danger { background:var(--danger); box-shadow:0 0 0 3px rgba(239,68,68,0.2); }
