 /* ===== GLOBAL ===== */

header.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    background: linear-gradient(135deg, rgba(15, 1, 13, 0.95), rgba(19, 19, 107, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: headerSlideDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* {
    margin: 0;
    padding: 0;
    font-family: Assistant, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
user agent stylesheet
header {
    display: block;
    unicode-bidi: isolate;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-image: url(back90.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #cccccc;
    min-height: 100vh;
    height: 100%;
}

/* Final responsive guardrails for Make CV page */
@media (max-width: 860px) {
    .modify-cv-section {
        padding: 88px 0.75rem 2rem !important;
    }

    .modify-cv-layout {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
    }

    .modify-cv-sidebar,
    .preview-panel {
        position: static !important;
        top: auto !important;
    }

    .modify-cv-title {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .section-row {
        grid-template-columns: 1fr !important;
    }

    .modify-cv-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modify-cv-actions .btn {
        width: 100%;
        min-height: 46px;
    }

    .template-preview-frame {
        height: 60vh;
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    header.navbar {
        height: 74px !important;
        padding: 0 12px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
    }

    .logo {
        margin: 0 !important;
    }

    .logo-text {
        width: 215px !important;
        height: 64px !important;
        margin: 0 !important;
        object-fit: contain;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.35);
        margin-left: auto;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        background: #ffffff;
    }

    .nav-actions {
        display: none !important;
    }

    .navbar .nav-links {
        position: fixed !important;
        top: 74px !important;
        left: 0;
        right: 0;
        min-width: 0 !important;
        width: 100%;
        padding: 0.7rem 0.9rem 1rem;
        display: none !important;
        flex-direction: column;
        gap: 0.4rem;
        background: rgba(5, 10, 25, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 12px 12px;
        z-index: 1001;
    }

    .navbar.nav-open .nav-links {
        display: flex !important;
    }

    .navbar .nav-links .nav-link {
        width: 100%;
        text-align: left;
        padding: 12px 10px !important;
        font-size: 13px !important;
        border-radius: 10px;
    }
}

/* Match mobile navbar sizing/spacing with Solutions page */
@media (max-width: 768px) {
    header.navbar {
        height: 80px !important;
        padding: 0 14px 0 10px !important;
        background: #260104;
    }

    .navbar .left {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 0 1 auto;
    }

    .navbar .logo {
        margin: 0 !important;
    }

    .navbar .logo-text {
        width: 136px !important;
        height: auto !important;
        margin: 0 !important;
    }

    .navbar .mobile-menu-toggle {
        display: inline-flex !important;
        margin-left: auto;
        z-index: 1002;
        flex: 0 0 auto;
        width: 92px;
        height: 38px;
        border-radius: 10px;
    }

    .navbar .nav-links {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 10px;
        right: 10px;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-width: 0 !important;
        width: auto;
        padding: 16px 18px 8px;
        border-radius: 18px 18px 12px 12px;
        background: #0b1436;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(59, 130, 246, 0.3);
        z-index: 1001;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .navbar .nav-links a {
        padding: 12px 0 !important;
        font-size: 15px !important;
        text-align: left;
        border-bottom: none;
        color: #f8fafc !important;
    }

    .navbar .nav-actions {
        position: static !important;
        display: flex !important;
        min-width: 0;
        margin: 0 0 0 8px;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        z-index: 1002;
    }

    .navbar.nav-open .nav-links {
        display: flex !important;
    }

    .navbar.nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar.nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .navbar .logo-text {
        width: 124px !important;
    }
}

.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    padding: 1rem;
}

.login-modal {
    width: min(520px, 100%);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1rem;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.35);
}

.login-modal h3 {
    margin: 0 0 0.45rem;
    color: #f8fafc;
}

.login-modal p {
    margin: 0 0 1rem;
    color: #cbd5e1;
}

.login-modal-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.login-modal .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
}

.login-modal .btn-primary-link {
    background: #3b82f6;
    color: #ffffff;
}

.login-modal .btn-secondary-link {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.45);
}

.linkedin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.linkedin-modal {
    width: min(880px, 100%);
    background: #0f1b3d;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.4);
    color: #e2e8f0;
}

.linkedin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.linkedin-modal-close {
    background: transparent;
    border: 0;
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
}

.linkedin-modal-body {
    padding: 1rem;
}

.linkedin-instructions {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.linkedin-instructions ol {
    margin: 0.35rem 0 0 1rem;
}

.linkedin-paste-area {
    width: 100%;
    min-height: 230px;
}

.linkedin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.linkedin-modal-footer-between {
    justify-content: space-between;
}

.linkedin-parse-error {
    margin-top: 0.55rem;
    color: #fca5a5;
    font-size: 0.92rem;
}

 body {
    font-family: 'Inter', sans-serif;
     background-image: url('back90.avif');
     background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: keeps image fixed when scrolling */
    background-color: #cccccc; /* Optional: a fallback color if the image doesn't load */
    min-height: 100vh; 
    height : 100%;
    margin: 0;
}
header.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    background: linear-gradient(135deg, rgba(15, 1, 13, 0.95), rgba(19, 19, 107, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: headerSlideDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.left {
    display: flex;
    align-items: center;
}

.logo {
    margin-left: 2px;
    margin-top: 30px;
}

.logo-text {  
    margin: 30px;
    height: 300px;
    width: 300px;
    transition: transform 0.4s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo:hover .logo-text {
    transform: scale(1.05) rotate(5deg);
}

.nav-links {
    display: flex;
    min-width: 500px;
    justify-content: center;
    gap: 0;
}

.nav-links a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 24px 2px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: #f0fdf4;
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(29, 78, 216, 0.28));
    border: 1px solid rgba(96, 165, 250, 0.55);
}

.nav-links a.active::after {
    width: 86%;
    height: 3px;
    background: #3b82f6;
    border-radius: 999px;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}



@keyframes headerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes textShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(205, 229, 239, 0.5);
    }
    50% { 
        text-shadow: 0 0 40px rgba(147, 197, 253, 0.8), 0 0 60px rgba(96, 165, 250, 0.4);
    }
}
.logo-text {
    margin: 30px;
    height: 300px;
    width: 300px;
}
.logo-text {
    margin: 30px;
    height: 300px;
    width: 300px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #ffffff !important; /* Force white text, override any black */
}

.section-input,
.section-textarea {
    color: #f6fbff !important; /* Ensure input text white */
}

.section-input::placeholder,
.section-textarea::placeholder {
    color: rgba(255,255,255,0.4) !important;
}
/* ===== BIG CTA BUTTONS ===== */
.modify-cv-actions {
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.6rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 65px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 280px;
}

/* Primary buttons (Download / AI) */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: white;
    box-shadow: 0 8px 25px rgba(124,58,237,0.4);
}

/* hover effect */
.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(124,58,237,0.6);
}

/* click effect */
.btn-primary:active {
    transform: scale(0.96);
}

/* Secondary (Save Draft) */
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}
/* ===== NAVBAR PREMIUM STYLE ===== */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 2rem;

    background: linear-gradient(135deg, rgba(5,10,25,0.95), rgba(10,20,50,0.9));
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);

    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== LOGO FIX ===== */
.logo img {
    
    object-fit: contain;

    filter: brightness(1.3) contrast(1.2);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    color: #cbd5f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-link.active {
    color: #60a5fa;
}

/* Animated underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== LOGIN BUTTON (IMPORTANT) ===== */
.nav-actions a,
#auth-nav-slot a {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;

    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;

    transition: all 0.25s ease;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.profile-display-name {
    color: #eff6ff;
    font-weight: 600;
    max-width: 90px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    color: white;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(8, 27, 64, 0.28);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 180px;
    display: none;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #0f2d66 0%, #3a155b 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
    z-index: 50;
}

.profile-menu.open .profile-dropdown {
    display: block;
}

.profile-name {
    color: #eff6ff;
    font-weight: 600;
    margin-bottom: 12px;
    word-break: break-word;
}

.profile-logout {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 600;
}

.profile-logout:hover {
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    #auth-nav-slot {
        width: auto;
        display: flex;
        align-items: center;
    }

    .profile-trigger {
        flex-direction: row;
        gap: 8px;
        padding: 0;
    }

    .profile-display-name {
        display: none;
    }

    .profile-avatar {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .profile-dropdown {
        top: calc(100% + 10px);
        right: 0;
        min-width: 150px;
    }
}

.nav-actions a:hover,
#auth-nav-slot a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124,58,237,0.4);
}

/* ===== MOBILE ===== */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
        background: white;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        flex-direction: column;
        background: rgba(10,20,40,0.95);
        padding: 1rem;
        border-radius: 12px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}
/* ===== LAYOUT ===== */
.modify-cv-section {
    padding: 2rem 1rem 4rem;
}

.modify-cv-layout {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: auto;
}

/* ===== SIDEBAR ===== */
.modify-cv-sidebar {
    position: sticky;
    top: 110px;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20,30,60,0.9), rgba(40,20,80,0.8));
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.sidebar-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #cfe4ff;
}

.sidebar-nav-btn {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #eaf2ff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar-nav-btn:hover,
.sidebar-nav-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateX(4px);
}

/* ===== MAIN ===== */
.modify-cv-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== HEADER CARD ===== */
.modify-cv-header-card {
    padding: 1.2rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20,30,60,0.8), rgba(40,20,80,0.7));
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.modify-cv-title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.modify-cv-subtitle {
    color: #bcd3ff;
}

/* ===== SECTION CARDS ===== */
.section-card {
    background: rgba(255,255,255,0.04);
    padding: 1rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ===== INPUT GRID ===== */
.section-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

/* ===== INPUTS ===== */
.section-input,
.section-textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.section-input::placeholder,
.section-textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.section-input:focus,
.section-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(96,165,250,0.5);
    outline: none;
}

/* ===== TEXTAREA ===== */
.section-textarea {
    min-height: 90px;
    resize: vertical;
}

/* ===== ENTRY CARD ===== */
.entry-card {
    background: rgba(255,255,255,0.05);
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.7rem;
}

/* ===== BUTTONS ===== */
.small-btn {
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.small-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* ===== ACTION BUTTONS ===== */
.modify-cv-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ===== PREVIEW PANEL ===== */
.preview-panel {
    position: sticky;
    top: 110px;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20,30,60,0.9), rgba(40,20,80,0.8));
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.preview-title {
    margin-bottom: 0.3rem;
}

.preview-subtitle {
    color: #bcd3ff;
    margin-bottom: 0.8rem;
}

.template-preview-frame {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    border: none;
    background: white;
}

.preview-empty {
    padding: 1rem;
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.2);
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .modify-cv-layout {
        grid-template-columns: 220px 1fr;
    }

    .preview-panel {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .modify-cv-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}   
.modify-cv-section {

    .btn {
        max-width: none;
    padding: 2rem 0 4rem;

    .modify-cv-layout {
        grid-template-columns: 1fr;
}
    }
}
.modify-cv-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.modify-cv-sidebar {
    position: sticky;
    top: 115px;
    background: linear-gradient(145deg, rgba(5, 20, 48, 0.88), rgba(40, 16, 68, 0.82));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 1rem;
}

.sidebar-title {
    color: #e8f3ff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sidebar-nav-btn {
    width: 100%;
    margin-bottom: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #eef6ff;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar-nav-btn:hover,
.sidebar-nav-btn.active {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(139, 92, 246, 0.4));
    border-color: rgba(191, 219, 254, 0.75);
}

.modify-cv-main {
    min-width: 0;
}

.modify-cv-header-card {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(7, 20, 48, 0.8), rgba(39, 16, 70, 0.7));
    padding: 1rem 1.25rem;
}

.modify-cv-title {
    font-size: 2rem;
    color: #f3f9ff;
}

.modify-cv-subtitle {
    color: #d8e9ff;
}

.section-card {
    margin-bottom: 1rem;
}

.section-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.section-row > div:last-child:has(textarea) {
    grid-column: 1 / -1;
}

.section-input,
.section-textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(3, 8, 24, 0.75);
    color: #f6fbff;
    padding: 0.7rem 0.75rem;
}

.section-textarea {
    min-height: 92px;
    resize: vertical;
}

.entry-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
}

.section-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.small-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(7, 24, 52, 0.85);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.small-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.section-input,
.section-textarea,
.sidebar-nav-btn,
.small-btn,
.section-controls button {
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.sidebar-nav-btn {
    pointer-events: auto !important;
}

.preview-panel {
    position: sticky;
    top: 115px;
}

.preview-title {
    color: #f8fbff;
    margin-bottom: 0.35rem;
}

.preview-subtitle {
    color: #d8e9ff;
    margin-bottom: 0.75rem;
}

.template-preview-frame {
    width: 100%;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #ffffff;
    display: none;
}

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

.preview-empty {
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    padding: 1rem;
    color: #cfe4ff;
}

/* Desktop: 2 columns */
.template-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Mobile: 1 column */
@media (max-width: 860px) {
    .template-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.template-card-mini {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    height: 300px;
    width: 200px;
    overflow: hidden;
    margin: 0.5rem;
}

.template-card-mini:hover {
    transform: translateY(-4px);
    border-color: rgba(186, 230, 253, 0.7);
}

.template-card-mini.selected {
    transform: scale(1.02);
    border-color: #93c5fd;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.35);
}

.template-thumb {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: 320px;
    aspect-ratio: 3/5;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
    height: 100%;
}
.template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: white;
}

.template-name {
    display: none;
}

.modify-cv-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

@media (max-width: 1280px) {
    .modify-cv-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    .preview-panel {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 860px) {
    .modify-cv-layout {
        grid-template-columns: 1fr;
    }
    .modify-cv-sidebar {
        position: static;
    }
    .section-row {
        grid-template-columns: 1fr;
    }
}

.cv-import-card {
    margin-bottom: 1rem;
    border: 1px solid rgba(143, 190, 255, 0.35);
    background:
      radial-gradient(1200px 300px at -20% -30%, rgba(59, 130, 246, 0.16), transparent 40%),
      radial-gradient(1000px 280px at 130% -40%, rgba(139, 92, 246, 0.16), transparent 42%),
      linear-gradient(135deg, rgba(8, 24, 52, 0.86), rgba(35, 17, 63, 0.8));
    box-shadow: 0 10px 24px rgba(15, 30, 60, 0.28);
    padding: 1rem 1.05rem;
    border-radius: 14px;
}

.cv-import-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.cv-import-row .btn {
    white-space: nowrap;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
    box-shadow: 0 8px 20px rgba(67, 56, 202, 0.28);
}

.cv-import-row .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

#existing-cv-file.section-input[type="file"] {
    min-height: 48px;
    padding: 0.45rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(186, 230, 253, 0.32);
    background: rgba(2, 6, 23, 0.58);
}

#existing-cv-file.section-input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    border: 1px solid rgba(191, 219, 254, 0.4);
    background: rgba(30, 64, 175, 0.35);
    color: #eff6ff;
    border-radius: 9px;
    padding: 0.42rem 0.75rem;
    cursor: pointer;
}

.cv-import-status {
    margin-top: 0.65rem;
    min-height: 1.4rem;
    color: #cfe4ff;
    font-size: 0.92rem;
    background: rgba(15, 23, 42, 0.34);
    border: 1px dashed rgba(191, 219, 254, 0.28);
    border-radius: 10px;
    padding: 0.42rem 0.58rem;
}

.cv-import-text-block {
    margin-top: 0.9rem;
}

#existing-cv-text.section-textarea {
    width: 100%;
    min-height: 170px;
    resize: vertical;
}

.manual-cv-description {
    margin-bottom: 0.8rem;
    color: #d7e7ff;
    font-size: 0.93rem;
}

@media (max-width: 860px) {
    .cv-import-row {
        grid-template-columns: 1fr;
    }
}

.footer {
    background: linear-gradient(135deg, rgba(15, 1, 13, 0.95), rgba(19, 19, 107, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, #1d4ed8, #3b82f6, transparent);
    animation: footerShine 3s linear infinite;
}

@keyframes footerShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #5aa8ce, #93a4d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #8eafea, #5b8ff0);
    border-radius: 1px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 4px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0f022d, #4ea8dc);
    transition: width 0.4s ease;
    border-radius: 1px;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #f0fdf4;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}


header.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    background: linear-gradient(135deg, rgba(15, 1, 13, 0.95), rgba(19, 19, 107, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 100px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: headerSlideDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* {
    margin: 0;
    padding: 0;
    font-family: Assistant, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
user agent stylesheet
header {
    display: block;
    unicode-bidi: isolate;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-image: url(back90.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #cccccc;
    min-height: 100vh;
    height: 100%;
}
