/* ================= TEMPLATE UTILITIES ================= */

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
}

.menu-username {
    margin-left: 8px;
}

.site-footer-content {
    text-align: center;
    padding: 30px 20px;
}

.footer-support {
    margin-bottom: 20px;
}

.footer-discord {
    margin-bottom: 18px;
}

.discord-link {
    color: #7289da;
    font-weight: 500;
}

.footer-legal {
    opacity: 0.8;
}

.center-muted {
    text-align: center;
    opacity: 0.6;
}

.search-hint {
    text-align: center;
    opacity: 0.7;
}

.empty-state-spaced {
    text-align: center;
    opacity: 0.6;
    margin-top: 40px;
}

.template-item {
    display: none;
}

.card-metadata {
    opacity: 0.7;
    font-size: 0.85rem;
}

.pagination-center {
    text-align: center;
    margin-top: 30px;
}

.pagination-label {
    margin: 0 12px;
}

.teams-search-form {
    max-width: 700px;
    margin: 0 auto 50px;
}

.teams-search-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.flex-grow {
    flex: 1;
}

.teams-access-select {
    max-width: 160px;
}

.team-description {
    opacity: 0.7;
    font-size: 0.85rem;
}

.team-summary {
    margin-top: 10px;
    opacity: 0.6;
    font-size: 0.8rem;
}

.team-create-card {
    max-width: 500px;
    margin: 40px auto 50px;
}

.team-description-input {
    border-radius: 14px;
    height: 80px;
    padding-top: 10px;
}

.action-spacing-top {
    margin-top: 10px;
}

.grid-five {
    grid-template-columns: repeat(5, 1fr);
}

.meta-small {
    opacity: 0.6;
    font-size: 0.8rem;
}

.meta-small-spaced {
    margin-top: 6px;
}

.pagination-compact {
    text-align: center;
    margin-top: 20px;
}

.pagination-compact-label {
    margin: 0 12px;
    opacity: 0.7;
}

.list-search-form {
    max-width: 700px;
    margin: 0 auto 30px;
}

.list-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.compact-dropdown-menu {
    position: relative;
    top: auto;
    right: auto;
    max-width: 120px;
}

.compact-dropdown-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 60px;
}

.compact-dropdown {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: 120px;
}

.centered-item {
    text-align: center;
}

.is-active-item {
    opacity: 0.6;
}

.menu-divider {
    opacity: 0.1;
    margin: 6px 0;
}

.card-relative {
    position: relative;
}

.card-delete-form {
    position: absolute;
    top: 12px;
    right: 12px;
}

.limit-note {
    text-align: center;
    margin-top: 20px;
    opacity: 0.7;
}

.pagination-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.noninteractive-button {
    cursor: default;
}

.team-detail-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.75;
}

.team-detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.team-delete-trigger {
    flex: 0 0 auto;
}

.team-actions {
    text-align: center;
    margin-bottom: 40px;
}

.team-delete-card {
    max-width: 420px;
    margin: 0 auto;
}

.team-delete-copy {
    margin-bottom: 16px;
}

.centered-action-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.team-password-input {
    max-width: 280px;
    margin: 0 auto 10px;
}

.member-profile-note {
    opacity: 0.6;
    font-size: 0.8rem;
    padding-top: 10px;
}

.member-role {
    margin-top: 6px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.is-visible {
    display: block;
}

.is-hidden {
    display: none;
}

.form-help {
    opacity: 0.55;
    font-size: 0.75rem;
    margin-top: 4px;
}

.form-note {
    opacity: 0.6;
    font-size: 0.8rem;
    margin-top: 6px;
}

.action-spacing-medium {
    margin-top: 14px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 12px;
}

.danger-title {
    color: #ef4444;
}

.danger-copy {
    opacity: 0.7;
}

.friends-title {
    text-align: center;
}

.friends-add-form-centered {
    max-width: 420px;
    margin: 0 auto;
}

.full-width-action {
    width: 100%;
    margin-top: 10px;
}

.form-feedback {
    text-align: center;
    margin-top: 10px;
}

.form-feedback.error {
    color: #ef4444;
}

.form-feedback.success {
    color: #22c55e;
}

.friends-requests {
    margin-top: 30px;
}

.friends-list {
    margin-top: 50px;
}

.friend-status {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-section-title {
    margin: 60px 0 20px;
    opacity: 0.8;
}

.admin-section-title.first {
    margin-top: 40px;
}

.revenue-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.revenue-card .stat-value,
.revenue-card .stat-label {
    color: white;
}

.revenue-card .stat-label {
    opacity: 0.9;
}

.legal-disclaimer { margin-top: 40px; opacity: 0.7; }
.legal-note { opacity: 0.85; }
.revocation-template { background: rgba(255, 255, 255, 0.04); padding: 18px; border-radius: 12px; line-height: 1.6; }
.no-margin { margin: 0; }
.spacing-top-14 { margin-top: 14px; }
.spacing-top-10 { margin-top: 10px; }
.private-profile-message { max-width: 600px; margin: 60px auto; text-align: center; opacity: 0.75; }
.private-profile-lead { font-size: 1.1rem; }
.success-page { max-width: 800px; margin: 80px auto; text-align: center; }
.success-card { background: rgba(255, 255, 255, 0.04); padding: 50px; border-radius: 24px; }
.success-icon { font-size: 60px; margin-bottom: 20px; }
.success-title { margin-bottom: 20px; }
.success-copy { opacity: 0.8; font-size: 18px; margin-bottom: 40px; }
.success-action { padding: 14px 30px; }
.error-page { text-align: center; margin-top: 120px; }
.error-page.compact { margin-top: 80px; }
.error-code { font-size: 3rem; margin-bottom: 10px; }
.error-copy { font-size: 1.1rem; opacity: 0.75; margin-bottom: 32px; }
.error-copy-simple { opacity: 0.7; margin-top: 12px; }
.error-home-action { margin-top: 32px; display: inline-block; }
@media (min-width: 1301px) {
    body > .container,
    body > .site-footer {
        width: auto;
        margin-left: 240px;
        margin-right: 0;
        align-self: stretch;
    }

    body > .container {
        max-width: none;
    }
}

@media (max-width: 1300px) {
    body > .container,
    body > .site-footer {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        align-self: stretch;
    }

    .grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
