:root {
  --bg:#0f1724; /* deep slate */
  --card:#ffffff;
  --muted:#9aa4b2;
  --accent:#2dd4bf; /* teal */
  --primary:#0ea5e9; /* sky */
  --glass: rgba(255,255,255,0.06);
  --radius:14px;
  --shadow: 0 6px 18px rgba(2,6,23,0.6);
}
* {
    box-sizing:border-box;
}

html,body { 
    height:100%
}
body {
  margin:0; 
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial; 
  background:linear-gradient(180deg,#071028 0%, #0f1724 100%); 
  color:#e6eef6; 
  -webkit-font-smoothing:antialiased; 
  -moz-osx-font-smoothing:grayscale; 
  padding-bottom:84px;
}
.site-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 28px;
    background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    backdrop-filter: blur(6px);
    box-shadow:var(--shadow);
    border-bottom:1px solid rgba(255,255,255,0.02)
}
.site-brand {
    display:flex;
    gap:12px;
    align-items:center;
    font-weight:600;
    font-size:18px
}
.logo {
    width:38px;
    height:38px;
    fill:var(--accent);
    filter:drop-shadow(0 6px 12px rgba(45,212,191,0.08));
}
.nav-actions .btn {
    font-size:14px;
}
.container {
    max-width:980px;
    margin:28px auto;
    padding:18px;
    display:grid;
    grid-template-columns:1fr;
    gap:20px
}
.panel {
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding:18px;border-radius:12px;
    box-shadow:0 8px 30px rgba(2,6,23,0.6);
    transition:transform .25s ease, box-shadow .25s ease
}
.panel:hover {
    transform:translateY(-6px)
}
.panel-title {
    margin:0 0 12px 0;
    color:var(--card);
    font-size:18px
}
.block label{
    display:block;
    margin-bottom:8px;
    color:var(--muted);
    font-size:14px
}
.input-row {
    display:flex;
    gap:12px;
    align-items:center
}
input[type=text]{
    flex:1;
    padding:12px 14px;border-radius:10px;
    border:1px solid rgba(255,255,255,0.04);
    background:transparent;
    color:var(--card);
    outline:none;
    transition:box-shadow .18s ease, transform .12s ease
}
input[type=text]:focus{
    box-shadow:0 6px 18px rgba(14,165,233,0.08);
    transform:translateY(-2px)
}
.button-group {
    display:flex;
    gap:8px
 }
.btn {
    border:0;
    padding:10px 14px;
    border-radius:10px;
    background:transparent;
    color:var(--card);
    cursor:pointer;
    transition:transform .12s ease, box-shadow .12s ease;
    border:1px solid rgba(255,255,255,0.04)
}
.btn:hover {
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(2,6,23,0.5);
}
.btn.primary {
    background:linear-gradient(90deg,var(--primary),var(--accent));
    color:#042033;border:none
}
.btn.ghost {
    background:transparent;
    border:1px solid rgba(255,255,255,0.06);
    padding:8px 12px
}
.result {
    margin-top:12px
}
.caption {
    display:flex;
    gap:12px;
    align-items:center
}
.card {
    background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    padding:12px;
    border-radius:12px
}
.caption .caption-left {
    font-size:28px
}
.caption-title {
    font-weight:700
}
.github-link {
    color:var(--primary);
    text-decoration:none
}
.profile-card {
    display:grid;
    grid-template-columns:92px 1fr;gap:12px;
    align-items:start
}
.profile-pic { width:92px;
    height:92px;
    border-radius:10px;
    object-fit:cover;
    border:2px solid rgba(255,255,255,0.04)
}
.profile-field {
    font-size:14px;
    color:var(--muted);
    margin-top:6px
}
.profile-field b{
    color:var(--card);
    margin-right:6px
}
.stats {
    display:flex;
    gap:8px;
    margin-top:10px
}
.stat-box {
    background:var(--glass);
    padding:8px;
    border-radius:8px;
    min-width:64px;
    text-align:center;
    backdrop-filter: blur(4px)
}
.stat-number {
    font-weight:700;
    color:var(--card)
}
.stat-label {
    font-size:12px;
    color:var(--muted)
}
.repo-list {
    list-style:none;
    padding-left:0;
    margin:8px 0
}
.repo-item {
    padding:10px;
    border-radius:8px;
    margin-bottom:8px;
    background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
    transition:transform .18s ease
}
.repo-item:hover {
    transform:translateY(-6px)
}
.repo-desc {
    color:var(--muted);
    font-size:13px;margin-top:6px
}
.api-links {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px
}
.api-links .github-link {
    padding:6px 8px;
    border-radius:8px;
    background:rgba(255,255,255,0.02)
}
.error {
    background:rgba(255,20,50,0.07);
    border-left:4px solid rgba(255,20,50,0.2);
    padding:10px;border-radius:8px;color:#ffd6d6
}
.loader {
    display:inline-block;
    width:18px;
    height:18px;
    border-radius:50%;
    border:3px solid rgba(255,255,255,0.12);
    border-top-color:var(--primary);
    animation:spin 1s linear infinite
}
.loader.small {
    width:12px;
    height:12px;
    border-width:2px
}
@keyframes spin{
    to {
        transform:rotate(360deg)
    }
}

.toast {
    position:fixed;
    left:50%;
    bottom:40px;
    transform:translateX(-50%) scale(.96);background:rgba(2,6,23,0.9);
    padding:10px 14px;
    border-radius:10px;
    color:var(--card);
    opacity:0;
    transition:transform .18s ease,opacity .18s ease
}
.toast.visible {
    opacity:1;
    transform:translateX(-50%) scale(1)
}

.site-footer {
    position:fixed;
    left:0;right:0;
    bottom:0;
    padding:12px 18px;
    background:linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.85));
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    border-top:1px solid rgba(255,255,255,0.02)
}
.site-footer a {
    color:var(--accent);text-decoration:none
}

/* Responsive */
@media (max-width:720px){
  .container {
    padding:12px
}
  .profile-card {
    grid-template-columns:72px 1fr
}
  .site-header {
    padding:12px
}
  .site-brand span {
    font-size:16px
}
  .panel {
    padding:12px
}
}

