.hlog-dialog {
    max-width: 420px;
}

.hlog-modal {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.hlog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: #64748b;
    transition: background 0.14s ease, color 0.14s ease;
}

.hlog-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.hlog-body {
    padding: 32px 28px 24px;
    text-align: center;
}

.hlog-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #e7f7ea;
    color: #217208;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 18px;
    border: 1px solid #c3e6cb;
}

.hlog-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.hlog-sub {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.55;
}

.hlog-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.hlog-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
    text-align: left;
}

.hlog-option:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.hlog-seeker {
    background: linear-gradient(135deg, #144603 0%, #217208 100%);
    box-shadow: 0 4px 16px rgba(33, 114, 8, 0.25);
}

.hlog-seeker:hover {
    box-shadow: 0 8px 24px rgba(33, 114, 8, 0.35);
}

.hlog-employer {
    background: linear-gradient(135deg, #7c2d12 0%, #f97316 100%);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}

.hlog-employer:hover {
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.hlog-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.hlog-option-text {
    flex: 1;
    min-width: 0;
}

.hlog-option-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.hlog-option-text span {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.hlog-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: transform 0.14s ease, color 0.14s ease;
}

.hlog-option:hover .hlog-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.9);
}

.hlog-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.hlog-trust i {
    color: #217208;
    font-size: 0.72rem;
}

.hlog-register {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.hlog-register a {
    color: #217208;
    font-weight: 700;
    text-decoration: none;
}

.hlog-register a:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .hlog-option,
    .hlog-arrow,
    .hlog-close {
        transition: none !important;
    }

    .hlog-option:hover {
        transform: none !important;
    }
} 

/* ============================================================
   MODAL WIDTHS
============================================================ */
#headlogin .modal-dialog,
#headregister .modal-dialog {
    max-width: 420px;
}

#prejobpost .modal-dialog,
#preresume .modal-dialog {
    max-width: 760px;
}

/* ============================================================
   REGISTER MODAL
============================================================ */
.hreg-modal {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.hreg-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: #64748b;
    transition: background 0.14s ease, color 0.14s ease;
}
.hreg-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.hreg-body {
    padding: 32px 28px 24px;
    text-align: center;
}
.hreg-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #e7f7ea;
    color: #217208;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 18px;
    border: 1px solid #c3e6cb;
}
.hreg-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.hreg-sub {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.55;
}
.hreg-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.hreg-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
    text-align: left;
}
.hreg-option:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.hreg-seeker {
    background: linear-gradient(135deg, #144603 0%, #217208 100%);
    box-shadow: 0 4px 16px rgba(33, 114, 8, 0.25);
}
.hreg-seeker:hover {
    box-shadow: 0 8px 24px rgba(33, 114, 8, 0.35);
}
.hreg-employer {
    background: linear-gradient(135deg, #7c2d12 0%, #f97316 100%);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}
.hreg-employer:hover {
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.hreg-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.hreg-option-text {
    flex: 1;
    min-width: 0;
}
.hreg-option-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.hreg-option-text span {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}
.hreg-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: transform 0.14s ease, color 0.14s ease;
}
.hreg-option:hover .hreg-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.9);
}
.hreg-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-bottom: 14px;
}
.hreg-trust i {
    color: #217208;
    font-size: 0.72rem;
}
.hreg-signin {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}
.hreg-signin a {
    color: #217208;
    font-weight: 700;
    text-decoration: none;
}
.hreg-signin a:hover {
    text-decoration: underline;
}

/* ============================================================
   PRE-JOB-POST MODAL
============================================================ */
.pjp-modal {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.pjp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.14s ease, color 0.14s ease;
}
.pjp-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.pjp-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
}
.pjp-left {
    background: linear-gradient(160deg, #144603 0%, #217208 60%, #2d9e0a 100%);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.pjp-left::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pjp-left-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
}
.pjp-left h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    position: relative;
}
.pjp-left p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    line-height: 1.6;
    position: relative;
}
.pjp-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.pjp-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
}
.pjp-feat-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #6ee759;
    flex-shrink: 0;
    margin-top: 1px;
}
.pjp-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}
.pjp-left-badge i {
    color: #6ee759;
    font-size: 0.68rem;
}
.pjp-right {
    background: #fff;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pjp-right-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #fff7ed;
    color: #f97316;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.pjp-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.pjp-sub {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.55;
}
.pjp-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.pjp-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
}
.pjp-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.pjp-btn-primary {
    background: linear-gradient(135deg, #7c2d12 0%, #f97316 100%);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}
.pjp-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}
.pjp-btn-secondary {
    background: linear-gradient(135deg, #144603 0%, #217208 100%);
    box-shadow: 0 4px 16px rgba(33, 114, 8, 0.2);
}
.pjp-btn-secondary:hover {
    box-shadow: 0 8px 24px rgba(33, 114, 8, 0.3);
}
.pjp-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.pjp-btn-text {
    flex: 1;
    min-width: 0;
}
.pjp-btn-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.pjp-btn-text span {
    display: block;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}
.pjp-btn-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: transform 0.14s ease, color 0.14s ease;
}
.pjp-btn:hover .pjp-btn-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.9);
}
.pjp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
}
.pjp-divider::before,
.pjp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.pjp-seeker {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}
.pjp-seeker a {
    color: #217208;
    font-weight: 700;
    text-decoration: none;
}
.pjp-seeker a:hover {
    text-decoration: underline;
}

/* ============================================================
   PRE-RESUME MODAL
============================================================ */
.prm-modal {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.prm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.14s ease, color 0.14s ease;
}
.prm-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.prm-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
}
.prm-left {
    background: linear-gradient(160deg, #144603 0%, #217208 60%, #2d9e0a 100%);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.prm-left::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.prm-left-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
}
.prm-left h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    position: relative;
}
.prm-left p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
    line-height: 1.6;
    position: relative;
}
.prm-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.prm-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
}
.prm-feat-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #6ee759;
    flex-shrink: 0;
    margin-top: 1px;
}
.prm-left-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}
.prm-left-badge i {
    color: #fde68a;
    font-size: 0.68rem;
}
.prm-right {
    background: #fff;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.prm-right-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #e7f7ea;
    color: #217208;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.prm-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.prm-sub {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.55;
}
.prm-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.prm-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
}
.prm-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.prm-btn-primary {
    background: linear-gradient(135deg, #144603 0%, #217208 100%);
    box-shadow: 0 4px 16px rgba(33, 114, 8, 0.25);
}
.prm-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(33, 114, 8, 0.35);
}
.prm-btn-secondary {
    background: linear-gradient(135deg, #0d2b06 0%, #1a5d06 100%);
    box-shadow: 0 4px 14px rgba(13, 43, 6, 0.2);
}
.prm-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(13, 43, 6, 0.3);
}
.prm-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.prm-btn-text {
    flex: 1;
    min-width: 0;
}
.prm-btn-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.prm-btn-text span {
    display: block;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}
.prm-btn-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    transition: transform 0.14s ease, color 0.14s ease;
}
.prm-btn:hover .prm-btn-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.9);
}
.prm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
    width: 100%;
}
.prm-divider::before,
.prm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.prm-employer {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}
.prm-employer a {
    color: #f97316;
    font-weight: 700;
    text-decoration: none;
}
.prm-employer a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE + REDUCED MOTION
============================================================ */
@media (max-width: 640px) {
    .pjp-body,
    .prm-body {
        grid-template-columns: 1fr;
    }

    .pjp-left,
    .prm-left {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hreg-option,
    .hreg-arrow,
    .hreg-close,
    .pjp-btn,
    .pjp-btn-arrow,
    .pjp-close,
    .prm-btn,
    .prm-btn-arrow,
    .prm-close {
        transition: none !important;
    }

    .hreg-option:hover,
    .pjp-btn:hover,
    .prm-btn:hover {
        transform: none !important;
    }
}
