:root {
    --bg: #07070b;
    --panel: #111216;
    --panel-soft: #1b1d22;
    --text: #f4f6fb;
    --muted: #9aa3b2;
    --line: #252933;
    --accent: #e91563;
    --accent-2: #f33d7f;
}

html[data-theme="light"] {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-soft: #eef1f7;
    --text: #10131b;
    --muted: #5f6877;
    --line: #d7dce7;
    --accent: #df145f;
    --accent-2: #f03d7d;
}

body {
    background: var(--bg);
    color: var(--text);
}

.dh-head {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
}

.dh-head-inner {
    max-width: 1880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dh-circle-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
}

.dh-circle-btn .material-symbols-outlined,
.dh-search-icon .material-symbols-outlined {
    font-size: 20px;
}

.dh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    min-width: 140px;
}

.dh-brand-logo {
    display: block;
    max-width: 180px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dh-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 26% 28%, #ffd37a, #ff8a36 45%, #db2f68 100%);
}

.dh-brand-name {
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: scaleY(0.82);
    transform-origin: left center;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.dh-search-wrap {
    margin-left: 12px;
    flex: 1;
    max-width: 900px;
    position: relative;
}

.dh-search-input {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--text);
    padding: 0 14px 0 40px;
    outline: none;
}

.dh-search-icon {
    position: absolute;
    left: 14px;
    top: 10px;
    color: var(--muted);
}

.dh-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dh-auth {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.dh-theme-admin {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.dh-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dh-login {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.dh-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .dh-brand-name { font-size: 32px; }
    .dh-brand-logo { max-width: 150px; }
    .dh-search-wrap { max-width: none; }
}

@media (max-width: 860px) {
    .dh-actions { display: none; }
    .dh-auth { gap: 8px; }
    .dh-signup { padding: 0 12px; }
}
