/* =========================================================
   AEROSYNC SALON MANAGEMENT – FINAL MERGED CSS
   Dark Premium UI + Functional POS + Mobile Hamburger FIXED
   ========================================================= */

/* ---------- THEME VARIABLES ---------- */
:root{
  --bg-main:#050814;
  --bg-panel:#0b1020;
  --bg-card:#0f172a;
  --border-soft:rgba(255,255,255,.08);
  --border-hard:rgba(255,255,255,.14);
  --text-main:#e5e7eb;
  --text-muted:#9ca3af;
  --accent:#6366f1;
  --accent-soft:rgba(99,102,241,.25);
  --success:#22c55e;
  --danger:#ef4444;
  --radius:14px;
  --shadow-soft:0 12px 32px rgba(0,0,0,.55);
  --shadow-glow:0 0 0 1px var(--accent-soft),
                0 16px 48px rgba(99,102,241,.15);
}

/* ---------- RESET ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:radial-gradient(1200px 600px at 20% -10%, #1e1b4b 0%, var(--bg-main) 45%);
  color:var(--text-main);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.5;
}

/* ---------- LINKS ---------- */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* ---------- TOP BAR ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 20px;
  background:rgba(11,16,32,.95);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border-soft);
}
.brand{font-weight:800}
.nav{
  display:flex;
  gap:16px;
  margin-left:auto;
}
.nav a{color:var(--text-muted)}
.nav a:hover{color:#fff}
.user{display:flex;gap:10px;align-items:center}

/* ---------- HAMBURGER ---------- */
.nav-toggle{
  display:none;
  margin-left:auto;
  background:none;
  border:0;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:#c7cff7;
  margin:5px 0;
}

/* ---------- CONTAINER ---------- */
.container{
  max-width:1400px;
  margin:20px auto;
  padding:0 16px 80px;
  overflow:visible;
}

/* ---------- GRID ---------- */
.grid{display:grid;gap:18px}
.grid-pos{display:grid;gap:18px}

/* Desktop POS = 3 columns */
@media(min-width:960px){
  .grid-pos{grid-template-columns:1.4fr 1.4fr 2fr}
}

/* Tablet POS */
@media(min-width:768px) and (max-width:959px){
  .grid-pos{grid-template-columns:1fr 1.5fr}
}

/* Mobile POS */
@media(max-width:767px){
  .grid-pos{grid-template-columns:1fr}
}

/* ---------- CARDS ---------- */
.card{
  background:linear-gradient(180deg,var(--bg-card),#020617);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-soft);
}

/* ---------- BUTTONS ---------- */
.btn-primary{
  background:linear-gradient(135deg,#6366f1,#818cf8);
  border:0;
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
}
.btn-muted{
  background:rgba(255,255,255,.05);
  border:1px solid var(--border-soft);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
}

/* ---------- INPUTS ---------- */
input,select{
  width:100%;
  background:#020617;
  color:#fff;
  border:1px solid var(--border-soft);
  padding:10px 12px;
  border-radius:10px;
}

/* ---------- TABLES ---------- */
table{width:100%;border-collapse:collapse}
th,td{padding:10px;font-size:14px}
th{color:var(--text-muted);border-bottom:1px solid var(--border-soft)}
td{border-bottom:1px solid rgba(255,255,255,.05)}

/* ---------- POS ADD ---------- */
.pos-add{
  display:grid;
  grid-template-columns:2fr 1fr auto;
  gap:10px;
}
@media(max-width:767px){
  .pos-add{grid-template-columns:1fr 1fr}
  .pos-add button{grid-column:1/-1}
}

/* ---------- STICKY CART ---------- */
.cart-sticky{
  position:sticky;
  top:90px;
  max-height:calc(100vh - 140px);
  overflow:auto;
}

/* ---------- MOBILE CHECKOUT BAR ---------- */
.mobile-checkout-bar{
  display:none;
}
@media(max-width:767px){
  body{padding-bottom:90px}
  .mobile-checkout-bar{
    display:flex;
    position:fixed;
    bottom:0;left:0;right:0;
    background:#020617;
    padding:12px 16px;
    justify-content:space-between;
    z-index:200;
  }
}

/* ===== Auth (login/forgot/reset) ===== */ .auth{ min-height:calc(100vh - 72px); display:flex;align-items:flex-start;justify-content:center; padding:48px 12px; } .auth-card{ width:100%;max-width:520px;background:#fff;border:1px solid #e5e7eb;border-radius:16px; padding:28px 26px 24px; box-shadow:0 10px 24px rgba(17,24,39,.08); display:flex;flex-direction:column;align-items:center; gap:8px; } .auth-logo{ width:72px;height:72px;border-radius:9999px;display:flex;align-items:center;justify-content:center; background: radial-gradient(120% 120% at 30% 30%, #3b82f6, #1e40af); color:#fff;font-weight:700;letter-spacing:.5px; user-select:none; } .auth-logo-img{width:72px;height:72px;border-radius:9999px;object-fit:cover} .auth-title{margin:8px 0 4px 0;font-size:24px;font-weight:800;color:#0f172a;text-align:center} .auth-sub{margin:0 0 16px 0;color:#64748b;font-size:14px;text-align:center} .auth-form{width:100%;display:flex;flex-direction:column;gap:10px} .auth-label{font-size:13px;color:#334155;margin-bottom:4px;display:block} .auth-input{ width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px; font-size:14px;background:#f9fafb;outline:none; color:#757373;} .auth-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.15);background:#fff} .label-row{display:flex;align-items:center;justify-content:space-between;margin-top:6px} .auth-link{font-size:13px;color:#2563eb;text-decoration:none} .auth-link:hover{text-decoration:underline} .pw-wrap{position:relative} .icon-btn{ position:absolute;right:8px;top:50%;transform:translateY(-50%); background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:6px;cursor:pointer; display:flex;align-items:center;justify-content:center;color:#1f2937 } .icon-btn .eye-off{display:none} .auth-btn{width:100%;margin-top:8px;padding:12px 14px;border-radius:10px;font-weight:600}
/* ---------- FOOTER ---------- */
.foot{text-align:center;padding:20px;color:var(--text-muted)}

/* ---------- MOBILE NAV FIX ---------- */
@media(max-width:960px){
  .nav-toggle{display:block}
  .nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#020617;
    flex-direction:column;
    padding:12px 16px;
    border-bottom:1px solid var(--border-soft);
    z-index:250;
  }
  .nav.open{display:flex}
  .user{display:none}
}
