
:root{--bg:#F5F6F8;--card:#fff;--blue:#1E4FD8;--blue-l:#E8EEFC;--dark:#111827;--text:#111827;--muted:#6B7280;--line:#E5E7EB;--or:#9A3412;--or-bg:#FFEDD5;--gr:#15803D;--gr-bg:#DCFCE7;--red:#B91C1C;--red-bg:#FEE2E2}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Inter,system-ui,sans-serif;background:#E5E7EB;color:var(--text);font-size:15px;min-height:100vh;display:flex;justify-content:center}
.phone{width:100%;max-width:430px;min-height:100vh;background:var(--bg);position:relative;display:flex;flex-direction:column}
.top{padding:20px 20px 16px;background:var(--bg)}
.top.dark{background:var(--dark);color:#fff}
.top h1{font-size:20px;font-weight:700}
.top .sub{font-size:13px;color:var(--muted);margin-top:2px}
.top.dark .sub{color:#9CA3AF}
.toprow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.main{flex:1;padding:4px 16px 96px;overflow-y:auto}
.card{background:var(--card);border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card h3{font-size:15px;font-weight:600;margin-bottom:10px}
.muted{color:var(--muted);font-size:13px}
.big{font-size:28px;font-weight:700}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;border-radius:12px;border:0;background:var(--blue);color:#fff;font:600 15px Inter,sans-serif;width:100%;cursor:pointer}
.btn.sec{background:var(--blue-l);color:var(--blue)}
.btn.ghost{background:#fff;color:var(--text);border:1px solid var(--line)}
.btn.red{background:var(--red-bg);color:var(--red)}
.btn.green{background:var(--gr);color:#fff}
.btn.sm{height:40px;font-size:14px;width:auto;padding:0 14px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.row{display:flex;gap:10px}
.row>*{flex:1}
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}
.pill.pending{background:var(--or-bg);color:var(--or)}
.pill.paid{background:var(--gr-bg);color:var(--gr)}
.pill.over{background:var(--red-bg);color:var(--red)}
.pill.wait{background:var(--blue-l);color:var(--blue)}
.line{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);gap:10px}
.line:last-child{border-bottom:0}
label.f{display:block;font-size:13px;font-weight:500;color:var(--muted);margin:12px 0 6px}
input,select,textarea{width:100%;height:48px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font:15px Inter,sans-serif;background:#fff;color:var(--text)}
textarea{height:110px;padding:12px 14px;resize:vertical}
input[type=checkbox]{width:20px;height:20px;accent-color:var(--blue);flex:none}
.nav{position:fixed;bottom:0;width:100%;max-width:430px;background:#fff;border-top:1px solid var(--line);display:flex;padding:6px 0 10px;z-index:5}
.nav button{flex:1;background:none;border:0;font:500 12px Inter,sans-serif;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px;cursor:pointer}
.nav button.on{color:var(--blue)}
.nav svg{width:22px;height:22px}
.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.prog{height:10px;background:var(--line);border-radius:99px;overflow:hidden;margin:10px 0 6px}
.prog div{height:100%;background:var(--gr)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qa{background:#fff;border-radius:14px;padding:14px;border:0;text-align:left;font:600 14px Inter,sans-serif;color:var(--text);display:flex;flex-direction:column;gap:8px;cursor:pointer}
.qa .ic{color:var(--blue)}
.tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:12px;padding-bottom:2px}
.tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font:500 13px Inter,sans-serif;white-space:nowrap;cursor:pointer;color:var(--text)}
.tabs button.on{background:var(--dark);color:#fff;border-color:var(--dark)}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--dark);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;z-index:50;max-width:360px;text-align:center;display:none}
.modal{position:fixed;inset:0;background:rgba(17,24,39,.5);display:none;align-items:flex-end;justify-content:center;z-index:40}
.modal .sheet{background:var(--bg);width:100%;max-width:430px;max-height:90vh;overflow:auto;border-radius:20px 20px 0 0;padding:20px 16px 24px}
.back{background:none;border:0;color:inherit;cursor:pointer;display:flex;align-items:center;padding:4px}
.qr{width:170px;height:170px;margin:10px auto;display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px}
.shot{max-width:100%;max-height:260px;border-radius:12px;border:1px solid var(--line);display:block;margin:8px 0}
.empty{text-align:center;color:var(--muted);padding:24px 8px;font-size:14px}
.preview{background:var(--blue-l);border-radius:12px;padding:12px;font-size:14px;line-height:1.5;white-space:pre-wrap}
.receipt{border:1px dashed var(--line);border-radius:12px;padding:14px;background:#fff}
.demo{background:#FEF3C7;color:#92400E;font-size:12px;padding:8px 12px;border-radius:10px;margin-bottom:12px;line-height:1.5}
.logo{width:56px;height:56px;border-radius:16px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:22px;margin-bottom:16px}
.seg{display:flex;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px;margin:18px 0 4px}
.seg button{flex:1;height:40px;border:0;background:none;border-radius:9px;font:600 14px Inter,sans-serif;color:var(--muted);cursor:pointer}
.seg button.on{background:var(--blue);color:#fff}
table{width:100%;border-collapse:collapse;font-size:13px}
td,th{text-align:left;padding:8px 4px;border-bottom:1px solid var(--line)}
.right{text-align:right}

.hero{position:relative;height:300px;overflow:hidden}
.hero img{width:100%;height:100%;object-fit:cover;object-position:center 42%}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,24,39,.15) 0%,rgba(17,24,39,.05) 40%,rgba(17,24,39,.85) 100%)}
.hero .cap{position:absolute;left:20px;right:20px;bottom:44px;color:#fff;z-index:2}
.hero .cap h1{font-size:25px;font-weight:700;line-height:1.2;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.hero .cap p{font-size:13px;opacity:.9;margin-top:4px}
.hero .lang{position:absolute;top:16px;right:16px;z-index:3}
.hero .lang .btn{background:rgba(255,255,255,.92);border:0}
.tagline{display:inline-block;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.35);padding:4px 10px;border-radius:999px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}
.lift{margin-top:-28px;position:relative;z-index:4;border-radius:22px 22px 0 0;background:var(--bg);padding-top:20px!important}
.banner{position:relative;height:150px;overflow:hidden}
.banner img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,24,39,.88) 0%,rgba(17,24,39,.55) 60%,rgba(17,24,39,.25) 100%)}
.banner .in{position:absolute;inset:0;z-index:2;color:#fff;padding:18px 20px;display:flex;flex-direction:column;justify-content:space-between}
.banner .sub{color:#D1D5DB;font-size:13px}
.chips{display:flex;gap:8px;overflow-x:auto;margin:-6px 0 12px}
.chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px 6px 6px;font:600 13px Inter;cursor:pointer;white-space:nowrap;color:var(--text)}
.chip .av{width:26px;height:26px;border-radius:50%;background:var(--blue-l);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:12px}
.chip.on{border-color:var(--blue);background:var(--blue-l)}
.mini{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.mini .card{margin:0;padding:12px;text-align:center;cursor:pointer}
.mini .card b{display:block;font-size:20px}
.ring{width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;flex:none}
.attrow{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}
.pa{display:flex;gap:6px}.pa button{width:44px;height:36px;border-radius:10px;border:1px solid var(--line);background:#fff;font:700 13px Inter;cursor:pointer}
.pa button.p.on{background:var(--gr);color:#fff;border-color:var(--gr)}.pa button.a.on{background:var(--red);color:#fff;border-color:var(--red)}
.gal{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gal figure{background:#fff;border-radius:14px;overflow:hidden}.gal img{width:100%;height:130px;object-fit:cover;display:block;cursor:pointer}.gal figcaption{font-size:12px;padding:6px 8px;color:var(--muted)}
.ev{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.ev:last-child{border:0}
.ev .dt{width:48px;text-align:center;border-radius:12px;padding:6px 0;background:var(--blue-l);color:var(--blue);flex:none}.ev .dt b{display:block;font-size:18px}.ev .dt span{font-size:11px;text-transform:uppercase}
.ev .dt.h{background:var(--or-bg);color:var(--or)}
.wa{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#DCFCE7;color:#15803D;text-decoration:none;flex:none}
.mt{width:100%;border-collapse:collapse}.mt input{height:36px;padding:0 6px;text-align:center;border-radius:8px;width:52px}
.about-img{width:100%;border-radius:16px;display:block;margin-bottom:12px}


.av{border-radius:50%;object-fit:cover;flex:none;display:inline-flex;align-items:center;justify-content:center;background:var(--blue-l);color:var(--blue);font-weight:700}
.achs{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;margin-bottom:12px}
.ach{flex:0 0 78%;scroll-snap-align:start;background:#fff;border-radius:16px;overflow:hidden}
.ach .ph{height:120px;background:linear-gradient(135deg,#1E4FD8,#6D28D9);display:flex;align-items:center;justify-content:center;color:#fff}
.ach .ph img{width:100%;height:100%;object-fit:cover}
.ach .in{padding:12px}.ach .tg{font-size:11px;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.05em}
.bday{background:linear-gradient(135deg,#FDE68A,#FBCFE8);border-radius:16px;padding:16px;margin-bottom:12px;display:flex;gap:14px;align-items:center}
.star{background:linear-gradient(135deg,#111827,#1E3A8A);color:#fff;border-radius:16px;padding:14px;margin-bottom:12px;display:flex;gap:12px;align-items:center}
.slip{border:1px dashed #9CA3AF;border-radius:12px;padding:12px;margin-bottom:8px;background:#fff}
.photoBtn{position:relative;cursor:pointer}.photoBtn input{position:absolute;inset:0;opacity:0;cursor:pointer}
.photoBtn .cam{position:absolute;right:-2px;bottom:-2px;background:var(--blue);color:#fff;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.photoBtn .cam svg{width:12px;height:12px}


.sec-h{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:18px 4px 8px}
.subj{display:flex;justify-content:space-between;align-items:center;gap:10px}
.subj .tag{background:var(--blue-l);color:var(--blue);border-radius:10px;padding:8px 10px;font-weight:700;font-size:13px;text-align:center;min-width:56px}
.reg{overflow-x:auto;margin:0 -16px;padding:0 16px}
.reg table{border-collapse:separate;border-spacing:0;font-size:12px;min-width:100%}
.reg th,.reg td{padding:6px 4px;text-align:center;border-bottom:1px solid var(--line);white-space:nowrap}
.reg th.nm,.reg td.nm{position:sticky;left:0;background:#fff;text-align:left;z-index:1;min-width:110px;box-shadow:1px 0 0 var(--line)}
.reg .P{color:var(--gr);font-weight:700}.reg .A{color:#fff;background:var(--red);border-radius:6px;font-weight:700}.reg .H{color:var(--muted)}
.reg th.d{cursor:pointer;color:var(--blue)}.reg th.sun{color:#D1D5DB}
.monthbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.monthbar button{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:18px}
.dayrow{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}
