/* ─── EJB Account Sidebar ─── */

:root {
    --ejb-teal-dark: #31717F;
    --ejb-teal-light: #70B4B1;
    --ejb-gray: #777777;
    --ejb-bg-primary: #F2F4F6;
    --ejb-bg-card: #FFFFFF;
    --ejb-teal-bg: rgba(49, 113, 127, 0.06);
    --ejb-text-primary: #1A2332;
    --ejb-text-muted: #999999;
    --ejb-border: #E4E9F0;
    --ejb-radius: 14px;
}

/* Wrapper */
.ejb-sidebar {
    width: 100%;
}

.ejb-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: ejbSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ejbSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel base */
.ejb-panel {
    background: var(--ejb-bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.ejb-panel-header {
    padding: 24px 24px 14px;
    border-bottom: 1px solid var(--ejb-border);
}

.ejb-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ejb-panel-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--ejb-text-primary);
    letter-spacing: -0.3px;
    margin: 0;
    padding: 0;
    border: none;
}

.ejb-panel-subtitle {
    font-size: 13px;
    color: var(--ejb-text-muted);
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 500;
}

/* Badges */
.ejb-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.3;
}

.ejb-badge-teal {
    background: var(--ejb-teal-bg);
    color: var(--ejb-teal-dark);
    border: 1px solid rgba(49, 113, 127, 0.15);
}

.ejb-badge-gray {
    background: rgba(119, 119, 119, 0.1);
    color: var(--ejb-gray);
}

.ejb-badge-red {
    background: rgba(220, 79, 79, 0.1);
    color: #DC4F4F;
}

.ejb-badge-new {
    background: #E85D4A;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ─── Profile Panel ─── */
.ejb-profile-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.ejb-profile-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    border: 2.5px solid var(--ejb-teal-dark);
    overflow: hidden;
    background: var(--ejb-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ejb-profile-initials {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
    z-index: 1;
}

.ejb-profile-gravatar {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.ejb-profile-info {
    flex: 1;
}

.ejb-profile-greeting {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ejb-text-primary);
    letter-spacing: -0.3px;
}

a.ejb-profile-link,
a.ejb-profile-link:visited,
a.ejb-profile-link:active {
    font-size: 13px;
    font-weight: 600;
    color: var(--ejb-teal-dark) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: 2px;
    background: transparent !important;
}

a.ejb-profile-link:hover {
    color: var(--ejb-teal-light) !important;
}

/* Profile Completion */
.ejb-profile-completion {
    padding: 0 14px 14px;
    border-top: 1px solid var(--ejb-border);
    margin: 0 4px;
}

.ejb-profile-completion .ejb-checklist-item {
    margin-top: 10px;
}

/* ─── Verification Alerts ─── */
.ejb-verify-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.ejb-verify-alert-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(232, 133, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ejb-verify-alert-icon svg {
    width: 18px;
    height: 18px;
    color: #E8850C;
}

.ejb-verify-alert-content {
    flex: 1;
    min-width: 0;
}

.ejb-verify-alert-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ejb-text-primary);
    line-height: 1.3;
}

.ejb-verify-alert-desc {
    font-size: 12px;
    color: #E8850C;
    margin-top: 2px;
    font-weight: 500;
}

.ejb-verify-alert-btn,
a.ejb-verify-alert-btn,
a.ejb-verify-alert-btn:visited {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #E8850C;
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.4;
}

.ejb-verify-alert-btn:hover,
a.ejb-verify-alert-btn:hover {
    background: #CC7300;
    transform: scale(1.03);
    color: white !important;
}

.ejb-verify-alert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar OTP section */
.ejb-verify-otp-section {
    padding: 0 18px 16px;
}

/* 6-digit OTP inputs */
.ejb-sv-otp-digits {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.ejb-sv-otp-digit {
    width: 40px !important;
    height: 48px;
    text-align: center;
    font-size: 20px !important;
    font-weight: 700;
    font-family: 'Montserrat', monospace;
    padding: 0 !important;
    border: 1.5px solid var(--ejb-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: var(--ejb-text-primary);
    flex-shrink: 0;
    box-sizing: border-box;
}

.ejb-sv-otp-digit:focus {
    outline: none;
    border-color: var(--ejb-teal-dark);
    box-shadow: 0 0 0 3px rgba(49, 113, 127, 0.12);
}

.ejb-sv-otp-digit.filled {
    border-color: var(--ejb-teal-dark);
    background: rgba(49, 113, 127, 0.04);
}

.ejb-sv-otp-submit-full {
    display: block;
    width: 100%;
    padding: 11px 18px;
    margin-bottom: 2px;
}

@media (max-width: 400px) {
    .ejb-sv-otp-digits {
        gap: 4px;
    }
    .ejb-sv-otp-digit {
        width: 36px !important;
        height: 44px;
        font-size: 18px !important;
        border-radius: 6px;
    }
}

.ejb-verify-otp-submit {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: var(--ejb-teal-dark);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.ejb-verify-otp-submit:hover {
    background: var(--ejb-teal-light);
}

.ejb-verify-otp-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ejb-verify-otp-msg {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    min-height: 0;
}

.ejb-verify-otp-msg--ok {
    color: #0a7c42;
}

.ejb-verify-otp-msg--err {
    color: #DC4F4F;
}

/* Verified success state */
.ejb-verify-alert-icon--ok {
    background: rgba(10, 124, 66, 0.1) !important;
}

.ejb-verify-alert-icon--ok svg {
    color: #0a7c42 !important;
}

.ejb-verify-alert-desc--ok {
    color: #0a7c42 !important;
}

/* ─── Application Panel ─── */
.ejb-panel--incomplete {
    border: 3px solid rgba(220, 79, 79, 1);
    box-shadow: 0px 6px 10px rgba(220, 79, 79, .5);
}

.ejb-panel--incomplete:has(.ejb-verify-alert) {
    border-color: rgba(232, 133, 12, 1);
    box-shadow: 0px 6px 10px rgba(232, 133, 12, .5);
}

/* ─── Application Card (v2) ─── */
.ejb-app-card {
    background: var(--ejb-white, #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.04),
        0 12px 40px rgba(44,142,142,0.08);
}

/* Banner */
.ejb-ac-banner {
    background: linear-gradient(135deg, #267a7a 0%, #5cc8c4 60%, #6dd5d0 100%);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.ejb-ac-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 80%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}
.ejb-ac-banner--done {
    background: linear-gradient(135deg, #267a7a 0%, #3aacac 60%, #6dd5d0 100%);
}
.ejb-ac-banner-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
/* banner-icon removed — now uses shared .ejb-acd-badge */
.ejb-ac-banner-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.ejb-ac-banner-title em {
    font-style: italic;
    font-weight: 700;
}
.ejb-ac-banner-sub {
    color: rgba(255,255,255,0.82);
    font-size: 13.5px;
    margin-top: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Progress bar in banner */
.ejb-ac-bar-wrap {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.ejb-ac-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 100px;
    overflow: hidden;
}
.ejb-ac-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 100px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ejb-ac-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    border-radius: 100px;
}
.ejb-ac-bar-label {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    min-width: 38px;
    text-align: right;
}

/* Body */
.ejb-ac-body {
    padding: 24px 24px 28px;
}

/* Section header */
.ejb-ac-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ejb-ac-section-header h3 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a95a3;
    margin: 0;
}
.ejb-ac-count-badge {
    font-size: 12px;
    font-weight: 800;
    color: #2d8e8e;
    background: #eaf8f7;
    padding: 3px 12px;
    border-radius: 60px;
}

/* Steps list */
.ejb-ac-steps {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 20px;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    overflow: hidden;
    background: #e8edf2;
}
a.ejb-ac-step,
a.ejb-ac-step:visited,
.ejb-ac-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: var(--ejb-white, #fff);
    transition: background 0.15s;
    text-decoration: none !important;
    cursor: pointer;
    color: inherit;
}
a.ejb-ac-step:hover,
.ejb-ac-step:hover {
    background: #f0f7f7;
}

/* Step check circle */
.ejb-ac-step-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ejb-ac-step--done .ejb-ac-step-check {
    background: #4bbfbf;
}
.ejb-ac-step--done .ejb-ac-step-check svg {
    width: 12px; height: 12px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ejb-ac-step--current .ejb-ac-step-check {
    background: #fff;
    border: 2.5px solid #4bbfbf;
    position: relative;
}
.ejb-ac-step--current .ejb-ac-step-check::after {
    content: '';
    width: 8px; height: 8px;
    background: #4bbfbf;
    border-radius: 50%;
    animation: ejbDotPulse 1.5s ease-in-out infinite;
}
@keyframes ejbDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}
.ejb-ac-step--locked .ejb-ac-step-check {
    background: #f0f2f5;
    border: 2px solid #dde1e6;
}
.ejb-ac-step--locked .ejb-ac-step-check svg {
    width: 11px; height: 11px;
    stroke: #c0c7cf;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Step number */
.ejb-ac-step-num {
    width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: #a3b1bf;
    text-align: center;
    flex-shrink: 0;
}
.ejb-ac-step--current .ejb-ac-step-num {
    color: #2d8e8e;
    font-weight: 800;
}

/* Step label */
.ejb-ac-step-label {
    font-size: 13.5px;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.ejb-ac-step--done .ejb-ac-step-label {
    color: #8a95a3;
}
.ejb-ac-step--current .ejb-ac-step-label {
    color: #2c3e50;
    font-weight: 700;
}
.ejb-ac-step--locked .ejb-ac-step-label {
    color: #a3b1bf;
}

/* Step tag (NEXT badge) */
.ejb-ac-step-tag,
a.ejb-ac-step-tag,
a.ejb-ac-step-tag:visited {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 60px;
    white-space: nowrap;
    background: linear-gradient(135deg, #5cc8c4, #4bbfbf);
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.ejb-ac-step-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(75,191,191,0.4);
}

/* Nudge */
.ejb-ac-nudge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fdf8f0;
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid #f5eadb;
}
.ejb-ac-nudge-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.ejb-ac-nudge-icon svg {
    width: 20px; height: 20px;
    stroke: #d4953a;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ejb-ac-nudge-text {
    font-size: 13px;
    color: #8a6d3b;
    line-height: 1.5;
    font-weight: 600;
}
.ejb-ac-nudge-text strong {
    font-weight: 800;
    color: #6d5230;
}

/* CTA – uses site's primary button style */
a.ejb-ac-cta,
a.ejb-ac-cta:visited {
    display: block;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 999px;
    background: #31717f;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.ejb-ac-cta:hover {
    background: #2a616e;
    box-shadow: 0 4px 16px rgba(49,113,127,0.3);
    transform: translateY(-1px);
    color: #fff !important;
}
a.ejb-ac-cta:active {
    transform: translateY(0);
}

/* Time estimate */
.ejb-ac-time {
    text-align: center;
    margin-top: 14px;
    font-size: 12.5px;
    color: #a3b1bf;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.ejb-ac-time svg {
    width: 14px; height: 14px;
    stroke: #4bbfbf;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── Application Complete State ─── */

/* Badge (replaces banner-icon) */
.ejb-acd-badge {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.15);
}
.ejb-acd-badge-inner {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.ejb-acd-badge svg {
    width: 20px; height: 20px;
    stroke: #fff; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.ejb-app-card--complete .ejb-ac-banner {
    padding-bottom: 20px;
}
.ejb-app-card--complete .ejb-ac-banner-top {
    margin-bottom: 0;
}
.ejb-app-card--complete .ejb-ac-body {
    padding-top: 18px;
}

/* Confetti */
.ejb-acd-confetti {
    position: absolute; z-index: 0;
    border-radius: 2px;
    animation: ejbConfetti 2s ease-out forwards;
    opacity: 0;
}
@keyframes ejbConfetti {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateY(60px) rotate(360deg) scale(0.5); }
}
.ejb-acd-confetti:nth-child(1) { left: 15%; top: 10%; width: 6px; height: 6px; background: rgba(255,255,255,0.5); animation-delay: 0.4s; }
.ejb-acd-confetti:nth-child(2) { left: 75%; top: 8%;  width: 5px; height: 8px; background: rgba(255,255,255,0.4); animation-delay: 0.5s; }
.ejb-acd-confetti:nth-child(3) { left: 45%; top: 5%;  width: 4px; height: 4px; background: rgba(255,255,255,0.6); animation-delay: 0.6s; border-radius: 50%; }
.ejb-acd-confetti:nth-child(4) { left: 60%; top: 15%; width: 7px; height: 4px; background: rgba(255,255,255,0.35); animation-delay: 0.55s; }
.ejb-acd-confetti:nth-child(5) { left: 30%; top: 12%; width: 3px; height: 7px; background: rgba(255,255,255,0.45); animation-delay: 0.7s; }

/* Freshness */
.ejb-acd-freshness {
    background: #f2fbfa;
    border: 1px solid rgba(75,191,191,0.1);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}
.ejb-acd-freshness-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.ejb-acd-freshness-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #267a7a;
}
.ejb-acd-freshness-label svg {
    width: 15px; height: 15px;
    stroke: #4bbfbf; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ejb-acd-freshness-score {
    font-size: 11px; font-weight: 800;
    color: #27ae60; background: #eafaf1;
    padding: 3px 12px; border-radius: 60px;
}
.ejb-acd-freshness-track {
    height: 6px; background: #d6efed;
    border-radius: 100px; overflow: hidden;
    margin-bottom: 10px;
}
.ejb-acd-freshness-fill {
    height: 100%;
    background: linear-gradient(90deg, #267a7a, #5cc8c4, #4bbfbf);
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}
.ejb-acd-freshness-hint {
    font-size: 12px; color: #8a95a3;
    font-weight: 600; line-height: 1.5;
}
.ejb-acd-freshness-hint strong {
    color: #2d8e8e; font-weight: 700;
}

/* Actions header */
.ejb-acd-actions-header {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #8a95a3;
    margin-bottom: 10px;
}

/* Action items */
.ejb-acd-actions {
    display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 20px;
}
a.ejb-acd-action,
a.ejb-acd-action:visited {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    color: inherit;
}
a.ejb-acd-action:hover {
    border-color: #4bbfbf;
    background: #f2fbfa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44,142,142,0.08);
}
.ejb-acd-action-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ejb-acd-action-icon svg {
    width: 20px; height: 20px;
    fill: none; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.ejb-acd-action-icon--license { background: #eef0fb; }
.ejb-acd-action-icon--license svg { stroke: #6c7ae0; }
.ejb-acd-action-icon--skills { background: #fef3e6; }
.ejb-acd-action-icon--skills svg { stroke: #d4953a; }
.ejb-acd-action-icon--prefs { background: #eaf8f7; }
.ejb-acd-action-icon--prefs svg { stroke: #4bbfbf; }
.ejb-acd-action-content { flex: 1; min-width: 0; }
.ejb-acd-action-title {
    font-size: 13px; font-weight: 700;
    color: #2c3e50; margin-bottom: 1px;
}
.ejb-acd-action-desc {
    font-size: 11px; font-weight: 600;
    color: #8a95a3; line-height: 1.35;
}
.ejb-acd-action-arrow {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fafbfc;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
a.ejb-acd-action:hover .ejb-acd-action-arrow {
    background: #4bbfbf;
}
.ejb-acd-action-arrow svg {
    width: 14px; height: 14px;
    stroke: #a3b1bf; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 0.2s ease;
}
a.ejb-acd-action:hover .ejb-acd-action-arrow svg {
    stroke: #fff;
}

/* Alert card */
.ejb-acd-alert {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border: 1px solid #e0ecf7;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 22px;
}
.ejb-acd-alert-top {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px;
}
.ejb-acd-alert-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #267a7a, #5cc8c4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ejb-acd-alert-icon svg {
    width: 18px; height: 18px;
    stroke: #fff; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ejb-acd-alert-text h4 {
    font-size: 13px; font-weight: 800;
    color: #2c3e50; margin: 0 0 2px;
}
.ejb-acd-alert-text p {
    font-size: 12px; font-weight: 600;
    color: #8a95a3; line-height: 1.45;
    margin: 0;
}
.ejb-acd-alert-toggle-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
}
.ejb-acd-alert-toggle-label {
    font-size: 12px; font-weight: 700; color: #2c3e50;
}

/* Toggle switch */
.ejb-acd-toggle {
    position: relative;
    width: 48px; height: 26px;
    background: #4bbfbf;
    border-radius: 60px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
    border: none; padding: 0;
}
.ejb-acd-toggle::after {
    content: '';
    position: absolute; top: 3px; left: 25px;
    width: 20px; height: 20px;
    background: #fff; border-radius: 50%;
    transition: left 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ejb-acd-toggle--off {
    background: #d0d5dc;
}
.ejb-acd-toggle--off::after {
    left: 3px;
}

/* Status badge */
.ejb-acd-status-wrap {
    display: flex; justify-content: center;
    margin-bottom: 14px;
}
.ejb-acd-status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    background: #eafaf1;
    border: 1px solid rgba(39,174,96,0.15);
    border-radius: 60px;
}
.ejb-acd-status-dot {
    width: 8px; height: 8px;
    background: #27ae60; border-radius: 50%;
    animation: ejbStatusGlow 2s ease-in-out infinite;
}
@keyframes ejbStatusGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.3); }
    50%      { box-shadow: 0 0 0 5px rgba(39,174,96,0.08); }
}
.ejb-acd-status-text {
    font-size: 12px; font-weight: 700;
    color: #27ae60; letter-spacing: 0.03em;
}

/* Footer hint */
.ejb-acd-footer-hint {
    text-align: center; margin-top: 14px;
    font-size: 11px; color: #a3b1bf;
    font-weight: 600; line-height: 1.5;
}
.ejb-acd-footer-hint strong {
    color: #8a95a3;
}

/* ─── Skills Checklist ─── */
.ejb-checklist-list {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ejb-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid var(--ejb-teal-dark);
    background: rgba(49, 113, 127, 0.02);
    text-decoration: none !important;
    color: inherit !important;
}

a.ejb-checklist-item:hover,
a.ejb-checklist-item:focus {
    background: rgba(49, 113, 127, 0.05);
    border-color: var(--ejb-teal-dark);
    box-shadow: 0 2px 8px rgba(49, 113, 127, 0.1);
    text-decoration: none !important;
    color: inherit !important;
}

/* Recruiter-requested checklist (highlighted card) */
.ejb-checklist-item.ejb-requested {
    border-color: var(--ejb-teal-dark);
    background: rgba(49, 113, 127, 0.02);
    padding: 16px 16px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

a.ejb-checklist-item.ejb-requested:hover,
a.ejb-checklist-item.ejb-requested:focus {
    background: rgba(49, 113, 127, 0.05);
    border-color: var(--ejb-teal-dark);
    box-shadow: 0 2px 8px rgba(49, 113, 127, 0.12);
}

.ejb-requested .ejb-finish-btn {
    align-self: center;
}

.ejb-requested-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0d6e6e;
    background: #edf8f8;
    border: 1px solid #a0dede;
    padding: 3px 8px 3px 10px;
    border-radius: 50px;
    margin-top: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.ejb-requested-tag svg {
    flex-shrink: 0;
    color: #0d6e6e;
}

.ejb-expiration-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    padding: 3px 10px;
    border-radius: 8px;
    margin-top: 4px;
    line-height: 1.4;
}
.ejb-expiration-tag svg {
    flex-shrink: 0;
}
.ejb-expiration-tag.ejb-expiring-soon {
    color: #92400E;
    background: #FEF3C7;
    border-color: #FCD34D;
}
.ejb-expiration-tag.ejb-expired {
    color: #991B1B;
    background: #FEE2E2;
    border-color: #FECACA;
}

/* ─── Urgency border states ─── */
.ejb-checklist-item.ejb-requested.ejb-urgency-orange {
    border-color: #DC2626;
    background: rgba(220, 38, 38, 0.02);
    flex-wrap: wrap;
}
a.ejb-checklist-item.ejb-requested.ejb-urgency-orange:hover,
a.ejb-checklist-item.ejb-requested.ejb-urgency-orange:focus {
    border-color: #B91C1C;
    background: rgba(220, 38, 38, 0.05);
}

.ejb-checklist-item.ejb-requested.ejb-urgency-red {
    border-color: #DC2626;
    background: rgba(220, 38, 38, 0.02);
    flex-wrap: wrap;
}
a.ejb-checklist-item.ejb-requested.ejb-urgency-red:hover,
a.ejb-checklist-item.ejb-requested.ejb-urgency-red:focus {
    border-color: #B91C1C;
    background: rgba(220, 38, 38, 0.05);
}

/* ─── Urgency bottom banner ─── */
.ejb-urgency-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% + 32px);
    margin: 10px -16px -16px;
    padding: 10px 16px;
    border-radius: 0 0 12px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.ejb-urgency-red .ejb-urgency-banner {
    background: #FEE2E2;
    color: #DC2626;
}
.ejb-urgency-orange .ejb-urgency-banner {
    background: #FEE2E2;
    color: #DC2626;
}
.ejb-urgency-banner svg:first-child {
    flex-shrink: 0;
    color: #DC2626;
}
.ejb-urgency-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: #DC2626;
}

/* Check icon (completed) */
.ejb-check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    border: 2px solid var(--ejb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--ejb-bg-card);
}

.ejb-completed .ejb-check-icon {
    background: var(--ejb-teal-dark);
    border-color: var(--ejb-teal-dark);
}

.ejb-check-icon svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ejb-completed .ejb-check-icon svg {
    opacity: 1;
}

/* Item content */
.ejb-item-content {
    flex: 1;
    min-width: 0;
}

.ejb-item-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ejb-text-primary);
    line-height: 1.35;
}

.ejb-item-meta {
    font-size: 12px;
    color: var(--ejb-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.ejb-item-meta.ejb-in-progress {
    color: var(--ejb-teal-dark);
    font-weight: 600;
}

/* Arrow */
.ejb-item-arrow {
    color: var(--ejb-text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.ejb-checklist-item:hover .ejb-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Progress ring */
.ejb-progress-ring {
    width: 36px;
    height: 36px;
    min-width: 36px;
    position: relative;
}

.ejb-progress-ring svg {
    transform: rotate(-90deg);
    width: 36px;
    height: 36px;
}

.ejb-ring-bg {
    fill: none;
    stroke: var(--ejb-border);
    stroke-width: 2.5;
}

.ejb-ring-fill {
    fill: none;
    stroke: var(--ejb-teal-dark);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 69.1;
    animation: ejbRingFill 1s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ejbRingFill {
    from { stroke-dashoffset: 69.1; }
}

.ejb-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: var(--ejb-teal-dark);
}

/* Finish / Start button */
.ejb-finish-btn,
a.ejb-finish-btn {
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: var(--ejb-teal-dark);
    color: white !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.ejb-finish-btn:hover,
a.ejb-finish-btn:hover {
    background: var(--ejb-teal-light);
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(49, 113, 127, 0.25);
    color: white !important;
}

/* Completed items – more subtle border */
.ejb-checklist-item.ejb-completed {
    border-color: var(--ejb-border);
    background: transparent;
}

a.ejb-checklist-item.ejb-completed:hover,
a.ejb-checklist-item.ejb-completed:focus {
    border-color: var(--ejb-teal-dark);
    background: var(--ejb-teal-bg);
    box-shadow: none;
}

/* Stagger animations */
.ejb-checklist-item:nth-child(1) { animation: ejbFadeIn 0.4s 0.1s both; }
.ejb-checklist-item:nth-child(2) { animation: ejbFadeIn 0.4s 0.15s both; }
.ejb-checklist-item:nth-child(3) { animation: ejbFadeIn 0.4s 0.2s both; }
.ejb-checklist-item:nth-child(4) { animation: ejbFadeIn 0.4s 0.25s both; }
.ejb-checklist-item:nth-child(5) { animation: ejbFadeIn 0.4s 0.3s both; }
.ejb-checklist-item:nth-child(6) { animation: ejbFadeIn 0.4s 0.35s both; }
.ejb-checklist-item:nth-child(7) { animation: ejbFadeIn 0.4s 0.4s both; }
.ejb-checklist-item:nth-child(8) { animation: ejbFadeIn 0.4s 0.45s both; }

@keyframes ejbFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Divider */
.ejb-divider {
    height: 1px;
    background: var(--ejb-border);
    margin: 2px 24px;
}

/* Add section */
.ejb-add-section {
    padding: 10px 14px 18px;
}

a.ejb-add-btn,
a.ejb-add-btn:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px dashed var(--ejb-border);
    background: transparent;
    color: var(--ejb-gray) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    box-sizing: border-box;
}

a.ejb-add-btn:hover {
    border-color: var(--ejb-teal-light);
    color: var(--ejb-teal-dark) !important;
    background: var(--ejb-teal-bg);
}

.ejb-add-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

a.ejb-add-btn:hover svg {
    transform: rotate(90deg);
}

/* ─── Tip Box ─── */
.ejb-tip-box {
    margin: 12px 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(49, 113, 127, 0.06), rgba(49, 113, 127, 0.02));
    border: 1px solid rgba(49, 113, 127, 0.1);
}

.ejb-tip-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ejb-teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ejb-tip-label svg {
    width: 14px;
    height: 14px;
}

.ejb-tip-text {
    font-size: 12.5px;
    color: var(--ejb-text-primary);
    line-height: 1.5;
    font-weight: 500;
}

/* ─── Logout ─── */
.ejb-logout-section {
    padding: 8px 0 4px;
}

a.ejb-logout-btn,
a.ejb-logout-btn:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--ejb-text-muted) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    text-decoration: none !important;
}

a.ejb-logout-btn:hover {
    color: #DC2626 !important;
    background: rgba(220, 38, 38, 0.05);
}

.ejb-logout-btn svg {
    width: 16px;
    height: 16px;
}

/* ─── Epic Friends Referral Banner ─── */
.ejb-referral-banner {
    background: linear-gradient(135deg, #3D0F2E 0%, #8B1A5C 30%, #E91E63 55%, #C2185B 75%, #6A1B4D 100%);
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    animation: ejbSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ejb-referral-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
}

.ejb-referral-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.ejb-referral-text {
    flex: 1;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.ejb-referral-text strong {
    color: #fff;
    font-weight: 700;
}

a.ejb-referral-cta,
a.ejb-referral-cta:visited {
    padding: 6px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

a.ejb-referral-cta:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff !important;
}

.ejb-referral-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s;
}

.ejb-referral-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .ejb-referral-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ejb-referral-icon {
        display: none;
    }
    .ejb-referral-text {
        font-size: 12px;
    }
}

/* ─── Layout integration with template ─── */
.ats-account-page .ats-app-sidebar .ejb-sidebar {
    margin-top: 0;
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .ats-account-page .ats-app-sidebar .ejb-sidebar {
        position: static;
    }
}
