/* ============================================
   HEADER, LOGO, SEARCH, ADMIN-BTN
   ============================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: rgba(5,7,20,0.55);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.045);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 16px;
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59,130,246,0.3) 40%,
        rgba(139,92,246,0.3) 60%,
        transparent 100%
    );
}

/* ── Logo ── */
.logo {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, #93C5FD 0%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    cursor: default;
}

/* ── Search Box ── */
.search-box {
    flex: 1;
    max-width: 420px;
    min-width: 180px;
    margin: 0 24px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-dark);
    pointer-events: none;
    transition: color var(--transition-normal);
}

.search-box:focus-within .search-icon { color: var(--blue); }

.search-box input {
    width: 100%;
    padding: 10px 18px 10px 40px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
    -webkit-text-fill-color: var(--text);
}

.search-box input:focus {
    border-color: rgba(59,130,246,0.45);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.search-box input::placeholder {
    color: var(--text-dark);
    opacity: 1;
}

.search-box input:-webkit-autofill,
.search-box input:-webkit-autofill:hover,
.search-box input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.07) inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
}

/* ── Admin Button ── */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 9px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.admin-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.admin-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.admin-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.admin-btn:hover::after { opacity: 1; }
.admin-btn:active { transform: scale(0.99); }

/* ── User Avatar ── */
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    color: white; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
