:root { --ink:#0e2118; --moss:#2f5a3f; --cream:#f2ebdf; --paper:#faf7f1; --bloom:#e0457f; --petal:#f7cdd9; --muted:#5d6b62; --line:rgba(23,39,30,.12); }
* { box-sizing: border-box; }
body { margin: 0; font-family: Manrope, system-ui, sans-serif; background: var(--paper); color: #17271e; font-size: 15px; line-height: 1.5; }
a { color: var(--moss); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
code { background: var(--cream); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
[hidden] { display: none !important; }

.a-top { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 20px; background: var(--ink); color: var(--cream); }
.a-brand { font-family: Fraunces, serif; font-size: 20px; text-decoration: none; color: var(--cream); display: flex; align-items: baseline; gap: 6px; letter-spacing: .1em; text-transform: uppercase; }
.a-brand span { font-family: "Pinyon Script", cursive; text-transform: none; letter-spacing: 0; color: var(--petal); font-size: 28px; }
.a-brand--big { font-size: 26px; justify-content: center; }
.a-brand--big span { font-size: 40px; }
.a-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; order: 3; width: 100%; scrollbar-width: none; }
.a-nav a { flex: none; padding: 8px 14px; border-radius: 99px; color: rgba(242,235,223,.8); text-decoration: none; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.a-nav a.on, .a-nav a:hover { background: rgba(242,235,223,.12); color: #fff; }
.a-nav b { background: var(--bloom); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.a-right { margin-inline-start: auto; display: flex; gap: 16px; font-size: 14px; }
.a-right a { color: var(--petal); }
@media (min-width: 980px) { .a-nav { order: 3; flex: 1 1 100%; width: 100%; flex-wrap: wrap; overflow: visible; } }

.a-main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; }
.a-h1 { font-family: Fraunces, serif; font-weight: 350; font-size: clamp(28px, 4vw, 40px); margin: 8px 0 20px; color: var(--ink); }
.a-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 18px; }
.a-card h2 { font-family: Fraunces, serif; font-weight: 400; font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.a-flash { background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 12px; margin-bottom: 12px; }
.a-alert { background: #fde8ee; color: #8b1d43; padding: 10px 14px; border-radius: 10px; font-weight: 600; }

.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }

.a-stat { background: var(--cream); border-radius: 18px; padding: 18px; text-decoration: none; color: inherit; }
.a-stat b { display: block; font-family: Fraunces, serif; font-weight: 400; font-size: 30px; color: var(--ink); }
.a-stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.a-todo { background: var(--petal); border: 0; }
.a-todo ul { margin: 0 0 14px; padding-inline-start: 20px; }
.a-cols { display: grid; gap: 18px; }
@media (min-width: 900px) { .a-cols { grid-template-columns: 1fr 1fr; } }
.a-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.a-row small { display: block; color: var(--muted); }
.a-row.unread b:first-child { color: var(--bloom); }

.a-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--cream); font-size: 12px; font-weight: 700; border: 0; }
.a-pill--new { background: #fde3ec; color: #a3204f; }
.a-pill--confirmed { background: #e3eefc; color: #1f4f8c; }
.a-pill--delivered { background: #dff0e2; color: #20643a; }
.a-pill--cancelled { background: #eee; color: #777; }
.a-pill--btn { cursor: pointer; font-family: inherit; }

.a-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 99px; border: 0; background: var(--ink); color: var(--cream); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.a-btn:hover { background: var(--moss); }
.a-btn--full { width: 100%; justify-content: center; }
.a-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.a-btn--ghost:hover { background: var(--cream); }
.a-btn--danger { background: #a3204f; }
.a-btn--wa { background: #25d366; color: #fff; }
.a-danger { margin-top: 8px; }

.a-form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 14px; color: var(--ink); }
.a-form label small { font-weight: 500; color: var(--muted); }
.a-form input:not([type=checkbox]):not([type=file]), .a-form select, .a-form textarea, .a-login input, .a-inline select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); font: inherit; background: #fff;
}
.a-form input[type=file] { display: block; margin-top: 6px; }
.a-form textarea { resize: vertical; }
.a-check { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; }
.a-grid2, .a-grid3 { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .a-grid2 { grid-template-columns: 1fr 1fr; } .a-grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.a-form > .a-grid2 { gap: 0 32px; }
.a-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--cream); display: grid; place-items: center; margin-bottom: 14px; max-width: 320px; }
.a-img img { width: 100%; height: 100%; object-fit: cover; }
.a-narrow { max-width: 520px; }
.a-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-inline select { width: auto; margin: 0; }

.a-table-wrap { overflow-x: auto; padding: 8px 12px; }
.a-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.a-table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.a-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table tr.off { opacity: .5; }
.a-table .r { text-align: right; white-space: nowrap; }
.a-table .tot td { font-weight: 800; border-bottom: 0; }
.a-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.a-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.a-tabs a { padding: 7px 14px; border-radius: 99px; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.a-tabs a.on { background: var(--ink); color: var(--cream); }
.a-note { background: var(--cream); padding: 10px 14px; border-radius: 10px; }

.a-msgs { display: grid; gap: 12px; }
.a-msg header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.a-msg.unread { border-inline-start: 4px solid var(--bloom); }
.a-msg p { margin: 0 0 10px; }
.a-links a { font-weight: 600; }

.a-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink) url("../assets/img/bg/hero.webp") center / cover; }
.a-login__card { width: 100%; max-width: 380px; text-align: center; padding: 32px 28px; }
.a-login label { display: block; text-align: start; font-weight: 700; font-size: 13px; margin: 14px 0; }

.a-login .a-brand { color: var(--ink); }
.a-login .a-brand span { color: var(--bloom); }
.a-login input::placeholder { color: #9aa59e; }

/* Visites */
.a-chart { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; align-items: end; height: 180px; }
.a-chart__bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.a-chart__bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--bloom); opacity: .85; }
.a-chart__bar:hover i { opacity: 1; background: var(--moss); }
.a-chart__bar small { position: absolute; bottom: 100%; font-size: 10px; color: var(--muted); }
.a-chart__bar i + small { position: static; order: -1; }
.a-chart__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.a-meter { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; overflow: hidden; }
.a-meter span, .a-meter b { position: relative; z-index: 1; }
.a-meter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-meter i { position: absolute; inset: 0 auto 0 0; background: var(--cream); }
@media (max-width: 600px) { .a-chart small { display: none; } }
.a-pill--preparing { background: #fff1d6; color: #7a5208; }
.a-pill--out { background: #ece4fb; color: #4b2a8c; }
.a-pill--quote { background: #fde3ec; color: #a3204f; }
.a-table .r { text-align: end; }
.a-help { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.a-lock { display: inline-block; margin-inline-start: 6px; font-size: 11px; font-weight: 700; color: #8a5a00; background: #fff4d6; padding: 1px 8px; border-radius: 99px; }
.a-form input:disabled, .a-form select:disabled, .a-form textarea:disabled { background: #f3f1ec; color: #888; }
.a-sec { margin: 22px 0 10px; font-family: Fraunces, serif; font-weight: 400; font-size: 19px; color: var(--ink); }
.a-sec:first-of-type { margin-top: 0; }
.a-chart { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; align-items: end; height: 180px; }
.a-chart__bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.a-chart__bar i { display: block; width: 100%; background: var(--bloom); border-radius: 4px 4px 0 0; min-height: 2px; }
.a-chart__bar small { font-size: 9px; color: var(--muted); }
.a-chart__axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.a-meter { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 8px; overflow: hidden; background: var(--paper); font-size: 14px; }
.a-meter span, .a-meter b { position: relative; z-index: 1; }
.a-meter i { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgba(224, 69, 127, .14); }
.a-empty { padding: 30px; text-align: center; color: var(--muted); }

/* language menu (admin) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; border: 1.5px solid rgba(242,235,223,.3); cursor: pointer; font-size: 13px; font-weight: 800; color: var(--cream); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 30; min-width: 160px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; }
.lang-list a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.lang-list a:hover, .lang-list a.active { background: var(--cream); }
.a-login .lang-menu { position: absolute; top: 16px; inset-inline-end: 16px; }

/* live demo */
.demo-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 7px 16px; background: #fff4d6; color: #4a3a12; font-size: 13px; text-align: center; }
.demo-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.demo-box { margin: 0 0 18px; padding: 14px; border-radius: 14px; background: #fff8e6; border: 1px solid #f1dca6; color: #4a3a12; font-size: 13px; text-align: start; }
.demo-box-head { font-weight: 700; margin-bottom: 8px; }
.demo-box-sub { margin: 6px 0; color: #6b5a2e; }
.demo-account { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #e5c97a; background: #fff; cursor: pointer; font: inherit; text-align: start; color: #2a2208; }
.demo-account:hover { background: #fff1cc; }
.demo-account span { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #6b5a2e; }

[dir="rtl"] .a-table th, [dir="rtl"] .a-login label { text-align: right; }
:lang(ar) body { font-family: "Noto Sans Arabic", Manrope, system-ui, sans-serif; }
:lang(hi) body { font-family: "Noto Sans Devanagari", Manrope, system-ui, sans-serif; }
.demo-enter { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 12px; padding: 13px 14px; border-radius: 12px; background: #c0392b; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.3; text-align: center; text-decoration: none; }
.demo-enter:hover, .demo-enter:focus-visible { background: #a93226; color: #fff; }
.demo-enter span { display: inline-block; }
[dir="rtl"] .demo-enter span { transform: scaleX(-1); }
div.demo-account { cursor: default; }
