/* ============================================
   WEBMASTER ROBERT ANGEL — style.css
   Responsywny, profesjonalny, 300px+
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Exo+2:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&family=JetBrains+Mono:wght@400;700&display=swap');

/* ─── ZMIENNE CSS ─── */
:root {
    --accent:       #00d4ff;
    --accent2:      #ff6b35;
    --bg:           #0a0e17;
    --bg2:          #0f1623;
    --surface:      #141c2e;
    --surface2:     #1a2540;
    --border:       #1e2d4a;
    --text:         #e8edf5;
    --text-muted:   #7a8ba8;
    --text-dim:     #4a5a78;
    --success:      #00e676;
    --error:        #ff4444;
    --warning:      #ffc107;
    --radius:       12px;
    --radius-sm:    6px;
    --shadow:       0 4px 32px rgba(0,0,0,.45);
    --shadow-sm:    0 2px 12px rgba(0,0,0,.3);
    --transition:   0.25s cubic-bezier(.4,0,.2,1);
    --font-display: 'Bebas Neue', cursive;
    --font-body:    'Exo 2', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --header-h:     70px;
}

/* JASNY MOTYW */
[data-theme="light"], .theme-light {
    --bg:         #f0f4f8;
    --bg2:        #e8ecf2;
    --surface:    #ffffff;
    --surface2:   #f5f7fb;
    --border:     #d0d9e8;
    --text:       #1a2540;
    --text-muted: #5a6a88;
    --text-dim:   #9aabb8;
    --shadow:     0 4px 32px rgba(0,100,200,.12);
    --shadow-sm:  0 2px 12px rgba(0,0,0,.08);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 40px);
}

.section {
    padding: clamp(50px, 8vw, 100px) 0;
}

/* ─── HEADER ─── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(10,14,23,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition);
}
.theme-light .site-header {
    background: rgba(240,244,248,.92);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 clamp(12px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo, .site-logo-svg { width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; }
.logo-placeholder { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(12px, 3.5vw, 16px);
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}
.logo-title {
    font-family: var(--font-mono);
    font-size: clamp(9px, 2vw, 11px);
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: clamp(4px, 2vw, 24px); align-items: center; }
.nav-link {
    font-size: clamp(11px, 1.8vw, 14px);
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 4px;
    position: relative;
    white-space: nowrap;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-admin {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm);
    font-size: 12px;
}
.nav-admin::after { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BANER ─── */
.banner {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-h);
}
.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.banner-bg-default {
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0,212,255,.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 70%, rgba(255,107,53,.12) 0%, transparent 60%),
        var(--bg);
}
/* Animated grid */
.banner-bg-default::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}
.banner-bg-default::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 100%);
}
@keyframes gridMove {
    from { transform: translate(0,0); }
    to   { transform: translate(40px,40px); }
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,14,23,.7) 0%, transparent 60%);
}
.theme-light .banner-overlay {
    background: linear-gradient(to right, rgba(240,244,248,.8) 0%, transparent 60%);
}
.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(12px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.banner-tag {
    font-family: var(--font-mono);
    font-size: clamp(11px, 2vw, 14px);
    color: var(--accent);
    margin-bottom: 16px;
    animation: fadeUp .6s ease both;
}
.banner-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 88px);
    line-height: 1.0;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    animation: fadeUp .8s .1s ease both;
    max-width: 800px;
}
.banner-sub {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 36px;
    animation: fadeUp .8s .2s ease both;
}
.banner-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeUp .8s .3s ease both;
}
.banner-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    animation: fadeUp .8s .4s ease both;
}
.banner-tech span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
}
.banner-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.banner-scroll-hint span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .4; transform: scaleY(.5); } }

/* ─── BTONY ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 32px);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,212,255,.3);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ─── SECTION LABELS & TITLES ─── */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 60px);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}
.title-accent { color: var(--accent); display: block; }
.section-desc {
    color: var(--text-muted);
    font-size: clamp(14px, 2vw, 16px);
    max-width: 600px;
    margin-bottom: 48px;
}

/* ─── O MNIE ─── */
.about { background: var(--bg2); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 2px solid var(--border);
}
.about-photo-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    aspect-ratio: 4/5;
}
.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--accent);
    color: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}
.badge-years { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; }
.badge-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.about-content { padding-top: 8px; }
.about-desc { color: var(--text-muted); margin-bottom: 32px; font-size: clamp(14px, 1.8vw, 16px); }
.about-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: clamp(12px, 1.6vw, 14px);
    font-weight: 600;
    transition: border-color var(--transition), transform var(--transition);
}
.skill-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.skill-icon { font-size: 18px; flex-shrink: 0; }

/* ─── PROJEKTY ─── */
.projects { background: var(--bg); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(16px, 3vw, 28px);
}
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0,212,255,.15);
}
.project-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-img-placeholder {
    width: 100%; height: 100%;
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
}
.project-icon { font-size: 48px; }
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,212,255,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link-btn {
    background: var(--bg);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.project-info { padding: clamp(14px, 3vw, 20px); }
.project-title { font-size: clamp(14px, 2vw, 17px); font-weight: 700; margin-bottom: 6px; }
.project-desc { font-size: clamp(12px, 1.5vw, 14px); color: var(--text-muted); }

/* ─── OPINIE ─── */
.reviews { background: var(--bg2); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: clamp(14px, 3vw, 24px);
}
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(16px, 3vw, 24px);
    transition: border-color var(--transition);
}
.review-card:hover { border-color: var(--accent); }
.review-stars { margin-bottom: 12px; display: flex; gap: 4px; }
.star { color: var(--text-dim); font-size: 18px; }
.star-filled { color: var(--warning); }
.review-text { font-size: clamp(13px, 1.6vw, 15px); color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
    width: 36px; height: 36px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 14px; }
.review-date { display: block; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

/* Formularz opinii */
.add-review-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 40px;
    max-width: 600px;
}
.add-review-form h3 { margin-bottom: 20px; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 16px; }
.stars-input input { display: none; }
.stars-input label { font-size: 30px; color: var(--text-dim); cursor: pointer; transition: color .15s; }
.stars-input label:hover, .stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: var(--warning); }

/* ─── KONTAKT ─── */
.contact { background: var(--bg); }
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
}

/* Formularz kontaktowy */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
input, select, textarea {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(13px, 1.6vw, 15px);
    padding: 12px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--surface); }
#formMsg { margin-top: 14px; font-size: 14px; padding: 10px 14px; border-radius: var(--radius-sm); display: none; }
#formMsg.success { background: rgba(0,230,118,.1); border: 1px solid var(--success); color: var(--success); display: block; }
#formMsg.error { background: rgba(255,68,68,.1); border: 1px solid var(--error); color: var(--error); display: block; }

/* Info kontaktowe */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 32px);
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-icon { font-size: 22px; margin-top: 2px; flex-shrink: 0; }
.contact-label { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.contact-value { font-size: clamp(13px, 2vw, 15px); font-weight: 600; color: var(--text); }
a.contact-value:hover { color: var(--accent); }
.contact-availability {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--success);
    margin-bottom: 20px;
}
.avail-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,230,118,.5); } 50% { box-shadow: 0 0 0 6px rgba(0,230,118,0); } }
.contact-tech-stack { }
.tech-label { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tags span {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent);
    border: 1px solid rgba(0,212,255,.3);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: clamp(30px, 5vw, 50px) 0;
}
.footer-inner { text-align: center; }
.footer-brand { margin-bottom: 20px; }
.footer-name { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: 0.05em; color: var(--text); }
.footer-role { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-dim); font-size: 12px; }
.footer-seo { margin-top: 4px; font-size: 11px; color: var(--text-dim); }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    cursor: pointer;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 999;
    transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.1); }

/* ─── ANIMACJE ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.no-content { color: var(--text-muted); font-style: italic; }

/* ─── ADMIN PANEL STYLES ─── */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}
.admin-sidebar {
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
}
.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}
.admin-sidebar-logo { font-family: var(--font-display); font-size: 20px; color: var(--accent); }
.admin-sidebar-sub { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }
.admin-nav { padding: 16px 0; flex: 1; }
.admin-nav-section { padding: 8px 20px; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: var(--accent);
    background: rgba(0,212,255,.06);
    border-left-color: var(--accent);
}
.admin-nav-link .nav-icon { font-size: 16px; }
.admin-main { margin-left: 240px; flex: 1; min-height: 100vh; background: var(--bg); }
.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px clamp(16px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h1 { font-family: var(--font-display); font-size: clamp(20px, 4vw, 28px); }
.admin-content { padding: clamp(16px, 3vw, 32px); }

/* Admin kards */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: border-color var(--transition);
}
.admin-card:hover { border-color: var(--accent); }
.admin-card-icon { font-size: 32px; margin-bottom: 8px; }
.admin-card-num { font-family: var(--font-display); font-size: 36px; color: var(--accent); }
.admin-card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }

/* Table */
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: clamp(12px, 1.6vw, 14px); }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,212,255,.03); }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-read { background: rgba(0,230,118,.15); color: var(--success); }
.badge-unread { background: rgba(255,193,7,.15); color: var(--warning); }
.badge-approved { background: rgba(0,230,118,.15); color: var(--success); }
.badge-pending { background: rgba(255,193,7,.15); color: var(--warning); }
.badge-admin { background: rgba(0,212,255,.15); color: var(--accent); }
.badge-user { background: rgba(120,140,160,.15); color: var(--text-muted); }
.badge-blocked { background: rgba(255,68,68,.15); color: var(--error); }

/* Admin form */
.admin-form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); margin-bottom: 24px; }
.admin-form-section h3 { margin-bottom: 20px; font-size: 16px; color: var(--text-muted); font-family: var(--font-mono); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Login */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 20px;
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 48px);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-text { font-family: var(--font-display); font-size: 32px; color: var(--accent); }
.login-logo-sub { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.login-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.login-tab { flex: 1; padding: 10px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--bg2); transition: all var(--transition); border: none; font-family: var(--font-body); }
.login-tab.active { background: var(--accent); color: var(--bg); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.alert-error { background: rgba(255,68,68,.1); border: 1px solid var(--error); color: var(--error); }
.alert-success { background: rgba(0,230,118,.1); border: 1px solid var(--success); color: var(--success); }

/* Theme switch admin */
.theme-switch-wrap { display: flex; align-items: center; gap: 12px; }
.theme-switch {
    position: relative; width: 52px; height: 28px;
    background: var(--border); border-radius: 14px; cursor: pointer;
    transition: background var(--transition); border: none;
}
.theme-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 22px; height: 22px;
    background: var(--text);
    border-radius: 50%;
    transition: transform var(--transition);
}
.theme-switch.light-mode { background: var(--accent); }
.theme-switch.light-mode::after { transform: translateX(24px); }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: fadeUp .3s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 22px; padding: 4px; }
.modal-close:hover { color: var(--error); }

/* Sidebar toggle for mobile */
.sidebar-toggle { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-photo-wrap { max-width: 340px; margin: 0 auto 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .admin-topbar { }
}

@media (max-width: 600px) {
    .hamburger { display: flex; }
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--surface);
        border-left: 1px solid var(--border);
        padding: calc(var(--header-h) + 20px) 20px 20px;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 1050;
    }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; gap: 4px; align-items: stretch; }
    .nav-link { font-size: 16px; padding: 12px 8px; }
    .form-row { grid-template-columns: 1fr; }
    .about-skills { grid-template-columns: 1fr; }
    .banner-headline { font-size: clamp(32px, 11vw, 56px); }
    .admin-cards { grid-template-columns: 1fr 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* ─── MIN 300px ─── */
@media (max-width: 380px) {
    .logo-text { display: none; }
    .admin-cards { grid-template-columns: 1fr; }
    .banner-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}
