:root {
    --cth-primary: #9b5cff;
    --cth-primary-soft: #19122e;
    --cth-bg: #070813;
    --cth-surface: #101226;
    --cth-surface-alt: #161935;
    --cth-border: #2a2551;
    --cth-text-muted: #9ea3c4;
    --cth-cyan: #23f05a;
    --cth-neon-green: #23f05a;
    --cth-neon-purple: #9b5cff;
}

body {
    background-color: var(--cth-bg);
    color: #e7ecff;
    overflow-x: hidden;
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 1200px;
}

a {
    color: #85ff8f;
}

a:hover {
    color: #b5ffbb;
}

.cth-navbar {
    background: rgba(8, 10, 25, 0.92);
    border-bottom: 1px solid var(--cth-border);
    backdrop-filter: blur(8px);
}


.cth-preheader {
    background: #050715;
    border-bottom: 1px solid #211a42;
}

.cth-preheader-links .nav-link {
    color: #95a0c7;
    font-size: 0.86rem;
    text-decoration: none;
}

.cth-preheader-links .nav-link:hover {
    color: #d6ddff;
}

.cth-preheader-links .btn-link {
    color: #95a0c7;
    text-decoration: none;
}

.cth-preheader-links .btn-link:hover {
    color: #d6ddff;
}

.cth-logo {
    color: #eff2ff;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cth-nav-link {
    color: #b4b9d9;
    font-weight: 500;
}


.cth-navbar .navbar-collapse {
    align-items: center;
}

.navbar-nav.mx-auto {
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

.navbar-nav.mx-auto .cth-nav-link {
    padding: 0.55rem 0.95rem !important;
    border-radius: 0.55rem;
}

.cth-nav-link:hover,
.cth-nav-link:focus,
.cth-nav-link.show,
.cth-nav-link.active {
    color: #ffffff;
    background: #1d163b;
}

.cth-nav-actions {
    min-width: 0;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cth-dropdown-menu {
    background: #13162f;
    border: 1px solid #352c68;
    border-radius: 0.75rem;
    box-shadow: 0 0.6rem 1.5rem rgba(2, 7, 24, 0.6);
}

.cth-dropdown-menu .dropdown-item {
    color: #d7dcf8;
}

.cth-dropdown-menu .dropdown-item:hover {
    background: #241d47;
    color: #ffffff;
}

.hero-card {
    background: radial-gradient(circle at top right, rgba(35, 240, 90, 0.17), transparent 45%), radial-gradient(circle at top left, rgba(155, 92, 255, 0.2), transparent 40%), linear-gradient(145deg, #0f1024 0%, #1f1540 100%);
    color: #fff;
    
   
    box-shadow: 0 1rem 2rem rgba(8, 13, 30, 0.45);
}

.hero-card .btn {
    border-radius: 0.65rem;
    font-weight: 600;
}

.hero-card .lead {
    color: #c8cee8;
}

.ai-clock-card {
    background: radial-gradient(circle at top, rgba(155, 92, 255, 0.24), transparent 50%), #12142c;
    border: 1px solid #3a306e;
    border-radius: 1rem;
    box-shadow: 0 0.8rem 2rem rgba(16, 9, 34, 0.62);
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid #3a306e;
    background: #1a1536;
    color: #d4d8f4;
    font-size: 0.78rem;
    padding: 0.32rem 0.7rem;
}

.ai-time {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #eaf0ff;
    text-shadow: 0 0 14px rgba(155, 92, 255, 0.55), 0 0 24px rgba(35, 240, 90, 0.2);
}

.ai-date {
    color: #a7add0;
    font-size: 1rem;
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #1af349 0%, #8d5dff 100%);
    border-color: #2ee95a;
    color: #070b16;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #38ff61 0%, #9d70ff 100%);
    border-color: #6dff8a;
    box-shadow: 0 0 0 0.2rem rgba(35, 240, 90, 0.22);
    color: #050812;
}

.btn-outline-primary {
    color: #abffb4;
    border-color: #2fc457;
}

.btn-outline-primary:hover {
    background: #172630;
    border-color: #45df6e;
}

.btn-light {
    background: #f1f4ff;
    border-color: #f1f4ff;
    color: #111630;
}

.tool-card,
.surface-card {
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 1rem;
    box-shadow: 0 0.35rem 1.2rem rgba(3, 8, 21, 0.55);
}

.tool-card,
.surface-card,
.stats-card,
.preview-panel,
.example-box,
.auth-form-card,
.cth-sidebar,
.accordion-item,
.form-control,
.form-select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-card:hover,
.surface-card:hover {
    border-color: #3a306e;
    transform: translateY(-2px);
}

.section-title {
    font-weight: 700;
    color: #f1f4ff;
}

.section-subtitle {
    color: var(--cth-text-muted);
}

.icon-chip {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background: #1b1537;
    color: #9cff9f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tools-showcase {
    padding-top: 0.5rem;
}

.tools-showcase .section-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tools-showcase .section-subtitle {
    max-width: 620px;
    margin: 0 auto;
}

.tools-showcase .tool-card {
    background: #111327;
    border: 1px solid #2f2858;
    border-radius: 0.8rem;
    box-shadow: none;
}

.tools-showcase .tool-card .card-body {
    padding: 1.15rem;
}

.tools-showcase .tool-card .card-title {
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
    color: #f2f5ff;
}

.tools-showcase .tool-card .card-text {
    color: #a7acd0 !important;
    font-size: 0.95rem;
    line-height: 1.45;
}

.tools-showcase .icon-chip {
    width: 36px;
    height: 36px;
    border-radius: 0.55rem;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    box-shadow: none;
    color: #0d1224;
}

.tools-showcase .col-sm-6:nth-child(1) .icon-chip { background: #2a2350; color: #a68dff; }
.tools-showcase .col-sm-6:nth-child(2) .icon-chip { background: #232347; color: #9e84ff; }
.tools-showcase .col-sm-6:nth-child(3) .icon-chip { background: #1a2e2d; color: #55f372; }
.tools-showcase .col-sm-6:nth-child(4) .icon-chip { background: #2f283b; color: #d4a0ff; }
.tools-showcase .col-sm-6:nth-child(5) .icon-chip { background: #262248; color: #8fe37a; }

.tool-link {
    color: #6fff86;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.tool-link:hover {
    color: #a6ffb4;
}

.clean-section {
    padding: 1rem 0;
}

.clean-section .section-title,
.clean-section .section-subtitle {
    text-align: center;
}

.how-works .mini-step {
    text-align: center;
    padding: 0.75rem 1rem;
}

.mini-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    margin: 0 auto 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #28d94f;
    color: #f2f8ff;
    font-size: 1rem;
}

.mini-step-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    color: #71ff88;
    margin-bottom: 0.35rem;
}

.how-works .mini-step .h6 {
    color: #e9efff;
}

.how-works .mini-step .text-muted {
    font-size: 0.78rem;
    line-height: 1.4;
}

.region-card {
    max-width: 220px;
    margin: 0 auto;
    border-radius: 0.65rem;
    box-shadow: none;
}

.about-hero {
    background: radial-gradient(circle at top left, rgba(115, 255, 134, 0.12), transparent 34%), radial-gradient(circle at right center, rgba(126, 184, 255, 0.14), transparent 38%), linear-gradient(145deg, #0d1123 0%, #171d35 58%, #10162b 100%);
    color: #f2f6ff;
    border: 1px solid #2d385c;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.4rem rgba(7, 12, 26, 0.42);
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(117, 173, 255, 0.12);
    border: 1px solid #31466f;
    color: #9bc7ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.about-panel {
    background: rgba(10, 15, 29, 0.78);
    border: 1px solid #2b3961;
    border-radius: 1rem;
}

.about-panel-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #9bc7ff;
    font-weight: 700;
}

.about-signal-list {
    display: grid;
    gap: 1rem;
}

.about-signal-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 0.8rem;
    align-items: start;
}

.about-signal-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.38rem;
    background: linear-gradient(135deg, #73ff86 0%, #8cbcff 100%);
    box-shadow: 0 0 0 4px rgba(115, 255, 134, 0.08);
}

.about-signal-item strong {
    display: block;
    margin-bottom: 0.18rem;
    color: #f5f8ff;
}

.about-signal-item p {
    color: #aeb8d8;
    line-height: 1.5;
}

.about-story-card,
.about-metrics-card,
.about-audience-card,
.about-pillar-card {
    border-color: #2d385c;
}

.about-metrics-card {
    background: linear-gradient(180deg, rgba(18, 24, 44, 0.98), rgba(13, 18, 34, 0.98));
}

.about-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #2a3356;
}

.about-metric:last-child {
    border-bottom: 0;
}

.about-metric span {
    color: #aeb8d8;
}

.about-metric strong {
    color: #f2f6ff;
    font-size: 0.95rem;
}

.about-pillar-card {
    background: linear-gradient(180deg, rgba(18, 22, 40, 0.98), rgba(14, 18, 33, 0.98));
}

.about-audience-item {
    height: 100%;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid #2e395d;
    border-radius: 0.95rem;
    background: rgba(13, 18, 32, 0.88);
}

.about-audience-item strong {
    display: block;
    color: #f3f7ff;
    margin-bottom: 0.3rem;
}

.about-audience-item span {
    color: #aab4d5;
    font-size: 0.94rem;
    line-height: 1.45;
}

.about-cta-band {
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #111a31 0%, #1e3358 100%);
    border: 1px solid #31466f;
    box-shadow: 0 0.8rem 2rem rgba(8, 13, 28, 0.35);
}

.contact-hero {
    background: radial-gradient(circle at top left, rgba(141, 93, 255, 0.12), transparent 35%), radial-gradient(circle at right center, rgba(35, 240, 90, 0.12), transparent 38%), linear-gradient(145deg, #0d1123 0%, #171b34 56%, #10152b 100%);
    color: #f3f7ff;
    border: 1px solid #2f385f;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.4rem rgba(7, 12, 26, 0.42);
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(141, 93, 255, 0.12);
    border: 1px solid #40346e;
    color: #c4b5ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.contact-side-panel,
.contact-info-card,
.contact-links-card {
    border-color: #2d385c;
}

.contact-side-panel {
    background: rgba(10, 15, 29, 0.78);
    border: 1px solid #2b3961;
    border-radius: 1rem;
}

.contact-panel-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #b8cfff;
    font-weight: 700;
}

.contact-panel-item {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #2b3559;
}

.contact-panel-item:last-child {
    border-bottom: 0;
}

.contact-panel-item strong {
    color: #f4f7ff;
}

.contact-panel-item span,
.contact-panel-item a {
    color: #afbad9;
}

.contact-topic-list {
    display: grid;
    gap: 1rem;
}

.contact-topic-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.contact-topic-item i {
    width: 42px;
    height: 42px;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d2140;
    color: #9fc4ff;
    font-size: 1rem;
}

.contact-topic-item strong {
    display: block;
    color: #f3f6ff;
    margin-bottom: 0.2rem;
}

.contact-topic-item p {
    color: #aab5d6;
    line-height: 1.45;
}

.contact-link-list li + li {
    margin-top: 0.5rem;
}

.contact-link-list a {
    color: #b9c8ea;
    text-decoration: none;
}

.contact-link-list a:hover {
    color: #ffffff;
}

.contact-cta-band {
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #111933 0%, #263d66 100%);
    border: 1px solid #345081;
    box-shadow: 0 0.8rem 2rem rgba(8, 13, 28, 0.35);
}

@media (max-width: 991.98px) {
    .about-hero,
    .about-cta-band,
    .contact-hero,
    .contact-cta-band {
        border-radius: 1rem;
    }
}

@media (max-width: 575.98px) {
    .about-kicker {
        font-size: 0.72rem;
    }

    .about-metric {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .contact-topic-item {
        grid-template-columns: 1fr;
    }
}

.region-code {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    color: #d7defb;
}

.testimonials .testimonial-card {
    border-radius: 0.65rem;
    box-shadow: none;
}

.testimonial-slider {
    padding: 0 2.75rem 2.25rem;
}

.testimonial-slider-desktop {
    padding: 0 1.75rem 2.25rem;
}

.testimonial-slider-mobile {
    padding: 0 2.1rem 2.25rem;
}

.testimonial-slider .carousel-item {
    padding: 0.35rem 0;
}

.testimonial-slider .carousel-control-prev,
.testimonial-slider .carousel-control-next {
    width: 2.25rem;
    opacity: 0.8;
}

.testimonial-slider .carousel-control-prev-icon,
.testimonial-slider .carousel-control-next-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background-color: rgba(40, 31, 72, 0.95);
    background-size: 60% 60%;
}

.testimonial-slider .carousel-indicators {
    bottom: -1.8rem;
    margin-bottom: 0;
}

.testimonial-slider .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background-color: #4a3f77;
}

.testimonial-slider .carousel-indicators .active {
    width: 22px;
    background-color: #74ff8f;
}

@media (max-width: 767.98px) {
    .testimonial-slider {
        padding: 0 1.8rem 2.2rem;
    }

    .testimonial-slider-mobile .carousel-control-prev,
    .testimonial-slider-mobile .carousel-control-next {
        width: 1.8rem;
    }
}

.quote-mark {
    color: #a67dff;
    font-size: 1rem;
}

.testimonials .testimonial-card p {
    font-size: 0.82rem;
    color: #c9cfee;
    line-height: 1.45;
}

.rating {
    color: #ffbe3b;
    letter-spacing: 0.8px;
    font-size: 0.82rem;
}

.cta-band {
    background: linear-gradient(110deg, #1b1235 0%, #25174a 55%, #152830 100%);
    border: 1px solid #372b66;
    box-shadow: 0 0 26px rgba(35, 240, 90, 0.16);
    border-radius: 0.55rem;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.example-box {
    background: #13172f;
    border: 1px solid #2f2858;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #d9e2ff;
}

.resume-preview,
.preview-panel {
    background: var(--cth-surface-alt);
    border: 1px solid var(--cth-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.preview-locked {
    position: relative;
    overflow: hidden;
}

.preview-locked .preview-content {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.preview-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 30, 0.6);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.step-pill {
    background: #1b1637;
    border: 1px solid #392f6f;
    color: #b0b7d7;
    border-radius: 999px;
    font-size: 0.86rem;
    padding: 0.35rem 0.75rem;
}

.progress {
    background-color: #1c1a38;
}

.progress-thin {
    height: 8px;
}

.progress-medium {
    height: 9px;
}

.progress-thick {
    height: 10px;
}

.progress-bar {
    background: linear-gradient(135deg, #9b5cff 0%, #23f05a 100%);
}

.resume-preview-wrap {
    max-width: 900px;
}

.resume-sheet {
    --ra1: #3f77cc;
    --ra2: #7ca9ff;
    --ra3: #d3defd;
    background: linear-gradient(180deg, rgba(20, 23, 45, 0.98), rgba(15, 18, 36, 0.98));
}

.resume-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2d2951;
    margin-bottom: 1.2rem;
}

.resume-identity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.resume-photo {
    width: 82px;
    height: 82px;
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid #342d66;
    box-shadow: 0 0.7rem 1.6rem rgba(4, 8, 20, 0.35);
}

.resume-meta-line {
    color: #b0b8db;
    font-size: 0.9rem;
}

.resume-template-pill {
    white-space: nowrap;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    border: 1px solid var(--ra1, #342d66);
    color: var(--ra2, #b99bff);
    background: rgba(155, 92, 255, 0.1);
}

.resume-section {
    margin-bottom: 1.35rem;
}

.resume-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: var(--ra2, #9b5cff);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.resume-stack {
    display: grid;
    gap: 0.8rem;
}

.resume-entry {
    padding: 0.9rem 1rem;
    border: 1px solid #29254b;
    border-radius: 0.85rem;
    background: rgba(18, 21, 40, 0.9);
}

.resume-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.resume-entry-title {
    font-size: 1rem;
    margin: 0;
    color: #edf1ff;
}

.resume-entry-subtitle {
    color: #acb5d8;
    font-size: 0.88rem;
}

.resume-entry-date {
    color: #96a0c5;
    font-size: 0.82rem;
    white-space: nowrap;
}

.resume-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.resume-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    background: #1c1a38;
    color: #d9ddf7;
    border: 1px solid #2d2951;
    font-size: 0.84rem;
}

.resume-badge-alt {
    background: #172830;
    border-color: #214651;
    color: #baf3ce;
}

.resume-social-list {
    display: grid;
    gap: 0.65rem;
}

.resume-social-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #252145;
    padding-bottom: 0.55rem;
}

.resume-social-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.resume-social-label {
    color: #edf1ff;
    font-weight: 600;
}

.resume-social-url {
    color: #9ea7cb;
    text-align: right;
    word-break: break-all;
}

.resume-sheet.template-classic {
    background: linear-gradient(180deg, rgba(29, 23, 16, 0.98), rgba(17, 13, 9, 0.98));
}

.resume-sheet.template-classic,
.resume-sheet.template-traditional,
.resume-sheet.template-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
}

.resume-sheet.template-classic .resume-sheet-head,
.resume-sheet.template-traditional .resume-sheet-head,
.resume-sheet.template-two-column .resume-sheet-head {
    grid-column: 1 / -1;
}

.resume-sheet.template-classic .resume-section-summary,
.resume-sheet.template-classic .resume-section-experience,
.resume-sheet.template-classic .resume-section-education,
.resume-sheet.template-traditional .resume-section-summary,
.resume-sheet.template-traditional .resume-section-experience,
.resume-sheet.template-traditional .resume-section-education,
.resume-sheet.template-two-column .resume-section-summary,
.resume-sheet.template-two-column .resume-section-experience,
.resume-sheet.template-two-column .resume-section-education {
    grid-column: 1;
}

.resume-sheet.template-classic .resume-section-skills,
.resume-sheet.template-classic .resume-section-languages,
.resume-sheet.template-classic .resume-section-social,
.resume-sheet.template-traditional .resume-section-skills,
.resume-sheet.template-traditional .resume-section-languages,
.resume-sheet.template-traditional .resume-section-social,
.resume-sheet.template-two-column .resume-section-skills,
.resume-sheet.template-two-column .resume-section-languages,
.resume-sheet.template-two-column .resume-section-social {
    grid-column: 2;
}

.resume-sheet.template-two-column {
    background: linear-gradient(180deg, rgba(19, 29, 48, 0.98), rgba(11, 19, 33, 0.98));
}

.resume-sheet.template-two-column .resume-entry {
    border-color: #2c4672;
    background: rgba(15, 25, 44, 0.9);
}

.resume-sheet.template-classic .resume-entry,
.resume-sheet.template-traditional .resume-entry,
.resume-sheet.template-corporate .resume-entry {
    border-color: #4a3a2a;
    background: rgba(33, 25, 16, 0.85);
}

.resume-sheet.template-clean {
    background: linear-gradient(180deg, rgba(19, 21, 33, 0.98), rgba(14, 17, 27, 0.98));
}

.resume-sheet.template-clean .resume-entry,
.resume-sheet.template-specialist .resume-entry,
.resume-sheet.template-simple-ats .resume-entry,
.resume-sheet.template-prime-ats .resume-entry,
.resume-sheet.template-pure-ats .resume-entry {
    border-color: #24314f;
    background: rgba(17, 22, 39, 0.9);
}

.resume-sheet.template-pure-ats,
.resume-sheet.template-prime-ats,
.resume-sheet.template-simple-ats {
    background: linear-gradient(180deg, rgba(15, 20, 33, 0.98), rgba(10, 14, 24, 0.98));
}

.resume-sheet.template-pure-ats .resume-entry,
.resume-sheet.template-prime-ats .resume-entry,
.resume-sheet.template-simple-ats .resume-entry {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--ra1, #2f456e);
    background: transparent;
    padding: 0.65rem 0;
}

.resume-sheet.template-pure-ats .resume-entry-head,
.resume-sheet.template-prime-ats .resume-entry-head,
.resume-sheet.template-simple-ats .resume-entry-head {
    flex-direction: column;
    gap: 0.15rem;
}

.resume-sheet.template-pure-ats .resume-section-title,
.resume-sheet.template-prime-ats .resume-section-title,
.resume-sheet.template-simple-ats .resume-section-title {
    border-bottom: 1px solid var(--ra1, #2f456e);
    padding-bottom: 0.35rem;
    margin-bottom: 0.55rem;
}

.resume-sheet.template-pure-ats .resume-badge-list,
.resume-sheet.template-prime-ats .resume-badge-list,
.resume-sheet.template-simple-ats .resume-badge-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.resume-sheet.template-pure-ats .resume-badge,
.resume-sheet.template-prime-ats .resume-badge,
.resume-sheet.template-simple-ats .resume-badge,
.resume-sheet.template-pure-ats .resume-badge-alt,
.resume-sheet.template-prime-ats .resume-badge-alt,
.resume-sheet.template-simple-ats .resume-badge-alt {
    border-radius: 0.35rem;
}

.resume-sheet.template-pure-ats .resume-badge,
.resume-sheet.template-prime-ats .resume-badge,
.resume-sheet.template-simple-ats .resume-badge {
    background: #18253c;
    border-color: #28406a;
}

.resume-sheet.template-traditional {
    background: linear-gradient(180deg, rgba(24, 22, 31, 0.98), rgba(15, 13, 20, 0.98));
}

.resume-sheet.template-corporate .resume-section-title {
    letter-spacing: 0.7px;
}

.resume-sheet.template-corporate .resume-section {
    border-left: 2px solid var(--ra2, #5a3b80);
    padding-left: 0.85rem;
}

.resume-sheet.template-corporate .resume-entry-head {
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed var(--ra1, #4c356e);
    margin-bottom: 0.55rem;
}

.resume-pdf-page {
    --ra1: #3f77cc;
    --ra2: #7ca9ff;
    --ra3: #d3defd;
    font-family: Arial, sans-serif;
    margin: 30px;
    color: #e8ecff;
    background: linear-gradient(145deg, #0c0f1f 0%, #1c1540 100%);
}

.resume-pdf-page h2,
.resume-pdf-page h3 {
    margin-bottom: 6px;
    color: var(--ra2, #9d70ff);
}

.resume-pdf-page p {
    margin: 4px 0 10px;
    color: #c8cee8;
}

.resume-pdf-page hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid var(--ra1, #342a62);
}

.resume-pdf-page .actions {
    margin-bottom: 12px;
}

.resume-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.resume-pdf-identity {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.resume-pdf-photo {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #342a62;
}

.resume-pdf-template {
    font-size: 0.9rem;
    color: #bda5ff;
}

.resume-pdf-entry {
    margin-bottom: 12px;
}

.resume-pdf-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.resume-pdf-page .actions button {
    background: linear-gradient(135deg, #1af349 0%, #8d5dff 100%);
    border: 0;
    color: #070b16;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.resume-pdf-page.template-classic,
.resume-pdf-page.template-traditional,
.resume-pdf-page.template-corporate {
    background: linear-gradient(145deg, #1a1424 0%, #2a1f35 100%);
}

.resume-pdf-page.template-two-column {
    background: linear-gradient(145deg, #131f34 0%, #1a2f50 100%);
}

.resume-pdf-page.template-classic .resume-pdf-section-summary,
.resume-pdf-page.template-classic .resume-pdf-section-experience,
.resume-pdf-page.template-classic .resume-pdf-section-education,
.resume-pdf-page.template-traditional .resume-pdf-section-summary,
.resume-pdf-page.template-traditional .resume-pdf-section-experience,
.resume-pdf-page.template-traditional .resume-pdf-section-education,
.resume-pdf-page.template-two-column .resume-pdf-section-summary,
.resume-pdf-page.template-two-column .resume-pdf-section-experience,
.resume-pdf-page.template-two-column .resume-pdf-section-education {
    width: 62%;
    float: left;
    clear: left;
}

.resume-pdf-page.template-classic .resume-pdf-section-skills,
.resume-pdf-page.template-classic .resume-pdf-section-languages,
.resume-pdf-page.template-classic .resume-pdf-section-social,
.resume-pdf-page.template-traditional .resume-pdf-section-skills,
.resume-pdf-page.template-traditional .resume-pdf-section-languages,
.resume-pdf-page.template-traditional .resume-pdf-section-social,
.resume-pdf-page.template-two-column .resume-pdf-section-skills,
.resume-pdf-page.template-two-column .resume-pdf-section-languages,
.resume-pdf-page.template-two-column .resume-pdf-section-social {
    width: 34%;
    float: right;
    clear: right;
}

.resume-pdf-page.template-corporate .resume-pdf-section {
    border-left: 2px solid var(--ra2, #6a4d97);
    padding-left: 10px;
}

.resume-pdf-page.template-clean,
.resume-pdf-page.template-specialist,
.resume-pdf-page.template-pure-ats,
.resume-pdf-page.template-prime-ats,
.resume-pdf-page.template-simple-ats {
    background: linear-gradient(145deg, #101726 0%, #192741 100%);
}

.resume-pdf-page.template-pure-ats .resume-pdf-entry,
.resume-pdf-page.template-prime-ats .resume-pdf-entry,
.resume-pdf-page.template-simple-ats .resume-pdf-entry {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ra1, #3a5f8f);
}

.resume-pdf-page.template-pure-ats .resume-pdf-entry-head,
.resume-pdf-page.template-prime-ats .resume-pdf-entry-head,
.resume-pdf-page.template-simple-ats .resume-pdf-entry-head {
    display: block;
}

.resume-pdf-page.template-pure-ats h3,
.resume-pdf-page.template-prime-ats h3,
.resume-pdf-page.template-simple-ats h3 {
    border-bottom: 1px solid var(--ra1, #3a5f8f);
    padding-bottom: 2px;
}

@page {
    margin: 1.2cm;
    /* Removes browser-generated date/time, URL, and title from print output */
    size: A4;
}

@media print {
    .resume-pdf-page.template-classic .resume-pdf-section-summary,
    .resume-pdf-page.template-classic .resume-pdf-section-experience,
    .resume-pdf-page.template-classic .resume-pdf-section-education,
    .resume-pdf-page.template-traditional .resume-pdf-section-summary,
    .resume-pdf-page.template-traditional .resume-pdf-section-experience,
    .resume-pdf-page.template-traditional .resume-pdf-section-education,
    .resume-pdf-page.template-two-column .resume-pdf-section-summary,
    .resume-pdf-page.template-two-column .resume-pdf-section-experience,
    .resume-pdf-page.template-two-column .resume-pdf-section-education {
        width: 62%;
        float: left;
        clear: left;
    }

    .resume-pdf-page.template-classic .resume-pdf-section-skills,
    .resume-pdf-page.template-classic .resume-pdf-section-languages,
    .resume-pdf-page.template-classic .resume-pdf-section-social,
    .resume-pdf-page.template-traditional .resume-pdf-section-skills,
    .resume-pdf-page.template-traditional .resume-pdf-section-languages,
    .resume-pdf-page.template-traditional .resume-pdf-section-social,
    .resume-pdf-page.template-two-column .resume-pdf-section-skills,
    .resume-pdf-page.template-two-column .resume-pdf-section-languages,
    .resume-pdf-page.template-two-column .resume-pdf-section-social {
        width: 34%;
        float: right;
        clear: right;
    }

    .resume-pdf-page.template-corporate .resume-pdf-section {
        border-left: 0;
        padding-left: 0;
    }

    .resume-pdf-page {
        color: #111;
        background: #fff;
    }

    .resume-pdf-page h2,
    .resume-pdf-page h3 {
        color: #111;
    }

    .resume-pdf-photo {
        border-color: #d8d8d8;
    }

    .resume-pdf-template {
        color: #444;
    }

    .resume-pdf-page p {
        color: #222;
    }

    .resume-pdf-page hr {
        border-top: 1px solid #cfcfcf;
    }

    .resume-pdf-page .actions {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .resume-sheet.template-classic,
    .resume-sheet.template-traditional,
    .resume-sheet.template-two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .resume-sheet.template-classic .resume-section,
    .resume-sheet.template-traditional .resume-section,
    .resume-sheet.template-two-column .resume-section {
        grid-column: 1;
    }
}

.cth-sidebar {
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 1rem;
    padding: 0.75rem;
}

.cth-sidebar .nav-link {
    color: #b5bbdc;
    border-radius: 0.6rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.3rem;
}

.cth-sidebar .nav-link.active,
.cth-sidebar .nav-link:hover {
    background: #241d47;
    color: #ecf0ff;
}

.stats-card {
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 0.85rem;
    padding: 1rem;
}

.drop-zone {
    border: 2px dashed #4a3d88;
    border-radius: 0.85rem;
    background: #12152d;
    padding: 1.25rem;
    text-align: center;
}

.split-auth {
    min-height: calc(100vh - 170px);
}

.auth-brand {
    background: radial-gradient(circle at top right, rgba(35, 240, 90, 0.2), transparent 45%), radial-gradient(circle at top left, rgba(155, 92, 255, 0.25), transparent 38%), linear-gradient(150deg, #151132 0%, #26194d 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
}

.auth-form-card {
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #1c1639;
    color: #9dffab;
    font-size: 0.82rem;
    font-weight: 600;
}

.cth-footer {
    background: #080b19;
    color: #a8aecf;
    border-top: 1px solid #261f48;
}

.cth-footer h6 {
    letter-spacing: 0.4px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cth-footer ul li {
    margin-bottom: 0.38rem;
}

.cth-footer-intro {
    max-width: 32rem;
}

.cth-footer a {
    color: #b7bde1;
    text-decoration: none;
}

.cth-footer a:hover {
    color: #ffffff;
}

.cth-footer-bottom {
    background: #060812;
    border-top: 1px solid #1f193a;
    color: #8f96bb;
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .cth-footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .cth-footer .row {
        row-gap: 1.15rem !important;
    }

    .cth-footer .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cth-footer .cth-logo img {
        width: 160px !important;
    }

    .cth-footer h6 {
        margin-bottom: 0.45rem;
    }

    .cth-footer-bottom .container {
        justify-content: center !important;
        text-align: center;
    }
}

.text-muted,
.section-subtitle,
.small {
    color: var(--cth-text-muted) !important;
}

.form-control,
.form-select,
.accordion-item,
.accordion-button,
.list-group-item,
.alert,
.modal-content {
    background-color: var(--cth-surface-alt);
    color: #e2e9ff;
    border-color: var(--cth-border);
}

.form-control::placeholder {
    color: #7f86ad;
}

.form-control:focus,
.form-select:focus {
    border-color: #4fe472;
    box-shadow: 0 0 0 0.2rem rgba(35, 240, 90, 0.18);
    background-color: #181b36;
    color: #edf1ff;
}

.accordion-button:not(.collapsed) {
    background-color: #231d46;
    color: #e7ecff;
}

.alert-info {
    background-color: #1d1f40;
    color: #d8dcff;
}

.alert-danger {
    background-color: #3a1a2a;
    color: #ffd7e4;
    border-color: #6d2d4a;
}

.alert-success {
    background-color: #153829;
    color: #d4ffe7;
    border-color: #2c654a;
}

.display-4,
.display-5,
.display-6 {
    color: #f2f5ff;
}

@media (max-width: 991.98px) {
    .split-auth {
        min-height: auto;
    }

    .navbar-nav.mx-auto {
        gap: 0;
        flex: 1 1 auto;
    }

    .navbar-nav.mx-auto .cth-nav-link {
        padding: 0.5rem 0.25rem !important;
        border-radius: 0.4rem;
    }

    .cth-navbar .navbar-brand,
    .cth-nav-actions {
        min-width: 0;
    }

    .cth-nav-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .cth-preheader-links {
        gap: 0.65rem !important;
        flex-wrap: wrap;
    }

    .resume-sheet-head,
    .resume-entry-head,
    .resume-social-item {
        flex-direction: column;
    }

    .resume-social-url {
        text-align: left;
    }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    min-height: 78vh;
}

.dashboard-sidebar {
    width: 235px;
    min-width: 235px;
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 1rem;
    padding: 1.25rem 0.85rem 1.25rem;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
}

.db-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.25rem 0.25rem 0.85rem;
}

.db-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b5cff 0%, #23f05a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.db-region-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(155, 92, 255, 0.12);
    color: #b38fff;
    border-radius: 999px;
    font-size: 0.68rem;
    padding: 0.12rem 0.5rem;
    margin-top: 0.2rem;
}

.db-sidebar-divider {
    border-bottom: 1px solid var(--cth-border);
    margin: 0.5rem 0;
}

.db-sidebar-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #4e5575;
    padding: 0.5rem 0.6rem 0.2rem;
}

.db-nav {
    display: flex;
    flex-direction: column;
}

.db-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    color: #b0b6d8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 0.12rem;
}

.db-nav-item i {
    font-size: 0.98rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.db-nav-item:hover {
    background: #1a1640;
    color: #e0e4ff;
}

.db-nav-item.active {
    background: rgba(155, 92, 255, 0.15);
    color: #c0a0ff;
}

.db-logout-link {
    color: #7e5a6d;
    margin-top: 0.5rem;
}

.db-logout-link:hover {
    color: #ffaabb;
    background: rgba(255, 90, 120, 0.1);
}

.db-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.db-stat-card {
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 0.9rem;
    padding: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
}

.db-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.db-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--cth-text-muted);
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.db-stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #f0f3ff;
    line-height: 1.1;
}

.db-stat-value span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--cth-text-muted);
    margin-left: 0.2rem;
}

.db-card {
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 0.9rem;
    overflow: hidden;
}

.db-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--cth-border);
    font-weight: 600;
    font-size: 0.9rem;
}

.db-card-body {
    padding: 0.75rem 1.1rem;
}

.db-activity-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #181a32;
}

.db-activity-row:last-child {
    border-bottom: 0;
}

.db-activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #44d870;
    flex-shrink: 0;
}

.db-activity-tool {
    flex: 1;
    font-size: 0.87rem;
    color: #d4daff;
}

.db-activity-time {
    font-size: 0.75rem;
    color: var(--cth-text-muted);
    white-space: nowrap;
}

.db-quick-tool {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.35rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #d0d6f8;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease;
    border-bottom: 1px solid #181a32;
}

.db-quick-tool:last-child {
    border-bottom: 0;
}

.db-quick-tool:hover {
    background: #181a38;
    color: #eef0ff;
}

.db-qt-icon {
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.db-qt-arrow {
    color: #3e4465;
    font-size: 0.8rem;
    transition: transform 0.15s;
}

.db-quick-tool:hover .db-qt-arrow {
    transform: translateX(3px);
    color: #9b5cff;
}

.saved-resume-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #181a32;
}

.saved-resume-row:last-child {
    border-bottom: 0;
}

.saved-resume-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e8ecff;
}

.saved-resume-meta {
    font-size: 0.76rem;
    color: #99a1c5;
}

.saved-resume-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.saved-resume-actions form {
    margin: 0;
}

.saved-resume-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0.65rem 0;
    border-bottom: 1px solid #181a32;
    margin-bottom: 0.2rem;
}

.saved-resume-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #121429;
    border: 1px solid #282c48;
    border-radius: 0.65rem;
    padding: 0.35rem 0.6rem;
    min-width: 240px;
    flex: 1 1 280px;
}

.saved-resume-search i {
    color: #7d86b5;
    font-size: 0.8rem;
}

.saved-resume-search input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #eef0ff;
    width: 100%;
    font-size: 0.82rem;
}

.saved-resume-search input::placeholder {
    color: #747da8;
}

.saved-resume-controls .form-select {
    max-width: 130px;
    background-color: #121429;
    border-color: #282c48;
    color: #dce0fb;
}

.saved-resume-summary {
    font-size: 0.74rem;
    color: #99a1c5;
    padding: 0.45rem 0 0.25rem;
}

.saved-resume-pagination {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 0.75rem;
}

.saved-resume-pagination .btn {
    min-width: 36px;
}

@media (max-width: 575.98px) {
    .saved-resume-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .saved-resume-controls .form-select {
        max-width: none;
    }

    .saved-resume-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .saved-resume-actions {
        width: 100%;
    }

    .saved-resume-pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        max-height: none;
    }
}

/* ============================================
   RESUME BUILDER — STEP INDICATOR
   ============================================ */
.rb-main-card {
    border: 1px solid #232742;
}

.rb-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #2b3152;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, rgba(17, 21, 43, 0.96) 0%, rgba(15, 18, 38, 0.9) 100%);
}

.rb-builder-head > div:first-child {
    flex: 1 1 320px;
    min-width: 0;
}

.rb-builder-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #323861;
    color: #9ea8d7;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.rb-builder-subtitle {
    color: #98a1cd;
    font-size: 0.86rem;
    max-width: 56ch;
}

.rb-builder-actions {
    flex-shrink: 0;
}

.rb-builder-actions .btn {
    max-width: 100%;
    white-space: normal;
}

.rb-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #8892c0;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.rb-progress-meta strong {
    color: #c9d4ff;
    font-size: 0.78rem;
}

.rb-step-indicator {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.rb-step-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 58px;
}

.rb-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.rb-step-link {
    text-decoration: none;
}

.rb-side-card {
    border: 1px solid #232742;
    overflow-x: hidden;
}

.rb-live-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9b5cff;
    font-weight: 700;
}

.preview-panel {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .rb-builder-head {
        flex-direction: column;
        align-items: stretch;
    }

    .rb-builder-actions .btn {
        width: 100%;
    }
}


.rb-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.rb-template-card {
    display: block;
    cursor: pointer;
    border: 1px solid #2a2f4b;
    border-radius: 0.8rem;
    background: #121429;
    padding: 0.65rem;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rb-template-card:hover {
    border-color: #4d4e7b;
    transform: translateY(-1px);
}

.rb-template-card input {
    display: none;
}

.rb-template-card.is-selected {
    border-color: #3f77cc;
    box-shadow: 0 0 0 2px rgba(63, 119, 204, 0.25);
}

.rb-template-card.is-selected .rb-template-name {
    color: #9fc6ff;
}

.rb-template-preview {
    height: 94px;
    border-radius: 0.55rem;
    border: 1px solid #31365a;
    background: linear-gradient(180deg, #eef2ff 0%, #e7ecff 100%);
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.rb-tp-header {
    height: 7px;
    width: 58%;
    border-radius: 999px;
    background: rgba(24, 34, 67, 0.42);
}

.rb-tp-columns {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 0.28rem;
    min-height: 58px;
}

.rb-tp-col {
    border-radius: 0.34rem;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.24rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.rb-tp-col i {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(28, 36, 70, 0.42);
}

.rb-tp-col-main i:nth-child(1) {
    width: 90%;
}

.rb-tp-col-main i:nth-child(2) {
    width: 78%;
}

.rb-tp-col-main i:nth-child(3) {
    width: 62%;
}

.rb-tp-col-side i:nth-child(1) {
    width: 95%;
}

.rb-tp-col-side i:nth-child(2) {
    width: 70%;
}

.rb-template-preview span {
    display: block;
    border-radius: 999px;
    height: 6px;
    background: rgba(28, 36, 70, 0.42);
}

.rb-template-preview span:nth-child(1) {
    width: 72%;
}

.rb-template-preview span:nth-child(2) {
    width: 88%;
}

.rb-template-preview span:nth-child(3) {
    width: 54%;
}

.rb-template-preview-modern {
    background: linear-gradient(180deg, #eef2ff 0%, #dde7ff 100%);
}

.rb-template-preview-classic {
    background: linear-gradient(180deg, #fffdfa 0%, #f2ece0 100%);
}

.rb-template-preview-classic .rb-tp-col,
.rb-template-preview-traditional .rb-tp-col,
.rb-template-preview-corporate .rb-tp-col {
    background: rgba(255, 255, 255, 0.45);
}

.rb-template-preview-traditional {
    background: linear-gradient(180deg, #f7f8fa 0%, #eceff3 100%);
}

.rb-template-preview-prime_ats,
.rb-template-preview-simple_ats,
.rb-template-preview-pure_ats {
    background: linear-gradient(180deg, #f8fbff 0%, #e8f2ff 100%);
}

.rb-template-preview-specialist {
    background: linear-gradient(180deg, #f7fbff 0%, #e7f4ff 100%);
}

.rb-template-preview-prime_ats .rb-tp-columns,
.rb-template-preview-pure_ats .rb-tp-columns,
.rb-template-preview-simple_ats .rb-tp-columns {
    grid-template-columns: 1fr;
}

.rb-template-preview-prime_ats .rb-tp-col-side,
.rb-template-preview-pure_ats .rb-tp-col-side,
.rb-template-preview-simple_ats .rb-tp-col-side {
    display: none;
}

.rb-template-preview-prime_ats .rb-tp-header,
.rb-template-preview-pure_ats .rb-tp-header,
.rb-template-preview-simple_ats .rb-tp-header {
    width: 72%;
}

.rb-template-preview-prime_ats .rb-tp-col,
.rb-template-preview-pure_ats .rb-tp-col,
.rb-template-preview-simple_ats .rb-tp-col {
    border-radius: 0.2rem;
    border: 1px solid rgba(30, 64, 110, 0.2);
}

.rb-template-preview-clean {
    background: linear-gradient(180deg, #ffffff 0%, #eff2f6 100%);
}

.rb-template-preview-corporate {
    background: linear-gradient(180deg, #f7f9fc 0%, #e5eaf4 100%);
}

.rb-template-preview-two_column {
    background: linear-gradient(180deg, #eef6ff 0%, #d9e9fb 100%);
    position: relative;
}

.rb-template-preview-two_column::before {
    content: '';
    position: absolute;
    left: 34%;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: rgba(39, 74, 118, 0.28);
}

.rb-template-preview-two_column .rb-tp-columns {
    grid-template-columns: 0.75fr 1.25fr;
}

.rb-template-colors {
    margin-top: 0.55rem;
    display: flex;
    justify-content: center;
    gap: 0.32rem;
}

.rb-template-colors span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 1px rgba(17, 21, 43, 0.45);
}

.rb-template-name {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #e8edff;
    font-weight: 600;
    text-align: center;
}

.rb-template-meta {
    margin-top: 0.38rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    width: 100%;
    font-size: 0.68rem;
    color: #aeb8dd;
}

.rb-template-meta i {
    color: #83b4ff;
    font-size: 0.72rem;
}

.rb-template-card.is-selected .rb-template-meta {
    color: #d6e6ff;
}

.rb-template-hint {
    margin-top: 0.26rem;
    font-size: 0.63rem;
    color: #8692bb;
    text-align: center;
    line-height: 1.25;
}

.rb-template-card.is-selected .rb-template-hint {
    color: #abcaf6;
}

@media (max-width: 767.98px) {
    .rb-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479.98px) {
    .rb-template-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.rb-step-link:hover .rb-step-circle,
.rb-step-link:focus-visible .rb-step-circle {
    border-color: #9b5cff;
    box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.16);
}

.rb-step-link:hover .rb-step-label,
.rb-step-link:focus-visible .rb-step-label {
    color: #b794ff;
}

.rb-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1c1a38;
    border: 2px solid #2a2551;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #565e86;
}

.rb-step-wrap.rb-done .rb-step-circle {
    background: #133125;
    border-color: #23f05a;
    color: #23f05a;
}

.rb-step-wrap.rb-active .rb-step-circle {
    background: #2d1a5e;
    border-color: #9b5cff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.2);
}

.rb-step-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #565e86;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.rb-step-wrap.rb-done .rb-step-label { color: #23f05a; }
.rb-step-wrap.rb-active .rb-step-label { color: #b794ff; }

.rb-connector {
    flex: 1;
    height: 2px;
    background: #2a2551;
    margin-bottom: 1.25rem;
    min-width: 10px;
}

.rb-step-wrap.rb-done .rb-connector { background: #23f05a; }

/* Multi-entry blocks */
.entry-block {
    background: #0f1122;
    border: 1px solid #252448;
    border-radius: 0.75rem;
    padding: 1.15rem 1.15rem 0.9rem;
    margin-bottom: 0.85rem;
    position: relative;
}

.entry-block-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #565e86;
    margin-bottom: 0.85rem;
}

.entry-remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #4d3347;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    line-height: 1;
    transition: all 0.15s;
}

.entry-remove-btn:hover {
    color: #ff8899;
    background: rgba(255, 80, 112, 0.1);
}

.add-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px dashed #3a306e;
    color: #9b5cff;
    border-radius: 0.65rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s;
    margin-top: 0.1rem;
}

.add-entry-btn:hover {
    border-color: #9b5cff;
    background: rgba(155, 92, 255, 0.07);
}

/* Photo upload */
.photo-upload-zone {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.1rem;
    background: #0f1122;
    border: 2px dashed #252448;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 1.25rem;
}

.photo-upload-zone:hover {
    border-color: #9b5cff;
}

.photo-preview-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #1d1945;
    border: 2px solid #2a2551;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5278;
    font-size: 1.7rem;
}

.photo-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rb-section-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9b5cff;
    margin-bottom: 0.75rem;
}

/* Skill level pill group */
.level-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.level-pill-group input[type="radio"] { display: none; }

.level-pill-group label {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #2a2551;
    font-size: 0.74rem;
    cursor: pointer;
    color: #8a90b4;
    transition: all 0.15s;
}

.level-pill-group input[type="radio"]:checked + label {
    background: rgba(155, 92, 255, 0.18);
    border-color: #9b5cff;
    color: #c8acff;
}

/* ============================================
   APP SIDEBAR SHELL (DASHBOARD + TOOLS)
   ============================================ */
.app-shell {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    transition: gap 0.22s ease;
}

.app-shell-content {
    flex: 1;
    min-width: 0;
    transition: max-width 0.22s ease, width 0.22s ease, transform 0.22s ease;
}

.app-sidebar {
    width: 246px;
    min-width: 246px;
    background: var(--cth-surface);
    border: 1px solid var(--cth-border);
    border-radius: 1rem;
    padding: 0.9rem;
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 102px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: width 0.22s ease, min-width 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-sidebar::-webkit-scrollbar {
    display: none;
}

.app-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.app-sidebar-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.22s ease;
}

.app-sidebar-collapse,
.app-sidebar-close {
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #32295d;
    background: #161536;
    color: #bfc5e8;
    border-radius: 0.5rem;
}

.app-sidebar-collapse {
    display: inline-flex;
}

.app-sidebar-close {
    display: none;
}

.app-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #32295d;
    background: #161536;
    color: #dbe0fb;
    border-radius: 0.65rem;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: fixed;
    top: 88px;
    left: 14px;
    z-index: 1121;
}

.app-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 18, 0.58);
    z-index: 1118;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.app-sidebar-collapsed .app-sidebar {
    width: 76px;
    min-width: 76px;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

body.app-sidebar-collapsed .app-shell {
    gap: 0.9rem;
}

body.app-sidebar-collapsed .db-sidebar-profile {
    justify-content: center;
}

body.app-sidebar-collapsed .db-sidebar-profile > div,
body.app-sidebar-collapsed .db-sidebar-label,
body.app-sidebar-collapsed .db-nav-item span,
body.app-sidebar-collapsed .db-region-badge,
body.app-sidebar-collapsed .db-sidebar-divider {
    display: none;
}

body.app-sidebar-collapsed .app-sidebar-head {
    align-items: center;
    flex-direction: column;
}

body.app-sidebar-collapsed .app-sidebar-actions {
    width: 100%;
    justify-content: center;
}

body.app-sidebar-collapsed .db-user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
}

body.app-sidebar-collapsed .db-nav-item {
    justify-content: center;
    padding: 0.72rem 0.35rem;
    position: relative;
    overflow: visible;
    border: 1px solid transparent;
}

body.app-sidebar-collapsed .app-shell-content {
    transform: translateX(0);
}

body.app-sidebar-collapsed .db-nav-item i {
    margin: 0;
    width: auto;
    font-size: 1.05rem;
    transition: transform 0.16s ease, color 0.16s ease, text-shadow 0.16s ease;
}

body.app-sidebar-collapsed .db-nav-item::after {
    content: attr(data-nav-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px) scale(0.98);
    transform-origin: left center;
    background: #161536;
    border: 1px solid #32295d;
    color: #edf1ff;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 0.8rem 1.8rem rgba(3, 8, 21, 0.44);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 20;
}

body.app-sidebar-collapsed .db-nav-item:hover::after,
body.app-sidebar-collapsed .db-nav-item:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
}

body.app-sidebar-collapsed .db-nav-item:hover i,
body.app-sidebar-collapsed .db-nav-item:focus-visible i {
    transform: scale(1.08);
}

body.app-sidebar-collapsed .db-nav-item.active {
    background: linear-gradient(180deg, rgba(155, 92, 255, 0.2), rgba(155, 92, 255, 0.1));
    border-color: rgba(155, 92, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(155, 92, 255, 0.12), 0 0.35rem 1rem rgba(12, 10, 30, 0.2);
}

body.app-sidebar-collapsed .db-nav-item.active i {
    color: #c9a9ff;
    text-shadow: 0 0 14px rgba(155, 92, 255, 0.32);
}

body.app-sidebar-collapsed .db-nav-item.active::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #9b5cff, #c9a9ff);
    opacity: 0.95;
}

body.app-sidebar-collapsed .app-sidebar {
    overflow: visible;
}

body.app-sidebar-collapsed .db-nav.mt-auto {
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .app-shell {
        display: block;
        padding-top: 0.2rem;
    }

    .app-sidebar-toggle {
        display: inline-flex;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: -286px;
        height: 100vh;
        max-height: 100vh;
        width: 272px;
        min-width: 272px;
        z-index: 1120;
        border-radius: 0;
        border-right: 1px solid var(--cth-border);
        border-left: 0;
        border-top: 0;
        border-bottom: 0;
        transition: left 0.22s ease;
        padding-top: 1rem;
    }

    .app-sidebar-close {
        display: inline-flex;
    }

    .app-sidebar-collapse {
        display: none;
    }

    body.app-sidebar-open .app-sidebar {
        left: 0;
    }

    body.app-sidebar-open .app-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .dashboard-content {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell,
    .app-shell-content,
    .app-sidebar,
    .app-sidebar-actions,
    .db-nav-item,
    .db-nav-item::after {
        transition: none !important;
    }
}
