*{box-sizing:border-box}
:root{--bg:#eef2f7;--card:#fff;--text:#182230;--muted:#697586;--line:#d8dee6;--blue:#1769e0;--blue2:#0d5bd7;--green:#198754;--red:#dc3545;--orange:#ff9800;--shadow:0 5px 22px rgba(24,34,48,.08)}
html,body{margin:0;padding:0}body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
button,input{font:inherit}button{border:0;border-radius:8px;padding:11px 15px;cursor:pointer;font-weight:700;font-size:14px}button:hover{opacity:.94}button:active{transform:translateY(1px)}
.primary{background:linear-gradient(135deg,#1769e0,#246ee8);color:#fff}.secondary{background:#e9ecef;color:#222}.accept{background:#198754!important;color:#fff}.fail{background:#dc3545!important;color:#fff}.complete{background:#1769e0!important;color:#fff}.action{padding:9px 12px;font-size:12px}
input{width:100%;padding:12px;border:1px solid #ccd3dc;border-radius:8px;outline:none;background:#fff}input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.12)}
.topbar{background:#111;color:#fff;padding:14px 18px;box-shadow:0 3px 15px rgba(0,0,0,.12)}.header{max-width:1000px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{font-size:20px;font-weight:800}.brand-sub{font-size:10px;color:#aeb7c5;margin-top:2px;letter-spacing:.2px}.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-actions a{color:#fff;text-decoration:none;font-size:13px}.admin-user{font-size:12px;color:#cfd6df;padding:0 4px}
.container{max-width:1000px;margin:24px auto;padding:0 20px}.card{background:var(--card);border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:var(--shadow)}
.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.eyebrow{font-size:10px;color:var(--blue);font-weight:800;letter-spacing:1px}.section-title h2,.queue-head h2{margin:4px 0 4px;font-size:21px}.subtitle{color:#666;margin:0;font-size:14px;line-height:1.45}.create-badge{min-width:58px;height:58px;border-radius:13px;background:#eef5ff;color:var(--blue);display:flex;align-items:center;justify-content:center;flex-direction:column;font-weight:800;font-size:15px}.create-badge span{font-size:9px;color:#6583ae;letter-spacing:.4px}
.mobile-entry{display:grid;grid-template-columns:34px 1fr 42px;gap:8px;align-items:center;margin-top:9px}.entry-index{height:40px;width:34px;border-radius:8px;background:#f1f4f8;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#667085}.remove{height:40px;padding:0;font-size:20px}
.form-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.form-actions button{flex:0 0 auto}.alert{padding:12px;border-radius:9px;margin-top:12px}.success{background:#eaf8ef;color:#13733c}.error{background:#ffe7ea;color:#a61d28}.url-row{display:flex;align-items:center;gap:8px;margin-top:7px;word-break:break-all}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.stat{background:#fff;border-radius:12px;padding:15px;box-shadow:var(--shadow);border-top:4px solid #ccd3dc}.stat span{display:block;font-size:11px;font-weight:800;letter-spacing:.6px}.stat b{display:block;font-size:29px;margin:2px 0}.stat small{color:#777}.stat-waiting{border-color:var(--orange)}.stat-waiting span{color:#9a5b00}.stat-submitted{border-color:var(--blue)}.stat-submitted span{color:#1559ae}.stat-completed{border-color:var(--green)}.stat-completed span{color:#13733c}
.queue-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.live-status-text{font-size:11px;color:#198754;font-weight:800;background:#eefaf4;padding:7px 10px;border-radius:20px}.live-status-text i{display:inline-block;width:7px;height:7px;background:#198754;border-radius:50%;margin-right:5px}.live-status-text .offline{background:#dc3545}
.request-list{display:flex;flex-direction:column;gap:12px}.request-card{border:1px solid var(--line);border-left:5px solid #ccd3dc;border-radius:10px;padding:15px;background:#fff}.request-card.waiting{border-left-color:var(--orange)}.request-card.submitted{border-left-color:var(--blue)}.request-card.accepted{border-left-color:var(--green)}.request-card.failed{border-left-color:var(--red)}.request-card.completed{border-left-color:var(--green);background:#f2fff7}
.request-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.group-label{font-size:11px;color:#777;font-weight:800;letter-spacing:.6px}.request-title{font-size:18px;font-weight:800;margin-top:2px}.request-time{font-size:12px;color:#777;margin:7px 0 12px}
.status{padding:5px 9px;border-radius:20px;font-size:11px;font-weight:bold;white-space:nowrap}.status.waiting{background:#fff0d5;color:#9a5b00}.status.submitted{background:#e4efff;color:#1559ae}.status.accepted,.status.completed{background:#d9f7e5;color:#13733c}.status.failed{background:#ffe2e6;color:#b21f2b}
.member-list{display:flex;flex-direction:column;gap:8px}.member-card{border:1px solid #e0e5eb;border-radius:9px;padding:11px;background:#fafbfc;display:flex;justify-content:space-between;align-items:center;gap:12px}.member-main{display:flex;gap:10px;align-items:flex-start;min-width:0}.member-no{width:25px;height:25px;border-radius:7px;background:#e9edf2;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#667085;flex:none}.member-info{min-width:0}.member-info b{display:block;font-size:17px}.member-info small{display:block;color:#777;font-size:11px;margin-top:3px}.member-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.pin-box{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #d8dee6;border-radius:7px;padding:6px 9px}.pin-box span{font-size:9px;color:#777;font-weight:800}.pin-box b{font-size:16px;letter-spacing:3px;color:#13733c}.waiting-copy{font-size:12px;color:#8a6b2d}.member-actions{display:flex;gap:5px}
.request-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:11px;border-top:1px solid #edf0f3}.request-actions .open{display:inline-flex;align-items:center;text-decoration:none;background:#1769e0;color:#fff;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:700}.empty{text-align:center;padding:34px;color:#777}
.client{min-height:100vh;background:linear-gradient(180deg,#eef2f7,#f7f9fc);padding:0 10px 24px}.client-shell{max-width:680px;margin:auto}.client-head{margin:0 -10px 12px;background:#111;color:#fff;padding:15px 16px;display:flex;justify-content:space-between;align-items:center}.live-pill{font-size:11px;padding:6px 9px;border-radius:20px;background:#1d2a3b;color:#d8f8e8}.live-pill i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#19a76b;margin-right:5px}
.hero-card{background:#fff;border-radius:14px;padding:18px 19px;margin-bottom:12px;box-shadow:0 3px 15px rgba(0,0,0,.06)}.hero-card h1{font-size:23px;margin:4px 0 6px}.hero-card p{margin:0;color:#666;line-height:1.45;font-size:14px}.live-bar{display:flex;justify-content:space-between;background:#fff;border:1px solid #e4e8ed;border-radius:10px;padding:9px 11px;margin-bottom:10px;color:#555;font-size:11px}.live-bar i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#19a76b;margin-right:5px}
.mobile-grid{display:flex;flex-direction:column;gap:12px}.mobile-card{background:#fff;border:1px solid #d8dee6;border-radius:10px;padding:15px;box-shadow:0 3px 12px rgba(0,0,0,.05)}.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.card-index{font-size:11px;color:#777;font-weight:800}.requested-label{font-size:10px;color:#777;margin-top:11px}.requested-number{font-size:22px;font-weight:800;margin-top:3px}.pin-form label{display:block;font-size:10px;color:#666;font-weight:800;margin:12px 0 6px}.pin-input{max-width:none!important;width:100%;font-size:22px;letter-spacing:6px;padding:13px;text-align:center}.pin-input::placeholder{letter-spacing:6px;color:#c3c8d0}.pin-form .pin-submit{width:100%;margin-top:9px}.submitted-box{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f2fff7;border:1px solid #ccefdc;border-radius:9px;padding:12px;margin-top:12px}.submitted-box span:first-child{display:block;color:#5e7969;font-size:10px;font-weight:bold}.submitted-box strong{display:block;color:#13733c;font-size:20px;letter-spacing:4px;margin-top:3px}.live-dot{color:#13733c;font-size:11px;font-weight:bold}.status-message{margin-top:12px;padding:12px;border-radius:9px;background:#f5f6f8;color:#555;font-size:12px;font-weight:bold}
footer{text-align:center;color:#777;font-size:11px;padding:16px}
@media(max-width:700px){
 .container{padding:0 10px;margin:14px auto}.topbar{padding:13px 12px}.header{align-items:flex-start;flex-direction:column}.top-actions{width:100%}
 .section-title{align-items:flex-start}.create-badge{display:none}.stats{grid-template-columns:1fr 1fr}.stat:last-child{grid-column:1/-1}.card{padding:15px}.queue-head{align-items:flex-start}.mobile-entry{grid-template-columns:30px 1fr 40px}.member-card{align-items:flex-start;flex-direction:column}.member-right{justify-content:flex-start;width:100%}.member-right .status{order:0}.pin-box{order:1}.member-actions{order:2;width:100%}.member-actions button{flex:1}.request-actions button,.request-actions .open{flex:1;justify-content:center;text-align:center}.client{padding:0 10px 20px}.client-head{margin:0 -10px 12px}.hero-card{padding:17px}.hero-card h1{font-size:21px}.mobile-card{padding:14px}.requested-number{font-size:21px}.pin-input{font-size:22px;letter-spacing:6px}.submitted-box{align-items:flex-start;flex-direction:column;gap:4px}
}
.request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.request-grid .request-card{margin:0;min-width:0}
.member-single{min-height:38px;display:flex;align-items:center}
.request-card .request-actions{margin-top:12px}
.request-card .request-actions .action{flex:1;text-align:center;text-decoration:none}
@media(max-width:700px){.request-grid{grid-template-columns:1fr}.request-grid .request-card{width:100%}}

/* Enhanced individual request cards */
.request-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
.mobile-request-card{background:#fff;border:1px solid #dce2e9;border-left:5px solid #c9d0d8;border-radius:12px;padding:15px;box-shadow:0 3px 14px rgba(16,24,40,.06);min-width:0}
.mobile-request-card.waiting{border-left-color:#ff9800}.mobile-request-card.submitted{border-left-color:#1769e0}.mobile-request-card.accepted,.mobile-request-card.completed{border-left-color:#198754;background:#fbfffd}.mobile-request-card.failed{border-left-color:#dc3545;background:#fffafb}
.mobile-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.group-chip,.member-chip{display:inline-block;padding:5px 8px;border-radius:7px;background:#f0f2f5;color:#667085;font-size:10px;font-weight:800;margin-right:4px}.member-chip{background:#e8f1ff;color:#1559ae}
.masked-mobile{font-size:22px;font-weight:850;letter-spacing:.4px;margin-top:12px}.safe-pin-note{margin-top:11px;padding:9px 10px;background:#f5f7fa;border-radius:8px;color:#667085;font-size:11px;font-weight:700}.waiting-copy{margin-top:11px;color:#9a6a17;font-size:12px}
.card-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:13px;padding-top:11px;border-top:1px solid #edf0f3}.card-actions .action{font-size:11px;padding:8px 10px}.icon-action{width:35px;height:35px;padding:0;display:inline-grid;place-items:center;border-radius:8px}.icon-action.delete{background:#ffe8eb;color:#b4232a}
.mobile-card-head .status{font-size:10px}.request-time{font-size:11px;color:#777;margin-top:5px}
@media(max-width:700px){.request-list{grid-template-columns:1fr!important}.mobile-request-card{padding:14px}.masked-mobile{font-size:21px}.card-actions{align-items:stretch}.card-actions .action{flex:1;text-align:center}.card-actions .icon-action{flex:0 0 38px}}

/* Latest-trend status cards */
.mobile-request-card{position:relative;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease;border-width:1px}
.mobile-request-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(16,24,40,.10)}
.mobile-request-card.accepted,.mobile-request-card.completed{background:linear-gradient(135deg,#f0fff7 0%,#ffffff 72%);border-color:#bde9cf;border-left-color:#16a36a}
.mobile-request-card.accepted:before,.mobile-request-card.completed:before{content:"";position:absolute;right:-38px;top:-42px;width:110px;height:110px;border-radius:50%;background:rgba(22,163,106,.08)}
.mobile-request-card.failed{background:linear-gradient(135deg,#fff4f5,#fff)}
.mobile-request-card.submitted{background:linear-gradient(135deg,#f4f8ff,#fff)}
.mobile-request-card.waiting{background:linear-gradient(135deg,#fffaf0,#fff)}
.mobile-request-card .status{font-weight:900;letter-spacing:.15px}
.mobile-request-card.accepted .status,.mobile-request-card.completed .status{box-shadow:0 4px 12px rgba(22,163,106,.12)}
.note-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1769e0;margin-right:5px}
.icon-action{width:36px!important;height:36px!important;min-width:36px;padding:0!important;display:inline-grid!important;place-items:center;border-radius:9px!important;font-size:17px!important;border:1px solid transparent}
.icon-action.retry{background:#eef5ff;color:#1769e0;border-color:#d5e4ff}
.icon-action.edit{background:#f1efff;color:#6557d9;border-color:#e1ddff}
.icon-action.delete{background:#fff0f2;color:#c92a3b;border-color:#ffd6dc}
.card-actions .accept{box-shadow:0 5px 13px rgba(25,135,84,.18)}
.card-actions{align-items:center}

/* Client premium green completion card */
.mobile-card.accepted,.mobile-card.completed{
 background:linear-gradient(145deg,#effdf5 0%,#ffffff 58%,#f4fff8 100%);
 border:1.5px solid #9fe0bb;
 border-left:6px solid #16a36a;
 box-shadow:0 10px 30px rgba(22,163,106,.12);
}
.mobile-card.accepted .card-top,.mobile-card.completed .card-top{margin-bottom:2px}
.mobile-card.accepted .live-status,.mobile-card.completed .live-status{
 background:linear-gradient(135deg,#d8f8e6,#c9f1dc);color:#087443;border:1px solid #9fe0bb;
 box-shadow:0 4px 12px rgba(22,163,106,.10);font-weight:900
}
.status-message.accepted-message,.status-message.completed-message{
 display:flex;align-items:center;gap:11px;
 margin-top:14px;padding:13px 14px;border-radius:12px;
 background:linear-gradient(135deg,#e6fbef,#d9f7e6);
 border:1px solid #a7e5bf;color:#087443;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.8)
}
.status-message .success-icon{
 width:31px;height:31px;border-radius:50%;display:grid;place-items:center;
 flex:none;background:#16a36a;color:#fff;font-weight:900;font-size:17px;
 box-shadow:0 5px 12px rgba(22,163,106,.2)
}
.status-message.accepted-message strong,.status-message.completed-message strong{display:block;font-size:12px;letter-spacing:.7px;font-weight:950}
.status-message.accepted-message span,.status-message.completed-message span{display:block;margin-top:2px;color:#4c7c63;font-size:11px;font-weight:700}
.mobile-card.failed{background:linear-gradient(145deg,#fff3f4,#fff);border:1.5px solid #f2b7bf;border-left:6px solid #dc3545;box-shadow:0 10px 26px rgba(220,53,69,.08)}
.mobile-card.waiting{background:linear-gradient(145deg,#fffaf0,#fff);border-left:6px solid #ff9800}
.mobile-card.submitted{background:linear-gradient(145deg,#f4f8ff,#fff);border-left:6px solid #1769e0}
@media(max-width:700px){
 .mobile-request-card{border-radius:14px}
 .mobile-request-card .card-actions{display:flex;flex-wrap:nowrap}
 .mobile-request-card .card-actions .action{flex:1;min-width:0}
 .mobile-request-card .icon-action{flex:0 0 36px!important}
 .mobile-card.accepted,.mobile-card.completed{border-radius:15px;border-left-width:6px}
 .status-message.accepted-message,.status-message.completed-message{padding:14px}
}

/* Final card action bar */
.mobile-request-card.accepted{
 background:linear-gradient(145deg,#ecfff5 0%,#ffffff 62%,#f3fff8 100%)!important;
 border-color:#9fe0bb!important;border-left-color:#16a36a!important;
 box-shadow:0 10px 30px rgba(22,163,106,.13)!important;
}
.icon-action.copy{background:#eef5ff;color:#1769e0;border-color:#d5e4ff}
.icon-action.whatsapp{background:#eafaf2;color:#16834e;border-color:#c7ecd9}
.mobile-request-card.accepted .group-chip,
.mobile-request-card.completed .group-chip{background:#dff8ea;color:#13733c}
@media(max-width:700px){
 .mobile-request-card .card-actions{display:grid;grid-template-columns:1fr 1fr 38px 38px 38px 38px;gap:6px}
 .mobile-request-card .card-actions .accept{grid-column:1/-1}
 .mobile-request-card .card-actions .action{min-width:0}
}

.notify-toast{position:fixed;right:18px;bottom:18px;z-index:10000;max-width:360px;background:#101828;color:#fff;border:1px solid #344054;border-radius:12px;padding:13px 16px;font-size:13px;font-weight:700;box-shadow:0 12px 35px rgba(16,24,40,.25);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}
.notify-toast.show{opacity:1;transform:translateY(0)}
#notifyBtn:disabled{opacity:1;background:#16834e;color:#fff}

.error-box{background:#fff3f4!important;color:#a61d28!important;border:1px solid #f2b7bf;border-radius:10px}

#groups{min-height:80px}
.mobile-request-card{animation:none!important;transition:box-shadow .16s ease,transform .16s ease}
.mobile-request-card:hover{transform:translateY(-1px)}
.error-box{line-height:1.55}
.notify-toast{position:fixed;right:18px;bottom:18px;z-index:10000;max-width:360px;background:#101828;color:#fff;border:1px solid #344054;border-radius:12px;padding:13px 16px;font-size:13px;font-weight:700;box-shadow:0 12px 35px rgba(16,24,40,.25);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}
.notify-toast.show{opacity:1;transform:translateY(0)}

.reference-box{margin-top:11px;padding:11px 12px;border-radius:10px;background:linear-gradient(135deg,#eef7ff,#f7fbff);border:1px solid #cfe1f8;display:flex;align-items:center;justify-content:space-between;gap:10px}
.reference-box span{font-size:10px;font-weight:900;color:#42617e;letter-spacing:.35px}
.reference-box b{font-size:20px;letter-spacing:3px;color:#1769e0;font-weight:900}
.mobile-request-card.accepted .reference-box,.mobile-request-card.completed .reference-box{background:linear-gradient(135deg,#e8fbf0,#f7fffa);border-color:#b9e6ca}
.mobile-request-card.accepted .reference-box b,.mobile-request-card.completed .reference-box b{color:#16834e}
@media(max-width:700px){.reference-box{align-items:flex-start;flex-direction:column;gap:5px}.reference-box b{font-size:19px}}

.existing-request-banner{
 display:flex;align-items:center;gap:11px;margin-bottom:12px;padding:13px 14px;
 border-radius:12px;background:linear-gradient(135deg,#eaf8ef,#f8fffb);
 border:1px solid #b9e6ca;color:#13733c;box-shadow:0 5px 16px rgba(22,163,106,.08)
}
.existing-request-banner .existing-icon{
 width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
 background:#16a36a;color:#fff;font-weight:900;flex:none
}
.existing-request-banner strong{display:block;font-size:12px;font-weight:900;letter-spacing:.3px}
.existing-request-banner small{display:block;margin-top:2px;color:#537260;font-size:10px}

.reference-box{margin-top:11px;padding:12px 13px;border-radius:11px;background:linear-gradient(135deg,#eef7ff,#f7fbff);border:1px solid #cfe1f8;display:flex;align-items:center;justify-content:space-between;gap:12px}
.reference-box span{font-size:10px;font-weight:900;color:#42617e;letter-spacing:.35px}
.reference-box b{font-size:20px;letter-spacing:3px;color:#1769e0;font-weight:900}
.mobile-request-card.accepted .reference-box,.mobile-request-card.completed .reference-box{background:linear-gradient(135deg,#e8fbf0,#f7fffa);border-color:#b9e6ca}
.mobile-request-card.accepted .reference-box b,.mobile-request-card.completed .reference-box b{color:#16834e}
@media(max-width:700px){.reference-box{align-items:flex-start;flex-direction:column;gap:5px}.reference-box b{font-size:19px}}

#groups{min-height:120px}.error-box{padding:16px!important;line-height:1.6}
