/* eMobility Careers — Public Styles v2.2.0 */
/* DIYguru Brand: #374a47 (dark) / #8fd299 (mid) / #c1ffb4 (bright) */
/* Font loaded via wp_head preconnect + swap — see AssetLoader.php */

:root {
    --emce-dark: #374a47;
    --emce-dark-deep: #2a3a37;
    --emce-darkest: #1e2d2a;
    --emce-mid: #8fd299;
    --emce-mid-muted: #6db87a;
    --emce-light: #c1ffb4;
    --emce-light-soft: #e8fff3;
    --emce-light-bg: #f4fdf6;
    --emce-text: #1e2d2a;
    --emce-text-sec: #5a6e6a;
    --emce-text-muted: #8a9e9a;
    --emce-border: #d4e8d8;
    --emce-border-light: #e8f5eb;
    --emce-white: #ffffff;
    --emce-orange: #e8833a;
    --emce-orange-light: #fff4eb;
    --emce-red: #d45454;
    --emce-red-light: #fdeaea;
    --emce-font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --emce-radius: 14px;
    --emce-radius-sm: 10px;
    --emce-shadow: 0 2px 12px rgba(55,74,71,0.06);
    --emce-shadow-hover: 0 8px 28px rgba(143,210,153,0.12);
}

/* ─── Global ─── */
.emce-app { font-family: var(--emce-font); color: var(--emce-text); line-height: 1.6; }
.emce-app * { box-sizing: border-box; }
.emce-app a { color: var(--emce-mid-muted); text-decoration: none; }
.emce-app a:hover { color: var(--emce-dark); }

/* ─── Buttons ─── */
.emce-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--emce-radius-sm); font-weight: 700; font-size: 14px;
    text-decoration: none; cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
    font-family: var(--emce-font);
}
.emce-btn--primary { background: var(--emce-dark); color: var(--emce-light); }
.emce-btn--primary:hover { background: var(--emce-dark-deep); color: var(--emce-light); box-shadow: 0 4px 14px rgba(55,74,71,0.25); transform: translateY(-1px); }
.emce-btn--secondary { background: transparent; color: var(--emce-dark); border-color: var(--emce-dark); }
.emce-btn--secondary:hover { background: var(--emce-light-soft); color: var(--emce-dark); }
.emce-btn--accent { background: var(--emce-light); color: var(--emce-darkest); border: none; }
.emce-btn--accent:hover { background: var(--emce-mid); color: var(--emce-darkest); }
.emce-btn--ghost { background: var(--emce-light-soft); color: var(--emce-dark) !important; border: none; }
.emce-btn--sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.emce-btn--block { width: 100%; }
.emce-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Cards ─── */
.emce-card {
    background: var(--emce-white); border: 1px solid var(--emce-border);
    border-radius: var(--emce-radius); padding: 20px;
    transition: box-shadow 0.3s, border-color 0.2s, transform 0.2s;
}
.emce-card:hover { box-shadow: var(--emce-shadow-hover); border-color: var(--emce-mid); transform: translateY(-2px); }
.emce-card--flat { box-shadow: none; }
.emce-card--flat:hover { box-shadow: none; transform: none; border-color: var(--emce-border); }

/* ─── Job Cards (Apna-style) ─── */
.emce-job-card {
    background: var(--emce-white); border: 1px solid var(--emce-border); border-radius: var(--emce-radius);
    padding: 18px 20px; margin-bottom: 10px; cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.3s, transform 0.2s;
    display: flex; gap: 14px; align-items: flex-start;
}
.emce-job-card:hover { border-color: var(--emce-mid); box-shadow: 0 6px 24px rgba(143,210,153,0.12); transform: translateY(-2px); }
.emce-job-card__logo {
    width: 46px; height: 46px; border-radius: 11px; background: var(--emce-light-soft);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 18px; font-weight: 800; color: var(--emce-dark);
}
.emce-job-card__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.emce-job-card__body { flex: 1; min-width: 0; }
.emce-job-card__title { font-size: 15px; font-weight: 700; color: var(--emce-text); margin: 0 0 3px; }
.emce-job-card__company { font-size: 13px; color: var(--emce-mid-muted); font-weight: 600; margin: 0 0 8px; }
.emce-job-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--emce-text-sec); margin-bottom: 8px; }
.emce-job-card__meta span { display: flex; align-items: center; gap: 4px; }
.emce-job-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.emce-job-card__tag { padding: 3px 10px; background: var(--emce-light-bg); border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--emce-text-sec); }
.emce-job-card__tag--featured { background: #fff8e1; color: #7a5a00; }
.emce-job-card__tag--urgent { background: var(--emce-red-light); color: var(--emce-red); }
.emce-job-card__match { padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; background: rgba(143,210,153,0.2); color: var(--emce-dark-deep); }
.emce-job-card__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ─── Search Bar ─── */
.emce-search { padding: 12px 0; }
.emce-search__form {
    display: flex; gap: 0; background: var(--emce-white); border-radius: var(--emce-radius);
    overflow: hidden; border: 1.5px solid var(--emce-border); transition: border-color 0.2s;
    box-shadow: var(--emce-shadow);
}
.emce-search__form:focus-within { border-color: var(--emce-mid); box-shadow: 0 4px 20px rgba(143,210,153,0.15); }
.emce-search__input { flex: 1; border: none; padding: 13px 18px; font-size: 14px; outline: none; font-family: var(--emce-font); color: var(--emce-text); min-width: 0; background: transparent; }
.emce-search__select { border: none; border-left: 1px solid var(--emce-border-light); padding: 13px 14px; font-size: 13px; background: var(--emce-light-bg); outline: none; cursor: pointer; color: var(--emce-text-sec); font-family: var(--emce-font); }
.emce-search__btn { padding: 13px 24px; background: var(--emce-dark); color: var(--emce-light); border: none; font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s; font-family: var(--emce-font); }
.emce-search__btn:hover { background: var(--emce-dark-deep); }

/* ─── Filters ─── */
.emce-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin-bottom: 6px; }
.emce-filter-chip {
    padding: 6px 14px; border-radius: 20px; border: 1px solid var(--emce-border);
    font-size: 13px; font-weight: 600; cursor: pointer; background: var(--emce-white); color: var(--emce-text-sec);
    transition: all 0.2s; font-family: var(--emce-font);
}
.emce-filter-chip:hover, .emce-filter-chip--active { background: var(--emce-dark); color: var(--emce-light) !important; border-color: var(--emce-dark); }

/* ─── Dashboard Tabs ─── */
.emce-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--emce-border); overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 22px; }
.emce-tab {
    padding: 11px 18px; font-weight: 500; font-size: 13px; color: var(--emce-text-muted);
    cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color 0.2s;
    background: none; border-top: none; border-left: none; border-right: none; font-family: var(--emce-font);
}
.emce-tab:hover { color: var(--emce-dark); }
.emce-tab--active { color: var(--emce-dark); border-bottom-color: var(--emce-mid); font-weight: 700; }

/* ─── Dashboard Layout ─── */
.emce-dashboard { max-width: 1440px; margin: 0 auto; padding: 24px 16px; }
.emce-dashboard__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.emce-dashboard__title { font-size: 20px; font-weight: 800; color: var(--emce-text); }
.emce-grid { display: grid; gap: 14px; }
.emce-grid--2 { grid-template-columns: repeat(2, 1fr); }
.emce-grid--3 { grid-template-columns: repeat(3, 1fr); }
.emce-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Stats ─── */
.emce-stat { background: var(--emce-white); border: 1px solid var(--emce-border); border-radius: var(--emce-radius); padding: 18px 16px; text-align: center; }
.emce-stat__icon { font-size: 24px; margin-bottom: 4px; }
.emce-stat__value { font-size: 26px; font-weight: 800; color: var(--emce-dark); letter-spacing: -0.5px; }
.emce-stat__label { font-size: 11px; color: var(--emce-text-muted); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Badges ─── */
.emce-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.2px; }
.emce-badge--primary { background: var(--emce-light-soft); color: var(--emce-dark); }
.emce-badge--match { background: rgba(143,210,153,0.2); color: var(--emce-dark-deep); }
.emce-badge--success { background: #e8fff3; color: #1e5a32; }
.emce-badge--warning { background: var(--emce-orange-light); color: #8a4a1a; }
.emce-badge--danger { background: var(--emce-red-light); color: var(--emce-red); }
.emce-badge--gray { background: #f0f4f2; color: var(--emce-text-sec); }
.emce-badge--featured { background: #fff8e1; color: #7a5a00; }

/* ─── Empty State ─── */
.emce-empty { text-align: center; padding: 48px 20px; color: var(--emce-text-sec); }
.emce-empty__icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.emce-empty__title { font-size: 16px; font-weight: 700; color: var(--emce-text); margin-bottom: 6px; }
.emce-empty__text { font-size: 13px; max-width: 360px; margin: 0 auto 16px; }

/* ─── Skeleton Loader ─── */
.emce-skeleton { background: linear-gradient(90deg, #e8f5eb 25%, #d4e8d8 50%, #e8f5eb 75%); background-size: 200% 100%; animation: emce-shimmer 1.5s infinite; border-radius: 10px; }
.emce-skeleton--card { height: 100px; margin-bottom: 10px; }
@keyframes emce-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── Auth ─── */
.emce-auth { max-width: 420px; margin: 36px auto; padding: 0 16px; }
.emce-auth__card { background: var(--emce-white); border-radius: var(--emce-radius); box-shadow: var(--emce-shadow); padding: 32px; border: 1px solid var(--emce-border); }
.emce-auth__title { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 24px; color: var(--emce-dark); }
.emce-auth__form label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; color: var(--emce-text); }
.emce-auth__form input[type="text"], .emce-auth__form input[type="email"],
.emce-auth__form input[type="tel"], .emce-auth__form input[type="password"] {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--emce-border); border-radius: var(--emce-radius-sm);
    font-size: 14px; margin-bottom: 14px; transition: border-color 0.2s; font-family: var(--emce-font);
}
.emce-auth__form input:focus { border-color: var(--emce-mid); outline: none; box-shadow: 0 0 0 3px rgba(143,210,153,0.15); }
.emce-auth__divider { text-align: center; margin: 18px 0; position: relative; color: var(--emce-text-muted); font-size: 13px; }
.emce-auth__divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--emce-border); }
.emce-auth__divider span { background: var(--emce-white); padding: 0 12px; position: relative; }

/* ─── Pricing ─── */
.emce-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; padding: 36px 16px; }
.emce-plan {
    background: var(--emce-white); border: 1.5px solid var(--emce-border); border-radius: 16px;
    padding: 28px 22px; text-align: center; position: relative; transition: border-color 0.3s;
}
.emce-plan:hover { border-color: var(--emce-mid); }
.emce-plan--recommended { border: 2px solid var(--emce-mid); }
.emce-plan--recommended::before {
    content: 'RECOMMENDED'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--emce-mid); color: var(--emce-darkest); padding: 3px 14px; border-radius: 20px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
}
.emce-plan__name { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--emce-dark); }
.emce-plan__price { font-size: 34px; font-weight: 800; color: var(--emce-dark); }
.emce-plan__price span { font-size: 13px; font-weight: 400; color: var(--emce-text-sec); }
.emce-plan__features { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.emce-plan__features li { padding: 7px 0; font-size: 13px; color: var(--emce-text-sec); border-bottom: 1px solid var(--emce-border-light); display: flex; gap: 7px; }
.emce-plan__features li::before { content: '✓'; color: var(--emce-mid-muted); font-weight: 700; }

/* ─── Profile Strength ─── */
.emce-strength__bar { height: 8px; background: var(--emce-border-light); border-radius: 4px; overflow: hidden; margin: 10px 0; }
.emce-strength__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--emce-mid), var(--emce-light)); transition: width 0.5s; }

/* ─── Toast ─── */
.emce-toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 22px; background: var(--emce-dark); color: var(--emce-light); border-radius: var(--emce-radius-sm); font-size: 14px; font-weight: 600; z-index: 99999; box-shadow: 0 8px 24px rgba(0,0,0,0.2); animation: emce-slideUp 0.3s; }
@keyframes emce-slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── Domain Cards ─── */
.emce-domain-card {
    background: var(--emce-white); border: 1px solid var(--emce-border); border-radius: var(--emce-radius);
    padding: 18px 14px; text-align: center; cursor: pointer; transition: all 0.25s;
}
.emce-domain-card:hover { border-color: var(--emce-mid); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(143,210,153,0.1); }
.emce-domain-card__icon { font-size: 26px; margin-bottom: 6px; }
.emce-domain-card__name { font-size: 12px; font-weight: 700; color: var(--emce-text); }
.emce-domain-card__count { font-size: 11px; font-weight: 700; color: var(--emce-mid-muted); margin-top: 3px; }

/* ─── Hero ─── */
.emce-hero { background: linear-gradient(160deg, #1e2d2a 0%, #374a47 40%, #3d5e58 100%); padding: 68px 24px 52px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.emce-hero__pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(143,210,153,0.15); border: 1px solid rgba(143,210,153,0.25); padding: 5px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 18px; color: var(--emce-light); }
.emce-hero__title { font-size: 42px; font-weight: 800; line-height: 1.12; margin: 0 0 12px; letter-spacing: -1px; }
.emce-hero__accent { color: var(--emce-light); }
.emce-hero__sub { font-size: 16px; color: rgba(193,255,180,0.7); margin-bottom: 28px; font-weight: 400; }

/* ─── Navigation (when using shortcode homepage) ─── */
.emce-nav { background: var(--emce-dark); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.emce-nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: #fff; text-decoration: none; }
.emce-nav__logo-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--emce-mid); display: flex; align-items: center; justify-content: center; color: var(--emce-darkest); font-weight: 800; font-size: 12px; }
.emce-nav__links { display: flex; gap: 20px; align-items: center; font-size: 13px; }
.emce-nav__links a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; }
.emce-nav__links a:hover { color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .emce-grid--2, .emce-grid--3, .emce-grid--4 { grid-template-columns: 1fr 1fr; }
    .emce-job-card { flex-direction: column; }
    .emce-job-card__actions { width: 100%; }
    .emce-search__form { flex-direction: column; }
    .emce-search__select { border-left: none; border-top: 1px solid var(--emce-border-light); }
    .emce-pricing { grid-template-columns: 1fr 1fr; }
    .emce-dashboard { padding: 16px 12px; }
    .emce-hero__title { font-size: 28px; }
    .emce-nav__links { display: none; }
}
@media (max-width: 480px) {
    .emce-grid--2, .emce-grid--3, .emce-grid--4 { grid-template-columns: 1fr; }
    .emce-pricing { grid-template-columns: 1fr; }
}

/* ─── Hover Fix: Ensure text stays readable on all interactive elements ─── */
.emce-btn:hover { transition: all 0.2s; }
.emce-nav__links a:hover { color: #fff !important; }
a.emce-btn--primary:hover, a.emce-btn--primary:focus { color: var(--emce-light) !important; }
a.emce-btn--secondary:hover, a.emce-btn--secondary:focus { color: var(--emce-dark) !important; }
a.emce-btn--accent:hover, a.emce-btn--accent:focus { color: var(--emce-darkest) !important; }
.emce-job-card__tag:hover { opacity: 0.85; }

/* ─── PWA & Mobile Touch Optimizations ─── */
@media (max-width: 768px) {
    /* Larger touch targets */
    .emce-btn { min-height: 44px; min-width: 44px; }
    .emce-btn--sm { min-height: 38px; }
    .emce-tab { min-height: 44px; padding: 10px 12px; font-size: 12px; scroll-snap-align: start; }
    .emce-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; flex-wrap: nowrap; gap: 4px; }
    .emce-tabs::-webkit-scrollbar { display: none; }
    
    /* Swipe-friendly job cards */
    .emce-job-card { padding: 14px; touch-action: pan-y; }
    .emce-job-card__body { gap: 4px; }
    .emce-job-card__title { font-size: 15px; }
    .emce-job-card__meta { font-size: 12px; }
    
    /* Mobile bottom padding for fixed nav */
    .emce-dashboard { padding-bottom: 80px; }
    
    /* Full-width forms on mobile */
    .emce-card input[type="text"],
    .emce-card input[type="email"],
    .emce-card input[type="url"],
    .emce-card input[type="number"],
    .emce-card input[type="tel"],
    .emce-card input[type="date"],
    .emce-card select,
    .emce-card textarea { font-size: 16px !important; /* Prevents iOS zoom on focus */ }
    
    /* ATS sidebar mobile full-screen */
    #emce-ats-sidebar { width: 100% !important; }
}

/* PWA standalone mode adjustments */
@media all and (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .emce-hero { padding-top: calc(20px + env(safe-area-inset-top)); }
}

/* Install prompt banner base styles */
#emce-push-banner { font-family: var(--emce-font); }
#emce-push-banner button { font-family: var(--emce-font); }

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATION SYSTEM
   ═══════════════════════════════════════════════════ */
.emce-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 40px);
}
.logged-in .emce-toast-container { top: 112px; }
@media (max-width: 782px) { .logged-in .emce-toast-container { top: 126px; } }

.emce-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--emce-radius-sm);
    font-family: var(--emce-font);
    font-size: 13px;
    line-height: 1.5;
    pointer-events: auto;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.35s;
    cursor: pointer;
}
.emce-toast.emce-toast--visible {
    transform: translateX(0);
    opacity: 1;
}
.emce-toast.emce-toast--exit {
    transform: translateX(120%);
    opacity: 0;
}
.emce-toast__icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.emce-toast__body { flex: 1; }
.emce-toast__title { font-weight: 700; margin: 0 0 2px; font-size: 13px; }
.emce-toast__msg { margin: 0; font-size: 12px; opacity: 0.85; }
.emce-toast__close {
    background: none; border: none; cursor: pointer;
    font-size: 16px; opacity: 0.5; padding: 0; line-height: 1;
    color: inherit; flex-shrink: 0;
}
.emce-toast__close:hover { opacity: 1; }
.emce-toast__progress {
    position: absolute; bottom: 0; left: 0; height: 3px;
    border-radius: 0 0 var(--emce-radius-sm) var(--emce-radius-sm);
    animation: emce-toast-shrink var(--toast-duration, 4s) linear forwards;
}
@keyframes emce-toast-shrink { from { width: 100%; } to { width: 0; } }

/* Toast variants */
.emce-toast--success {
    background: #e8fff3; border: 1px solid #8fd299; color: #1e5a32;
}
.emce-toast--success .emce-toast__progress { background: #8fd299; }

.emce-toast--error {
    background: #fdeaea; border: 1px solid #e8a0a0; color: #8b1a1a;
}
.emce-toast--error .emce-toast__progress { background: #d45454; }

.emce-toast--info {
    background: #e6f1fb; border: 1px solid #a0c8e8; color: #1a4a6e;
}
.emce-toast--info .emce-toast__progress { background: #4a90d9; }

.emce-toast--warning {
    background: #fff4eb; border: 1px solid #e8c0a0; color: #6e3a1a;
}
.emce-toast--warning .emce-toast__progress { background: #e8833a; }

/* ═══════════════════════════════════════════════════
   EXTRACTED COMPONENT CLASSES (from inline styles)
   ═══════════════════════════════════════════════════ */

/* White card — the most repeated pattern */
.emce-panel {
    background: var(--emce-white);
    border-radius: var(--emce-radius);
    border: 1px solid var(--emce-border);
    padding: 24px;
    margin-bottom: 16px;
}
.emce-panel--sm { padding: 16px; margin-bottom: 8px; }
.emce-panel--flush { padding: 0; }

/* Cover banner gradient */
.emce-cover {
    background: linear-gradient(160deg, #1e2d2a 0%, #374a47 40%, #3d5e58 80%, #4a7a6a 100%);
    padding: 32px 24px;
    position: relative;
}
.emce-cover--tall { padding: 32px 24px 80px; }
.emce-cover a { color: rgba(193,255,180,0.6); font-size: 13px; text-decoration: none; font-weight: 500; }
.emce-cover a:hover { color: #c1ffb4; }

/* Page container */
.emce-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.emce-container--wide { max-width: 980px; }
.emce-container--pull-up { margin-top: -60px; }

/* Company/user logo circle */
.emce-avatar {
    width: 56px; height: 56px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--emce-border-light);
    flex-shrink: 0;
}
.emce-avatar--circle { border-radius: 50%; }
.emce-avatar--lg { width: 80px; height: 80px; }
.emce-avatar--sm { width: 40px; height: 40px; border-radius: 8px; }
.emce-avatar--placeholder {
    background: var(--emce-light-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: var(--emce-dark);
}
.emce-avatar--placeholder.emce-avatar--sm { font-size: 16px; }

/* Meta row (icons + text) */
.emce-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--emce-text-sec);
}
.emce-meta-row--sm { font-size: 13px; gap: 12px; }

/* Section heading inside cards */
.emce-section-heading {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--emce-dark);
}

/* Content prose (job descriptions etc) */
.emce-prose {
    font-size: 14px;
    line-height: 1.9;
    color: #2a3a37;
}
.emce-prose p { margin: 0 0 12px; }
.emce-prose ul { padding-left: 20px; }

/* Responsive 2-column grid */
.emce-layout-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .emce-layout-2col { grid-template-columns: 1fr; }
    .emce-layout-2col .emce-sticky { position: static !important; }
    .emce-cover { padding: 24px 16px; }
    .emce-cover--tall { padding: 24px 16px 60px; }
    .emce-container { padding: 0 16px; }
    .emce-panel { padding: 16px; border-radius: var(--emce-radius-sm); }
    .emce-meta-row { flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
    .emce-section-heading { font-size: 16px; }
    .emce-prose { font-size: 14px; }
    .emce-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; white-space: nowrap; padding-bottom: 4px; }
    .emce-tabs::-webkit-scrollbar { display: none; }
    .emce-tab { flex-shrink: 0; font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 420px) {
    .emce-panel { padding: 12px; }
    .emce-btn { font-size: 13px; padding: 10px 16px; }
    .emce-btn--block { padding: 12px; }
    .emce-badge { font-size: 10px; padding: 2px 8px; }
    .emce-container, .emce-container--wide { padding: 0 10px; }
}

/* Sticky sidebar card */
.emce-sticky { position: sticky; top: 80px; }

/* ═══════════════════════════════════════════════════
   FORM VALIDATION
   ═══════════════════════════════════════════════════ */
.emce-field { margin-bottom: 14px; position: relative; }
.emce-field__label {
    display: block; font-size: 11px; font-weight: 700;
    color: var(--emce-text-sec); text-transform: uppercase;
    letter-spacing: 0.3px; margin-bottom: 3px;
}
.emce-field__input {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid var(--emce-border);
    border-radius: 8px; font-size: 14px;
    font-family: var(--emce-font);
    color: var(--emce-text);
    background: var(--emce-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.emce-field__input:focus {
    outline: none; border-color: var(--emce-mid);
    box-shadow: 0 0 0 3px rgba(143,210,153,0.15);
}
.emce-field__input--error {
    border-color: var(--emce-red) !important;
    box-shadow: 0 0 0 3px rgba(212,84,84,0.1) !important;
}
.emce-field__input--valid {
    border-color: var(--emce-mid) !important;
}
.emce-field__error {
    display: none; font-size: 11px; color: var(--emce-red);
    margin-top: 4px; line-height: 1.4;
}
.emce-field__error--visible { display: block; }
.emce-field__hint {
    font-size: 11px; color: var(--emce-text-muted); margin-top: 3px;
}
/* Inline valid checkmark */
.emce-field__input--valid + .emce-field__check { display: block; }
.emce-field__check {
    display: none; position: absolute; right: 12px; top: 34px;
    font-size: 14px; color: var(--emce-mid-muted); pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   ONBOARDING WELCOME MODAL
   ═══════════════════════════════════════════════════ */
.emce-onboard-overlay {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(30,45,42,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: emce-fade-in 0.3s ease;
}
@keyframes emce-fade-in { from { opacity: 0; } to { opacity: 1; } }

.emce-onboard {
    background: var(--emce-white); border-radius: 20px;
    max-width: 520px; width: 100%; padding: 0; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    animation: emce-slide-up 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes emce-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.emce-onboard__header {
    background: linear-gradient(135deg, #374a47, #3d5e58);
    padding: 32px 28px 24px; text-align: center; color: #fff;
}
.emce-onboard__emoji { font-size: 48px; margin-bottom: 12px; }
.emce-onboard__title {
    font-size: 22px; font-weight: 800; margin: 0 0 6px;
    color: #c1ffb4;
}
.emce-onboard__sub {
    font-size: 14px; color: rgba(255,255,255,0.7); margin: 0;
}
.emce-onboard__body { padding: 24px 28px; }
.emce-onboard__steps { list-style: none; padding: 0; margin: 0 0 20px; }
.emce-onboard__step {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid var(--emce-border-light);
}
.emce-onboard__step:last-child { border-bottom: none; }
.emce-onboard__step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--emce-light-soft); color: var(--emce-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.emce-onboard__step-text strong { display: block; font-size: 14px; color: var(--emce-text); }
.emce-onboard__step-text span { font-size: 12px; color: var(--emce-text-sec); }
.emce-onboard__cta {
    display: block; width: 100%; padding: 14px;
    background: var(--emce-dark); color: var(--emce-light);
    border: none; border-radius: 12px; font-size: 15px;
    font-weight: 700; cursor: pointer; font-family: var(--emce-font);
    transition: background 0.2s;
}
.emce-onboard__cta:hover { background: #2a3a37; }
.emce-onboard__skip {
    display: block; text-align: center; margin-top: 12px;
    font-size: 13px; color: var(--emce-text-muted);
    cursor: pointer; background: none; border: none;
    font-family: var(--emce-font);
}
.emce-onboard__skip:hover { color: var(--emce-text-sec); }

/* ═══════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    :root {
        --emce-dark: #c1e8c9;
        --emce-dark-deep: #d4f0da;
        --emce-darkest: #e8f8ec;
        --emce-mid: #5fa86a;
        --emce-mid-muted: #4d9058;
        --emce-light: #2a4a30;
        --emce-light-soft: #1e2d22;
        --emce-light-bg: #141e18;
        --emce-text: #e0f0e4;
        --emce-text-sec: #99b8a0;
        --emce-text-muted: #6a8a72;
        --emce-border: #2a4030;
        --emce-border-light: #223428;
        --emce-white: #1a2620;
        --emce-orange: #e8a060;
        --emce-orange-light: #2a2218;
        --emce-red: #e07070;
        --emce-red-light: #2a1818;
        --emce-shadow: 0 2px 12px rgba(0,0,0,0.3);
        --emce-shadow-hover: 0 8px 28px rgba(0,0,0,0.4);
    }

    body, body.emce-page { background: #111a14; color: var(--emce-text); }

    /* Cards & panels */
    .emce-panel, .emce-ln-section, .emce-ln-sidebar-card,
    .emce-card, .emce-card--flat { background: var(--emce-white); border-color: var(--emce-border); }

    /* Candidate profile sections */
    .emce-ln-section h2, .emce-ln-section h3 { color: var(--emce-text); }
    .emce-ln-tag { background: var(--emce-light-soft); color: var(--emce-dark); }
    .emce-ln-tag--cert { background: #2a4a30; color: #8fd299; }
    .emce-ln-tag--domain { background: #1e2d22; color: #99b8a0; }
    .emce-ln-tag--tool { background: #1e2d22; color: #7a9a82; }
    .emce-ln-tag--lab { background: #2a2218; color: #c0906a; }
    .emce-ln-meta { color: var(--emce-text-sec); }
    .emce-ln-ico { background: var(--emce-light-soft); }
    .emce-ln-ico--exp { background: #1e2d22; color: var(--emce-dark); }
    .emce-ln-open { background: var(--emce-light-soft); border-color: var(--emce-mid); color: var(--emce-mid); }

    /* Buttons */
    .emce-btn--primary { background: var(--emce-mid); color: #111a14; }
    .emce-btn--secondary { background: var(--emce-light-soft); color: var(--emce-dark); border-color: var(--emce-border); }
    .emce-btn--ghost { color: var(--emce-text-sec); }
    .emce-btn--accent { background: var(--emce-mid); color: #111a14; }

    /* Stats */
    .emce-stat { background: var(--emce-white); border-color: var(--emce-border); }
    .emce-stat__value { color: var(--emce-dark); }

    /* Navigation */
    .emce-shell-nav { background: #1a2620; border-color: var(--emce-border); }
    .emce-shell-nav__logo { color: var(--emce-dark); }
    .emce-shell-nav__links a { color: var(--emce-text-sec); }
    .emce-shell-nav__links a:hover { color: var(--emce-mid); }
    .emce-shell-nav__links .emce-shell-cta { background: var(--emce-mid); color: #111a14; }
    .emce-shell-mobile-menu { background: #1a2620; border-color: var(--emce-border); }
    .emce-shell-mobile-menu a { color: var(--emce-text); border-color: var(--emce-border); }
    .emce-shell-burger span { background: var(--emce-text-sec); }

    /* Footer */
    .emce-shell-footer { background: #0e1610; }

    /* Hero */
    .emce-hero { background: linear-gradient(160deg, #0e1610, #1a2820, #1e3228) !important; }

    /* Tabs */
    .emce-tab { color: var(--emce-text-sec); }
    .emce-tab--active { color: var(--emce-mid); border-color: var(--emce-mid); }

    /* Forms */
    .emce-field__input, .emce-search__input, .emce-search__select,
    input, select, textarea {
        background: #1e2d22; color: var(--emce-text);
        border-color: var(--emce-border);
    }
    .emce-field__input:focus { border-color: var(--emce-mid); }

    /* Badges */
    .emce-badge--featured { background: #2a3a18; color: #c0d080; border-color: #4a5a28; }
    .emce-badge--danger { background: #2a1818; color: #e07070; }
    .emce-badge--primary { background: #1e2d22; color: var(--emce-mid); }
    .emce-badge--gray { background: #1e2420; color: #8a9a90; }

    /* Job cards */
    .emce-job-card { background: var(--emce-white); border-color: var(--emce-border); }
    .emce-job-card:hover { border-color: var(--emce-mid); }
    .emce-job-card__title a { color: var(--emce-text); }
    .emce-job-card__company { color: var(--emce-mid); }

    /* Domain cards */
    .emce-domain-card { background: var(--emce-white); border-color: var(--emce-border); }
    .emce-domain-card:hover { border-color: var(--emce-mid); }

    /* Pricing */
    .emce-pricing__card { background: var(--emce-white); border-color: var(--emce-border); }
    .emce-pricing__card--featured { border-color: var(--emce-mid); }

    /* Toast dark adjustments */
    .emce-toast--success { background: #1e2d22; border-color: #2a4a30; color: #8fd299; }
    .emce-toast--error { background: #2a1818; border-color: #3a2020; color: #e07070; }
    .emce-toast--info { background: #182028; border-color: #203040; color: #80b0d8; }
    .emce-toast--warning { background: #2a2218; border-color: #3a3020; color: #d0a060; }

    /* Onboarding dark */
    .emce-onboard { background: #1a2620; }
    .emce-onboard__cta { background: var(--emce-mid); color: #111a14; }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #111a14; }
    ::-webkit-scrollbar-thumb { background: #2a4030; border-radius: 4px; }

    /* Cover banner — slightly darker in dark mode */
    .emce-cover, .emce-ln-cover { background: linear-gradient(160deg, #0a1210, #1a2820, #1e3228) !important; }
}
