/* ═══════════════════════════════════════════════
   口袋小站管理后台 - 高级深色主题 v2.0
   ═══════════════════════════════════════════════ */

/* CSS 变量 */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-elevated: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-purple: #a78bfa;
    --accent-green: #34d399;
    --accent-red: #f87171;
    --accent-yellow: #fbbf24;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 500;
}

/* 粒子画布 */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* 渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ═══════ 顶部导航 ═══════ */
.admin-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.header-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--accent-blue);
}

.nav-icon {
    font-size: 15px;
}

/* ═══════ 主内容区 ═══════ */
main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: relative;
}

/* 标签页样式 */
.tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-content.active {
    display: block;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 140px;
}

.filter-select:hover {
    border-color: var(--accent-blue);
    background: #334155;
}

.filter-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.filter-select option {
    background: #1e293b;
    color: var(--text-primary);
}

/* 区域头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* ═══════ 按钮系统 ═══════ */
.btn-primary {
    padding: 10px 20px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-danger {
    padding: 7px 14px;
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.btn-edit {
    padding: 7px 14px;
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent-yellow);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition);
    margin-right: 6px;
}

.btn-edit:hover {
    background: var(--accent-yellow);
    color: #111;
    border-color: var(--accent-yellow);
}

.btn-sm {
    padding: 7px 14px !important;
    font-size: 12px !important;
}

/* ═══════ 统一表格样式 ═══════ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    color: var(--text-primary);
    font-weight: 500;
}

.data-table tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 游戏图标 in 表格 */
.data-table td img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    vertical-align: middle;
}

/* ═══════ 状态标签 ═══════ */
.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-tag.active {
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-tag.inactive {
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* 暗号标签 */
.code-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 1px;
}

/* ═══════ 模态框 ═══════ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #1a2236;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 92%;
    max-width: 480px;
    position: relative;
    animation: slideIn 0.25s ease;
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.modal-large {
    max-width: 800px;
    max-height: 88vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.close:hover {
    color: var(--accent-red);
    background: rgba(248, 113, 113, 0.1);
}

.modal-divider {
    margin: 24px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ═══════ 表单系统 ═══════ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    resize: vertical;
    transition: all var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.form-row-2col {
    grid-template-columns: 2fr 1fr;
}

.form-row-guide {
    grid-template-columns: 1fr 100px 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ═══════ 游戏图标上传区 ═══════ */
.icon-uploader {
    border: 2px dashed var(--border-hover);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    background: rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.icon-uploader:hover,
.icon-uploader:focus {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    outline: none;
}

.icon-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: none;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
}

.icon-preview[src]:not([src=""]) {
    display: block;
}

.icon-tips {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-tips-icon {
    font-size: 20px;
}

/* ═══════ 兑换码弹窗 ═══════ */
.rc-add-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.rc-add-section h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.rc-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* ═══════ 弹窗图片卡片 ═══════ */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
    max-height: 480px;
    overflow-y: auto;
    padding: 10px 4px;
}

.image-item {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.image-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 图片区域 */
.item-img-box {
    width: 100%;
    height: 140px;
    background: #0f172a;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

/* 底部信息与按钮区 */
.item-footer {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.item-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 弹窗里的功能按钮加重力度 */
.item-btn-group button {
    flex: 1;
    padding: 8px 0;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition);
    border: none;
}

.btn-temp-unbind {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-temp-unbind:hover {
    background: var(--bg-elevated);
    color: white;
}

.btn-temp-delete {
    background: rgba(248, 113, 113, 0.15);
    color: var(--accent-red);
}

.btn-temp-delete:hover {
    background: var(--accent-red);
    color: white;
}

.btn-temp-bind {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.btn-temp-bind:hover {
    background: var(--accent-blue);
    color: white;
}

/* ═══════ 加载 & 空状态 ═══════ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    width: 100%;
    grid-column: 1 / -1;
    /* 让它在 grid 里占据整行 */
}

/* ═══════ Toast ═══════ */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(16px);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: rgba(52, 211, 153, 0.9);
    color: #fff;
}

.toast.error {
    background: rgba(248, 113, 113, 0.9);
    color: #fff;
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

/* ═══════ 动画 ═══════ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-16px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════ 滚动条 ═══════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

/* ═══════ 响应式 ═══════ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }

    .header-brand {
        justify-content: center;
    }

    .tabs-nav {
        justify-content: center;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        min-width: auto;
        font-size: 12px;
        padding: 8px 12px;
    }

    main {
        padding: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-row,
    .form-row-2col,
    .form-row-guide {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    .modal-large {
        max-width: 95%;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: block;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 14px;
        margin-bottom: 12px;
    }

    .data-table td {
        display: block;
        text-align: left !important;
        padding: 6px 0;
        border: none;
    }

    .data-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        display: inline-block;
        width: 70px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .data-table td:last-child {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .data-table td:last-child:before {
        display: none;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .image-item img {
        height: 100px;
    }

    .toast {
        bottom: 30px;
        font-size: 12px;
    }
}

/* ═══════ 云存储兼容样式 ═══════ */
.cloud-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
}

.cloud-file-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.cloud-file-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.cloud-file-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.cloud-file-name {
    padding: 8px;
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.cloud-file-item .btn-primary {
    margin: 0 8px 8px;
    padding: 5px 10px;
    font-size: 11px;
}

/* 二维码管理区域 */
#qrcodeManageSection {
    margin-top: 20px;
}

#qrcodeManageSection .section-header {
    margin-bottom: 12px;
}

#modalImagesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
}

/* ═══════ 副标题兼容 ═══════ */
.subtitle {
    display: none;
}

/* 绑定容器兼容 */
.bind-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.bind-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.bind-section h3 {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--accent-purple);
    font-weight: 700;
}

.filter-bar {
    margin-bottom: 16px;
}

.filter-bar select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 200px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* 欢迎区域 */
.welcome-section {
    text-align: center;
    padding: 60px 20px;
}

.welcome-section h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.welcome-section p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 站点切换器 ===== */
.site-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.site-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
}

.site-btn:hover {
    color: var(--text-secondary);
}

.site-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.site-icon {
    font-size: 15px;
}