:root{
  --bg:#f4f6f9;--surface:#ffffff;--surface-soft:#f8fafc;--surface-strong:#eef2f7;
  --navy:#142036;--navy-2:#0d1729;--text:#152033;--muted:#718096;--border:#dfe5ed;
  --blue:#2563eb;--blue-hover:#1d4ed8;--blue-soft:#edf4ff;--green:#18a957;--green-soft:#eafaf1;
  --red:#dc3545;--red-soft:#fff0f2;--yellow:#e5a500;--shadow:0 10px 30px rgba(15,23,42,.06);
  --radius:16px;color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#0b1322;--surface:#121d30;--surface-soft:#172337;--surface-strong:#1b2a40;
  --navy:#0b1527;--navy-2:#07101d;--text:#f2f5f9;--muted:#9eabc0;--border:#26364d;
  --blue:#4d83ff;--blue-hover:#6a98ff;--blue-soft:#182d50;--green:#2bc56c;--green-soft:#103524;
  --red:#ff6473;--red-soft:#3a1720;--yellow:#f2bd3d;--shadow:0 12px 32px rgba(0,0,0,.22);color-scheme:dark;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:"Cairo","Tajawal","Segoe UI",Arial,sans-serif;transition:background .2s,color .2s}a{color:inherit}.page{width:min(1120px,calc(100% - 32px));margin:auto;padding:24px 0 56px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.brand h1{margin:0;font-size:28px;font-weight:900;letter-spacing:-.5px}.brand p{margin:3px 0 0;color:var(--muted);font-size:12px}.top-actions{display:flex;align-items:center;gap:8px}.theme-toggle,.icon-btn{width:42px;height:42px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text);cursor:pointer;font-size:20px;display:inline-flex;align-items:center;justify-content:center}.theme-toggle:hover,.icon-btn:hover{background:var(--surface-soft)}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid transparent;border-radius:11px;text-decoration:none;font:inherit;font-weight:900;cursor:pointer;transition:.16s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--blue);color:#fff}.btn-primary:hover{background:var(--blue-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-secondary:hover{background:var(--surface-soft)}.btn-green{background:var(--green);color:#fff}.btn-danger{background:var(--red);color:#fff}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.hero{padding:27px 30px;margin-bottom:16px}.hero h2{margin:0 0 6px;font-size:26px}.hero p{margin:0;color:var(--muted);line-height:1.9}.stats,.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:16px}.stat,.result-stat{padding:18px 20px}.stat small,.result-stat small{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.stat strong{font-size:22px}.section{padding:22px;margin-bottom:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.section h2{margin:0;font-size:20px}.muted{color:var(--muted)}.center{text-align:center}
.form-card{max-width:470px;margin:8vh auto;padding:30px}.form-card .brand{text-align:center;margin-bottom:25px}.form-card h2{margin:0 0 7px}.form-card p{color:var(--muted);line-height:1.8}.form-card input{direction:ltr;text-align:left}.form-card .theme-row{display:flex;justify-content:center;margin-bottom:18px}label{display:block;font-weight:800;margin:15px 0 7px}input[type=text],input[type=password],input[type=url],textarea{width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:11px;padding:13px;font:inherit;outline:none}input:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.1)}input[type=text],input[type=password],input[type=url]{height:50px}textarea{min-height:120px;resize:vertical}.form-submit{width:100%;margin-top:18px}.alert{padding:13px 15px;border-radius:11px;margin:0 0 17px;line-height:1.7}.alert-error{background:var(--red-soft);border:1px solid color-mix(in srgb,var(--red) 35%,transparent);color:var(--red)}.alert-success{background:var(--green-soft);border:1px solid color-mix(in srgb,var(--green) 35%,transparent);color:var(--green)}
.home-test{padding:30px;text-align:center}.home-test h2{margin:0 0 8px;font-size:23px}.home-test p{margin:0 auto 22px;max-width:720px;color:var(--muted);line-height:1.9}.home-test .btn{width:min(420px,100%)}.history-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface-soft)}
/* quiz */
.quiz-shell{max-width:930px;margin:auto}.quiz-top{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:12px 14px;margin-bottom:14px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:14px}.quiz-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px}.question-count{font-weight:900}.progress-line{height:7px;background:var(--surface-strong);border-radius:999px;overflow:hidden;margin-top:8px}.progress-line span{display:block;height:100%;background:var(--blue);border-radius:inherit;transition:width .25s}.timer-wrap{display:flex;align-items:center;gap:8px}.timer-label{font-size:11px;color:var(--muted)}.timer{min-width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);border:2px solid var(--blue);color:var(--blue);font-size:20px;font-weight:900;box-shadow:var(--shadow)}.timer.warning{border-color:var(--yellow);color:var(--yellow)}.timer.danger{border-color:var(--red);color:var(--red);animation:pulse .8s infinite alternate}@keyframes pulse{to{transform:scale(1.04)}}
.quiz-card{padding:14px}.question-image-wrap{background:var(--surface-soft);border:1px solid var(--border);border-radius:14px;padding:8px}.question-image{display:block;width:100%;max-height:68vh;object-fit:contain;margin:auto;border-radius:9px}.answer-area{padding:17px 3px 2px}.instructions{text-align:center;color:var(--muted);font-size:13px;margin-bottom:12px}.options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.option{height:66px;border:1px solid var(--border);background:var(--surface);border-radius:12px;color:var(--text);font-size:23px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.15s ease}.option:hover{border-color:var(--blue);background:var(--blue-soft)}.option.selected{background:var(--blue-soft);border:2px solid var(--blue);color:var(--blue);box-shadow:0 5px 14px rgba(37,99,235,.12)}.submit-btn{width:100%;margin-top:13px}
/* result */
.result-hero{text-align:center;padding:28px}.result-title{font-size:14px;color:var(--muted)}.result-score{font-size:52px;font-weight:900;margin:3px 0;color:var(--blue);letter-spacing:-1px}.result-message{max-width:650px;margin:auto;line-height:1.8}.result-stat{text-align:center}.result-stat .value{font-size:28px;font-weight:900}.value-green{color:var(--green)}.value-red{color:var(--red)}.good-box{background:var(--green-soft);border:1px solid color-mix(in srgb,var(--green) 35%,transparent);color:var(--green);padding:15px;border-radius:12px;line-height:1.8}.wrong-item{border:1px solid color-mix(in srgb,var(--red) 45%,var(--border));border-radius:15px;overflow:hidden;margin-top:13px;background:var(--surface)}.wrong-head{padding:13px 15px;background:var(--red-soft);color:var(--red);font-weight:900}.wrong-body{padding:15px}.wrong-image{display:block;width:100%;max-height:560px;object-fit:contain;border-radius:10px;background:var(--surface-soft);margin-bottom:13px}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.answer-box{padding:12px;border-radius:10px;background:var(--surface-soft);border:1px solid var(--border);line-height:1.8}.answer-box strong{display:block;margin-bottom:3px}.explanation{padding:14px;border-right:4px solid var(--blue);background:var(--blue-soft);border-radius:10px;line-height:1.9;margin-bottom:12px}.review-btn{background:var(--green);color:#fff}.result-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:18px}.empty{padding:34px;text-align:center;color:var(--muted)}
@media(max-width:800px){.stats,.result-grid{grid-template-columns:1fr}.options{grid-template-columns:repeat(2,1fr)}.answer-grid{grid-template-columns:1fr}.question-image{max-height:none}.quiz-shell{width:100%}}
@media(max-width:560px){.page{width:calc(100% - 16px);padding-top:12px}.topbar{align-items:flex-start}.brand h1{font-size:24px}.top-actions{gap:5px}.theme-toggle,.icon-btn{width:38px;height:38px}.hero,.section,.quiz-card,.result-hero{padding:16px}.hero h2{font-size:22px}.quiz-top{grid-template-columns:1fr auto;gap:8px;padding:9px 10px;border-radius:12px}.quiz-meta{font-size:12px}.timer{min-width:52px;height:52px;font-size:18px}.timer-label{display:none}.option{height:58px;font-size:20px}.instructions{font-size:12px}.form-card{margin:5vh auto;padding:22px}.history-row{align-items:flex-start;flex-direction:column}.result-score{font-size:45px}}
.expiry-box{margin-top:18px;padding:14px 16px;border:1px solid var(--border);background:var(--surface-soft);border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:15px}.expiry-box small{display:block;color:var(--muted);font-size:11px}.expiry-box strong{display:block;margin-top:4px;font-size:13px}.countdown{font-family:ui-monospace,monospace;font-weight:900;color:var(--blue);font-size:17px;direction:ltr;white-space:nowrap}@media(max-width:560px){.expiry-box{align-items:flex-start;flex-direction:column}.countdown{font-size:15px}}

/* Candidate identity + professional floating support */
.candidate-identity{margin:-4px 0 16px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,var(--surface),var(--surface-soft));}
.candidate-identity small{display:block;color:var(--muted);font-size:10px;font-weight:800;margin-bottom:3px}
.candidate-identity strong{display:block;font-size:20px;letter-spacing:.5px;color:var(--blue);direction:ltr;text-align:right}
.candidate-identity span{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.code-copy{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;padding:10px 14px;font:inherit;font-size:11px;font-weight:900;cursor:pointer;white-space:nowrap}
.code-copy:hover{border-color:var(--blue);color:var(--blue)}
@keyframes supportIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.chat-close{width:34px;height:34px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;cursor:pointer}

/* Candidate home responsive polish V8: keep desktop hierarchy and make phone layout clean. */
.results-preview .section-title{margin-bottom:12px}
.latest-result-row{min-height:66px;grid-template-columns:1fr auto}
.latest-result-row > div{display:flex;align-items:center;gap:12px;min-width:0}
.latest-result-row .history-date{margin:0}
.results-hero{padding:22px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.results-hero h2{margin:0 0 4px;font-size:22px}
.results-hero p{margin:0;line-height:1.8}
.results-count{padding:8px 12px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:10px;font-weight:900;white-space:nowrap}
.all-history-row{min-height:62px}
.history-main{display:flex;align-items:center;gap:12px;min-width:0}
.history-main .history-date{margin:0}
@media(max-width:820px){
  .home-stats{grid-template-columns:1fr 1fr}
  .service-grid,.service-grid-four{grid-template-columns:1fr}
  .service-card{grid-template-columns:52px minmax(0,1fr) auto;min-height:82px}
  .service-action{width:auto;min-width:82px}
  .home-header{grid-template-columns:1fr auto}
  .home-brand{grid-column:1/-1;grid-row:1}
  .header-right{grid-column:2;grid-row:2}
  .header-left{grid-column:1;grid-row:2}
  .home-brand h1{font-size:23px}
}
@media(max-width:560px){
  .home-page{width:calc(100% - 18px);padding-top:10px;padding-bottom:32px}
  .home-header{grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-bottom:12px}
  .home-brand{padding-bottom:3px}
  .home-brand h1{font-size:21px}
  .home-brand p{font-size:9px}
  .candidate-meta{gap:7px;max-width:155px}
  .candidate-avatar{width:36px;height:36px;border-radius:11px}
  .candidate-info strong{font-size:11px}
  .candidate-info small{font-size:8px}
  .header-right{gap:5px}
  .header-right .theme-toggle{display:inline-flex}
  .header-right .btn{min-height:36px;padding:0 10px;font-size:10px}
  .header-countdown{min-width:128px;padding:7px 9px;border-radius:12px}
  .header-countdown strong{font-size:11px}
  .hero-modern{padding:20px 16px;margin-bottom:10px;border-radius:18px}
  .hero-modern h2{font-size:20px}
  .hero-modern p{font-size:10px;line-height:1.8}
  .hero-actions{margin-top:14px;flex-direction:row;align-items:center}
  .hero-copy{width:auto;height:34px;padding:0 10px;font-size:9px}
  .home-stats{grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}
  .home-stat{padding:11px 10px;border-radius:13px;min-width:0}
  .home-stat small{font-size:8px;white-space:nowrap}
  .home-stat strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-stat.remaining-card strong{font-size:20px}
  .home-section{padding:13px;margin-bottom:10px;border-radius:15px}
  .section-title{margin-bottom:10px;align-items:center}
  .section-title h2{font-size:15px}
  .section-title p{font-size:9px}
  .service-grid,.service-grid-four{gap:8px}
  .service-card{grid-template-columns:46px minmax(0,1fr) auto;gap:9px;padding:10px 11px;border-radius:14px;min-height:76px}
  .service-icon{width:46px;height:46px;border-radius:12px;font-size:10px}
  .service-top{gap:5px}
  .service-top strong{font-size:11px}
  .service-content p{font-size:8px;line-height:1.5;margin-top:3px}
  .service-badge{font-size:7px;padding:3px 5px}
  .service-action{height:32px;min-width:68px;padding:0 7px;font-size:8px;border-radius:9px}
  .latest-result-row{min-height:58px;padding:10px 11px}
  .latest-result-row > div{gap:9px}
  .history-row strong{font-size:11px}
  .history-score{font-size:11px}
  .history-date{font-size:8px}
  .results-hero{padding:16px;align-items:flex-start}
  .results-hero h2{font-size:19px}
  .results-hero p{font-size:9px}
  .results-count{font-size:8px;padding:6px 9px}
  .all-history-row{min-height:58px}
  .all-history-row .history-main{gap:9px}
}

/* Mobile service preview: 2 columns x 2 rows */
@media (max-width:560px){
  .service-grid,.service-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .service-card{grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;min-height:156px!important;align-content:start!important}
  .service-icon{width:42px!important;height:42px!important;border-radius:12px!important;font-size:9px!important}
  .service-top strong{font-size:11px!important}
  .service-content p{font-size:8px!important;line-height:1.45!important;margin-top:3px!important}
  .service-badge{font-size:7px!important;padding:3px 5px!important}
  .service-action{grid-column:auto!important;width:100%!important;min-width:0!important;height:32px!important;padding:0 6px!important;font-size:8px!important;border-radius:9px!important;align-self:end!important}
}

/* Dark mode toggle: candidate dashboard mobile */
@media(max-width:560px){.home-header .header-right .theme-toggle{display:inline-flex!important;width:36px;height:36px;flex:0 0 36px;font-size:17px}.home-header .header-right{flex-wrap:nowrap}.home-header .header-right .btn{flex:0 0 auto}}

/* Locked dashboard refinement: compact account + exam quota in one full-width card */
.account-summary-card{padding:14px 16px;margin-bottom:14px;overflow:hidden}
.account-summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.account-summary-stats .home-stat{min-width:0;padding:12px 11px;border-radius:13px;background:var(--surface-soft);border:1px solid var(--border);text-align:center}
.account-summary-stats .home-stat small{display:block;color:var(--muted);font-size:8px;white-space:nowrap}
.account-summary-stats .home-stat strong{display:block;font-size:16px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-summary-stats .home-stat.remaining-card{background:var(--blue);border-color:var(--blue);color:#fff}
.account-summary-stats .home-stat.remaining-card small{color:#cbdcff}
.account-summary-stats .home-stat.remaining-card strong{color:#fff;font-size:20px}
.exam-quota-inline{margin-top:10px;padding-top:11px;border-top:1px solid var(--border)}
.exam-quota-inline .exam-quota-head{margin-bottom:8px}
.exam-quota-inline .exam-quota-head h2{font-size:13px}
.exam-quota-inline .exam-quota-head p{font-size:8px}
.exam-quota-inline .exam-quota-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.exam-quota-inline .quota-item{padding:9px 8px;border-radius:11px}
.exam-quota-inline .quota-item strong{font-size:17px;margin:3px 0 1px}
.exam-quota-inline .quota-main strong{font-size:21px}
.exam-quota-inline .quota-message{margin-top:7px;padding:7px 9px;font-size:8px}
.summary-alert{margin-top:9px;margin-bottom:0}
@media(max-width:820px){
  .account-summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .account-summary-card{padding:10px;margin-bottom:10px;border-radius:15px}
  .account-summary-stats{gap:6px}
  .account-summary-stats .home-stat{padding:9px 8px;border-radius:11px}
  .account-summary-stats .home-stat small{font-size:7px}
  .account-summary-stats .home-stat strong{font-size:13px;margin-top:3px}
  .account-summary-stats .home-stat.remaining-card strong{font-size:18px}
  .exam-quota-inline{margin-top:8px;padding-top:9px}
  .exam-quota-inline .exam-quota-head{gap:7px;align-items:center}
  .exam-quota-inline .exam-quota-head h2{font-size:11px}
  .exam-quota-inline .exam-quota-head p{font-size:7px}
  .exam-quota-inline .quota-plan{font-size:8px;padding:5px 8px}
  .exam-quota-inline .exam-quota-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .exam-quota-inline .quota-item{padding:8px 5px;border-radius:10px}
  .exam-quota-inline .quota-item small,.exam-quota-inline .quota-item span{font-size:6.5px}
  .exam-quota-inline .quota-item strong{font-size:15px}
  .exam-quota-inline .quota-main strong{font-size:18px}
}

/* V4 compact dashboard account/exam card - UI ONLY */
.account-summary-card{padding:9px 12px!important;margin-bottom:10px!important;border-radius:14px!important}
.account-summary-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
.account-summary-stats .home-stat{padding:7px 5px!important;border-radius:9px!important}
.account-summary-stats .home-stat small{font-size:7px!important;line-height:1.2!important}
.account-summary-stats .home-stat strong{font-size:13px!important;margin-top:2px!important;line-height:1.2!important}
.account-summary-stats .home-stat.remaining-card strong{font-size:16px!important}
.exam-quota-inline{margin-top:7px!important;padding-top:7px!important}
.exam-quota-inline .exam-quota-head{margin-bottom:5px!important;gap:6px!important}
.exam-quota-inline .exam-quota-head h2{font-size:11px!important;margin:0!important}
.exam-quota-inline .exam-quota-head p{font-size:7px!important;margin:2px 0 0!important}
.exam-quota-inline .quota-plan{font-size:7px!important;padding:4px 7px!important}
.exam-quota-inline .exam-quota-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
.exam-quota-inline .quota-item{padding:6px 4px!important;border-radius:9px!important}
.exam-quota-inline .quota-item small,.exam-quota-inline .quota-item span{font-size:6px!important;line-height:1.15!important}
.exam-quota-inline .quota-item strong{font-size:14px!important;margin:2px 0!important;line-height:1.15!important}
.exam-quota-inline .quota-main strong{font-size:17px!important}
.exam-quota-inline .quota-message{margin-top:5px!important;padding:5px 7px!important;font-size:7px!important}
@media(max-width:560px){
  .account-summary-card{padding:8px 9px!important;margin-bottom:8px!important;border-radius:13px!important}
  .account-summary-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
  .account-summary-stats .home-stat{padding:6px 3px!important;border-radius:8px!important}
  .account-summary-stats .home-stat small{font-size:6px!important;white-space:normal!important;line-height:1.15!important}
  .account-summary-stats .home-stat strong{font-size:11px!important;margin-top:2px!important}
  .account-summary-stats .home-stat.remaining-card strong{font-size:14px!important}
  .exam-quota-inline{margin-top:6px!important;padding-top:6px!important}
  .exam-quota-inline .exam-quota-head{margin-bottom:4px!important}
  .exam-quota-inline .exam-quota-head h2{font-size:10px!important}
  .exam-quota-inline .exam-quota-head p{font-size:6px!important}
  .exam-quota-inline .quota-plan{font-size:6px!important;padding:3px 6px!important}
  .exam-quota-inline .exam-quota-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .exam-quota-inline .quota-item{padding:5px 2px!important;border-radius:8px!important}
  .exam-quota-inline .quota-item small,.exam-quota-inline .quota-item span{font-size:5.5px!important}
  .exam-quota-inline .quota-item strong{font-size:12px!important}
  .exam-quota-inline .quota-main strong{font-size:15px!important}
}
/* Header balanced layout: only header arrangement; countdown remains dynamic */
.header-balanced-v4{grid-template-columns:1fr auto 1fr!important;align-items:center}
.header-balanced-v4 .header-exit{justify-self:start}
.header-balanced-v4 .home-brand{justify-self:center;text-align:center}
.header-balanced-v4 .header-theme-right{justify-self:end;display:flex;align-items:center;gap:10px}
.header-balanced-v4 .header-countdown{margin:7px auto 0;min-width:145px;padding:7px 10px}
.header-balanced-v4 .header-countdown strong{gap:5px}
@media(max-width:820px){.header-balanced-v4{grid-template-columns:auto 1fr auto!important}.header-balanced-v4 .home-brand{grid-column:auto;grid-row:auto}.header-balanced-v4 .header-theme-right{grid-column:auto;grid-row:auto}.header-balanced-v4 .candidate-meta{display:none}.header-balanced-v4 .header-countdown{min-width:132px}}
@media(max-width:560px){.header-balanced-v4{gap:6px}.header-balanced-v4 .home-brand h1{font-size:18px}.header-balanced-v4 .home-brand p{font-size:8px}.header-balanced-v4 .header-countdown{min-width:126px;padding:6px 7px}.header-balanced-v4 .header-countdown strong{gap:3px}.header-balanced-v4 .header-countdown .count-unit{gap:2px}.header-balanced-v4 .header-countdown .count-unit b{font-size:12px}.header-balanced-v4 .header-countdown .count-unit em{font-size:7px}.header-balanced-v4 .header-countdown strong>i{font-size:7px}.header-balanced-v4 .theme-toggle{width:38px;height:38px}.header-balanced-v4 .btn{padding:8px 10px;font-size:11px}}

/* V10 Mobile Header Compact: keep theme, brand and exit on one top row */
@media(max-width:560px){
  .header-balanced-v4{
    grid-template-columns:auto 1fr auto!important;
    align-items:center!important;
    gap:5px!important;
    min-height:42px;
  }
  .header-balanced-v4 .header-theme-right{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    gap:4px!important;
  }
  .header-balanced-v4 .home-brand{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    min-width:0!important;
  }
  .header-balanced-v4 .header-exit{
    grid-column:3!important;
    grid-row:1!important;
    justify-self:end!important;
  }
  .header-balanced-v4 .home-brand h1{font-size:16px!important;white-space:nowrap!important;line-height:1.1!important}
  .header-balanced-v4 .home-brand p{font-size:7px!important;line-height:1.1!important;margin-top:2px!important;white-space:nowrap!important}
  .header-balanced-v4 .theme-toggle{width:32px!important;height:32px!important;font-size:15px!important;border-radius:9px!important}
  .header-balanced-v4 .header-exit .btn{min-height:32px!important;height:32px!important;padding:0 8px!important;font-size:10px!important;border-radius:9px!important}
}

/* V11 Mobile Header Clean: remove candidate identity from header on phones; identity stays in account card */
@media (max-width:820px){
  .header-balanced-v4 .candidate-meta{display:none!important;visibility:hidden!important;width:0!important;max-width:0!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
  .header-balanced-v4 .header-theme-right{display:flex!important;align-items:center!important}
}

/* V12 Mobile Header: candidate name must never appear in header on mobile/tablet */
@media (max-width:1024px){
  .header-balanced-v4 .header-theme-right .candidate-meta,
  .header-balanced-v4 .candidate-meta{
    display:none!important;
    visibility:hidden!important;
    position:absolute!important;
    width:0!important;
    height:0!important;
    max-width:0!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
}

/* V13 FINAL MOBILE HEADER: candidate identity is absent from header; name remains only in account card */
@media (max-width:1024px){
  .home-header.header-balanced-v4 .desktop-candidate-meta{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    flex:0 0 0!important;
  }
  .home-header.header-balanced-v4 .header-theme-right{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
  }
}

/* V14: MOBILE HEADER MUST CONTAIN ONLY THEME + CODE SANAE + EXIT */
@media (max-width:1024px){
  .home-header.header-balanced-v4 .candidate-meta,
  .home-header.header-balanced-v4 .desktop-candidate-meta{
    display:none !important;
    visibility:hidden !important;
    position:absolute !important;
    inset:auto !important;
    width:0 !important;
    height:0 !important;
    min-width:0 !important;
    max-width:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
    flex:none !important;
  }
  .home-header.header-balanced-v4{
    grid-template-columns:auto minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:7px !important;
  }
  .home-header.header-balanced-v4 .header-theme-right{
    grid-column:1 !important;
    grid-row:1 !important;
    justify-self:start !important;
    display:flex !important;
    align-items:center !important;
    gap:0 !important;
  }
  .home-header.header-balanced-v4 .home-brand{
    grid-column:2 !important;
    grid-row:1 !important;
    justify-self:center !important;
    min-width:0 !important;
    text-align:center !important;
  }
  .home-header.header-balanced-v4 .header-exit{
    grid-column:3 !important;
    grid-row:1 !important;
    justify-self:end !important;
  }
}
@media (max-width:560px){
  .home-header.header-balanced-v4 .home-brand h1{font-size:16px !important;}
  .home-header.header-balanced-v4 .home-brand p{font-size:7px !important;}
  .home-header.header-balanced-v4 .theme-toggle{width:32px !important;height:32px !important;}
  .home-header.header-balanced-v4 .header-exit .btn{height:32px !important;min-height:32px !important;padding:0 9px !important;font-size:10px !important;}
}

/* Internal offer banner — fixed horizontal card directly under the header. */
.offer-banner{position:relative;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(170px,.85fr) minmax(170px,.9fr)!important;align-items:center!important;gap:14px!important;width:100%!important;box-sizing:border-box!important;margin:0 0 14px!important;padding:10px 13px!important;min-height:68px!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--surface)!important;box-shadow:0 8px 24px rgba(18,31,53,.06)!important;overflow:hidden!important}
.offer-info,.offer-middle,.offer-cta{min-width:0!important}.offer-info{text-align:right!important;display:flex!important;flex-direction:column!important;gap:3px!important}.offer-info strong{font-size:12px!important;line-height:1.4!important}.offer-info span{font-size:9px!important;color:var(--muted)!important;line-height:1.5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.offer-middle{text-align:center!important}.offer-price-row{display:flex!important;align-items:baseline!important;justify-content:center!important;gap:7px!important;line-height:1!important}.offer-price-row del{font-size:8px!important;color:var(--muted)!important}.offer-price-row b{font-size:20px!important;color:var(--blue)!important;font-weight:900!important;direction:ltr!important;white-space:nowrap!important}.offer-meta{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin-top:5px!important;font-size:8px!important;color:var(--muted)!important;white-space:nowrap!important}.offer-timer{font-size:10px!important;font-weight:900!important;font-variant-numeric:tabular-nums!important;color:var(--red)!important;direction:ltr!important}.offer-stock b{color:var(--text)!important}.offer-cta{display:flex!important;align-items:center!important;gap:7px!important;direction:ltr!important}.offer-whatsapp{min-height:36px!important;padding:0 12px!important;border-radius:10px!important;background:#159447!important;color:#fff!important;text-decoration:none!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important;flex:1 1 auto!important}.offer-close{width:25px!important;height:25px!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:18px!important;cursor:pointer!important;flex:0 0 25px!important}
@media(max-width:650px){.offer-banner{grid-template-columns:minmax(0,1.2fr) minmax(100px,.8fr) minmax(125px,1fr)!important;gap:7px!important;padding:8px 9px!important;min-height:60px!important;border-radius:13px!important}.offer-info strong{font-size:10px!important}.offer-info span{font-size:7.5px!important}.offer-price-row{gap:4px!important}.offer-price-row del{font-size:7px!important}.offer-price-row b{font-size:16px!important}.offer-meta{gap:4px!important;margin-top:4px!important;font-size:7px!important}.offer-timer{font-size:8px!important}.offer-whatsapp{min-height:31px!important;padding:0 7px!important;font-size:8px!important}.offer-close{width:21px!important;height:21px!important;flex-basis:21px!important;font-size:15px!important}}

/* V49: simple offer editor — keep layout fixed, expose only essential typography controls */
.offer-advanced-layout,
.offer-placement-editor,
.offer-layout-controls,
.offer-position-controls,
.offer-layout-preview-controls,
.offer-desktop-mobile-preview,
.offer-responsive-preview {
  display:none !important;
}
.offer-simple-controls { display:block !important; }

/* Candidate Home — mobile service grid: 2 columns x 2 rows, compact and readable. */
@media (max-width:560px){
  .services-home .service-grid,
  .services-home .service-grid-four{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
  }
  .services-home .service-card{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto 1fr auto!important;
    min-width:0!important;
    min-height:174px!important;
    height:174px!important;
    padding:11px!important;
    gap:6px!important;
    border-radius:14px!important;
    overflow:hidden!important;
    align-items:start!important;
  }
  .services-home .service-icon{
    grid-column:1!important;
    grid-row:1!important;
    width:46px!important;
    height:46px!important;
    margin:0!important;
    border-radius:12px!important;
  }
  .services-home .service-icon svg{width:29px!important;height:29px!important}
  .services-home .service-content{
    grid-column:1!important;
    grid-row:2 / span 2!important;
    padding:0!important;
    min-width:0!important;
    width:100%!important;
    text-align:right!important;
  }
  .services-home .service-content:before{
    font-size:18px!important;
    line-height:1!important;
    margin-bottom:3px!important;
  }
  .services-home .service-top strong{
    font-size:13px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  .services-home .service-badge{
    margin-top:4px!important;
    padding:3px 6px!important;
    font-size:6.5px!important;
    line-height:1.2!important;
  }
  .services-home .service-content p{
    margin:4px 0 0!important;
    max-width:none!important;
    font-size:8px!important;
    line-height:1.45!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
  }
  .services-home .service-action{
    grid-column:1!important;
    grid-row:4!important;
    width:100%!important;
    min-width:0!important;
    height:31px!important;
    min-height:31px!important;
    margin:0!important;
    padding:0 6px!important;
    border-radius:9px!important;
    font-size:8px!important;
    white-space:nowrap!important;
  }
}

@media (max-width:380px){
  .services-home .service-grid,
  .services-home .service-grid-four{gap:7px!important}
  .services-home .service-card{min-height:210px!important;height:210px!important;padding:9px!important}
  .services-home .service-icon{width:42px!important;height:42px!important}
  .services-home .service-icon svg{width:27px!important;height:27px!important}
  .services-home .service-top strong{font-size:12px!important}
  .services-home .service-content:before{font-size:16px!important}
  .services-home .service-content p{font-size:7.5px!important;line-height:1.4!important}
  .services-home .service-action{height:29px!important;min-height:29px!important;font-size:7.5px!important}
}
