:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1e1e1e;
    --border: #2a2a2a;
    --text: #e8e8e8;
    --text-dim: #888;
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --danger: #e74c3c;
    --success: #2ecc71;
    --radius: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: var(--font);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-full { width: 100%; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.accent { color: var(--accent); }

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--accent);
}

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

.api-preview {
    margin: 40px 0;
    text-align: center;
}

.api-preview h2 { margin-bottom: 12px; font-size: 20px; }

.code-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    display: inline-block;
}

.code-block code {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent);
}

.auth-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-card h1 { font-size: 24px; margin-bottom: 24px; text-align: center; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.form-group small { font-size: 12px; color: var(--text-dim); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}

textarea { resize: vertical; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dim);
}

.dashboard { padding: 30px 0; }

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dash-header h1 { font-size: 28px; }

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 24px;
}

.stat-num { font-size: 24px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-dim); }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.dash-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.dash-section h2 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.dash-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tag {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.tag small { color: var(--text-dim); }

.inline-form {
    display: flex;
    gap: 8px;
    align-items: end;
}

.inline-form input { flex: 2; }
.inline-form select { flex: 1; }

.list-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-item small { color: var(--text-dim); font-size: 12px; }

.btn-delete {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
    padding: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.cv-links { display: flex; gap: 8px; }

.profile-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-link-box code {
    background: var(--surface-2);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 13px;
    flex: 1;
}

.public-profile { padding: 40px 0; }

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--accent);
}

.profile-header h1 { font-size: 32px; }

.verified-badge {
    color: var(--success);
    font-size: 20px;
}

.profile-headline { color: var(--text-dim); font-size: 18px; margin-top: 4px; }

.profile-meta {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
}

.profile-section {
    margin-bottom: 32px;
}

.profile-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.profile-bio { line-height: 1.7; }

.timeline-item {
    padding: 12px 0;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin-bottom: 12px;
}

.timeline-item h3 { font-size: 15px; }

.timeline-company { color: var(--text-dim); font-size: 14px; }

.timeline-date { color: var(--text-dim); font-size: 12px; }

.timeline-desc { margin-top: 6px; font-size: 14px; line-height: 1.6; }

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
}

.project-card h3 { font-size: 15px; margin-bottom: 4px; }
.project-card p { font-size: 14px; color: var(--text-dim); }
.project-card a { font-size: 13px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

.cert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-card span { font-size: 12px; color: var(--text-dim); }

.search-page { padding: 40px 0; text-align: center; }
.search-page h1 { margin-bottom: 20px; }

.search-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.search-bar input {
    max-width: 250px;
}

.search-results { text-align: left; }

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card h3 { font-size: 15px; }
.result-card p { font-size: 13px; color: var(--text-dim); }

.message-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.message-card {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.message-card h1 { margin-bottom: 12px; }
.message-card p { margin-bottom: 20px; color: var(--text-dim); }

.admin-dashboard { padding: 30px 0; }
.admin-dashboard h1 { margin-bottom: 16px; }

.admin-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-nav a {
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--surface-2);
    color: var(--text);
}

.admin-nav a:hover { background: var(--border); text-decoration: none; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-card h3 { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.stat-card .stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; }

.log-entries { max-height: 600px; overflow-y: auto; }

.log-line {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 4px;
    font-family: var(--mono);
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 32px; }
    .hero-actions { flex-direction: column; }
    .form-row { flex-direction: column; }
    .dash-grid { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-bar input { max-width: 100%; }
}
