/* ==========================================================================
   SmartGlow Design System
   Mobile-first, clean, modern salon aesthetic.
   ========================================================================== */

:root {
  --primary: #a9743c;
  --primary-dark: #7d5427;
  --primary-light: #f3e8d9;
  --accent: #c9a46a;
  --ink: #241a12;
  --ink-soft: #6f6358;
  --bg: #f7f2ea;
  --card: #fffdfa;
  --line: #e9e0d2;
  --success: #3f7d5a;
  --warning: #b97a1f;
  --danger: #b34545;
  --info: #3f6f8f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(36, 26, 18, 0.07);
  --shadow-md: 0 10px 30px rgba(36, 26, 18, 0.12);
  --shadow-lg: 0 24px 60px rgba(125, 84, 39, 0.22);
  --gradient: linear-gradient(120deg, #c9a46a 0%, #a9743c 55%, #7d5427 100%);
  --gold: #c9a46a;
  --deep: #2a1e14;
  --deep-soft: #3a2c1e;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
h1, h2 { font-family: "Playfair Display", var(--font); font-weight: 800; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand .brand-name { font-family: "Playfair Display", var(--font); font-weight: 800; font-size: 21px; letter-spacing: 0.01em; }
.brand-logo { height: 40px; width: auto; max-width: 170px; object-fit: contain; }

@media (max-width: 640px) {
  .brand-name {display: none;}
} 

/* ----------------------------------------------------------------------
   Layout utilities
   ---------------------------------------------------------------------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }

.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

@media (min-width: 640px)  { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Stat tiles: never overflow on small screens */
.stat-tile { min-width: 0; }
.stat-tile b { font-size: clamp(16px, 4.5vw, 24px); word-break: break-word; }
.stat-tile .ico { flex-shrink: 0; }
.stat-tile > div { min-width: 0; }
.stat-tile span { display: block; line-height: 1.35; }

.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }

/* ----------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s ease; text-align: center;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 30px 70px rgba(214, 51, 108, 0.30); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--primary-dark); transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35); }
.btn-wa:hover { background: #1fb959; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.40); }
.btn-wa svg { vertical-align: -2px; margin-right: 6px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ----------------------------------------------------------------------
   Cards
   ---------------------------------------------------------------------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow: hidden;
}
.card-body { padding: 24px; }
.card-hover { transition: all 0.25s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ----------------------------------------------------------------------
   Service / product cards
   ---------------------------------------------------------------------- */
.service-card { display: flex; flex-direction: column; }
.service-card .thumb {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f3e8d9, #fbf4e9);
  color: var(--primary); font-size: 64px;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card .cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.service-card h3 { font-size: 19px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.service-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { color: var(--primary); font-weight: 800; font-size: 18px; }
.price-sm { font-size: 15px; }
.duration { font-size: 13px; color: var(--ink-soft); }
.service-grid > *, .product-grid > *, .steps-grid > * { min-width: 0; }

.product-card { text-align: center; padding: 22px 16px; }
.product-card .emoji { font-size: 44px; margin-bottom: 10px; }
.product-card h4 { font-size: 16.5px; }
.product-card p { font-size: 13.5px; color: var(--ink-soft); min-height: 40px; }
.product-card .price { margin-top: 8px; display: block; }

/* ----------------------------------------------------------------------
   Navbar (public)
   ---------------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(253, 249, 247, 0.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px;
}
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: flex; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { display: block; }

@media (min-width: 920px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 919px) {
  .nav-actions { display: none; }
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  transform: translateX(100%); transition: transform 0.28s ease;
  padding: 22px 20px 20px; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  box-shadow: -18px 0 48px rgba(36, 26, 18, 0.16);
}
.mobile-nav::before {
  content: ""; position: absolute; top: -120px; right: -100px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 106, 0.28), transparent 68%);
  pointer-events: none;
}
.mobile-nav-head, .mobile-nav-links, .mobile-nav-actions, .mobile-nav-note { position: relative; z-index: 1; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; }
.mobile-nav-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-nav-title > div { min-width: 0; }
.mobile-nav-eyebrow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav-mark { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--gradient); border-radius: 14px; box-shadow: 0 8px 18px rgba(125, 84, 39, 0.22); }
.mobile-nav-logo { object-fit: contain; background: #fff; padding: 5px; }
.mobile-nav-title strong { display: block; font-family: "Playfair Display", var(--font); font-size: 23px; line-height: 1.1; }
.mobile-nav-eyebrow { display: block; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 3px; }
.mobile-nav .close { position: static; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 253, 250, 0.78); border: 1px solid var(--line); cursor: pointer; color: var(--ink-soft); }
.mobile-nav .close:hover { color: var(--primary); background: var(--card); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 7px; }
.mobile-nav-links a { display: flex; align-items: center; gap: 13px; min-height: 54px; padding: 9px 12px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); font-size: 15px; font-weight: 700; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.mobile-nav-links a > span:not(.mobile-nav-ico) { flex: 1; }
.mobile-nav-links a > svg:last-child { color: #b7a999; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--primary-dark); background: rgba(243, 232, 217, 0.8); border-color: var(--line); transform: translateX(3px); }
.mobile-nav-links a.active > svg:last-child { color: var(--primary); }
.mobile-nav-ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; color: var(--primary); background: var(--primary-light); border-radius: 11px; }
.mobile-nav-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-nav-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; text-align: center; }
.mobile-nav-action.secondary { color: var(--primary-dark); border: 1px solid var(--primary); background: transparent; }
.mobile-nav-action.primary { color: #fff; background: var(--gradient); box-shadow: 0 8px 18px rgba(125, 84, 39, 0.2); }
.mobile-nav-action:only-child { grid-column: 1 / -1; }
.mobile-nav-note { margin-top: auto; padding-top: 24px; color: var(--ink-soft); font-family: "Playfair Display", var(--font); font-size: 15px; font-style: italic; text-align: center; }
.mobile-nav-note::before, .mobile-nav-note::after { content: "✦"; color: var(--accent); font-family: var(--font); font-size: 11px; margin: 0 9px; vertical-align: 2px; }
.mobile-nav.open { transform: translateX(0); }

@media (max-width: 360px) {
  .mobile-nav { padding-left: 14px; padding-right: 14px; }
  .mobile-nav-title strong { font-size: 21px; }
  .mobile-nav-links a { min-height: 50px; font-size: 14px; }
  .mobile-nav-actions { grid-template-columns: 1fr; }
  .mobile-nav-note { padding-top: 18px; }
}

/* ----------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
.hero::before {
  content: ""; position: absolute; top: -160px; right: -140px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,122,168,0.28), transparent 65%);
}
.hero .hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light);
  color: var(--primary); font-weight: 700; font-size: 13.5px; padding: 8px 16px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 18px 0 16px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 44px; }
.hero .stat b { display: block; font-size: 28px; color: var(--primary); }
.hero .stat span { font-size: 13.5px; color: var(--ink-soft); }
.hero-visual { position: relative; }
.hero-visual .hero-cover {
    width: 100%;
    aspect-ratio: 1;
    max-width: 460px;
    margin: 0 auto;

    border-radius: 50%;
    overflow: hidden;

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

    position: relative;
}

.hero-visual .hero-cover img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}
.hero-visual .float-chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 10px 16px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.hero-visual .chip-1 { top: 6%; left: -2%; }
.hero-visual .chip-2 { bottom: 12%; right: -2%; }
@media (min-width: 920px) { .hero .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

/* ----------------------------------------------------------------------
   How it works / steps
   ---------------------------------------------------------------------- */
.step { text-align: center; padding: 28px 20px; }
.step .num {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--gradient);
  color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* ----------------------------------------------------------------------
   Testimonials
   ---------------------------------------------------------------------- */
.testimonial { padding: 26px 24px; }
.testimonial .stars { color: var(--accent); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.testimonial .who b { display: block; font-size: 14.5px; }
.testimonial .who span { font-size: 13px; color: var(--ink-soft); }

/* ----------------------------------------------------------------------
   CTA banner
   ---------------------------------------------------------------------- */
.cta-banner {
  background: var(--gradient); border-radius: 28px; padding: 48px 30px; text-align: center;
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.cta-banner p { opacity: 0.92; margin-bottom: 24px; }

/* ----------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.site-footer { background: var(--deep); color: #cfc3b4; padding: 56px 0 24px; }
.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #bdb3bd; display: block; padding: 4px 0; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13.5px; line-height: 1.8; }
.site-footer .copy > div { overflow-wrap: anywhere; }
.site-footer .copy a { display: inline; padding: 0; color: #fff; font-weight: 700; }

/* ----------------------------------------------------------------------
   Forms
   ---------------------------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.form-group .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line);
  font-family: var(--font); font-size: 15px; background: #fff; color: var(--ink); transition: border 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f5560' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.input-with-icon { position: relative; }
.input-with-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.input-with-icon .form-control { padding-left: 42px; }

.invalid-feedback { color: var(--danger); font-size: 13px; margin-top: 5px; display: block; }

.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card { padding: 36px 28px; }

/* ----------------------------------------------------------------------
   Alerts
   ---------------------------------------------------------------------- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600;
  margin-bottom: 18px; border: 1px solid transparent;
}
.alert-success { background: #e8f8ef; color: var(--success); border-color: #c6eed9; }
.alert-error, .alert-danger { background: #fdeeee; color: var(--danger); border-color: #f7cdcd; }
.alert-warning { background: #fdf3e3; color: var(--warning); border-color: #f4e0bb; }
.alert-info { background: #eaf3fd; color: var(--info); border-color: #cfe4f8; }

/* ==========================================================================
   Panel / Dashboard layout
   ========================================================================== */
.panel { display: flex; min-height: 100vh; }

.panel-sidebar {
  position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: 264px;
  background: linear-gradient(180deg, var(--deep) 0%, #1d140c 100%);
  color: #cfc3b4; transform: translateX(-100%);
  transition: transform 0.28s ease; overflow-y: auto; padding: 22px 0;
}
.panel-sidebar.open { transform: translateX(0); }
.panel-sidebar .side-brand { display: flex; align-items: center; gap: 10px; padding: 0 22px 22px; color: #fff; font-weight: 800; font-size: 19px; }
.panel-sidebar .side-brand .logo { width: 36px; height: 36px; border-radius: 11px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }

.side-nav a {
  display: flex; align-items: center; gap: 12px; color: #cfc3b4; padding: 12px 22px;
  font-weight: 600; font-size: 15px; transition: background 0.2s; position: relative;
}
.side-nav a:hover { background: rgba(201, 164, 106, 0.12); color: #fff; }
.side-nav a.active { background: var(--gradient); color: #fff; box-shadow: inset 3px 0 0 #fff, 0 4px 14px rgba(125,84,39,0.35); }
.side-nav .sec { padding: 18px 22px 6px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8b7c69; font-weight: 700; }
.side-nav a .ico { width: 22px; text-align: center; display: flex; align-items: center; justify-content: center; }

.panel-main { flex: 1; margin-left: 0; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 992px) {
  .panel-sidebar { transform: translateX(0); }
  .panel-main { margin-left: 264px; }
}

.panel-topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
}
.panel-topbar .menu-btn { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); display: flex; }
@media (min-width: 992px) { .panel-topbar .menu-btn { display: none; } }
.panel-topbar .right { display: flex; align-items: center; gap: 16px; }

.notif-bell { position: relative; background: none; border: 0; font-size: 21px; cursor: pointer; color: var(--ink); }
.notif-bell .dot {
  position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.top-avatar {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 60px; height: 60px; font-size: 22px; }

.panel-content { flex: 1; padding: 28px 20px 60px; max-width: 1240px; width: 100%; margin: 0 auto; }

.page-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.page-title h1 { font-size: clamp(22px, 3vw, 28px); }
.page-title .sub { color: var(--ink-soft); font-size: 14.5px; }

/* ----------------------------------------------------------------------
   Stats tiles
   ---------------------------------------------------------------------- */
.stat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
}
.stat-tile .ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-tile .ico.pink { background: var(--primary-light); }
.stat-tile .ico.gold { background: #fdf3e3; }
.stat-tile .ico.green { background: #e8f8ef; }
.stat-tile .ico.blue { background: #eaf3fd; }
.stat-tile b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stat-tile span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.dashboard-stats .stat-tile { min-height: 88px; }
.dashboard-panels { align-items: stretch; }
.dashboard-panels > .card { height: 100%; }

/* ----------------------------------------------------------------------
   Tables
   ---------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fbf6ee; }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------------------------------------------------
   Table -> card mode on small screens
   ---------------------------------------------------------------------- */
@media (max-width: 680px) {
  .table-wrap { overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 14px; }
  .table tr {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow-sm);
  }
  .table tr:hover td { background: transparent; }
  .table td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed var(--line); text-align: right;
    overflow-wrap: anywhere;
  }
  .table td > * { min-width: 0; max-width: 100%; }
  .table td[data-label="Aksi"] { align-items: stretch; flex-direction: column; gap: 8px; }
  .table td[data-label="Aksi"]::before { flex: 0 0 auto; }
  .table .actions { width: 100%; justify-content: flex-end; }
  .table .actions .btn { flex: 1 1 120px; min-width: 0; }
  .table .mono { overflow-wrap: anywhere; }
  .table td:last-child { border-bottom: 0; }
  .table td[data-label]::before {
    content: attr(data-label); font-size: 11.5px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
    text-align: left; flex-shrink: 0;
  }
  .table td:empty { display: none; }
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .panel-topbar { height: 60px; padding-left: 14px; padding-right: 14px; }
  .panel-topbar .right { gap: 10px; }
  .panel-content { padding: 22px 14px 44px; }
  .page-title { align-items: stretch; margin-bottom: 22px; }
  .page-title > div { min-width: 0; }
  .page-title .btn { width: 100%; }
  .card-body { padding: 18px; }
  .stat-tile { padding: 14px; gap: 10px; }
  .stat-tile .ico { width: 40px; height: 40px; flex: 0 0 40px; }
  .stat-tile span { overflow-wrap: anywhere; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-stats .stat-tile { min-height: 82px; padding: 12px 10px; }
  .dashboard-stats .stat-tile b { font-size: clamp(15px, 4vw, 20px); }
  .dashboard-stats .stat-tile span { font-size: 12px; }
  .dashboard-panels { gap: 14px; }
  .auth-card { padding: 26px 18px; }
  .cta-banner { border-radius: 20px; padding: 34px 20px; }
  .cta-banner .btn { width: 100%; }
  .grid-3.service-grid, .grid-4.product-grid, .grid-4.steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service-card .thumb { height: 126px; }
  .service-card .body { padding: 14px 12px; gap: 6px; }
  .service-card h3 { font-size: 16px; overflow-wrap: anywhere; }
  .service-card p { font-size: 10px; display: none;}
  .service-card .foot { align-items: flex-start; flex-direction: column; gap: 3px; }
  .service-card .price { font-size: 15px; }
  .service-card .duration { font-size: 11.5px; }
  .product-card { padding: 16px 10px; }
  .product-card h4 { font-size: 14px; overflow-wrap: anywhere; }
  .product-card p { font-size: 12px; min-height: 0; }
  .step { padding: 20px 12px; }
  .step p { font-size: 13px; }
}

@media (max-width: 576px) {
    .service-card .body {justify-content: space-between;}
}

@media (max-width: 380px) {
  .mobile-nav::before { display: none; }
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .mobile-nav-actions { grid-template-columns: 1fr; }
  .mobile-nav-action { min-height: 48px; }
  .panel-content { padding-left: 12px; padding-right: 12px; }
}

/* ----------------------------------------------------------------------
   Badges
   ---------------------------------------------------------------------- */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-bg-primary { background: var(--primary-light); color: var(--primary); }
.text-bg-success { background: #e8f8ef; color: var(--success); }
.text-bg-warning { background: #fdf3e3; color: var(--warning); }
.text-bg-danger { background: #fdeeee; color: var(--danger); }
.text-bg-info { background: #eaf3fd; color: var(--info); }
.text-bg-secondary { background: #ece5d9; color: var(--ink-soft); }

/* ----------------------------------------------------------------------
   Timeline (booking status) + step pills
   ---------------------------------------------------------------------- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--ink-soft); transition: all 0.2s; text-align: center;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* time slot chips */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.slot {
  padding: 12px 6px; text-align: center; border-radius: 12px; border: 2px solid var(--line);
  font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); background: #fff; transition: all 0.15s;
}
.slot:hover { border-color: var(--primary); color: var(--primary); }
.slot.selected { background: var(--gradient); color: #fff; border-color: transparent; }
.slot:disabled { opacity: 0.4; cursor: not-allowed; background: #efe7db; border-color: var(--line); color: var(--ink-soft); }

/* add-on item */
.addon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; background: #fff;
}
.addon-row .info { flex: 1; min-width: 0; }
.addon-row .info b { display: block; font-size: 15px; }
.addon-row .info span { display: block; font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.addon-controls { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.addon-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.addon-price b { color: var(--primary); }
.addon-price span { color: var(--ink-soft); font-size: 11.5px; }
.addon-row .qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-size: 18px; font-weight: 800; cursor: pointer; color: var(--ink); }
.qty button:hover { border-color: var(--primary); color: var(--primary); }
.qty button:disabled { opacity: 0.45; cursor: not-allowed; }
.qty span { min-width: 24px; text-align: center; font-weight: 800; }

@media (max-width: 640px) {
  .addon-row { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px 14px; }
  .addon-row .info b { font-size: 15px; }
  .addon-controls { justify-content: space-between; gap: 10px; width: 100%; padding-top: 10px; border-top: 1px dashed var(--line); }
  .addon-price { align-items: flex-start; }
  .addon-row .qty { gap: 8px; }
  .qty button { width: 40px; height: 40px; }
}

/* booking summary card */
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; }
.summary-row.total { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 16px; font-weight: 800; font-size: 18px; color: var(--primary); }

/* ----------------------------------------------------------------------
   Empty state
   ---------------------------------------------------------------------- */
.empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty .emoji { font-size: 54px; margin-bottom: 12px; }

/* ----------------------------------------------------------------------
   Checkout / payment
   ---------------------------------------------------------------------- */
.method-card {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer;
  transition: all 0.2s; background: #fff; text-align: center;
}
.method-card:hover { border-color: var(--primary); }
.method-card.selected { border-color: var(--primary); background: var(--primary-light); }
.method-card .emoji { font-size: 38px; margin-bottom: 8px; }
.method-card b { font-size: 16px; display: block; }
.method-card span { font-size: 13px; color: var(--ink-soft); }

.qris-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px; text-align: center; }
.qris-box img { width: 220px; border-radius: 14px; border: 1px solid var(--line); }

/* proof preview */
.proof-preview { max-width: 320px; border-radius: 14px; border: 2px dashed var(--line); overflow: hidden; }

/* camera */
.cam-wrap { position: relative; max-width: 380px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.cam-wrap video { width: 100%; display: block; }
.cam-wrap canvas { width: 100%; display: none; }
.cam-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,0.35); font-weight: 700; font-size: 15px; }

/* ----------------------------------------------------------------------
   Steps bar (booking wizard)
   ---------------------------------------------------------------------- */
.steps-container { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.steps-container .steps { margin-bottom: 0; flex: 1; }
.steps-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.steps { display: flex; gap: 6px; margin-bottom: 30px; }
.steps .step-item { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); position: relative; }
.steps .step-item .dot {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 14px; transition: all 0.2s;
}
.steps .step-item.active { color: var(--primary); }
.steps .step-item.active .dot { background: var(--gradient); color: #fff; border-color: transparent; }
.steps .step-item.done .dot { background: var(--success); color: #fff; border-color: transparent; }
.steps .step-item:not(:last-child)::after { content: ""; position: absolute; top: 17px; right: -50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.steps .step-item.done { color: var(--success); text-decoration: none; }
.steps .step-item.done:hover .dot { transform: scale(1.06); }
.steps a.step-item { display: block; }

@media (max-width: 640px) {
  .steps-container { flex-direction: column; align-items: stretch; }
  .steps-container .steps { width: 100%; }
  .steps-nav { width: 100%; }
}

/* ----------------------------------------------------------------------
   Misc
   ---------------------------------------------------------------------- */
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.search-box { position: relative; }
.search-box .form-control { padding-left: 42px; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; justify-content: center; }
.pagination a, .pagination strong {
  padding: 8px 14px; border-radius: 10px; border: 2px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination strong { background: var(--gradient); color: #fff; border-color: transparent; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(20,16,20,0.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 26px; }
.modal .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal .modal-head h3 { font-size: 20px; }
.modal .close { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink-soft); }

.receipt-box { background: #fbf6ee; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 10px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-col .bar { width: 100%; max-width: 42px; border-radius: 8px 8px 3px 3px; background: var(--gradient); min-height: 3px; transition: height 0.4s; }
.bar-col small { font-size: 11px; color: var(--ink-soft); font-weight: 700; }

@media print {
  .panel-sidebar, .panel-topbar, .no-print { display: none !important; }
  .panel-main { margin-left: 0; }
  body { background: #fff; }
}
