:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#23252c;background:#f7f8fa;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.defs{display:none}.hidden{display:none!important}.app-shell{min-height:100vh;display:flex}.sidebar{width:252px;flex-shrink:0;min-height:100vh;background:#17191e;color:#eee;display:flex;flex-direction:column;padding:29px 17px 24px;position:sticky;top:0;height:100vh;border-right:1px solid #303034}.sidebar-head{display:flex;gap:10px;align-items:center;padding:0 5px;margin-bottom:49px}.side-logo{height:47px;width:47px;object-fit:cover;border-radius:11px;border:1px solid #756030}.sidebar-head strong{display:block;letter-spacing:.065em;color:#f4f1e8;font-size:17px;font-weight:850}.sidebar-head span{display:block;color:#aaa39a;font-size:9px;letter-spacing:.14em;margin-top:5px;font-weight:650}.nav-label{font-size:10px;color:#747780;letter-spacing:.17em;padding:0 14px;margin-bottom:14px;font-weight:750}.nav{display:flex;flex-direction:column;gap:5px}.nav-item{border:0;background:transparent;color:#a2a5ad;text-align:left;padding:13px 14px;display:flex;align-items:center;gap:13px;width:100%;border-radius:11px;font-size:13px;font-weight:650;transition:background .15s,color .15s}.nav-item svg{width:18px;height:18px}.nav-item:hover{background:#262930;color:#fff}.nav-item.active{background:linear-gradient(100deg,#c99a43,#e0b764);color:#232017;box-shadow:0 7px 20px #0002}.nav-count{margin-left:auto;color:inherit;opacity:.85;font-size:12px}.sidebar-foot{margin-top:auto;text-align:center;border:1px solid #37312a;border-radius:15px;background:linear-gradient(135deg,#27241e,#1b1d21);padding:23px 12px 20px}.shield-mark{font-size:29px;font-weight:950;letter-spacing:-.06em;color:#d6ad62}.shield-mark span{color:#fff;margin-left:4px;font-size:20px}.sidebar-foot p{font-size:12px;font-weight:800;line-height:1.5;letter-spacing:.11em;color:#d6d0c6}.sidebar-foot small{font-size:9px;letter-spacing:.06em;color:#8e877b}.main-content{min-width:0;flex:1}.topbar{height:72px;border-bottom:1px solid #e9ebef;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(18px,3vw,44px);gap:12px}.breadcrumb{font-size:12px;display:flex;gap:13px;align-items:center;color:#898f9a;letter-spacing:.03em}.breadcrumb strong{color:#33363e}.separator{color:#d0d3d8}.topbar-right{display:flex;align-items:center;gap:12px}.date-pill,.local-pill{font-size:11px;color:#757b85;padding:9px 12px;background:#f4f5f7;border-radius:8px;font-weight:650;white-space:nowrap}.local-pill{color:#488765;background:#edf8ef;display:flex;align-items:center;gap:6px}.local-pill span{width:7px;height:7px;border-radius:100%;background:#36ad6a}.page-container{max-width:1570px;margin:0 auto;padding:31px clamp(16px,3vw,44px) 18px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.16em;color:#b28a3e}.page-heading h1{font-size:clamp(26px,3vw,35px);letter-spacing:-.05em;margin:7px 0 6px;font-weight:830;line-height:1.15}.gold-dot{color:#caa351}.page-heading p{margin:0;color:#9296a1;font-size:13px}.btn{border:1px solid transparent;border-radius:10px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-weight:760;font-size:12px;transition:transform .14s,filter .14s,background .14s}.btn:hover{filter:brightness(.97);transform:translateY(-1px)}.btn svg{height:16px;width:16px}.btn-gold{background:#d6a958;color:#1c1b19;box-shadow:0 6px 15px #c7984526}.btn-outline{background:#fff;border-color:#e5e7eb;color:#4c5059}.btn-danger{color:#b83b3b;border-color:#f2cece;background:#fff8f8}.hero{position:relative;overflow:hidden;background:#1a1c1f;border-radius:19px;padding:36px 39px;min-height:255px;color:#fff;display:flex;align-items:center;justify-content:space-between;isolation:isolate;margin-bottom:20px}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,#1c1e22 0%,#202124 57%,#4c3c21 100%);z-index:-2}.hero-glow{position:absolute;width:390px;height:390px;border-radius:50%;background:#c69f4a44;filter:blur(90px);right:-80px;top:-80px;z-index:-1}.hero-copy{position:relative;z-index:1}.hero-label{display:inline-block;color:#e5c585;border:1px solid #7e673a;background:#4b3e262f;padding:8px 11px;border-radius:20px;font-size:9px;font-weight:800;letter-spacing:.18em}.hero h2{font-size:clamp(24px,2.8vw,36px);line-height:1.15;margin:15px 0 9px;letter-spacing:-.045em}.hero h2 em{color:#f0c36c;font-style:normal}.hero p{font-size:12px;color:#aeb0b4;margin:0 0 18px}.hero-action{border:0;color:#e9d2a2;background:none;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;padding:0}.hero-action svg{height:15px}.hero-logo{position:absolute;right:11%;height:220px;width:220px;object-fit:cover;border-radius:50%;box-shadow:0 10px 45px #0008;opacity:.94;border:3px solid #aa824a90;z-index:0}.alert-strip{display:flex;align-items:center;gap:10px;background:#fff9ec;border:1px solid #f4dfb8;color:#8d6021;border-radius:11px;padding:13px 16px;margin-bottom:18px;font-size:12px}.alert-strip>svg{color:#b9812e;width:18px}.alert-strip div{flex:1}.alert-strip button{color:#996b25;border:0;background:none;font-weight:800;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid #e9ebef;border-radius:13px;padding:17px 16px;min-width:0;box-shadow:0 5px 18px #2c3d5506}.stat-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.stat-top>span:first-child{font-size:11px;color:#838993;font-weight:725;line-height:1.35}.stat-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.stat-icon svg{width:16px;height:16px}.violet{color:#875ecc;background:#f4effd}.green{color:#33a16d;background:#e8f7ee}.red{color:#d55a61;background:#fff0f1}.amber{color:#c99227;background:#fff7e5}.blue{color:#4586c5;background:#ebf4fc}.orange{color:#cf8143;background:#fef1e4}.stat-card strong{display:block;font-size:clamp(20px,1.65vw,27px);margin:13px 0 4px;letter-spacing:-.045em;overflow-wrap:anywhere}.stat-card small{font-size:10px;color:#a0a4ae}.dashboard-panels{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);gap:16px;margin-bottom:18px}.panel{background:#fff;border:1px solid #e9ebef;box-shadow:0 5px 20px #27375206;border-radius:15px;padding:23px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:19px}.panel-heading h3{font-size:15px;letter-spacing:-.015em;margin:0 0 5px}.panel-heading p{margin:0;font-size:11px;color:#a0a4ae}.small-tag{font-size:10px;background:#faf7f0;color:#a47b35;padding:7px 10px;border-radius:7px;font-weight:750}.revenue-bars{height:253px;display:flex;gap:16px;align-items:flex-end;padding:20px 4px 28px;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#f0f1f3 calc(25% - 1px),#f0f1f3 25%);background-size:100% calc(100% - 28px);background-repeat:no-repeat}.bar-slot{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;position:relative}.bar-amount{font-size:10px;color:#a47b35;font-weight:800;white-space:nowrap}.bar-shape{width:min(65%,50px);min-height:3px;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#e7bf6b,#b88437);transition:height .2s}.bar-shape.emptybar{background:#f0ece4}.bar-label{position:absolute;bottom:-23px;font-size:11px;color:#8c9099}.payment-modes{display:grid;gap:15px}.mode-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:7px;color:#6f7580}.mode-heading strong{color:#36383f}.mode-rail{height:6px;border-radius:50px;background:#f1f2f4;overflow:hidden}.mode-rail span{display:block;height:100%;border-radius:50px}.section-divider{height:1px;background:#f0f0f0;margin:24px 0 21px}.upcoming-list{display:grid;gap:10px}.upcoming-entry{display:flex;gap:11px;align-items:center;justify-content:space-between;padding:4px 0;font-size:12px}.upcoming-entry strong{font-size:12px}.upcoming-entry small{display:block;color:#9da3ab;margin-top:4px}.avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#ede8d9;color:#a27c38;font-size:11px;font-weight:850;overflow:hidden;border:1px solid #e6dfcd}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.lg{width:72px;height:72px;font-size:24px}.avatar.sm{width:31px;height:31px;font-size:10px}.avatar.xl{width:96px;height:96px;font-size:26px;border:3px solid #ead6b5}.member-ident{display:flex;align-items:center;gap:10px;min-width:0}.member-ident strong{display:block;color:#34363d;font-size:12px;max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-ident small{font-size:10px;color:#9ba0a9;display:block;margin-top:4px}.table-scroll{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;min-width:770px;text-align:left}.data-table th{text-transform:uppercase;color:#a0a5ae;font-size:10px;letter-spacing:.08em;border-bottom:1px solid #eef0f1;font-weight:800;padding:13px 11px}.data-table td{border-bottom:1px solid #f0f1f3;padding:13px 11px;font-size:12px;color:#6d717b;white-space:nowrap}.data-table tr:last-child td{border-bottom:0}.data-table td strong{color:#31353d}.badge-status{display:inline-flex;padding:5px 9px;border-radius:50px;font-size:10px;font-weight:850}.badge-active{background:#eaf7ef;color:#278a55}.badge-soon{background:#fff6e6;color:#ad751a}.badge-expired{background:#fff0f0;color:#c04b50}.badge-due{background:#fff4e7;color:#ac6d1e}.badge-upcoming{background:#eaf1ff;color:#4575a7}.table-actions{display:flex;gap:7px;align-items:center}.table-link{border:1px solid #e8e9ed;border-radius:7px;background:#fff;padding:6px 9px;font-weight:750;font-size:10px;color:#695b41}.table-link:hover{background:#fff7e9}.table-link.danger-link{color:#ac4d51}.link-button{border:0;background:transparent;color:#b1843b;font-size:12px;font-weight:800;display:flex;gap:5px;align-items:center}.link-button svg{width:14px}.filter-row{display:flex;align-items:center;gap:11px;justify-content:flex-end;margin-bottom:15px}.search-field{display:flex;align-items:center;gap:9px;border:1px solid #e3e6eb;background:#fafbfc;border-radius:9px;padding:0 12px;min-width:180px;max-width:380px;flex:1;margin-right:auto}.search-field svg{color:#a6acb6;height:16px;width:16px}.search-field input{background:transparent;border:0;padding:12px 0;min-width:0;outline:0;width:100%;color:#343942;font-size:12px}.filter-row select,.field input,.field select,.field textarea{border:1px solid #e3e6ea;border-radius:9px;background:#fff;padding:11px 12px;color:#333942;min-width:0;outline:none}.filter-row select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#c99f56;box-shadow:0 0 0 3px #e2bd7b30}.filter-row select{font-size:12px;max-width:200px}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:18px}.mini-stat{background:#fff;border:1px solid #e9ebef;border-radius:13px;padding:21px}.mini-stat span{display:block;color:#9498a2;font-size:11px;font-weight:750}.mini-stat strong{display:block;margin-top:8px;font-size:24px;letter-spacing:-.04em}.empty-state{text-align:center;padding:44px 24px;color:#9196a0;font-size:12px}.empty-state strong{display:block;font-size:15px;color:#353941;margin-bottom:8px}.empty-state svg{height:26px;width:26px;color:#c99b4e;margin-bottom:10px}.report-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.8fr);gap:17px}.health-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #eff0f1;font-size:12px}.health-row strong{font-size:14px}.settings-panel{margin-bottom:18px}.settings-heading{display:flex;align-items:flex-start;gap:15px}.settings-heading h3{font-size:16px;margin:1px 0 7px}.settings-heading p{margin:0;color:#9196a0;font-size:12px;line-height:1.65;max-width:700px}.settings-icon{height:43px;width:43px;flex-shrink:0;background:#fff5e4;color:#b8873a;border-radius:12px;display:grid;place-items:center}.settings-icon.outline{background:#eef1f5;color:#6a7483}.settings-actions{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 10px}.backup-note{font-size:11px;color:#999faa}.upload-button input{display:none}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:23px}.info-grid>div{background:#fafbfc;border:1px solid #f0f1f3;border-radius:10px;padding:12px 14px}.info-grid span{display:block;color:#999faa;font-size:11px;margin-bottom:6px}.info-grid strong{font-size:12px}.warning{background:#fff9ea;color:#835e26;border:1px solid #eeddb7;padding:15px;border-radius:10px;font-size:12px;line-height:1.6;margin-top:20px}.danger-row{margin-top:22px;border-top:1px solid #eee;padding-top:20px}.footer{display:flex;justify-content:space-between;color:#a3a7ae;padding:28px 0 13px;font-size:10px;font-weight:650;letter-spacing:.045em;gap:10px}.modal-backdrop{position:fixed;inset:0;z-index:50;background:#0c1016a8;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.modal{width:min(620px,100%);max-height:calc(100vh - 40px);background:#fff;border-radius:19px;box-shadow:0 30px 80px #0006;overflow:auto}.modal-header{padding:23px 26px 20px;border-bottom:1px solid #edf0f3;display:flex;justify-content:space-between;gap:10px}.modal-header h2{font-size:21px;margin:6px 0 4px;letter-spacing:-.035em}.modal-header p{font-size:12px;color:#9fa4ad;margin:0}.icon-button{height:32px;width:32px;background:#f8f9fa;border:1px solid #e9ebed;border-radius:8px;color:#7c828a;display:grid;place-items:center}.icon-button svg{width:16px;height:16px}.modal-body{padding:22px 26px 26px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#43464e;font-weight:750}.field input,.field select,.field textarea{width:100%;font-size:13px;font-weight:450}.field textarea{min-height:69px;resize:vertical}.field.full{grid-column:span 2}.field small{color:#a0a5ad;font-weight:450}.photo-upload{display:flex;align-items:center;gap:17px;background:#f9fafb;border:1px dashed #d9dce2;border-radius:12px;padding:15px;margin-bottom:20px}.photo-upload>div:nth-child(2){flex:1;min-width:0}.photo-upload strong{display:block;font-size:12px}.photo-upload p{font-size:11px;color:#9da2ab;margin:5px 0 11px}.photo-upload .btn{padding:8px 12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:19px;border-top:1px solid #eff0f2}.helper-note{font-size:11px;color:#969ca6;line-height:1.5;margin:12px 0 0}.expiry-preview{padding:11px 13px;background:#f9f7f1;border-radius:9px;color:#95723c;font-size:11px;margin-top:16px}.detail-hero{display:flex;align-items:center;gap:18px;padding:10px 0 24px;border-bottom:1px solid #eef0f3}.detail-hero h3{font-size:20px;margin:0 0 7px}.detail-hero p{margin:0;color:#959ca6;font-size:12px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-top:19px}.detail-grid div{background:#f8f9fb;padding:12px;border-radius:9px}.detail-grid span{display:block;color:#a0a5af;font-size:10px;margin-bottom:6px}.detail-grid strong{font-size:13px;overflow-wrap:anywhere}.detail-section{margin-top:20px}.detail-section h4{font-size:12px;margin:0 0 10px}.detail-payment{display:flex;justify-content:space-between;border-bottom:1px solid #edf0f2;padding:9px 0;font-size:11px;gap:12px}.detail-payment strong{white-space:nowrap}.toast-container{position:fixed;right:20px;bottom:20px;z-index:80;display:grid;gap:10px;max-width:min(380px,calc(100vw - 40px))}.toast{background:#24282b;color:#fff;box-shadow:0 12px 40px #0003;padding:12px 16px;border-radius:10px;font-size:12px;line-height:1.5;border-left:3px solid #d7aa61}.toast.error{border-color:#e46e70}.revenue-tiny{font-weight:800;color:#ad853e}.pill-mode{background:#f4f5f6;padding:6px 9px;border-radius:6px;font-size:10px;color:#65707c;font-weight:750}.receipt-btn{display:inline-flex;gap:5px;align-items:center}.receipt-btn svg{height:12px;width:12px}
@media(max-width:1450px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-logo{right:7%}}@media(max-width:1050px){.sidebar{width:205px}.sidebar-head strong{font-size:14px}.side-logo{width:40px;height:40px}.dashboard-panels,.report-grid{grid-template-columns:1fr}.hero-logo{right:5%;width:190px;height:190px}.page-container{padding:22px}}@media(max-width:700px){.app-shell{display:block}.sidebar{position:static;width:100%;min-height:0;height:auto;padding:12px 12px 9px}.sidebar-head{margin-bottom:10px}.sidebar-head strong{font-size:15px}.sidebar-head span{font-size:8px}.side-logo{height:38px;width:38px}.nav-label,.sidebar-foot{display:none}.nav{display:flex;flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:3px}.nav-item{width:auto;white-space:nowrap;padding:9px 10px;font-size:11px;gap:5px;flex-shrink:0}.nav-item svg{width:15px;height:15px}.nav-count{display:none}.topbar{height:48px;padding:0 15px}.date-pill{display:none}.page-container{padding:19px 13px}.page-heading{align-items:flex-start}.page-heading h1{font-size:26px}.page-heading p{font-size:11px;max-width:300px}.page-heading .btn{font-size:10px;padding:10px}.page-heading .btn svg{height:14px;width:14px}.hero{min-height:225px;padding:23px}.hero h2{font-size:24px}.hero-logo{right:-16px;top:45px;width:165px;height:165px;opacity:.35}.hero p{max-width:225px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:14px}.stat-top>span:first-child{font-size:10px}.stat-card strong{font-size:24px}.stat-icon{height:27px;width:27px}.dashboard-panels{gap:12px}.panel{padding:16px}.filter-row{flex-wrap:wrap;justify-content:stretch}.search-field{max-width:none;flex-basis:100%;order:0}.filter-row select{flex:1;max-width:none}.mini-stats{grid-template-columns:1fr;gap:8px}.mini-stat{padding:14px}.info-grid{grid-template-columns:1fr}.footer{flex-direction:column}.modal-backdrop{padding:10px}.modal{max-height:calc(100vh - 20px)}.modal-header{padding:18px}.modal-body{padding:18px}.form-grid{gap:12px}.photo-upload{padding:12px}.alert-strip{flex-wrap:wrap}.detail-grid{gap:7px}.detail-grid div{padding:10px}.settings-actions .btn{white-space:normal}}@media(max-width:380px){.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.page-heading .btn{font-size:0;gap:0}.page-heading .btn svg{width:20px;height:20px}.modal-actions{flex-wrap:wrap}}

/* JAWAN GYM Management Pro v2: bigger member photos + action layouts */
.avatar{width:54px;height:54px;font-size:17px;border-width:2px;box-shadow:0 0 0 2px #f4e9d3;}
.avatar.sm{width:44px;height:44px;font-size:13px;}
.avatar.lg{width:126px;height:126px;font-size:31px;border:3px solid #d5ae68;box-shadow:0 0 0 5px #f8efe0;}
.avatar.xl{width:158px;height:158px;font-size:43px;border:4px solid #d5ae68;box-shadow:0 0 0 6px #f8efe0;}
.photo-upload{gap:25px;padding:22px;background:linear-gradient(110deg,#fffdfa,#f6f0e7);border:1.5px dashed #d8ba8a;}
.photo-upload strong{font-size:16px;color:#292d35}.photo-upload p{font-size:12px;line-height:1.65;}
.member-ident{gap:14px;}.member-ident strong{font-size:13px;}
.detail-hero{gap:25px;}.detail-hero h3{font-size:25px;}
.wa-action{color:#167a46!important;border-color:#b8dfc7!important;background:#f0fbf3!important;}
.btn-green{background:#147c50;color:#fff;border:1px solid #147c50;}.btn-green:hover{background:#116744;}
.attendance-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.8fr);gap:18px;}
.stack-form{display:grid;gap:14px}.stack-form .btn{justify-content:center;width:100%;}
.attendance-metric{margin-top:22px;padding:15px;border-radius:12px;background:#f9f7f2;display:flex;align-items:center;justify-content:space-between;}
.attendance-metric span{font-size:12px;color:#787e86;font-weight:650}.attendance-metric strong{font-size:28px;color:#b78a3e;}
.attendance-table{min-width:400px;}
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.plan-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;}.plan-card h3{font-size:19px;margin:4px 0;}.plan-card p{font-size:12px;color:#8a8f99;line-height:1.6;flex:1;}.plan-card .btn{width:100%;justify-content:center;}
.plan-card-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;}.plan-price{font-size:29px;font-weight:850;letter-spacing:-.04em;color:#b1843b;}
.reminder-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px;}.reminder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}.reminder-member{padding:18px;border:1px solid #e6e9ef;border-radius:13px;background:#fdfdfd;min-width:0;}
.reminder-member-top{display:flex;align-items:center;gap:19px;}.reminder-member-top>div{min-width:0;}.reminder-member-top strong{display:block;font-size:17px;overflow-wrap:anywhere;}.reminder-member-top small{display:block;font-size:12px;color:#8a8e99;margin:6px 0 10px;}.reminder-meta{display:flex;flex-direction:column;gap:8px;border-top:1px solid #edf0f3;margin-top:18px;padding-top:14px;color:#777e86;font-size:12px;}.reminder-meta b{color:#3d4148;}
.reminder-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;}.reminder-actions .btn{font-size:12px;padding:10px 12px;}.reminder-log{display:block;margin-top:12px;color:#a0a6af;font-size:10px;}
.info-panel{margin-top:15px}.info-panel h3{font-size:15px;margin:0 0 9px}.info-panel p{font-size:12px;line-height:1.7;color:#838a94;max-width:900px;margin:0 0 10px}
@media(max-width:1100px){.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-layout{grid-template-columns:1fr}.reminder-grid{grid-template-columns:1fr}}
@media(max-width:700px){.avatar{width:48px;height:48px}.avatar.sm{width:38px;height:38px}.avatar.lg{width:108px;height:108px}.avatar.xl{width:130px;height:130px}.photo-upload{padding:14px;gap:17px}.reminder-stats{gap:8px}.reminder-stats .mini-stat{padding:12px}.reminder-stats .mini-stat span{font-size:10px}.reminder-stats .mini-stat strong{font-size:21px}.reminder-member{padding:14px}.reminder-member-top .avatar.lg{width:84px;height:84px;}.plan-grid{grid-template-columns:1fr}}
@media(max-width:400px){.photo-upload{flex-direction:column;align-items:flex-start}.detail-hero{gap:14px}.detail-hero .avatar.xl{width:112px;height:112px}.reminder-stats{grid-template-columns:1fr}}

/* v2.1: browser navigation, text-selection and reminder link reliability */
html,body{overscroll-behavior-x:none}
.page input,.page textarea,.modal input,.modal textarea,.reminder-member,.detail-grid,.upcoming-entry{-webkit-user-select:text;user-select:text}
a.btn,a.table-link{cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
a.table-link{display:inline;text-align:left}
.wa-needs-phone{color:#a86e39!important;border-color:#edd7ad!important;background:#fff8ec!important;}
.btn-copy{font-size:12px;padding:10px 12px}
.reminder-actions a.btn{min-height:40px}
@media(max-width:700px){
  /* iPhone Safari will otherwise zoom the page when a small text field gets focus. */
  input,textarea,select{font-size:16px!important}
  .search-field input{font-size:16px!important}
}


/* ─────────────── JAWAN GYM PRO V3 — DARK THEME / READABLE TEXT ─────────────── */
:root {color-scheme:dark; color:#ecf1f9; background:#0a101a; font-size:15px;}
body{background:#0a101a;color:#ecf1f9;}
::selection{background:#dcb466;color:#10141d;}
.sidebar{background:#0b121e;border-right-color:#263449;}
.nav-label{font-size:11px;color:#8c9bad}
.nav-item{font-size:14px;color:#b5c1d2;}
.nav-item:hover{background:#1e2b3c;}
.sidebar-head span,.sidebar-foot small{color:#b9bdc6;}
.sidebar-foot{background:linear-gradient(135deg,#202635,#151a25);border-color:#3a4050}
.topbar{background:#111a27;border-bottom:1px solid #293449;}
.breadcrumb{font-size:13px;color:#98a7bb}
.breadcrumb strong{color:#eef3fc}
.separator{color:#6c7f98}
.date-pill,.local-pill{background:#202e40;color:#c6d3e3;font-size:12px}
.local-pill{background:#14362c;color:#72ddb1}
.page-heading h1{color:#f4f7fc}
.page-heading p{color:#b0bfd0;font-size:14px}
.eyebrow{color:#e9ba6d;font-size:11px}
.btn{font-size:13px;}
.btn-gold{background:#e2b764;color:#171b21;}
.btn-outline{background:#1d2a3b;color:#ebf2ff;border-color:#34445d}
.btn-outline:hover{background:#293b52}
.btn-danger{background:#3a1e2a;color:#ffafbb;border-color:#744357}
.hero{background:#111b27;border:1px solid #344055}
.hero:before{background:linear-gradient(100deg,#131b29 0%,#1a2230 57%,#3e3124 100%)}
.hero p{font-size:14px;color:#d6d8df}
.hero-label{font-size:11px}
.hero-action{font-size:13px}
.alert-strip{background:#342a1b;border:1px solid #79582f;color:#f1d09d;font-size:13px}
.alert-strip button,.alert-strip>svg{color:#ffd38d}
.stat-card,.panel,.mini-stat{background:#151e2d;border:1px solid #29364b;box-shadow:0 5px 20px #0002;color:#edf2fa}
.stat-top>span:first-child{font-size:12px;color:#b8c5d5}
.stat-card small{font-size:11px;color:#aab9cb}
.panel-heading h3{font-size:16px;color:#f0f4fc}
.panel-heading p{font-size:12px;color:#b2bfcd}
.small-tag{background:#352a1a;color:#f5c77e;font-size:11px}
.revenue-bars{background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#2a3548 calc(25% - 1px),#2a3548 25%);background-size:100% calc(100% - 28px);background-repeat:no-repeat}
.bar-shape.emptybar{background:#2d3441}
.bar-amount{color:#f0c681;font-size:11px}
.bar-label{color:#a9bacf;font-size:12px}
.mode-heading{color:#b1bdd0;font-size:12px}
.mode-heading strong{color:#e9effa}
.mode-rail{background:#2a3545}
.section-divider{background:#29364a}
.upcoming-entry,.upcoming-entry strong{font-size:13px;color:#ecf1f9}
.upcoming-entry small{color:#b7c1d2}
.member-ident strong,.data-table td strong{color:#f0f5fc;font-size:14px}
.member-ident small{color:#a9b9cb;font-size:11px}
.avatar{background:#2b2a2c;color:#f4cc82;border-color:#b38b45;box-shadow:0 0 0 2px #2c2c33}
.avatar.lg,.avatar.xl{box-shadow:0 0 0 4px #302c2a}
.data-table th{color:#aebdd0;border-bottom:1px solid #344258;font-size:11px}
.data-table td{color:#cad4e2;border-bottom:1px solid #273347;font-size:13px}
.data-table tr:hover td{background:#192537}
.badge-active{background:#123e30;color:#8aebbb}
.badge-soon{background:#49341b;color:#ffcd82}
.badge-expired{background:#4c262f;color:#ffa8ac}
.badge-due{background:#4b3422;color:#f6c184}
.badge-upcoming{background:#203d62;color:#b0d4ff}
.table-link{background:#1e2c3e;border:1px solid #344861;color:#efca88;font-size:12px}
.table-link:hover{background:#2b3c50}
.table-link.danger-link{color:#ff9ea9}
.link-button{color:#f2c980;font-size:13px}
.search-field{background:#101927;border-color:#34445d}
.search-field svg{color:#adbad0}
.search-field input{color:#eff5ff;font-size:14px}
.search-field input::placeholder,.field input::placeholder,.field textarea::placeholder{color:#8796ad;opacity:1}
.filter-row select,.field input,.field select,.field textarea{background:#101927;color:#f0f5fe;border-color:#34445d}
.filter-row select{font-size:14px}
.field input,.field select,.field textarea{font-size:14px}
.filter-row select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#e0ae58;box-shadow:0 0 0 3px #d6a95840}
input,select,textarea{accent-color:#e0b566}
select option{background:#152234;color:#f2f5fa}
.mini-stat span{color:#b9c8d8;font-size:12px}
.mini-stat strong{color:#f0f5ff}
.empty-state{color:#a9b8c9;font-size:14px}
.empty-state strong{color:#eef3fa;font-size:16px}
.health-row{border-bottom:1px solid #28364a;font-size:13px}
.settings-heading h3{color:#eff5fd}
.settings-heading p,.backup-note{color:#b3c1d2;font-size:13px}
.settings-icon{background:#3a2d1e;color:#f5c882}
.settings-icon.outline{background:#263549;color:#bed2e8}
.info-grid>div{background:#101929;border-color:#293950}
.info-grid span{color:#aabbd0;font-size:12px}
.info-grid strong{font-size:14px}
.warning{background:#33291a;border:1px solid #7b603b;color:#ecd1a2;font-size:13px}
.danger-row{border-top:1px solid #344056}
.footer{color:#acbacd;font-size:11px}
.modal-backdrop{background:#02060bd9}
.modal{background:#172234;border:1px solid #344259;color:#eff4ff}
.modal-header{border-bottom:1px solid #324057}
.modal-header h2{color:#f1f5ff}
.modal-header p{color:#b9c5d7;font-size:13px}
.icon-button{background:#243247;border-color:#40516b;color:#e5edfa}
.field{font-size:13px;color:#d9e5f2}
.field small{color:#afc0d4}
.photo-upload{background:linear-gradient(110deg,#1c2a3d,#212a38);border:1.5px dashed #9b794a}
.photo-upload strong{color:#f0f4fa;font-size:16px}
.photo-upload p{color:#c4cede;font-size:13px}
.modal-actions{border-top:1px solid #324258}
.helper-note{font-size:13px;color:#bccadd}
.expiry-preview{background:#302a20;color:#f8d3a0;font-size:13px}
.detail-hero{border-bottom-color:#334259}
.detail-hero p{color:#c0cddd;font-size:13px}
.detail-grid div{background:#101b2b}
.detail-grid span{color:#b6c6d7;font-size:12px}
.detail-grid strong{font-size:14px}
.detail-payment{border-bottom:1px solid #344257;font-size:13px}
.pill-mode{background:#27364a;color:#c5d6ec;font-size:11px}
.attendance-metric{background:#302b24}
.attendance-metric span{color:#ccd0d7;font-size:13px}
.attendance-metric strong{color:#f3ca83}
.plan-card p,.info-panel p{color:#b6c4d6;font-size:13px}
.plan-price{color:#f5ca7c}
.reminder-member{background:#101a29;border:1px solid #34455d}
.reminder-member-top strong{color:#f0f5ff;font-size:17px}
.reminder-member-top small{color:#b9c8d9;font-size:13px}
.reminder-meta{border-top:1px solid #34445a;color:#c1cede;font-size:13px}
.reminder-meta b{color:#ecf2fa}
.reminder-log{color:#a8bad0;font-size:12px}
.reminder-actions .btn{font-size:13px}
.btn-green{background:#147551;border-color:#238767;color:#fff}
.btn-green:hover{background:#168963}
.wa-action{color:#8df1c5!important;border-color:#327b66!important;background:#133b30!important}
.wa-needs-phone{color:#f8cb8a!important;border-color:#78552e!important;background:#3b2b18!important}
.btn-copy{font-size:13px}
/* Preserve readable text on smartphone without Safari zoom. */
@media(max-width:700px){
.nav-item{font-size:13px}
.page-heading p{font-size:13px}
.page-heading .btn{font-size:12px}
.stat-top>span:first-child{font-size:12px}
.sidebar-head span{font-size:10px}
.reminder-stats .mini-stat span{font-size:12px}
.photo-upload p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.btn,.nav-item,.bar-shape{transition:none}}

/* JAWAN GYM V4.3 — ORIGINAL V3 VISUAL DESIGN + SECURE CLOUD WORKFLOWS */
[hidden] { display:none !important; }
:root { color-scheme: dark; font-size: 15px; }
body { background: #0a101a; }
* { scrollbar-width: thin; scrollbar-color: #34435c #0d1624; }
.tab { display: block; animation: page-in .18s ease-out; }
@keyframes page-in { from {opacity:.8; transform:translateY(3px)} to {opacity:1; transform:translateY(0)} }
.nav-item.selected { background:linear-gradient(100deg,#c99a43,#e0b764);color:#232017;box-shadow:0 7px 20px #0002; }
.nav-item.selected:hover { background:linear-gradient(100deg,#d3a54c,#f0c779); color:#201b14; }
.sidebar { padding-bottom:17px; }
.sidebar-head { margin-bottom:48px; }
.sidebar-footer-block { margin-top:auto; min-height:0; }
.sidebar-footer-block .sidebar-foot { padding:17px 12px 14px; }
.sidebar-footer-block .sidebar-foot p { margin:9px 0; }
.identity-line { margin:17px 0 5px; padding:0 5px; font-size:12px; line-height:1.6; color:#b8c6d7; overflow-wrap:anywhere; }
.side-signout { display:inline-flex; padding:6px 5px; color:#e8c481; font-weight:700; background:none; border:0; }
.side-signout:hover { color:#fff2cd; }
.local-pill { background:#14362c; color:#8ce0bc; }
.local-pill span { background:#36b586; }
#pageTitle { font-weight:850; }
.stat-card strong { font-size: clamp(20px,2vw,27px); }
.page-heading h1 { font-size:clamp(28px,3vw,37px); }
.hero h2 { font-size:clamp(24px,2.8vw,37px); }
#alerts { max-height:260px; overflow-y:auto; }
#alerts .line { background:#121c2b; border:1px solid #2a3a51; padding:11px 12px; margin:0; border-radius:10px; display:flex; gap:12px; align-items:center; justify-content:space-between; font-size:12px; }
#alerts .line + .line { margin-top:8px; }
#alerts .line small { display:block; margin-top:3px; color:#b0bfd1; }
#alerts .line .actions { display:flex; gap:6px; flex-wrap:wrap; margin:0; justify-content:flex-end; }
#alerts .line button { font-size:10px; padding:7px 8px; }
.today-banner { display:flex; justify-content:space-between; align-items:center; gap:15px; flex-wrap:wrap; border:1px solid #34465f; background:linear-gradient(115deg,#192638,#14202e); border-radius:15px; padding:17px 22px; margin:19px 0; }
.today-banner b { display:block; font-size:25px; margin:3px 0 5px; color:#f1d392; }
.today-banner small { color:#afbdd1; display:block; font-size:12px; }
.member-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(295px,1fr)); gap:15px; margin-top:9px; }
.member-card { border:1px solid #303f55; border-radius:14px; padding:19px; background:linear-gradient(150deg,#172334,#121d2b); box-shadow:0 7px 18px #0002; min-width:0; }
.member-card-top { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.member-card-top .avatar { width:84px; height:84px; min-width:84px; border-radius:16px; object-fit:cover; border:2px solid #a9814d; background:#26344a; box-shadow:0 0 0 3px #312c25; }
.member-card-top h3 { margin:0 0 5px; font-size:17px; line-height:1.3; overflow-wrap:anywhere; }
.member-card-top p { margin:3px 0; font-size:12px; color:#b3c0d2; }
.member-card .badge-status { margin-left:auto; align-self:flex-start; white-space:nowrap; }
.member-card .meta-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0;border-top:1px solid #2d3a4d;border-bottom:1px solid #2d3a4d;padding:13px 0; }
.member-card .meta-list div { min-width:0; }
.member-card .meta-list small { display:block; color:#afc0d2; font-size:11px; margin-bottom:4px; }
.member-card .meta-list strong { display:block; font-size:13px; color:#f1f6fe; overflow-wrap:anywhere; }
.member-card .address-line { font-size:12px; color:#b8c8d9; margin:10px 0; overflow-wrap:anywhere; }
.member-card .actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:7px; margin-top:15px; }
button.primary,button.secondary { padding:9px 12px; border-radius:9px; font-size:12px; font-weight:770; cursor:pointer; }
button.primary { background:#dcb162; color:#1e1a13; border:1px solid #edc57b; }
button.secondary { background:#1c2b3e; color:#e8d1a2; border:1px solid #384c67; }
button.primary:hover { background:#e7c47c; }
button.secondary:hover { background:#273a52; }
.reminder-list .line, #staffRequests .line, #staffApproved .line, .attendance-list .line { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:9px 0; padding:16px; border:1px solid #303f55; background:#121e2e; border-radius:12px; }
.reminder-list .line b { font-size:14px; }
.reminder-list .line small { color:#b4c2d5; display:block; margin-top:5px; }
.reminder-list .actions, #staffRequests .actions, #staffApproved .actions { margin:0; display:flex; gap:8px; }
#staffRequests button, #staffApproved button { font-size:12px; }
.empty-plans { grid-column:1/-1; }
.plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:15px; }
.plan-card { margin:0; }
.plan-card h3 { margin:13px 0 5px; font-size:20px; }
.plan-card .plan-price { font-size:30px; font-weight:850; margin:10px 0 12px; }
.plan-card p { font-size:12px; line-height:1.5; }
.plan-card .table-link { margin-top:13px; }
#memberSearch { width:100%; }
.date-label { color:#d0dcec; display:flex; align-items:center; gap:10px; white-space:nowrap; font-size:13px; font-weight:650; }
.date-label input { background:#101927; border:1px solid #34445d; color:#eef5ff; border-radius:9px; padding:10px 12px; font-size:13px; color-scheme:dark; }
.report-actions { justify-content:flex-start; flex-wrap:wrap; }
.mini-stats.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.mode-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:17px 0 20px; }
.mode-grid>div { border:1px solid #2f3f58; background:#111d2e; padding:15px; border-radius:12px; }
.mode-grid>div .muted { display:block; font-size:12px; color:#aebfd3; }
.mode-grid>div b { display:block; margin-top:6px; font-size:21px; }
#paymentList table,#reportRows table { width:100%;min-width:680px;border-collapse:collapse;text-align:left; }
#paymentList,#reportRows { overflow-x:auto; }
#paymentList th,#reportRows th { font-size:11px; letter-spacing:.08em; color:#a8bacd; text-transform:uppercase; }
#paymentList td,#reportRows td,#paymentList th,#reportRows th { padding:15px 11px; border-bottom:1px solid #2b3a50; font-size:13px; }
.report-tag { display:inline-block; border-radius:30px; padding:5px 9px; background:#29415c; color:#d3e8fe; font-size:11px; }
.report-tag.admission { color:#ffdd91; background:#47351b; }
.form { padding:22px 24px; }
.form .flex { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.form .flex h2 { font-size:22px; margin:0; }
.form .photo { display:flex; align-items:center; gap:19px; margin:18px 0 22px; border:1px dashed #8c7451; background:#1d2b3d; border-radius:13px; padding:19px; flex-wrap:wrap; }
.form .photo img { width:158px; height:158px; border-radius:17px; object-fit:cover; flex:none; border:2px solid #c69f61; }
.form .fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.form .fields label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:720; color:#d2deef; }
.form .fields input,.form .fields select,.form .fields textarea,
#payForm input,#payForm select,.medical-section textarea,.form input[type="number"] { border:1px solid #3b4e65; background:#101927; color:#edf3fc; border-radius:9px; padding:11px 12px; min-width:0; width:100%; font-size:14px; outline:none; }
.form .fields input:focus,.form .fields textarea:focus,.form .fields select:focus,.medical-section textarea:focus {border-color:#d9ae62; box-shadow:0 0 0 3px #d1a7593b;}
.form .fields textarea {resize:vertical;min-height:75px;}
.form .actions { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; border-top:1px solid #334259; padding-top:19px; }
.form .actions button { font-size:13px; padding:11px 16px; }
.medical-section {margin-top:19px;padding:17px;background:#101a29;border:1px solid #33465e;border-radius:12px;}
.medical-section label:not(.consent-row) {display:grid;gap:8px;font-size:13px;color:#e0e9f6;font-weight:750;}
.medical-section .consent-row {display:flex;align-items:center;gap:10px;margin-top:13px;line-height:1.5;font-size:12px;color:#c3cfe0;}
.medical-section .consent-row input {width:17px;height:17px;flex:none;accent-color:#dcb162;}
.medical-section .muted.small {font-size:12px;margin-top:10px;}
#memberDialog,#payDialog,#planDialog {background:#172234;color:#edf3fc;border:1px solid #3c4d65;box-shadow:0 30px 80px #0009;border-radius:17px;max-height:92vh;max-width:calc(100vw - 20px);width:min(750px,95vw);overflow:auto;padding:0;}
#payDialog,#planDialog {width:min(510px,95vw);}
#memberDialog::backdrop,#payDialog::backdrop,#planDialog::backdrop {background:#03070edb;backdrop-filter:blur(6px);}
.form>label {display:flex;flex-direction:column;gap:8px;margin-top:14px;font-size:13px;}
.form>p {font-size:12px;color:#b1bdce;}
.filelabel { border:1px solid #455a75; border-radius:9px; padding:9px 13px; background:#25364d; color:#e9d5af; font-weight:800; cursor:pointer; font-size:12px; }
.filelabel input {display:none;}
.icon-button {display:grid;place-items:center;border:1px solid #40536d;background:#243348;color:#e9f0fc;height:33px;width:33px;border-radius:9px;}
.muted {color:#afbdd1;} .small{font-size:12px;}
.info-panel {margin-top:17px;}
.settings-panel .settings-actions {display:flex;gap:10px; flex-wrap:wrap; margin:19px 0;}
.warning {color:#f3d3a4;}
.toast {position:fixed;bottom:22px;right:20px;z-index:999;background:#1b3930;border:1px solid #3c8e6c;color:#e8fff2;padding:13px 17px;border-radius:11px;font-size:13px;box-shadow:0 11px 40px #0006;max-width:90vw;}
.center {min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; background:radial-gradient(circle at 70% 15%,#253243,#0a101a 60%);}
.auth-card {display:flex;flex-direction:column;gap:13px;width:min(490px,100%);border-radius:20px;background:#151e2c;border:1px solid #34465d;box-shadow:0 30px 90px #0007;padding:36px 32px;color:#eff4fb;}
.auth-card .auth-logo {width:96px;height:96px;border-radius:17px;object-fit:cover;border:2px solid #806741;box-shadow:0 9px 25px #0008;}
.auth-card .auth-eyebrow {color:#e8ba6e;letter-spacing:.14em;font-size:10px;font-weight:800;margin-top:5px;}
.auth-card h1 {font-size:29px;letter-spacing:-.045em;margin:5px 0 0;}
.auth-card p {font-size:14px;color:#bdccdd;line-height:1.65;margin:5px 0 9px;}
.auth-card .auth-subtle {font-size:12px;text-align:center;}
.auth-card .btn {font-size:14px;padding:14px;margin-top:7px;}
.auth-card .full {width:100%;}
.auth-card code {color:#f4ce85;overflow-wrap:anywhere;}
#bootHelp {padding:12px 15px;border-radius:10px;background:#263047;border:1px solid #4e5e79;}
#bootRetry {align-self:flex-start;}
@media (max-width:1200px) { .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));} .mini-stats.four,.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:990px) { .dashboard-panels{grid-template-columns:1fr;} .nav-item{font-size:13px;} .hero-logo{height:180px;width:180px;right:4%;} }
@media (max-width:760px) {
  .sidebar{position:relative;height:auto;min-height:auto;width:100%;padding:17px 12px;}
  .app-shell{display:block;}
  .sidebar-head{margin-bottom:12px;}
  .nav-label,.sidebar-footer-block .sidebar-foot{display:none;}
  .sidebar-footer-block{display:flex;align-items:center;justify-content:space-between;gap:9px;}
  .identity-line{margin:7px 0 0;}
  .nav{display:flex;flex-direction:row;overflow-x:auto;white-space:nowrap;gap:6px;padding:8px 2px 6px;}
  .nav-item{width:auto;flex:none;padding:10px 12px;font-size:12px;}
  .nav-count{margin-left:2px;}
  .topbar{padding:13px 17px;height:auto;min-height:63px;}
  .date-pill{display:none;}
  .page-container{padding:20px 14px;}
  .page-heading{align-items:flex-start;flex-wrap:wrap;}
  .hero{padding:26px 23px;min-height:215px;}
  .hero-logo{width:130px;height:130px;right:1%;opacity:.40;}
  .hero-copy{max-width:95%;}
  .hero h2{font-size:26px;}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .member-grid{grid-template-columns:1fr;}
  .form .fields{grid-template-columns:1fr;}
  #memberDialog,#payDialog,#planDialog{max-height:95dvh;}
  .form{padding:18px;}
  .form .photo img{width:130px;height:130px;}
  .filter-row{flex-wrap:wrap;}
  .filter-row .search-field{max-width:none; flex-basis:100%;}
}
@media(max-width:420px){.stat-card{padding:12px 11px;}.stat-top{gap:3px;}.stat-icon{height:27px;width:27px;}.stat-card strong{font-size:22px;}.panel{padding:17px;}.mini-stats.four,.mode-grid{grid-template-columns:1fr 1fr;}.auth-card{padding:24px;}}
@media(prefers-reduced-motion:reduce){.tab{animation:none;}}

/* V4.4 — actionable save feedback rendered inside the modal top layer. */
.form-save-status { margin:17px 0 0; padding:13px 15px; border:1px solid #d4a657; border-radius:10px; background:#392a16; color:#ffe8bc; font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.form-save-status[data-kind="error"] { border-color:#ec866f; color:#ffe2dc; background:#472429; }
.form-save-status[data-kind="success"] { border-color:#48a37c; color:#d3f9e6; background:#173d31; }
.form-save-status a { color:#ffe5a4; font-weight:700; }
#saveMemberBtn[disabled] { opacity:0.65; cursor:wait; }
/* JAWAN GYM V5: offline-first status, passphrase, and conflict center */
#vault .auth-card{width:min(470px,calc(100vw - 24px));}
#vault .auth-card label{display:block;color:#c9d3e3;font-size:13px;font-weight:700;margin:18px 0 10px;text-align:left;}
#vault .auth-card input{width:100%;display:block;margin-top:7px;padding:14px;border:1px solid #33465c;border-radius:11px;background:#0c1625;color:#fff;min-height:46px;font-size:15px;}
#vault .auth-card .form-save-status{white-space:pre-wrap;color:#ffd0cb;}
#useOffline{margin-top:12px;}
#syncPill{white-space:normal;max-width:320px;font-size:12px;line-height:1.3;overflow-wrap:anywhere;color:#edcb8d;background:#302b20;border:1px solid #695533;}
.sync-stats{margin-bottom:20px;}
.sync-stats .mini-stat strong{font-size:19px;overflow-wrap:anywhere;}
.sync-conflict-list,.queue-list{display:grid;gap:10px;}
.conflict-card{background:#282230;border:1px solid #8d5b45;border-radius:12px;padding:17px;}
.conflict-card b{color:#ffdfa8;}
.conflict-card p{line-height:1.6;}
#sync .panel{margin-top:14px;}
#sync .warning{white-space:pre-wrap;line-height:1.6;}
#sync .line,#queueList .line{border-bottom:1px solid #304258;padding:14px 3px;display:flex;gap:10px;justify-content:space-between;align-items:center;overflow-wrap:anywhere;}
#sync .line small{font-size:11px;color:#b7c5d5;}
#sync .actions{display:flex;gap:8px;flex-wrap:wrap;}
#syncNow:disabled{opacity:.6;}
.nav-item[data-tab="sync"]{border:1px solid #504126;margin-top:7px;}
@media(max-width:700px){#syncPill{max-width:190px;font-size:10px}.sync-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.sync-stats .mini-stat strong{font-size:15px}}

/* V5.1: owner-only reversible member removal */
#memberStatusFilter { color:#e8edf6; background:#101927; border:1px solid #394b63; border-radius:9px; padding:10px 12px; font-size:13px; min-height:41px; }
#memberStatusFilter:focus { outline:2px solid #dab26a; outline-offset:2px; }
.member-delete-btn { color:#ffb3b8; background:#3e2530; border:1px solid #944855; border-radius:9px; padding:9px 12px; font-size:12px; font-weight:800; }
.member-delete-btn:hover { background:#58303a; }
.member-card.is-archived { opacity:.88; border-style:dashed; }
.badge-archived { color:#d2dcf0; background:#384354; }
@media(max-width:650px){.filter-row{flex-wrap:wrap;}#memberStatusFilter {flex:1; max-width:none;}.member-card-top .badge-status{white-space:normal;}}

/* V5.2: full membership renewal / package change */
#renewDialog { width:min(650px,calc(100vw - 22px)); max-height:min(92dvh,920px); overflow-y:auto; border:1px solid #43566d; border-radius:16px; background:#151e2d; color:#eff5ff; padding:0; box-shadow:0 26px 90px #000a; }
#renewDialog::backdrop { background:rgba(2,6,12,.78);backdrop-filter:blur(3px); }
#renewDialog .form {padding:22px 25px 25px;}
#renewDialog .eyebrow {font-size:11px;letter-spacing:.1em;margin-bottom:8px;}
.renew-member-overview {margin:18px 0;padding:14px 16px;border-radius:12px;background:#101b29;border:1px solid #34485e;display:grid;gap:6px;font-size:13px;color:#c1cfe0;}
.renew-member-overview strong {font-size:17px;color:#f9d694;}
.renew-member-overview b {color:#fff;}
.renew-quote {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px;}
.renew-quote>div{padding:13px 15px;background:#0f1b2a;border:1px solid #36485e;border-radius:10px;min-width:0;}
.renew-quote span {display:block;color:#b6c5d5;font-size:12px;margin-bottom:6px;}
.renew-quote b {display:block;color:#f7d499;font-size:19px;word-break:break-word;}
.renew-quote>div:last-child{background:#203022;border-color:#59693e;}
.renew-action-btn {background:#3b2f19!important;border:1px solid #987940!important;color:#ffe1a0!important;padding:9px 12px;border-radius:9px;font-weight:800;cursor:pointer;}
.renew-action-btn:hover{background:#574122!important;}
.member-renewal-note{font-size:12px;line-height:1.5;color:#c3d7e9;background:#1b2c40;border-left:3px solid #d1a656;padding:9px 12px;margin:12px 0;}
.member-renewal-note b{color:#f1c77b;}
#saveRenewBtn:disabled {opacity:.65;cursor:wait;}
@media(max-width:620px){#renewDialog .form {padding:18px 16px;}.renew-quote{grid-template-columns:1fr 1fr;}.renew-quote b{font-size:16px;}#renewDialog .form .fields{grid-template-columns:1fr;}}


/* V5.3: unobtrusive inline member archive confirmation and branded action sheet */
.archive-inline { margin-top:14px; padding:15px 16px; border:1px solid #8a5b45; border-left:4px solid #e0b05c; border-radius:12px; background:#2a2630; display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.archive-inline strong { color:#ffe2b1; font-size:14px; }
.archive-inline p { font-size:12px; color:#c5ceda; margin:5px 0 0; line-height:1.55; max-width:580px; }
.archive-inline-actions { display:flex; gap:8px; flex-wrap:wrap; }
.archive-inline-actions button { font-size:12px; min-height:39px; }
.app-action-dialog { width:min(470px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; background:#151f30; color:#f3f6fb; border:1px solid #485a71; border-radius:18px; padding:0; box-shadow:0 24px 75px #000b; }
.app-action-dialog::backdrop { background:#040810bc; backdrop-filter:blur(3px); }
.app-action-dialog .form { padding:24px; }
.action-sheet-heading { display:flex; gap:13px; align-items:center; }
.action-sheet-heading img {width:46px;height:46px;flex:none;border-radius:12px;object-fit:cover;border:1px solid #a8864f;}
.action-sheet-heading h2 {font-size:20px;line-height:1.25;margin:4px 0 0;}
.action-sheet-message {font-size:14px!important;line-height:1.7;white-space:pre-line;color:#d3ddeb!important;margin:18px 0 12px;}
.action-sheet-label {display:grid!important;gap:7px;color:#e2eaf5;font-size:13px;font-weight:700;margin:15px 0;}
.action-sheet-label input,.action-sheet-copy {width:100%;box-sizing:border-box;min-width:0;max-width:100%;border-radius:10px;border:1px solid #4a607a;background:#0b1523;color:#f4f6fc;padding:12px;font:inherit;font-size:14px;}
.action-sheet-copy {resize:vertical;min-height:120px;line-height:1.5;}
.action-sheet-hint {font-size:12px!important;color:#ffbcb7!important;margin:10px 0 0;}
.app-action-dialog .actions {display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:19px;border-top:1px solid #344358;padding-top:17px;}
.app-action-dialog .actions button {min-height:43px;}
@media(max-width:600px){.app-action-dialog .form{padding:18px}.archive-inline{padding:13px}.archive-inline-actions{width:100%}.archive-inline-actions button{flex:1}}

/* ───────────── JAWAN GYM V5.4 / PER-MEMBER ACCOUNTS ───────────── */
.global-member-search{position:relative;min-width:180px;width:clamp(188px,22vw,330px);z-index:20}
.global-member-search label{height:38px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #34435c;background:#0c1727;border-radius:11px;color:#e8ba6a}
.global-member-search label:focus-within{border-color:#e0af61;box-shadow:0 0 0 3px #ddb05f24}
.global-member-search svg{width:16px;height:16px}
.global-member-search input{flex:1;width:100%;min-width:0;border:0;outline:0;background:transparent;color:#f2f6ff;font-size:13px}
.global-member-search input::placeholder{color:#9eafc4}
.global-member-results{position:absolute;top:calc(100% + 9px);left:0;right:0;background:#192638;border:1px solid #394d65;border-radius:12px;padding:8px;box-shadow:0 20px 65px #0008;max-height:360px;overflow-y:auto;min-width:320px;z-index:100}
.quick-result{display:flex;align-items:center;gap:10px;width:100%;padding:10px;text-align:left;background:transparent;border:0;border-radius:9px;color:#eef2fb}
.quick-result:hover,.quick-result:focus-visible{background:#2b3d53;outline:1px solid #d0a961}
.quick-result img{width:45px;height:45px;object-fit:cover;border-radius:11px;border:1px solid #9e8255}
.quick-result>span:nth-child(2){min-width:0;flex:1}
.quick-result strong,.quick-result small{display:block;overflow-wrap:anywhere}
.quick-result strong{font-size:13px}.quick-result small{color:#b0c1d5;font-size:11px;margin-top:4px}
.quick-result-arrow{font-size:11px;color:#f7c77d;white-space:nowrap}
.record-name-link{background:none;border:0;color:inherit;font-weight:inherit;font-size:inherit;text-align:left;padding:0;line-height:inherit;text-decoration:none}
.record-name-link:hover,.record-name-link:focus-visible{color:#f5c477;text-decoration:underline;text-underline-offset:3px}
.member-profile-button{background:linear-gradient(105deg,#d4ac61,#f1cb80);color:#182130;border:1px solid #e4be76;font-weight:800;border-radius:9px;padding:9px 11px}
.member-profile-button:hover{filter:brightness(1.07)}
.member-record-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:17px}
.member-record-navigation .btn:first-child svg{transform:rotate(180deg)}
.member-record-context{color:#b7c9df;letter-spacing:.1em;font-size:11px;font-weight:700;margin-right:auto}
.member-profile-page .record-profile-hero{padding:26px 27px;background:radial-gradient(ellipse at 100% 10%,#5d482b50,transparent 45%),linear-gradient(115deg,#17243a,#111c2b 72%);border-color:#3c4a5e;margin-bottom:15px}
.record-profile-main{display:flex;gap:22px;align-items:center;min-width:0}
.record-profile-photo{width:146px;height:146px;object-fit:cover;flex-shrink:0;border:3px solid #b78e51;border-radius:19px;box-shadow:0 0 0 5px #332e2a,0 15px 24px #0005;background:#27364b}
.record-profile-text{min-width:0;flex:1}
.record-title-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}
.record-title-line h1{margin:0;color:#f7f8fe;font-size:clamp(25px,2.5vw,36px);letter-spacing:-.035em;overflow-wrap:anywhere}
.record-profile-sub{font-size:13px;color:#c3cfdf;line-height:1.8;overflow-wrap:anywhere}
.record-profile-id{font-size:11px;color:#eac280;font-weight:750;letter-spacing:.06em;margin-top:9px;overflow-wrap:anywhere}
.record-sep{margin:0 5px;color:#71869f}
.record-profile-actions{margin-top:22px;padding-top:18px;border-top:1px solid #3a4759;display:flex;gap:9px;flex-wrap:wrap}
.record-profile-actions button{border:1px solid #41526a;background:#202e42;color:#e2ebfa;border-radius:9px;padding:10px 14px;font-size:12px;font-weight:760;min-height:40px}
.record-profile-actions button:hover{background:#30435a}
.record-profile-actions button.primary,.record-profile-actions button.renew-action-btn{background:#e3b65f;border-color:#e3b65f;color:#1e242e}
.record-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 10px}
.record-kpi{border:1px solid #303f56;background:#172335;border-radius:13px;min-width:0;padding:16px 14px}
.record-kpi span{display:block;color:#aebfd4;font-size:11px;font-weight:650;min-height:30px}
.record-kpi strong{display:block;font-size:clamp(16px,1.7vw,22px);color:#f1f7ff;letter-spacing:-.03em;overflow-wrap:anywhere}
.record-kpi.good strong{color:#89e5b2}.record-kpi.bad strong{color:#ffafad}
.record-breakdown{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.record-breakdown span{padding:9px 14px;border-radius:30px;background:#202d40;border:1px solid #31445c;color:#bdccdf;font-size:12px}
.record-breakdown b{color:#f2c878;margin-left:5px}
.record-tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid #34435a;margin-bottom:19px;padding:0 0 8px;scrollbar-width:thin}
.record-tab{white-space:nowrap;padding:11px 16px;border:1px solid transparent;background:transparent;color:#aec0d3;border-radius:9px;font-size:13px;font-weight:750}
.record-tab:hover{background:#25344a;color:#fff}.record-tab.is-selected{background:#3b301f;border-color:#836136;color:#f4ca82}
.record-panel{margin-bottom:18px;background:#151f2e;border-color:#2e4058}
.record-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:19px;flex-wrap:wrap}
.record-panel-head h3{color:#fff;margin:0;font-size:17px}
.record-panel-head p{color:#adbed1;margin:7px 0 0;font-size:12px}
.record-panel-head>button{font-size:12px;border-radius:9px}
.record-split-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.record-fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.record-fact-grid>div{min-width:0;background:#1d2a3b;border:1px solid #2d4159;padding:13px;border-radius:10px}
.record-fact-grid span{display:block;color:#9eb2c9;font-size:11px;margin-bottom:6px}
.record-fact-grid strong{display:block;color:#f1f6ff;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.record-fact-grid .record-wide{grid-column:1/-1}
.record-muted-note{color:#9dafc7;font-size:12px;line-height:1.65;margin:17px 0 0}
.record-table-wrap{width:100%;overflow-x:auto;border-radius:10px;border:1px solid #2d4056}
.record-table{border-collapse:collapse;width:100%;text-align:left;min-width:700px;font-size:13px}
.record-table thead{background:#24354a}
.record-table th{padding:14px 12px;color:#b8cbe2;letter-spacing:.04em;font-size:11px;text-transform:uppercase;white-space:nowrap}
.record-table td{padding:14px 12px;border-top:1px solid #2a3a4f;color:#d4e1f0;white-space:nowrap}
.record-table tbody tr:hover{background:#202e40}
.record-table .record-strong-cell{font-weight:760;color:#f0f5ff;white-space:normal;min-width:135px}
.record-table .record-table-note{display:block;font-size:10px;color:#9eafc4;margin-top:4px;font-weight:450}
.record-table td.record-money{font-variant-numeric:tabular-nums;font-weight:800}
.record-table td.positive{color:#83e4ae}.record-table td.negative{color:#ffb09a}
.record-table tfoot{background:#263143;color:#fff;font-weight:800}
.record-table tfoot td{color:#fff}
.record-table code{font-size:11px;color:#b8cae2}
.record-fee-badge{display:inline-flex;font-size:11px;font-weight:800;padding:5px 9px;border-radius:14px}
.record-fee-badge.settled{background:#123f30;color:#8de4b7}.record-fee-badge.partial{background:#574020;color:#f6d094}.record-fee-badge.outstanding{background:#4d2b33;color:#ffb7bd}
.record-print-button{border:1px solid #786239;background:#362d23;color:#f5d28d;font-weight:700;padding:8px 12px;border-radius:8px;font-size:12px}
.record-print-button:hover{background:#493926}
.record-empty{padding:32px 20px;text-align:center;color:#aabbd0;font-size:13px}
.record-empty svg{width:25px;height:25px;display:block;margin:0 auto 11px;color:#d3aa66}
.record-empty p{margin:0;line-height:1.55}
.record-activity-list{display:grid;gap:0}
.record-activity{display:flex;align-items:center;gap:13px;padding:14px 6px;border-bottom:1px solid #293b50;min-width:0}
.record-activity:last-child{border-bottom:0}
.record-event-icon{height:38px;width:38px;flex-shrink:0;display:grid;place-items:center;background:#2c3d52;border-radius:11px;color:#eac381}
.record-event-icon.payment{color:#82dfb5;background:#1b433c}.record-event-icon.attendance{color:#9fc2f8}.record-event-icon.archive{color:#f4a1a9}
.record-event-icon svg{width:17px;height:17px}
.record-activity>div:nth-child(2){flex:1;min-width:0}
.record-activity strong{font-size:13px;color:#f1f6ff}
.record-activity p{margin:5px 0 0;font-size:12px;color:#adbbce;overflow-wrap:anywhere}
.record-activity time{color:#aabdd2;white-space:nowrap;font-size:12px}
.record-month-filter{display:flex;align-items:center;gap:12px;margin-bottom:16px;color:#b3c4d7;font-size:12px;font-weight:720}
.record-month-filter input{color:#f0f4fc;background:#1d2b40;border:1px solid #41546e;padding:8px 10px;border-radius:8px}
.record-confidential{background:#202e40;border:1px solid #46556e;border-radius:11px;padding:18px}
.record-confidential p{white-space:pre-wrap;overflow-wrap:anywhere;color:#f1f5fe;line-height:1.65;margin:0 0 13px}
.record-confidential small{color:#c0d2e6}
.receipt-dialog{max-width:610px;width:min(610px,calc(100vw - 30px));border:1px solid #34465d;border-radius:15px;background:#172232;color:#f0f5fc;padding:0;max-height:min(95vh,850px);overflow:auto}
.receipt-dialog::backdrop{background:#070c15db;backdrop-filter:blur(4px)}
.receipt-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 20px}
.receipt-dialog-header h2{margin:0;font-size:17px}
.receipt-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px}
.printable-receipt{margin:0 20px;padding:24px;color:#202a36;background:#fff;border-radius:12px}
.receipt-title{display:flex;align-items:center;gap:16px;border-bottom:2px solid #d5ac5d;padding-bottom:18px;margin-bottom:12px}
.receipt-title img{width:80px;height:80px;object-fit:cover;border-radius:50%}
.receipt-title h2{margin:0 0 3px;font-size:24px}.receipt-title p{font-size:11px;color:#566072;margin:4px 0}
.receipt-row{display:flex;justify-content:space-between;gap:20px;padding:11px 1px;border-bottom:1px solid #e4e8ec;font-size:13px}
.receipt-row span{color:#626d7b;flex-shrink:0}.receipt-row strong{text-align:right;overflow-wrap:anywhere}
.receipt-total{padding:17px 8px;font-size:17px;border-radius:7px;background:#f9f1e3}
.receipt-note{color:#626d7b;font-size:11px;line-height:1.5;margin:15px 0 0}
.print-receipt-sheet{display:none}
@media(max-width:1220px){.record-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.record-split-grid{grid-template-columns:1fr}.global-member-search{width:190px}}
@media(max-width:700px){.topbar-right{width:100%;justify-content:space-between}.global-member-search{width:min(55vw,300px);min-width:150px}.global-member-search label{height:36px}.global-member-results{min-width:min(335px,calc(100vw - 22px));left:auto;right:-50px}.member-profile-page .record-profile-hero{padding:18px}.record-profile-main{gap:15px;align-items:flex-start}.record-profile-photo{width:100px;height:100px;border-radius:15px}.record-title-line h1{font-size:24px}.record-profile-sub{font-size:12px}.record-profile-actions button{flex:1 0 auto}.record-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.record-kpi{padding:13px}.record-kpi strong{font-size:20px}.record-kpi span{min-height:25px}.record-breakdown span{font-size:11px;padding:8px 10px}.record-tab{font-size:12px;padding:9px 11px}.record-panel{padding:16px}.record-fact-grid{gap:9px}.record-activity time{font-size:11px}.member-record-context{display:none}}
@media(max-width:400px){.record-profile-main{flex-direction:column}.record-profile-photo{width:118px;height:118px}.record-title-line h1{font-size:23px}.record-fact-grid{grid-template-columns:1fr 1fr}.record-profile-actions button{flex:1 1 auto}.global-member-results{right:-65px}.record-activity{align-items:flex-start}.record-activity time{max-width:80px;white-space:normal}}
@media print{
 @page{size:A4;margin:16mm}
 body.printing-member-receipt{background:#fff!important;color:#000!important}
 body.printing-member-receipt > *:not(#printReceipt){display:none!important}
 body.printing-member-receipt > #printReceipt{display:block!important;position:static!important;background:#fff!important;color:#000!important;width:100%!important}
 body.printing-member-receipt #printReceipt .printable-receipt{margin:0;padding:0}
}
@media(max-width:700px){
 .topbar{flex-wrap:wrap;gap:7px;padding:10px 13px;min-width:0}
 .topbar .breadcrumb{width:100%;min-width:0;flex:1 1 100%;font-size:11px;line-height:1.25;overflow-wrap:anywhere}
 .topbar .topbar-right{flex:1 1 100%;width:100%;gap:8px;min-width:0}
 .global-member-search{flex:1 1 130px;width:auto;min-width:0}
 #syncPill{flex:0 1 150px;max-width:150px;min-width:0;font-size:10px;line-height:1.25;white-space:normal;padding:7px 9px}
 .global-member-results{min-width:0;width:min(335px,calc(100vw - 26px));max-width:calc(100vw - 26px);left:0;right:auto}
}

/* V5.5 · payment amount corrections in the existing dark/gold UI. */
.payment-edit-btn{background:#24354b;color:#f4c36d;border:1px solid #a47a39;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:700}
.payment-edit-btn:hover,.payment-edit-btn:focus-visible{background:#384a5f;border-color:#f7bf50}
.payment-action-group{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.payment-corrected-label{display:block;font-size:11px;color:#e9b75a;font-weight:700;margin-top:4px;white-space:nowrap}
.payment-audit-row td{padding:10px 15px;background:#172334;border-left:3px solid #cba353}
.payment-audit-row details{width:100%;color:#e0e9f7;font-size:12px}
.payment-audit-row summary{cursor:pointer;color:#f1c577;font-weight:700}
.payment-audit-row ol{margin:9px 0;padding-left:21px;line-height:1.8;overflow-wrap:anywhere}
.payment-correction-dialog{max-width:620px;width:min(95vw,620px)}
.correction-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:7px 0 10px}
.correction-amounts div{background:#1a2738;border:1px solid #354259;border-radius:12px;padding:12px;min-width:0}
.correction-amounts span{display:block;color:#9caec9;font-size:12px;margin-bottom:5px}
.correction-amounts strong{color:#f6d192;overflow-wrap:anywhere}
.correction-warning{font-size:12px;color:#ddc99e;background:#332a1e;border:1px solid #654e2b;padding:13px;border-radius:10px;line-height:1.65}
.receipt-correction{background:#fff4da;border:1px solid #ad8339;color:#453319;padding:11px;border-radius:7px;margin:16px 0;font-size:12px;line-height:1.55}
.receipt-correction p{margin:4px 0}
@media(max-width:540px){.correction-amounts{grid-template-columns:1fr}.payment-action-group{min-width:155px}}
@media print{.receipt-correction{color:#222!important;background:#fff!important;border:1px solid #666!important}}

/* V5.6 owner-handover summary, intentionally compact and mobile readable. */
.owner-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.owner-info-grid>div{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:13px;padding:15px;min-width:0}
.owner-info-grid small{display:block;color:#aebbd1;font-size:12px;margin-bottom:7px}
.owner-info-grid strong{display:block;overflow-wrap:anywhere;font-size:14px;color:#f9f9fb}
@media(max-width:640px){.owner-info-grid{grid-template-columns:1fr}}
