.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

.password-field { display: flex; align-items: stretch; }
.password-field input { flex: 1; min-width: 0; }
.password-toggle { border: 1px solid var(--border); border-left: 0; background: var(--surface-2); color: var(--text); padding: 0 12px; cursor: pointer; }

.mod-showcase {
    position: relative;
    max-width: 860px;
    margin: 0 auto 18px;
    padding: 0 52px;
}
.mod-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 146, 255, 0.6) transparent;
}
.mod-grid::-webkit-scrollbar { height: 8px; }
.mod-grid::-webkit-scrollbar-thumb {
    background: rgba(136, 146, 255, 0.6);
    border-radius: 999px;
}
.mod-card {
    flex: 0 0 260px;
    max-width: 260px;
    background: linear-gradient(180deg, rgba(29, 35, 46, 0.94), rgba(18, 23, 31, 0.94));
    border: 1px solid rgba(130, 146, 255, 0.18);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 12px 28px rgba(5, 9, 18, 0.2);
}
.mod-card:hover {
    border-color: rgba(130, 146, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(77, 92, 255, 0.18);
}
.mod-thumb { display: block; overflow: hidden; background: var(--surface-2); }
.mod-thumb img { transition: transform 0.35s ease; }
.mod-card:hover .mod-thumb img { transform: scale(1.04); }
.mod-thumb img { width: 100%; height: 150px; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 150px; background: linear-gradient(135deg, rgba(91, 109, 255, 0.28), rgba(24, 30, 42, 0.9)); }
.mod-info { padding: 16px 16px 14px; }
.mod-info h3 { font-size: 1rem; margin-bottom: 6px; }
.mod-author { font-size: 0.8rem; color: var(--text-muted); }
.mod-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.74rem; color: var(--text-muted); margin-top: 10px; }
.mod-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; }
.mod-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(170, 178, 255, 0.25);
    border-radius: 12px;
    background: rgba(18, 23, 31, 0.92);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.mod-scroll-btn:hover { border-color: rgba(130, 146, 255, 0.5); }
.mod-scroll-btn.left { left: 0; }
.mod-scroll-btn.right { right: 0; }

.mod-moderation {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(160, 170, 255, 0.14);
}
.mod-moderation summary {
    color: #ff9d9d;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    list-style: none;
}
.mod-moderation summary::-webkit-details-marker { display: none; }
.mod-moderation summary::before { content: '⚙'; margin-right: 6px; }
.mod-delete-form { display: grid; gap: 8px; margin-top: 10px; }
.mod-delete-form label { color: var(--text-muted); font-size: 0.72rem; }
.mod-delete-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 64px;
    padding: 8px 9px;
    color: var(--text);
    background: rgba(8, 11, 17, 0.7);
    border: 1px solid rgba(255, 120, 120, 0.25);
    border-radius: 8px;
    font: inherit;
    font-size: 0.76rem;
}
.mod-delete-form textarea:focus { outline: 2px solid rgba(255, 120, 120, 0.25); border-color: #ff8585; }
.mod-delete-form .btn-danger { justify-content: center; background: #b94352; }

.ad-slot { margin: 20px 0; text-align: center; }