/* ===== Caravan Booking Platform — demo UI (HTML + CSS only) ===== */
:root{
  --brand:#1f4d3f;--brand-d:#153629;--brand-l:#e7efe9;
  --accent:#c9822a;--accent-d:#a96a1c;
  --sand:#f1ece0;--ink:#1c211f;--muted:#6a716c;--line:#e3e1d9;--bg:#f6f4ee;--white:#fff;
  --ok:#1f9d63;--warn:#d99100;--bad:#d64545;--info:#2f6fdb;--violet:#7a52c7;
  --r:8px;--shadow:0 2px 10px rgba(30,40,30,.08);}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Public Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55;font-size:15px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:'Newsreader',Georgia,serif;line-height:1.2;font-weight:600}
h1{font-size:34px}h2{font-size:26px}h3{font-size:19px}h4{font-size:16px}
p.muted,.muted{color:var(--muted)}
.small{font-size:13px}.tiny{font-size:12px}
.container{max-width:1180px;margin:0 auto;padding:0 20px}
.row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.grow{flex:1}
.mt{margin-top:18px}.mt2{margin-top:32px}.mb{margin-bottom:18px}
.grid{display:grid;gap:18px}
.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
.g-main{grid-template-columns:2fr 1fr}
.right{text-align:right}.center{text-align:center}

/* demo bar */
.demobar{background:#1c201e;color:#d6ddd9;font-size:12.5px;padding:7px 20px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.demobar b{color:#fff;margin-right:8px}
.demobar a{padding:3px 10px;border-radius:4px;border:1px solid #4a554f}
.demobar a:hover,.demobar a.on{background:var(--accent);border-color:var(--accent);color:#fff}
.demobar .sp{flex:1}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:8px;justify-content:center;padding:10px 18px;border-radius:6px;font-weight:600;font-size:14px;border:1.5px solid transparent;background:var(--brand);color:#fff;cursor:pointer;transition:.15s;font-family:inherit}
.btn:hover{background:var(--brand-d)}
.btn-accent{background:var(--accent)}.btn-accent:hover{background:var(--accent-d)}
.btn-ghost{background:#fff;color:var(--brand);border-color:var(--line)}.btn-ghost:hover{background:var(--brand-l)}
.btn-danger{background:#fff;color:var(--bad);border-color:#f2c9c9}.btn-danger:hover{background:#fdeeee}
.btn-ok{background:var(--ok)}.btn-ok:hover{background:#17804f}
.btn-sm{padding:6px 12px;font-size:13px;border-radius:8px}
.btn-block{display:flex;width:100%}
.btn-lg{padding:14px 26px;font-size:16px}

/* badges */
.badge{display:inline-block;padding:3px 10px;border-radius:4px;font-size:12px;font-weight:600;background:#eef1f2;color:#4a5b5f;white-space:nowrap}
.b-ok{background:#e0f5ea;color:#12714a}.b-warn{background:#fff3d6;color:#9a6a00}.b-bad{background:#fde6e6;color:#a82e2e}
.b-info{background:#e3edfd;color:#1f55b5}.b-violet{background:#eee7fb;color:#5b3aa3}.b-brand{background:var(--brand-l);color:var(--brand)}

/* cards */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.card h3{margin-bottom:12px}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px;flex-wrap:wrap}
.card-head h3{margin:0}
.card.flat{padding:0;overflow:hidden}
.card.flat .card-head{padding:16px 20px;margin:0;border-bottom:1px solid var(--line)}

/* stats */
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px;position:relative}
.stat .ic{position:absolute;right:16px;top:16px;font-size:22px;opacity:.9}
.stat .lbl{color:var(--muted);font-size:13px}
.stat .val{font-family:'Newsreader',serif;font-size:30px;font-weight:600;margin:4px 0}
.stat .delta{font-size:12.5px;color:var(--ok)}.stat .delta.dn{color:var(--bad)}

/* tables */
.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:11px 16px;background:#fafbfb;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fafcfc}
td .who{display:flex;gap:10px;align-items:center}
td img.th{width:54px;height:40px;border-radius:8px;object-fit:cover}
.avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--brand-l);display:inline-grid;place-items:center;color:var(--brand);font-weight:700;font-size:13px}

/* forms */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field>label,.lab{font-size:13px;font-weight:600;color:#33474c}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=time],input[type=tel],select,textarea{width:100%;padding:10px 12px;border:1.5px solid var(--line);border-radius:6px;font:inherit;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}
textarea{min-height:90px;resize:vertical}
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 18px}
.fgrid .full{grid-column:1/-1}
.fgrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 18px}
.help{font-size:12px;color:var(--muted)}
.check{display:flex;gap:9px;align-items:flex-start;font-size:14px;margin-bottom:8px}
.check input{margin-top:3px;accent-color:var(--brand);width:16px;height:16px}
.checks{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 14px}
.input-ico{position:relative}.input-ico span{position:absolute;left:12px;top:50%;transform:translateY(-50%)}.input-ico input{padding-left:38px}

/* toggle */
.toggle{position:relative;display:inline-block;width:42px;height:24px;flex:none}
.toggle input{opacity:0;width:0;height:0}
.toggle i{position:absolute;inset:0;background:#cfd8da;border-radius:4px;transition:.2s}
.toggle i:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.toggle input:checked+i{background:var(--ok)}.toggle input:checked+i:before{transform:translateX(18px)}
.setting{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid var(--line)}
.setting:last-child{border:0}
.setting p{font-size:13px;color:var(--muted)}

/* chips */
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:6px 14px;border-radius:4px;border:1.5px solid var(--line);font-size:13px;background:#fff;font-weight:500}
.chip.on,.chip:hover{background:var(--brand);color:#fff;border-color:var(--brand)}

/* alerts */
.alert{padding:13px 16px;border-radius:6px;font-size:14px;display:flex;gap:10px;align-items:flex-start;margin-bottom:16px;border:1px solid}
.a-ok{background:#e9f8f0;border-color:#bfe8d3;color:#11623f}
.a-warn{background:#fff7e0;border-color:#f5dfa0;color:#7d5700}
.a-bad{background:#fdeeee;border-color:#f3c6c6;color:#932a2a}
.a-info{background:#eaf1fd;border-color:#c5d8f7;color:#1b4a9c}
.demo-note{background:#fff9ec;border:1.5px dashed #e8b64e;color:#7a5200;padding:11px 15px;border-radius:6px;font-size:13px;margin-bottom:18px}
.demo-note b{color:#5c3d00}

/* progress */
.progress{height:8px;background:#e8eeee;border-radius:4px;overflow:hidden}
.progress i{display:block;height:100%;background:var(--brand);border-radius:4px}
.progress.ok i{background:var(--ok)}

/* stepper */
.stepper{display:flex;gap:0;margin-bottom:26px;counter-reset:s;flex-wrap:wrap}
.stepper a,.stepper span{flex:1;min-width:120px;display:flex;align-items:center;gap:10px;font-size:13.5px;font-weight:600;color:var(--muted);padding:10px 0;position:relative}
.stepper a:before,.stepper span:before{counter-increment:s;content:counter(s);width:28px;height:28px;border-radius:50%;background:#e4eaeb;color:#5a6c70;display:grid;place-items:center;font-size:13px;flex:none}
.stepper .done{color:var(--ok)}.stepper .done:before{content:"✓";background:var(--ok);color:#fff}
.stepper .cur{color:var(--brand)}.stepper .cur:before{background:var(--brand);color:#fff}
.stepper a:after,.stepper span:after{content:"";height:2px;background:#e1e8e9;flex:1;margin-right:10px}
.stepper>*:last-child:after{display:none}

/* tabs (CSS only) */
.tabs>input{display:none}
.tablist{display:flex;gap:4px;border-bottom:2px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tablist label{padding:10px 16px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap;font-size:14px}
.tablist label:hover{color:var(--brand)}
.panel{display:none}
.tabs input:nth-of-type(1):checked~.panels .panel:nth-child(1),
.tabs input:nth-of-type(2):checked~.panels .panel:nth-child(2),
.tabs input:nth-of-type(3):checked~.panels .panel:nth-child(3),
.tabs input:nth-of-type(4):checked~.panels .panel:nth-child(4),
.tabs input:nth-of-type(5):checked~.panels .panel:nth-child(5),
.tabs input:nth-of-type(6):checked~.panels .panel:nth-child(6),
.tabs input:nth-of-type(7):checked~.panels .panel:nth-child(7){display:block}
.tabs input:nth-of-type(1):checked~.tablist label:nth-child(1),
.tabs input:nth-of-type(2):checked~.tablist label:nth-child(2),
.tabs input:nth-of-type(3):checked~.tablist label:nth-child(3),
.tabs input:nth-of-type(4):checked~.tablist label:nth-child(4),
.tabs input:nth-of-type(5):checked~.tablist label:nth-child(5),
.tabs input:nth-of-type(6):checked~.tablist label:nth-child(6),
.tabs input:nth-of-type(7):checked~.tablist label:nth-child(7){color:var(--brand);border-bottom-color:var(--brand)}

/* modal (:target) */
.modal{position:fixed;inset:0;background:rgba(10,30,35,.55);display:none;align-items:center;justify-content:center;z-index:100;padding:20px}
.modal:target{display:flex}
.modal .box{background:#fff;border-radius:6px;max-width:560px;width:100%;padding:26px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.modal .box h3{margin-bottom:6px}
.modal .x{float:right;font-size:22px;line-height:1;color:var(--muted)}
.modal .foot{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}

/* key-values */
.kv{display:grid;grid-template-columns:150px 1fr;gap:10px 16px;font-size:14px}
.kv dt{color:var(--muted)}.kv dd{font-weight:500}
.list-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;align-items:center}
.list-line:last-child{border:0}
.list-line.total{font-weight:700;font-size:16px;border-top:2px solid var(--ink);border-bottom:0;margin-top:6px}

/* activity timeline */
.tl{list-style:none;position:relative;padding-left:22px}
.tl:before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl li{position:relative;padding:6px 0 14px;font-size:14px}
.tl li:before{content:"";position:absolute;left:-21px;top:11px;width:10px;height:10px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 3px #fff}
.tl li.w:before{background:var(--warn)}.tl li.r:before{background:var(--bad)}.tl li.g:before{background:var(--ok)}
.tl small{display:block;color:var(--muted);font-size:12px}

/* ===== Calendar ===== */
.cal{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:16px}
.cal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:700;font-family:'Newsreader',serif;font-size:17px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cal-dow{font-size:11px;text-transform:uppercase;color:var(--muted);text-align:center;padding:4px 0;font-weight:600}
.cal-d{min-height:64px;border-radius:8px;background:#f7fafa;padding:5px 6px;font-size:12px;position:relative;overflow:hidden}
.cal-d.e{background:transparent}
.cal-d .n{font-weight:600;color:#42565b}
.cal-d em{display:block;font-style:normal;font-size:10.5px;font-weight:600;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-d.bk{background:#dcebfc;color:#1b4a9c}
.cal-d.ow{background:#e9defa;color:#5b3aa3}
.cal-d.pn{background:#fff0c7;color:#8a5f00}
.cal-d.mt{background:#fde0e0;color:#a02c2c}
.cal-d.ic{background:#dff3ea;color:#11623f}
.cal-d.hd{background:repeating-linear-gradient(45deg,#fff3d6,#fff3d6 6px,#ffe9b3 6px,#ffe9b3 12px);color:#8a5f00}
.cal-d.today{outline:2px solid var(--accent)}
.cal.pub .cal-d{min-height:42px;text-align:center;font-size:13px;padding:10px 0;background:#eaf6ee;color:#12643f;font-weight:600}
.cal.pub .cal-d.na{background:#f1f3f3;color:#aab5b8;text-decoration:line-through;font-weight:400}
.cal.pub .cal-d.sel{background:var(--brand);color:#fff}
.cal.pub .cal-d.mid{background:var(--brand-l);color:var(--brand)}
.cal.pub .cal-d.e{background:transparent}
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin-top:12px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:6px;vertical-align:-1px}

/* timeline chart */
.tchart{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.tc-row{display:grid;grid-template-columns:190px repeat(30,minmax(30px,1fr));min-width:1000px;border-bottom:1px solid var(--line);align-items:center}
.tc-row:last-child{border:0}
.tc-row .nm{padding:10px 14px;font-size:13px;font-weight:600;display:flex;gap:8px;align-items:center;border-right:1px solid var(--line);background:#fafcfc;position:sticky;left:0;z-index:2}
.tc-row .nm img{width:30px;height:30px;border-radius:7px;object-fit:cover}
.tc-row.hd .nm{background:#f1f5f5}
.tc-row.hd span{font-size:11px;text-align:center;color:var(--muted);padding:9px 0;border-right:1px solid #f0f3f3}
.tc-row .cellbg{grid-row:1;height:50px;border-right:1px solid #f3f6f6}
.bar{grid-row:1;height:28px;border-radius:7px;font-size:11px;font-weight:600;padding:0 8px;display:flex;align-items:center;white-space:nowrap;overflow:hidden;z-index:1;margin:0 2px}
.bar.bk{background:#2f6fdb;color:#fff}.bar.ow{background:#7a52c7;color:#fff}.bar.pn{background:#f0b429;color:#4d3500}.bar.mt{background:#d64545;color:#fff}.bar.ic{background:#1f9d63;color:#fff}

/* ===== Public site ===== */
.pub-head{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.pub-head .container{display:flex;align-items:center;gap:30px;height:68px}
.logo{font-family:'Newsreader',serif;font-weight:700;font-size:22px;color:var(--brand);display:flex;gap:8px;align-items:center}
.logo span{font-size:24px}
.pub-nav{display:flex;gap:6px;flex:1}
.pub-nav a{padding:8px 14px;border-radius:8px;font-weight:500;color:#33474c}
.pub-nav a:hover,.pub-nav a.on{background:var(--brand-l);color:var(--brand)}
.hero{position:relative;color:#fff;min-height:560px;display:flex;align-items:center;background:linear-gradient(120deg,rgba(9,62,70,.82),rgba(9,62,70,.35)),var(--himg) center/cover}
.hero h1{font-size:54px;max-width:700px;margin-bottom:14px}
.hero p.lead{font-size:18px;max-width:560px;opacity:.95;margin-bottom:28px}
.searchbar{background:#fff;color:var(--ink);border-radius:6px;padding:14px;display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;box-shadow:0 20px 50px rgba(0,0,0,.25);max-width:1020px}
.searchbar .field{margin:0}
.searchbar .btn{height:44px}
.section{padding:64px 0}
.section.alt{background:var(--sand)}
.sec-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px;gap:20px;flex-wrap:wrap}
.sec-head p{color:var(--muted);max-width:520px}
.ccard{background:#fff;border-radius:6px;overflow:hidden;border:1px solid var(--line);transition:.2s;display:flex;flex-direction:column}
.ccard:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.ccard .ph{position:relative;aspect-ratio:4/3;overflow:hidden}
.ccard .ph img{width:100%;height:100%;object-fit:cover}
.ccard .tag{position:absolute;left:12px;top:12px;background:var(--accent);color:#fff;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:700}
.ccard .heart{position:absolute;right:12px;top:12px;background:#fff;width:34px;height:34px;border-radius:50%;display:grid;place-items:center}
.ccard .bd{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.ccard .loc{font-size:13px;color:var(--muted)}
.ccard .meta{display:flex;gap:14px;font-size:13px;color:#4a5e63}
.ccard .foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
.price{font-family:'Newsreader',serif;font-size:22px;font-weight:700;color:var(--brand)}
.price small{font-family:'Public Sans',sans-serif;font-size:12px;font-weight:400;color:var(--muted)}
.usp{text-align:center;padding:24px}
.usp .i{font-size:34px;background:var(--brand-l);width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px}
.banner{background:linear-gradient(120deg,var(--brand),#1f4d3f);color:#fff;border-radius:6px;padding:44px;display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap}
.pub-foot{background:#1c201e;color:#bdc9c2;padding:50px 0 24px;margin-top:0}
.pub-foot h4{color:#fff;margin-bottom:12px;font-family:Inter}
.pub-foot a{display:block;padding:3px 0;font-size:14px}
.pub-foot a:hover{color:#fff}
.pub-foot .copy{border-top:1px solid #33403a;margin-top:30px;padding-top:18px;font-size:13px}
.page-top{background:var(--sand);padding:26px 0;border-bottom:1px solid var(--line)}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:8px}.crumbs a:hover{color:var(--brand)}
.layout-side{display:grid;grid-template-columns:280px 1fr;gap:26px;align-items:start}
.filters{position:sticky;top:88px}
.filters h4{margin:18px 0 10px;font-family:'Public Sans';font-size:14px}
.filters h4:first-child{margin-top:0}
.hcard{display:grid;grid-template-columns:300px 1fr 200px;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-bottom:18px}
.hcard:hover{box-shadow:var(--shadow)}
.hcard img.main{width:100%;height:100%;min-height:210px;object-fit:cover}
.hcard .mid{padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.hcard .side{padding:18px;border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;text-align:right;background:#fbfdfd}
.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:200px 200px;gap:10px;border-radius:6px;overflow:hidden}
.gallery img{width:100%;height:100%;object-fit:cover}
.gallery img:first-child{grid-row:1/3}
.book-box{position:sticky;top:88px;box-shadow:var(--shadow)}
.amen{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;font-size:14px}
.amen div{display:flex;gap:9px;align-items:center}
.summary-img{border-radius:6px;aspect-ratio:16/9;object-fit:cover;width:100%;margin-bottom:14px}
.pay-opt{display:flex;gap:12px;align-items:center;border:1.5px solid var(--line);padding:14px 16px;border-radius:6px;margin-bottom:10px;cursor:pointer}
.pay-opt:has(input:checked){border-color:var(--brand);background:var(--brand-l)}
.pay-opt input{accent-color:var(--brand)}
.tick{width:84px;height:84px;border-radius:50%;background:var(--ok);color:#fff;font-size:44px;display:grid;place-items:center;margin:0 auto 18px}
.email-prev{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;font-size:14px}
.email-prev .eh{background:#f4f6f7;padding:12px 18px;border-bottom:1px solid var(--line);font-size:13px}
.email-prev .eb{padding:20px}
.review{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}

/* ===== App shell (admin & owner) ===== */
.shell{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 34px)}
.side{background:#17302a;color:#b9cfc4;padding:20px 14px;position:sticky;top:0;height:calc(100vh - 34px);overflow-y:auto}
.side .logo{color:#fff;padding:4px 10px 18px}
.side .role{margin:0 10px 18px;padding:8px 12px;border-radius:6px;background:#22443b;font-size:12px;color:#9dbbac}
.side .role b{display:block;color:#fff;font-size:13px}
.side h6{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8aa79a;margin:16px 12px 6px}
.side a{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:9px;font-size:14px;font-weight:500;margin-bottom:2px}
.side a:hover{background:#22443b;color:#fff}
.side a.on{background:var(--accent);color:#fff}
.side a .cnt{margin-left:auto;background:var(--bad);color:#fff;font-size:11px;border-radius:4px;padding:1px 8px}
.main{min-width:0}
.topbar{background:#fff;border-bottom:1px solid var(--line);padding:12px 28px;display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:20}
.topbar .search{flex:1;max-width:420px}
.topbar .search input{background:#f2f5f6;border-color:transparent}
.topbar .ico{width:38px;height:38px;border-radius:6px;background:#f2f5f6;display:grid;place-items:center;position:relative}
.topbar .ico i{position:absolute;right:6px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--bad)}
.topbar .me{display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.2}
.topbar .me small{color:var(--muted)}
.content{padding:26px 28px 50px}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.page-head p{color:var(--muted);margin-top:4px}
.burger{display:none}
#navtoggle{display:none}
.qa{display:flex;gap:10px;flex-wrap:wrap}
.qa a{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);padding:16px 10px;border-radius:6px;flex:1;min-width:110px;font-size:13px;font-weight:600;text-align:center}
.qa a span{font-size:24px}
.qa a:hover{border-color:var(--brand);background:var(--brand-l);color:var(--brand)}
.bars{display:flex;align-items:flex-end;gap:12px;height:190px;padding-top:10px}
.bars div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;font-size:11px;color:var(--muted)}
.bars i{display:block;width:100%;max-width:44px;background:linear-gradient(var(--brand),#1f4d3f);border-radius:8px 8px 0 0}
.bars i.a{background:linear-gradient(var(--accent),#f6b46d)}
.drop{border:2px dashed #b9cacd;border-radius:6px;padding:30px;text-align:center;color:var(--muted);background:#fafcfc}
.drop span{font-size:34px;display:block}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.thumbs figure{position:relative;border-radius:6px;overflow:hidden;border:1px solid var(--line)}
.thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover}
.thumbs figcaption{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;padding:2px 8px;border-radius:4px}
.thumbs figure .acts{position:absolute;bottom:8px;right:8px;display:flex;gap:4px}
.thumbs figure .acts span{background:#fff;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;font-size:12px}
.sticky-foot{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:14px 28px;margin:30px -28px -50px;display:flex;justify-content:space-between;gap:10px;z-index:10}
.pricegrid th,.pricegrid td{text-align:center}
.pricegrid td:first-child,.pricegrid th:first-child{text-align:left}
.pricegrid input{text-align:center;padding:6px;width:90px}
.perm td:not(:first-child),.perm th:not(:first-child){text-align:center}
.perm input{accent-color:var(--brand);width:17px;height:17px}
.auth{min-height:calc(100vh - 34px);display:grid;grid-template-columns:1.1fr 1fr}
.auth .art{background:linear-gradient(160deg,rgba(9,62,70,.7),rgba(9,62,70,.9)),var(--himg) center/cover;color:#fff;padding:60px;display:flex;flex-direction:column;justify-content:flex-end}
.auth .art h1{font-size:44px;margin-bottom:12px}
.auth .form{display:flex;align-items:center;justify-content:center;padding:40px;background:#fff}
.auth .form>div{width:100%;max-width:400px}
.role-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}
.role-pick a{border:1.5px solid var(--line);border-radius:6px;padding:12px 6px;text-align:center;font-size:13px;font-weight:600}
.role-pick a span{display:block;font-size:24px}
.role-pick a:hover{border-color:var(--brand);background:var(--brand-l)}

/* ===== Demo hub ===== */
.hub-hero{background:linear-gradient(135deg,#153629,#1f4d3f 60%,#1f4d3f);color:#fff;padding:70px 0 90px}
.hub-hero h1{font-size:50px;margin-bottom:12px}
.flowrow{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;margin:14px 0 10px}
.flowrow a{flex:1;min-width:150px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:14px;position:relative;font-size:13.5px}
.flowrow a b{display:block;font-size:14.5px;margin-bottom:3px;color:var(--brand)}
.flowrow a:not(:last-child):after{content:"→";position:absolute;right:-17px;top:50%;transform:translateY(-50%);color:var(--accent);font-weight:700;font-size:18px;z-index:2}
.flowrow a:hover{border-color:var(--accent);box-shadow:var(--shadow)}
.flowrow a i{position:absolute;left:-8px;top:-8px;background:var(--accent);color:#fff;font-style:normal;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}
.hub-card{background:#fff;border-radius:6px;border:1px solid var(--line);padding:26px}
.hub-card ul{list-style:none;margin-top:12px}
.hub-card li a{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.hub-card li a:hover{color:var(--accent-d)}
.hub-card li a:after{content:"→";color:var(--muted)}

/* ===== Responsive ===== */
@media(max-width:1024px){
  .g4{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(2,1fr)}.g-main{grid-template-columns:1fr}
  .searchbar{grid-template-columns:1fr 1fr}
  .hcard{grid-template-columns:240px 1fr}.hcard .side{grid-column:1/-1;flex-direction:row;align-items:center;border-left:0;border-top:1px solid var(--line)}
  .layout-side{grid-template-columns:1fr}.filters,.book-box{position:static}
}
@media(max-width:860px){
  .shell{grid-template-columns:1fr}
  .side{position:fixed;left:-280px;width:260px;top:34px;bottom:0;height:auto;z-index:90;transition:.25s}
  #navtoggle:checked~.shell .side{left:0}
  .burger{display:grid}
  .topbar{padding:12px 16px}.content{padding:20px 16px 40px}.sticky-foot{margin:30px -16px -40px;padding:12px 16px}
  .pub-nav{display:none}
  .hero h1{font-size:36px}
  .auth{grid-template-columns:1fr}.auth .art{display:none}
  .g2,.g3,.g4,.fgrid,.fgrid3,.checks,.amen{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr;grid-template-rows:180px 120px}.gallery img:first-child{grid-column:1/-1;grid-row:1}
  .hcard{grid-template-columns:1fr}
  .thumbs{grid-template-columns:repeat(2,1fr)}
  .banner{padding:28px}.kv{grid-template-columns:110px 1fr}
  .hub-hero h1{font-size:34px}
  .topbar .search,.topbar .me small{display:none}
  .flowrow a:after{display:none}
}

/* ===== Refinements: icons, flatter look ===== */
.sv{width:1.15em;height:1.15em;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em;flex:none}
.sv.star{color:#d89a24;width:1em;height:1em}
.sv.dr{color:var(--bad)}.sv.dy{color:var(--warn)}.sv.dg{color:var(--ok)}
.btn .sv{width:1.05em;height:1.05em;vertical-align:-.15em}
.tick .sv{width:44px;height:44px;stroke-width:2.6}
.stat .ic .sv{width:22px;height:22px;color:var(--brand)}
.usp .i .sv{width:30px;height:30px;color:var(--brand)}
.usp .i{border-radius:6px;width:64px;height:64px}
.qa a span .sv{width:24px;height:24px;color:var(--brand)}
.side a .sv{width:18px;height:18px;opacity:.9}
.topbar .ico .sv{width:19px;height:19px}
.input-ico span .sv{width:16px;height:16px;color:var(--muted)}
.drop span .sv{width:34px;height:34px;color:var(--muted)}
.ccard .heart .sv{width:16px;height:16px}
.alert>.sv{margin-top:2px;width:1.2em;height:1.2em}
.hub-hero .btn .sv{margin-right:2px}
h1,h2,h3,h4{font-weight:500;letter-spacing:-.01em}
h1{font-size:38px}h2{font-size:28px}h3{font-size:20px}
body{font-size:14.5px}
.btn{border-radius:6px;font-weight:600}
.btn-ghost{background:transparent;border-color:#cfccc0;color:var(--ink)}.btn-ghost:hover{background:#ece8dc}
.btn-accent{color:#fff}
.badge{border-radius:3px;font-weight:600;font-size:11.5px;padding:2px 8px;letter-spacing:.01em}
.chip{border-radius:4px}
.card,.stat,.hcard,.ccard,.cal,.tchart{box-shadow:none;border-radius:8px}
.ccard:hover{transform:none;box-shadow:var(--shadow)}
.ccard .tag{border-radius:3px;font-weight:600;font-size:11.5px}
.ccard .heart{border-radius:4px}
.hero{background:linear-gradient(rgba(20,36,28,.55),rgba(20,36,28,.55)),var(--himg) center/cover;min-height:520px}
.hero h1{font-size:50px;font-weight:500;max-width:640px}
.searchbar{border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.hub-hero{background:#1f4d3f}
.hub-hero h1{font-size:46px}
.banner{background:#1f4d3f;border-radius:8px}
.auth .art{background:linear-gradient(rgba(20,36,28,.7),rgba(20,36,28,.7)),var(--himg) center/cover}
.bars i,.bars i.a{background:var(--brand)}.bars i.a{background:var(--accent)}
.bars i{border-radius:2px 2px 0 0}
.progress,.progress i,.toggle i{border-radius:99px}
.toggle i:before{border-radius:50%}
.flowrow a i{border-radius:3px}
.flowrow a{border-radius:8px}
.pub-nav a{border-radius:4px}
.side a{border-radius:6px}
.side a.on{background:var(--accent)}
.side .role{border-radius:6px}
.stat .val{font-weight:500}
.avatar{border-radius:50%}
.stepper a:before,.stepper span:before{border-radius:4px}
.modal .box{border-radius:10px}
.cal-d{border-radius:4px}
.thumbs figure,.thumbs img,.gallery,.summary-img,.pay-opt,.drop{border-radius:6px}
.gallery{border-radius:8px}
.demobar{background:#1c201e}
.demobar a{border-radius:4px}
.hcard .side{background:#faf8f2}
th{background:#f7f5ee}
tbody tr:hover{background:#faf8f2}
.demo-note{border-style:solid}
.steps{margin-top:14px;display:flex;flex-direction:column}
.steps a{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}
.steps a:last-child{border:0}
.steps a b{width:22px;height:22px;border-radius:4px;background:var(--brand-l);color:var(--brand);display:grid;place-items:center;font-size:12px;flex:none}
.steps a:hover{color:var(--accent-d)}
.hero,.auth .art{background:none;background-size:cover;background-position:center;background-repeat:no-repeat}
.hcard{align-items:stretch}
.hcard img.main{width:100%;height:230px;min-height:0;max-height:230px;object-fit:cover;display:block}
.hcard .mid{justify-content:center}
@media(max-width:1024px){.hcard img.main{height:200px;max-height:200px}}
.hcard .side{position:static;height:auto;overflow:visible;top:auto;color:inherit}
.hcard .side a{display:inline-flex;margin:0;font-size:14px}
