*{box-sizing:border-box}body{font-family:Tahoma,Arial,sans-serif;direction:rtl;background:#f3f5f9;color:#172235;margin:0}header{background:#142e49;color:white;padding:20px 5%}header h1{margin:0}main{max-width:1000px;margin:25px auto;padding:0 15px}.card{background:white;border-radius:14px;padding:20px;margin-bottom:20px;box-shadow:0 3px 15px #132b4411}input,textarea,button,select{font:inherit;padding:10px;border:1px solid #c5cfda;border-radius:7px;margin:5px 0;max-width:100%}input,textarea{width:100%}button{background:#176e8c;color:white;border:0;cursor:pointer}button:disabled{opacity:.6}.danger{background:#9c3742}.hidden{display:none}.row{display:flex;gap:12px;flex-wrap:wrap}.row>*{flex:1}table{width:100%;border-collapse:collapse}td,th{border-bottom:1px solid #ddd;padding:8px;text-align:right;overflow-wrap:anywhere}.scroll{overflow:auto}.muted{color:#526070}.msg{padding:10px;border-radius:6px;white-space:pre-wrap}img.doc{max-width:300px;max-height:350px}small{color:#526070}
/* V4 dashboard UI */
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
.dashboard-tile{min-height:155px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;background:#f3f9fc;color:#153c54;border:2px solid #d3e7f0;border-radius:16px;padding:20px;transition:background .15s,transform .15s;text-align:center}
.dashboard-tile:hover,.dashboard-tile:focus-visible{background:#e1f3fa;transform:translateY(-2px);outline-color:#176e8c}
.dashboard-tile strong{font-size:1.3rem}.tile-icon{font-size:2.2rem}.tile-description{font-size:.85rem;color:#526070}
.dashboard-tile.hidden{display:none}.back-home{background:#e9f2f6;color:#12516a;margin-bottom:15px}
.dashboard-panel.hidden,#dashboardHome.hidden{display:none}
@media(max-width:560px){.dashboard-grid{grid-template-columns:1fr;gap:12px}.dashboard-tile{min-height:125px}}

#matchFilters details{margin:1rem 0;padding:1rem;border:1px solid #d6e0e8;border-radius:12px}#matchFilters summary{cursor:pointer;font-weight:bold;margin-bottom:12px}#matchFilters details .row{flex-wrap:wrap;gap:12px}#matchFilters details label{min-width:190px;flex:1}

/* Separated, responsive login and registration landing */
.auth-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.auth-choice-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:125px;background:#edf5f8;color:#153b53;border:2px solid transparent;border-radius:16px;box-shadow:0 3px 12px #142e4910}
.auth-choice-button span{font-size:30px}.auth-choice-button strong{font-size:20px}.auth-choice-button small{font-size:13px}
.auth-choice-button.active{background:#e0f1f4;border-color:#176e8c}
.auth-choice-button:focus-visible{outline:3px solid #176e8c;outline-offset:3px}
.auth-forms{max-width:720px;margin:auto}
.auth-forms form{display:block;width:100%;max-width:none}
.auth-forms form.hidden{display:none!important}
.auth-forms form>h3{text-align:center;margin:15px 0 22px}
.auth-forms label{display:block;margin-top:12px}
.auth-forms label input[type=checkbox]{width:auto;margin-left:8px}
.auth-forms button[type=submit],.auth-forms form>button{width:100%;margin-top:20px;padding:13px}
@media(max-width:480px){.auth-choice{gap:10px}.auth-choice-button{min-height:105px;padding:10px}.auth-choice-button strong{font-size:17px}}

/* V6: isolated registration document previews and admin dossiers */
.document-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0}
.registration-document-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;min-width:0}
.registration-document-card img{width:85px;height:85px;object-fit:contain;background:#fff;border-radius:8px}
.registration-document-details{min-width:0;overflow-wrap:anywhere;font-size:13px}.doc-upload-status{margin-top:8px;color:#286078}
.admin-user-folder{margin:16px 0;border:1px solid #cbd5e1;border-radius:14px;padding:12px;background:#f8fafc}
.admin-user-folder>summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px}
.admin-document-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:12px}
.admin-document-card{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.admin-document-card img{width:100%;height:210px;object-fit:contain;background:#f1f5f9;border-radius:8px}
.admin-document-card input,.admin-document-card select{width:100%}
.document-heading{font-weight:700;overflow-wrap:anywhere}

/* JK Store sponsorship under the member dashboard tiles */
.jkstore-ad{margin-top:24px;padding:22px 18px;border:1px solid #b6d8e8;border-radius:16px;background:linear-gradient(115deg,#f1faff,#e6f5f7);text-align:center;color:#173b53}
.jkstore-ad-kicker{font-size:12px;font-weight:700;letter-spacing:.04em;color:#39738b}
.jkstore-ad h3{margin:9px 0;font-size:1.35rem}.jkstore-ad p{margin:10px 0}
.jkstore-ad-link{display:inline-block;margin:8px 0;padding:12px 20px;border-radius:10px;background:#086a88;color:white!important;text-decoration:none;font-weight:700}
.jkstore-ad-link:hover,.jkstore-ad-link:focus-visible{background:#064e68}
.jkstore-ad-contact{font-size:.92rem;overflow-wrap:anywhere;border-top:1px solid #c2e0e9;padding-top:12px}

/* V17: compact header aligned with the main content card */
header{max-width:970px;width:calc(100% - 30px);margin:20px auto 0;padding:12px 16px;text-align:center;border-radius:14px}
header h1{margin:0;font-size:26px;line-height:1.5;text-align:center}
main{margin-top:15px}
@media(max-width:560px){header{margin-top:12px;padding:10px 12px}header h1{font-size:23px}}

/* V18: brand and tagline on one centered line; wrap on narrow screens */
.header-brand{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;text-align:center}
.header-brand h1{margin:0;white-space:nowrap}
.header-tagline{color:#fff;font-size:17px;font-weight:700;line-height:1.7}
@media(max-width:560px){.header-brand{gap:4px 9px}.header-tagline{font-size:14px}}
