/* CV Builder Pro - SaaS Premium Glassmorphic Design System & Stylesheet */

:root {
    /* Premium Obsidian, Indigo, Purple & Neon Cyan Palette */
    --bg-dark: #080b11;
    --card-bg: rgba(13, 18, 30, 0.45);
    --card-glass: rgba(17, 24, 39, 0.55);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-glow: rgba(6, 182, 212, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;

    /* Dashboard UI Specifics */
    --dash-sidebar: rgba(10, 15, 26, 0.75);
    --dash-border: rgba(255, 255, 255, 0.05);
    --dash-text-primary: #f8fafc;
    --dash-text-secondary: #94a3b8;
    --dash-accent: #06b6d4;
    --dash-accent-glow: rgba(6, 182, 212, 0.15);
    --dash-card: rgba(15, 23, 42, 0.45);
    
    /* Live CV Variables */
    --cv-primary: #0f172a;
    --cv-secondary: #334155;
    --cv-accent: #2563eb;
    --cv-text: #334155;
    --cv-font: 'Tajawal', sans-serif;
    --cv-margin: 20mm;
}

/* Base resets & smooth behaviors */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', 'Outfit', sans-serif;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   LANDING PAGE NEW PREMIUM LAYOUT & SECTIONS
   ========================================== */
.landing-body {
    display: block;
    width: 100%;
    overflow-y: auto;
    background-color: var(--bg-dark);
}

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(8, 11, 17, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.landing-logo {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 2px 10px rgba(6, 182, 212, 0.25));
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.landing-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.landing-nav a:hover {
    color: var(--accent-cyan);
}

.landing-auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hero Section Styles */
.hero-section {
    max-width: 1200px;
    margin: 120px auto 3rem auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: white;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin-top: 1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}

.metric-card h4 {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.metric-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Interactive Preview Card Container */
.hero-mockup {
    display: flex;
    justify-content: center;
    width: 100%;
}

.interactive-preview-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(99, 102, 241, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-title-bar {
    background: #0b0f19;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title-bar span:not(.preview-mode-title) {
    font-size: 0.75rem;
}

.preview-mode-title {
    margin-right: auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: bold;
}

.preview-controls-overlay {
    background: rgba(15, 23, 42, 0.9);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.75rem;
}

.control-row input {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    outline: none;
}

.control-row input:focus {
    border-color: var(--accent-cyan);
}

.control-row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.swatches-group, .layout-selectors {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.swatch-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: bold;
    margin-left: 0.25rem;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-swatch.active {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.sw-blue { background: #2563eb; }
.sw-teal { background: #0d9488; }
.sw-purple { background: #7c3aed; }
.sw-slate { background: #334155; }

.btn-layout-sel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
}

.btn-layout-sel.active {
    background: var(--accent-cyan);
    color: #080b11;
    border-color: var(--accent-cyan);
}

.mini-a4-wrapper {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background: #090d16;
}

.mini-a4-sheet {
    width: 100%;
    max-width: 360px;
    height: 480px;
    background: white;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 1.5rem;
    font-size: 0.7rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.mini-header {
    text-align: center;
    border-bottom: 2px solid var(--cv-theme-color, #2563eb);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.mini-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
}

.mini-title {
    font-size: 0.75rem;
    color: var(--cv-theme-color, #2563eb);
    font-weight: bold;
    margin-top: 1px;
}

.mini-contact {
    font-size: 0.5rem;
    color: #64748b;
    margin-top: 3px;
}

.mini-section {
    margin-bottom: 10px;
}

.mini-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--cv-theme-color, #2563eb);
    border-bottom: 1px solid var(--cv-theme-color, #2563eb);
    padding-bottom: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mini-entry {
    margin-bottom: 6px;
}

.mini-entry-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    font-weight: bold;
    color: #1e293b;
}

.mini-entry-text {
    font-size: 0.52rem;
    line-height: 1.4;
    color: #475569;
    margin-top: 1px;
}

/* Specific templates modifications in mockup */
.mini-a4-sheet.template-creative .mini-header {
    background: linear-gradient(135deg, var(--cv-theme-color, #2563eb), #4f46e5);
    color: white;
    padding: 1rem;
    margin: -1.5rem -1.5rem 10px -1.5rem;
    border-bottom: none;
}

.mini-a4-sheet.template-creative .mini-name {
    color: white;
}

.mini-a4-sheet.template-creative .mini-title {
    color: rgba(255, 255, 255, 0.95);
}

.mini-a4-sheet.template-creative .mini-contact {
    color: rgba(255, 255, 255, 0.8);
}

.mini-a4-sheet.template-creative .mini-section-title {
    background: rgba(37, 99, 235, 0.08);
    border-right: 3px solid var(--cv-theme-color, #2563eb);
    border-bottom: none;
    padding: 2px 5px;
}

/* Features grid styles */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.section-header-landing {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title-landing {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.section-title-landing span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle-landing {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-align: right;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.06);
}

.feat-icon {
    font-size: 2.2rem;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.88rem;
}

/* FAQ accordion styling */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-q {
    padding: 1.25rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.02rem;
    color: white;
}

.faq-a {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.faq-item.active .faq-a {
    display: block;
    margin-top: 0.5rem;
}

/* Pricing Grid Styles */
.pricing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
}

.premium-plan {
    border-color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(99, 102, 241, 0.05)), var(--card-bg);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.12);
    position: relative;
}

.plan-tag {
    position: absolute;
    top: 15px;
    left: 20px;
    background: var(--accent-cyan);
    color: #080b11;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.price-header {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.price-amt {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.price-amt sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: normal;
    margin-right: 0.25rem;
}

.price-list {
    list-style: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.price-list li::before {
    content: '✓  ';
    color: var(--success);
    font-weight: bold;
    margin-left: 0.25rem;
}

/* Premium footer branding and rights */
.landing-footer {
    background: rgba(3, 7, 18, 0.6);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: white;
}

.footer-copyright {
    font-size: 0.85rem;
}

.footer-rights {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: bold;
}

.rights-icon {
    font-size: 1.1rem;
}

.rights-link {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-cyan);
    transition: all 0.25s ease;
    padding-bottom: 1px;
}

.rights-link:hover {
    color: white;
    border-bottom-color: white;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

@media (max-width: 768px) {
    .landing-header {
        height: 70px;
    }
    .landing-nav {
        display: none;
    }
    .landing-nav-container {
        padding: 0 1rem;
    }
    .hero-section {
        grid-template-columns: 1fr;
        margin-top: 100px;
        gap: 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   AUTHENTICATION INTERFACES & MODALS
   ========================================== */
.auth-page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    text-align: center;
    position: relative;
}

.auth-logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.auth-tab.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-blue);
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: right;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    outline: none;
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--dash-accent-glow);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   DASHBOARD PANELS & SYSTEM WORKSPACE
   ========================================== */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: var(--dash-sidebar);
    border-left: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
    font-size: 1.9rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 2px 10px rgba(6, 182, 212, 0.2));
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
    background: rgba(6, 182, 212, 0.06);
    color: var(--text-primary);
    border-color: rgba(6, 182, 212, 0.12);
    border-right: 4px solid var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

.user-profile {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
}

.user-info {
    font-size: 0.85rem;
}

.user-info p {
    font-weight: 700;
}

.user-info a {
    color: var(--danger);
    font-weight: bold;
    text-decoration: none;
}

/* Main Workspace */
.main-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.topbar {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(3, 7, 18, 0.4);
    backdrop-filter: blur(10px);
}

.topbar h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    gap: 1rem;
}

.workspace-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #4f46e5);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dashboard UI Layout */
.dashboard-home {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.saved-cvs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cv-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.cv-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ==========================================
   CANVA-STYLE TABBED EDITOR & SLIDERS
   ========================================== */
.editor-panel {
    flex: 1.1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.15);
}

/* Editor Mode Switcher (Quick vs Pro) */
.editor-mode-switcher {
    display: flex;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 12px;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.mode-switch-btn {
    flex: 1;
    padding: 0.65rem;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    direction: rtl;
}

.mode-switch-btn span {
    display: inline-block;
    direction: rtl;
}

.mode-switch-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #080b11;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.mode-switch-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.editor-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Editor Tabs Selection Bar */
.editor-tabs-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    scrollbar-width: none; /* Hide scrollbar for clean design */
    flex-shrink: 0;
}

.editor-tabs-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    direction: rtl;
    flex-shrink: 0;
}

.tab-btn span {
    display: inline-block;
    direction: rtl;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), #4f46e5);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* Editor Tab Contents */
.editor-tab-content {
    display: none; /* Hide by default */
    animation: fadeIn 0.3s ease;
}

.editor-tab-content.active {
    display: block; /* Show active */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapsible Card Container */
.collapsible-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* Header */
.collapsible-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    color: var(--text-primary);
}

.collapsible-card-header .title-summary {
    font-size: 0.95rem;
    color: white;
}

.collapsible-card-header .arrow {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

/* Collapsed state */
.collapsible-card.collapsed .collapsible-card-body {
    display: none;
}

.collapsible-card.collapsed .arrow {
    transform: rotate(-90deg); /* Arrow points sideways when collapsed */
}

/* Body */
.collapsible-card-body {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    position: relative; /* Crucial for absolute positioning of remove button */
}

/* Remove button styling inside collapsible card body */
.btn-remove {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

/* Button Add Item Styling */
.btn-add {
    background: rgba(6, 182, 212, 0.06);
    border: 1px dashed var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-add:hover {
    background: rgba(6, 182, 212, 0.12);
    color: white;
    border-style: solid;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 1.15rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==========================================
   LIVE PREVIEW CANVAS & RESUME SHEETS
   ========================================== */
.preview-panel {
    flex: 1.2;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.preview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
}

.preview-controls select, .preview-controls input[type="color"] {
    background: #1f2937;
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    outline: none;
}

/* A4 Sheet Dimensions & Ratios */
.a4-preview-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.a4-preview {
    width: 794px; /* A4 Width at 96dpi (210mm) */
    min-height: 1123px; /* A4 Height at 96dpi (297mm) */
    background: #ffffff;
    color: var(--cv-text);
    padding: var(--cv-margin);
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    font-family: var(--cv-font);
    font-size: 10pt;
    position: relative;
    box-sizing: border-box;
    text-align: right;
}

/* Resume Templates */
.cv-header {
    border-bottom: 2px solid var(--cv-primary);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.cv-name {
    font-size: 20pt;
    font-weight: 800;
    color: var(--cv-primary);
    line-height: 1.2;
}

.cv-title {
    font-size: 12pt;
    font-weight: 700;
    color: var(--cv-accent);
    margin-top: 3px;
}

.cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 9pt;
    color: var(--cv-secondary);
}

.cv-section {
    margin-bottom: 15px;
}

.cv-section-title {
    font-size: 11pt;
    font-weight: 800;
    color: var(--cv-primary);
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cv-entry {
    margin-bottom: 10px;
}

.cv-entry-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 10pt;
    color: var(--cv-primary);
}

.cv-sub-header {
    font-size: 9pt;
    font-style: italic;
    color: var(--cv-secondary);
    margin-bottom: 4px;
}

.cv-bullets {
    font-size: 9pt;
}

.a4-preview.rtl .cv-bullets {
    margin-right: 18px;
    margin-left: 0;
}

.a4-preview:not(.rtl) .cv-bullets {
    margin-left: 18px;
    margin-right: 0;
}

.cv-bullets li {
    margin-bottom: 3px;
    text-align: justify;
}

/* Template Variant 2: Modern Columns (Executive Sapphire) */
.template-modern .modern-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin-top: 15px;
}

.template-modern .modern-table td {
    vertical-align: top;
    border: none;
    padding: 0;
}

.template-modern .modern-sidebar {
    width: 30%;
    padding-right: 20px;
    border-right: 1.5px solid #cbd5e1;
}

.template-modern .modern-main {
    width: 70%;
    padding-left: 20px;
}

.template-modern .modern-sidebar-rtl {
    width: 30%;
    padding-left: 20px;
    border-left: 1.5px solid #cbd5e1;
}

.template-modern .modern-main-rtl {
    width: 70%;
    padding-right: 20px;
}

.template-modern .cv-header {
    border-bottom: 3px double var(--cv-primary);
    padding-bottom: 20px;
    margin-bottom: 25px;
    text-align: right;
}

.template-modern.rtl .cv-header {
    text-align: right;
}

.template-modern:not(.rtl) .cv-header {
    text-align: left;
}

.template-modern .cv-name {
    font-size: 24pt;
    font-weight: 800;
    color: var(--cv-primary);
    letter-spacing: -0.5px;
}

.template-modern .cv-title {
    font-size: 13pt;
    color: var(--cv-secondary);
    font-weight: 600;
    margin-top: 5px;
}

.template-modern .cv-section-title {
    font-size: 11pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cv-primary);
    border-bottom: 2px solid var(--cv-primary);
    padding-bottom: 4px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Template Variant 3: Creative Banner (Creative Aurora) */
.template-creative .creative-header {
    background: linear-gradient(135deg, var(--cv-primary), var(--cv-accent));
    color: white;
    padding: 35px 30px;
    margin: calc(var(--cv-margin) * -1) calc(var(--cv-margin) * -1) 25px calc(var(--cv-margin) * -1);
    text-align: center;
    border-bottom: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.template-creative .cv-name {
    color: white;
    font-size: 24pt;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.template-creative .cv-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13pt;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.template-creative .cv-contact {
    color: rgba(255, 255, 255, 0.85);
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    font-size: 9.5pt;
}

.template-creative .cv-contact span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.template-creative .cv-section-title {
    background: rgba(6, 182, 212, 0.05);
    border-right: 4px solid var(--cv-primary);
    padding: 6px 15px;
    border-bottom: none;
    border-radius: 0 6px 6px 0;
    color: var(--cv-primary);
    font-weight: 700;
    font-size: 11pt;
    margin-bottom: 15px;
}

.template-creative:not(.rtl) .cv-section-title {
    border-right: none;
    border-left: 4px solid var(--cv-primary);
    border-radius: 6px 0 0 6px;
}

/* Template Variant 4: Slate Elegance */
.template-slate .cv-header {
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.template-slate .cv-name {
    font-size: 26pt;
    letter-spacing: 1px;
    font-weight: 900;
    color: var(--cv-primary);
    text-transform: uppercase;
}

.template-slate .cv-title {
    font-size: 12pt;
    color: var(--cv-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 6px;
}

.template-slate .cv-contact {
    justify-content: center;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    margin-top: 15px;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 9.5pt;
    color: var(--cv-secondary);
}

.template-slate .cv-section-title {
    text-align: center;
    border-bottom: 1px solid #cbd5e1;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 18px;
    font-weight: 800;
    color: var(--cv-primary);
    font-size: 11.5pt;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.template-slate .cv-section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--cv-primary);
}

/* ==========================================
   MOBILE VIEWPORTS RESPONSIVE Breakpoints (Under 768px)
   ========================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.2s ease;
}
.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 0px;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .menu-toggle-btn {
        display: flex;
    }
    
    /* Sliding Navigation Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        border-left: 1px solid var(--border-color);
        border-top: none;
        background: rgba(8, 11, 17, 0.85);
        backdrop-filter: blur(30px);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        display: flex;
        flex-direction: column;
        padding: 2.5rem 1.5rem;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-logo {
        display: block !important;
        margin-bottom: 2rem;
    }
    
    .user-profile {
        display: flex !important;
        margin-top: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .nav-item {
        width: 100%;
        padding: 0.85rem 1.25rem;
        border-right: none;
        border-bottom: none;
        font-size: 0.95rem;
    }
    
    .nav-item.active {
        border-right: 4px solid var(--accent-cyan);
        border-bottom: none;
        background: rgba(6, 182, 212, 0.06);
    }
    
    /* Topbar mobile */
    .topbar {
        padding: 0 1.25rem;
        height: 65px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .topbar h2 {
        font-size: 1.15rem;
    }
    
    .topbar-actions .btn {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Content Stacking */
    .workspace-content {
        flex-direction: column;
        height: calc(100vh - 65px);
        overflow: hidden;
    }
    
    .editor-panel, .preview-panel {
        width: 100%;
        flex: 1;
        height: 100%;
        overflow-y: auto;
        padding: 1.25rem;
    }

    .editor-tabs-bar {
        margin: -1.25rem -1.25rem 1rem -1.25rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .saved-cvs-grid {
        grid-template-columns: 1fr;
    }
    
    /* Dynamic scaling wrapper */
    .a4-preview-wrapper {
        overflow: visible;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
    
    .a4-preview {
        margin-bottom: 60px;
    }
    
    /* Premium Mobile Floating Preview Switcher Pill */
    .mobile-toggle-btn {
        display: flex !important;
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        background: rgba(13, 18, 30, 0.85);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(6, 182, 212, 0.3);
        border-radius: 30px;
        padding: 0.75rem 1.75rem;
        justify-content: center;
        align-items: center;
        gap: 0.65rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
        cursor: pointer;
        color: white;
        font-size: 0.95rem;
        font-weight: bold;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
    }
    .mobile-toggle-btn:hover {
        border-color: var(--accent-cyan);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.35);
    }
    .mobile-toggle-btn:active {
        transform: translateX(-50%) scale(0.95);
    }

    /* Landing Page Responsive rules */
    .hero-section {
        grid-template-columns: 1fr;
        margin-top: 100px;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .landing-nav-container {
        padding: 0 1.25rem;
    }
    .landing-nav a {
        display: none;
    }
    
    /* Split Panels View states for Mobile */
    .app-container.show-preview .editor-panel {
        display: none !important;
    }
    .app-container.show-preview .preview-panel {
        display: flex !important;
    }
    .app-container:not(.show-preview) .preview-panel {
        display: none !important;
    }
}

/* ==========================================
   TOAST NOTIFICATION SYSTEM
   ========================================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

.toast {
    background: rgba(31, 41, 55, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    border-right: 4px solid var(--accent-blue);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    text-align: right;
    direction: rtl;
}

.toast-success {
    border-right-color: var(--success);
}

.toast-danger {
    border-right-color: var(--danger);
}

.toast-info {
    border-right-color: var(--accent-blue);
}

.toast-body {
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   CARD ACTION DROPDOWNS
   ========================================== */
.card-menu-container {
    position: absolute;
    top: 15px;
    left: 15px;
}

.card-menu-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.card-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.card-dropdown-menu {
    position: absolute;
    top: 38px;
    left: 0;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.card-dropdown-menu.active {
    display: flex;
}

.card-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.card-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* ==========================================
   DASHBOARD SEARCH & FILTERS
   ========================================== */
.dashboard-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 16px;
}

.search-box-wrapper {
    flex: 1;
    max-width: 400px;
    min-width: 260px;
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-input {
    width: 100%;
    padding: 0.65rem 2.25rem 0.65rem 1rem;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: var(--accent-blue);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Lang Badges for CV Cards */
.lang-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: bold;
}

/* ==========================================
   ACCOUNT SETTINGS WORKSPACE
   ========================================== */
.settings-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 650px;
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* ==========================================
   PRINT CSS OVERRIDES
   ========================================== */
@media print {
    body {
        background: none !important;
        color: black !important;
        padding-bottom: 0 !important;
    }
    .sidebar, .topbar, .editor-panel, .preview-controls, .no-print, .mobile-toggle-btn {
        display: none !important;
    }
    .main-workspace {
        height: auto !important;
        overflow: visible !important;
    }
    .preview-panel {
        padding: 0 !important;
        background: none !important;
        overflow: visible !important;
        height: auto !important;
    }
    .a4-preview {
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: auto !important;
        transform: none !important;
    }
}

/* ==========================================
   ATS SCORER WIDGET
   ========================================== */
.ats-scorer-widget {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(17, 24, 39, 0.5));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}
.ats-score-circle {
    position: relative;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-blue) 0%, rgba(255,255,255,0.05) 0%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.ats-score-circle:before {
    content: "";
    position: absolute;
    width: 63px;
    height: 63px;
    border-radius: 50%;
    background: #111827;
}
.ats-score-text {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
}
.ats-scorer-feedback {
    font-size: 0.85rem;
}
.ats-feedback-title {
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}
.ats-feedback-list {
    color: var(--text-secondary);
    font-size: 0.8rem;
    list-style: none;
    padding-right: 0;
}
.ats-feedback-list li:before {
    content: "• ";
    color: var(--danger);
}

/* ==========================================
   SECTION ORDERING UI
   ========================================== */
.order-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-buttons {
    display: flex;
    gap: 0.25rem;
}
.order-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
}
.order-btn:hover {
    background: var(--accent-blue);
}

/* ==========================================
   SWITCH TOGGLE BUTTON & SHARE LINKS
   ========================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 22px;
    border: 1px solid var(--border-color);
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #94a3b8;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--success);
}
input:checked + .slider:before {
    transform: translateX(22px);
    background-color: white;
}
.share-link-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.share-link-text {
    color: var(--text-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    text-align: left;
    direction: ltr;
}
.copy-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
}
.copy-btn:hover {
    color: white;
}
.analytics-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
.analytics-pill:hover {
    background: rgba(59, 130, 246, 0.25);
}

/* ==========================================
   ANALYTICS MODAL OVERLAY
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    position: relative;
    direction: rtl;
    text-align: right;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.modal-stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}
.modal-stat-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.modal-stat-val {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-blue);
}
.modal-sources-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    font-size: 0.85rem;
}
.source-name {
    color: var(--text-primary);
}
.source-count {
    background: rgba(255,255,255,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
}

/* ==========================================
   AI CONTENT WRITER WIDGET
   ========================================== */
.ai-assistant-wrapper {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.45), rgba(17, 24, 39, 0.45));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    text-align: right;
}
.ai-role-select-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.ai-role-select {
    flex: 1;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    font-weight: bold;
}
.ai-role-select:focus {
    border-color: var(--accent-blue);
}
.ai-suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-left: 5px;
}
.ai-category-header {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-top: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.25rem;
}
.ai-suggestion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    transition: all 0.3s;
}
.ai-suggestion-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}
.ai-suggestion-card p {
    margin-bottom: 0.5rem;
}
.ai-insert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-insert-btn:hover {
    background: var(--accent-blue);
    color: white;
}

/* ==========================================
   A4 OVERFLOW BADGE & AUTO-FIT SOLVER
   ========================================== */
.overflow-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    z-index: 9999;
    animation: overflowPulse 2s infinite ease-in-out;
    border: none;
    cursor: pointer;
}
.autofit-btn-inline {
    background: white;
    color: #ef4444;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.autofit-btn-inline:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}
@keyframes overflowPulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 10px 40px rgba(239, 68, 68, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4); }
}

/* ==========================================
   CURATED STYLE & COLOR PRESETS
   ========================================== */
.preset-palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.preset-palette-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.preset-palette-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(255,255,255,0.05);
}
.preset-colors-preview {
    display: flex;
    gap: 0.25rem;
}
.preset-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}
.preset-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-secondary);
}

/* ==========================================
   GUIDED ONBOARDING TOUR OVERLAYS
   ========================================== */
.tour-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.6);
    z-index: 10000;
    pointer-events: auto;
    display: none;
}
.tour-overlay.active {
    display: block;
}
.tour-tooltip {
    position: absolute;
    background: #1e293b;
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 1.25rem;
    width: 280px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10001;
    color: white;
    text-align: right;
    display: none;
    direction: rtl;
}
.tour-tooltip.active {
    display: block;
}
.tour-tooltip:after {
    content: "";
    position: absolute;
    border: 8px solid transparent;
}
.tour-tooltip-top:after {
    bottom: -16px; left: 20px;
    border-top-color: #1e293b;
}
.tour-tooltip-bottom:after {
    top: -16px; left: 20px;
    border-bottom-color: #1e293b;
}
.tour-tooltip-left:after {
    right: -16px; top: 20px;
    border-left-color: #1e293b;
}
.tour-tooltip-right:after {
    left: -16px; top: 20px;
    border-right-color: #1e293b;
}
.tour-title {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tour-body {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tour-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
.tour-btn-next {
    background: var(--accent-blue);
    color: white;
}
.tour-btn-skip {
    background: transparent;
    color: var(--text-secondary);
}

/* Drag & Drop dragging element visual style */
.order-item.dragging {
    opacity: 0.4;
    border-style: dashed;
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent-blue);
}

/* ==========================================
   LANDING INTERACTIVE DEMOS & SPECIAL SECTIONS
   ========================================== */

/* ATS Simulator Section Styles */
.ats-simulator-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(13, 18, 30, 0.5), rgba(17, 24, 39, 0.5));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.simulator-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .simulator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.simulator-panel-left {
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sim-card-header h4 {
    font-size: 1rem;
    color: white;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.sim-dropdown {
    width: 100%;
    background: #090d16;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: white;
    padding: 0.65rem;
    font-size: 0.85rem;
    outline: none;
    font-weight: bold;
}

.sim-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sim-suggestion-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 1rem;
    text-align: right;
}

.sim-suggestion-box p {
    font-size: 0.85rem;
    color: white;
    margin-bottom: 0.5rem;
}

.simulator-panel-center {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.simulator-score-panel {
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sim-score-circle {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-cyan) 20%, rgba(255,255,255,0.04) 20%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.12);
    margin-bottom: 1.25rem;
    transition: background 0.4s ease;
}

.sim-score-circle::before {
    content: "";
    position: absolute;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #080b11;
}

#simScoreText {
    position: relative;
    z-index: 2;
    font-size: 2.1rem;
    font-weight: 900;
    color: white;
    font-family: 'Outfit', sans-serif;
}

#simFeedbackTitle {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 0.25rem;
}

.sim-audit-checklist {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: right;
}

.sim-audit-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.sim-audit-item span {
    font-weight: 600;
}

/* Customizer Section Styles */
.customizer-section, .reorder-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

.customizer-wrapper, .reorder-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .customizer-wrapper, .reorder-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.customizer-controls, .reorder-controls {
    width: 100%;
}

.customizer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    text-align: right;
}

.customizer-card h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.control-group {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.val-display {
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
}

/* Custom Styled Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    outline: none;
    margin: 6px 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.customizer-mockup-view, .reorder-mockup-view {
    display: flex;
    justify-content: center;
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
}

/* Apply CSS Variables from customizer */
#customizerPreviewSheet {
    font-size: var(--custom-font-size, 12px);
    line-height: var(--custom-line-spacing, 1.4);
    padding: var(--custom-margins, 20px);
}

#customizerPreviewSheet .mini-entry {
    margin-bottom: var(--custom-padding, 10px);
}

#customizerPreviewSheet .mini-entry-text {
    font-size: calc(var(--custom-font-size, 12px) - 2px);
}

/* Reordering styles */
.reorder-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.reorder-item-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.reorder-arrows {
    display: flex;
    gap: 0.35rem;
}

.reorder-arrows button {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
}

.reorder-arrows button:hover {
    background: var(--accent-cyan);
    color: #080b11;
    border-color: var(--accent-cyan);
}

.reorder-section-block {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Testimonials success stories style */
.testimonials-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: right;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.06);
}

/* ==========================================
   CLASSIC ATS TEMPLATE OVERRIDES
   ========================================== */
/* Font Override for Preview */
.a4-preview, .a4-preview * {
    font-family: var(--cv-font), sans-serif !important;
}

.a4-preview.template-ats {
    padding: 40px !important;
}

.a4-preview.template-ats .cv-header {
    border-bottom: 2px solid var(--cv-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.a4-preview.template-ats .cv-name {
    font-size: 22pt;
    font-weight: 900;
    color: var(--cv-primary);
    margin-bottom: 5px;
}

.a4-preview.template-ats .cv-title {
    font-size: 13pt;
    font-weight: 700;
    color: var(--cv-accent, #2563eb) !important;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.a4-preview.template-ats .cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
    font-size: 9.5pt;
    color: var(--cv-secondary);
}

.a4-preview.template-ats .cv-section {
    margin-bottom: 20px;
}

.a4-preview.template-ats .cv-section-title {
    font-size: 12pt;
    font-weight: 700;
    color: var(--cv-primary);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 5px;
    margin-bottom: 10px;
    text-transform: none;
}

.a4-preview.template-ats .cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    font-size: 10.5pt;
    color: var(--cv-primary);
}

.a4-preview.template-ats .cv-entry-title {
    color: var(--cv-accent, #2563eb);
}

.a4-preview.template-ats .cv-sub-header {
    font-style: italic;
    font-size: 9.5pt;
    color: var(--cv-secondary);
    margin-top: 2px;
    margin-bottom: 6px;
}

.a4-preview.template-ats .cv-bullets {
    list-style-type: square;
    font-size: 9.5pt;
    line-height: 1.6;
}

.a4-preview.template-ats.rtl .cv-bullets {
    margin-right: 20px;
    margin-left: 0;
}

.a4-preview.template-ats:not(.rtl) .cv-bullets {
    margin-left: 20px;
    margin-right: 0;
}

.a4-preview.template-ats .cv-bullets li {
    text-align: justify;
    margin-bottom: 4px;
}

.a4-preview.template-ats .summary-text {
    font-size: 10pt;
    line-height: 1.6;
    text-align: justify;
}

.a4-preview.template-ats .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 9.5pt;
}

.a4-preview.template-ats .skills-grid .skill-category {
    text-align: right;
    line-height: 1.6;
}

.a4-preview.template-ats .skills-grid .skill-category strong {
    color: var(--cv-primary);
}

