/* ShareCV - Mobil Oncelikli Responsive Stil */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.25s ease;
    --max-width: 1200px;
    --container-padding: 16px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== TYPOGRAPHY (Mobile First) ===== */
h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }

/* ===== BUTTONS (Touch Friendly) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    -webkit-user-select: none;
    user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-800);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
    min-height: 52px;
    width: 100%;
}

/* ===== FORMS (Mobile Optimized) ===== */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    font-family: inherit;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder { color: var(--gray-400); }

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

/* Form row - mobile stacked */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success { background: #d1fae5; color: #065f46; border-color: var(--success); }
.alert-error { background: #fee2e2; color: #991b1b; border-color: var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-color: var(--warning); }

/* ===== NAVBAR (Mobile Hamburger) ===== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: relative;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.navbar-brand svg { width: 26px; height: 26px; }

/* Hamburger Button */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.navbar-toggle:hover { background: var(--gray-100); }

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
.navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    list-style: none;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.navbar-menu.active { right: 0; }

.navbar-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Overlay */
.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar-overlay.active { opacity: 1; visibility: visible; }

/* Lang Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.lang-switcher a {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    text-align: center;
    flex: 1;
}

.lang-switcher a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px var(--container-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.hero .btn-primary:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
}

/* ===== FEATURES ===== */
.features {
    padding: 50px var(--container-padding);
    background: var(--white);
}

.features-container { max-width: var(--max-width); margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 { font-size: 1.5rem; margin-bottom: 10px; }

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

.feature-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.feature-card:active { transform: scale(0.98); }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; color: var(--white); }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 50px var(--container-padding);
    background: var(--gray-50);
}

.steps-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    text-align: center;
    padding: 24px 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; }

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 50px var(--container-padding);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: var(--white);
}

.cta-section h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 1rem; }
.cta-section .btn { background: var(--white); color: var(--primary); width: 100%; }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    box-shadow: var(--shadow-xl);
}

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h1 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-header p { color: var(--gray-500); font-size: 0.9rem; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== DASHBOARD ===== */
.dashboard {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px var(--container-padding) 40px;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header h1 { font-size: 1.4rem; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.purple { background: #ede9fe; color: var(--secondary); }
.stat-icon svg { width: 20px; height: 20px; }

.stat-info h3 { font-size: 1.3rem; margin-bottom: 2px; }
.stat-info p { font-size: 0.8rem; color: var(--gray-500); }

/* ===== CV GRID ===== */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.cv-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.cv-preview {
    height: 160px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cv-preview img { width: 100%; height: 100%; object-fit: cover; }

.template-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.cv-info { padding: 18px; }
.cv-info h3 { font-size: 1rem; margin-bottom: 8px; }

.cv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.cv-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

.cv-actions .btn { padding: 8px; font-size: 0.8rem; min-height: 36px; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

.empty-state svg { width: 56px; height: 56px; color: var(--gray-300); margin: 0 auto 16px; }
.empty-state h3 { margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { margin-bottom: 20px; font-size: 0.9rem; }

/* ===== CV EDIT PAGE ===== */
.cv-edit {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px var(--container-padding) 40px;
}

.cv-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cv-form-header {
    padding: 18px 16px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-bottom: 1px solid var(--gray-100);
}

.cv-form-header h3 { font-size: 1rem; }

.cv-form-body { padding: 16px; }

.cv-form-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.cv-form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
}

.section-title svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* ===== TABS (Mobile Scrollable) ===== */
.tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    min-height: 44px;
}

.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== TEMPLATE GRID ===== */
.template-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.template-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.template-option.selected { border-color: var(--primary); background: var(--primary-light); }
.template-option img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; }
.template-option h4 { font-size: 0.9rem; }
.template-option p { font-size: 0.8rem; }

/* ===== DYNAMIC ITEMS ===== */
.dynamic-list { display: flex; flex-direction: column; gap: 12px; }

.dynamic-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px;
    position: relative;
}

.dynamic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.dynamic-item-title { font-weight: 600; font-size: 0.9rem; word-break: break-word; }

.dynamic-item-actions { display: flex; gap: 4px; flex-shrink: 0; }

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: var(--transition);
    min-height: 36px;
}

.icon-btn:hover { background: var(--gray-200); color: var(--gray-800); }
.icon-btn.danger:hover { background: #fee2e2; color: var(--danger); }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-header h3 { font-size: 1.05rem; }

.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; }
.modal-footer .btn { flex: 1; }

/* ===== CV PUBLIC VIEW ===== */
.cv-public { background: var(--gray-100); min-height: 100vh; padding: 0; }

.cv-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cv-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cv-toolbar-left { display: flex; align-items: center; gap: 10px; }
.cv-toolbar-brand { font-weight: 700; font-size: 1rem; }
.cv-toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-toolbar-right .btn { font-size: 0.8rem; padding: 8px 12px; min-height: 36px; }

/* ===== TEMPLATES ===== */

/* Modern Template */
.template-modern { font-family: 'Inter', sans-serif; color: var(--gray-800); }

.template-modern .cv-header {
    background: linear-gradient(135deg, var(--gray-900), var(--primary-dark));
    color: var(--white);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.template-modern .cv-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.template-modern .cv-header-info h1 { font-size: 1.6rem; color: var(--white); margin-bottom: 4px; }
.template-modern .cv-title { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 12px; }

.template-modern .cv-contact-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.template-modern .cv-contact-bar span { display: flex; align-items: center; gap: 5px; }

.template-modern .cv-body {
    padding: 28px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.template-modern .cv-main h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.template-modern .cv-section { margin-bottom: 24px; }

.template-modern .experience-item { margin-bottom: 16px; }

.template-modern .experience-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.template-modern .experience-title { font-weight: 600; font-size: 0.95rem; }
.template-modern .experience-company { color: var(--gray-500); font-size: 0.85rem; }
.template-modern .experience-date { font-size: 0.8rem; color: var(--gray-400); }
.template-modern .experience-desc { font-size: 0.88rem; color: var(--gray-600); margin-top: 6px; line-height: 1.6; }

.template-modern .cv-sidebar h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.template-modern .skill-item { margin-bottom: 10px; }

.template-modern .skill-name {
    font-size: 0.88rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.template-modern .skill-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.template-modern .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.template-modern .language-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem;
}

.template-modern .project-item { margin-bottom: 14px; }
.template-modern .project-name { font-weight: 600; font-size: 0.9rem; }
.template-modern .project-desc { font-size: 0.82rem; color: var(--gray-500); margin-top: 4px; }
.template-modern .project-tech { font-size: 0.78rem; color: var(--primary); margin-top: 4px; }

/* Classic Template */
.template-classic { font-family: 'Georgia', serif; color: var(--gray-900); }

.template-classic .cv-header {
    text-align: center;
    padding: 32px 20px;
    border-bottom: 3px double var(--gray-800);
    margin: 0 16px;
}

.template-classic .cv-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--gray-800);
}

.template-classic .cv-header h1 { font-size: 1.7rem; font-weight: 400; letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase; }
.template-classic .cv-title { font-size: 1rem; color: var(--gray-600); font-style: italic; margin-bottom: 12px; }

.template-classic .cv-contact-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.template-classic .cv-body { padding: 28px 20px; }

.template-classic h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--gray-800);
    padding-bottom: 8px;
    margin-bottom: 16px;
    margin-top: 28px;
    color: var(--gray-900);
}

.template-classic h2:first-of-type { margin-top: 0; }
.template-classic .cv-section { margin-bottom: 20px; }

.template-classic .experience-item,
.template-classic .education-item { margin-bottom: 16px; }

.template-classic .experience-date { font-size: 0.82rem; color: var(--gray-500); font-style: italic; margin-bottom: 4px; }
.template-classic .experience-title { font-weight: 600; font-size: 0.95rem; }
.template-classic .experience-company { color: var(--gray-600); font-size: 0.88rem; }
.template-classic .experience-desc { font-size: 0.88rem; color: var(--gray-600); margin-top: 6px; line-height: 1.6; }

.template-classic .skills-list { display: flex; flex-wrap: wrap; gap: 8px; }
.template-classic .skill-tag { background: var(--gray-100); padding: 4px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; border: 1px solid var(--gray-200); }
.template-classic .language-item { display: inline-flex; margin-right: 20px; margin-bottom: 8px; font-size: 0.9rem; }
.template-classic .language-name { font-weight: 600; margin-right: 6px; }

/* Minimal Template */
.template-minimal { font-family: 'Inter', sans-serif; color: var(--gray-800); max-width: 700px; margin: 0 auto; padding: 32px 20px; }

.template-minimal .cv-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }

.template-minimal .cv-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }

.template-minimal h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.5px; }
.template-minimal .cv-title { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 12px; }

.template-minimal .cv-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.template-minimal h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
    margin-bottom: 14px;
    margin-top: 28px;
}

.template-minimal .cv-section { margin-bottom: 20px; }

.template-minimal .experience-item,
.template-minimal .education-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-50); }

.template-minimal .experience-item:last-child,
.template-minimal .education-item:last-child { border-bottom: none; }

.template-minimal .experience-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.template-minimal .experience-title { font-weight: 600; font-size: 0.95rem; }
.template-minimal .experience-company { color: var(--gray-500); font-size: 0.88rem; }
.template-minimal .experience-date { font-size: 0.78rem; color: var(--gray-400); }
.template-minimal .experience-desc { font-size: 0.88rem; color: var(--gray-600); margin-top: 8px; line-height: 1.6; }

.template-minimal .skills-list { display: grid; grid-template-columns: 1fr; gap: 6px; }
.template-minimal .skill-item { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 4px 0; }
.template-minimal .language-item { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 5px 0; border-bottom: 1px solid var(--gray-50); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 32px var(--container-padding);
    text-align: center;
}

.site-footer p { color: var(--gray-500); font-size: 0.85rem; }

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.site-footer-links a { color: var(--gray-400); font-size: 0.8rem; }
.site-footer-links a:hover { color: var(--white); }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    font-size: 0.9rem;
    pointer-events: all;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CHECKBOX ===== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-height: 44px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* ===== PRINT ===== */
@media print {
    .navbar, .cv-toolbar, .site-footer, .hero-buttons, .navbar-toggle, .navbar-overlay { display: none !important; }
    .cv-public { padding: 0; background: white; }
    .cv-container { box-shadow: none; max-width: 100%; border-radius: 0; }
    body { background: white; }
    .template-modern .cv-body { grid-template-columns: 1fr 280px; gap: 36px; }
}

/* ============================================================
   TABLET & UP (min-width: 640px)
   ============================================================ */
@media (min-width: 640px) {
    :root { --container-padding: 24px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .btn-lg { width: auto; }

    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: row; justify-content: center; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .cv-grid { grid-template-columns: repeat(2, 1fr); }

    .template-grid { grid-template-columns: repeat(3, 1fr); }

    .form-row {
        flex-direction: row;
        gap: 16px;
    }
    .form-row .form-group { flex: 1; }

    .cv-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }

    .page-header { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
   DESKTOP (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
    :root { --container-padding: 32px; }

    .navbar-toggle, .navbar-overlay { display: none !important; }

    .navbar-container { height: 64px; }

    .navbar-brand { font-size: 1.5rem; }
    .navbar-brand svg { width: 28px; height: 28px; }

    .navbar-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        background: transparent;
        right: auto;
        overflow: visible;
    }

    .navbar-menu a { padding: 8px 16px; font-size: 0.9rem; }

    .lang-switcher {
        border-left: 1px solid var(--gray-200);
        margin-left: 12px;
        padding-left: 12px;
        padding-top: 0;
        margin-top: 0;
        border-top: none;
    }

    .lang-switcher a { flex: none; padding: 4px 10px; border: none; }

    .hero { padding: 80px var(--container-padding); }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.15rem; }

    .features { padding: 80px var(--container-padding); }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

    .how-it-works { padding: 80px var(--container-padding); }
    .steps-container { flex-direction: row; gap: 32px; }
    .step { flex: 1; min-width: 200px; padding: 32px 24px; }

    .cta-section { padding: 70px var(--container-padding); }
    .cta-section h2 { font-size: 1.9rem; }
    .cta-section .btn { width: auto; }

    .auth-card { padding: 40px 36px; }

    .dashboard { padding: 40px var(--container-padding); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

    .cv-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .cv-actions .btn { font-size: 0.85rem; }

    .cv-edit { padding: 40px var(--container-padding); }
    .cv-form-header { padding: 24px; flex-direction: row; align-items: center; justify-content: space-between; }
    .cv-form-body { padding: 24px; }

    .template-modern .cv-header {
        flex-direction: row;
        text-align: left;
        padding: 48px;
        gap: 32px;
    }
    .template-modern .cv-photo { width: 140px; height: 140px; }
    .template-modern .cv-header-info h1 { font-size: 2.2rem; }
    .template-modern .cv-body { grid-template-columns: 1fr 280px; gap: 48px; padding: 40px 48px; }
    .template-modern .experience-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }

    .template-classic .cv-header { padding: 48px; margin: 0 48px; }
    .template-classic .cv-photo { width: 120px; height: 120px; }
    .template-classic .cv-header h1 { font-size: 2.4rem; }
    .template-classic .cv-body { padding: 40px 48px; }
    .template-classic .experience-item,
    .template-classic .education-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }

    .template-minimal { padding: 60px 48px; }
    .template-minimal .cv-photo { width: 80px; height: 80px; }
    .template-minimal h1 { font-size: 2rem; }
    .template-minimal .experience-header { flex-direction: row; justify-content: space-between; align-items: baseline; }
    .template-minimal .skills-list { grid-template-columns: repeat(2, 1fr); }

    .cv-container { border-radius: var(--radius-lg); }
    .cv-toolbar { flex-direction: row; padding: 16px 24px; }

    .modal { border-radius: var(--radius-lg); width: 100%; max-width: 600px; }

    .toast-container { left: auto; }
}

/* ============================================================
   LARGE DESKTOP (min-width: 1280px)
   ============================================================ */
@media (min-width: 1280px) {
    .cv-grid { grid-template-columns: repeat(4, 1fr); }
}
