body {
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    background: #f7f8fb;
    color: #1f2b3d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .display-5, .display-6 {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    letter-spacing: -0.01em;
}

.hero.gradient-card {
    position: relative;
    min-height: 78vh;
    background: linear-gradient(120deg, #003b80, #5a1b9e), url('../img/hero.svg');
    background-size: cover;
    background-position: center;
    border-radius: 1.25rem;
    color: white;
    overflow: hidden;
    padding: clamp(3rem, 4vw + 2rem, 5rem) clamp(1.5rem, 2vw + 1rem, 3.5rem);
    box-shadow: 0 20px 65px rgba(15, 23, 42, 0.35);
}

.hero.gradient-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: inherit;
}

.hero.gradient-card > * {
    position: relative;
    z-index: 1;
}

.hero.gradient-card .accent-orb {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 60%);
    filter: blur(18px);
    opacity: 0.55;
    z-index: 0;
}

.hero.gradient-card .accent-orb.orb-2 {
    right: -80px;
    bottom: -120px;
    background: radial-gradient(circle at 50% 40%, rgba(104, 210, 255, 0.32), transparent 60%);
}

.hero.gradient-card .premium-flair {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.premium-flair .beam {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #9de1ff, #ffd6f4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    position: relative;
}

.premium-flair .beam::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    mix-blend-mode: screen;
}

.premium-flair small {
    color: rgba(255, 255, 255, 0.8);
}

.premium-card {
    border-radius: 1rem;
}

.premium-card.glass {
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

.display-5,
.display-4 {
    font-size: clamp(2.75rem, 1.5rem + 2vw, 3.8rem);
    line-height: 1.1;
}

.lead,
.hero .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .premium-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.section-spacious {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.badge-soft {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.premium-card {
    border-radius: 1rem;
}

.card-job .card-body {
    gap: 0.35rem;
}

.card-job {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
}

.card-job:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.badge.bg-primary-soft {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.badge.bg-secondary-soft {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}
.badge-premium {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.badge-hot {
    background: rgba(255, 138, 76, 0.18);
    color: #b5471c;
}

.badge-verified {
    background: rgba(47, 191, 113, 0.18);
    color: #1a7e4a;
}

.bg-light-blue {
    background: #e8f1ff;
}

.btn {
    border-radius: 0.65rem;
    font-weight: 600;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: #fff;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

.navbar.shadow-sm.sticky-top {
    z-index: 1050;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.timeline-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.progress {
    background-color: #eef2f7;
    border-radius: 999px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.sticky-top {
    top: 0;
}

.gradient-ribbon {
    background: linear-gradient(135deg, #0b2f52, #5a1b9e);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}

.gradient-ribbon::after,
.gradient-ribbon::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 60%);
    filter: blur(18px);
}

.gradient-ribbon::before {
    top: -80px;
    left: -60px;
}

.gradient-ribbon::after {
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.18), transparent 60%);
}

.application-shell {
    padding: clamp(1.5rem, 2vw + 1rem, 2.75rem);
    border-radius: 1.25rem;
}

.application-shell .btn-lg {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}

.full-post {
    border: 1px dashed rgba(13, 110, 253, 0.25);
}

.blog-top-tips {
    background: linear-gradient(135deg, #0b2f52, #5a1b9e);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.job-hero .badge,
.blog-hero .badge {
    font-weight: 700;
}

.blog-hero pre,
.card pre {
    background: transparent;
    border: none;
}

.auth-shell {
    padding: 1rem 0;
}

.auth-hero {
    background: linear-gradient(135deg, #0d6efd, #5a1b9e);
    border-radius: 1rem;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 20px 60px rgba(13, 110, 253, 0.15);
}

.auth-hero .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.auth-card {
    border-radius: 1rem;
}

.flash-portal {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: min(420px, 94vw);
    pointer-events: none;
}

.flash-card {
    position: relative;
    background: #0b1224;
    border-radius: 18px;
    padding: 18px 18px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(8, 15, 35, 0.35);
    transform: translateY(-18px) scale(0.97);
    opacity: 0;
    color: #e5e7eb;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.flash-card.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.flash-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(147, 197, 253, 0.12), transparent 40%);
    pointer-events: none;
}

.flash-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    pointer-events: none;
}

.flash-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.flash-icon-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.flash-title {
    font-weight: 800;
    color: #f8fafc;
}

.flash-content {
    z-index: 1;
}

.flash-close {
    font-size: 20px;
    color: #cbd5e1;
    z-index: 1;
}

.flash-close:hover {
    color: #f8fafc;
}

.flash-success {
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 22px 50px rgba(16, 185, 129, 0.25);
}

.flash-danger {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 22px 50px rgba(239, 68, 68, 0.2);
}

.flash-warning {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 22px 50px rgba(245, 158, 11, 0.2);
}

.flash-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.flash-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.85), rgba(255,255,255,0.2));
    transform: translateX(-100%);
    animation: flashProgress var(--flash-duration, 6800ms) linear forwards;
}

@keyframes flashProgress {
    to { transform: translateX(0); }
}

.application-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
    border-radius: 1rem;
}

#application-form.is-submitting {
    pointer-events: none;
    user-select: none;
}

@media (min-width: 992px) {
    .hero.gradient-card {
        padding: 5rem 4rem;
    }

    .section-spacious {
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .hero.gradient-card {
        padding: 2rem;
    }
    .timeline-step {
        flex-direction: column;
    }
    .hero .row {
        text-align: center;
    }
    .hero .d-flex {
        justify-content: center;
    }
    .card-job .card-body {
        text-align: left;
    }
    .btn-lg,
    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero .row {
        gap: 1.5rem;
    }
    .premium-card, .card-job {
        border-radius: 0.85rem;
    }
    .navbar .btn {
        width: auto;
    }
}
