﻿/* Examaya — frontend (scoped, theme-friendly) */
.examaya-wrap-front{font-family:inherit;color:inherit;line-height:1.5;max-width:1200px;margin:0 auto}
.examaya-wrap-front *{box-sizing:border-box}
.examaya-wrap-front a,
.examaya-wrap-front a:hover,
.examaya-wrap-front a:focus,
.examaya-wrap-front a:active{text-decoration:none!important}
.examaya-wrap-front{
  --examaya-btn-bg:#2271b1;
  --examaya-btn-text:#fff;
  --examaya-btn-border:#2271b1;
  --examaya-btn-hover-bg:#135e96;
  --examaya-btn-hover-text:#fff;
  --examaya-btn-hover-border:#135e96;
  --examaya-btn-focus:#135e96;
  --examaya-btn-radius:8px;
  --examaya-btn-py:10px;
  --examaya-btn-px:16px;
  --examaya-btn-font-size:14px;
}
.examaya-card{background:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:18px;margin-bottom:18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.examaya-wrap-front .examaya-btn,
.examaya-wrap-front a.examaya-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:var(--examaya-btn-py) var(--examaya-btn-px);border:1px solid var(--examaya-btn-border);background:var(--examaya-btn-bg);color:var(--examaya-btn-text);border-radius:var(--examaya-btn-radius);cursor:pointer;text-decoration:none!important;font-size:var(--examaya-btn-font-size);font-weight:600;line-height:1.2;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,transform .06s}
.examaya-wrap-front .examaya-btn:hover,
.examaya-wrap-front a.examaya-btn:hover{background:var(--examaya-btn-hover-bg);border-color:var(--examaya-btn-hover-border);color:var(--examaya-btn-hover-text);text-decoration:none!important}
.examaya-wrap-front .examaya-btn:active,
.examaya-wrap-front a.examaya-btn:active{transform:translateY(1px)}
.examaya-wrap-front .examaya-btn:focus,
.examaya-wrap-front a.examaya-btn:focus{outline:none}
.examaya-wrap-front .examaya-btn:focus-visible,
.examaya-wrap-front a.examaya-btn:focus-visible{outline:2px solid var(--examaya-btn-focus);outline-offset:2px;box-shadow:0 0 0 3px rgba(19,94,150,.22)}
.examaya-wrap-front .examaya-btn:disabled,
.examaya-wrap-front .examaya-btn[disabled]{opacity:.65;cursor:not-allowed;transform:none}
.examaya-wrap-front .examaya-btn.examaya-btn-sm{padding:5px 10px;font-size:12px;min-height:32px;gap:5px}
.examaya-btn-primary{background:var(--examaya-btn-bg);border-color:var(--examaya-btn-border);color:var(--examaya-btn-text)}
.examaya-btn-primary:hover{background:var(--examaya-btn-hover-bg);border-color:var(--examaya-btn-hover-border);color:var(--examaya-btn-hover-text)}
.examaya-btn-primary:focus-visible{outline:2px solid var(--examaya-btn-focus);outline-offset:2px}
.examaya-btn-secondary{background:#f6f8fb;border-color:#cfd9e3;color:#1f2b37}
.examaya-btn-secondary:hover{background:#ebf1f7;border-color:#b9c8d7;color:#14212d}
.examaya-btn-block{display:block;width:100%;text-align:center;margin-top:6px}
.examaya-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;background:#eef;color:#334;text-transform:uppercase;letter-spacing:.03em;font-weight:600}
.examaya-badge-free{background:#0a7a3b;color:#fff}
.examaya-badge-owned{background:#1e8cbe;color:#fff}
.examaya-badge-paid,.examaya-badge-pass,.examaya-badge-submitted{background:#d4edda;color:#155724}
.examaya-badge-pending,.examaya-badge-ongoing{background:#fff3cd;color:#856404}
.examaya-badge-failed,.examaya-badge-fail,.examaya-badge-refunded,.examaya-badge-timed_out{background:#f8d7da;color:#721c24}
.examaya-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.examaya-toolbar input,.examaya-toolbar select{padding:8px;border:1px solid #ccd0d4;border-radius:6px;font-size:14px}
.examaya-toolbar input:focus-visible,.examaya-toolbar select:focus-visible{outline:2px solid #2271b1;outline-offset:1px}
.examaya-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.examaya-card-exam{padding:0;overflow:hidden;display:flex;flex-direction:column}
.examaya-thumb{aspect-ratio:16/9;background-size:cover;background-position:center;background-color:#eef1f5}
.examaya-thumb-placeholder{background:linear-gradient(135deg,#dbe5ec,#eef1f5)}
.examaya-thumb-large{aspect-ratio:21/9;border-radius:8px;margin-bottom:14px}
.examaya-card-body{padding:14px;flex:1;display:flex;flex-direction:column;gap:8px}
.examaya-card-body h3{margin:0;font-size:16px}
.examaya-card-body h3 a{color:inherit;text-decoration:none}
.examaya-meta{font-size:13px;color:#646970}
.examaya-card-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto}
.examaya-exam-card .examaya-card-footer{justify-content:flex-start}
.examaya-price{font-weight:700}
.examaya-price-big{font-size:26px;font-weight:700;text-align:center;margin-bottom:10px}
.examaya-detail{display:grid;grid-template-columns:2fr 1fr;gap:24px}
@media (max-width:780px){.examaya-detail{grid-template-columns:1fr}}
.examaya-mini-lb{padding-left:18px;margin:0}
.examaya-mini-lb li{margin:4px 0}
.examaya-pagination{margin-top:18px;display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.examaya-pagination .page-numbers{padding:6px 12px;border:1px solid #ccd0d4;border-radius:4px;text-decoration:none;color:inherit}
.examaya-pagination .current{background:#2271b1;color:#fff;border-color:#2271b1}

.examaya-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e6e6e6;border-radius:8px;overflow:hidden}
.examaya-table th,.examaya-table td{padding:10px 12px;border-bottom:1px solid #f0f0f1;text-align:left;font-size:14px}
.examaya-table thead th{background:#f6f7f7;font-weight:600}
.examaya-leaderboard tr.me{background:#fff8e1}
.examaya-avatar{width:28px;height:28px;border-radius:50%;vertical-align:middle;margin-right:6px}

.examaya-form label{display:block;margin-bottom:8px;font-weight:600;font-size:14px}
.examaya-form input[type=text],.examaya-form input[type=email],.examaya-form input[type=password],.examaya-form input[type=url],.examaya-form input[type=number],.examaya-form textarea,.examaya-form select{width:100%;padding:9px;border:1px solid #ccd0d4;border-radius:6px;font-size:14px;margin-top:4px;font-weight:normal}
.examaya-error{background:#f8d7da;color:#721c24;padding:10px;border-radius:6px;margin-bottom:10px}
.examaya-success{background:#d4edda;color:#155724;padding:10px;border-radius:6px;margin-bottom:10px}

.examaya-tabs{display:flex;gap:4px;border-bottom:1px solid #e6e6e6;margin-bottom:14px}
.examaya-tab{background:none;border:0;padding:10px 14px;cursor:pointer;font-size:14px;border-bottom:2px solid transparent;color:#646970}
.examaya-tab.active{color:#2271b1;border-bottom-color:#2271b1}
.examaya-tab:focus-visible{outline:2px solid #2271b1;outline-offset:2px;border-radius:3px}
.examaya-tab-pane{display:none}
.examaya-tab-pane.active{display:block}

/* Result */
.examaya-score-big{font-size:54px;font-weight:800;text-align:center;margin:8px 0}
.examaya-score-big.pass{color:#155724}
.examaya-score-big.fail{color:#721c24}
.examaya-status{text-align:center}
.examaya-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0;text-align:center}
.examaya-result-grid div{padding:14px;background:#f6f7f7;border-radius:6px}
.examaya-result-grid strong{font-size:22px;display:block}

/* Result hero card */
.examaya-result-hero{background:#fff;border:1px solid #e6e6e6;border-radius:12px;padding:40px 32px 32px;text-align:center;margin-bottom:20px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.examaya-result-hero.pass{border-top:4px solid #1a7f37}
.examaya-result-hero.fail{border-top:4px solid #c0392b}
.examaya-result-score{font-size:72px;font-weight:800;line-height:1;margin-bottom:12px;color:#1d2327}
.examaya-result-score span{font-size:36px;vertical-align:super;font-weight:600;color:#8c939b}
.examaya-result-verdict{margin:8px 0}
.examaya-result-verdict .examaya-badge{font-size:13px;padding:5px 16px;border-radius:20px}
.examaya-result-exam-title{margin:16px 0 4px;font-size:20px;font-weight:600;color:#1d2327}
.examaya-result-passing-note{font-size:13px;color:#8c939b;margin:0}
.examaya-result-page{max-width:1120px}
.examaya-result-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
@media(max-width:640px){.examaya-result-stats-row{grid-template-columns:repeat(2,1fr)}}
.examaya-result-stat{background:#fff;border:1px solid #e6e6e6;border-radius:8px;padding:16px 12px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.examaya-result-stat .val{display:block;font-size:28px;font-weight:700;color:#1d2327;line-height:1}
.examaya-result-stat .lbl{display:block;font-size:12px;color:#8c939b;margin-top:4px;text-transform:uppercase;letter-spacing:.05em}
.examaya-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.examaya-result-action-bar{justify-content:flex-start;align-items:center;gap:10px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.examaya-result-action-bar .examaya-btn{white-space:nowrap;flex:0 0 auto}
.examaya-share-btn{justify-content:center;min-width:210px}
.examaya-share-icon{display:inline-block;flex:0 0 auto;width:22px;height:22px}
.examaya-wrap-front .examaya-btn.examaya-share-twitter{background:#111827;border-color:#111827;color:#fff}
.examaya-wrap-front .examaya-btn.examaya-share-twitter:hover{background:#000;border-color:#000;color:#fff}
.examaya-wrap-front .examaya-btn.examaya-share-facebook{background:#1877f2;border-color:#1877f2;color:#fff}
.examaya-wrap-front .examaya-btn.examaya-share-facebook:hover{background:#166fe5;border-color:#166fe5;color:#fff}
.examaya-wrap-front .examaya-btn.examaya-share-whatsapp{background:#25d366;border-color:#25d366;color:#fff}
.examaya-wrap-front .examaya-btn.examaya-share-whatsapp:hover{background:#1ebe5d;border-color:#1ebe5d;color:#fff}
.examaya-answer-review-card{margin-top:24px}
/* Review marks — CSS-only icons, no emoji */
.review-mark{display:inline-block;width:16px;height:16px;border-radius:50%;margin-left:5px;vertical-align:middle;flex-shrink:0;position:relative}
.review-mark::after{content:'';position:absolute;inset:0;background:currentColor;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.review-mark.correct-mark{color:#1a7f37;background:#d4edda}
.review-mark.correct-mark::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5,5 4,8 8.5,2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='1.5,5 4,8 8.5,2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.review-mark.wrong-mark{color:#c0392b;background:#fde8e8}
.review-mark.wrong-mark::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cline x1='2' y1='2' x2='8' y2='8' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='8' y1='2' x2='2' y2='8' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cline x1='2' y1='2' x2='8' y2='8' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='8' y1='2' x2='2' y2='8' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}

/* ================================================================
   LAYOUT VARIANTS — scoped to .examaya-wrap-front, no theme conflicts
================================================================ */

/* List layout: stack cards horizontally */
.examaya-wrap-front.examaya-layout-list .examaya-grid{grid-template-columns:1fr}
.examaya-wrap-front.examaya-layout-list .examaya-card-exam{flex-direction:row}
.examaya-wrap-front.examaya-layout-list .examaya-thumb{width:140px;flex-shrink:0;aspect-ratio:auto;min-height:100px;border-radius:0}
.examaya-wrap-front.examaya-layout-list .examaya-card-body{padding:14px 18px}

/* Compact layout: no thumbnail, single column, title + meta on left, action on right */
.examaya-wrap-front.examaya-layout-compact .examaya-grid{grid-template-columns:1fr;gap:6px}
.examaya-wrap-front.examaya-layout-compact .examaya-thumb{display:none}
.examaya-wrap-front.examaya-layout-compact .examaya-card-exam{border-radius:8px}
.examaya-wrap-front.examaya-layout-compact .examaya-card-body{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto;
  grid-template-areas:"title footer" "meta footer";
  padding:10px 14px;
  gap:0 14px;
  align-items:center
}
.examaya-wrap-front.examaya-layout-compact .examaya-card-body h3{grid-area:title;margin:0;font-size:14px}
.examaya-wrap-front.examaya-layout-compact .examaya-meta{grid-area:meta;font-size:12px;margin:2px 0 0}
.examaya-wrap-front.examaya-layout-compact .examaya-card-footer{grid-area:footer;margin-top:0;align-items:flex-end;gap:4px}

/* Fixed column overrides */
.examaya-wrap-front.examaya-cols-2 .examaya-grid{grid-template-columns:repeat(2,1fr)}
.examaya-wrap-front.examaya-cols-3 .examaya-grid{grid-template-columns:repeat(3,1fr)}
.examaya-wrap-front.examaya-cols-4 .examaya-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:600px){
  .examaya-wrap-front.examaya-cols-3 .examaya-grid,.examaya-wrap-front.examaya-cols-4 .examaya-grid{grid-template-columns:repeat(2,1fr)}
  .examaya-wrap-front.examaya-cols-2 .examaya-grid{grid-template-columns:1fr}
}

/* Card style variants */
.examaya-wrap-front.examaya-card-minimal .examaya-card-exam{box-shadow:none;border-radius:6px}
.examaya-wrap-front.examaya-card-bordered .examaya-card-exam{border:2px solid #2271b1;box-shadow:none}

/* Hide thumbnail */
.examaya-wrap-front.examaya-no-thumb .examaya-thumb{display:none}

/* Review answer */
.examaya-review{padding-left:22px}
.examaya-review-item{margin:14px 0;padding:14px;border-radius:6px;background:#f6f7f7}
.examaya-review-item.ok{background:#eaf7ed}
.examaya-review-item.no{background:#fdecee}
.examaya-review-item .q-text{font-weight:600;margin-bottom:8px}
.examaya-review-item .q-opts{list-style:none;padding:0;margin:8px 0}
.examaya-review-item .q-opts li{padding:6px 10px;border-radius:4px;margin:3px 0;background:#fff}
.examaya-review-item .q-opts li.correct{background:#d4edda}
.examaya-review-item .q-opts li.chosen.correct{background:#a4dcb6;font-weight:600}
.examaya-review-item .q-opts li.chosen:not(.correct){background:#f8d7da}
.examaya-review-item .q-exp{margin-top:10px;font-size:13px;color:#444;background:#fff;border-radius:4px;padding:8px}
.examaya-review-item .q-essay-ans{font-size:13px;color:#444;margin:8px 0 0}

/* Certificate print */
@media print{
  body:has(#examaya-cert-wrap)>*:not(#examaya-cert-wrap){display:none!important}
  #examaya-cert-wrap{display:block!important;position:absolute;left:0;top:0;width:100%}
  /* Result page print */
  body:not(:has(#examaya-cert-wrap)) .examaya-result-page{max-width:100%;padding:0}
  body:not(:has(#examaya-cert-wrap)) .examaya-result-action-bar{display:none!important}
  body:not(:has(#examaya-cert-wrap)) .examaya-answer-review-card{page-break-before:always}
}

/* ── Profile page ──────────────────────────────────────────────── */
.examaya-profile-hero{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:24px 28px;margin-bottom:24px}
.examaya-profile-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid #e6e6e6;flex-shrink:0}
.examaya-profile-info{flex:1;min-width:160px}
.examaya-profile-name{margin:0 0 4px;font-size:22px;font-weight:700;color:#1d2327}
.examaya-profile-email{margin:0 0 4px;font-size:14px;color:#646970}
.examaya-profile-since{margin:0;font-size:13px;color:#8c939b}
.examaya-profile-stats{display:flex;gap:16px;flex-wrap:wrap;margin-left:auto}
.examaya-profile-stat{text-align:center;min-width:80px}
.examaya-profile-stat .val{display:block;font-size:26px;font-weight:700;color:#1d2327;line-height:1.1}
.examaya-profile-stat .lbl{display:block;font-size:11px;color:#8c939b;margin-top:3px;text-transform:uppercase;letter-spacing:.05em}

/* History rows */
.examaya-profile-history-list{display:flex;flex-direction:column;gap:10px}
.examaya-history-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px;margin-bottom:0}
.examaya-history-meta{flex:1;min-width:180px}
.examaya-history-exam-title{font-weight:600;font-size:14px;color:#1d2327;margin-bottom:3px}
.examaya-history-date{font-size:12px}
.examaya-history-score{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:72px}
.examaya-big-score{font-size:24px;font-weight:800;line-height:1;color:#1d2327}
.examaya-big-score small{font-size:14px;font-weight:600;color:#8c939b;vertical-align:super}
.examaya-big-score.pass{color:#1a7f37}
.examaya-big-score.fail{color:#c0392b}
.examaya-history-actions{display:flex;gap:6px;flex-wrap:wrap}

/* Certificate grid */
.examaya-cert-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.examaya-cert-card{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:0;min-width:0}
.examaya-cert-icon{flex-shrink:0}
.examaya-cert-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.examaya-cert-title{font-weight:600;font-size:15px;color:inherit;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.examaya-cert-card .examaya-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.examaya-cert-card .examaya-btn{flex-shrink:0;white-space:nowrap}

/* Ujian Saya grid */
.examaya-my-exams-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.examaya-my-exam-card{display:flex;flex-direction:column;overflow:hidden;padding:0;margin-bottom:0}
.examaya-my-exam-thumb{aspect-ratio:16/9;background-size:cover;background-position:center;background-color:#eef1f5;flex-shrink:0}
.examaya-thumb-placeholder{display:flex;align-items:center;justify-content:center;color:#b0b8c4}
.examaya-my-exam-body{padding:14px 16px;flex:1;display:flex;flex-direction:column;gap:6px}
.examaya-my-exam-title{margin:0;font-size:15px;font-weight:600;color:#1d2327}
.examaya-my-exam-meta{font-size:13px}
.examaya-my-exam-score{font-size:13px;color:#646970}
.examaya-my-exam-footer{padding:10px 16px 14px;display:flex;align-items:center}
.examaya-pass{color:#1a7f37;font-weight:700}
.examaya-fail{color:#c0392b;font-weight:700}

/* Profile tabs row */
.examaya-profile-tabs{margin-bottom:4px;flex-wrap:wrap}
.examaya-profile-tabs .examaya-tab{flex:1 1 auto;min-width:max-content;text-align:center}

/* Edit profile form */
.examaya-edit-form-wrap{max-width:none}
.examaya-form-section{margin-bottom:28px}
.examaya-form-section-title{font-size:15px;font-weight:700;margin:0 0 16px;color:#1d2327;border-bottom:1px solid #e6e6e6;padding-bottom:8px}
.examaya-form-avatar-row{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.examaya-edit-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #e6e6e6;flex-shrink:0}
.examaya-form-avatar-hint{font-size:13px;color:#646970;display:flex;flex-direction:column;gap:2px}
.examaya-form-avatar-hint strong{font-size:14px;color:#1d2327}
.examaya-form-avatar-hint a{color:#2271b1}
.examaya-form-row{margin-bottom:16px}
.examaya-form-label{display:block;font-size:13px;font-weight:600;color:#1d2327;margin-bottom:5px}
.examaya-form-input{display:block;width:100%;padding:9px 12px;border:1px solid #ccd0d4;border-radius:6px;font-size:14px;color:#1d2327;line-height:1.4;transition:border-color .15s}
.examaya-form-input:focus{border-color:#2271b1;outline:2px solid rgba(34,113,177,.25);outline-offset:0}
.examaya-form-hint{font-size:13px;color:#646970;margin:0 0 14px}
.examaya-password-wrap{position:relative}
.examaya-password-wrap .examaya-form-input{padding-right:42px}
.examaya-pw-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;padding:0;cursor:pointer;color:#8c939b;line-height:0}
.examaya-pw-toggle:hover{color:#2271b1}
.examaya-form-actions{padding-top:8px}

/* Alert messages */
.examaya-alert{padding:12px 16px;border-radius:8px;font-size:14px;margin-bottom:16px;font-weight:500}
.examaya-alert-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}
.examaya-alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}

/* Empty state */
.examaya-empty-state{text-align:center;padding:36px 24px;color:#8c939b}
.examaya-empty-state p{margin:0 0 16px;font-size:15px}

@media(max-width:640px){
  .examaya-filter-bar { flex-direction: column; gap: 10px; }
  .examaya-filter-search-wrap { width: 100%; }
  .examaya-filter-selects { width: 100%; flex-wrap: wrap; }
  .examaya-filter-select { flex: 1; min-width: 120px; }
  .examaya-lb-podium { gap: 6px; }
  .examaya-lb-podium-item { padding: 14px 8px 12px; }
  .examaya-detail-stats { gap: 6px; }
  .examaya-breadcrumb .current { display: none; }
  .examaya-result-hero{padding:28px 18px 22px}
  .examaya-result-score{font-size:56px}
  .examaya-result-score span{font-size:30px}
  .examaya-result-action-bar{justify-content:center;flex-wrap:wrap;overflow:visible;padding-bottom:0}
  .examaya-result-action-bar .examaya-btn{flex:1 1 calc(50% - 6px);min-width:140px}
  .examaya-share-btn{min-width:0}
}

@media(max-width:430px){
  .examaya-result-action-bar .examaya-btn{flex:1 1 100%}
  .examaya-share-btn{flex:1 1 100%}
}
@media(min-width:641px) and (max-width:780px){
  .examaya-result-action-bar{flex-wrap:wrap;overflow:visible;padding-bottom:0}
  .examaya-result-action-bar .examaya-btn{flex:1 1 auto}
  .examaya-share-btn{min-width:0;flex:1 1 calc(50% - 5px)}
}

/* ================================================================
   REDESIGN — compact filter, modern cards, detail, leaderboard
================================================================ */

/* ── Filter bar ─────────────────────────────────────────────────── */
.examaya-filter-bar{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px 14px;margin-bottom:20px;flex-wrap:wrap}
.examaya-filter-search-wrap{position:relative;flex:1 1 220px;min-width:160px}
.examaya-filter-search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}
.examaya-filter-input{width:100%;padding:9px 12px 9px 38px!important;border:1px solid #e5e7eb;border-radius:6px;font-size:13px;color:inherit;background:#f9fafb;transition:border-color .15s,background .15s;outline:none;background-image:none!important;-webkit-appearance:none;appearance:none}
.examaya-filter-input::-webkit-search-decoration,
.examaya-filter-input::-webkit-search-cancel-button,
.examaya-filter-input::-webkit-search-results-button,
.examaya-filter-input::-webkit-search-results-decoration{display:none}
.examaya-filter-input:focus{border-color:#2271b1;background:#fff}
.examaya-filter-selects{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.examaya-filter-select{padding:8px 28px 8px 10px;border:1px solid #e5e7eb;border-radius:6px;font-size:13px;color:inherit;background:#f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239ca3af'/%3E%3C/svg%3E") no-repeat right 10px center / 8px;-webkit-appearance:none;appearance:none;cursor:pointer;transition:border-color .15s;outline:none;max-width:180px}
.examaya-filter-select:focus{border-color:#2271b1;background-color:#fff}
.examaya-filter-btn{display:inline-flex;align-items:center;gap:5px;padding:8px 16px;font-size:13px;white-space:nowrap}
.examaya-filter-details{position:relative;display:inline-block}
.examaya-filter-details > summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid #e5e7eb;border-radius:6px;background:#f9fafb;font-size:13px;color:inherit;user-select:none}
.examaya-filter-details > summary::-webkit-details-marker{display:none}
.examaya-filter-details > summary::marker{content:''}
.examaya-filter-details[open] > summary{background:#eef2ff;border-color:#c7d2fe}
.examaya-filter-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#2271b1;color:#fff;font-size:11px;font-weight:700;line-height:1}
.examaya-filter-collapsible{position:absolute;top:calc(100% + 6px);left:0;z-index:30;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);min-width:240px;opacity:1;transform:translateY(0);transition:opacity .15s ease,transform .15s ease}
@starting-style{.examaya-filter-details[open] .examaya-filter-collapsible{opacity:0;transform:translateY(-6px)}}
.examaya-filter-collapsible .examaya-filter-selects{flex-direction:column;gap:8px;align-items:stretch}
.examaya-filter-collapsible .examaya-filter-select{width:100%;max-width:none}
.examaya-filter-reset{justify-content:center;text-align:center}
/* When closed, hide the panel entirely */
.examaya-filter-details:not([open]) > .examaya-filter-collapsible{display:none}
.examaya-filter-toggle{display:none}

/* ── Exam cards ─────────────────────────────────────────────────── */
.examaya-exam-card{transition:transform .15s,box-shadow .15s}
.examaya-exam-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.09)}
.examaya-exam-thumb-link{display:block;position:relative;text-decoration:none}
.examaya-thumb-simple{background:linear-gradient(135deg,#136f6a 0%,#0d5955 100%);display:flex;align-items:center;justify-content:center}
.examaya-card-exam:nth-child(6n+2) .examaya-thumb-simple{background:linear-gradient(135deg,#4f46e5 0%,#3730a3 100%)}
.examaya-card-exam:nth-child(6n+3) .examaya-thumb-simple{background:linear-gradient(135deg,#0284c7 0%,#0369a1 100%)}
.examaya-card-exam:nth-child(6n+4) .examaya-thumb-simple{background:linear-gradient(135deg,#d97706 0%,#b45309 100%)}
.examaya-card-exam:nth-child(6n+5) .examaya-thumb-simple{background:linear-gradient(135deg,#dc2626 0%,#b91c1c 100%)}
.examaya-card-exam:nth-child(6n+6) .examaya-thumb-simple{background:linear-gradient(135deg,#7c3aed 0%,#5b21b6 100%)}
.examaya-thumb-acronym{font-size:38px;font-weight:800;line-height:1;color:#fff;letter-spacing:.03em}
.examaya-thumb-large.examaya-thumb-simple .examaya-thumb-acronym{font-size:64px}
.examaya-thumb-badges{position:absolute;top:8px;left:8px;display:flex;gap:4px;flex-wrap:wrap}
.examaya-thumb-placeholder{display:flex;align-items:center;justify-content:center}
.examaya-empty-state-full{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 24px;margin:0}
.examaya-result-count{font-size:13px;color:#6b7280;margin-bottom:14px}

/* ── Exam detail ────────────────────────────────────────────────── */
.examaya-breadcrumb{display:flex;align-items:center;gap:6px;font-size:13px;color:#6b7280;margin-bottom:20px}
.examaya-breadcrumb a{color:#2271b1;text-decoration:none}
.examaya-breadcrumb a:hover{text-decoration:none}
.examaya-breadcrumb .sep{color:#d1d5db;font-size:16px;line-height:1}
.examaya-breadcrumb .current{color:#374151;font-weight:500}
/* breadcrumb must span both columns of the detail grid */
.examaya-detail .examaya-breadcrumb{grid-column:1 / -1;margin-bottom:4px}
.examaya-detail-title{font-size:26px;font-weight:700;color:#111827;margin:0 0 10px;line-height:1.3}
.examaya-detail-stats{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.examaya-stat-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;background:#f3f4f6;border-radius:20px;font-size:13px;color:#374151;font-weight:500;line-height:1.4}
.examaya-stat-chip svg{color:#6b7280;flex-shrink:0}
.examaya-stat-chip-warn{background:#fef3c7;color:#92400e}
.examaya-stat-chip-warn svg{color:#d97706}
.examaya-desc{line-height:1.75;color:#374151;font-size:15px}
.examaya-desc p{margin:0 0 14px}
/* sidebar CTA */
.examaya-sidebar-cta{position:sticky;top:24px}
.examaya-sidebar-price{font-size:30px;font-weight:800;color:#111827;margin-bottom:16px;line-height:1}
.examaya-price-free{font-size:18px;font-weight:700;color:#059669;background:#ecfdf5;border-radius:8px;padding:8px 14px;text-align:center;display:block}
.examaya-input{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;color:#1d2327;outline:none;transition:.15s}
.examaya-input:focus{border-color:#2271b1;box-shadow:0 0 0 3px rgba(34,113,177,.15)}
.examaya-exam-info-list{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid #f3f4f6;display:flex;flex-direction:column;gap:9px}
.examaya-exam-info-list li{display:flex;align-items:center;gap:8px;font-size:13px;color:#374151}
.examaya-exam-info-list li svg{color:#9ca3af;flex-shrink:0}
/* sidebar mini leaderboard */
.examaya-sidebar-lb-header{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.07em;margin-bottom:10px}
.examaya-mini-lb-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.examaya-mini-lb-item{display:flex;align-items:center;gap:7px;font-size:13px}
.examaya-mini-rank{width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;background:#f3f4f6;color:#6b7280;flex-shrink:0}
.examaya-mini-rank.top-1{background:#fef3c7;color:#92400e}
.examaya-mini-rank.top-2{background:#e5e7eb;color:#374151}
.examaya-mini-rank.top-3{background:#fde8d0;color:#7c2d12}
.examaya-mini-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#374151}
.examaya-mini-score{font-weight:700;color:#1d2327;white-space:nowrap;font-size:13px}

/* ── Leaderboard ────────────────────────────────────────────────── */
.examaya-lb-wrap{max-width:760px}
.examaya-period-pills{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}
.examaya-period-pill{padding:6px 16px;border-radius:20px;font-size:13px;font-weight:500;border:1px solid #e5e7eb;background:#fff;color:#374151;cursor:pointer;text-decoration:none;transition:all .15s}
.examaya-period-pill:hover{border-color:#2271b1;color:#2271b1}
.examaya-period-pill.active{background:#2271b1;border-color:#2271b1;color:#fff}
/* podium */
.examaya-lb-podium{display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:end;gap:10px;margin-bottom:24px;max-width:560px;margin-left:auto;margin-right:auto}
.examaya-lb-podium-item{display:flex;flex-direction:column;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:18px 12px 16px;text-align:center;min-width:0}
.examaya-lb-podium-item.rank-2{order:1}
.examaya-lb-podium-item.rank-1{order:2;background:linear-gradient(180deg,#fffbeb 0%,#fff 60%);border-color:#fbbf24;padding:26px 12px 20px;transform:translateY(-6px)}
.examaya-lb-podium-item.rank-3{order:3}
.examaya-lb-medal{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;margin-bottom:8px}
.examaya-lb-medal.gold{background:#fef3c7;color:#d97706}
.examaya-lb-medal.silver{background:#f3f4f6;color:#6b7280}
.examaya-lb-medal.bronze{background:#fde8d0;color:#c2410c}
.examaya-lb-podium-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #e5e7eb;margin-bottom:8px}
.examaya-lb-podium-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.examaya-lb-podium-score{font-size:18px;font-weight:800;margin-top:6px}
.rank-1 .examaya-lb-podium-score{font-size:22px;color:#d97706}
/* Table-only mode (admin setting) */
.examaya-lb-wrap.examaya-lb-table-only .examaya-lb-podium{display:none}
/* table */
.examaya-lb-table{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;width:100%;border-collapse:collapse}
.examaya-lb-table th{background:#f9fafb;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;padding:10px 16px;text-align:left;border-bottom:1px solid #e5e7eb}
.examaya-lb-table td{padding:12px 16px;font-size:14px;border-bottom:1px solid #f3f4f6;color:#374151;vertical-align:middle}
.examaya-lb-table tr:last-child td{border-bottom:0}
.examaya-lb-table tbody tr:hover td{background:#f9fafb}
.examaya-lb-table tr.me td{background:#eff6ff}
.examaya-lb-table tr.me:hover td{background:#dbeafe}
.examaya-lb-rank-cell{width:52px;text-align:center}
.examaya-lb-rank-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:12px;font-weight:700;background:#f3f4f6;color:#6b7280}
.examaya-lb-rank-badge.gold{background:#fef3c7;color:#92400e}
.examaya-lb-rank-badge.silver{background:#e5e7eb;color:#374151}
.examaya-lb-rank-badge.bronze{background:#fde8d0;color:#7c2d12}
.examaya-lb-user-cell{display:flex;align-items:center;gap:8px}
.examaya-lb-score{font-weight:700;color:#111827;font-variant-numeric:tabular-nums}
.examaya-lb-time{color:#6b7280;font-size:13px;font-variant-numeric:tabular-nums}

/* ── Profile hero improvements ──────────────────────────────────── */
.examaya-profile .examaya-profile-hero{border-top:3px solid #2271b1;background:linear-gradient(135deg,#f0f4ff 0%,#fff 60%)}
.examaya-profile-stat{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:10px 18px;min-width:90px}
.examaya-profile-tabs .examaya-tab{border-radius:6px 6px 0 0;padding:9px 16px;font-size:14px}
.examaya-profile-tabs .examaya-tab.active{background:#2271b1;color:#fff;border-bottom-color:#2271b1}

/* ── Pagination polish ──────────────────────────────────────────── */
.examaya-pagination .page-numbers{border-radius:8px;font-size:13px;transition:background .12s}
.examaya-pagination .page-numbers:hover:not(.current){background:#f3f4f6}

@media(max-width:768px){
  /* Profile hero: stack avatar+info on top, stats grid below */
  .examaya-profile-hero{flex-direction:column;align-items:stretch;gap:18px;padding:20px}
  .examaya-profile-info{text-align:left}
  .examaya-profile-stats{margin-left:0;width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
  .examaya-profile-stat{min-width:0;padding:10px 6px}
  .examaya-profile-stat .val{font-size:20px}
  .examaya-profile-stat .lbl{font-size:10px}
  .examaya-cert-grid{grid-template-columns:1fr}
}

@media(max-width:640px){
  .examaya-filter-bar{flex-direction:column;gap:10px;align-items:stretch}
  .examaya-filter-search-wrap{width:100%;flex:1 1 100%}
  .examaya-filter-details{display:block;width:100%}
  .examaya-filter-details > summary{width:100%;justify-content:center}
  .examaya-filter-collapsible{position:static;box-shadow:none;border-color:#e5e7eb;width:100%;min-width:0;margin-top:8px}
  .examaya-filter-selects{width:100%;flex-direction:column;gap:8px}
  .examaya-filter-select{width:100%;max-width:none;flex:1}
  .examaya-filter-btn{width:100%;justify-content:center}
  .examaya-lb-podium{gap:6px;max-width:100%}
  .examaya-lb-podium-item{padding:12px 6px 10px}
  .examaya-lb-podium-item.rank-1{padding:18px 6px 14px}
  .examaya-lb-podium-name{font-size:12px}
  .examaya-lb-podium-score{font-size:15px}
  .rank-1 .examaya-lb-podium-score{font-size:18px}
  .examaya-lb-podium-avatar{width:36px;height:36px}
  .examaya-detail-stats{gap:6px}
  .examaya-detail-title{font-size:20px}
  .examaya-lb-table th,.examaya-lb-table td{padding:10px 10px}
  /* Profile hero: 2x2 stats */
  .examaya-profile-stats{grid-template-columns:repeat(2,1fr)}
  /* Profile tabs scroll horizontally */
  .examaya-profile-tabs{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .examaya-profile-tabs .examaya-tab{flex:0 0 auto}
}

/* ── examaya-table \u2192 card view on mobile (\u2264600px) ── */
@media(max-width:600px){
  .examaya-table,
  .examaya-table tbody{display:block;width:100%}
  .examaya-table thead{display:none}
  .examaya-table tr{
    display:block;
    border:1px solid #e6e6e6;
    border-radius:8px;
    margin-bottom:10px;
    overflow:hidden;
    background:#fff;
  }
  .examaya-table tr:last-child{margin-bottom:0}
  .examaya-table td{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:8px 12px;
    border-bottom:1px solid #f0f0f1;
    font-size:13px;
    white-space:normal!important;
    width:100%;
    box-sizing:border-box;
  }
  .examaya-table td:last-child{border-bottom:0}
  /* First cell = card title */
  .examaya-table tr > td:first-child{
    background:#f6f7f7;
    border-bottom:1px solid #e6e6e6;
    font-weight:600;
    padding:10px 12px;
  }
  .examaya-table td[data-label]::before{
    content:attr(data-label);
    display:block;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#8c939b;
    min-width:68px;
    flex-shrink:0;
    padding-top:1px;
    white-space:nowrap;
  }
  .examaya-table td[data-label=""]::before{display:none}
  .examaya-table td[data-label=""]{gap:0}
  /* Leaderboard table: keep scrollable */
  .examaya-lb-wrap{max-width:100%}
  .examaya-lb-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}
  .examaya-lb-table{min-width:420px}
  /* Profile history rows: stack vertically */
  .examaya-history-row{flex-direction:column;align-items:stretch;gap:10px}
  .examaya-history-score{flex-direction:row;align-items:center;gap:10px;min-width:0}
  .examaya-history-actions{width:100%}
  .examaya-history-actions .examaya-btn{flex:1;text-align:center}
  /* Result stats */
  .examaya-result-grid{grid-template-columns:repeat(2,1fr)}
  /* Cert card: stack on tiny screens */
  .examaya-cert-card{flex-direction:column;align-items:flex-start;gap:10px}
  .examaya-cert-card .examaya-btn{width:100%;text-align:center}
  /* My-exams grid 1col */
  .examaya-my-exams-grid{grid-template-columns:1fr}
}

/* ── Payment Success page ───────────────────────────────────────── */
.examaya-checkout-card{max-width:860px;margin:0 auto;padding:24px}
.examaya-checkout-head{padding-bottom:14px;border-bottom:1px solid #eef0f2;margin-bottom:14px}
.examaya-checkout-title{margin:0 0 6px;font-size:32px;line-height:1.15;letter-spacing:-.02em}
.examaya-checkout-exam{margin:0;color:#5e6670;font-size:15px}
.examaya-checkout-exam strong{color:#1f2937}
.examaya-checkout-sep{margin:0 6px;color:#a0a8b1}
.examaya-checkout-price{font-weight:700;color:#0f3d62}
.examaya-checkout-form{display:flex;flex-direction:column;gap:14px}
.examaya-payment-methods{display:grid;gap:10px}
.examaya-method-option{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d8dee4;border-radius:10px;background:#fafbfc;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.examaya-method-option:hover{border-color:#8fa8bf;background:#f4f8fb}
.examaya-method-option input{margin-top:3px}
.examaya-method-option span{line-height:1.4}
.examaya-method-option:has(input:checked){border-color:#2271b1;background:#eef6fc;box-shadow:0 0 0 1px rgba(34,113,177,.2) inset}
.examaya-coupon-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0}
.examaya-coupon-input{padding:10px 12px;border:1px solid #ccd0d4;border-radius:8px;text-transform:uppercase;max-width:240px;min-width:220px}
.examaya-coupon-msg{font-size:13px;min-height:18px}
.examaya-checkout-total{margin:0;font-size:16px;color:#1f2937}
.examaya-checkout-total strong{font-size:20px}
.examaya-checkout-submit{margin-top:4px;align-self:flex-start;padding:11px 18px;font-size:15px;font-weight:600}
.examaya-checkout-alt-gateway{margin-top:12px;padding-top:10px;border-top:1px dashed #d5dce3}
@media(max-width:640px){
  .examaya-checkout-card{padding:16px}
  .examaya-checkout-title{font-size:26px}
  .examaya-coupon-input{max-width:100%;min-width:0;width:100%}
  .examaya-checkout-submit{width:100%;text-align:center}
}

.examaya-payment-success .examaya-success-card{text-align:center;padding:36px 28px 32px;max-width:640px;margin:0 auto}
.examaya-success-icon{font-size:56px;line-height:1;margin-bottom:12px}
.examaya-success-card h2{margin:0 0 8px;font-size:26px;font-weight:700;color:#1d2327}
.examaya-success-subtitle{color:#646970;margin:0 0 24px;font-size:15px}
.examaya-success-summary{margin-bottom:24px;text-align:left}
.examaya-summary-table{width:100%;border-collapse:collapse;font-size:14px}
.examaya-summary-table th,.examaya-summary-table td{padding:8px 12px;border-bottom:1px solid #f0f0f1;vertical-align:top}
.examaya-summary-table th{width:40%;font-weight:600;color:#646970;background:#fafafa}
.examaya-summary-table td{color:#1d2327}
.examaya-exam-intro{text-align:left;background:#f6f7f7;border-radius:8px;padding:14px 18px;margin-bottom:24px}
.examaya-exam-intro h3{margin:0 0 8px;font-size:15px;font-weight:700}
.examaya-intro-content{font-size:14px;color:#444;line-height:1.6}
.examaya-success-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.examaya-btn-lg{padding:12px 28px;font-size:16px;font-weight:600}
.examaya-success-footer{font-size:13px;color:#8c939b;margin:0}
/* Notice boxes (used in checkout too) */
.examaya-notice{padding:10px 14px;border-radius:6px;font-size:14px;margin-bottom:10px}
.examaya-notice-warning{background:#fff3cd;color:#856404;border:1px solid #ffc107}
.examaya-notice-info{background:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}
@media(max-width:540px){
  .examaya-success-actions{flex-direction:column;align-items:stretch}
  .examaya-success-actions .examaya-btn{text-align:center}
}
