@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Reset & Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme (Default and only mode) */
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-opaque: #ffffff;
    --bg-header-rgb: 248, 250, 252;
    --bg-control-rgb: 255, 255, 255;
    --border-color: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #0e7490;
    --primary-hover: #0891b2;
    --primary-rgb: 14, 116, 144;
    
    --secondary: #0369a1;
    --secondary-hover: #0284c7;
    
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glass-blur: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.35);
    outline-offset: 2px;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 10px 25px -5px rgba(var(--primary-rgb), 0.1), var(--shadow-xl);
}

/* Background Gradients & Glows */
.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: var(--radius-full);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.glow-primary {
    background: var(--primary);
    top: -100px;
    right: -100px;
}
.glow-secondary {
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
}

/* Header & Navigation */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(var(--bg-header-rgb), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .brand-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
    border: 1.5px solid #0a0a0a;
    box-shadow: 3px 3px 0 #0a0a0a;
    -webkit-text-fill-color: initial;
    background: none;
}

.logo i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: white;
    padding: 6px;
    border-radius: var(--radius-sm);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-fast);
}

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

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-select {
    height: 36px;
    padding: 0 28px 0 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.lang-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.topbar-lang.lang-switcher-mount {
    margin-right: 4px;
}

.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.form-help-error {
    margin-top: 6px;
    color: var(--accent-rose);
    font-size: 12px;
    min-height: 16px;
}

.input-invalid {
    border-color: var(--accent-rose) !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15) !important;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 60px 0;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-primary), #0369a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 40px 0 80px 0;
}

.feature-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    cursor: pointer;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(3, 105, 161, 0.1);
    color: var(--secondary);
    border-color: rgba(3, 105, 161, 0.2);
}

.feature-card h3 {
    font-size: 24px;
    margin-top: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.feature-card .arrow-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: transform var(--transition-fast);
}

.feature-card:hover .arrow-link {
    transform: translateX(4px);
}

/* SEO Info Sections */
.info-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.info-content ul {
    list-style: none;
    margin-bottom: 24px;
}

.info-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.info-content li i {
    color: var(--accent-emerald);
}

.info-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.info-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Google AdSense Simulation Styles (Crucial for Arbitrage Layout Setup) */
.adsense-placeholder {
    margin: 32px 0;
    padding: 16px;
    border: 1px dashed var(--accent-amber);
    background: rgba(245, 158, 11, 0.03);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.adsense-placeholder::before {
    content: "Google Ads Reklam Alanı";
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-amber);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.adsense-mock-content {
    background: var(--bg-surface-opaque);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    width: 100%;
    max-width: 728px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ads-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.ads-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.ads-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.ads-btn {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* Ad Layout Types */
.ad-leaderboard {
    min-height: 90px;
    max-width: 100%;
    margin-top: 24px;
}

.ad-sidebar {
    min-height: 250px;
    margin: 16px 0;
}

.ad-in-article {
    min-height: 120px;
}

/* CV Builder Layout */
.app-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    margin-bottom: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
}

.editor-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preview-pane {
    position: sticky;
    top: 96px;
}

.editor-section {
    padding: 24px;
}

.editor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.editor-section-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-section-header h3 i {
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(var(--bg-control-rgb), 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    background: rgba(var(--bg-control-rgb), 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Dynamic Addable Row */
.dynamic-row {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--accent-rose);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(244, 63, 94, 0.2);
    background: rgba(244, 63, 94, 0.05);
    transition: all var(--transition-fast);
}

.remove-btn:hover {
    background: var(--accent-rose);
    color: white;
}

/* CV Paper Preview Styles */
.cv-preview-container {
    width: 100%;
    background: #ffffff;
    color: #1e293b;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* The actual A4 ratio paper */
.cv-paper {
    width: 100%;
    aspect-ratio: 1 / 1.4142; /* A4 aspect ratio */
    background: white;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
    position: relative;
    overflow-y: auto;
}

/* CV Template Types */
/* 1. Modern Template */
.cv-paper.template-modern {
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    gap: 30px;
    padding: 0;
}

.template-modern .cv-sidebar {
    background: #0f172a;
    color: #f8fafc;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.template-modern .cv-main {
    padding: 40px 30px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.template-modern .cv-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.template-modern .cv-title {
    font-size: 13px;
    color: #0e7490;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.template-modern .cv-section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
    margin-bottom: 12px;
    color: #1e293b;
    letter-spacing: 0.05em;
}

.template-modern .cv-sidebar .cv-section-title {
    border-color: #334155;
    color: #f8fafc;
}

/* 2. Professional Template */
.cv-paper.template-professional {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.template-professional .cv-header {
    text-align: center;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 16px;
}

.template-professional .cv-name {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.template-professional .cv-title {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.template-professional .cv-contact-horizontal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
    font-size: 11px;
    color: #64748b;
}

.template-professional .cv-section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
    background: #f1f5f9;
    padding: 6px 12px;
    margin-bottom: 12px;
    border-left: 4px solid #1e293b;
}

/* 3. Minimalist Template */
.cv-paper.template-minimalist {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 4. Executive Template */
.cv-paper.template-executive {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 34px;
    border-top: 8px solid #0f172a;
}

.template-executive .cv-name { font-size: 30px; color: #0f172a; }
.template-executive .cv-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #334155; }
.template-executive .cv-section-title { font-size: 13px; text-transform: uppercase; border-bottom: 2px solid #0f172a; padding-bottom: 4px; }

/* 5. Creative Template */
.cv-paper.template-creative {
    display: grid;
    grid-template-columns: 0.38fr 0.62fr;
    gap: 0;
    padding: 0;
}
.template-creative .cv-sidebar {
    background: linear-gradient(180deg, #312e81, #4c1d95);
    color: #eef2ff;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.template-creative .cv-main {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.template-creative .cv-section-title { color: #312e81; border-bottom: 2px solid #c7d2fe; padding-bottom: 4px; }
.template-creative .cv-sidebar .cv-section-title { color: #e0e7ff; border-color: rgba(224,231,255,0.35); }

/* 6. ATS Clean Template */
.cv-paper.template-ats-clean {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
}
.template-ats-clean .cv-name { font-size: 24px; font-family: Arial, Helvetica, sans-serif; }
.template-ats-clean .cv-title { font-size: 12px; color: #0f172a; text-transform: uppercase; }
.template-ats-clean .cv-section-title { font-size: 12px; letter-spacing: 0.04em; border-bottom: 1px solid #0f172a; padding-bottom: 4px; }
.template-ats-clean .cv-skill-tag { border: 1px solid #dbeafe; background: #f8fafc; }

/* 7. Compact Template */
.cv-paper.template-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    font-size: 11px;
}
.template-compact .cv-name { font-size: 20px; }
.template-compact .cv-title { font-size: 11px; }
.template-compact .cv-section-title { font-size: 11px; margin-bottom: 6px; }
.template-compact .cv-item { margin-bottom: 6px; }

/* 8. Timeline Template */
.cv-paper.template-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}
.template-timeline .timeline-list {
    position: relative;
    padding-left: 18px;
}
.template-timeline .timeline-list::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #cbd5e1;
}
.template-timeline .cv-item {
    position: relative;
    padding-left: 10px;
}
.template-timeline .cv-item::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0e7490;
}

/* 9. Academic Template */
.cv-paper.template-academic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px;
}
.template-academic .cv-name { font-size: 25px; }
.template-academic .cv-section-title {
    font-size: 13px;
    border-left: 4px solid #0e7490;
    padding-left: 8px;
    border-bottom: none;
}

/* 10. Modern Plus Template */
.cv-paper.template-modern-plus {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.template-modern-plus .left-block {
    border-right: 1px solid #e2e8f0;
    padding-right: 14px;
}
.template-modern-plus .right-block {
    padding-left: 6px;
}
.template-modern-plus .cv-section-title { border-bottom: 1px solid #cbd5e1; }

.template-minimalist .cv-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

.template-minimalist .cv-title {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.template-minimalist .cv-section-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #000000;
    padding-bottom: 4px;
    margin-bottom: 10px;
    color: #000000;
    letter-spacing: 0.1em;
}

/* Universal CV Element Styles */
.cv-item {
    margin-bottom: 12px;
}
.cv-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: inherit;
    margin-bottom: 2px;
}
.cv-item-sub {
    display: flex;
    justify-content: space-between;
    font-style: italic;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 4px;
}
.cv-item-desc {
    font-size: 11px;
    line-height: 1.4;
}

.cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cv-skill-tag {
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 500;
}
.template-modern .cv-sidebar .cv-skill-tag {
    background: #334155;
    color: #f8fafc;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
}

/* Print Rules - Hidden UI Elements & Expanded Paper for Print */
@media print {

    /* ── 1. Page setup: A4, no browser margins ── */
    @page {
        size: A4 portrait;
        margin: 0;
    }

    /* ── 2. Force all background colors/images to print ── */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* ── 3. Body: white, single page ── */
    html, body {
        background: #ffffff !important;
        overflow: hidden !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── 4. Hide all non-CV elements ── */
    header,
    .editor-pane,
    .preview-pane-header,
    .btn,
    .adsense-placeholder,
    .ad-leaderboard,
    .ad-sidebar,
    .ad-in-article,
    ins,
    iframe,
    .ambient-glow,
    footer,
    .cv-template-select-bar,
    #rewardedAdOverlay,
    #cvDynamicSeoSection,
    .container > h1,
    .no-print {
        display: none !important;
    }

    /* ── 5. Strip all wrapper layouts ── */
    .container,
    .app-layout,
    .preview-pane {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        position: static !important;
        gap: 0 !important;
        top: 0 !important;
    }

    /* ── 6. CV wrapper: no decoration ── */
    .cv-preview-container {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* ── 7. CV paper: exact A4, single page, scale content to fit ── */
    .cv-paper {
        width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        aspect-ratio: unset !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-shadow: none !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
        /* Scale trick: if content overflows, shrink everything proportionally */
        font-size: 10.5px !important;
    }

    /* ── 8. Modern template: dark sidebar, full height ── */
    .cv-paper.template-modern {
        display: grid !important;
        grid-template-columns: 210px 1fr !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .template-modern .cv-sidebar {
        background: #0f172a !important;
        color: #f8fafc !important;
        padding: 32px 18px !important;
        width: 210px !important;
        min-width: 210px !important;
        max-width: 210px !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        overflow: hidden !important;
        gap: 16px !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .template-modern .cv-main {
        padding: 32px 28px 32px 24px !important;
        gap: 16px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* ── 9. Modern sidebar text colors ── */
    .template-modern .cv-name      { color: #ffffff !important; font-size: 19px !important; }
    .template-modern .cv-title     { color: #818cf8 !important; font-size: 11px !important; }

    .template-modern .cv-sidebar .cv-section-title {
        color: #f8fafc !important;
        border-color: #334155 !important;
        font-size: 11px !important;
        padding-bottom: 4px !important;
        margin-bottom: 8px !important;
    }

    .template-modern .cv-sidebar .cv-contact-item {
        color: #cbd5e1 !important;
        font-size: 10px !important;
        margin-bottom: 5px !important;
    }

    .template-modern .cv-sidebar .cv-skill-tag {
        background: #334155 !important;
        color: #f8fafc !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .template-modern .cv-section-title {
        color: #1e293b !important;
        border-color: #e2e8f0 !important;
        font-size: 11px !important;
        padding-bottom: 4px !important;
        margin-bottom: 8px !important;
    }

    .template-modern .cv-item { margin-bottom: 8px !important; }

    /* ── 10. Professional template ── */
    .template-professional .cv-section-title {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        border-left-color: #1e293b !important;
        font-size: 11px !important;
        padding: 5px 10px !important;
        margin-bottom: 8px !important;
    }

    .template-professional .cv-name { font-size: 22px !important; }
    .template-professional .cv-item { margin-bottom: 8px !important; }

    /* ── 11. Minimalist template ── */
    .template-minimalist .cv-section-title {
        font-size: 10px !important;
        padding-bottom: 3px !important;
        margin-bottom: 7px !important;
    }

    /* ── 12. Universal CV elements ── */
    .cv-item-header { font-size: 11px !important; margin-bottom: 1px !important; }
    .cv-item-sub    { font-size: 10px !important; margin-bottom: 2px !important; }
    .cv-item-desc   { font-size: 10px !important; line-height: 1.35 !important; }

    .cv-skill-tag {
        background: #f1f5f9 !important;
        color: #334155 !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .cv-skills-list { gap: 4px !important; }
} /* end @media print */

/* Salary Calculator Styles */

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 900px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.calc-section {
    padding: 32px;
}

.calc-tab-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    background: rgba(255,255,255,0.02);
    margin-bottom: 24px;
}

.calc-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.calc-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-row:last-child {
    border: none;
}

.calc-row.total-row {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px solid var(--border-color);
    margin-top: 8px;
    color: var(--primary);
}

.calc-val {
    font-weight: 600;
}

.calc-val-hl {
    color: var(--accent-emerald);
}

.calc-val-neg {
    color: var(--accent-rose);
}

/* SVG Chart Styles */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    position: relative;
    height: 220px;
}

.chart-svg {
    transform: rotate(-90deg);
}

.chart-slice {
    fill: none;
    stroke-width: 24;
    transition: stroke-dasharray var(--transition-normal);
}

.chart-center-text {
    position: absolute;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chart-center-num {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.chart-center-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.chart-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

/* Table styles */
.calc-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.calc-table th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.calc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.calc-table tr:last-child td {
    border-bottom: none;
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Landing sayfası: css/landing.css */

/* Responsive details */
@media (max-width: 600px) {
    .header-container {
        height: auto;
        min-height: 72px;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .actions {
        margin-left: auto;
    }

    .hero h1 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-full {
        grid-column: span 1;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-grid:nth-child(even) .info-image-wrapper {
        order: -1;
    }
}

@media (max-width: 820px) {
    .mobile-nav-toggle {
        display: inline-flex;
    }

    #mainNavigation {
        display: none;
        width: 100%;
        order: 4;
        padding: 12px 0 4px 0;
        border-top: 1px solid var(--border-color);
        margin-top: 6px;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    #mainNavigation.is-open {
        display: flex;
    }
}

/* CV Studio */
.cv-studio-layout {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 20px;
    align-items: start;
}

.cv-studio-tools {
    padding: 16px;
    position: sticky;
    top: 90px;
}

.studio-tool-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.studio-tool-tab {
    border: 1px solid var(--border-color);
    background: var(--bg-surface-opaque);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
}

.studio-tool-tab.active {
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--text-primary);
}

.studio-panel { display: none; }
.studio-panel.active { display: block; }
.studio-panel label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 8px 0 6px;
}

.studio-template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.studio-template-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface-opaque);
    border-radius: var(--radius-sm);
    padding: 10px;
    cursor: pointer;
    text-align: left;
    min-height: 86px;
}

.studio-template-btn.active {
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.12);
}

.studio-template-btn strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.studio-template-btn small {
    display: block;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.studio-preset-btn {
    grid-column: span 2;
    border: 1px dashed rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--radius-sm);
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.cv-studio-canvas-wrap { padding: 16px; }
.cv-studio-properties {
    padding: 14px;
    position: sticky;
    top: 90px;
}
.cv-studio-canvas-toolbar {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 13px;
}

.cv-studio-canvas-scroll {
    overflow: auto;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    min-height: 760px;
    display: flex;
    justify-content: center;
}

.cv-studio-paper {
    width: 794px;
    min-height: 1123px;
    transform-origin: top center;
    --studio-accent: #0e7490;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.cv-studio-block {
    margin-bottom: 14px;
    border: 1px dashed transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: grab;
}

.cv-studio-block h2,
.cv-studio-block h3 {
    color: var(--studio-accent);
    margin-bottom: 6px;
}

.cv-studio-block [contenteditable="true"] {
    outline: none;
    border-radius: 4px;
}

.cv-studio-block [contenteditable="true"]:focus {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.cv-studio-block:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
}

.cv-studio-block.selected {
    border-color: rgba(var(--primary-rgb), 0.55);
    background: rgba(var(--primary-rgb), 0.05);
}

.cv-studio-block.dragging {
    opacity: 0.4;
}

.cv-studio-block.block-accent {
    border-left: 4px solid var(--studio-accent);
}

.studio-section-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 12px;
}

.studio-section-actions {
    display: flex;
    gap: 4px;
}

.studio-section-actions button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .cv-studio-layout {
        grid-template-columns: 1fr;
    }

    .cv-studio-tools {
        position: static;
    }

    .cv-studio-properties {
        position: static;
    }
}

/* Studio template refinements */
.cv-studio-paper.template-modern {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-top: 6px solid #0e7490;
}
.cv-studio-paper.template-professional {
    border-top: 6px solid #1e293b;
    background: #ffffff;
}
.cv-studio-paper.template-minimalist {
    --studio-accent: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.cv-studio-paper.template-executive {
    --studio-accent: #1d4ed8;
    border-top: 10px solid #1d4ed8;
    font-family: "Georgia", "Times New Roman", serif;
}
.cv-studio-paper.template-creative {
    --studio-accent: #be185d;
    background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
    border-top: 8px solid #be185d;
}
.cv-studio-paper.template-ats-clean {
    --studio-accent: #0f766e;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #dbeafe;
}
.cv-studio-paper.template-compact {
    --studio-accent: #0369a1;
    font-size: 11px !important;
}
.cv-studio-paper.template-timeline {
    --studio-accent: #ea580c;
    position: relative;
}
.cv-studio-paper.template-timeline .cv-studio-block {
    margin-left: 14px;
    border-left: 2px solid rgba(234, 88, 12, 0.2);
    padding-left: 12px;
}
.cv-studio-paper.template-academic {
    --studio-accent: #4338ca;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    font-family: "Georgia", "Times New Roman", serif;
}
.cv-studio-paper.template-modern-plus {
    --studio-accent: #16a34a;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    border-top: 8px solid #16a34a;
}
.cv-studio-paper.template-cnc-dark,
.cv-studio-paper.template-portfolio-dark {
    display: grid;
    grid-template-columns: 26.5% 73.5%;
    grid-auto-rows: min-content;
    column-gap: 0;
    row-gap: 0;
    padding: 0;
}

.cv-studio-paper.template-red-classic,
.cv-studio-paper.template-gray-engineer {
    display: grid;
    grid-template-columns: 30% 70%;
    padding: 0;
    background: #f5f5f5;
}

.cv-studio-paper.template-cnc-dark .sidebar-block,
.cv-studio-paper.template-portfolio-dark .sidebar-block {
    grid-row: 1 / span 10;
    min-height: 100%;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 24px 18px;
    background: #334155;
    color: #e2e8f0;
}

.cv-studio-paper.template-cnc-dark .sidebar-block {
    background: #3b4654;
    font-family: "Inter", Arial, sans-serif;
}

.cv-studio-paper.template-cnc-dark .main-block,
.cv-studio-paper.template-portfolio-dark .main-block {
    margin: 0;
    padding: 18px 20px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e2e8f0;
}

.cv-studio-paper.template-cnc-dark .main-block {
    background: #ffffff;
}

.cv-studio-paper.template-portfolio-dark {
    background: #24384f;
    font-family: "Inter", Arial, sans-serif;
}

.cv-studio-paper.template-portfolio-dark .main-block {
    background: #24384f;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    color: #dbeafe;
}

.cv-studio-paper.template-portfolio-dark h2,
.cv-studio-paper.template-portfolio-dark h3,
.cv-studio-paper.template-portfolio-dark p {
    color: #dbeafe;
}

.profile-photo-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto 16px auto;
    border: 3px solid rgba(255, 255, 255, 0.55);
}

.photo-real {
    object-fit: cover;
    display: block;
    background: #64748b;
}

.photo-placeholder {
    background: radial-gradient(circle at 30% 30%, #7f91ab 0%, #6f829d 45%, #5f728d 100%);
    border-color: #c6d2e1;
    position: relative;
}

.photo-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.profile-photo-circle.small {
    width: 86px;
    height: 86px;
}

.profile-photo-wrap {
    position: relative;
    width: fit-content;
    margin: 0 auto 30px auto;
}

.profile-photo-label {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    line-height: 1;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(203, 213, 225, 0.45);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}

.cnc-sidebar h2,
.portfolio-sidebar h2 {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 38px;
    line-height: 1.05;
    color: #f8fafc;
    margin-bottom: 6px;
}

.role-line {
    color: #cbd5e1 !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.95;
}

.cnc-sidebar h3,
.portfolio-sidebar h3 {
    color: #f1f5f9 !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    padding-bottom: 6px;
    margin-top: 18px;
    text-transform: uppercase;
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.icon-list li {
    font-size: 13px;
    color: #dbeafe;
    margin-bottom: 8px;
    line-height: 1.45;
}

.icon-list li i {
    width: 14px;
    margin-right: 6px;
    color: #bfdbfe;
}

.skill-stars p,
.skill-bars p {
    font-size: 13px;
    margin-bottom: 7px;
    color: #e2e8f0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
}

.skill-bars span {
    float: none;
    letter-spacing: 0.08em;
    color: #60a5fa;
    min-width: 76px;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.skill-name {
    min-width: 0;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 6px;
}

.skill-rating {
    min-width: 62px;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.template-law-dark .law-sidebar .skill-bars p,
.template-red-classic .red-sidebar .skill-bars p,
.template-cnc-dark .cnc-sidebar .skill-stars p {
    font-size: 12px;
    line-height: 1.35;
}

.template-law-dark .law-sidebar .skill-bars p,
.template-red-classic .red-sidebar .skill-bars p,
.template-cnc-dark .cnc-sidebar .skill-stars p {
    grid-template-columns: minmax(0, 1fr) 82px;
    column-gap: 8px;
}

.template-law-dark .law-sidebar .skill-bars span,
.template-red-classic .red-sidebar .skill-bars span {
    min-width: 82px;
}

.cnc-main h3,
.portfolio-main h3 {
    text-transform: uppercase;
    font-size: 30px;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 6px;
}

.timeline-block p {
    position: relative;
    padding-left: 12px;
    border-left: 2px solid #94a3b8;
}

.experience-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
}

.experience-item .exp-date {
    font-size: 15px;
    color: #475569;
    padding-top: 4px;
    font-weight: 500;
}

.experience-item .exp-content {
    font-size: 15px;
    line-height: 1.62;
}

.template-cnc-dark .timeline-block .experience-item {
    padding-left: 14px;
}

.template-cnc-dark .timeline-block .experience-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #64748b;
}

.template-cnc-dark .timeline-block .experience-item::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 20px;
    bottom: -18px;
    width: 2px;
    background: #cbd5e1;
}

.template-cnc-dark .cnc-main {
    padding: 26px 30px;
}

.template-cnc-dark .cnc-sidebar {
    padding: 26px 20px;
    background: linear-gradient(180deg, #3b4654 0%, #2f3a47 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.template-cnc-dark .cnc-main p,
.template-cnc-dark .cnc-main li {
    color: #334155;
}

.template-cnc-dark .cnc-main {
    font-family: "Inter", "Arial", sans-serif;
}

.template-cnc-dark .cnc-main .exp-content {
    max-width: 94%;
}

.template-cnc-dark .cnc-main .exp-content ul,
.template-cnc-dark .cnc-main .exp-content ol {
    padding-left: 20px;
    margin-top: 6px;
}

.template-cnc-dark .cnc-main .exp-content li {
    margin-bottom: 4px;
}

.template-cnc-dark .timeline-block {
    position: relative;
}

.template-cnc-dark .timeline-block::before {
    content: "";
    position: absolute;
    left: 186px;
    top: 62px;
    bottom: 28px;
    width: 2px;
    background: #d1d5db;
}

.template-cnc-dark .cnc-main {
    background: #ffffff;
}

.template-cnc-dark .cnc-main h2 {
    color: #1f2937;
}

.template-cnc-dark .cnc-main h3 {
    color: #374151;
    border-bottom-color: #d7dbe2;
}

.template-cnc-dark .experience-item .exp-content strong {
    color: #1f2937;
}

.template-cnc-dark .timeline-block .experience-item {
    align-items: flex-start;
}

.template-cnc-dark .timeline-block .experience-item::before {
    left: 182px;
    top: 10px;
    width: 8px;
    height: 8px;
    border: 2px solid #6b7280;
    background: #fff;
}

.template-cnc-dark .timeline-block .experience-item::after {
    display: none;
}

.template-portfolio-dark .portfolio-main {
    padding: 24px 28px;
}

.template-portfolio-dark .portfolio-sidebar {
    padding: 24px 18px;
}

.template-portfolio-dark .portfolio-main h3 {
    border-bottom-color: rgba(147, 197, 253, 0.35);
    color: #dbeafe;
}

.template-portfolio-dark .portfolio-main p,
.template-portfolio-dark .experience-item .exp-content {
    color: #cbd5e1;
}

.template-portfolio-dark .portfolio-main {
    font-family: "Inter", "Arial", sans-serif;
}

.template-portfolio-dark .portfolio-main .exp-content {
    max-width: 95%;
}

.template-portfolio-dark .portfolio-main p {
    font-size: 14px;
    line-height: 1.55;
}

.template-portfolio-dark .portfolio-main .experience-item {
    grid-template-columns: 120px 1fr;
    gap: 16px;
}

.template-portfolio-dark .portfolio-main .experience-item .exp-content {
    border-left: 1px solid rgba(148, 163, 184, 0.25);
    padding-left: 12px;
}

.template-portfolio-dark .portfolio-sidebar {
    border-right: 1px solid rgba(148, 163, 184, 0.24);
}

.template-portfolio-dark .portfolio-sidebar .icon-list li,
.template-portfolio-dark .portfolio-sidebar .skill-bars p {
    font-size: 12.5px;
}

.template-portfolio-dark .portfolio-sidebar h2 {
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 34px;
}

.template-portfolio-dark .role-line {
    text-transform: none;
    letter-spacing: 0.08em;
    font-size: 16px;
}

.template-red-classic {
    border-top: 10px solid #8b1300;
    border-bottom: 10px solid #8b1300;
    box-shadow: 0 18px 36px rgba(139, 19, 0, 0.08);
}

.template-red-classic .red-sidebar {
    background: linear-gradient(180deg, #f7f3f3 0%, #efe8e8 100%);
    padding: 20px 16px;
    margin: 0;
    border: none;
    min-height: 100%;
    grid-column: 1;
    grid-row: 1 / span 40;
}

.template-red-classic .red-main {
    background: #fbfbfb;
    margin: 0;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 18px 26px;
    grid-column: 2;
}

.template-red-classic .header-line h2 {
    font-size: 44px;
    color: #8b1300;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.template-red-classic h3 {
    color: #8b1300;
    font-size: 34px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    letter-spacing: 0.02em;
}

.template-red-classic .experience-item .exp-date {
    color: #8b1300;
    font-weight: 700;
}

.template-gray-engineer {
    background: #ececec;
}

.template-gray-engineer .engineer-sidebar {
    background: #d8d8d8;
    margin: 0;
    border: none;
    min-height: 100%;
    padding: 20px 16px;
    border-right: 1px solid #bdbdbd;
    grid-column: 1;
    grid-row: 1 / span 40;
}

.template-gray-engineer .engineer-sidebar h2 {
    color: #2d2d2d;
    font-size: 38px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.template-gray-engineer .engineer-sidebar .profile-photo-circle {
    border-color: #fbbf24;
}

.template-gray-engineer .engineer-main {
    background: #efefef;
    margin: 0;
    border: none;
    border-bottom: 1px solid #d1d1d1;
    padding: 18px 24px;
    grid-column: 2;
}

.template-gray-engineer .engineer-main h3 {
    color: #3b3b3b;
    font-size: 34px;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 8px;
}

.template-gray-engineer .experience-item .exp-date {
    color: #666;
    font-weight: 700;
}

.template-gray-engineer .engineer-sidebar .icon-list li i {
    color: #3d3d3d;
}

.template-red-classic .experience-item,
.template-gray-engineer .experience-item {
    grid-template-columns: 135px 1fr;
    gap: 12px;
}

.template-red-classic .experience-item .exp-content,
.template-gray-engineer .experience-item .exp-content {
    min-width: 0;
    word-break: normal;
    overflow-wrap: anywhere;
}

.template-red-classic .experience-item .exp-content strong,
.template-gray-engineer .experience-item .exp-content strong {
    display: block;
    margin-bottom: 4px;
}

.template-red-classic .red-main p,
.template-red-classic .red-main li,
.template-gray-engineer .engineer-main p,
.template-gray-engineer .engineer-main li {
    line-height: 1.45;
}

/* Only kept templates: CNC, Law, Red Classic */
.cv-studio-paper.template-law-dark {
    display: grid;
    grid-template-columns: 31% 69%;
    padding: 0;
    background: #f1f3f5;
    border-left: 8px solid #001a24;
}

.template-law-dark .law-sidebar {
    background: linear-gradient(180deg, #062737 0%, #021923 100%);
    color: #e2e8f0;
    margin: 0;
    border: none;
    min-height: 100%;
    padding: 22px 16px;
    grid-column: 1;
    grid-row: 1 / span 40;
}

.template-law-dark .law-main {
    background: #f8fafc;
    margin: 0;
    border: none;
    border-bottom: 1px solid #d4d4d8;
    padding: 18px 24px;
    grid-column: 2;
    min-width: 0;
}

.template-law-dark .law-sidebar h2 {
    color: #f8fafc;
    font-size: 34px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.08;
}

.template-law-dark .law-sidebar h3 {
    color: #f8fafc;
    font-size: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.35);
    padding-bottom: 6px;
}

.template-law-dark .law-sidebar .icon-list li {
    color: #dbeafe;
}

.template-law-dark .law-main h2 {
    font-size: 52px;
    color: #1f2937;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.template-law-dark .law-main h3 {
    font-size: 40px;
    color: #374151;
    border-bottom: 1px solid #c7cad1;
    padding-bottom: 8px;
    letter-spacing: 0.015em;
}

.template-law-dark .experience-item {
    grid-template-columns: 120px 1fr;
}

.template-law-dark .experience-item .exp-content strong {
    color: #1f2937;
}

.template-law-dark .skill-bars span {
    color: #93c5fd;
}

/* Studio polish shared by 3 templates */
.cv-studio-paper.template-cnc-dark,
.cv-studio-paper.template-law-dark,
.cv-studio-paper.template-red-classic {
    border-radius: 2px;
    overflow: hidden;
}

.cv-studio-paper.template-cnc-dark .cv-studio-block,
.cv-studio-paper.template-law-dark .cv-studio-block,
.cv-studio-paper.template-red-classic .cv-studio-block {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cv-studio-paper.template-cnc-dark .cv-studio-block.selected,
.cv-studio-paper.template-law-dark .cv-studio-block.selected,
.cv-studio-paper.template-red-classic .cv-studio-block.selected {
    background: rgba(14, 116, 144, 0.06);
    border-color: rgba(14, 116, 144, 0.35);
}

/* ===== Final Template Harmonization ===== */
.cv-studio-paper[class*="template-"] {
    font-family: "Inter", Arial, sans-serif;
}

.cv-studio-paper[class*="template-"] .cv-studio-block h2 {
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.cv-studio-paper[class*="template-"] .cv-studio-block h3 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.cv-studio-paper[class*="template-"] .cv-studio-block p,
.cv-studio-paper[class*="template-"] .cv-studio-block li,
.cv-studio-paper[class*="template-"] .exp-content {
    font-size: 14px;
    line-height: 1.5;
}

.cv-studio-paper[class*="template-"] .experience-item {
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: start;
}

.cv-studio-paper[class*="template-"] .exp-date {
    font-size: 14px;
    font-weight: 700;
    padding-top: 2px;
}

/* CNC and Portfolio keep dark left panel look */
.template-cnc-dark .cnc-sidebar,
.template-portfolio-dark .portfolio-sidebar {
    grid-column: 1;
    grid-row: 1 / span 40;
}

.template-cnc-dark .cnc-main,
.template-portfolio-dark .portfolio-main {
    grid-column: 2;
    min-width: 0;
}

.template-cnc-dark .cnc-main h3,
.template-portfolio-dark .portfolio-main h3 {
    font-size: 44px;
    letter-spacing: 0.03em;
    border-bottom-width: 1px;
}

.template-cnc-dark .cnc-main .exp-content,
.template-portfolio-dark .portfolio-main .exp-content,
.template-red-classic .red-main .exp-content,
.template-gray-engineer .engineer-main .exp-content {
    overflow-wrap: anywhere;
}

/* Red classic and gray engineer two-column stability */
.template-red-classic .red-sidebar,
.template-gray-engineer .engineer-sidebar {
    grid-column: 1;
    grid-row: 1 / span 40;
}

.template-red-classic .red-main,
.template-gray-engineer .engineer-main {
    grid-column: 2;
    min-width: 0;
}

.template-red-classic .header-line h2 {
    font-size: 56px;
}

.template-red-classic .red-main h3 {
    color: #8b1300;
    font-size: 48px;
}

.template-gray-engineer .engineer-main h3 {
    font-size: 46px;
}

/* Keep sidebar typography compact */
.template-red-classic .red-sidebar h3,
.template-gray-engineer .engineer-sidebar h3,
.template-cnc-dark .cnc-sidebar h3,
.template-portfolio-dark .portfolio-sidebar h3 {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.template-red-classic .red-sidebar .icon-list li,
.template-gray-engineer .engineer-sidebar .icon-list li,
.template-cnc-dark .cnc-sidebar .icon-list li,
.template-portfolio-dark .portfolio-sidebar .icon-list li {
    font-size: 13px;
    line-height: 1.4;
}

.template-portfolio-dark .experience-item .exp-date {
    color: #93c5fd;
}

.template-cnc-dark .timeline-block .experience-item:last-child::after {
    display: none;
}

/* ===== Visual Final Pass (3 templates only) ===== */
.cv-studio-paper.template-cnc-dark,
.cv-studio-paper.template-law-dark,
.cv-studio-paper.template-red-classic {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    border-top: none;
}

.cv-studio-paper.template-cnc-dark .cv-studio-block h2,
.cv-studio-paper.template-law-dark .cv-studio-block h2,
.cv-studio-paper.template-red-classic .cv-studio-block h2 {
    font-size: 52px;
    letter-spacing: 0.02em;
}

.cv-studio-paper.template-cnc-dark .cv-studio-block h3,
.cv-studio-paper.template-law-dark .cv-studio-block h3,
.cv-studio-paper.template-red-classic .cv-studio-block h3 {
    font-size: 40px;
    letter-spacing: 0;
}

.cv-studio-paper.template-cnc-dark .exp-content,
.cv-studio-paper.template-law-dark .exp-content,
.cv-studio-paper.template-red-classic .exp-content {
    font-size: 14px;
    line-height: 1.5;
}

.cv-studio-paper.template-cnc-dark .exp-date,
.cv-studio-paper.template-law-dark .exp-date,
.cv-studio-paper.template-red-classic .exp-date {
    font-size: 14px;
    color: #4b5563;
}

.template-cnc-dark {
    background: #f3f4f6;
    grid-template-columns: 25% 75%;
}

.template-cnc-dark .cnc-sidebar {
    background: linear-gradient(180deg, #3f4b5b 0%, #334050 100%);
}

.template-cnc-dark .cnc-main {
    padding: 20px 24px;
    border-bottom-color: #e5e7eb;
}

.template-cnc-dark .cnc-main h2 {
    font-size: 58px;
}

.template-cnc-dark .cnc-main h3 {
    font-size: 42px;
}

.template-cnc-dark .timeline-block::before {
    left: 178px;
}

.template-cnc-dark .timeline-block .experience-item::before {
    left: 174px;
}

.template-cnc-dark .timeline-block .experience-item {
    grid-template-columns: 164px 1fr;
    gap: 14px;
}

.template-cnc-dark .timeline-block .exp-content {
    padding-left: 8px;
}

.template-law-dark {
    background: #eef2f7;
    grid-template-columns: 28% 72%;
    border-left: 10px solid #011b26;
}

.template-law-dark .law-sidebar {
    background: linear-gradient(180deg, #032739 0%, #001f2f 100%);
}

.template-law-dark .law-main {
    background: #f8fafc;
    border-bottom-color: #e5e7eb;
    padding: 20px 22px;
}

.template-law-dark .law-main h2 {
    font-size: 56px;
}

.template-law-dark .law-main h3 {
    font-size: 38px;
    color: #1f2937;
}

.template-red-classic {
    background: #f7f7f7;
    grid-template-columns: 26% 74%;
    border-top: 10px solid #9a1405;
    border-bottom: 10px solid #9a1405;
}

.template-red-classic .red-sidebar {
    background: linear-gradient(180deg, #f3efef 0%, #ece6e6 100%);
    border-right: 1px solid #e5e7eb;
}

.template-red-classic .red-sidebar h3 {
    color: #8d1203 !important;
}

.template-red-classic .red-sidebar .icon-list li {
    color: #374151 !important;
    font-weight: 500;
}

.template-red-classic .red-sidebar .icon-list li i {
    color: #8d1203 !important;
}

.template-red-classic .red-sidebar .skill-bars p {
    color: #374151 !important;
    font-weight: 600;
}

.template-red-classic .red-sidebar .skill-bars span {
    color: #1d4ed8 !important;
    font-weight: 700;
}

.template-red-classic .red-main {
    background: #ffffff;
    padding: 18px 24px;
    border-bottom-color: #e5e7eb;
}

.template-red-classic .header-line h2 {
    color: #8d1203;
    font-size: 60px;
}

.template-red-classic .red-main h3 {
    color: #8d1203;
    font-size: 40px;
}

/* Hotfix: normalize oversized typography/layout */
.cv-studio-paper.template-cnc-dark .cv-studio-block h2,
.cv-studio-paper.template-law-dark .cv-studio-block h2,
.cv-studio-paper.template-red-classic .cv-studio-block h2 {
    font-size: 26px !important;
    letter-spacing: 0.01em !important;
    line-height: 1.15 !important;
    word-break: normal !important;
}

.cv-studio-paper.template-cnc-dark .cv-studio-block h3,
.cv-studio-paper.template-law-dark .cv-studio-block h3,
.cv-studio-paper.template-red-classic .cv-studio-block h3 {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.template-cnc-dark { grid-template-columns: 29% 71% !important; }
.template-law-dark { grid-template-columns: 31% 69% !important; }
.template-red-classic { grid-template-columns: 29% 71% !important; }

.template-cnc-dark .cnc-main h2,
.template-law-dark .law-main h2,
.template-red-classic .header-line h2 {
    font-size: 28px !important;
}

.template-cnc-dark .cnc-main h3,
.template-law-dark .law-main h3,
.template-red-classic .red-main h3 {
    font-size: 16px !important;
    letter-spacing: 0 !important;
}

.template-cnc-dark .exp-content,
.template-law-dark .exp-content,
.template-red-classic .exp-content,
.template-cnc-dark .exp-date,
.template-law-dark .exp-date,
.template-red-classic .exp-date {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* New 6 CV templates based on references (pixel-oriented pass) */
.cv-studio-paper.template-red-sidebar,
.cv-studio-paper.template-gray-sidebar,
.cv-studio-paper.template-clean-columns,
.cv-studio-paper.template-topband-dark {
    grid-template-columns: 32% 68%;
    background: #f4f4f4;
    gap: 0;
}

.cv-studio-paper.template-wave-magenta,
.cv-studio-paper.template-topband-magenta {
    grid-template-columns: 1fr 1fr;
    background: #f4f4f4;
    gap: 0;
}

.template-red-sidebar .cv-side,
.template-gray-sidebar .cv-side,
.template-clean-columns .cv-side,
.template-topband-dark .cv-side {
    min-height: 100%;
    border-radius: 0;
    padding: 28px 24px;
}

.template-red-sidebar .cv-side { background: #d9361b; color: #fff; }
.template-gray-sidebar .cv-side { background: #d8d8d8; color: #2f2f2f; }
.template-clean-columns .cv-side,
.template-topband-dark .cv-side { background: #ececec; color: #2f2f2f; }

.template-red-sidebar .cv-main,
.template-gray-sidebar .cv-main,
.template-wave-magenta .cv-main,
.template-clean-columns .cv-main,
.template-topband-magenta .cv-main,
.template-topband-dark .cv-main {
    background: transparent;
    border-top: 1px solid #9d9d9d;
    border-radius: 0;
    margin-bottom: 2px;
    padding: 10px 8px 8px;
}

.template-red-sidebar .cv-main h3,
.template-gray-sidebar .cv-main h3,
.template-wave-magenta .cv-main h3,
.template-clean-columns .cv-main h3,
.template-topband-magenta .cv-main h3,
.template-topband-dark .cv-main h3 {
    font-size: 15px;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.template-gray-sidebar .cv-main h3,
.template-wave-magenta .cv-main h3,
.template-topband-magenta .cv-main h3 { color: #b51f82; }
.template-red-sidebar .cv-main h3,
.template-clean-columns .cv-main h3,
.template-topband-dark .cv-main h3 { color: #222; }

.template-red-sidebar .cv-side h2,
.template-gray-sidebar .cv-side h2,
.template-clean-columns .cv-side h2,
.template-topband-dark .cv-side h2 {
    font-size: 21px;
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.template-red-sidebar .role-line,
.template-gray-sidebar .role-line,
.template-clean-columns .role-line,
.template-topband-dark .role-line {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.template-red-sidebar .cv-side h3,
.template-gray-sidebar .cv-side h3,
.template-clean-columns .cv-side h3,
.template-topband-dark .cv-side h3 {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin: 14px 0 8px;
    text-transform: uppercase;
}

.template-red-sidebar .profile-photo-circle,
.template-gray-sidebar .profile-photo-circle,
.template-wave-magenta .profile-photo-circle,
.template-clean-columns .profile-photo-circle,
.template-topband-dark .profile-photo-circle {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: #e9e9e9;
    width: 92px;
    height: 92px;
}

.template-red-sidebar .icon-list li,
.template-gray-sidebar .icon-list li,
.template-clean-columns .icon-list li,
.template-topband-dark .icon-list li {
    font-size: 10px;
    margin-bottom: 6px;
}

.template-red-sidebar .experience-item,
.template-gray-sidebar .experience-item,
.template-clean-columns .experience-item,
.template-topband-dark .experience-item {
    grid-template-columns: 130px 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.template-red-sidebar .exp-date,
.template-gray-sidebar .exp-date,
.template-clean-columns .exp-date,
.template-topband-dark .exp-date {
    font-size: 10px;
    font-weight: 600;
}

.template-red-sidebar .exp-content,
.template-gray-sidebar .exp-content,
.template-clean-columns .exp-content,
.template-topband-dark .exp-content {
    font-size: 10px;
    line-height: 1.35;
}

.template-red-sidebar .exp-content strong,
.template-gray-sidebar .exp-content strong,
.template-clean-columns .exp-content strong,
.template-topband-dark .exp-content strong {
    font-size: 12px;
}

.template-red-sidebar .skill-bars p,
.template-gray-sidebar .skill-bars p,
.template-clean-columns .skill-bars p,
.template-topband-dark .skill-bars p {
    color: inherit;
    font-size: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 5px;
}

.template-wave-magenta .cv-hero {
    grid-column: 1 / -1;
    min-height: 175px;
    background:
        radial-gradient(circle at 5% 12%, #c82596 0, #c82596 38%, transparent 39%),
        linear-gradient(135deg, #b7259a 0%, #e03ea4 100%);
    color: #fff;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    padding: 20px 24px;
}

.template-wave-magenta .cv-hero .hero-left h1 { font-size: 24px; margin-bottom: 2px; }
.template-wave-magenta .cv-hero .hero-left p { font-size: 11px; letter-spacing: 0.04em; font-weight: 700; }
.template-wave-magenta .cv-side { background: transparent; color: #4f2f64; border-radius: 0; }

.template-clean-columns .clean-head {
    grid-column: 1 / -1;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #b6b6b6;
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    padding: 10px 8px;
}

.template-clean-columns .clean-head h1 { font-size: 22px; letter-spacing: 0.05em; }
.template-clean-columns .clean-head p { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }

.template-topband-magenta .topband-block,
.template-topband-dark .topband-block {
    grid-column: 1 / -1;
    border-radius: 0;
    color: #fff;
}

.template-topband-magenta .topband-block {
    background: #b92c83;
    padding: 16px 22px 18px;
    min-height: 164px;
}

.template-topband-dark .topband-block.dark {
    background: #474a44;
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    min-height: 124px;
    padding: 14px 22px;
}

.template-topband-magenta .topband-block h1 { font-size: 26px; line-height: 1.06; margin-top: 8px; }
.template-topband-magenta .topband-block h1 span { font-size: 16px; font-weight: 600; }
.template-topband-dark .topband-block h1 { font-size: 20px; line-height: 1.08; }
.template-topband-dark .topband-user p { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }

.template-topband-magenta .topband-contact,
.template-topband-magenta .topband-address { font-size: 10px; font-weight: 600; }

.template-topband-magenta .left-column { grid-column: 1; }
.template-topband-magenta .right-column { grid-column: 2; }
.template-topband-magenta .full-row { grid-column: 1 / -1; }

.template-topband-magenta .tag-list,
.template-gray-sidebar .tag-list,
.template-topband-dark .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-topband-magenta .tag-list span,
.template-gray-sidebar .tag-list span,
.template-topband-dark .tag-list span {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    background: #dedede;
    color: #2f2f2f;
    font-weight: 700;
}

@media print {
    body, html {
        background: #fff !important;
    }

    header, footer, .cv-studio-tools, .cv-studio-properties, .cv-studio-canvas-toolbar {
        display: none !important;
    }

    .container, .cv-studio-layout, .cv-studio-canvas-wrap, .cv-studio-canvas-scroll {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        min-height: 0 !important;
    }

    .cv-studio-paper {
        transform: none !important;
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .cv-studio-block {
        border: none !important;
        background: transparent !important;
    }
}

/* Contact — başarı ekranı */
.contact-success {
    display: none;
    text-align: center;
    padding: 28px 20px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid #0f172a;
    box-shadow: 4px 4px 0 #0f172a;
    background: linear-gradient(165deg, #ecfdf5 0%, #ffffff 55%);
    position: relative;
    overflow: hidden;
}

.contact-success.is-visible {
    display: block;
    animation: contactSuccessIn 0.45s ease both;
}

@keyframes contactSuccessIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.contact-success-orb {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    top: -60px;
    right: -40px;
    pointer-events: none;
}

.contact-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #10b981;
    color: #fff;
    font-size: 32px;
    border: 2px solid #0f172a;
    box-shadow: 3px 3px 0 #0f172a;
    position: relative;
    animation: contactPop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes contactPop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.contact-success-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    border: 2px solid #0f172a;
    box-shadow: 2px 2px 0 #0f172a;
    background: #dcfce7;
    color: #166534;
    margin-bottom: 12px;
}

.contact-success h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.contact-success-body {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0 auto 10px;
    max-width: 36ch;
}

.contact-success-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 auto 18px;
    max-width: 34ch;
    line-height: 1.5;
}

.contact-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.contact-success-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-success-mail a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.contact-success-mail a:hover {
    text-decoration: underline;
}
