/* ============================================================
   Gulf Job Works v1 — Premium Professional Theme
   Scoped to #oe-root — zero bleed to/from WordPress theme
   Features: Dark/Light mode switcher, Glass effects, Premium UI
============================================================ */

/* ── CSS Reset (scoped) ───────────────────────────────────── */
#oe-root *,#oe-root *::before,#oe-root *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
#oe-root a { text-decoration: none; }
#oe-root input,#oe-root select,#oe-root textarea,#oe-root button {
    font-family: inherit; font-size: inherit;
}

/* ── Design Tokens — DARK MODE (default) ─────────────────── */
#oe-root {
    --accent:      #1a6eb5;
    --accent2:     #1258a0;
    --accent3:     #f59e0b;
    --accent-glow: rgba(26,110,181,.35);

    --surface:     #0b0f1a;
    --surface2:    #111827;
    --surface3:    #1a2235;
    --surface4:    #1e2840;

    --border:      rgba(255,255,255,.07);
    --border2:     rgba(255,255,255,.12);
    --border3:     rgba(255,255,255,.18);

    --text:        #e8edf5;
    --text2:       #8898b8;
    --text3:       #4a5568;

    --success:     #10b981;
    --warning:     #f59e0b;
    --danger:      #ef4444;
    --info:        #3b82f6;

    --glass:       rgba(17,24,39,.72);
    --glass-border:rgba(255,255,255,.10);
    --glass-blur:  blur(20px);

    --radius:      14px;
    --radius-sm:   9px;
    --radius-lg:   20px;
    --shadow:      0 4px 24px rgba(0,0,0,.45);
    --shadow-lg:   0 20px 60px rgba(0,0,0,.6);
    --shadow-glow: 0 8px 32px rgba(26,110,181,.25);

    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--surface);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .35s, color .35s;
}

/* ── LIGHT MODE overrides ─────────────────────────────────── */
#oe-root.gjw-light {
    --surface:     #f0f4f8;
    --surface2:    #ffffff;
    --surface3:    #f8fafc;
    --surface4:    #eef2f7;

    --border:      rgba(0,0,0,.07);
    --border2:     rgba(0,0,0,.11);
    --border3:     rgba(0,0,0,.16);

    --text:        #1a2235;
    --text2:       #556080;
    --text3:       #9aabcc;

    --glass:       rgba(255,255,255,.78);
    --glass-border:rgba(0,0,0,.09);

    --shadow:      0 4px 24px rgba(0,0,0,.10);
    --shadow-lg:   0 20px 60px rgba(0,0,0,.15);
    --shadow-glow: 0 8px 32px rgba(26,110,181,.15);
}

/* ── Theme Switcher Floating Button ───────────────────────── */
#gjw-theme-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9990;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1.5px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all .25s;
    outline: none;
}
#gjw-theme-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
}
#gjw-theme-btn svg {
    width: 20px;
    height: 20px;
    transition: transform .4s;
    flex-shrink: 0;
}
#gjw-theme-btn:hover svg { transform: rotate(20deg); }

/* ── Notification Banner ──────────────────────────────────── */
#oe-root .oe-notif-banner {
    position: sticky; top: 0; z-index: 999;
    display: flex; align-items: center; gap: 12px;
    padding: 11px 24px;
    font-size: 13px; font-weight: 500;
    background: var(--accent); color: #fff;
    backdrop-filter: var(--glass-blur);
}
#oe-root .oe-notif-banner.oe-notif-success { background: var(--success); color:#fff; }
#oe-root .oe-notif-banner.oe-notif-warning { background: var(--warning); color:#111; }
#oe-root .oe-notif-banner.oe-notif-danger  { background: var(--danger); }
#oe-root .oe-notif-close { background:none; border:none; color:inherit; cursor:pointer; font-size:18px; margin-left:auto; opacity:.8; line-height:1; padding:0; }
#oe-root .oe-notif-close:hover { opacity:1; }

/* Notification Bar Widget (shortcode) */
.oe-notif-bar-widget {
    padding: 13px 20px; border-radius: var(--radius-sm,9px); margin: 12px 0;
    font-size: 14px; display: flex; align-items: center; gap: 10px;
    border-left: 4px solid;
}
.oe-nb-info    { background:rgba(59,130,246,.12); border-color:#3b82f6; color:#93c5fd; }
.oe-nb-success { background:rgba(16,185,129,.12); border-color:#10b981; color:#6ee7b7; }
.oe-nb-warning { background:rgba(245,158,11,.12); border-color:#f59e0b; color:#fcd34d; }
.oe-nb-danger  { background:rgba(239,68,68,.12);  border-color:#ef4444; color:#fca5a5; }
.oe-nb-close { background:none; border:none; color:inherit; cursor:pointer; margin-left:auto; font-size:16px; }

/* ── Popup Overlay ────────────────────────────────────────── */
#oe-root .oe-popup-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    animation: oe-fadein .3s ease;
}
#oe-root .oe-popup-modal {
    position: relative; max-width: 520px; width: 92%;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); animation: oe-slidein .35s cubic-bezier(.34,1.56,.64,1);
    border: 1px solid var(--glass-border);
}
#oe-root .oe-popup-img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
#oe-root .oe-popup-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,.2); color: #fff;
    font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .2s; line-height: 1; padding: 0;
}
#oe-root .oe-popup-close:hover { background: var(--danger); border-color: var(--danger); }
#oe-root .oe-popup-body { padding: 24px 28px; background: var(--surface2); }
#oe-root .oe-popup-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
#oe-root .oe-popup-message { font-size: 14px; color: var(--text2); line-height: 1.6; white-space: pre-line; }
#oe-root .oe-popup-body.oe-popup-success .oe-popup-title { color: var(--success); }
#oe-root .oe-popup-body.oe-popup-warning .oe-popup-title { color: var(--warning); }
#oe-root .oe-popup-body.oe-popup-danger  .oe-popup-title { color: var(--danger); }
#oe-root .oe-popup-body.oe-popup-info    .oe-popup-title { color: var(--info); }

/* ── Currency Bar ─────────────────────────────────────────── */
#oe-root .oe-currency-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 24px; background: var(--glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border); font-size: 12px;
    justify-content: flex-end;
}
#oe-root .oe-currency-label { color: var(--text2); margin-right: 4px; }
#oe-root .oe-currency-btn {
    padding: 3px 12px; border-radius: 20px; border: 1.5px solid var(--border2);
    background: transparent; color: var(--text2); font-size: 11px; font-weight: 700;
    cursor: pointer; transition: all .15s; letter-spacing: .5px;
}
#oe-root .oe-currency-btn.active,
#oe-root .oe-currency-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Loader ───────────────────────────────────────────────── */
#oe-root .oe-loader-wrap {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 70vh; gap: 20px;
}
#oe-root .oe-spinner {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid var(--border2); border-top-color: var(--accent);
    animation: oe-spin .75s linear infinite;
}
@keyframes oe-spin { to{ transform:rotate(360deg) } }
#oe-root .oe-loader-text { color:var(--text2); font-size:14px; letter-spacing: .5px; }
/* Generic inline spinner utility — used on buttons (e.g. "Submitting…") */
#oe-root .oe-spin { animation: oe-spin .75s linear infinite; display:inline-block; }

/* ── Views ────────────────────────────────────────────────── */
#oe-root .oe-view { width: 100%; }

/* ══════════════════════════════════════════════════════════
   HERO SECTION — Premium Glass + Background Image Support
══════════════════════════════════════════════════════════ */
#oe-root .oe-hero {
    min-height: 90vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 80px 24px 64px;
    position: relative; overflow: hidden;
    background: var(--surface);
    /* Background image set via inline style from backend */
}

/* Overlay on top of background image.
   Colors come from admin Homepage Text & Background settings, passed in as
   --hero-overlay-c1/c2/c3 (Dark Mode) and -light variants (Light Mode) via
   an inline style on #oe-root (see shortcode.php). The hardcoded rgba()
   values below are just fallbacks for the rare case no settings are saved. */
#oe-root .oe-hero-overlay {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(
        160deg,
        var(--hero-overlay-c1, rgba(11,15,26,.92)) 0%,
        var(--hero-overlay-c2, rgba(11,15,26,.75)) 40%,
        var(--hero-overlay-c3, rgba(11,15,26,.88)) 100%
    );
}
#oe-root.gjw-light .oe-hero-overlay {
    background: linear-gradient(
        160deg,
        var(--hero-overlay-c1-light, rgba(240,244,248,.93)) 0%,
        var(--hero-overlay-c2-light, rgba(240,244,248,.80)) 40%,
        var(--hero-overlay-c3-light, rgba(240,244,248,.92)) 100%
    );
}

/* Ambient glow circles */
#oe-root .oe-hero::before {
    content: ''; position: absolute; z-index: 0;
    width: 600px; height: 600px;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(26,110,181,.18) 0%, transparent 65%);
    pointer-events: none;
}
#oe-root .oe-hero::after {
    content: ''; position: absolute; z-index: 0;
    width: 400px; height: 400px;
    bottom: -50px; left: -80px;
    background: radial-gradient(circle, rgba(245,158,11,.10) 0%, transparent 65%);
    pointer-events: none;
}

/* Bottom accent bar */
#oe-root .oe-hero-accent-bar {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent3), var(--accent), transparent);
}

/* Hero content z-index wrapper */
#oe-root .oe-hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; max-width: 720px; width: 100%;
}

/* Hero Logo */
#oe-root .oe-hero-logo-wrap {
    margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
}
#oe-root .oe-hero-logo-img {
    height: 40px; width: auto; max-width: 280px; object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.25));
}

/* Badge */
#oe-root .oe-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(26,110,181,.35);
    color: #7bb8f0; padding: 7px 20px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(26,110,181,.15);
}
#oe-root.gjw-light .oe-hero-badge { color: var(--accent); border-color: rgba(26,110,181,.3); background: rgba(255,255,255,.8); }

#oe-root .oe-dot {
    width: 7px; height: 7px; background: var(--success); border-radius: 50%;
    display: inline-block; animation: oe-pulse 2s infinite;
    box-shadow: 0 0 6px var(--success);
}
@keyframes oe-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }

/* Title */
#oe-root .oe-hero-title {
    font-size: clamp(30px,6vw,68px); font-weight: 800; color: #fff;
    line-height: 1.08; margin-bottom: 20px; letter-spacing: -1.5px;
}
#oe-root.gjw-light .oe-hero-title { color: var(--text); }

#oe-root .oe-hero-title-sub {
    display: block; font-size: .44em; font-weight: 400;
    color: var(--text2); letter-spacing: 3.5px; text-transform: uppercase;
    margin-top: 8px;
}

#oe-root .oe-hero-sub {
    font-size: clamp(14px,2vw,18px); color: var(--text2); margin-bottom: 44px;
    max-width: 560px; line-height: 1.65;
}

#oe-root .oe-hero-btns { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

/* ── GLASS CARD for homepage ──────────────────────────────── */
#oe-root .oe-glass-card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ── Selected Users ───────────────────────────────────────── */
#oe-root .oe-selected-section {
    margin-top: 52px; padding: 28px 32px;
    background: var(--glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); max-width: 620px; width: 92%;
    box-shadow: var(--shadow);
}
#oe-root .oe-selected-header { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
#oe-root .oe-selected-icon   { width:20px; height:20px; color:var(--accent3); }
#oe-root .oe-selected-title  { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--accent3); }
#oe-root .oe-selected-list   { display:flex; flex-direction:column; gap:8px; }
#oe-root .oe-selected-item   {
    display:flex; align-items:center; gap:12px;
    padding:12px 14px; border-radius:var(--radius-sm);
    background:rgba(26,110,181,.08); border-left:3px solid var(--accent);
    font-size:14px; color:var(--text);
}

/* Archive format */
.oe-selected-standalone {
    padding: 24px; background: var(--surface2,#111827);
    border-radius: 14px; border: 1px solid var(--border2,rgba(255,255,255,.12));
}
.oe-selected-archive-header { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.oe-selected-heading { font-size:18px; font-weight:700; color:var(--accent3,#f59e0b); margin:0; }
.oe-selected-archive-grid { display:flex; flex-wrap:wrap; gap:10px; }
.oe-archive-card {
    display:flex; align-items:center; gap:12px;
    background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
    border-radius:10px; padding:12px 16px; min-width:220px; flex:1 1 220px;
    transition:border-color .2s, transform .2s, box-shadow .2s;
}
.oe-archive-card:hover { border-color:var(--accent,#1a6eb5); transform:translateY(-2px); box-shadow:0 8px 24px rgba(26,110,181,.18); }
.oe-archive-avatar {
    width:40px; height:40px; border-radius:50%;
    background:linear-gradient(135deg,var(--accent,#1a6eb5),var(--accent2,#1258a0));
    color:#fff; font-weight:700; font-size:17px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.oe-archive-info { flex:1; min-width:0; }
.oe-archive-name { color:var(--text,#f0f0f5); font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.oe-archive-role { color:var(--text2,#9090b0); font-size:12px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.oe-archive-badge { color:var(--accent3,#f59e0b); font-weight:700; font-size:11px; flex-shrink:0; }

/* ── Buttons ──────────────────────────────────────────────── */
#oe-root .oe-btn {
    padding: 13px 30px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all .22s cubic-bezier(.34,1.56,.64,1); outline: none;
    text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
    letter-spacing: .2px; line-height: 1.4; position: relative; overflow: hidden;
}
#oe-root .oe-btn::after {
    content:''; position:absolute; inset:0; background:rgba(255,255,255,0);
    transition:background .2s;
}
#oe-root .oe-btn:hover::after { background:rgba(255,255,255,.07); }
#oe-root .oe-btn:active { transform:scale(.97); }

#oe-root .oe-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; box-shadow: 0 4px 18px var(--accent-glow);
}
#oe-root .oe-btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 28px var(--accent-glow); filter:brightness(1.08); }

#oe-root .oe-btn-outline {
    background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1.5px solid var(--border3); color: var(--text);
}
#oe-root .oe-btn-outline:hover { border-color:var(--accent); color:var(--accent); background:rgba(26,110,181,.08); }

#oe-root .oe-btn-ghost { background:transparent; color:var(--text2); border:1.5px solid transparent; }
#oe-root .oe-btn-ghost:hover { color:var(--text); background:rgba(255,255,255,.06); }

#oe-root .oe-btn-full { width:100%; justify-content:center; padding:15px; }
#oe-root .oe-btn-sm   { padding:8px 18px; font-size:13px; }
#oe-root .oe-btn-success { background:linear-gradient(135deg,#10b981,#059669); color:#fff; box-shadow:0 4px 16px rgba(16,185,129,.3); }

#oe-root .oe-icon    { width:16px; height:16px; vertical-align:middle; flex-shrink:0; }
#oe-root .oe-icon-lg { width:28px; height:28px; }

/* ── Form wrap ────────────────────────────────────────────── */
#oe-root .oe-form-wrap    { max-width: 780px; margin: 0 auto; padding: 52px 20px; }
#oe-root .oe-form-wrap-sm { max-width: 500px; }

#oe-root .oe-form-card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 44px;
    box-shadow: var(--shadow-lg);
}
#oe-root.gjw-light .oe-form-card { background: var(--surface2); }

#oe-root .oe-form-header         { text-align:center; margin-bottom:34px; }
#oe-root .oe-form-header h2      { font-size:26px; font-weight:800; margin-bottom:8px; color:var(--text); }
#oe-root .oe-form-header p       { color:var(--text2); font-size:14px; }

/* Logo shown above the icon-circle on login/register cards */
#oe-root .oe-card-logo-wrap {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
#oe-root .oe-card-logo-img {
    height: 40px; width: auto; max-width: 220px; object-fit: contain;
}

#oe-root .oe-icon-circle {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg,rgba(26,110,181,.2),rgba(26,110,181,.05));
    border: 2px solid rgba(26,110,181,.35);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--accent);
    box-shadow: 0 0 28px rgba(26,110,181,.12);
}

/* ── Fields ───────────────────────────────────────────────── */
#oe-root .oe-field { margin-bottom: 20px; }
#oe-root .oe-field label {
    display:block; font-size:11px; font-weight:700; color:var(--text2);
    margin-bottom:7px; text-transform:uppercase; letter-spacing:.8px;
}
#oe-root .oe-field-hint { font-weight:400; text-transform:none; letter-spacing:0; color:var(--text3); }
#oe-root .oe-field input,
#oe-root .oe-field select,
#oe-root .oe-field textarea,
#oe-root .oe-select {
    width:100%; padding:13px 16px;
    background:var(--surface3); border:1.5px solid var(--border2);
    border-radius:var(--radius-sm); color:var(--text); font-size:14px;
    transition:border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance:none; appearance:none;
}
#oe-root.gjw-light .oe-field input,
#oe-root.gjw-light .oe-field select,
#oe-root.gjw-light .oe-field textarea,
#oe-root.gjw-light .oe-select {
    background: #f8fafc; border-color: rgba(0,0,0,.14);
}
#oe-root .oe-field input:focus,
#oe-root .oe-field select:focus,
#oe-root .oe-field textarea:focus,
#oe-root .oe-select:focus {
    outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(26,110,181,.14);
    background:var(--surface4);
}
#oe-root .oe-field input::placeholder { color:var(--text3); }
#oe-root .oe-field select option,
#oe-root .oe-select option { background:var(--surface3); color:var(--text); }
#oe-root .oe-field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:560px){ #oe-root .oe-field-row { grid-template-columns:1fr; } }

/* ── Upload Zone ──────────────────────────────────────────── */
#oe-root .oe-upload-zone {
    border:2px dashed var(--border3); border-radius:var(--radius-sm);
    padding:32px 20px; text-align:center; cursor:pointer;
    transition:all .2s; background:var(--surface3);
}
#oe-root .oe-upload-zone:hover { border-color:var(--accent); background:rgba(26,110,181,.05); }
#oe-root .oe-upload-icon-svg { width:38px; height:38px; color:var(--accent); margin-bottom:10px; }
#oe-root .oe-upload-text  { font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; }
#oe-root .oe-upload-hint  { font-size:12px; color:var(--text2); }

#oe-root .oe-upload-img-preview { margin-top: 14px; }
#oe-root .oe-upload-img-preview img {
    max-width:100%; max-height:130px; border-radius:8px;
    border:2px solid var(--accent); object-fit:contain;
    display:block; margin:0 auto; box-shadow:0 4px 16px rgba(26,110,181,.2);
}
#oe-root .oe-file-preview {
    display:flex; align-items:center; gap:10px; margin-top:12px;
    background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.25);
    padding:11px 15px; border-radius:var(--radius-sm); font-size:13px; color:var(--success);
}
#oe-root .oe-file-remove { background:none; border:none; color:var(--danger); cursor:pointer; margin-left:auto; padding:0; }

/* ── Alerts ───────────────────────────────────────────────── */
#oe-root .oe-alert { padding:14px 18px; border-radius:var(--radius-sm); font-size:14px; margin-bottom:18px; line-height:1.55; }
#oe-root .oe-alert-error   { background:rgba(239,68,68,.10);  border:1px solid rgba(239,68,68,.25);  color:#fca5a5; }
#oe-root .oe-alert-success { background:rgba(16,185,129,.10); border:1px solid rgba(16,185,129,.25); color:#6ee7b7; }
#oe-root .oe-alert-warning { background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.25); color:#fcd34d; }
#oe-root .oe-alert-info    { background:rgba(59,130,246,.10); border:1px solid rgba(59,130,246,.25); color:#93c5fd; }

#oe-root .oe-form-footer { text-align:center; font-size:13px; color:var(--text2); margin-top:20px; }
#oe-root .oe-form-footer a { color:var(--accent); }
#oe-root .oe-form-footer a:hover { text-decoration:underline; }

/* ── Dashboard ────────────────────────────────────────────── */
#oe-root .oe-dash-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:28px 36px;
    background: var(--glass); backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur);
    border-bottom:1px solid var(--border2); flex-wrap:wrap; gap:12px;
}
#oe-root .oe-dash-header h2  { font-size:23px; font-weight:800; color:var(--text); }
#oe-root .oe-dash-sub        { margin-top:4px; color:var(--text2); font-size:14px; }
#oe-root .oe-dash-header-left { display:flex; align-items:center; gap:16px; }
#oe-root .oe-dash-logo-wrap   { display:flex; align-items:center; flex-shrink:0; }
#oe-root .oe-dash-logo-img    { height:40px; width:auto; max-width:160px; object-fit:contain; }
@media(max-width:520px){ #oe-root .oe-dash-logo-img { height:32px; max-width:120px; } }
#oe-root .oe-dash-grid {
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:20px; padding:32px; max-width:760px; margin:0 auto;
}
@media(max-width:560px){ #oe-root .oe-dash-grid { grid-template-columns:1fr; } }
#oe-root .oe-dash-card {
    background: var(--glass); backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border); border-radius:var(--radius-lg);
    padding:28px; text-align:center; transition:all .25s;
}
#oe-root .oe-dash-card:hover { border-color:var(--accent); transform:translateY(-4px); box-shadow:var(--shadow-glow); }
#oe-root.gjw-light .oe-dash-card { background:var(--surface2); }
#oe-root .oe-dash-icon { width:34px; height:34px; color:var(--accent); }
#oe-root .oe-dash-card-icon  { margin-bottom:12px; display:flex; justify-content:center; }
#oe-root .oe-dash-card-title { font-size:11px; color:var(--text2); text-transform:uppercase; letter-spacing:.7px; margin-bottom:8px; }
#oe-root .oe-dash-card-val   { font-size:17px; font-weight:700; color:var(--text); }
#oe-root .oe-dash-card-val.oe-status-approved,
#oe-root .oe-dash-card-val.oe-status-paid       { color:var(--success); }
#oe-root .oe-dash-card-val.oe-status-pending    { color:var(--warning); }
#oe-root .oe-dash-card-val.oe-status-rejected   { color:var(--danger); }
#oe-root .oe-dash-card-val.oe-status-not_submitted { color:var(--text2); }
#oe-root .oe-dash-action     { padding:0 32px 32px; max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; align-items:center; }
#oe-root .oe-dash-action .oe-btn { width:100%; max-width:420px; }
#oe-root .oe-dash-action .oe-alert { width:100%; max-width:420px; }

/* ── Payment Page ─────────────────────────────────────────── */
#oe-root .oe-pay-fee-box {
    text-align:center; background:rgba(26,110,181,.08);
    border:1px solid rgba(26,110,181,.22); border-radius:var(--radius);
    padding:28px; margin:20px 0;
}
#oe-root .oe-pay-fee-label  { font-size:11px; color:var(--text2); text-transform:uppercase; letter-spacing:.7px; margin-bottom:6px; }
#oe-root .oe-pay-fee-amount { font-size:46px; font-weight:800; color:var(--accent); margin-bottom:14px; font-variant-numeric:tabular-nums; }
#oe-root .oe-pay-currency-switch { display:flex; gap:6px; justify-content:center; }
#oe-root .oe-cur-pill {
    padding:4px 16px; border-radius:999px; border:1.5px solid var(--border2);
    background:transparent; color:var(--text2); font-size:11px; font-weight:700;
    cursor:pointer; transition:all .15s; letter-spacing:.5px;
}
#oe-root .oe-cur-pill.active,
#oe-root .oe-cur-pill:hover { background:var(--accent); border-color:var(--accent); color:#fff; }

#oe-root .oe-pay-qr { text-align:center; margin:20px 0; }
#oe-root .oe-pay-qr img {
    max-width:190px; border:4px solid var(--surface2); border-radius:var(--radius-sm);
    padding:6px; background:#fff; display:block; margin:0 auto;
    box-shadow:var(--shadow);
}
#oe-root .oe-pay-qr p { font-size:12px; color:var(--text2); margin-top:8px; }

#oe-root .oe-pay-details-box {
    background:var(--surface3); border:1px solid var(--border2);
    border-radius:var(--radius-sm); padding:20px; margin:16px 0;
}
#oe-root .oe-pay-details-title { font-size:11px; font-weight:700; color:var(--text2); text-transform:uppercase; letter-spacing:.7px; margin-bottom:10px; }
#oe-root .oe-pay-details-content { font-size:14px; color:var(--text); line-height:1.9; white-space:pre-line; font-family:'Courier New',monospace; }
#oe-root .oe-pay-instructions { font-size:14px; color:var(--text2); line-height:1.75; margin:14px 0; }
#oe-root .oe-pay-disclaimer {
    background:rgba(245,158,11,.07); border-left:3px solid var(--warning);
    padding:13px 17px; border-radius:4px; font-size:13px; color:#fcd34d;
    margin:16px 0; line-height:1.65;
}

/* ── Pre-Test ─────────────────────────────────────────────── */
#oe-root .oe-pretest-info-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:18px 0; }
#oe-root .oe-pretest-info {
    background:var(--surface3); border:1px solid var(--border2);
    border-radius:var(--radius-sm); padding:20px; text-align:center;
}
#oe-root .oe-pretest-info-label { font-size:11px; color:var(--text2); text-transform:uppercase; letter-spacing:.7px; margin-bottom:6px; }
#oe-root .oe-pretest-info-val   { font-size:28px; font-weight:800; color:var(--text); }
#oe-root .oe-disclaimer-box {
    background:rgba(239,68,68,.06); border:1px solid rgba(239,68,68,.18);
    border-radius:var(--radius-sm); padding:22px; margin:18px 0;
}
#oe-root .oe-disclaimer-title { font-size:13px; font-weight:700; color:#fca5a5; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
#oe-root .oe-disclaimer-text  { font-size:13px; color:var(--text2); line-height:1.9; white-space:pre-line; }

/* ── Test Layout ──────────────────────────────────────────── */
#oe-root #oe-view-test { display:flex; flex-direction:column; min-height:100vh; background:var(--surface); }
#oe-root #oe-test-topbar {
    position:sticky; top:0; z-index:100;
    background:var(--glass); backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur);
    border-bottom:2px solid var(--accent); padding:0 24px; height:58px;
}
#oe-root .oe-test-topbar-inner {
    display:flex; align-items:center; justify-content:space-between;
    max-width:1140px; margin:0 auto; height:100%;
}
#oe-root .oe-test-brand-wrap { display:flex; align-items:center; gap:10px; }
#oe-root .oe-test-logo-img   { height:28px; width:auto; max-width:120px; object-fit:contain; }
#oe-root .oe-test-brand   { font-size:16px; font-weight:800; color:var(--text); letter-spacing:-.3px; }
#oe-root .oe-test-qnum    { font-size:13px; font-weight:600; color:var(--text2); background:var(--surface3); padding:5px 14px; border-radius:999px; border:1px solid var(--border2); }
#oe-root .oe-test-right   { display:flex; align-items:center; gap:16px; }
#oe-root .oe-timer        { display:flex; align-items:center; gap:6px; font-size:19px; font-weight:700; color:var(--success); font-variant-numeric:tabular-nums; }
#oe-root .oe-timer.oe-timer-warn   { color:var(--warning); }
#oe-root .oe-timer.oe-timer-danger { color:var(--danger); animation:oe-blink 1s infinite; }
@keyframes oe-blink { 50%{ opacity:.4 } }
#oe-root .oe-test-cand-label { font-size:12px; color:var(--text2); }
#oe-root .oe-test-layout  { display:flex; flex:1; max-width:1140px; margin:0 auto; width:100%; }
#oe-root .oe-test-sidebar {
    width:230px; min-width:230px; background:var(--surface2);
    border-right:1px solid var(--border); padding:24px;
    display:flex; flex-direction:column; gap:16px;
}
@media(max-width:700px){
    #oe-root .oe-test-layout { flex-direction:column; }
    #oe-root .oe-test-sidebar {
        width:100%; min-width:0; order:2;
        flex-direction:row; align-items:center; flex-wrap:wrap;
        border-right:none; border-top:1px solid var(--border);
        padding:12px 16px; gap:12px;
        position:sticky; bottom:0; z-index:90;
        box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    }
    #oe-root .oe-test-sidebar .oe-sidebar-label,
    #oe-root .oe-test-sidebar .oe-q-dots { display:none; }
    #oe-root .oe-test-sidebar .oe-progress-bar { flex:1 1 100%; order:1; }
    #oe-root .oe-test-sidebar .oe-progress-stat { order:2; }
    #oe-root .oe-test-sidebar .oe-btn { order:3; margin-left:auto; width:auto; padding:8px 16px; font-size:13px; }
    #oe-root .oe-test-main { padding:20px 16px 100px; }
}
#oe-root .oe-sidebar-label { font-size:10px; font-weight:700; color:var(--text3); text-transform:uppercase; letter-spacing:1.2px; }
#oe-root .oe-progress-bar  { height:5px; background:var(--border); border-radius:3px; overflow:hidden; }
#oe-root .oe-progress-fill { height:100%; background:linear-gradient(90deg,var(--accent),var(--accent3)); transition:width .35s; }
#oe-root .oe-progress-stat { font-size:12px; color:var(--text2); }
#oe-root .oe-q-dots        { display:flex; flex-wrap:wrap; gap:5px; }
#oe-root .oe-q-dot {
    width:32px; height:32px; border-radius:7px;
    border:1.5px solid var(--border); background:var(--surface3);
    font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center;
    color:var(--text2); cursor:pointer; transition:all .15s;
}
#oe-root .oe-q-dot.answered { background:var(--accent); border-color:var(--accent); color:#fff; }
#oe-root .oe-q-dot.current  { border-color:var(--text); color:var(--text); }
#oe-root .oe-mt-auto { margin-top:auto; }
#oe-root .oe-test-main  { flex:1; padding:36px; overflow-y:auto; }
#oe-root .oe-q-category { font-size:11px; font-weight:700; color:var(--accent3); text-transform:uppercase; letter-spacing:.7px; margin-bottom:12px; }
#oe-root .oe-q-card {
    background:var(--glass); backdrop-filter:var(--glass-blur); -webkit-backdrop-filter:var(--glass-blur);
    border:1px solid var(--glass-border); border-radius:var(--radius-lg);
    padding:36px; margin-bottom:24px; box-shadow:var(--shadow);
}
#oe-root.gjw-light .oe-q-card { background:var(--surface2); }
#oe-root .oe-q-text    { font-size:20px; font-weight:500; color:var(--text); line-height:1.7; margin-bottom:26px; }
#oe-root .oe-q-options { display:flex; flex-direction:column; gap:12px; }
#oe-root .oe-q-opt {
    padding:16px 20px; border-radius:var(--radius-sm); border:1.5px solid var(--border2);
    background:var(--surface3); cursor:pointer; transition:all .17s;
    font-size:15px; color:var(--text); display:flex; align-items:center; gap:15px;
}
#oe-root .oe-q-opt:hover   { border-color:var(--accent); background:rgba(26,110,181,.08); }
#oe-root .oe-q-opt.selected{ border-color:var(--accent); background:rgba(26,110,181,.15); color:var(--text); }
#oe-root .oe-q-opt-letter {
    width:34px; height:34px; border-radius:7px; background:var(--border2);
    font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;
    transition:background .15s;
}
#oe-root .oe-q-opt.selected .oe-q-opt-letter { background:var(--accent); color:#fff; }
#oe-root .oe-q-text-area { margin-top:20px; }
#oe-root .oe-q-text-area label { font-size:11px; color:var(--text2); text-transform:uppercase; letter-spacing:.7px; display:block; margin-bottom:8px; }
#oe-root .oe-textarea {
    width:100%; padding:15px; background:var(--surface3);
    border:1.5px solid var(--border2); border-radius:var(--radius-sm);
    color:var(--text); font-size:14px; resize:vertical; font-family:inherit;
}
#oe-root .oe-textarea:focus { outline:none; border-color:var(--accent); }
#oe-root .oe-q-nav { display:flex; gap:12px; justify-content:space-between; }

/* ── Post-Test ────────────────────────────────────────────── */
#oe-root .oe-score-box {
    text-align:center; padding:30px;
    background:rgba(26,110,181,.08); border:1px solid rgba(26,110,181,.22);
    border-radius:var(--radius); margin-bottom:28px;
}
#oe-root .oe-score-pct      { font-size:58px; font-weight:800; color:var(--accent); }
#oe-root .oe-score-label    { font-size:12px; text-transform:uppercase; letter-spacing:.7px; color:var(--text2); margin:6px 0; }
#oe-root .oe-score-fraction { font-size:22px; font-weight:600; color:var(--text); }

/* ── Results ──────────────────────────────────────────────── */
#oe-root .oe-trophy-wrap  { display:flex; justify-content:center; margin-bottom:22px; }
#oe-root .oe-trophy-icon  { width:76px; height:76px; color:#f59e0b; filter:drop-shadow(0 0 16px rgba(245,158,11,.4)); }
#oe-root .oe-res-pct      { font-size:62px; font-weight:800; margin-bottom:6px; }
#oe-root .oe-res-label    { font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--text2); margin-bottom:10px; }
#oe-root .oe-res-fraction { font-size:22px; font-weight:600; color:var(--text); margin-bottom:18px; }
#oe-root .oe-res-badge    { font-size:15px; font-weight:600; margin-bottom:10px; }
#oe-root .oe-res-msg      { font-size:14px; color:var(--text2); line-height:1.75; }
#oe-root .oe-retake-area  { margin-top:24px; padding-top:24px; border-top:1px solid var(--border); width:100%; }
#oe-root .oe-retake-info  { font-size:13px; color:var(--text2); text-align:center; margin-bottom:12px; }

/* ── Utilities ────────────────────────────────────────────── */
#oe-root .oe-mt-lg { margin-top:24px; }
#oe-root .oe-mt-sm { margin-top:8px; }
#oe-root .oe-text-center { text-align:center; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes oe-fadein  { from{opacity:0} to{opacity:1} }
@keyframes oe-slidein { from{transform:translateY(-28px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ── Responsive ───────────────────────────────────────────── */
@media(max-width:560px){
    #oe-root .oe-form-card    { padding:24px 16px; }
    #oe-root .oe-test-main    { padding:16px; }
    #oe-root .oe-q-text       { font-size:17px; }
    #oe-root .oe-q-opt        { padding:12px 14px; font-size:14px; }
    #oe-root .oe-hero         { padding:52px 16px 44px; }
    #oe-root .oe-dash-header  { padding:20px 18px; }
    #oe-root .oe-pay-fee-amount { font-size:34px; }
    #oe-root .oe-selected-section { padding:20px 18px; }
    .oe-archive-card          { min-width:160px; }
    #gjw-theme-btn            { top:14px; right:14px; width:40px; height:40px; }
}

/* ── Payment Terms ────────────────────────────────────────── */
#oe-root .oe-pay-terms-wrap {
    margin: 16px 0;
}
#oe-root .oe-pay-terms-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    max-height: 220px;
    overflow-y: auto;
}
#oe-root .oe-pay-terms-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 10px;
}
#oe-root .oe-pay-terms-text {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.75;
}
#oe-root .oe-pay-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    padding: 10px 14px;
    background: var(--surface2);
    border: 1.5px solid var(--accent);
    border-radius: 8px;
}
#oe-root .oe-pay-terms-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ── Bank Details inline box ─────────────────────────────── */
#oe-root #oe-pay-bank-details .oe-pay-details-title {
    margin-bottom: 8px;
}
#oe-root #oe-pay-bank-details code {
    background: rgba(0,0,0,0.2);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 13px;
}

/* CNIC image optional badge */
#oe-root .oe-optional-badge {
    display:inline-block;
    font-size:10px;
    font-weight:600;
    color:#fff;
    background:var(--accent,#ff6b35);
    border-radius:4px;
    padding:1px 6px;
    margin-left:4px;
    vertical-align:middle;
    letter-spacing:.3px;
    text-transform:uppercase;
}

