:root {
    --bg-color: #ffffff;
    --text-color: #111827;
    --secondary-bg: #f3f4f6;
    --card-bg: #ffffff;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
    --shadow: 0 10px 25px -10px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --secondary-bg: #1e293b;
    --card-bg: #1e293b;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --border-color: #334155;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background var(--transition), color var(--transition);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border var(--transition);
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 32px;
    display: block;
}

/* CONTROLS */
.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* THEME SWITCH */
.theme-switch {
    width: 58px;
    height: 30px;
    background: var(--secondary-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 14px;
    flex-shrink: 0;
}

.sun-icon, .moon-icon {
    pointer-events: none;
    z-index: 1;
}

.switch-circle {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

[data-theme="dark"] .switch-circle {
    transform: translateX(28px);
    background: #334155;
}

/* AUTH BUTTONS */
.auth-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Виправлено стилі кнопки Увійти */
.btn-login {
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 15px;
    font-size: 14px;
    transition: var(--transition);
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-signup {
    text-decoration: none;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: white !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-signup:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* USER MENU */
.user-info { display: flex; align-items: center; gap: 12px; background: var(--secondary-bg); padding: 5px 15px; border-radius: 12px; border: 1px solid var(--border-color); flex-shrink: 0; }
.user-email { font-size: 13px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout { background: none; border: none; color: #ef4444; font-weight: 700; cursor: pointer; font-size: 13px; padding: 5px; }

/* MAIN CONTENT */
main { padding-top: 80px; }

.hero {
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero p span {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 18px 36px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-weight: 800;
    font-size: 1.2rem;
}

/* BENEFITS */
.benefits { padding: 40px 0; }
.benefits .section-title { margin-bottom: 30px; font-size: 1.8rem; }
.benefits .card { padding: 30px 20px; }
.benefits .benefit-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.benefits .card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-color); }
.benefits .card p { font-size: 0.95rem; }

/* FOOTER */
footer {
    padding: 30px 0;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    transition: background var(--transition);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info .logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-decoration: none;
    color: var(--text-color);
}

.footer-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social { display: flex; align-items: center; gap: 10px; }

.instagram-link, .telegram-link {
    color: var(--text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.instagram-link svg, .telegram-link svg { width: 24px; height: 24px; }
.instagram-link:hover { color: #E1306C; border-color: #E1306C; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(225, 48, 108, 0.2); }
.telegram-link:hover { color: #229ED9; border-color: #229ED9; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(34, 158, 217, 0.2); }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 2000; }
.modal-overlay.active { display: flex; }
.modal-card { background: var(--card-bg); padding: 40px; border-radius: 24px; width: 90%; max-width: 400px; position: relative; border: 1px solid var(--border-color); color: var(--text-color); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: var(--text-color); }

.auth-error-msg { display: none; padding: 12px; border-radius: 10px; font-size: 13px; margin-bottom: 15px; text-align: center; font-weight: 600; background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.auth-error-msg.active { display: block; }
.auth-error-msg.success { background:rgba(22,163,74,.12); color:#15803d; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.input-group input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font-size: 15px; transition: var(--transition); outline: none; }
.input-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.input-group textarea, .input-group select { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font: inherit; outline: none; }
.input-group textarea:focus, .input-group select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.password-field { position: relative; }
.password-field input { padding-right: 95px; }
.password-toggle { position:absolute; right:9px; top:50%; transform:translateY(-50%); padding:6px 8px; border:0; background:transparent; color:var(--primary-color); cursor:pointer; font:600 12px inherit; }
.auth-forgot { text-align: right; margin: -10px 0 20px; font-size: 13px; }
.auth-forgot a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.auth-forgot a:hover { text-decoration: underline; }
.app-dialog { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100% - 32px)); background: var(--card-bg); color: var(--text-color); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.app-dialog::backdrop { background: rgba(15,23,42,.7); backdrop-filter: blur(3px); }
.dialog-content { padding: 32px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.form-intro { color:var(--text-muted); font-size:14px; line-height:1.55; margin:-4px 0 22px; }
.field-hint { color:var(--text-muted); display:block; margin-top:7px; font-size:12px; }
.application-card { padding:22px; text-align:left; }
.application-heading, .application-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.application-heading h3 { margin-bottom:6px; }
.application-message { white-space:pre-line; line-height:1.55; margin:18px 0; padding:14px; border-radius:12px; background:var(--secondary-bg); color:var(--text-color); }
.application-status { padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; background:rgba(100,116,139,.12); color:var(--text-muted); }
.status-accepted { background:rgba(22,163,74,.12); color:#15803d; }
.status-rejected { background:rgba(220,38,38,.1); color:#b91c1c; }
.application-actions { display:flex; gap:10px; flex-wrap:wrap; }
.support-link { position:fixed; right:24px; bottom:24px; z-index:1500; display:flex; align-items:center; gap:9px; padding:11px 16px 11px 11px; border:0; border-radius:14px; background:linear-gradient(135deg,#2AABEE,#229ED9); color:#fff; text-decoration:none; box-shadow:0 12px 28px rgba(34,158,217,.35); transition:transform .2s ease,box-shadow .2s ease,filter .2s ease; }
.support-link:hover { transform:translateY(-2px); box-shadow:0 16px 34px rgba(34,158,217,.48); filter:brightness(1.04); color:#fff; }
.support-link-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:rgba(255,255,255,.18); }
.support-link strong, .support-link small { display:block; line-height:1.2; }
.support-link strong { font-size:13px; }.support-link small { margin-top:3px; font-size:11px; color:rgba(255,255,255,.88); }
@media (max-width: 600px) { .application-heading, .application-footer { align-items:flex-start; flex-direction:column; } .application-actions { width:100%; } .application-actions button { flex:1; } }
@media (max-width: 600px) { .support-link { right:16px; bottom:16px; padding:11px 13px 11px 11px; } }
.btn-secondary { border: 1px solid var(--border-color); background: transparent; color: var(--text-color); padding: 12px 18px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 600; }
.project-meta { display:flex; gap:8px; flex-wrap:wrap; align-items:center; color:var(--text-muted); font-size:13px; }

/* DASHBOARD NAVIGATION */
.dashboard-shell { display:grid; grid-template-columns:248px minmax(0,1fr); gap:42px; padding-top:112px; padding-bottom:72px; align-items:start; }
.dashboard-sidebar { position:sticky; top:104px; padding:18px 12px; border:1px solid var(--border-color); border-radius:20px; background:var(--card-bg); box-shadow:var(--shadow); }
.dashboard-sidebar-title { margin:0 10px 13px; color:var(--text-muted); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.dashboard-nav { display:grid; gap:4px; }
.dashboard-nav-link { display:flex; align-items:center; width:100%; gap:11px; padding:12px 10px; border:0; border-radius:12px; background:transparent; color:var(--text-color); cursor:pointer; font:600 14px inherit; text-align:left; transition:var(--transition); }
.dashboard-nav-link > span { width:20px; color:var(--text-muted); font-size:18px; text-align:center; }
.dashboard-nav-link:hover { background:var(--secondary-bg); }
.dashboard-nav-link.is-active { background:rgba(37,99,235,.11); color:var(--primary-color); }
.dashboard-nav-link.is-active > span { color:var(--primary-color); }
.nav-count { display:grid; min-width:19px; height:19px; padding:0 5px; margin-left:auto; place-items:center; border-radius:999px; background:var(--primary-color); color:#fff; font-size:11px; }
.dashboard-panel { display:none; animation:dashboardPanel .22s ease; }
.dashboard-panel.is-active { display:block; }
.dashboard-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:28px; }
.dashboard-heading h1 { margin:2px 0 8px; font-size:clamp(28px,4vw,38px); letter-spacing:-.04em; }
.dashboard-heading p:not(.eyebrow) { margin:0; color:var(--text-muted); }
.eyebrow { margin:0; color:var(--primary-color); font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.dashboard-create-btn { flex-shrink:0; border:0; cursor:pointer; }
.dashboard-list { display:grid; gap:16px; }
.dashboard-search { display:block; width:100%; max-width:620px; padding:14px 16px; margin:-8px 0 22px; border:2px solid var(--border-color); border-radius:12px; outline:0; background:var(--bg-color); color:var(--text-color); font:inherit; }
.dashboard-search:focus { border-color:var(--primary-color); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
@keyframes dashboardPanel { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

#submit-auth { width: 100%; margin-top: 10px; padding: 14px; font-size: 16px; }

.auth-switch { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-switch a { display: block; margin-top: 8px; color: var(--primary-color); text-decoration: none; font-weight: 700; transition: var(--transition); padding: 10px; border-radius: 10px; background: var(--secondary-bg); }
.auth-switch a:hover { background: var(--primary-color); color: white !important; }

/* ROLE SELECTOR */
.role-selector { display: flex; gap: 10px; margin-bottom: 15px; }
.role-option { flex: 1; position: relative; cursor: pointer; }
.role-option input { position: absolute; opacity: 0; }
.role-option span { display: block; text-align: center; padding: 10px; border: 2px solid var(--border-color); border-radius: 12px; font-size: 13px; font-weight: 600; transition: var(--transition); }
.role-option input:checked + span { border-color: var(--primary-color); background: rgba(37, 99, 235, 0.05); color: var(--primary-color); }

/* DROPDOWN MENU */
.user-menu-container { position: relative; }
.user-info-btn { display: flex; align-items: center; gap: 10px; background: var(--secondary-bg); padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border-color); cursor: pointer; color: var(--text-color); transition: var(--transition); font-family: inherit; }
.user-info-btn:hover { border-color: var(--primary-color); }
.user-avatar-small { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--primary-color); }
.dropdown-menu { position: absolute; top: calc(100% + 10px); right: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow); width: 220px; display: none; flex-direction: column; padding: 8px; z-index: 1001; }
.dropdown-menu.active { display: flex; }
.dropdown-menu a, .dropdown-menu button { text-decoration: none; color: var(--text-color); padding: 10px 15px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: left; background: none; border: none; cursor: pointer; transition: var(--transition); font-family: inherit; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--secondary-bg); color: var(--primary-color); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 5px 0; }
.dropdown-menu .text-danger { color: #ef4444; }

/* CHAT */
.chat-card { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }
.chat-card h3 { margin-bottom: 4px; }
.chat-card p { color: var(--text-muted); font-size: 14px; }
.chat-unread { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: var(--primary-color); color: #fff; font-size: 11px; font-weight: 700; }
.chat-card .btn-primary { border: 0; cursor: pointer; white-space: nowrap; }
.app-dialog:has(.chat-thread) { width: min(680px, calc(100vw - 24px)); }
.chat-thread { height: min(52vh, 440px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; margin-bottom: 16px; }
.chat-message { align-self: flex-start; max-width: 82%; padding: 10px 13px; border: 1px solid var(--border-color); border-radius: 12px 12px 12px 3px; background: var(--secondary-bg); }
.chat-message-own { align-self: flex-end; border-color: var(--primary-color); border-radius: 12px 12px 3px 12px; background: color-mix(in srgb, var(--primary-color) 12%, var(--card-bg)); }
.chat-message small { display: block; color: var(--text-muted); font-size: 11px; margin-bottom: 4px; }
.chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; }
.chat-compose textarea { flex: 1; resize: vertical; min-height: 46px; max-height: 160px; padding: 10px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-color); background: var(--bg-color); font: inherit; }
.chat-compose .btn-primary { border: 0; cursor: pointer; }

/* ANIMATIONS */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

/* MEDIA QUERIES */
@media (max-width: 992px) {
    /* Keep the signed-in user's menu available on tablets and phones. */
    .auth-group { display: flex; flex-shrink: 0; }
    .hero h1 { font-size: 2.5rem; }
    .dashboard-shell { grid-template-columns:1fr; gap:22px; padding-top:100px; }
    .dashboard-sidebar { position:static; padding:8px; overflow-x:auto; }
    .dashboard-sidebar-title { display:none; }
    .dashboard-nav { display:flex; min-width:max-content; }
    .dashboard-nav-link { width:auto; white-space:nowrap; }
}

.cookie-consent {
    position: fixed;
    z-index: 2000;
    right: 20px;
    bottom: 20px;
    max-width: 480px;
    padding: 20px;
    background: var(--card-bg, #fff);
    color: var(--text-color, #111827);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 10px 25px -10px rgba(0,0,0,.15);
}
.cookie-consent p { margin-bottom: 14px; }
.cookie-consent a { color: var(--primary-color, #2563eb); }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.about, .services, .faq, .legal-page {
    padding-top: 72px;
    padding-bottom: 24px;
}
.about > p, .legal-page > p, .legal-page > h2 {
    max-width: 780px;
    margin: 0 auto 18px;
}
.faq details {
    max-width: 780px;
    margin: 0 auto 12px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { padding-top: 12px; color: var(--text-muted); }
.legal-page { padding-top: 120px; min-height: 100vh; }
.legal-page h1 { margin: 28px 0 12px; }
.legal-page h2 { margin-top: 32px; }

@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .header-content { height: 64px; }
    .logo img { height: 28px; }
    .controls { gap: 6px; }
    /* The 28px dark-theme offset needs the full switch width. */
    .theme-switch { width: 58px; padding: 0 6px; }
    .theme-switch .sun-icon, .theme-switch .moon-icon { font-size: 12px; }
    .auth-group .btn-login { display: none; }
    .auth-group .btn-signup { padding: 8px 10px; font-size: 12px; }
    .user-info-btn { gap: 5px; padding: 5px 7px; }
    .user-email { display: none; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .dropdown-menu { width: 200px; }
    .chat-card { align-items: flex-start; flex-direction: column; }
    .chat-card .btn-primary { width: 100%; }
    .chat-compose { flex-direction: column; }
    .chat-compose textarea, .chat-compose .btn-primary { width: 100%; }
    .dashboard-shell { padding-top:84px; padding-bottom:50px; }
    .dashboard-heading { flex-direction:column; margin-bottom:22px; }
    .dashboard-heading h1 { font-size:29px; }
    .dashboard-create-btn { width:100%; }
    .dashboard-nav-link { padding:10px 9px; font-size:13px; }
    .dashboard-nav-link > span { display:none; }
}
.support-link-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Smart recruitment components */
.verified-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border-radius:999px; color:#087f5b; background:#e7f8ef; font-size:11px; font-weight:700; vertical-align:middle; white-space:nowrap; }
.skill-tags { display:flex; flex-wrap:wrap; gap:6px; }
.skill-tag { padding:4px 8px; border-radius:7px; background:var(--surface-soft, #eef4ff); color:var(--primary-color); font-size:12px; font-weight:600; }
.match-summary { border-left:3px solid #6d5dfc; margin:16px 0; padding:9px 0 9px 12px; }
.match-score { color:#493bc8; font-size:18px; }
.match-summary ul { padding:0; margin:8px 0 0; list-style:none; font-size:13px; line-height:1.65; }
.match-summary .match-label { color:var(--text-muted); font-weight:700; }
.match-gaps { color:#975a16; }
.form-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.check-grid { display:flex; flex-wrap:wrap; gap:8px; font-size:13px; color:var(--text-muted); }
@media (max-width:600px) { .match-summary { margin-top:12px; } }

/* Admin moderation detail cards */
.admin-detail-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:6px 16px; margin-top:12px; padding-top:12px; border-top:1px solid var(--border-color); }
.admin-detail-row { display:flex; flex-direction:column; font-size:12px; }
.admin-detail-label { color:var(--text-muted); }
.admin-detail-value { font-weight:600; }

/* Reusable collapsible accordion (published vacancies, etc.) */
.accordion { border:1px solid var(--border-color); border-radius:14px; background:var(--card-bg); padding:0; overflow:hidden; }
.accordion summary { cursor:pointer; padding:16px 20px; list-style:none; display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:14px; }
.accordion summary::-webkit-details-marker { display:none; }
.accordion summary::before { content:'▸'; color:var(--text-muted); margin-right:4px; transition:transform .15s; }
.accordion[open] summary::before { transform:rotate(90deg); }
.accordion-body { padding:0 20px 20px; }

/* Detail badges (level / experience / format / salary chips shown on cards + detail view) */
.info-badges { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.info-badge { display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:999px; background:var(--secondary-bg); border:1px solid var(--border-color); color:var(--text-color); font-size:12px; font-weight:600; white-space:nowrap; }
.info-badge .info-badge-icon { font-size:12px; opacity:.75; }
.info-badge-accent { background:rgba(37,99,235,.1); border-color:transparent; color:var(--primary-color); }

/* "View details" trigger button used on cards across dashboards */
.btn-details { border:1px solid var(--border-color); background:transparent; color:var(--text-color); padding:9px 14px; border-radius:10px; cursor:pointer; font:600 13px inherit; white-space:nowrap; transition:var(--transition); }
.btn-details:hover { border-color:var(--primary-color); color:var(--primary-color); }
.card-actions-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }

/* Detail modal/card content (vacancy, application, profile, offer) */
.detail-view { text-align:left; }
.detail-view-header { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.detail-view-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.detail-view-title h3 { margin:0; font-size:20px; }
.detail-view-subtitle { color:var(--text-muted); font-size:13px; margin-top:4px; }
.detail-view-budget { font-size:22px; font-weight:800; color:var(--text-color); white-space:nowrap; }
.detail-section { margin-top:20px; }
.detail-section-label { display:block; margin-bottom:8px; color:var(--text-muted); font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.detail-description { white-space:pre-line; line-height:1.6; font-size:14px; }
.detail-empty-note { color:var(--text-muted); font-size:13px; font-style:italic; }
@media (max-width:600px) { .detail-view-header { flex-direction:column; } .detail-view-budget { font-size:19px; } }

/* Sorting control above search/list results */
.dashboard-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin:-8px 0 18px; }
.dashboard-toolbar label { font-size:13px; font-weight:600; color:var(--text-muted); white-space:nowrap; }
.dashboard-sort { padding:10px 14px; border-radius:10px; border:2px solid var(--border-color); background:var(--bg-color); color:var(--text-color); font:600 13px inherit; outline:0; cursor:pointer; }
.dashboard-sort:focus { border-color:var(--primary-color); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
@media (max-width:600px) { .dashboard-toolbar { justify-content:stretch; } .dashboard-sort { flex:1; } .card-actions-row { flex-direction:column; align-items:stretch; } .card-actions-row .btn-details, .card-actions-row .btn-primary, .card-actions-row .btn-secondary { width:100%; text-align:center; } }

/* ---------- Empty / loading states ---------- */
.empty-state, .loading-state { padding:44px 24px; text-align:center; color:var(--text-muted); background:var(--card-bg); border:1px dashed var(--border-color); border-radius:20px; font-size:14px; }
.loading-state { position:relative; padding-left:52px; text-align:left; display:flex; align-items:center; min-height:24px; }
.loading-state::before { content:''; position:absolute; left:22px; width:16px; height:16px; border-radius:50%; border:2px solid var(--border-color); border-top-color:var(--primary-color); animation:linkerSpin .7s linear infinite; }
@keyframes linkerSpin { to { transform:rotate(360deg); } }

/* ---------- Search + filter bar (specialists & vacancies) ---------- */
.search-bar { margin-bottom:14px; }
.search-bar .dashboard-search { margin:0; max-width:none; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:16px; }
.filter-select { padding:9px 12px; border-radius:10px; border:1.5px solid var(--border-color); background:var(--bg-color); color:var(--text-color); font:600 13px inherit; outline:0; cursor:pointer; max-width:210px; }
.filter-select:focus { border-color:var(--primary-color); box-shadow:0 0 0 4px rgba(37,99,235,.1); }
.filter-reset { padding:9px 14px; border-radius:10px; border:1.5px dashed var(--border-color); background:transparent; color:var(--text-muted); font:600 13px inherit; cursor:pointer; transition:var(--transition); }
.filter-reset:hover { border-color:var(--primary-color); color:var(--primary-color); }
.dashboard-toolbar-split { justify-content:space-between; }
.dashboard-toolbar-sort { display:flex; align-items:center; gap:10px; }
.results-count { font-size:13px; color:var(--text-muted); font-weight:600; }
@media (max-width:600px) {
  .filter-bar { gap:8px; }
  .filter-select { flex:1 1 calc(50% - 8px); max-width:none; }
  .filter-reset { flex:1 1 100%; }
  .dashboard-toolbar-split { flex-direction:column; align-items:stretch; gap:10px; }
  .dashboard-toolbar-sort { justify-content:space-between; }
  .dashboard-toolbar-sort .dashboard-sort { flex:1; }
}

/* ---------- Specialist card ---------- */
.specialist-card { padding:26px; text-align:left; display:flex; flex-direction:column; gap:14px; }
.specialist-card-head { display:flex; align-items:center; gap:14px; }
.specialist-avatar { width:52px; height:52px; border-radius:50%; object-fit:cover; flex-shrink:0; background:var(--secondary-bg); }
.specialist-card-title { display:flex; flex-direction:column; gap:2px; min-width:0; }
.specialist-card-title h3 { font-size:17px; margin:0; overflow-wrap:anywhere; }
.specialist-occupation { font-size:13px; color:var(--text-muted); font-weight:600; }
.specialist-meta { font-size:12px; color:var(--text-muted); }
.niche-chips { display:flex; flex-wrap:wrap; gap:6px; }
.niche-chip { padding:4px 9px; border-radius:999px; background:var(--secondary-bg); border:1px solid var(--border-color); color:var(--text-muted); font-size:11.5px; font-weight:600; }
.skill-tag-more { background:transparent; border:1px dashed var(--border-color); color:var(--text-muted); }
.card-empty-hint { color:var(--text-muted); font-size:13px; font-style:italic; margin:0; }
.specialist-card-footer { margin-top:auto; }
.portfolio-link { font-size:13px; font-weight:700; color:var(--primary-color); text-decoration:none; }
.portfolio-link:hover { text-decoration:underline; }
.portfolio-link-muted { color:var(--text-muted); font-weight:600; }

/* ---------- Project (vacancy) card ---------- */
.project-card { padding:28px; text-align:left; display:flex; justify-content:space-between; align-items:flex-start; gap:22px; flex-wrap:wrap; }
.project-card-main { flex:1; min-width:240px; display:flex; flex-direction:column; gap:8px; }
.project-card-main h3 { margin:0; font-size:18px; }
.category-chip { display:inline-block; background:rgba(37,99,235,.1); color:var(--primary-color); padding:5px 10px; border-radius:8px; font-size:12px; font-weight:700; width:fit-content; }
.project-card-desc { color:var(--text-muted); font-size:14px; max-width:600px; margin:0; }
.project-card-side { display:flex; flex-direction:column; gap:10px; align-items:flex-end; flex-shrink:0; }
.project-card-budget { font-size:20px; font-weight:700; white-space:nowrap; }
@media (max-width:600px) {
  .specialist-card { padding:20px; }
  .project-card { padding:20px; flex-direction:column; align-items:stretch; }
  .project-card-side { align-items:stretch; width:100%; }
  .project-card-side .btn-details, .project-card-side .btn-primary { width:100%; text-align:center; }
  .project-card-budget { text-align:left; }
}
