﻿/* --- Global Style --- */

body {
    margin: 0;
    padding: 0;
    font-family: "Courier New", Courier, monospace;
    background-color: #0d0d0d;
    color: #ffffff;
    min-height: 100vh;
}

    body.login-page {
        display: flex;
        justify-content: center;
        align-items: center;
    }

/* --- Login Page --- */

.login-container {
    background: linear-gradient(145deg, #1b1b1b, #121212);
    padding: 60px 80px;
    border-radius: 15px;
    box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff33 inset;
    text-align: center;
    width: 400px;
    margin: 0;
}

    .login-container img.bot-icon {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        margin-bottom: 30px;
        border: 3px solid #00ffff;
        box-shadow: 0 0 15px #00ffff;
    }

    .login-container h1 {
        font-size: 28px;
        margin-bottom: 40px;
        color: #00ffff;
        text-shadow: 0 0 10px #00ffff;
    }

.discord-btn {
    display: inline-block;
    background-color: #5865f2;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #5865f2, 0 0 20px #5865f233 inset;
}

    .discord-btn:hover {
        background-color: #4752c4;
        box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff33 inset;
        transform: translateY(-2px);
    }

/* --- Dashboard Layout --- */

.dashboard {
    max-width: 1100px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

    .dashboard-header .avatar,
    .server-icon {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #00ffff;
        box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
    }

.server-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #00ffff;
    font-size: 28px;
    font-weight: bold;
}

.dashboard-header h1 {
    margin: 0;
    color: #00ffff;
}

.dashboard-header p {
    margin: 8px 0 0;
    color: #cccccc;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

/* --- Header Buttons --- */

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

    .header-actions .header-add-btn,
    .header-actions .back-btn {
        width: auto;
        min-height: 42px;
        padding: 9px 16px;
        box-sizing: border-box;
        font-size: 14px;
        white-space: nowrap;
    }

    .header-actions .header-add-btn {
        margin-top: 0;
    }

/* --- Cards --- */

.card {
    background: #1b1b1b;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px #00ffff33 inset;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px #00ffff;
    }

    .card h2 {
        margin-top: 0;
        color: #00ffff;
    }

    .card p {
        color: #ffffff;
    }

/* --- Bot Cards --- */

.bot-card {
    position: relative;
    overflow: hidden;
}

.bot-card-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: start;
    min-width: 0;
}

.bot-desc {
    margin-top: 8px;
    opacity: 0.9;
}

.status-badge {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: capitalize;
}

    .status-badge.online {
        background: rgba(0, 255, 150, 0.15);
        color: #7dffb3;
    }

    .status-badge.offline {
        background: rgba(255, 80, 80, 0.15);
        color: #ff8a8a;
    }

/* --- Auto Channel Card Header Override --- */

.auto-channel-card .bot-card-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.auto-channel-card .status-badge {
    align-self: flex-start;
    width: fit-content;
}

.auto-channel-card .setup-title {
    width: 100%;
    min-width: 0;
    font-size: 20px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Auto Channel Summary Lines --- */

.auto-channel-card .bot-desc,
.auto-channel-card .setup-join,
.auto-channel-card .setup-room,
.auto-channel-card .setup-limit {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Forms --- */

label {
    display: inline-block;
    margin-bottom: 8px;
    color: #00ffff;
    font-weight: bold;
}

select,
.settings-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(0, 255, 255, 0.65);
    font-family: "Courier New", Courier, monospace;
}

    .settings-input:focus,
    select:focus {
        outline: none;
        border-color: #00ffff;
        box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
    }

textarea#message {
    width: 100%;
    box-sizing: border-box;
    min-height: 220px;
    background: rgba(10, 10, 15, 0.65);
    border: 1px solid rgba(0, 255, 100, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    color: #e6e6e6;
    font-size: 15px;
    font-family: "Segoe UI", Consolas, monospace;
    resize: vertical;
    outline: none;
}

/* --- Buttons --- */

.action-row,
.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.compact-actions {
    grid-template-columns: 58px 1fr;
    align-items: stretch;
}

.save-btn,
.toggle-btn,
.delete-btn,
.edit-btn {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn {
    width: 100%;
    background: rgba(0, 255, 255, 0.12);
    border: 1px solid rgba(0, 255, 255, 0.65);
    color: #bfffff;
}

    .save-btn:hover {
        background: rgba(0, 255, 255, 0.22);
        box-shadow: 0 0 16px rgba(0, 255, 255, 0.35);
    }

.toggle-btn {
    width: 100%;
}

.toggle-on {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.65);
    color: #ffb3b3;
}

.toggle-off {
    background: rgba(0, 255, 140, 0.15);
    border: 1px solid rgba(0, 255, 140, 0.65);
    color: #aaffd8;
}

.delete-btn {
    width: 100%;
    background: rgba(255, 40, 40, 0.10);
    border: 1px solid rgba(255, 40, 40, 0.8);
    color: #ff9b9b;
}

.edit-btn {
    width: 58px;
    background: rgba(0, 255, 255, 0.12);
    border: 1px solid rgba(0, 255, 255, 0.65);
    color: #bfffff;
}

.save-btn:disabled,
.toggle-btn:disabled,
.delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff3b3b, #ff6a3b);
    padding: 10px 18px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(255, 80, 80, 0.35);
}

/* --- Panels --- */

.edit-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 255, 255, 0.18);
}

.add-panel-card {
    margin-bottom: 30px;
}

.add-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.full-width-btn {
    width: 100%;
    margin-top: 14px;
}

/* --- Status Box --- */

.status-box {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    animation: fadeIn 0.2s ease;
}

.status-success {
    background: rgba(0, 255, 140, 0.15);
    border: 1px solid rgba(0, 255, 140, 0.6);
    color: #aaffd8;
}

.status-error {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.6);
    color: #ffb3b3;
}

.inline-status {
    margin-top: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Logout --- */

.logout-container {
    margin-left: auto;
}

.logout-card {
    display: inline-flex;
    background-color: #ff3333;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    align-items: center;
    transition: all 0.3s;
}

/* --- Bot Status --- */

.bot-status {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

#bot-status.online::before {
    content: "● ";
    color: #00ff6a;
}

#bot-status.offline::before {
    content: "● ";
    color: #ff3333;
}

.bot-online {
    color: #7dffb3;
}

.bot-offline {
    color: #ff8a8a;
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .login-container {
        width: auto;
        margin: 0 20px;
        padding: 40px 25px;
    }

    .dashboard {
        padding: 24px;
        justify-content: flex-start;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid,
    .add-setup-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
        flex-direction: column;
    }

        .header-actions .header-add-btn,
        .header-actions .back-btn {
            width: 100%;
            text-align: center;
        }

    .logout-container {
        margin-left: 0;
    }
}


/* --- Server Select Cards --- */

.server-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

    .server-card .server-icon {
        margin-bottom: 18px;
        flex-shrink: 0;
    }

.server-card-header {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}


.server-card-title {
    width: 100%;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.server-status {
    width: fit-content;
    margin: 0;
}

.server-card .bot-desc {
    margin-top: 10px;
}

.server-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.access-badge {
    background: rgba(0, 180, 255, 0.15);
    color: #9be7ff;
}

.server-card-header {
    min-height: 0;
}

.server-card .bot-desc {
    margin-top: 8px;
    margin-bottom: 0;
}

/* --- Server Select Alignment --- */

.server-card-header {
    display: grid;
    grid-template-rows: 54px auto;
    align-items: start;
    gap: 8px;
    min-height: 0;
}

.server-card-title {
    width: 100%;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
}

.server-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.server-card .bot-desc:first-of-type {
    margin-top: 14px;
}

.server-card .bot-desc {
    margin-bottom: 0;
}


/* --- Send Message Page Buttons --- */

.send-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
}

.send-back-btn,
.send-message-btn {
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 10px;
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.send-back-btn {
    background: rgba(255, 80, 80, 0.14);
    border: 1px solid rgba(255, 80, 80, 0.75);
    color: #ffb3b3;
}

    .send-back-btn:hover {
        background: rgba(255, 80, 80, 0.24);
        box-shadow: 0 0 16px rgba(255, 80, 80, 0.35);
        transform: translateY(-1px);
    }

.send-message-btn {
    background: rgba(0, 255, 140, 0.14);
    border: 1px solid rgba(0, 255, 140, 0.75);
    color: #aaffd8;
}

    .send-message-btn:hover {
        background: rgba(0, 255, 140, 0.24);
        box-shadow: 0 0 16px rgba(0, 255, 140, 0.35);
        transform: translateY(-1px);
    }

    .send-message-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

@media (max-width: 650px) {
    .send-action-row {
        grid-template-columns: 1fr;
    }
}

/* --- Structured Audit Log --- */

.audit-log-card {
    cursor: default;
}

.audit-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 560px;
    overflow-y: auto;
}

.audit-entry {
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(10, 10, 15, 0.65);
    border: 1px solid rgba(0, 255, 255, 0.22);
    box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.04);
}

.audit-entry-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    color: #00ffff;
    font-weight: bold;
}

.audit-entry p {
    margin: 6px 0;
    color: #e6e6e6;
    word-break: break-word;
}


.audit-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 255, 0.16);
}

.audit-detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    margin-top: 6px;
    color: #e6e6e6;
}

    .audit-detail-row span:first-child {
        color: #00ffff;
        font-weight: bold;
    }

@media (max-width: 650px) {
    .audit-detail-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}


/* --- Audit Filters --- */

.audit-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.audit-filter-btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.28);
    color: #bfffff;
    transition: all 0.2s ease;
}

    .audit-filter-btn:hover,
    .audit-filter-btn.active {
        background: rgba(0, 255, 255, 0.20);
        border-color: rgba(0, 255, 255, 0.75);
        box-shadow: 0 0 14px rgba(0, 255, 255, 0.25);
    }


/* --- Moderator Page --- */

.moderator-card {
    cursor: default;
}

.moderator-textarea {
    min-height: 120px;
    resize: vertical;
}


/* --- Moderator Module Force Grid --- */

.moderator-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px;
    align-items: start;
}

    .moderator-grid .moderator-card {
        width: auto;
        min-width: 0;
    }

@media (max-width: 900px) {
    .moderator-grid {
        grid-template-columns: 1fr !important;
    }
}

.moderator-single-panel {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    cursor: default;
}


/* --- Moderator Member Preview --- */

.moderator-user-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.member-preview {
    min-height: 74px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.28);
    background: rgba(0, 255, 255, 0.05);
    box-sizing: border-box;
}

.member-preview-empty {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.4;
}

.member-preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-preview-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
}

.member-preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .member-preview-info strong {
        color: #00ffff;
    }

    .member-preview-info span {
        font-size: 12px;
        color: #e6e6e6;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 750px) {
    .moderator-user-grid {
        grid-template-columns: 1fr;
    }
}

.toggle-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #ffffff;
}

/* --- Reaction Roles --- */

.reaction-rule-row {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

    .reaction-rule-row .delete-btn {
        min-height: 42px;
    }

@media (max-width: 900px) {
    .reaction-rule-row {
        grid-template-columns: 1fr;
    }
}

.reaction-rule-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.reaction-existing-card {
    margin-top: 30px;
    cursor: default;
}

.reaction-existing-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reaction-existing-row {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.18);
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .reaction-rule-row,
    .reaction-existing-row {
        grid-template-columns: 1fr;
    }
}


.reaction-rule-row {
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1fr 0.8fr 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.reaction-existing-row {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 255, 0.18);
    display: grid;
    grid-template-columns: 0.7fr 1.2fr 0.7fr 1fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .reaction-rule-row,
    .reaction-existing-row {
        grid-template-columns: 1fr;
    }
}

.reaction-message-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: rgba(0, 255, 255, 0.04);
    margin-bottom: 14px;
}

.reaction-existing-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.delete-role-message-btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .reaction-existing-top {
        flex-direction: column;
    }

    .delete-role-message-btn {
        width: 100%;
    }
}

.role-message-actions,
.role-message-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .role-message-card-actions .save-btn,
    .role-message-card-actions .delete-btn {
        width: auto;
        white-space: nowrap;
    }

@media (max-width: 900px) {
    .role-message-actions,
    .role-message-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .role-message-card-actions .save-btn,
        .role-message-card-actions .delete-btn {
            width: 100%;
        }
}

/* --- Slider Switches --- */

.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 18px 0 22px;
    padding: 16px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 255, 255, 0.04);
}

    .switch-row strong {
        color: #00ffff;
    }

.switch-control {
    position: relative;
    width: 96px;
    height: 38px;
    flex: 0 0 auto;
    cursor: pointer;
}

    .switch-control input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 70, 70, 0.18);
    border: 1px solid rgba(255, 70, 70, 0.65);
    box-shadow: inset 0 0 12px rgba(255, 70, 70, 0.12);
    transition: 0.22s ease;
}

    .switch-slider::before {
        content: "";
        position: absolute;
        width: 28px;
        height: 28px;
        left: 4px;
        top: 4px;
        border-radius: 50%;
        background: #ff8a8a;
        box-shadow: 0 0 12px rgba(255, 70, 70, 0.7);
        transition: 0.22s ease;
    }

.switch-control input:checked + .switch-slider {
    background: rgba(0, 255, 140, 0.16);
    border-color: rgba(0, 255, 140, 0.75);
    box-shadow: inset 0 0 12px rgba(0, 255, 140, 0.14);
}

    .switch-control input:checked + .switch-slider::before {
        transform: translateX(58px);
        background: #7dffb3;
        box-shadow: 0 0 14px rgba(0, 255, 140, 0.75);
    }

.switch-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.switch-text-off {
    right: 13px;
    color: #ffb3b3;
}

.switch-text-on {
    left: 15px;
    color: #aaffd8;
    opacity: 0;
}

.switch-control input:checked ~ .switch-text-off {
    opacity: 0;
}

.switch-control input:checked ~ .switch-text-on {
    opacity: 1;
}


/* --- Role Message Polish Overrides --- */

.compact-switch-row {
    margin-top: 8px;
}

.role-message-toggle {
    width: 86px;
    height: 34px;
}

.role-message-toggle .switch-slider::before {
    width: 24px;
    height: 24px;
}

.role-message-toggle input:checked + .switch-slider::before {
    transform: translateX(52px);
}

.role-message-card-actions {
    align-items: center;
}

.reaction-existing-top strong {
    color: #00ffff;
}


/* --- Applications --- */

.application-questions {
    min-height: 170px;
}


.application-existing-row {
    display: block;
    line-height: 1.5;
}


/* --- Suggestions --- */

.settings-helper {
    margin: 4px 0 10px;
    color: #b9c7c7;
    font-size: 13px;
    opacity: 0.8;
}

#suggestionDescription {
    min-height: 140px;
}


/* --- User Settings --- */

.user-settings-lookup {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 12px;
    align-items: end;
}

.user-settings-small-btn {
    min-height: 38px;
    padding: 10px 16px;
}

.user-preview {
    align-items: center;
    gap: 14px;
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid rgba(0, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(0, 255, 255, 0.05);
}

.user-preview img,
.dashboard-user-main img,
.dashboard-user-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.55);
}

.dashboard-user-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    font-size: 22px;
    font-weight: 700;
    background: #101010;
}

.compact-section-title {
    margin-top: 18px;
}

.permission-toolbar {
    display: flex;
    gap: 10px;
    margin: 10px 0 12px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.permission-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.permission-option input {
    margin-top: 4px;
    accent-color: #00ffff;
}

.permission-option strong {
    display: block;
    color: #00ffff;
}

.permission-option small {
    display: block;
    margin-top: 4px;
    color: #d6eeee;
    line-height: 1.35;
}

.dashboard-user-list {
    display: grid;
    gap: 14px;
}

.user-filter-input {
    margin-bottom: 14px;
}

.dashboard-user-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
}

.dashboard-user-main {
    display: flex;
    min-width: 0;
    gap: 14px;
}

.dashboard-user-main strong {
    color: #00ffff;
}

.permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.dashboard-user-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

@media (max-width: 780px) {
    .user-settings-lookup,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .permission-toolbar {
        flex-direction: column;
    }

    .dashboard-user-card,
    .dashboard-user-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
