/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS  —  dark-gray + cyan theme
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Palette */
    --cyan:        #00e5ff;
    --cyan-dim:    #00b8d4;
    --cyan-glow:   rgba(0,229,255,.18);
    --cyan-glow2:  rgba(0,229,255,.08);
    --dark:        #111318;
    --dark2:       #181b22;
    --surface:     #1e2130;
    --surface2:    #252a3a;
    --surface3:    #2d3347;
    --border:      rgba(255,255,255,.07);
    --border-cyan: rgba(0,229,255,.2);
    --text:        #b8c0d8;
    --text-muted:  #5a6480;
    --text-bright: #e8ecf8;
    --danger:      #ff5f7e;
    --success:     #00e5a0;
    --accent:      var(--cyan);
    --accent-dim:  var(--cyan-dim);
    --accent-glow: var(--cyan-glow);
    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 8px 32px rgba(0,0,0,.5);
    --shadow-cyan: 0 0 24px rgba(0,229,255,.15);
    --transition:  .2s ease;
    --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* Night sky canvas — fixed behind everything */
#night-sky {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

body {
    font-family: var(--font);
    background: var(--dark);
    position: relative;
    z-index: 1;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #5ef3ff; }
h1,h2,h3,h4 { color: var(--text-bright); line-height: 1.2; }

/* Icons */
.lucide-icon {
    display: inline-block; vertical-align: middle;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.ci-icon .lucide-icon { color: var(--cyan); }
.alert-icon .lucide-icon { color: var(--success); }
.collab-empty-icon .lucide-icon { color: var(--text-muted); opacity: .5; margin-bottom: 1rem; }
.project-icon .lucide-icon { 
    color: var(--text-muted); 
    transition: color var(--transition), transform var(--transition);
}
.project-card:hover .project-icon .lucide-icon { 
    color: var(--cyan); 
    transform: translateY(-2px) scale(1.05);
}
.link-icon { color: var(--text-muted); transition: color var(--transition); display: inline-flex; }
.link-icon:hover { color: var(--cyan); }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.accent { color: var(--cyan); }

/* ── CSS-only entrance animations (no JS observer needed) ─────────────────── */
@keyframes animSlide {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes animScale {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.anim-slide {
    animation: animSlide .55s cubic-bezier(.4,0,.2,1) both;
}
.anim-scale {
    animation: animScale .5s cubic-bezier(.4,0,.2,1) both;
}

/* stagger delays */
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .19s; }
.d4 { animation-delay: .26s; }
.d5 { animation-delay: .33s; }
.d6 { animation-delay: .40s; }

/* Keep old reveal classes as no-ops so nothing breaks if any remain */
.reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(17,19,24,.82);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: .85rem 0;
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.4); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.15rem; font-weight: 700; color: var(--text-bright);
    letter-spacing: -.01em;
}
.brand-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan-glow);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 8px var(--cyan), 0 0 16px var(--cyan-glow); }
    50%      { box-shadow: 0 0 16px var(--cyan), 0 0 32px var(--cyan-glow); }
}
.header-nav { display: flex; align-items: center; gap: .15rem; }
.header-nav a {
    color: var(--text-muted); padding: .4rem .8rem; border-radius: 6px;
    font-size: .875rem; font-weight: 500;
    transition: color var(--transition), background var(--transition);
}
.header-nav a:hover { color: var(--text-bright); background: var(--surface2); }
.header-nav .nav-cta {
    color: var(--cyan); border: 1px solid var(--border-cyan);
    margin-left: .25rem;
}
.header-nav .nav-cta:hover { background: var(--cyan-glow); color: var(--cyan); }

/* ── Section Base ─────────────────────────────────────────────────────────── */
.section { padding: 7rem 0; position: relative; z-index: 1; }
.section.alt { background: rgba(24,27,34,.82); backdrop-filter: blur(2px); }
.section-header { margin-bottom: 3.5rem; }
.section-tag {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--cyan);
    background: var(--cyan-glow2); border: 1px solid var(--border-cyan);
    padding: .3rem .85rem; border-radius: 20px; margin-bottom: .85rem;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.section-header p { color: var(--text-muted); margin-top: .5rem; max-width: 520px; }

/* Title with count badge */
.title-with-count { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cyan-glow2); border: 1px solid var(--border-cyan);
    color: var(--cyan); font-size: .85rem; font-weight: 700;
    padding: .15rem .75rem; border-radius: 20px;
    box-shadow: 0 0 12px var(--cyan-glow2);
    animation: badge-pulse 3s infinite;
}
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px var(--cyan-glow2); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px var(--cyan-glow); }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 7rem 0 5rem;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,.12) 0%, transparent 70%);
    animation: float1 8s ease-in-out infinite;
}
.hero-bg::after {
    content: '';
    position: absolute; bottom: -150px; left: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,111,255,.1) 0%, transparent 70%);
    animation: float2 10s ease-in-out infinite;
}
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,20px) scale(1.05); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-25px) scale(1.08); } }

.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 4rem; position: relative; }
.hero-text { flex: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .85rem; color: var(--cyan); font-weight: 500;
    margin-bottom: 1rem; letter-spacing: .04em;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 24px; height: 1px; background: var(--cyan);
}
.hero-text h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800; letter-spacing: -.03em;
    margin-bottom: .75rem; line-height: 1.1;
}
.hero-name { color: var(--cyan); position: relative; }
.hero-name::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    border-radius: 2px;
}
.tagline { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.hero-bio { max-width: 500px; color: var(--text); margin-bottom: 2.5rem; line-height: 1.75; font-size: .975rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero fade-in */
.hero-text { animation: heroFadeIn .9s cubic-bezier(.4,0,.2,1) both; }
.hero-avatar { animation: heroFadeIn .9s .2s cubic-bezier(.4,0,.2,1) both; }
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: none; }
}

.hero-avatar { flex-shrink: 0; }
.avatar-ring {
    width: 220px; height: 220px; border-radius: 50%;
    background: conic-gradient(var(--cyan), #7c6fff, #ff6b9d, var(--cyan));
    padding: 3px; animation: spin 10s linear infinite;
    filter: drop-shadow(0 0 20px var(--cyan-glow));
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--surface2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; font-weight: 800; color: var(--cyan);
}
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-preview {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--cyan);
    display: block; margin-bottom: 1rem;
}

.scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    animation: bounceHint 2.2s ease-in-out infinite;
    color: var(--text-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.scroll-arrow {
    display: block; width: 18px; height: 18px;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}
@keyframes bounceHint { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--cyan); color: #0a0e14; border: none;
    padding: .8rem 1.85rem; border-radius: var(--radius);
    font-size: .925rem; font-weight: 700; cursor: pointer; letter-spacing: .01em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 0 0 0 var(--cyan-glow);
}
.btn-primary:hover {
    background: #5ef3ff; transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--cyan-glow), 0 0 0 1px var(--border-cyan);
    color: #0a0e14; text-decoration: none;
}
.btn-outline {
    display: inline-flex; align-items: center; gap: .45rem;
    background: transparent; color: var(--text-bright);
    border: 1px solid var(--border); padding: .8rem 1.85rem;
    border-radius: var(--radius); font-size: .925rem; font-weight: 600; cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-outline:hover {
    border-color: var(--cyan); background: var(--cyan-glow2);
    transform: translateY(-2px); text-decoration: none; color: var(--text-bright);
}
.btn-secondary {
    background: var(--surface2); color: var(--text);
    border: 1px solid var(--border); padding: .65rem 1.5rem;
    border-radius: var(--radius); cursor: pointer; font-size: .9rem;
    transition: background var(--transition);
}
.btn-secondary:hover { background: var(--surface3); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm {
    padding: .3rem .75rem; border-radius: 6px;
    border: 1px solid var(--border); background: var(--surface2);
    color: var(--text); cursor: pointer; font-size: .82rem; margin-right: .3rem;
    transition: background var(--transition);
}
.btn-sm:hover { background: var(--surface3); }
.btn-sm.danger { border-color: var(--danger); color: var(--danger); }

/* ── Timeline ─────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
    position: absolute; left: -2.45rem; top: .45rem;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-glow);
}
.timeline-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
    border-color: var(--border-cyan); transform: translateX(5px);
    box-shadow: var(--shadow-cyan);
}
.timeline-meta { margin-bottom: .5rem; }
.tl-period {
    font-size: .78rem; font-weight: 700; color: var(--cyan);
    background: var(--cyan-glow2); border: 1px solid var(--border-cyan);
    padding: .2rem .65rem; border-radius: 20px;
}
.timeline-card h3 { font-size: 1.1rem; margin: .6rem 0 .2rem; }
.tl-company { color: var(--text-muted); font-size: .875rem; margin-bottom: .5rem; }
.tl-desc { color: var(--text); font-size: .925rem; }

/* ── Skills ───────────────────────────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-group {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-group:hover { border-color: var(--border-cyan); box-shadow: var(--shadow-cyan); }
.skill-category {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--cyan); margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .5rem;
}
.skill-category::after { content: ''; flex: 1; height: 1px; background: var(--border-cyan); }
.skill-item { margin-bottom: 1.1rem; }
.skill-label { display: flex; justify-content: space-between; margin-bottom: .45rem; font-size: .875rem; }
.skill-pct { color: var(--cyan); font-size: .78rem; font-weight: 600; }
.skill-bar { background: rgba(255,255,255,.05); border-radius: 4px; height: 5px; overflow: hidden; }
.skill-fill {
    background: linear-gradient(90deg, var(--cyan), #7c6fff);
    height: 100%; border-radius: 4px;
    box-shadow: 0 0 8px var(--cyan-glow);
    /* Animate from 0 to the inline width on render */
    animation: skillGrow .9s .3s cubic-bezier(.4,0,.2,1) both;
}
@keyframes skillGrow {
    from { width: 0 !important; }
    /* 'to' uses the inline style width automatically */
}

/* ── Projects ─────────────────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem;
    display: flex; flex-direction: column; gap: .75rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative; overflow: hidden;
}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.project-card:hover { border-color: var(--border-cyan); transform: translateY(-5px); box-shadow: var(--shadow-cyan); }
.project-card:hover::before { opacity: 1; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; }
.project-icon { font-size: 1.6rem; }
.project-links { display: flex; gap: .5rem; }
.project-links a {
    font-size: 1rem; color: var(--text-muted);
    background: var(--surface2); border: 1px solid var(--border);
    width: 32px; height: 32px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.project-links a:hover { color: var(--cyan); border-color: var(--border-cyan); background: var(--cyan-glow2); text-decoration: none; }
.project-card h3 { font-size: 1.05rem; }
.proj-desc { color: var(--text-muted); font-size: .875rem; flex: 1; line-height: 1.6; }
.tech-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.tech-tag {
    font-size: .72rem; color: var(--cyan);
    background: var(--cyan-glow2); border: 1px solid var(--border-cyan);
    padding: .2rem .6rem; border-radius: 20px;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info p { color: var(--text); line-height: 1.8; margin-bottom: 2rem; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.ci-icon { font-size: 1.1rem; }
.contact-form-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .82rem; color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }
.form-control {
    width: 100%; background: var(--dark2); border: 1px solid var(--border);
    color: var(--text-bright); padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .925rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow2); }
textarea.form-control { resize: vertical; }
.input-description { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .4rem; line-height: 1.4; }
.field-hint { color: var(--cyan); opacity: .7; font-weight: 400; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert-success {
    display: flex; align-items: flex-start; gap: 1rem;
    background: rgba(0,229,160,.08); border: 1px solid rgba(0,229,160,.25);
    color: var(--text-bright); padding: 1.25rem; border-radius: var(--radius);
}
.alert-icon { font-size: 1.4rem; flex-shrink: 0; }
.alert-success strong { display: block; margin-bottom: .25rem; color: var(--success); }
.alert-error {
    background: rgba(255,95,126,.08); border: 1px solid rgba(255,95,126,.25);
    color: var(--text-bright); padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem;
}
.validation-summary { color: var(--danger); font-size: .85rem; margin-bottom: 1rem; }

/* ── Skeleton ─────────────────────────────────────────────────────────────── */
.skeleton-list { display: flex; flex-direction: column; gap: 1rem; }
.skeleton {
    height: 100px;
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
    background-size: 200% 100%; border-radius: var(--radius);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-muted); }
.footer-stack { font-size: .8rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   GITHUB SECTION  —  completely redesigned
   ═══════════════════════════════════════════════════════════════════════════ */

/* Profile banner */
.gh-banner {
    display: flex; align-items: center; gap: 1.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius); padding: 1.5rem 2rem;
    margin-bottom: 2.5rem; flex-wrap: wrap;
    box-shadow: var(--shadow-cyan);
    position: relative; overflow: hidden;
}
.gh-banner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--cyan), #7c6fff, transparent);
}
.gh-banner-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid var(--cyan); object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 16px var(--cyan-glow);
}
.gh-banner-info { flex: 1; min-width: 0; }
.gh-banner-name { font-size: 1.15rem; font-weight: 700; color: var(--text-bright); margin-bottom: .4rem; }
.gh-banner-bio { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; }
.gh-banner-stats { display: flex; flex-wrap: wrap; gap: .6rem; }
.gh-stat-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; color: var(--text-muted);
    background: var(--dark2); border: 1px solid var(--border);
    padding: .25rem .75rem; border-radius: 20px;
}
.gh-stat-chip svg { color: var(--cyan); flex-shrink: 0; }
.gh-stat-chip.highlight { color: var(--cyan); border-color: var(--border-cyan); background: var(--cyan-glow2); }
.gh-banner-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.gh-view-profile {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-cyan); color: var(--cyan);
    font-size: .82rem; font-weight: 600; background: var(--cyan-glow2);
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    white-space: nowrap;
}
.gh-view-profile:hover {
    background: var(--cyan-glow); box-shadow: 0 0 16px var(--cyan-glow);
    transform: translateY(-1px); color: var(--cyan); text-decoration: none;
}

/* Section divider label */
.gh-divider {
    display: flex; align-items: center; gap: .75rem;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1.25rem;
}
.gh-divider svg { color: var(--cyan); }
.gh-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Repo grid */
.gh-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.gh-repos-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.gh-repo-skeleton { height: 180px; border-radius: var(--radius); }

/* Repo card */
.gh-repo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex; flex-direction: column; gap: .7rem;
    position: relative; overflow: hidden;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    cursor: default;
}
.gh-repo-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--cyan-glow2) 0%, transparent 60%);
    opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.gh-repo-card:hover {
    border-color: var(--border-cyan);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0,0,0,.4), var(--shadow-cyan);
}
.gh-repo-card:hover::after { opacity: 1; }

.gh-repo-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.gh-repo-name-row { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.gh-repo-icon { color: var(--text-muted); flex-shrink: 0; }
.gh-repo-title {
    font-weight: 700; font-size: .975rem; color: var(--cyan);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color var(--transition);
}
.gh-repo-title:hover { color: #5ef3ff; text-decoration: none; }
.gh-repo-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.gh-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 7px;
    border: 1px solid var(--border); background: var(--dark2);
    color: var(--text-muted);
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.gh-icon-btn:hover {
    color: var(--cyan); border-color: var(--border-cyan);
    background: var(--cyan-glow2); transform: scale(1.1);
    text-decoration: none;
}

.gh-repo-desc {
    font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.gh-topics { display: flex; flex-wrap: wrap; gap: .35rem; }
.gh-topic {
    font-size: .7rem; color: #58a6ff;
    background: rgba(56,139,253,.08); border: 1px solid rgba(56,139,253,.18);
    padding: .15rem .55rem; border-radius: 20px;
    transition: background var(--transition), border-color var(--transition);
}
.gh-topic:hover { background: rgba(56,139,253,.15); border-color: rgba(56,139,253,.35); }

.gh-repo-footer {
    display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
    font-size: .78rem; color: var(--text-muted);
    padding-top: .6rem; border-top: 1px solid var(--border);
    margin-top: auto;
}
.gh-lang { display: flex; align-items: center; gap: .35rem; }
.gh-lang-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gh-meta-item { display: inline-flex; align-items: center; gap: .3rem; }
.gh-meta-item svg { opacity: .7; }
.gh-updated { margin-left: auto; font-size: .7rem; opacity: .7; }
.gh-empty { color: var(--text-muted); font-size: .9rem; padding: 2rem 0; }

/* ── Contribution Graph ───────────────────────────────────────────────────── */
.gh-contrib-wrap {
    margin-top: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative; overflow: hidden;
}
.gh-contrib-wrap::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--cyan), #7c6fff, transparent);
}

.gh-contrib-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.gh-contrib-title {
    font-size: .95rem; font-weight: 700; color: var(--text-bright);
    display: flex; align-items: center; gap: .5rem;
}
.gh-contrib-title svg { color: var(--cyan); }
.gh-contrib-sub { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }

.gh-streaks { display: flex; flex-wrap: wrap; gap: .6rem; }
.gh-streak {
    display: flex; flex-direction: column; align-items: center;
    background: var(--dark2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: .6rem 1rem; min-width: 100px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.gh-streak:hover { border-color: var(--border-cyan); box-shadow: var(--shadow-cyan); }
.gh-streak-val { font-size: 1.4rem; font-weight: 800; color: var(--cyan); line-height: 1; }
.gh-streak-label { font-size: .68rem; color: var(--text-muted); margin-top: .2rem; text-align: center; }

/* Graph scroll container */
.gh-graph-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
.gh-graph-scroll::-webkit-scrollbar { height: 4px; }
.gh-graph-scroll::-webkit-scrollbar-track { background: var(--dark2); border-radius: 2px; }
.gh-graph-scroll::-webkit-scrollbar-thumb { background: var(--border-cyan); border-radius: 2px; }

.gh-graph-inner { min-width: max-content; }

/* Month labels */
.gh-months {
    display: grid;
    grid-template-columns: repeat(var(--week-count, 53), 14px);
    gap: 3px;
    padding-left: 34px;
    margin-bottom: 5px;
}
.gh-month-lbl { font-size: .65rem; color: var(--text-muted); white-space: nowrap; }

/* Grid body */
.gh-graph-body { display: flex; gap: 5px; }
.gh-day-lbls {
    display: grid; grid-template-rows: repeat(7, 14px);
    gap: 3px; width: 29px; flex-shrink: 0;
    font-size: .62rem; color: var(--text-muted);
    text-align: right; padding-right: 5px; align-items: center;
}
.gh-weeks { display: flex; gap: 3px; }
.gh-week { display: flex; flex-direction: column; gap: 3px; }
.gh-cell {
    width: 14px; height: 14px; border-radius: 3px;
    display: block; cursor: default;
    transition: transform .12s, box-shadow .12s;
    position: relative;
}
.gh-cell:hover { transform: scale(1.4); z-index: 1; }
.gh-cell.has-contrib:hover { box-shadow: 0 0 8px currentColor; }
.gh-cell-empty { background: transparent !important; pointer-events: none; }
.gh-cell-zero { background: rgba(255,255,255,.04); }
.gh-contrib-canvas { display: block; cursor: crosshair; image-rendering: pixelated; }

/* Legend */
.gh-legend {
    display: flex; align-items: center; gap: 4px;
    margin-top: 1rem; font-size: .7rem; color: var(--text-muted);
    justify-content: flex-end;
}
.gh-legend .gh-cell { cursor: default; }
.gh-legend .gh-cell:hover { transform: none; box-shadow: none; }

/* Responsive */
@media (max-width: 900px) {
    .gh-banner { flex-direction: column; align-items: flex-start; }
    .gh-banner-actions { align-items: flex-start; flex-direction: row; }
    .gh-repos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .gh-repos-grid, .gh-repos-skeleton { grid-template-columns: 1fr; }
    .gh-contrib-top { flex-direction: column; }
    .gh-day-lbls { display: none; }
    .gh-months { padding-left: 0; }
}

/* ── Admin Shell ──────────────────────────────────────────────────────────── */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--dark2); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .35rem; border-right: 1px solid var(--border); flex-shrink: 0; }
.admin-brand { font-size: 1.1rem; font-weight: 700; color: var(--cyan); margin-bottom: 1.25rem; padding: .5rem .75rem; }
.admin-sidebar a { color: var(--text-muted); padding: .55rem .75rem; border-radius: 8px; display: block; font-size: .9rem; transition: background var(--transition), color var(--transition); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--surface2); color: var(--text-bright); text-decoration: none; }
.admin-content { flex: 1; padding: 2.5rem; overflow-y: auto; }
.admin-content h1 { margin-bottom: 1.75rem; font-size: 1.6rem; }
.logout-btn { margin-top: auto; background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: .55rem .75rem; border-radius: 8px; cursor: pointer; font-size: .85rem; text-align: left; transition: border-color var(--transition), color var(--transition); }
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .9rem; }
.admin-table th { text-align: left; padding: .75rem 1rem; border-bottom: 2px solid var(--border); color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--surface2); }
.admin-table tr.unread td { color: var(--text-bright); font-weight: 500; }
.edit-form { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; margin: 1.5rem 0; border: 1px solid var(--border); max-width: 620px; }
.edit-form h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.dashboard-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; text-align: center; min-width: 140px; transition: border-color var(--transition); }
.stat-card.highlight { border-color: var(--border-cyan); }
.stat-num { display: block; font-size: 2.4rem; font-weight: 700; color: var(--cyan); }
.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: var(--dark); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2.5rem; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.login-card h2 { margin-bottom: 1.75rem; color: var(--cyan); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; backdrop-filter: blur(6px); }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 640px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin-bottom: .3rem; color: var(--cyan); }
.modal-meta { display: block; font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0 .25rem; transition: color var(--transition); }
.modal-close:hover { color: var(--text-bright); }
.modal-body { padding: 1.5rem; overflow-y: auto; white-space: pre-wrap; line-height: 1.75; flex: 1; color: var(--text); }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Nav Toggle ───────────────────────────────────────────────────────────── */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; z-index: 300; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-bright); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content { flex-direction: column; align-items: center; text-align: center; }
    .hero-avatar { order: -1; }
    .hero-actions { justify-content: center; }
    .hero-bio { margin: 0 auto 2rem; }
    .hero-eyebrow { justify-content: center; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 5rem 0; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(17,19,24,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: .25rem; }
    .header-nav.nav-open { display: flex; }
    .header-nav a { display: block; padding: .65rem 1rem; border-radius: 8px; }
    .header-inner { position: relative; }
    .footer-inner { flex-direction: column; gap: .5rem; text-align: center; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; flex-direction: column; border-right: none; border-bottom: 1px solid var(--border); padding: .75rem 1rem; }
    .admin-sidebar-top { display: flex; justify-content: space-between; align-items: center; }
    .admin-brand { margin-bottom: 0; }
    .sidebar-toggle { display: block; background: none; border: 1px solid var(--border); color: var(--text-muted); padding: .3rem .65rem; border-radius: 6px; cursor: pointer; font-size: 1rem; transition: color var(--transition), border-color var(--transition); }
    .sidebar-toggle:hover { color: var(--text-bright); border-color: var(--cyan); }
    .admin-sidebar-links { display: none; flex-direction: column; gap: .35rem; margin-top: .75rem; }
    .admin-sidebar.sidebar-open .admin-sidebar-links { display: flex; }
    .admin-content { padding: 1.5rem 1rem; }
    .admin-content h1 { font-size: 1.3rem; margin-bottom: 1.25rem; }
    .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 520px; }
    .dashboard-stats { gap: .75rem; }
    .stat-card { min-width: 0; flex: 1 1 calc(50% - .75rem); padding: 1rem; }
    .stat-num { font-size: 1.8rem; }
    .edit-form { padding: 1.25rem; }
    .modal-box { max-height: 92vh; }
    .modal-header { padding: 1rem; }
    .modal-body { padding: 1rem; }
    .modal-footer { padding: .75rem 1rem; }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-bg { display: none; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; justify-content: center; }
    .avatar-ring { width: 150px; height: 150px; }
    .avatar-inner { font-size: 2rem; }
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .skills-grid, .projects-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 1.25rem; }
    .login-card { padding: 1.75rem 1.25rem; }
    .stat-card { flex: 1 1 100%; }
    .timeline { padding-left: 1.5rem; }
    .timeline-dot { left: -1.95rem; }
    .timeline-card { padding: 1rem; }
}
@media (min-width: 769px) {
    .sidebar-toggle { display: none; }
    .admin-sidebar-top { display: block; }
    .admin-sidebar-links { display: flex !important; flex-direction: column; gap: .35rem; }
}

/* ── GitHub Tabs ──────────────────────────────────────────────────────────── */
.gh-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.gh-tab {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.1rem;
    background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted); font-size: .875rem; font-weight: 500;
    cursor: pointer; margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}
.gh-tab:hover { color: var(--text-bright); }
.gh-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.gh-tab svg { opacity: .7; }
.gh-tab.active svg { opacity: 1; }
.gh-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 18px; padding: 0 .4rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 20px; font-size: .68rem; color: var(--text-muted);
}
.gh-tab.active .gh-tab-count { background: var(--cyan-glow2); border-color: var(--border-cyan); color: var(--cyan); }

/* ── Star Map ─────────────────────────────────────────────────────────────── */
.starmap-wrap {
    position: relative;
    width: 100%; height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, rgba(0,229,255,.05) 0%, transparent 65%),
                radial-gradient(ellipse at 80% 80%, rgba(124,111,255,.04) 0%, transparent 50%),
                rgba(10,12,18,.6);
    border: 1px solid var(--border);
}
#starmap-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    cursor: crosshair;
}
.starmap-tooltip {
    position: absolute;
    background: rgba(10,12,18,.92);
    border: 1px solid var(--border-cyan);
    color: var(--text-bright);
    font-size: .75rem; font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0,229,255,.2);
    z-index: 10;
    transform: translate(-50%, -130%);
}
@media (max-width: 640px) {
    .starmap-wrap { height: 340px; }
}

/* ── Constellation legend ─────────────────────────────────────────────────── */
.constellation-legend {
    display: flex; flex-wrap: wrap; gap: .6rem;
    margin-bottom: 1.25rem;
}
.cl-item {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; color: var(--text-muted);
    background: var(--surface2); border: 1px solid var(--border);
    padding: .2rem .65rem; border-radius: 20px;
    cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.cl-item:hover { color: var(--text-bright); border-color: rgba(255,255,255,.2); }
.cl-item.cl-active {
    color: var(--text-bright);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.3);
}
.cl-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}



/* ── Resume button ────────────────────────────────────────────────────────── */
.btn-resume {
    color: var(--cyan) !important;
    border-color: var(--border-cyan) !important;
}
.btn-resume:hover {
    background: var(--cyan-glow2) !important;
    box-shadow: 0 0 16px var(--cyan-glow) !important;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.gh-empty-state {
    display: flex; flex-direction: column; align-items: center;
    gap: .75rem; padding: 3rem 1rem; color: var(--text-muted);
    text-align: center;
}
.gh-empty-state p { font-size: .9rem; }

/* ── Admin Tabs (Connections page) ───────────────────────────────────────── */
.tab-bar {
    display: flex; gap: .5rem; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem; padding-bottom: 0;
}
.tab-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.1rem; background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    color: var(--text-muted); font-size: .875rem; font-weight: 500;
    cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover { color: var(--text-bright); }
.tab-btn.tab-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 18px; padding: 0 .4rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 20px; font-size: .68rem; color: var(--text-muted);
}
.tab-btn.tab-active .tab-badge { background: var(--cyan-glow2); border-color: var(--border-cyan); color: var(--cyan); }

/* ── Status badges ────────────────────────────────────────────────────────── */
.status-badge {
    display: inline-block; padding: .15rem .55rem; border-radius: 20px;
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.status-pending  { background: rgba(255,193,7,.15);  color: #ffc107; border: 1px solid rgba(255,193,7,.3); }
.status-approved { background: rgba(40,167,69,.15);  color: #28a745; border: 1px solid rgba(40,167,69,.3); }
.status-rejected { background: rgba(220,53,69,.15);  color: #dc3545; border: 1px solid rgba(220,53,69,.3); }
.status-flagged  { background: rgba(255,102,0,.15);  color: #ff6600; border: 1px solid rgba(255,102,0,.3); }

/* ── Extra button variants ────────────────────────────────────────────────── */
.btn-sm.success { border-color: #28a745; color: #28a745; }
.btn-sm.warn    { border-color: #ff6600; color: #ff6600; }

/* ── Misc helpers ─────────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.empty-state { color: var(--text-muted); padding: 2rem 0; }
.action-cell { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.field-hint { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

/* ── Approved Collaborators Carousel ─────────────────────────────────────── */
.collab-carousel-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.collab-carousel-wrap:active { cursor: grabbing; }

.collab-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: .5rem .25rem 1rem;
}

.collab-peer-card {
    display: flex; gap: .85rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.1rem;
    width: 240px; flex-shrink: 0; cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.collab-peer-card:hover {
    border-color: var(--border-cyan);
    box-shadow: 0 0 16px var(--cyan-glow);
}
.peer-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--cyan-glow2); border: 1px solid var(--border-cyan);
    color: var(--cyan); font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    text-transform: uppercase;
}
.peer-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; overflow: hidden; }
.peer-name { font-weight: 600; font-size: .9rem; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-link { font-size: .78rem; color: var(--cyan); text-decoration: none; }
.peer-link:hover { text-decoration: underline; }
.peer-message {
    font-size: .78rem; color: var(--text-muted);
    margin: 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.collab-card-skeleton {
    width: 240px; height: 90px; flex-shrink: 0; border-radius: var(--radius);
}
.collab-empty {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 3rem 1rem; color: var(--text-muted); text-align: center;
}
.collab-empty-icon { font-size: 2rem; }
.collab-empty p { font-size: .95rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE VISUAL SIMPLIFICATION  —  clean, professional, no distractions
   Applies only on screens ≤ 768px (phones / small tablets)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Replace animated starfield with a static gradient background ── */
    #night-sky { display: none; }

    body {
        background:
            radial-gradient(ellipse at 20% 10%, rgba(0,229,255,.07) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(124,111,255,.06) 0%, transparent 50%),
            #111318;
    }

    /* ── Stop avatar ring from spinning ── */
    .avatar-ring {
        animation: none;
        background: conic-gradient(var(--cyan), #7c6fff, #ff6b9d, var(--cyan));
    }

    /* ── Remove hero text / avatar fade-in ── */
    .hero-text,
    .hero-avatar {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* ── Remove floating orb animations in hero background ── */
    .hero-bg::before,
    .hero-bg::after {
        animation: none;
    }

    /* ── Remove scroll-hint bounce ── */
    .scroll-hint { animation: none; }

    /* ── Remove card entrance animations (anim-slide / anim-scale) ── */
    .anim-slide,
    .anim-scale {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* ── Remove stagger delays on mobile ── */
    .d1, .d2, .d3, .d4, .d5, .d6 { animation-delay: 0s; }

    /* ── Stop brand dot pulsing (subtle but still costs paint) ── */
    .brand-dot { animation: none; }

    /* ── Reduce backdrop blur on header — expensive on low-end Android ── */
    .site-header { backdrop-filter: blur(8px) saturate(1.1); }
}

/* ── App Loading Screen ───────────────────────────────────────────────────── */
#app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.app-loading-logo {
    font-family: var(--font);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.02em;
}

.app-loading-logo .brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    display: inline-block;
    animation: loading-pulse 1.4s ease-in-out infinite;
}

.app-loading-bar {
    width: 160px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.app-loading-bar-fill {
    height: 100%;
    width: 40%;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan);
    animation: loading-slide 1.4s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes loading-slide {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}
