
:root{--blue:#005aa9;--blue2:#003f7d;--bg:#f4f7fb;--ink:#172033;--muted:#667085;--line:#e6eaf0;--white:#fff;--danger:#b42318}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}
.topbar{background:linear-gradient(135deg,var(--blue2),var(--blue));color:white;padding:18px 22px;box-shadow:0 5px 20px #003f7d25}
.topbar-inner{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.brand{font-weight:800;font-size:20px}.nav{display:flex;gap:8px;flex-wrap:wrap}.nav a{color:white;text-decoration:none;padding:8px 11px;border-radius:9px;font-weight:700;font-size:14px}.nav a:hover,.nav a.active{background:#ffffff22}
.wrap{max-width:1120px;margin:auto;padding:28px 18px 50px}.pagehead{display:flex;justify-content:space-between;align-items:end;gap:15px;flex-wrap:wrap;margin-bottom:18px}
h1{margin:0;font-size:30px}h2{margin-top:0}.sub{color:var(--muted);margin:6px 0 0}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:0 8px 25px #1720330a;margin-bottom:18px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.btn,button{display:inline-block;border:0;border-radius:9px;padding:10px 14px;background:var(--blue);color:white;text-decoration:none;font-weight:750;cursor:pointer}.btn.secondary{background:#edf3f8;color:#234}.danger{background:var(--danger)}
input,textarea,select{width:100%;padding:11px 12px;border:1px solid #ccd4df;border-radius:9px;margin:6px 0 13px;background:white}textarea{min-height:105px;resize:vertical}label{font-weight:700;font-size:14px}
.item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.item:first-child{border-top:0}.actions{display:flex;gap:8px;flex-wrap:wrap}
.thumb{width:88px;height:88px;object-fit:cover;border-radius:12px;background:#edf1f5;border:1px solid var(--line)}.rowmain{display:flex;align-items:center;gap:14px;min-width:0}.muted{color:var(--muted);font-size:14px}.notice{background:#eaf7ef;border-radius:10px;padding:11px 13px}.error{background:#fff0f0;color:#9b1c1c}
@media(max-width:680px){.item{align-items:flex-start;flex-direction:column}.actions{width:100%}.thumb{width:72px;height:72px}}

.module{display:block;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.module:hover{transform:translateY(-2px);box-shadow:0 12px 30px #17203316}
.module-icon{font-size:28px;margin-bottom:10px}.module h2{margin-bottom:7px}
.login-card{max-width:430px;margin:6vh auto 0;padding:28px}
form{margin:0}

/* v6.3 homepage */
.hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:30px;padding:44px 46px;margin-bottom:18px;border-radius:24px;background:linear-gradient(125deg,#003f7d 0%,#005aa9 65%,#1676c3 100%);color:#fff;box-shadow:0 18px 45px #003f7d2b}
.hero:after{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-120px;top:-160px;background:#ffffff0d}
.hero-copy{position:relative;z-index:1;max-width:700px}.hero h1{font-size:clamp(34px,5vw,56px);line-height:1.03;letter-spacing:-1.8px;margin:8px 0 15px}.hero p{font-size:17px;line-height:1.55;color:#e8f3ff;max-width:620px;margin:0 0 23px}
.eyebrow{font-size:12px;font-weight:900;letter-spacing:1.8px;color:#bfe0ff}.eyebrow.dark{color:#47708f}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-btn{background:white;color:#004b8f}.hero-btn.ghost{background:#ffffff17;color:white;border:1px solid #ffffff45}
.hero-mark{position:relative;z-index:1;flex:0 0 170px;height:170px;border-radius:50%;border:1px solid #ffffff3d;display:grid;place-items:center;background:#ffffff0c;box-shadow:inset 0 0 0 18px #ffffff08}.hero-mark-inner{font-size:40px;font-weight:950;letter-spacing:-2px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 34px}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px 20px;display:flex;align-items:baseline;gap:9px}.stat-value{font-size:25px;font-weight:900;color:var(--blue)}.stat-label{font-size:13px;color:var(--muted);font-weight:700}
.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.section-title h2{font-size:25px;margin:4px 0 0}
.home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}.home-module{position:relative;display:flex;align-items:center;gap:14px;min-height:112px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:17px;text-decoration:none;color:var(--ink);transition:.16s ease;box-shadow:0 6px 20px #17203308}.home-module:hover{transform:translateY(-3px);border-color:#bdd6ea;box-shadow:0 13px 30px #17203313}.home-icon{width:49px;height:49px;display:grid;place-items:center;border-radius:13px;background:#edf5fb;font-size:23px;flex:0 0 49px}.home-module h3{margin:0 0 5px;font-size:17px}.home-module p{margin:0;color:var(--muted);font-size:13px}.arrow{margin-left:auto;color:#6b8da8;font-size:22px;transition:.16s}.home-module:hover .arrow{transform:translateX(3px);color:var(--blue)}
.home-bottom{display:grid;grid-template-columns:1.55fr .85fr;gap:16px}.task-card{margin:0}.task-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.task-head h2{margin:4px 0 0}.text-link{color:var(--blue);font-weight:800;text-decoration:none;font-size:13px}.task-row{display:flex;gap:12px;align-items:center;padding:13px 0;border-top:1px solid var(--line);font-weight:650}.task-dot{width:10px;height:10px;border:2px solid #6d99bb;border-radius:50%;flex:0 0 10px}.empty-state{display:flex;gap:14px;align-items:center;padding:22px 0 5px}.empty-state>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf7ef;color:#21844a;font-weight:900}.empty-state p{margin:3px 0 0;color:var(--muted);font-size:13px}
.quick-card{border-radius:17px;padding:23px;background:#123c62;color:white;box-shadow:0 8px 25px #17203316}.quick-card h2{margin:5px 0 8px}.quick-card p{color:#d9e8f4;font-size:14px;line-height:1.5}.quick-card a{display:block;color:white;text-decoration:none;font-weight:800;padding:9px 0;border-top:1px solid #ffffff1c}
@media(max-width:900px){.hero-mark{display:none}.home-grid{grid-template-columns:repeat(2,1fr)}.home-bottom{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.hero{padding:30px 24px;border-radius:19px}.hero h1{letter-spacing:-1px}.home-grid{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:13px}.stat-value{font-size:21px}.stat-label{font-size:12px}}
.qr-stats{grid-template-columns:repeat(4,1fr)}
.qr-admin-layout{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}
.qr-help{margin:0 0 18px;padding-left:22px;color:#344054;line-height:1.8}.qr-help li{padding-left:4px}
.check{display:flex;align-items:center;gap:8px;margin:0 0 14px}.check input{width:auto;margin:0}
.qr-row{display:flex;gap:20px;align-items:center}.qr-thumb{width:150px;height:150px;flex:0 0 150px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.qr-thumb img{width:100%;height:100%;object-fit:contain}.qr-main{min-width:0;flex:1}.qr-row-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.qr-row h3{font-size:19px;margin:0}.qr-url{word-break:break-all}.status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;white-space:nowrap}.status.on{background:#eaf7ef;color:#18733d}.status.off{background:#fff0f0;color:#9b1c1c}.qr-metrics{display:flex;gap:22px;flex-wrap:wrap;margin:15px 0;color:var(--muted);font-size:13px}.qr-metrics strong{color:var(--ink);font-size:15px;margin-right:4px}.qr-row .actions{align-items:center}.qr-row .actions form{display:inline}.qr-row .actions button{margin:0}
@media(max-width:900px){.qr-admin-layout{grid-template-columns:1fr}.qr-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.qr-row{align-items:flex-start;flex-direction:column}.qr-thumb{width:130px;height:130px;flex-basis:130px}.qr-row-head{flex-direction:column}.qr-stats{grid-template-columns:1fr 1fr}}
