:root {
    color-scheme: light;
    --brand-sky: #2EACE2;
    --brand-navy: #162952;
    --brand-red: #F9423A;
    --brand-gold: #F1C400;
    --brand-white: #ffffff;
    --green: var(--brand-navy);
    --green-dark: #0d1a39;
    --gold: var(--brand-gold);
    --cream: #f4fbff;
    --ink: var(--brand-navy);
    --muted: #62708d;
    --primary: var(--brand-navy);
    --control-border: var(--brand-navy);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(circle at 90% 0, #ffe7a1 0, transparent 32%), var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 56px 0; }
.hero { padding: 16px 4px 36px; }
.brand-logo { display: block; width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 12px 30px #0b6b3a35; }
.eyebrow { margin: 24px 0 4px; color: var(--primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 12vw, 88px); line-height: .95; letter-spacing: -.06em; }
.lede { color: var(--muted); font-size: 20px; }
.panel { padding: 28px; border: 1px solid #ffffffaa; border-radius: 28px; background: #ffffffd9; box-shadow: 0 24px 70px #15362418; backdrop-filter: blur(14px); }
.panel h2 { margin: 24px 0 8px; }
.panel p { color: var(--muted); line-height: 1.6; }
.status-row { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px #f2b70526; }
.button { display: inline-flex; margin-top: 10px; padding: 14px 20px; border-radius: 14px; color: white; background: var(--green); font-weight: 800; text-decoration: none; }
.simulator { display: grid; gap: 16px; }
.simulator label { font-weight: 800; }
.simulator input, .simulator textarea { width: 100%; border: 1px solid #ced9d2; border-radius: 14px; padding: 14px; font: inherit; }
.simulator textarea { min-height: 210px; color: #dff8e8; background: #11251a; resize: vertical; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button { border: 0; cursor: pointer; }
.button.secondary { color: var(--primary); background: #e8ebf3; }
.settings-shell { width: min(100% - 32px, 1180px); margin: 0 auto; padding: 40px 0; }
.settings-header { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.settings-header img { border-radius: 20px; }
.settings-header h1 { font-size: clamp(34px, 6vw, 64px); }
.settings-header p { margin: 4px 0; color: var(--muted); }
.setup-gate { display: flex; align-items: end; gap: 12px; }
.setup-gate label { flex: 1; font-weight: 800; }
.setup-gate input, fieldset input, fieldset select { width: 100%; margin-top: 6px; border: 1px solid #ced9d2; border-radius: 12px; padding: 12px; font: inherit; background: white; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
fieldset { display: grid; align-content: start; gap: 14px; min-width: 0; border: 1px solid #dce5df; border-radius: 18px; padding: 20px; }
legend { padding: 0 8px; color: var(--primary); font-size: 18px; font-weight: 900; }
fieldset label { color: var(--ink); font-size: 14px; font-weight: 700; }
fieldset label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
fieldset input[type="checkbox"] { width: auto; margin: 0; }
.field-note { font-size: 13px; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 22px; }
.simulator-shell { width: min(100% - 32px, 1080px); margin: 0 auto; padding: 36px 0; }
.simulator-header { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.simulator-header h1 { font-size: clamp(38px, 7vw, 68px); }
.simulator-header p { margin: 4px 0; color: var(--muted); }
.logo-link { flex: none; }
.simulator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: center; gap: clamp(28px, 6vw, 72px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin-top: 2px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; color: var(--primary); background: #e8ebf3; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-badge .pulse { width: 7px; height: 7px; box-shadow: none; background: #15a85b; }
.phone-preview { position: relative; width: 100%; max-width: 350px; min-height: 620px; padding: 28px 16px 24px; border: 10px solid #14251d; border-radius: 44px; background: #14251d; box-shadow: 0 32px 80px #14251d30; }
.phone-screen { min-height: 548px; overflow: hidden; border-radius: 28px; background: linear-gradient(155deg, #ffd66c, #f4512c); }
.phone-speaker { position: absolute; z-index: 2; top: 14px; left: 50%; width: 72px; height: 6px; border-radius: 999px; background: #526159; transform: translateX(-50%); }
.phone-status { display: flex; justify-content: space-between; padding: 22px 20px 8px; color: white; font-size: 12px; font-weight: 800; }
.ussd-dialog { margin: 58px 14px 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 14px 38px #62220d38; }
.ussd-title { margin: 0; padding: 14px 18px; border-bottom: 1px solid #e9ecea; color: var(--primary); font-weight: 900; }
.ussd-dialog pre { min-height: 230px; margin: 0; padding: 18px; color: var(--ink); font: 15px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.phone-home { position: absolute; bottom: 8px; left: 50%; width: 70px; height: 5px; border-radius: 999px; background: #718078; transform: translateX(-50%); }
.simulator-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 36px; color: var(--muted); font-size: 13px; }
.simulator-footer a { color: var(--primary); font-weight: 800; text-decoration: none; }

@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .simulator-layout { grid-template-columns: 1fr; } .phone-preview { justify-self: center; } }
@media (max-width: 520px) { .shell { padding-top: 28px; } .panel { padding: 22px; border-radius: 22px; } .settings-header, .simulator-header { align-items: flex-start; } .setup-gate { align-items: stretch; flex-direction: column; } .section-heading, .simulator-footer { flex-direction: column; } .phone-preview { min-height: 560px; } .phone-screen { min-height: 488px; } }

/* Participant mobile app */
.mobile-app-body { min-height: 100vh; background: #f7f3e9; }
.mobile-app-body::before { content: ""; position: fixed; inset: 0 0 auto; height: 440px; z-index: -1; background: radial-gradient(circle at 90% 5%, #ffc946 0, transparent 38%), linear-gradient(145deg, #f4512c 0%, #e83d25 72%); }
.mobile-app-shell { width: min(100% - 30px, 480px); margin: 0 auto; padding: 20px 0 42px; }
.mobile-app-header { display: flex; justify-content: space-between; align-items: center; }
.mobile-app-header img { border-radius: 21px; box-shadow: 0 10px 24px #75210f35; }
.language-button { padding: 9px 13px; border: 1px solid #ffffff70; border-radius: 999px; color: white; background: #ffffff18; font-weight: 800; }
.mobile-welcome { padding: 34px 2px 24px; color: white; }
.mobile-kicker { margin: 0 0 10px; color: #ffe996; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.mobile-welcome h1 { margin: 0; max-width: 430px; font-size: clamp(46px, 13vw, 68px); line-height: .96; letter-spacing: -.055em; }
.mobile-welcome h1 em { color: #ffe16d; font-style: normal; }
.mobile-welcome > p:last-child { max-width: 420px; margin: 18px 0 0; color: #fff5ed; line-height: 1.55; }
.mobile-login-card { padding: 24px; border: 1px solid #ffffff; border-radius: 26px; background: #fff; box-shadow: 0 22px 55px #6b2c181f; }
.mobile-login-heading { display: flex; gap: 13px; align-items: flex-start; }
.mobile-login-heading > span { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.mobile-login-heading h2 { margin: 1px 0 4px; font-size: 20px; }
.mobile-login-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.mobile-primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 12px; padding: 15px 18px; border-radius: 15px; color: white; background: var(--green); font: inherit; font-weight: 900; box-shadow: 0 10px 22px #0b6b3a28; }
.terms-note { margin: 14px 0 0; color: #7c8981; font-size: 11px; line-height: 1.5; text-align: center; }
.mobile-benefits { display: grid; gap: 10px; margin-top: 16px; }
.mobile-benefits article { display: flex; justify-content: space-between; gap: 16px; padding: 14px 17px; border: 1px solid #e8e3d7; border-radius: 15px; background: #fffaf0; font-size: 13px; }
.mobile-benefits strong { color: var(--primary); }
.mobile-benefits span { color: var(--muted); text-align: right; }
.mobile-utility-links { display: flex; justify-content: center; gap: 18px; margin-top: 24px; }
.mobile-utility-links a { color: var(--primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.mobile-toast { position: fixed; right: 18px; bottom: 18px; left: 18px; max-width: 440px; margin: auto; padding: 14px 18px; border-radius: 14px; color: white; background: #14251d; opacity: 0; pointer-events: none; transform: translateY(16px); transition: .2s ease; }
.mobile-toast.show { opacity: 1; transform: translateY(0); }

/* Admin authentication and dashboard */
.admin-auth-body { min-height: 100vh; background: #f4f2ea; }
.admin-auth-shell { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.1fr); min-height: 100vh; }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 76px); color: white; background: radial-gradient(circle at 15% 90%, #ffc447 0, transparent 30%), linear-gradient(150deg, #f4512c, #b92518); }
.auth-brand-panel img { border-radius: 24px; box-shadow: 0 16px 34px #751b1540; }
.auth-brand-panel .eyebrow { color: #ffe28a; }
.auth-brand-panel h1 { margin: 12px 0 20px; font-size: clamp(48px, 6vw, 82px); line-height: .96; }
.auth-brand-panel p:not(.eyebrow) { max-width: 520px; color: #fff1e9; line-height: 1.6; }
.auth-brand-footer { font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.auth-form-panel { display: grid; place-items: center; padding: 34px; }
.auth-card { width: min(100%, 470px); }
.auth-card h2 { margin: 4px 0 8px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.04em; }
.auth-intro { margin: 0 0 28px; color: var(--muted); }
.auth-form { display: grid; gap: 17px; }
.auth-form label { color: var(--ink); font-size: 14px; font-weight: 800; }
.auth-form > label > input, .password-wrap { display: flex; width: 100%; margin-top: 7px; border: 1px solid #cdd8d1; border-radius: 14px; background: white; }
.auth-form > label > input, .password-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px; border-radius: 14px; background: transparent; font: inherit; }
.auth-form > label > input.admin-email-input { border: 2px solid #9eafa5; background: #fff; box-shadow: 0 1px 2px #14251d0d; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-form > label > input.admin-email-input:hover { border-color: #71867a; }
.auth-form > label > input.admin-email-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px #1f31631f; }
.password-wrap button { display: grid; place-items: center; width: 48px; padding: 0; color: var(--primary); background: transparent; }
.password-wrap button svg { width: 22px; height: 22px; fill: currentColor; }
.password-wrap button .eye-closed { display: none; }
.password-wrap button.is-visible .eye-open { display: none; }
.password-wrap button.is-visible .eye-closed { display: block; }
.auth-form small { margin-top: -8px; color: var(--muted); line-height: 1.5; }
.auth-submit { justify-content: center; width: 100%; margin-top: 5px; border: 0; font: inherit; }
.auth-message { min-height: 24px; margin-top: 16px; font-size: 13px; font-weight: 800; }
.auth-message.error { color: #b42318; }.auth-message.success { color: var(--primary); }
.back-link { color: var(--primary); font-size: 13px; font-weight: 800; text-decoration: none; }
.admin-dashboard-body { background: #f5f4ee; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(20px, 5vw, 64px); border-bottom: 1px solid #e1e5e2; background: white; }
.admin-brand, .admin-user { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 900; text-decoration: none; }
.admin-brand img { border-radius: 12px; }.admin-user span { display: grid; text-align: right; }.admin-user small { color: var(--muted); font-weight: 600; }
.admin-dashboard-shell { width: min(100% - 40px, 1200px); margin: 0 auto; padding: 54px 0; }
.admin-dashboard-shell h1 { font-size: clamp(46px, 7vw, 78px); }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.module-card { padding: 24px; border: 1px solid #e2e5e0; border-radius: 20px; background: white; }
.module-card > span { color: #d64829; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.module-card h2 { margin: 14px 0 6px; }.module-card p { color: var(--muted); }
.account-menu { position: relative; }
.avatar-trigger { display: flex; align-items: center; gap: 7px; padding: 3px 5px 3px 3px; border: 0; border-radius: 999px; background: transparent; }
.avatar-trigger:hover, .account-menu.open .avatar-trigger { background: #eef0f6; }
.avatar-trigger > svg { width: 18px; height: 18px; fill: var(--primary); transition: transform .18s ease; }
.account-menu.open .avatar-trigger > svg { transform: rotate(180deg); }
.avatar-circle { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid #d9deec; border-radius: 50%; color: #fff; background: var(--primary); font-size: 14px; font-weight: 900; letter-spacing: .03em; box-shadow: 0 6px 16px #1f316326; }
.account-dropdown { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: 248px; padding: 8px; border: 1px solid #d8ddea; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px #1f316326; }
.account-dropdown[hidden] { display: none; }
.account-summary { display: grid; gap: 3px; padding: 10px 11px 12px; }
.account-summary strong { color: var(--ink); font-size: 14px; }
.account-summary span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; }
.account-dropdown a, .account-signout { display: flex; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; color: var(--primary); background: transparent; font: inherit; font-size: 14px; font-weight: 750; text-align: left; text-decoration: none; }
.account-dropdown a:hover, .account-signout:hover { background: #eef0f6; }
.account-divider { height: 1px; margin: 7px 4px; background: #dfe3ed; }
.account-signout { color: #b42318; }
.account-page-shell { max-width: 820px; }
.account-detail-card { margin-top: 28px; }
.account-detail-card dl { margin: 0; }.account-detail-card dl div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e5e8ef; }.account-detail-card dl div:last-child { border-bottom: 0; }.account-detail-card dt { color: var(--muted); font-weight: 700; }.account-detail-card dd { margin: 0; color: var(--ink); font-weight: 800; }

@media (max-width: 850px) { .admin-auth-shell { grid-template-columns: 1fr; } .auth-brand-panel { min-height: 330px; } .auth-brand-footer { display: none; } .module-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .auth-brand-panel { min-height: 280px; padding: 28px; } .auth-brand-panel h1 { font-size: 44px; } .auth-form-panel { padding: 32px 22px; } .module-grid { grid-template-columns: 1fr; } .admin-user span { display: none; } }

/* Global Rewardz form and primary-action rules */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    border: 2px solid var(--control-border) !important;
    outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--control-border) !important;
    box-shadow: 0 0 0 4px #1f31631f !important;
}

option { border: 1px solid var(--control-border); }

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px;
    margin: 0;
    border: 2px solid var(--control-border) !important;
    background: #fff;
    cursor: pointer;
}

input[type="checkbox"] { border-radius: 4px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked,
input[type="radio"]:checked { background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }

.password-wrap,
.credential-wrap { border: 2px solid var(--control-border) !important; }
.password-wrap input,
.credential-wrap input { border: 0 !important; box-shadow: none !important; }

.credential-wrap { display: flex; align-items: center; width: 100%; margin-top: 7px; overflow: hidden; border-radius: 14px; background: #fff; }
.password-wrap:focus-within,
.credential-wrap:focus-within { box-shadow: 0 0 0 4px #1f31631f !important; }
.credential-wrap input { width: 100%; min-width: 0; padding: 14px 10px; outline: 0; background: transparent; font: inherit; }
.auth-form .credential-wrap input[type="email"],
.auth-form .credential-wrap input[type="password"],
.auth-form .credential-wrap input[type="text"] {
    border: 0 !important;
    box-shadow: none !important;
}
.credential-icon { width: 21px; height: 21px; flex: 0 0 21px; margin-left: 14px; fill: var(--primary); }

/* Admin navigation shell */
.admin-shell-body { --sidebar-width: 268px; min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 18px 14px 14px; border-right: 1px solid #dfe3ed; background: #fff; transition: width .22s ease, transform .22s ease; }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 6px 16px; border-bottom: 1px solid #e8eaf0; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; overflow: hidden; color: var(--primary); font-size: 21px; font-weight: 950; text-decoration: none; white-space: nowrap; }
.sidebar-brand img { border-radius: 13px; }
.sidebar-close { display: none; width: 36px; height: 36px; border-radius: 10px; color: var(--primary); background: #eef0f6; font-size: 24px; }
.sidebar-nav { display: grid; align-content: start; gap: 5px; flex: 1; overflow: auto; padding: 18px 0; }
.sidebar-link, .sidebar-group-toggle { display: flex; align-items: center; width: 100%; min-height: 44px; gap: 12px; padding: 10px 12px; border: 0; border-radius: 11px; color: #4e5874; background: transparent; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.sidebar-link:hover, .sidebar-group-toggle:hover { color: var(--primary); background: #f0f2f7; }
.sidebar-link.active { color: #fff; background: var(--primary); box-shadow: 0 8px 20px #1f31632b; }
.sidebar-link svg, .sidebar-group-label > svg { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; }
.sidebar-group-toggle { justify-content: space-between; cursor: pointer; }
.sidebar-group-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sidebar-chevron { width: 17px; height: 17px; fill: currentColor; transition: transform .18s ease; }
.sidebar-group-toggle[aria-expanded="true"] .sidebar-chevron { transform: rotate(180deg); }
.sidebar-submenu { display: grid; gap: 3px; padding: 3px 0 5px 45px; }
.sidebar-submenu[hidden] { display: none; }
.sidebar-submenu a { padding: 8px 10px; border-radius: 8px; color: #69728a; font-size: 13px; font-weight: 700; text-decoration: none; }
.sidebar-submenu a:hover { color: var(--primary); background: #f3f4f8; }
.sidebar-collapse { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 10px; color: var(--primary); background: #eef0f6; font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sidebar-collapse svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.admin-shell-body .admin-topbar { position: sticky; z-index: 15; top: 0; margin-left: var(--sidebar-width); min-height: 74px; transition: margin-left .22s ease; }
.admin-shell-body .admin-main { margin-left: var(--sidebar-width); transition: margin-left .22s ease; }
.topbar-context { color: var(--primary); font-size: 17px; }
.mobile-menu-trigger { display: none; width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: #eef0f6; }
.mobile-menu-trigger span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--primary); }
.sidebar-backdrop { display: none; position: fixed; z-index: 25; inset: 0; background: #101a36a8; }
.sidebar-collapsed { --sidebar-width: 82px; }
.sidebar-collapsed .sidebar-brand span, .sidebar-collapsed .sidebar-link span, .sidebar-collapsed .sidebar-group-toggle span span, .sidebar-collapsed .sidebar-chevron, .sidebar-collapsed .sidebar-submenu, .sidebar-collapsed .sidebar-collapse span { display: none; }
.sidebar-collapsed .sidebar-brand-row { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .sidebar-link, .sidebar-collapsed .sidebar-group-toggle, .sidebar-collapsed .sidebar-collapse { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.module-card-link { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.module-card-link:hover { transform: translateY(-3px); box-shadow: 0 16px 35px #1f31631c; }

/* Participants */
.participants-shell { width: min(calc(100% - var(--sidebar-width) - 40px), 1380px); margin-right: auto; padding: 38px 28px 60px; }
.page-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 22px; }
.page-heading-row h1 { margin: 4px 0 7px; font-size: clamp(42px, 6vw, 70px); }
.page-heading-row p { margin: 0; color: var(--muted); }
.participants-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 18px; }
.participants-stats article { display: grid; gap: 10px; padding: 19px 21px; border: 1px solid #dde2ed; border-radius: 17px; background: #fff; }
.participants-stats span { color: var(--muted); font-size: 13px; font-weight: 700; }.participants-stats strong { color: var(--primary); font-size: 31px; }
.participants-panel { padding: 0; overflow: hidden; border-radius: 18px; }
.participants-filters { display: grid; grid-template-columns: minmax(260px, 1fr) 220px 210px; gap: 12px; padding: 18px; border-bottom: 1px solid #e4e7ef; }
.participants-filters label { color: var(--primary); font-size: 12px; font-weight: 800; }.participants-filters input, .participants-filters select { width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px; background: #fff; font: inherit; }
.table-wrap { overflow-x: auto; }.participants-table { width: 100%; border-collapse: collapse; text-align: left; }.participants-table th { padding: 13px 16px; color: #6d7589; background: #f7f8fa; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }.participants-table td { padding: 15px 16px; border-top: 1px solid #eaecf1; color: #293149; font-size: 13px; vertical-align: middle; }.participants-table td strong, .participants-table td small { display: block; }.participants-table td small { margin-top: 4px; color: #788096; }.table-empty { padding: 42px !important; color: var(--muted) !important; text-align: center; }
.status-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: var(--primary); background: #e8ebf3; font-size: 11px; font-weight: 850; white-space: nowrap; }.status-approved { color: #08783e; background: #e1f5e9; }.status-suspended, .status-rejected { color: #a42a20; background: #fce8e6; }
.drawer-backdrop { position: fixed; z-index: 50; inset: 0; background: #101a367a; }.participant-drawer { position: fixed; z-index: 55; inset: 0 0 0 auto; width: min(100%, 520px); overflow-y: auto; padding: 26px; background: #fff; box-shadow: -20px 0 55px #101a3630; transform: translateX(105%); transition: transform .25s ease; }.participant-drawer.open { transform: translateX(0); }.drawer-open { overflow: hidden; }.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }.drawer-header h2 { margin: 4px 0; font-size: 32px; }.drawer-header button { width: 38px; height: 38px; border-radius: 10px; color: var(--primary); background: #eef0f6; font-size: 25px; }.participant-form { display: grid; gap: 15px; }.participant-form label { color: var(--primary); font-size: 13px; font-weight: 800; }.participant-form input, .participant-form select { width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px; background: #fff; font: inherit; }.participant-form label[hidden] { display: none; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.form-message { min-height: 20px; font-size: 13px; font-weight: 800; }.form-message.error { color: #b42318; }.form-message.success { color: #08783e; }

@media (max-width: 900px) {
    .admin-shell-body { --sidebar-width: 0px; }
    .admin-sidebar { width: 280px; transform: translateX(-105%); }
    .sidebar-mobile-open .admin-sidebar { transform: translateX(0); }
    .sidebar-mobile-open .sidebar-backdrop { display: block; }
    .sidebar-close, .mobile-menu-trigger { display: block; }
    .admin-shell-body .admin-topbar, .admin-shell-body .admin-main { margin-left: 0; }
    .participants-shell { width: 100%; }
    .participants-filters { grid-template-columns: 1fr 1fr; }.participants-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .page-heading-row { align-items: stretch; flex-direction: column; }.participants-stats { grid-template-columns: 1fr; }.participants-filters, .form-grid { grid-template-columns: 1fr; }.participants-filters label:first-child { grid-column: auto; }.participants-shell { padding: 26px 16px 50px; } }

/* Admin light/dark appearance */
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d9deea; border-radius: 50%; color: var(--primary); background: #fff; box-shadow: 0 4px 12px #1f316312; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.theme-toggle:hover { transform: translateY(-1px); background: #eef0f6; }
.theme-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.theme-toggle .theme-moon { display: none; }
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] .theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: block; }
[data-theme="dark"] .admin-dashboard-body { color: #e8ebf4; background: #0d1324; }
[data-theme="dark"] .admin-sidebar,
[data-theme="dark"] .admin-topbar,
[data-theme="dark"] .module-card,
[data-theme="dark"] .participants-stats article,
[data-theme="dark"] .participants-panel,
[data-theme="dark"] .account-dropdown,
[data-theme="dark"] .participant-drawer { border-color: #29334d; background: #151d31; }
[data-theme="dark"] .sidebar-brand-row,
[data-theme="dark"] .participants-filters,
[data-theme="dark"] .participants-table td,
[data-theme="dark"] .account-divider { border-color: #29334d; }
[data-theme="dark"] .sidebar-link,
[data-theme="dark"] .sidebar-group-toggle,
[data-theme="dark"] .sidebar-submenu a,
[data-theme="dark"] .module-card p,
[data-theme="dark"] .page-heading-row p,
[data-theme="dark"] .participants-stats span,
[data-theme="dark"] .participants-table td small,
[data-theme="dark"] .account-summary span { color: #aab3c8; }
[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-group-toggle:hover,
[data-theme="dark"] .sidebar-submenu a:hover,
[data-theme="dark"] .account-dropdown a:hover,
[data-theme="dark"] .account-signout:hover,
[data-theme="dark"] .avatar-trigger:hover,
[data-theme="dark"] .account-menu.open .avatar-trigger { color: #fff; background: #222c45; }
[data-theme="dark"] .sidebar-link.active { color: #fff; background: #334d91; }
[data-theme="dark"] .sidebar-collapse,
[data-theme="dark"] .mobile-menu-trigger,
[data-theme="dark"] .drawer-header button { color: #dfe5f7; background: #222c45; }
[data-theme="dark"] .theme-toggle { color: #ffd36a; border-color: #34405e; background: #202a42; }
[data-theme="dark"] .theme-toggle:hover { background: #293550; }
[data-theme="dark"] .topbar-context,
[data-theme="dark"] .sidebar-brand,
[data-theme="dark"] .page-heading-row h1,
[data-theme="dark"] .participants-stats strong,
[data-theme="dark"] .participants-filters label,
[data-theme="dark"] .participant-form label,
[data-theme="dark"] .account-summary strong,
[data-theme="dark"] .module-card h2 { color: #eef2ff; }
[data-theme="dark"] .participants-table th { color: #b8c0d3; background: #1b2439; }
[data-theme="dark"] .participants-table td { color: #dfe4ef; }
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea { color: #edf1fa; border-color: #52699f !important; background: #10182a; }
[data-theme="dark"] option { color: #edf1fa; background: #10182a; }
[data-theme="dark"] .account-dropdown a { color: #dbe3f8; }
[data-theme="dark"] .account-signout { color: #ff938a; }
[data-theme="dark"] .panel { box-shadow: 0 24px 70px #00000030; }

/* Full-width admin content and standalone create pages */
.admin-shell-body .admin-main { width: auto; max-width: none; margin-right: 0; box-sizing: border-box; }
.admin-shell-body .admin-dashboard-shell { width: auto; max-width: none; padding: 38px 28px 60px; }
.admin-shell-body .participants-shell { width: auto; max-width: none; padding: 38px 28px 60px; }
.page-heading-row .button { flex: 0 0 auto; text-decoration: none; }
.participant-create-shell { padding: 38px 28px 60px; }
.participant-create-form { display: grid; gap: 0; width: 100%; margin-top: 28px; padding: 0; }
.participant-create-form > section:first-child { border-radius: 28px 28px 0 0; }
.participant-create-form > section { padding: 26px 28px 30px; border-bottom: 1px solid #e2e6ef; }
.form-section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.form-section-heading > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; }
.form-section-heading h2 { margin: 1px 0 4px; color: var(--primary); font-size: 20px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.create-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.create-form-grid label { color: var(--primary); font-size: 13px; font-weight: 800; }
.create-form-grid input, .create-form-grid select { width: 100%; margin-top: 7px; padding: 12px; border-radius: 10px; background: #fff; font: inherit; }
.create-form-grid label[hidden] { display: none; }
.name-category-row { display: grid; grid-template-columns: 4fr 2fr; gap: 18px; margin-bottom: 18px; }
.name-category-row label { color: var(--primary); font-size: 13px; font-weight: 800; }
.name-category-row input, .name-category-row select { width: 100%; margin-top: 7px; padding: 12px; border-radius: 10px; background: #fff; font: inherit; }
.create-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 28px; border-radius: 0 0 28px 28px; background: #f8f9fb; }
.create-form-footer > div:last-child { display: flex; gap: 10px; }
.create-form-footer .button { margin: 0; border: 0; font: inherit; text-decoration: none; }
[data-theme="dark"] .participant-create-form,
[data-theme="dark"] .participant-create-form > section { border-color: #29334d; background: #151d31; }
[data-theme="dark"] .create-form-footer { background: #11192b; }
[data-theme="dark"] .form-section-heading h2,
[data-theme="dark"] .create-form-grid label,
[data-theme="dark"] .name-category-row label { color: #eef2ff; }
@media (max-width: 980px) { .create-form-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .admin-shell-body .admin-dashboard-shell, .admin-shell-body .participants-shell, .participant-create-shell { padding: 26px 16px 50px; }.create-form-grid { grid-template-columns: 1fr; }.name-category-row { grid-template-columns: 1fr; }.participant-create-form > section { padding: 22px 18px; }.create-form-footer { align-items: stretch; flex-direction: column; padding: 18px; }.create-form-footer > div:last-child { flex-direction: column-reverse; }.create-form-footer .button { justify-content: center; text-align: center; } }

/* Rewardz searchable select */
.rz-native-select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.rz-select { position: relative; width: 100%; margin-top: 7px; }
.rz-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; gap: 12px; padding: 10px 12px; border: 2px solid var(--control-border); border-radius: 10px; color: var(--primary); background: #fff; font: inherit; font-weight: 750; text-align: left; }
.rz-select-trigger.placeholder { color: #737d94; font-weight: 600; }
.rz-select-trigger:focus, .rz-select.open .rz-select-trigger { box-shadow: 0 0 0 4px #1f31631f; }
.rz-select-trigger svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; transition: transform .16s ease; }
.rz-select.open .rz-select-trigger svg { transform: rotate(180deg); }
.rz-select-dropdown { position: absolute; z-index: 80; top: calc(100% + 7px); right: 0; left: 0; min-width: 230px; padding: 9px; border: 1px solid #cdd4e4; border-radius: 13px; background: #fff; box-shadow: 0 18px 44px #1f31632b; }
.rz-select-dropdown[hidden] { display: none; }
.rz-select-search { width: 100%; margin: 0 0 7px !important; padding: 10px 11px !important; border-width: 1px !important; border-radius: 8px !important; font: inherit; }
.rz-select-options { max-height: 250px; overflow-y: auto; }
.rz-select-option { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 10px 11px; border: 0; border-radius: 8px; color: #343d57; background: transparent; font: inherit; font-size: 13px; font-weight: 650; text-align: left; }
.rz-select-option:hover, .rz-select-option:focus { color: var(--primary); background: #eef0f6; }
.rz-select-option svg { display: none; width: 17px; height: 17px; fill: var(--primary); }
.rz-select-option.selected { color: var(--primary); background: #e8ebf3; font-weight: 850; }
.rz-select-option.selected svg { display: block; }
.rz-select-option[hidden] { display: none; }
.rz-select-empty { margin: 0; padding: 16px 10px; color: var(--muted); font-size: 13px; text-align: center; }
[data-theme="dark"] .rz-select-trigger, [data-theme="dark"] .rz-select-dropdown { color: #e8edfa; border-color: #52699f; background: #10182a; }
[data-theme="dark"] .rz-select-option { color: #c8d0e2; }
[data-theme="dark"] .rz-select-option:hover, [data-theme="dark"] .rz-select-option:focus, [data-theme="dark"] .rz-select-option.selected { color: #fff; background: #253453; }
[data-theme="dark"] .rz-select-option svg { fill: #fff; }

/* Settings redesign and dedicated user management */
.settings-redesign, .users-page-shell, .user-form-shell { padding: 38px 28px 60px; }
.settings-workspace { display: grid; grid-template-columns: 270px minmax(0,1fr); align-items: start; gap: 22px; margin-top: 28px; }
.settings-section-nav { display: grid; gap: 8px; padding: 10px; border: 1px solid #dfe3ed; border-radius: 17px; background: #fff; }
.settings-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px; border: 0; border-radius: 12px; color: #4d5873; background: transparent; text-align: left; }
.settings-nav-item:hover { background: #f1f3f8; }.settings-nav-item.active { color: #fff; background: var(--primary); box-shadow: 0 8px 18px #1f316329; }
.settings-nav-item > span:last-child { display: grid; gap: 2px; }.settings-nav-item strong { font-size: 13px; }.settings-nav-item small { color: inherit; font-size: 11px; opacity: .75; }
.settings-nav-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 10px; color: var(--primary); background: #e8ebf3; font-size: 10px; font-weight: 950; }
.settings-nav-item.active .settings-nav-icon { color: var(--primary); background: #fff; }
.settings-section { padding: 0; overflow: hidden; }.settings-section[hidden] { display: none; }
.settings-section-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 27px 28px; border-bottom: 1px solid #e2e6ef; }
.settings-section-header h2 { margin: 5px 0; color: var(--primary); font-size: 25px; }.settings-section-header p { margin: 0; color: var(--muted); }
.channel-kicker { color: #d24b2a; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.channel-switch { display: flex; align-items: center; gap: 9px; cursor: pointer; }.channel-switch input { position: absolute; opacity: 0; }.channel-switch span { position: relative; width: 42px; height: 24px; border: 2px solid var(--primary); border-radius: 999px; background: #fff; }.channel-switch span::after { content:""; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:var(--primary); transition:.18s ease; }.channel-switch input:checked + span { background:var(--primary); }.channel-switch input:checked + span::after { transform:translateX(18px); background:#fff; }.channel-switch em { color:var(--primary); font-size:12px; font-style:normal; font-weight:850; }
.settings-form { padding: 27px 28px; }.settings-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }.settings-form-grid label { color:var(--primary); font-size:13px; font-weight:800; }.settings-form-grid input, .settings-form-grid select, .settings-form-grid textarea { width:100%; margin-top:7px; padding:12px; border-radius:10px; font:inherit; background:#fff; resize:vertical; border:1.5px solid #d0d5e5; color:var(--ink); }
.settings-form-grid input:focus, .settings-form-grid select:focus, .settings-form-grid textarea:focus { border-color:var(--primary); outline:none; }
.boundary-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:12px; margin:0 0 22px; }
.boundary-summary-grid div { padding:16px; border:1px solid #dfe3ed; border-radius:12px; background:#f8f9fc; }
.boundary-summary-grid span { display:block; color:var(--primary); font-size:24px; font-weight:950; line-height:1; }
.boundary-summary-grid small { display:block; margin-top:6px; color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; }
.settings-save-row { display:flex; justify-content:flex-end; align-items:center; gap:15px; margin-top:25px; padding-top:20px; border-top:1px solid #e5e8ef; }.settings-status-msg { margin-right:auto; font-size:13px; font-weight:800; }.settings-status-msg.success{color:#08783e}.settings-status-msg.error{color:#b42318}
.settings-action-buttons { display:flex; align-items:center; gap:10px; }.settings-action-buttons .button { margin:0; border:0; font:inherit; }.settings-action-buttons button:disabled { cursor:wait; opacity:.65; }
.custom-modal-overlay[hidden] { display:none !important; }.test-sms-modal .custom-modal-card { width:min(100%,560px); }.test-sms-modal .custom-modal-header>div { display:grid; gap:4px; }.test-sms-modal textarea { width:100%; padding:12px; border-radius:10px; resize:vertical; font:inherit; }.test-sms-modal .field-hint { color:var(--muted); font-size:11px; }.test-sms-modal .custom-modal-footer>div { display:flex; gap:9px; }
.settings-webhook-note { display:flex; justify-content:space-between; gap:15px; margin-top:20px; padding:14px 16px; border-radius:11px; color:var(--primary); background:#eef0f6; font-size:12px; }
.users-list-panel { margin-top:28px; padding:0; overflow:hidden; }.users-toolbar { padding:18px; border-bottom:1px solid #e2e6ef; }.users-toolbar label { display:block; max-width:460px; color:var(--primary); font-size:12px; font-weight:800; }.users-toolbar input { width:100%; margin-top:6px; padding:11px 12px; border-radius:10px; background:#fff; font:inherit; }.table-action-link { display:inline-flex; padding:8px 12px; border-radius:9px; color:var(--primary); background:#e8ebf3; font-size:12px; font-weight:850; text-decoration:none; }
.user-page-form { margin-top:28px; padding:28px; }.user-status-control { align-self:start; }
[data-theme="dark"] .settings-section-nav,[data-theme="dark"] .settings-section,[data-theme="dark"] .users-list-panel,[data-theme="dark"] .user-page-form { border-color:#29334d; background:#151d31; }
[data-theme="dark"] .settings-nav-item { color:#b8c1d6; }[data-theme="dark"] .settings-nav-item:hover{background:#222c45}[data-theme="dark"] .settings-nav-item.active{color:#fff;background:#334d91}
[data-theme="dark"] .settings-section-header,[data-theme="dark"] .settings-save-row,[data-theme="dark"] .users-toolbar { border-color:#29334d; }[data-theme="dark"] .settings-section-header h2,[data-theme="dark"] .settings-form-grid label,[data-theme="dark"] .users-toolbar label { color:#eef2ff; }[data-theme="dark"] .settings-webhook-note { color:#dfe5f7; background:#222c45; }[data-theme="dark"] .boundary-summary-grid div { border-color:#29334d; background:#11192b; }[data-theme="dark"] .boundary-summary-grid span { color:#eef2ff; }
@media(max-width:900px){.settings-workspace{grid-template-columns:1fr}.settings-section-nav{grid-template-columns:repeat(3,1fr)}.settings-nav-item{justify-content:center}.settings-nav-item>span:last-child{display:none}}
@media(max-width:650px){.settings-redesign,.users-page-shell,.user-form-shell{padding:26px 16px 50px}.settings-form-grid{grid-template-columns:1fr}.boundary-summary-grid{grid-template-columns:1fr 1fr}.settings-section-header{flex-direction:column}.settings-form{padding:22px 18px}.settings-section-header{padding:22px 18px}.settings-webhook-note{flex-direction:column}.settings-save-row{align-items:stretch;flex-direction:column}.settings-save-row .button{justify-content:center}.settings-action-buttons{align-items:stretch;flex-direction:column}.user-page-form{padding:20px}.settings-section-nav{grid-template-columns:1fr}.settings-nav-item{justify-content:flex-start}.settings-nav-item>span:last-child{display:grid}}

.button:not(.secondary):not(.products-add-btn):not(.def-add-btn),
.mobile-primary-button,
.auth-submit {
    background: var(--primary) !important;
}

/* Settings Page Shell, Tabs, and Forms */
.settings-page-shell { padding: 38px 28px 60px; }
.settings-tabs-nav { display: flex; gap: 8px; margin: 24px 0; border-bottom: 1px solid #e1e5e2; padding-bottom: 2px; }
.tab-link { padding: 12px 20px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 750; cursor: pointer; position: relative; border-radius: 8px 8px 0 0; transition: color .2s ease, background-color .2s ease; }
.tab-link:hover { color: var(--primary); background: #f0f2f7; }
.tab-link.active { color: var(--primary); }
.tab-link.active::after { content: ""; position: absolute; bottom: -3px; left: 0; right: 0; height: 3px; background: var(--primary); border-radius: 99px; }

[data-theme="dark"] .settings-tabs-nav { border-color: #29334d; }
[data-theme="dark"] .tab-link:hover { color: #fff; background: #222c45; }
[data-theme="dark"] .tab-link.active { color: #fff; }
[data-theme="dark"] .tab-link.active::after { background: #52699f; }

.settings-tab-panel { margin-top: 16px; padding: 28px; }
.tab-panel-header { margin-bottom: 24px; border-bottom: 1px solid #e1e5e2; padding-bottom: 16px; }
.tab-panel-header.row-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; }
.tab-panel-header h2 { margin: 0 0 6px; font-size: 22px; color: var(--primary); }
.tab-panel-header p { margin: 0; color: var(--muted); font-size: 14px; }

[data-theme="dark"] .tab-panel-header { border-color: #29334d; }
[data-theme="dark"] .tab-panel-header h2 { color: #eef2ff; }

.settings-tab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.settings-tab-grid label { display: flex; flex-direction: column; gap: 8px; color: var(--primary); font-weight: 800; font-size: 13px; }
.settings-tab-grid label.full-width { grid-column: 1 / -1; }
.settings-tab-grid label.checkbox-label { flex-direction: row; align-items: center; cursor: pointer; gap: 10px; }
.settings-tab-grid input:not([type="checkbox"]), .settings-tab-grid select { width: 100%; padding: 12px; border-radius: 10px; font: inherit; }

[data-theme="dark"] .settings-tab-grid label { color: #eef2ff; }

.form-action-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #e1e5e2; padding-top: 20px; }
.settings-status-msg { font-size: 13px; font-weight: 800; }
.settings-status-msg.success { color: #08783e; }
.settings-status-msg.error { color: #b42318; }

[data-theme="dark"] .form-action-footer { border-color: #29334d; }
[data-theme="dark"] .settings-status-msg.success { color: #4ade80; }
[data-theme="dark"] .settings-status-msg.error { color: #f87171; }

/* Custom Modals */
.custom-modal-overlay { position: fixed; z-index: 100; inset: 0; background: rgba(16, 26, 54, 0.48); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.custom-modal-card { width: min(100%, 540px); background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(31, 49, 99, 0.25); border: 1px solid #ffffff30; overflow: hidden; display: flex; flex-direction: column; transform: translateY(0); transition: transform .2s ease; }
.custom-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #e1e5e2; }
.custom-modal-header h2 { margin: 0; font-size: 20px; color: var(--primary); }
.close-modal-btn { background: transparent; border: 0; font-size: 28px; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 4px; line-height: 1; }
.close-modal-btn:hover { color: var(--primary); }
.custom-modal-form { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.custom-modal-form label { display: flex; flex-direction: column; gap: 7px; color: var(--primary); font-weight: 800; font-size: 13px; }
.custom-modal-form label.checkbox-label { flex-direction: row; align-items: center; cursor: pointer; gap: 10px; }
.custom-modal-form input:not([type="checkbox"]), .custom-modal-form select { width: 100%; padding: 12px; border-radius: 10px; font: inherit; }
.field-hint { margin-top: 3px; font-weight: 500; color: var(--muted); font-size: 11px; }
.custom-modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; border-top: 1px solid #e1e5e2; padding-top: 20px; }
.modal-status-msg { font-size: 13px; font-weight: 800; }
.modal-status-msg.success { color: #08783e; }
.modal-status-msg.error { color: #b42318; }

[data-theme="dark"] .custom-modal-card { background: #151d31; border-color: #29334d; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .custom-modal-header, [data-theme="dark"] .custom-modal-footer { border-color: #29334d; }
[data-theme="dark"] .custom-modal-header h2, [data-theme="dark"] .custom-modal-form label { color: #eef2ff; }
[data-theme="dark"] .close-modal-btn { color: #aab3c8; }
[data-theme="dark"] .close-modal-btn:hover { color: #fff; }
[data-theme="dark"] .modal-status-msg.success { color: #4ade80; }
[data-theme="dark"] .modal-status-msg.error { color: #f87171; }

/* Definitions tab */
.def-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 14px 20px 0;
    border-bottom: 1px solid #e2e6ef;
    background: #f8f9fb;
}
.def-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px 8px 0 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    position: relative;
    transition: color .15s ease, background .15s ease;
}
.def-tab-btn:hover { color: var(--primary); background: #eef0f6; }
.def-tab-btn.active { color: var(--primary); background: white; }
.def-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}
.def-tab-panel { display: none; }
.def-tab-panel.def-tab-active { display: block; }

.def-panel-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e6ef;
}
.def-panel-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.def-add-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 9px 16px !important;
    border: 0;
    border-radius: 10px;
    background: var(--primary) !important;
    color: white !important;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.def-table { width: 100%; }
.def-actions { display: flex; gap: 6px; }
.def-delete-btn { color: #b42318 !important; background: #fce8e6 !important; }
.def-delete-btn:hover { background: #f9d0cd !important; }
.def-product-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef0f6;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

[data-theme="dark"] .def-tabs-nav { border-color: #29334d; background: #11192b; }
[data-theme="dark"] .def-tab-btn:hover { color: #eef2ff; background: #222c45; }
[data-theme="dark"] .def-tab-btn.active { color: #eef2ff; background: #151d31; }
[data-theme="dark"] .def-tab-btn.active::after { background: #52699f; }
[data-theme="dark"] .def-panel-toolbar { border-color: #29334d; }
[data-theme="dark"] .def-product-count { background: #222c45; color: #a8bde8; }

/* Products page redesign */
.products-page-shell { padding: 38px 28px 60px; }

.products-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding: 32px 36px;
    border-radius: 24px;
    background: linear-gradient(130deg, var(--primary) 0%, #2a4899 55%, #1a3275 100%);
    color: white;
    overflow: hidden;
    position: relative;
}
.products-page-header::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.products-page-header::after {
    content: "";
    position: absolute;
    bottom: -80px; right: 120px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.page-kicker {
    display: block;
    margin-bottom: 8px;
    color: #a8bde8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.products-page-title h1 {
    margin: 0 0 6px;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -.045em;
    color: white;
    line-height: 1;
}
.products-page-title > p { margin: 0; color: #a8bde8; font-size: 14px; }

.products-page-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}
.products-stats-row { display: flex; gap: 10px; }
.products-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    min-width: 72px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
}
.products-stat strong { font-size: 26px; font-weight: 900; color: white; line-height: 1; }
.products-stat span { font-size: 10px; color: #a8bde8; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.products-stat--active strong { color: #7de8ab; }
.products-stat--inactive strong { color: #f4a896; }
.products-add-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 13px 20px !important;
    border-radius: 14px !important;
    background: white !important;
    color: var(--primary) !important;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.products-add-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.22); }

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.products-search-wrap {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.products-search-wrap > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    fill: var(--muted);
    pointer-events: none;
}
.products-search-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px !important;
    border-radius: 13px !important;
    background: white;
    font: inherit;
}

.products-view-toggle {
    display: flex;
    padding: 4px;
    border-radius: 12px;
    background: #eef0f6;
    gap: 2px;
}
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.view-btn:hover { color: var(--primary); }
.view-btn.active { color: var(--primary); background: white; box-shadow: 0 2px 8px #1f316322; }

/* Products table panel */
.products-list-panel {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #e2e6ef;
    background: white;
}
.products-table td code {
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f5fa;
    color: var(--primary);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Products card grid */
.products-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cards-empty {
    grid-column: 1 / -1;
    padding: 42px;
    color: var(--muted);
    text-align: center;
}
.product-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e2e6ef;
    border-radius: 20px;
    background: white;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px #1f316318;
    border-color: #c5cde3;
}
.product-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.product-card-icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #edf1fc, #dce4f5);
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.02em;
}
.product-card-name {
    margin: 0 0 5px;
    font-size: 17px;
    color: var(--ink);
    line-height: 1.3;
}
.product-card-sku {
    margin: 0 0 16px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef0f6;
    gap: 8px;
}
.product-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef0f6;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}
.product-card-date { color: var(--muted); font-size: 11px; }
.card-edit-link {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--primary);
    background: #eef0f6;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease;
    flex-shrink: 0;
}
.card-edit-link:hover { background: #dce3f5; }

/* Dark mode — products */
[data-theme="dark"] .products-page-header {
    background: linear-gradient(130deg, #1c2d5e 0%, #1a2650 55%, #111c3f 100%);
}
[data-theme="dark"] .products-stat { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .products-view-toggle { background: #1b2439; }
[data-theme="dark"] .view-btn.active { background: #222c45; }
[data-theme="dark"] .view-btn { color: #aab3c8; }
[data-theme="dark"] .view-btn:hover, [data-theme="dark"] .view-btn.active { color: #eef2ff; }
[data-theme="dark"] .products-list-panel,
[data-theme="dark"] .product-card { border-color: #29334d; background: #151d31; }
[data-theme="dark"] .product-card:hover { border-color: #3d4e72; }
[data-theme="dark"] .product-card-icon { background: linear-gradient(135deg, #1e2d50, #253562); }
[data-theme="dark"] .product-card-name { color: #eef2ff; }
[data-theme="dark"] .product-card-footer { border-color: #29334d; }
[data-theme="dark"] .category-badge { background: #222c45; color: #aab3c8; }
[data-theme="dark"] .products-table td code { background: #1b2439; color: #a8bde8; }
[data-theme="dark"] .card-edit-link { background: #222c45; color: #dbe3f8; }
[data-theme="dark"] .card-edit-link:hover { background: #2e3d60; }

@media (max-width: 1100px) { .products-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .products-page-header { flex-direction: column; }
    .products-page-actions { align-items: flex-start; }
    .products-stats-row { flex-wrap: wrap; }
}
@media (max-width: 620px) {
    .products-page-shell { padding: 26px 16px 50px; }
    .products-page-header { padding: 24px 22px; border-radius: 18px; }
    .products-toolbar { flex-direction: column; align-items: stretch; }
    .products-search-wrap { max-width: none; }
    .products-view-toggle { justify-content: center; }
    .products-cards-grid { grid-template-columns: 1fr; }
}

/* Product create/edit form redesign */
.product-form-shell { padding: 38px 28px 60px; }

.product-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 28px 36px;
    border-radius: 24px;
    background: linear-gradient(130deg, var(--primary) 0%, #2a4899 55%, #1a3275 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.product-form-header::before {
    content: "";
    position: absolute;
    top: -80px; right: -40px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.pf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #a8bde8;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color .15s ease;
}
.pf-back-link:hover { color: white; }
.product-form-header h1 {
    margin: 0 0 5px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.045em;
    line-height: 1;
    color: white;
}
.product-form-header-inner > p { margin: 0; color: #a8bde8; font-size: 14px; }
.pf-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 13px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.pf-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #7de8ab;
}
.pf-header-badge--inactive .pf-badge-dot { background: #f4a896; }

/* Two-column layout */
.product-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

/* Form card */
.product-form-card {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #e2e6ef;
    background: white;
}
.pf-section { padding: 26px 28px; border-bottom: 1px solid #e8eaf0; }
.pf-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pf-section-label > span {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 900;
}
.pf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-fields label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}
.pf-fields label.full-span { grid-column: 1 / -1; }
.pf-fields input,
.pf-fields select,
.pf-fields textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: white;
    font: inherit;
}
.pf-fields textarea { resize: vertical; min-height: 96px; }

.pf-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: #f8f9fb;
    border-top: 1px solid #e8eaf0;
}
.pf-footer-actions { display: flex; gap: 10px; }
.pf-footer .button { margin: 0; border: 0; font: inherit; text-decoration: none; }

/* Aside */
.product-form-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }

.product-preview-card {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #e2e6ef;
    background: white;
}
.pf-preview-label {
    margin: 0 0 16px;
    font-size: 10px;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pf-preview-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.pf-preview-icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    flex: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #edf1fc, #dce4f5);
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    transition: background .2s ease;
}
.pf-preview-name {
    margin: 0 0 3px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 800;
    word-break: break-word;
}
.pf-preview-sku {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
}
.pf-preview-rows {
    border: 1px solid #eef0f6;
    border-radius: 12px;
    overflow: hidden;
}
.pf-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f6;
    font-size: 13px;
}
.pf-preview-row:last-child { border-bottom: 0; }
.pf-preview-row > span:first-child { color: var(--muted); font-weight: 700; }
.pf-preview-row > span:last-child { font-weight: 800; text-align: right; }
.pf-preview-desc {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f9fb;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.pf-tips {
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid #e2e6ef;
    background: white;
}
.pf-tips h4 {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.pf-tips ul { margin: 0; padding: 0 0 0 16px; display: grid; gap: 9px; }
.pf-tips li { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pf-tips em { color: var(--primary); font-style: normal; font-weight: 750; }

/* Dark mode — product form */
[data-theme="dark"] .product-form-header {
    background: linear-gradient(130deg, #1c2d5e 0%, #1a2650 55%, #111c3f 100%);
}
[data-theme="dark"] .product-form-card,
[data-theme="dark"] .product-preview-card,
[data-theme="dark"] .pf-tips { border-color: #29334d; background: #151d31; }
[data-theme="dark"] .pf-section { border-color: #29334d; }
[data-theme="dark"] .pf-section-label { color: #a8bde8; }
[data-theme="dark"] .pf-section-label > span { background: #334d91; }
[data-theme="dark"] .pf-fields label { color: #eef2ff; }
[data-theme="dark"] .pf-footer { background: #11192b; border-color: #29334d; }
[data-theme="dark"] .pf-preview-icon { background: linear-gradient(135deg, #1e2d50, #253562); }
[data-theme="dark"] .pf-preview-name { color: #eef2ff; }
[data-theme="dark"] .pf-preview-rows { border-color: #29334d; }
[data-theme="dark"] .pf-preview-row { border-color: #29334d; }
[data-theme="dark"] .pf-preview-desc { background: #1b2439; }
[data-theme="dark"] .pf-tips em { color: #a8bde8; }

@media (max-width: 1000px) {
    .product-form-layout { grid-template-columns: 1fr; }
    .product-form-aside { position: static; }
    .product-preview-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    .pf-preview-label { grid-column: 1 / -1; margin-bottom: 0; }
}
@media (max-width: 680px) {
    .product-form-shell { padding: 26px 16px 50px; }
    .product-form-header { padding: 22px 22px; border-radius: 18px; flex-direction: column; align-items: flex-start; }
    .pf-fields { grid-template-columns: 1fr; }
    .pf-fields label.full-span { grid-column: auto; }
    .pf-section { padding: 20px 18px; }
    .pf-footer { flex-direction: column; align-items: stretch; }
    .pf-footer-actions { flex-direction: column-reverse; }
    .pf-footer .button { justify-content: center; text-align: center; }
    .product-preview-card { grid-template-columns: 1fr; }
}

/* Password wrapper within settings and create/edit form grids */
.settings-form-grid .password-wrap,
.create-form-grid .password-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 7px;
    border-radius: 10px !important;
    background: #fff;
    overflow: hidden;
}

.settings-form-grid .password-wrap input,
.create-form-grid .password-wrap input {
    margin-top: 0 !important;
    padding: 12px 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.settings-form-grid .password-wrap button,
.create-form-grid .password-wrap button {
    margin-top: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

/* Dark mode support for password-wrap */
[data-theme="dark"] .password-wrap {
    border-color: #52699f !important;
    background: #10182a !important;
}

[data-theme="dark"] .password-wrap button {
    color: #aab3c8 !important;
}

[data-theme="dark"] .password-wrap button:hover {
    color: #edf1fa !important;
}

/* Participant detail page */
.pd-shell { padding: 38px 28px 60px; }
.pd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.pd-header h1 { margin: 6px 0 4px; font-size: clamp(36px, 5vw, 58px); }
.pd-header > div > p { margin: 0; color: var(--muted); }
.pd-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.pd-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.pd-actions .button { margin: 0; border: 0; padding: 11px 20px; font: inherit; font-weight: 800; border-radius: 12px; cursor: pointer; }
.pd-btn-approve { background: #08783e !important; color: #fff !important; }
.pd-btn-approve:hover { background: #065e30 !important; }
.pd-btn-reject { background: #b42318 !important; color: #fff !important; }
.pd-btn-reject:hover { background: #8e1910 !important; }
.pd-btn-suspend { background: #7a4f00 !important; color: #fff !important; }
.pd-btn-suspend:hover { background: #5e3c00 !important; }
.pd-actions button:disabled { opacity: .55; cursor: not-allowed; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; }
.pd-main { display: grid; gap: 16px; }
.pd-card { padding: 24px 26px; border: 1px solid #dde2ed; border-radius: 18px; background: #fff; }
.pd-card-title { margin: 0 0 18px; color: var(--primary); font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.pd-dl { margin: 0; display: grid; gap: 0; }
.pd-dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eaecf1; }
.pd-dl > div:last-child { border-bottom: 0; }
.pd-dl dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.pd-dl dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.pd-dl code { padding: 3px 7px; border-radius: 6px; background: #eef0f6; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.pd-survey-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eaecf1; }
.pd-survey-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.pd-survey-section h4 { margin: 0 0 10px; color: var(--ink); font-size: 14px; font-weight: 850; }
.pd-survey-dl > div { grid-template-columns: minmax(180px, 260px) 1fr; }
.pd-survey-dl a { color: var(--primary); font-weight: 850; text-decoration: none; }
.pd-survey-dl a:hover { text-decoration: underline; }
.pd-aside { display: grid; gap: 16px; }
.pd-summary-card { padding: 26px; border: 1px solid #dde2ed; border-radius: 18px; background: #fff; text-align: center; }
.pd-avatar { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: var(--primary); font-size: 26px; font-weight: 900; }
.pd-summary-name { margin: 0 0 4px; color: var(--ink); font-size: 16px; font-weight: 900; }
.pd-summary-code { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.pd-points-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: #eef0f6; }
.pd-points-row span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pd-points-row strong { color: var(--primary); font-size: 22px; font-weight: 900; }
.pd-tip-card { padding: 22px 24px; border: 1px solid #dde2ed; border-radius: 18px; background: #fff; }
.pd-tip-card h4 { margin: 0 0 12px; color: var(--primary); font-size: 14px; }
.pd-tip-card ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.pd-tip-card li { color: var(--muted); font-size: 13px; line-height: 1.5; }
.reject-modal-backdrop { position: fixed; z-index: 100; inset: 0; background: #101a367a; display: grid; place-items: center; padding: 20px; }
.reject-modal-backdrop[hidden] { display: none; }
.reject-modal { width: min(100%, 520px); padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px #1f316330; }
.reject-modal h3 { margin: 0 0 8px; color: var(--primary); font-size: 22px; }
.reject-modal p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reject-modal label { display: block; color: var(--primary); font-size: 13px; font-weight: 800; }
.reject-modal textarea { width: 100%; margin-top: 7px; padding: 12px; border-radius: 10px; font: inherit; background: #fff; resize: vertical; }
.reject-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.reject-modal-footer .button { margin: 0; border: 0; padding: 11px 20px; font: inherit; font-weight: 800; border-radius: 12px; cursor: pointer; }
[data-theme="dark"] .pd-card, [data-theme="dark"] .pd-summary-card, [data-theme="dark"] .pd-tip-card { border-color: #29334d; background: #151d31; }
[data-theme="dark"] .pd-card-title, [data-theme="dark"] .pd-summary-name, [data-theme="dark"] .pd-points-row strong { color: #eef2ff; }
[data-theme="dark"] .pd-dl > div { border-color: #29334d; }
[data-theme="dark"] .pd-dl dt, [data-theme="dark"] .pd-summary-code, [data-theme="dark"] .pd-tip-card li { color: #aab3c8; }
[data-theme="dark"] .pd-dl dd { color: #dfe4ef; }
[data-theme="dark"] .pd-dl code { background: #222c45; color: #a8bde8; }
[data-theme="dark"] .pd-survey-section { border-color: #29334d; }
[data-theme="dark"] .pd-survey-section h4 { color: #eef2ff; }
[data-theme="dark"] .pd-points-row { background: #222c45; }
[data-theme="dark"] .pd-points-row span { color: #aab3c8; }
[data-theme="dark"] .reject-modal { background: #151d31; }
[data-theme="dark"] .reject-modal h3 { color: #eef2ff; }
/* Reward codes */
.rc-batch-code { padding: 4px 8px; border-radius: 7px; background: #eef0f6; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.rc-code-chip { display: inline-block; padding: 5px 10px; border-radius: 8px; background: #f0f4ff; color: var(--primary); font-size: 14px; font-weight: 900; letter-spacing: .1em; }
.rc-used-badge { font-size: 13px; font-weight: 800; color: var(--ink); }
.rc-batch-stats { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; margin-bottom: 8px; }
.rc-batch-stat { padding: 16px 18px; border: 1px solid #dde2ed; border-radius: 14px; background: #fff; }
.rc-batch-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.rc-batch-stat strong { display: block; margin-top: 6px; color: var(--primary); font-size: 20px; font-weight: 900; }
.rc-batch-stat--used strong { color: #08783e; }
.rc-batch-stat--unused strong { color: var(--primary); }
.rc-codes-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e4e7ef; }
.rc-status-select { padding: 9px 12px; border-radius: 9px; background: #fff; font: inherit; font-size: 13px; }
.rc-pagination-info { color: var(--muted); font-size: 13px; font-weight: 700; }
.rc-pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; }
.rc-page-btn { padding: 8px 13px; border: 1px solid #dde2ed; border-radius: 8px; color: var(--primary); background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.rc-page-btn:hover { background: #eef0f6; }
.rc-page-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }
.rc-generate-modal { width: min(100%, 560px) !important; }
.rc-generate-form { display: grid; gap: 16px; margin: 20px 0 8px; }
.rc-generate-form label { color: var(--primary); font-size: 13px; font-weight: 800; }
.rc-generate-form select, .rc-generate-form input { width: 100%; margin-top: 7px; padding: 12px; border-radius: 10px; background: #fff; font: inherit; }
.rc-quantity-wrap { position: relative; }
.rc-quantity-hint { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }
.rc-required { color: #b42318; }
[data-theme="dark"] .rc-batch-code { background: #222c45; color: #a8bde8; }
[data-theme="dark"] .rc-code-chip { background: #1a2d52; color: #93b4f5; }
[data-theme="dark"] .rc-batch-stat { border-color: #29334d; background: #151d31; }
[data-theme="dark"] .rc-batch-stat strong { color: #eef2ff; }
[data-theme="dark"] .rc-batch-stat--used strong { color: #4ade80; }
[data-theme="dark"] .rc-codes-toolbar { border-color: #29334d; }
[data-theme="dark"] .rc-status-select { color: #edf1fa; background: #10182a; }
[data-theme="dark"] .rc-page-btn { border-color: #29334d; color: #a8bde8; background: #151d31; }
[data-theme="dark"] .rc-page-btn:hover { background: #222c45; }
[data-theme="dark"] .rc-page-btn.active { color: #fff; background: #334d91; border-color: #334d91; }
@media (max-width: 1100px) { .rc-batch-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rc-batch-stats { grid-template-columns: repeat(2, 1fr); } }

/* Campaign status pills */
.campaign-status-draft { color: #5a6070; background: #eaecf0; }
.campaign-status-scheduled { color: #1a4fa0; background: #ddeaff; }
.campaign-status-paused { color: #7a4f00; background: #fff0cc; }
.campaign-status-completed { color: #08783e; background: #e1f5e9; }
.campaign-status-cancelled { color: #a42a20; background: #fce8e6; }
.campaign-duration { color: var(--ink); font-size: 13px; font-weight: 700; }
.campaign-days-left { display: block; margin-top: 3px; color: #08783e; font-size: 11px; font-weight: 800; }
.campaigns-status-filter select { padding: 10px 12px; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; }
[data-theme="dark"] .campaign-status-draft { color: #a8b0c4; background: #222c45; }
[data-theme="dark"] .campaign-status-scheduled { color: #93b4f5; background: #1a2d52; }
[data-theme="dark"] .campaign-status-paused { color: #ffd066; background: #3a2d00; }
[data-theme="dark"] .campaign-status-completed { color: #4ade80; background: #0a2e1a; }
[data-theme="dark"] .campaign-status-cancelled { color: #ff938a; background: #3a1a1a; }
[data-theme="dark"] .campaigns-status-filter select { color: #edf1fa; background: #10182a; }

.participant-actions-cell { white-space: nowrap; text-align: right; }
.pt-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; color: var(--primary); background: #eef0f6; cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease; }
.pt-action-btn:hover { background: #dde2ef; }
.pt-delete-btn { color: #b42318; background: #fce8e6; }
.pt-delete-btn:hover { background: #f9d0cd; }
[data-theme="dark"] .pt-action-btn { color: #a8bde8; background: #222c45; }
[data-theme="dark"] .pt-action-btn:hover { background: #2d3a58; }
[data-theme="dark"] .pt-delete-btn { color: #ff938a; background: #3a1a1a; }
[data-theme="dark"] .pt-delete-btn:hover { background: #4a2020; }

@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; } .pd-aside { grid-row: 1; } }
@media (max-width: 620px) { .pd-shell { padding: 26px 16px 50px; } .pd-header { flex-direction: column; } .pd-header-right { align-items: flex-start; } .pd-dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* ── Field Onboarding ─────────────────────────────────────────── */
.fo-stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.fo-stat--pending strong { color: #1a4fa0; }
.fo-stat--approved strong { color: #08783e; }
.fo-stat--rejected strong { color: #b42318; }
.fo-stat--agents strong { color: #7a4f00; }
.fo-toolbar { flex-wrap: wrap; }
.fo-toolbar select { padding: 10px 12px; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; border: 1.5px solid #d0d5e5; color: var(--ink); }
.fo-table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.fo-gps-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 12px; font-weight: 600; text-decoration: none; }
.fo-gps-link:hover { text-decoration: underline; }
.fo-approve-btn { background: none; border: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: #08783e; cursor: pointer; text-decoration: underline; }
.fo-approve-btn:hover { color: #064828; }
[data-theme="dark"] .fo-stat--pending strong { color: #93b4f5; }
[data-theme="dark"] .fo-stat--approved strong { color: #4ade80; }
[data-theme="dark"] .fo-stat--rejected strong { color: #ff938a; }
[data-theme="dark"] .fo-stat--agents strong { color: #ffd066; }
[data-theme="dark"] .fo-toolbar select { background: #10182a; color: #edf1fa; border-color: #29334d; }
[data-theme="dark"] .fo-gps-link { color: #93b4f5; }
[data-theme="dark"] .fo-approve-btn { color: #4ade80; }

/* ── Rewards ──────────────────────────────────────────────────── */
.rw-stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.rw-stat--pending strong  { color: #1a4fa0; }
.rw-stat--approved strong { color: #08783e; }
.rw-stat--points strong   { color: #7a4f00; }
.rw-stat--tiers strong    { color: var(--primary); }
.rw-toolbar { flex-wrap: wrap; margin-top: 0; }
.rw-toolbar select { padding: 10px 12px; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; border: 1.5px solid #d0d5e5; color: var(--ink); }
.rw-section-header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 32px 0 8px; }
.rw-tiers-header { margin-top: 48px; flex-direction: column; align-items: flex-start; gap: 4px; }
.rw-section-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }
.rw-section-sub { margin: 0; color: var(--muted); font-size: 13px; }
.rw-table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.rw-modal-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin: 12px 0 0; }
.rw-modal-label textarea { padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d0d5e5; font: inherit; font-size: 13px; resize: vertical; background: #fff; color: var(--ink); }
.rw-modal-label textarea:focus { outline: none; border-color: var(--primary); }
.required-star { color: #b42318; }
[data-theme="dark"] .rw-stat--pending strong  { color: #93b4f5; }
[data-theme="dark"] .rw-stat--approved strong { color: #4ade80; }
[data-theme="dark"] .rw-stat--points strong   { color: #ffd066; }
[data-theme="dark"] .rw-stat--tiers strong    { color: #a8bde8; }
[data-theme="dark"] .rw-toolbar select { background: #10182a; color: #edf1fa; border-color: #29334d; }
[data-theme="dark"] .rw-section-title { color: #edf1fa; }
[data-theme="dark"] .rw-modal-label textarea { background: #10182a; color: #edf1fa; border-color: #29334d; }

/* ── Reward Tiers CRUD ────────────────────────────────────────── */
.rt-form-modal { max-width: 520px; width: 100%; }
.rt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.rt-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rt-label select,
.rt-label input[type="text"],
.rt-label input[type="number"] { padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d0d5e5; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.rt-label select:focus,
.rt-label input:focus { outline: none; border-color: var(--primary); }
.rt-label--full { grid-column: 1 / -1; }
.rt-label--checkbox { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.rt-label--checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
[data-theme="dark"] .rt-label { color: #edf1fa; }
[data-theme="dark"] .rt-label select,
[data-theme="dark"] .rt-label input[type="text"],
[data-theme="dark"] .rt-label input[type="number"] { background: #10182a; color: #edf1fa; border-color: #29334d; }

/* Call Centre */
.cc-shell { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 60px); overflow: hidden; }
.cc-header { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 24px 32px 16px; flex-shrink: 0; border-bottom: 1px solid #e4e8f0; }
.cc-header-title .page-kicker { display: block; }
.cc-header-title h1 { margin: 4px 0 0; font-size: 22px; }
.cc-stats-row { margin-left: auto; }
.cc-stat--codes strong { color: #1a4fa0; }
.cc-stat--redemptions strong { color: #7a4f00; }
.cc-stat--agents strong { color: #08783e; }
.cc-layout { display: grid; grid-template-columns: 340px 1fr; flex: 1; overflow: hidden; }
.cc-left { border-right: 1px solid #e4e8f0; overflow-y: auto; display: flex; flex-direction: column; }
.cc-search-wrap { position: relative; padding: 14px 14px 0; flex-shrink: 0; }
.cc-search-wrap svg { position: absolute; left: 26px; top: 26px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.cc-search-wrap input { width: 100%; padding: 10px 12px 10px 36px; border: 1.5px solid #d0d5e5; border-radius: 10px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.cc-search-wrap input:focus { outline: none; border-color: var(--primary); }
#cc-search-results { margin: 6px 14px 0; border: 1.5px solid #d0d5e5; border-radius: 10px; background: #fff; overflow: hidden; }
.cc-result-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f0f2f7; transition: background .12s; }
.cc-result-item:last-child { border-bottom: none; }
.cc-result-item:hover { background: #f4f6fb; }
.cc-result-main strong { display: block; font-size: 13px; }
.cc-result-main small { color: var(--muted); font-size: 11px; }
.cc-result-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cc-balance-badge { font-size: 11px; font-weight: 700; color: var(--primary); background: #eef0f6; padding: 2px 8px; border-radius: 20px; }
.cc-recent-section { flex: 1; padding: 14px; }
.cc-section-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.cc-recent-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.cc-recent-item:hover { background: #f4f6fb; }
.cc-recent-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.cc-recent-body { flex: 1; min-width: 0; }
.cc-recent-body strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-recent-body small { display: block; color: var(--muted); font-size: 11px; }
.cc-recent-note { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cc-recent-time { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.cc-loading, .cc-no-recent { font-size: 13px; color: var(--muted); padding: 8px; margin: 0; }
.cc-right { overflow-y: auto; padding: 24px; }
.cc-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; color: var(--muted); text-align: center; }
.cc-empty-state p { font-size: 14px; max-width: 260px; }
.cc-loading-workspace { padding: 40px; text-align: center; color: var(--muted); }
.cc-profile-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; background: #fff; border: 1.5px solid #e4e8f0; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.cc-profile-name { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.cc-profile-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.cc-profile-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cc-points-badge { text-align: right; }
.cc-points-badge strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.cc-points-badge span { font-size: 11px; color: var(--muted); font-weight: 600; }
.cc-tabs-wrap { background: #fff; border: 1.5px solid #e4e8f0; border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.cc-tabs { display: flex; border-bottom: 1.5px solid #e4e8f0; }
.cc-tab { flex: 1; padding: 12px 8px; border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.cc-tab:hover { background: #f4f6fb; color: var(--ink); }
.cc-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: #f7f9ff; }
.cc-tab-panel { padding: 18px 20px; }
.cc-field-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.cc-field-label small { font-weight: 400; color: var(--muted); }
.cc-field-label select, .cc-field-label textarea, .cc-code-input-wrap input { padding: 10px 12px; border-radius: 10px; border: 1.5px solid #d0d5e5; font: inherit; font-size: 13px; background: #fff; color: var(--ink); width: 100%; }
.cc-field-label select:focus, .cc-field-label textarea:focus, .cc-code-input-wrap input:focus { outline: none; border-color: var(--primary); }
.cc-field-label textarea { resize: vertical; }
.cc-code-input-wrap { display: flex; gap: 8px; }
.cc-code-input-wrap input { font-family: monospace; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; flex: 1; width: auto; }
.cc-action-btn { align-self: flex-start; }
.cc-action-msg { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.cc-msg-success { background: #e1f5e9; color: #08783e; }
.cc-msg-error { background: #fce8e6; color: #b42318; }
.cc-activity-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc-activity-col .cc-section-label { margin-bottom: 8px; }
.cc-activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f2f7; }
.cc-activity-item:last-child { border-bottom: none; }
.cc-activity-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.cc-activity-item div strong { font-size: 13px; }
.cc-activity-item div small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
[data-theme="dark"] .cc-header { border-color: #29334d; }
[data-theme="dark"] .cc-left { border-color: #29334d; }
[data-theme="dark"] .cc-search-wrap input { background: #10182a; color: #edf1fa; border-color: #29334d; }
[data-theme="dark"] #cc-search-results { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .cc-result-item { border-color: #29334d; }
[data-theme="dark"] .cc-result-item:hover { background: #1a2540; }
[data-theme="dark"] .cc-balance-badge { background: #1a2d52; color: #93b4f5; }
[data-theme="dark"] .cc-recent-item:hover { background: #1a2540; }
[data-theme="dark"] .cc-profile-card { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .cc-profile-name { color: #edf1fa; }
[data-theme="dark"] .cc-points-badge strong { color: #93b4f5; }
[data-theme="dark"] .cc-tabs-wrap { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .cc-tabs { border-color: #29334d; }
[data-theme="dark"] .cc-tab { color: #a8bde8; }
[data-theme="dark"] .cc-tab:hover { background: #1a2540; color: #edf1fa; }
[data-theme="dark"] .cc-tab.active { color: #93b4f5; border-bottom-color: #93b4f5; background: #1a2540; }
[data-theme="dark"] .cc-field-label { color: #edf1fa; }
[data-theme="dark"] .cc-field-label select, [data-theme="dark"] .cc-field-label textarea, [data-theme="dark"] .cc-code-input-wrap input { background: #10182a; color: #edf1fa; border-color: #29334d; }
[data-theme="dark"] .cc-activity-item { border-color: #29334d; }
[data-theme="dark"] .cc-msg-success { background: #0a2e1a; color: #4ade80; }
[data-theme="dark"] .cc-msg-error { background: #3a1a1a; color: #ff938a; }
@media (max-width: 900px) { .cc-shell { height: auto; overflow: visible; } .cc-layout { grid-template-columns: 1fr; } .cc-left { border-right: none; border-bottom: 1px solid #e4e8f0; max-height: 360px; } .cc-activity-cols { grid-template-columns: 1fr; } }

/* Reports */
.rp-period-label select { padding: 9px 12px; border-radius: 10px; border: 1.5px solid #d0d5e5; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.rp-export-group { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rp-export-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.rp-export-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 8px; border: 1.5px solid #d0d5e5; font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; background: #fff; transition: background .12s, border-color .12s; }
.rp-export-btn:hover { background: #f4f6fb; border-color: var(--primary); }
.rp-export-btn::before { content: "\2193"; font-weight: 700; }
.rp-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 8px 0 22px; }
.rp-kpi { background: #fff; border: 1.5px solid #e4e8f0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.rp-kpi-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rp-kpi strong { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.rp-kpi small { font-size: 11px; color: var(--muted); }
.rp-kpi--green strong { color: #08783e; }
.rp-kpi--gold strong { color: #9a6a00; }
.rp-kpi--blue strong { color: #1a4fa0; }
.rp-panel { background: #fff; border: 1.5px solid #e4e8f0; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.rp-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rp-panel-head h2 { font-size: 14px; font-weight: 700; margin: 0; color: var(--ink); }
.rp-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.rp-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rp-dot-sub { background: var(--primary); }
.rp-chart { width: 100%; }
.rp-svg { width: 100%; height: auto; display: block; }
.rp-grid { stroke: #eceff5; stroke-width: 1; }
.rp-axis-text { fill: #9aa3b2; font-size: 11px; }
.rp-area { fill: rgba(31, 49, 99, 0.08); }
.rp-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rp-point { fill: var(--primary); }
.rp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-bars { display: flex; flex-direction: column; gap: 10px; }
.rp-bar-row { display: grid; grid-template-columns: 140px 1fr 50px; align-items: center; gap: 10px; }
.rp-bar-label { font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-bar-track { height: 10px; background: #eef0f6; border-radius: 6px; overflow: hidden; }
.rp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #3a4f96); border-radius: 6px; }
.rp-bar-val { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
[data-theme="dark"] .rp-period-label select { background: #10182a; color: #edf1fa; border-color: #29334d; }
[data-theme="dark"] .rp-export-btn { background: #151d31; color: #93b4f5; border-color: #29334d; }
[data-theme="dark"] .rp-export-btn:hover { background: #1a2540; }
[data-theme="dark"] .rp-kpi { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .rp-kpi strong { color: #edf1fa; }
[data-theme="dark"] .rp-kpi--green strong { color: #4ade80; }
[data-theme="dark"] .rp-kpi--gold strong { color: #ffd066; }
[data-theme="dark"] .rp-kpi--blue strong { color: #93b4f5; }
[data-theme="dark"] .rp-panel { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .rp-panel-head h2 { color: #edf1fa; }
[data-theme="dark"] .rp-grid { stroke: #222c45; }
[data-theme="dark"] .rp-axis-text { fill: #6b7689; }
[data-theme="dark"] .rp-area { fill: rgba(147, 180, 245, 0.10); }
[data-theme="dark"] .rp-line { stroke: #93b4f5; }
[data-theme="dark"] .rp-point { fill: #93b4f5; }
[data-theme="dark"] .rp-bar-label, [data-theme="dark"] .rp-bar-val { color: #edf1fa; }
[data-theme="dark"] .rp-bar-track { background: #222c45; }
@media (max-width: 1100px) { .rp-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .rp-two-col { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .rp-kpi-grid { grid-template-columns: repeat(2, 1fr); } .rp-bar-row { grid-template-columns: 100px 1fr 42px; } }

/* Dashboard home */
.db-shell { padding: 26px 32px 50px; }
.db-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.db-hero h1 { margin: 6px 0 4px; font-size: 26px; }
.db-hero .eyebrow { margin: 0; }
.db-hero .lede { margin: 0; color: var(--muted); font-size: 14px; }
.db-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.db-hero-btn { display: inline-flex; align-items: center; gap: 6px; }
.db-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.db-kpi { display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid #e4e8f0; border-radius: 14px; padding: 16px; text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.db-kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,37,29,.08); border-color: #d0d8e8; }
.db-kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; }
.db-kpi-icon svg { width: 22px; height: 22px; }
.db-icon-blue { background: #e6efff; color: #1a4fa0; }
.db-icon-amber { background: #fff2d9; color: #9a6a00; }
.db-icon-gold { background: #fdf0cc; color: #8a5a00; }
.db-icon-green { background: #e1f5e9; color: #08783e; }
.db-icon-purple { background: #efe6ff; color: #6a3fb0; }
.db-icon-teal { background: #d9f5f0; color: #0a7a6a; }
.db-kpi div strong { display: block; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.db-kpi div span { font-size: 12px; color: var(--muted); }
.db-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.db-panel-link { font-size: 12px; font-weight: 600; color: var(--primary); text-decoration: none; }
.db-panel-link:hover { text-decoration: underline; }
.db-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .12s; }
.db-list-item:hover { background: #f4f6fb; }
.db-list-body { min-width: 0; }
.db-list-body strong { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-list-body small { font-size: 11px; color: var(--muted); }
.db-list-time { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.db-empty { font-size: 13px; color: #08783e; padding: 10px 8px; margin: 0; }
.db-sub-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-bottom: 1px solid #f0f2f7; }
.db-sub-row:last-child { border-bottom: none; }
.db-sub-icon { font-size: 16px; flex-shrink: 0; }
.db-sub-body { flex: 1; min-width: 0; }
.db-sub-body strong { display: block; font-size: 13px; color: var(--ink); }
.db-sub-body small { font-size: 11px; color: var(--muted); }
.db-sub-points { font-size: 12px; font-weight: 700; color: #08783e; white-space: nowrap; }
[data-theme="dark"] .db-kpi { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .db-kpi:hover { border-color: #3a4866; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
[data-theme="dark"] .db-kpi div strong { color: #edf1fa; }
[data-theme="dark"] .db-icon-blue { background: #14243f; color: #93b4f5; }
[data-theme="dark"] .db-icon-amber { background: #2e2406; color: #ffd066; }
[data-theme="dark"] .db-icon-gold { background: #2e2206; color: #ffce5a; }
[data-theme="dark"] .db-icon-green { background: #0a2e1a; color: #4ade80; }
[data-theme="dark"] .db-icon-purple { background: #221640; color: #b794f6; }
[data-theme="dark"] .db-icon-teal { background: #062e2a; color: #4adbc8; }
[data-theme="dark"] .db-list-item:hover { background: #1a2540; }
[data-theme="dark"] .db-list-body strong { color: #edf1fa; }
[data-theme="dark"] .db-sub-row { border-color: #29334d; }
[data-theme="dark"] .db-sub-body strong { color: #edf1fa; }
[data-theme="dark"] .db-sub-points { color: #4ade80; }
[data-theme="dark"] .db-empty { color: #4ade80; }
@media (max-width: 1100px) { .db-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .db-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .db-shell { padding: 22px 16px 40px; } .db-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* USSD simulator — session path + tags */
.ussd-path-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.ussd-path-hint code { background: rgba(0,0,0,.06); padding: 2px 7px; border-radius: 6px; font-size: 12px; }
.ussd-session-tag { margin: 10px 0 0; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 7px; display: inline-block; }
.ussd-tag-con { background: rgba(255,255,255,.15); color: #fff; }
.ussd-tag-end { background: rgba(0,0,0,.25); color: #ffd9d0; }

/* Call centre — last OTP bar */
.cc-otp-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 11px; margin-top: 12px; border: 1.5px solid #e4e8f0; background: #fff; }
.cc-otp-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cc-otp-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 20px; font-weight: 800; letter-spacing: .14em; color: var(--ink); }
.cc-otp-status { font-size: 12px; color: var(--muted); }
.cc-otp-active { border-color: #b6e6c8; background: #eafaf0; }
.cc-otp-active .cc-otp-code { color: #08783e; }
.cc-otp-expired { border-color: #f3d2cf; background: #fdf0ef; }
.cc-otp-expired .cc-otp-code { color: #b42318; text-decoration: line-through; }
.cc-otp-none .cc-otp-status { font-style: italic; }
[data-theme="dark"] .cc-otp-bar { background: #151d31; border-color: #29334d; }
[data-theme="dark"] .cc-otp-code { color: #edf1fa; }
[data-theme="dark"] .cc-otp-active { background: #0a2e1a; border-color: #1c5236; }
[data-theme="dark"] .cc-otp-active .cc-otp-code { color: #4ade80; }
[data-theme="dark"] .cc-otp-expired { background: #2e1414; border-color: #5a2a26; }
[data-theme="dark"] .cc-otp-expired .cc-otp-code { color: #ff938a; }

/* ══ Mobile PWA dashboard ══ */
.pwa-screen { display: none; animation: pwaFade .25s ease; }
.pwa-screen-active { display: block; }
@keyframes pwaFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pwa-greeting { margin-bottom: 18px; }
.pwa-name { font-size: 26px; margin: 4px 0 2px; line-height: 1.15; }
.pwa-sub { color: var(--muted); font-size: 13px; margin: 0; }
.pwa-points-card { position: relative; background: linear-gradient(135deg, var(--primary), #2a3f7a); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 10px 26px rgba(31,49,99,.28); margin-bottom: 20px; }
.pwa-points-card--sm { padding: 18px; margin-bottom: 18px; }
.pwa-points-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pwa-points-value { font-size: 44px; font-weight: 900; line-height: 1; }
.pwa-points-status { align-self: flex-start; margin-top: 8px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
.pwa-points-status.ok { background: rgba(74,222,128,.25); }
.pwa-points-status.pending { background: rgba(255,208,102,.25); }
.pwa-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pwa-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #fff; border: 1.5px solid #eceff5; border-radius: 18px; padding: 16px; cursor: pointer; text-align: left; transition: transform .12s, box-shadow .12s; }
.pwa-action:active { transform: scale(.97); }
.pwa-action-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.pwa-action-icon svg { width: 24px; height: 24px; }
.pwa-ic-blue { background: #e6efff; color: #1a4fa0; }
.pwa-ic-green { background: #e1f5e9; color: #08783e; }
.pwa-ic-gold { background: #fdf0cc; color: #8a5a00; }
.pwa-ic-pink { background: #ffe6ef; color: #b02a5b; }
.pwa-action-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.pwa-action-sub { font-size: 11px; color: var(--muted); margin-top: -4px; }
.pwa-tollfree { display: flex; align-items: center; gap: 12px; background: #eafaf0; border: 1.5px solid #b6e6c8; border-radius: 16px; padding: 14px 16px; text-decoration: none; margin-bottom: 14px; }
.pwa-tollfree-icon { width: 40px; height: 40px; border-radius: 50%; background: #08783e; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pwa-tollfree-icon svg { width: 20px; height: 20px; }
.pwa-tollfree-body { display: flex; flex-direction: column; }
.pwa-tollfree-body small { font-size: 11px; color: #08783e; font-weight: 700; }
.pwa-tollfree-body strong { font-size: 19px; color: #064d28; letter-spacing: .02em; }
.pwa-logout { width: 100%; background: none; border: 1.5px solid #e4c4c0; color: #b42318; border-radius: 14px; padding: 13px; font-weight: 800; font-size: 14px; cursor: pointer; }
.pwa-logout:active { background: #fdf0ef; }
/* Sub-screens */
.pwa-screen-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pwa-back { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid #eceff5; background: #fff; font-size: 20px; cursor: pointer; flex-shrink: 0; }
.pwa-screen-head h2 { font-size: 20px; margin: 0; }
.pwa-screen-intro { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.pwa-form { display: flex; flex-direction: column; gap: 14px; }
.pwa-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pwa-form input { padding: 14px; border-radius: 13px; border: 1.5px solid #dde2ec; font: inherit; font-size: 15px; }
.pwa-form input:focus { outline: none; border-color: var(--primary); }
.pwa-readonly { font-size: 13px; color: var(--muted); margin: 0; }
.pwa-form-msg { font-size: 13px; font-weight: 700; margin: 0; padding: 10px 12px; border-radius: 10px; }
.pwa-form-msg.ok { background: #eafaf0; color: #08783e; }
.pwa-form-msg.err { background: #fdf0ef; color: #b42318; }
.pwa-list-title { font-size: 14px; font-weight: 800; margin: 22px 0 10px; color: var(--ink); }
.pwa-muted { color: var(--muted); font-size: 13px; }
.pwa-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f2f7; }
.pwa-row-body strong { display: block; font-size: 14px; color: var(--ink); }
.pwa-row-body small { font-size: 11px; color: var(--muted); }
.pwa-row-points { font-size: 15px; font-weight: 800; }
.pwa-row-points.pos { color: #08783e; }
.pwa-row-points.neg { color: #b42318; }
.pwa-tier { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1.5px solid #eceff5; border-radius: 15px; padding: 14px; margin-bottom: 10px; }
.pwa-tier.locked { opacity: .6; }
.pwa-tier-body strong { display: block; font-size: 15px; color: var(--ink); }
.pwa-tier-body small { font-size: 12px; color: var(--muted); }
.pwa-tier-btn { background: var(--primary); color: #fff; border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 800; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.pwa-tier-btn:disabled { background: #c7ccd8; cursor: not-allowed; }
.pwa-redeem-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pwa-redeem-status.s-pending { background: #fff0cc; color: #7a4f00; }
.pwa-redeem-status.s-approved { background: #ddeaff; color: #1a4fa0; }
.pwa-redeem-status.s-fulfilled { background: #e1f5e9; color: #08783e; }
.pwa-redeem-status.s-rejected, .pwa-redeem-status.s-cancelled { background: #fce8e6; color: #b42318; }
.mobile-toast.error { background: #b42318; }

/* Mobile neomorphism */
.mobile-app-body {
    --neo-bg: #edf6fb;
    --neo-surface: #edf6fb;
    --neo-surface-strong: #f7fcff;
    --neo-text: var(--brand-navy);
    --neo-muted: #4d5d7b;
    --neo-shadow-dark: rgba(22, 41, 82, .16);
    --neo-shadow-soft: rgba(255, 255, 255, .92);
    --neo-shadow-red: rgba(249, 66, 58, .24);
    background:
        linear-gradient(180deg, rgba(46,172,226,.22) 0%, #e4f6fd 22%, var(--neo-bg) 52%, #f8fcff 100%);
}
.mobile-app-body::before { display: none; }
.mobile-app-body,
.mobile-app-body input,
.mobile-app-body select,
.mobile-app-body textarea,
.mobile-app-body button { color: var(--neo-text); }
.mobile-app-shell { width: min(100% - 24px, 500px); padding: 16px 0 40px; }
.mobile-app-header {
    position: sticky;
    z-index: 10;
    top: 0;
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(46,172,226,.18);
    background: linear-gradient(180deg, rgba(237,246,251,.96), rgba(237,246,251,.78));
    backdrop-filter: blur(16px);
}
.mobile-app-header img {
    border: 5px solid var(--neo-surface);
    border-radius: 24px;
    background: var(--neo-surface);
    box-shadow: 10px 12px 24px var(--neo-shadow-dark), -9px -9px 20px var(--neo-shadow-soft);
}
.language-button,
.field-secondary-action,
.field-link-button {
    border: 0;
    color: var(--brand-navy);
    background: var(--neo-surface);
    box-shadow: 8px 9px 18px var(--neo-shadow-dark), -8px -8px 18px var(--neo-shadow-soft);
}
.language-button:active,
.field-secondary-action:active,
.field-link-button:active,
.pwa-back:active,
.pwa-action:active,
.pwa-tier-btn:active,
.field-mini-btn:active {
    box-shadow: inset 5px 5px 10px rgba(22,41,82,.13), inset -5px -5px 10px rgba(255,255,255,.95);
    transform: translateY(1px);
}
.mobile-welcome { color: var(--brand-navy); text-shadow: none; }
.mobile-kicker { color: #126d97; letter-spacing: .08em; }
.mobile-welcome h1 { color: var(--brand-navy); }
.mobile-welcome h1 em { color: var(--brand-red); }
.mobile-welcome > p:last-child { color: var(--neo-muted); font-weight: 650; }
.mobile-login-card,
.neo-card,
.pwa-action,
.pwa-tier,
.pwa-row,
.pwa-tollfree,
.pwa-screen .pwa-points-card {
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 24px;
    background: var(--neo-surface);
    box-shadow: 12px 14px 28px var(--neo-shadow-dark), -12px -12px 26px var(--neo-shadow-soft);
}
.mobile-login-card { padding: 24px; }
.mobile-login-heading h2 { color: var(--brand-navy); }
.mobile-login-heading p { color: var(--neo-muted); }
.mobile-login-heading > span {
    color: #fff;
    background: var(--brand-red);
    box-shadow: 5px 6px 14px var(--neo-shadow-red), -4px -4px 10px rgba(255,255,255,.82);
}
.mobile-app-body .mobile-primary-button {
    border: 0;
    border-radius: 18px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand-red), #ff5b4c) !important;
    box-shadow: 9px 11px 20px var(--neo-shadow-red), -8px -8px 18px var(--neo-shadow-soft);
}
.mobile-app-body .mobile-primary-button:active {
    box-shadow: inset 5px 5px 10px rgba(126,19,15,.24), inset -4px -4px 8px rgba(255,255,255,.28);
    transform: translateY(1px);
}
.credential-wrap,
.pwa-form input,
.pwa-form select,
.pwa-form textarea {
    border: 1px solid rgba(255,255,255,.78) !important;
    border-radius: 18px;
    background: #f4fbff;
    box-shadow: inset 6px 6px 12px rgba(22,41,82,.13), inset -6px -6px 12px rgba(255,255,255,.95);
}
.credential-wrap input,
.pwa-form input,
.pwa-form select,
.pwa-form textarea {
    min-height: 50px;
    color: var(--brand-navy);
}
.credential-wrap input::placeholder,
.pwa-form input::placeholder,
.pwa-form textarea::placeholder { color: #6b7892; opacity: 1; }
.credential-wrap:focus-within,
.pwa-form input:focus,
.pwa-form select:focus,
.pwa-form textarea:focus {
    outline: 3px solid rgba(46,172,226,.28);
    border-color: var(--brand-sky) !important;
}
.pwa-greeting { padding: 8px 2px 6px; }
.pwa-name { color: var(--brand-navy); font-size: clamp(25px, 8vw, 34px); letter-spacing: 0; }
.pwa-sub,
.pwa-screen-intro,
.pwa-readonly,
.pwa-muted { color: var(--neo-muted); }
.pwa-points-card,
.pwa-screen .pwa-points-card {
    border-color: rgba(255,255,255,.18);
    color: #fff;
    background: linear-gradient(145deg, var(--brand-navy), #223b74);
    box-shadow: 12px 14px 28px rgba(22,41,82,.28), -10px -10px 22px rgba(255,255,255,.75);
}
.pwa-points-label,
.pwa-points-status { color: #f8fbff; opacity: 1; }
.pwa-action { min-height: 132px; border-radius: 24px; }
.pwa-action-icon {
    border-radius: 18px;
    box-shadow: inset 4px 5px 9px rgba(255,255,255,.88), inset -4px -5px 9px rgba(22,41,82,.12);
}
.pwa-ic-blue { background: #dff6ff; color: var(--brand-navy); }
.pwa-ic-green { background: #ffe8e6; color: var(--brand-red); }
.pwa-ic-gold { background: #fff2a6; color: #775500; }
.pwa-ic-pink { background: #e7f5fc; color: #126d97; }
.pwa-tollfree { background: var(--neo-surface); }
.pwa-tollfree-icon { background: var(--brand-red); color: #fff; }
.pwa-tollfree-body small { color: #a6201a; }
.pwa-tollfree-body strong { color: var(--brand-navy); }
.pwa-logout {
    border: 0;
    color: #a6201a;
    background: var(--neo-surface);
    box-shadow: 8px 9px 18px var(--neo-shadow-dark), -8px -8px 18px var(--neo-shadow-soft);
}
.pwa-logout:active {
    background: var(--neo-surface);
    box-shadow: inset 5px 5px 10px rgba(22,41,82,.13), inset -5px -5px 10px rgba(255,255,255,.95);
}
.pwa-screen-head h2,
.pwa-list-title,
.pwa-action-label,
.pwa-tier-body strong,
.pwa-row-body strong { color: var(--brand-navy); letter-spacing: 0; }
.pwa-action-sub,
.pwa-tier-body small,
.pwa-row-body small { color: var(--neo-muted); }
.pwa-back {
    border: 0;
    color: var(--brand-navy);
    background: var(--neo-surface);
    box-shadow: 8px 9px 18px var(--neo-shadow-dark), -8px -8px 18px var(--neo-shadow-soft);
}
.pwa-form { gap: 13px; }
.pwa-form label { color: var(--brand-navy); font-weight: 850; }
.pwa-form select { width: 100%; padding: 14px; font: inherit; }
.field-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 4px 0 14px; padding: 22px; border-top: 4px solid var(--brand-sky); }
.field-hero h1 { margin: 0; font-size: clamp(28px, 9vw, 42px); line-height: 1; letter-spacing: 0; }
.field-hero p:last-child { margin: 8px 0 0; color: var(--neo-muted); font-weight: 800; }
.field-role-chip,
.field-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand-navy);
    box-shadow: 4px 5px 11px rgba(22,41,82,.2), -4px -4px 9px rgba(255,255,255,.8);
    font-size: 11px;
    font-weight: 900;
}
.field-role-chip { color: var(--brand-navy); background: var(--brand-sky); }
.field-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.field-stat-grid article { position: relative; overflow: hidden; padding: 16px; }
.field-stat-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--brand-sky); }
.field-stat-grid span { display: block; color: var(--neo-muted); font-size: 12px; font-weight: 850; }
.field-stat-grid strong { display: block; margin-top: 6px; color: var(--brand-navy); font-size: 30px; line-height: 1; }
.field-stat-grid small { display: block; margin-top: 6px; color: #60708f; font-size: 10px; font-weight: 800; line-height: 1.3; }
.field-actions-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 14px; }
.field-primary-action { margin-top: 0; }
.field-secondary-action { height: 50px; padding: 0 18px; border-radius: 17px; font-weight: 900; }
.mobile-theme-toggle { min-width: 58px; }
.field-form-head { align-items: center; }
.field-form-head h2 { flex: 1; min-width: 0; }
.field-manager-panel,
.field-mobile .neo-card { margin-bottom: 14px; padding: 16px; }
.field-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.field-section-head h2 { margin: 0; color: var(--brand-navy); font-size: 17px; }
.field-section-head span { color: var(--neo-muted); font-size: 12px; font-weight: 850; }
.field-link-button { padding: 8px 10px; border-radius: 12px; font-size: 12px; font-weight: 900; }
.field-list { display: grid; gap: 10px; }
.field-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 18px;
    background: #f5fbff;
    box-shadow: inset 4px 4px 8px rgba(22,41,82,.08), inset -4px -4px 9px rgba(255,255,255,.95);
}
.field-list-item strong { display: block; color: var(--brand-navy); font-size: 14px; }
.field-list-item small { display: block; margin-top: 3px; color: var(--neo-muted); font-size: 11px; font-weight: 700; }
.field-list-item > span { color: var(--brand-red); font-size: 18px; font-weight: 950; }
.field-record-card { align-items: flex-start; }
.field-record-side { display: grid; justify-items: end; gap: 6px; flex: 0 0 auto; }
.field-status-pending_verification { background: var(--brand-gold); color: var(--brand-navy); }
.field-status-approved { background: #16794c; color: #fff; }
.field-status-rejected,
.field-status-duplicate,
.field-status-suspended { background: var(--brand-red); color: #fff; }
.field-mini-btn {
    padding: 6px 9px;
    border-radius: 10px;
    color: #fff;
    background: var(--brand-navy);
    box-shadow: 5px 6px 12px rgba(22,41,82,.18), -4px -4px 10px rgba(255,255,255,.78);
    font-size: 11px;
    font-weight: 900;
}
.field-mini-btn.danger { background: var(--brand-red); }
.field-date-group {
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 22px;
    background: var(--neo-surface);
    box-shadow: 10px 12px 24px var(--neo-shadow-dark), -10px -10px 22px var(--neo-shadow-soft);
    overflow: hidden;
}
.field-date-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    cursor: pointer;
    list-style: none;
}
.field-date-toggle::-webkit-details-marker { display: none; }
.field-date-toggle::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: var(--brand-navy);
    background: var(--brand-sky);
    font-size: 17px;
    font-weight: 950;
}
.field-date-group[open] .field-date-toggle::after { content: "-"; }
.field-date-toggle span { display: grid; gap: 2px; min-width: 0; }
.field-date-toggle strong { color: var(--brand-navy); font-size: 15px; }
.field-date-toggle small { color: var(--neo-muted); font-size: 11px; font-weight: 800; }
.field-date-toggle em { color: var(--brand-red); font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; }
.field-date-records { display: grid; gap: 10px; padding: 0 12px 12px; }
.field-onboarding-form { padding: 18px; }
.field-wizard-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}
.field-wizard-progress span {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 7px 4px;
    border-radius: 13px;
    color: #5d6f8a;
    background: #f5fbff;
    box-shadow: inset 3px 3px 8px rgba(22,41,82,.07), inset -3px -3px 8px rgba(255,255,255,.95);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}
.field-wizard-progress span.active {
    color: var(--brand-navy);
    background: var(--brand-sky);
    box-shadow: 5px 6px 14px rgba(46,172,226,.24), -5px -5px 12px rgba(255,255,255,.9);
}
.field-wizard-progress span.done {
    color: #fff;
    background: var(--brand-navy);
}
.field-form-step[hidden] { display: none !important; }
.field-form-section {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 22px;
    background: #f4fbff;
    box-shadow: inset 5px 5px 12px rgba(22,41,82,.08), inset -5px -5px 12px rgba(255,255,255,.95);
}
.field-form-section + .field-form-section { margin-top: 4px; }
.field-form-section-head { display: flex; gap: 12px; align-items: flex-start; }
.field-form-section-head > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    color: var(--brand-navy);
    background: var(--brand-sky);
    box-shadow: 5px 6px 13px rgba(46,172,226,.24), -5px -5px 12px rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 950;
}
.field-form-section-head h3 { margin: 0; color: var(--brand-navy); font-size: 16px; line-height: 1.2; }
.field-form-section-head p { margin: 3px 0 0; color: var(--neo-muted); font-size: 12px; font-weight: 700; line-height: 1.35; }
.field-location-card {
    display: grid;
    gap: 8px;
    padding: 13px;
    border-radius: 18px;
    background: #edf6fb;
    box-shadow: 6px 7px 14px rgba(22,41,82,.09), -6px -6px 14px rgba(255,255,255,.82);
}
.field-location-card .field-secondary-action { width: 100%; }
.field-location-card p { margin: 0; color: var(--neo-muted); font-size: 12px; font-weight: 750; line-height: 1.45; }
.pwa-form label small { color: var(--neo-muted); font-size: 11px; font-weight: 700; }
.field-question {
    display: grid;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
    background: #edf6fb;
    box-shadow: 6px 7px 14px rgba(22,41,82,.09), -6px -6px 14px rgba(255,255,255,.82);
}
.field-question p { margin: 0; color: var(--brand-navy); font-size: 13px; font-weight: 850; line-height: 1.4; }
.field-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-choice {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 15px;
    color: var(--brand-navy);
    background: #f7fcff;
    box-shadow: inset 3px 3px 8px rgba(22,41,82,.08), inset -3px -3px 8px rgba(255,255,255,.95);
}
.field-choice input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    border-radius: 5px;
    box-shadow: none;
}
.field-choice input[type="radio"] { border-radius: 50%; }
.field-choice span { font-size: 12px; font-weight: 850; line-height: 1.2; }
.field-sub-input { gap: 6px !important; margin-top: 2px; font-size: 12px !important; }
.field-upload {
    gap: 8px !important;
    padding: 13px;
    border-radius: 18px;
    background: #edf6fb;
    box-shadow: inset 5px 5px 12px rgba(22,41,82,.08), inset -5px -5px 12px rgba(255,255,255,.95);
}
.field-upload input[type="file"] { min-height: auto; padding: 12px; font-size: 12px; }
.field-conditional[hidden] { display: none !important; }
.field-wizard-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    position: sticky;
    z-index: 4;
    bottom: 12px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(237,246,251,.86);
    box-shadow: 10px 12px 24px rgba(22,41,82,.14), -8px -8px 18px rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
}
.field-wizard-actions .field-secondary-action { height: 52px; padding: 0 18px; border-radius: 17px; }
.field-wizard-actions .mobile-primary-button { margin-top: 0; }
.field-wizard-actions button[hidden] { display: none !important; }
.field-wizard-actions:has(#field-step-back[hidden]) { grid-template-columns: 1fr; }
.mobile-app-body a { color: var(--brand-navy); }
.mobile-app-body button:focus-visible,
.mobile-app-body a:focus-visible {
    outline: 3px solid rgba(46,172,226,.45);
    outline-offset: 3px;
}
[data-mobile-theme="dark"] .mobile-app-body {
    --neo-bg: #10182a;
    --neo-surface: #172238;
    --neo-surface-strong: #1e2c47;
    --neo-text: #edf4ff;
    --neo-muted: #b9c7df;
    --neo-shadow-dark: rgba(0,0,0,.42);
    --neo-shadow-soft: rgba(83,111,166,.13);
    --neo-shadow-red: rgba(249,66,58,.3);
    background:
        linear-gradient(180deg, rgba(46,172,226,.18) 0%, #10182a 34%, #0b1220 100%);
    color-scheme: dark;
}
[data-mobile-theme="dark"] .mobile-app-header {
    border-bottom-color: rgba(46,172,226,.22);
    background: linear-gradient(180deg, rgba(16,24,42,.96), rgba(16,24,42,.82));
}
[data-mobile-theme="dark"] .mobile-app-header img,
[data-mobile-theme="dark"] .neo-card,
[data-mobile-theme="dark"] .mobile-login-card,
[data-mobile-theme="dark"] .pwa-action,
[data-mobile-theme="dark"] .pwa-tier,
[data-mobile-theme="dark"] .pwa-row,
[data-mobile-theme="dark"] .pwa-tollfree,
[data-mobile-theme="dark"] .field-date-group {
    border-color: rgba(142,166,211,.22);
    background: var(--neo-surface);
}
[data-mobile-theme="dark"] .language-button,
[data-mobile-theme="dark"] .field-secondary-action,
[data-mobile-theme="dark"] .field-link-button,
[data-mobile-theme="dark"] .pwa-back,
[data-mobile-theme="dark"] .pwa-logout {
    color: #edf4ff;
    background: var(--neo-surface);
}
[data-mobile-theme="dark"] .mobile-welcome,
[data-mobile-theme="dark"] .mobile-welcome h1,
[data-mobile-theme="dark"] .pwa-name,
[data-mobile-theme="dark"] .pwa-screen-head h2,
[data-mobile-theme="dark"] .pwa-list-title,
[data-mobile-theme="dark"] .pwa-action-label,
[data-mobile-theme="dark"] .pwa-tier-body strong,
[data-mobile-theme="dark"] .pwa-row-body strong,
[data-mobile-theme="dark"] .field-hero h1,
[data-mobile-theme="dark"] .field-section-head h2,
[data-mobile-theme="dark"] .field-list-item strong,
[data-mobile-theme="dark"] .field-form-section-head h3,
[data-mobile-theme="dark"] .field-question p,
[data-mobile-theme="dark"] .field-choice,
[data-mobile-theme="dark"] .field-date-toggle strong,
[data-mobile-theme="dark"] .pwa-form label {
    color: #edf4ff;
}
[data-mobile-theme="dark"] .mobile-kicker,
[data-mobile-theme="dark"] .field-role-chip { color: var(--brand-navy); }
[data-mobile-theme="dark"] .pwa-sub,
[data-mobile-theme="dark"] .pwa-screen-intro,
[data-mobile-theme="dark"] .pwa-readonly,
[data-mobile-theme="dark"] .pwa-muted,
[data-mobile-theme="dark"] .pwa-action-sub,
[data-mobile-theme="dark"] .pwa-tier-body small,
[data-mobile-theme="dark"] .pwa-row-body small,
[data-mobile-theme="dark"] .field-hero p:last-child,
[data-mobile-theme="dark"] .field-stat-grid span,
[data-mobile-theme="dark"] .field-stat-grid small,
[data-mobile-theme="dark"] .field-section-head span,
[data-mobile-theme="dark"] .field-list-item small,
[data-mobile-theme="dark"] .field-form-section-head p,
[data-mobile-theme="dark"] .field-location-card p,
[data-mobile-theme="dark"] .field-date-toggle small {
    color: var(--neo-muted);
}
[data-mobile-theme="dark"] .credential-wrap,
[data-mobile-theme="dark"] .pwa-form input,
[data-mobile-theme="dark"] .pwa-form select,
[data-mobile-theme="dark"] .pwa-form textarea,
[data-mobile-theme="dark"] .field-form-section,
[data-mobile-theme="dark"] .field-location-card,
[data-mobile-theme="dark"] .field-question,
[data-mobile-theme="dark"] .field-choice,
[data-mobile-theme="dark"] .field-upload,
[data-mobile-theme="dark"] .field-list-item,
[data-mobile-theme="dark"] .field-wizard-progress span {
    border-color: rgba(142,166,211,.22) !important;
    background: var(--neo-surface-strong);
    box-shadow: inset 5px 5px 12px rgba(0,0,0,.28), inset -5px -5px 12px rgba(83,111,166,.08);
}
[data-mobile-theme="dark"] .pwa-form input,
[data-mobile-theme="dark"] .pwa-form select,
[data-mobile-theme="dark"] .pwa-form textarea,
[data-mobile-theme="dark"] .credential-wrap input,
[data-mobile-theme="dark"] .pwa-form input::placeholder,
[data-mobile-theme="dark"] .pwa-form textarea::placeholder {
    color: #edf4ff;
}
[data-mobile-theme="dark"] .pwa-form input::placeholder,
[data-mobile-theme="dark"] .pwa-form textarea::placeholder { opacity: .72; }
[data-mobile-theme="dark"] .pwa-form option { color: #edf4ff; background: #172238; }
[data-mobile-theme="dark"] .field-stat-grid strong,
[data-mobile-theme="dark"] .field-date-toggle em,
[data-mobile-theme="dark"] .pwa-tollfree-body strong,
[data-mobile-theme="dark"] .pwa-tollfree-body small { color: #79d5ff; }
[data-mobile-theme="dark"] .field-wizard-progress span.active,
[data-mobile-theme="dark"] .field-date-toggle::after {
    color: var(--brand-navy);
    background: var(--brand-sky);
}
[data-mobile-theme="dark"] .field-wizard-actions {
    background: rgba(16,24,42,.86);
    box-shadow: 10px 12px 24px rgba(0,0,0,.38), -8px -8px 18px rgba(83,111,166,.1);
}
@media (max-width: 420px) {
    .field-actions-row { grid-template-columns: 1fr; }
    .field-secondary-action { width: 100%; }
    .field-wizard-progress { grid-template-columns: repeat(3, 1fr); }
    .field-wizard-actions { grid-template-columns: 1fr; }
    .field-choice-grid { grid-template-columns: 1fr; }
    .field-list-item { align-items: stretch; flex-direction: column; }
    .field-record-side { justify-items: start; }
}
