/* Tech Empire Accounts page */

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.account-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.2s;
}

.account-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.acct-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-shrink: 0;
    overflow: hidden;
}

.acct-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acct-name {
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.acct-email {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.badge-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.role-badge,
.auth-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-admin {
    background: #e6f4ea;
    color: #1e7e34;
}

.role-customer {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.role-superadmin {
    background: #fff4e5;
    color: #b7791f;
}

.auth-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.acct-details {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 0.85rem;
    line-height: 1.65;
}

.acct-details i {
    width: 13px;
    vertical-align: middle;
    margin-right: 4px;
    color: var(--text-muted);
}

.acct-footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.role-select {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.role-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-delete-acct {
    background: #fff0f0;
    color: #c62828;
    border: none;
    padding: 0.55rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-acct:hover {
    background: #fde8e8;
}

.btn-delete-acct:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-disable-acct {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-black);
    border: none;
    padding: 0.55rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-disable-acct:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-disable-acct:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.accounts-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    grid-column: 1 / -1;
}

.accounts-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.accounts-hint a {
    color: var(--primary-black);
    font-weight: 600;
}

.accounts-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.accounts-confirm-modal[hidden] {
    display: none;
}

.accounts-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.accounts-confirm-dialog {
    position: relative;
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.35rem 1.35rem 1.15rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.accounts-confirm-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.55rem;
}

.accounts-confirm-message {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.15rem;
}

.accounts-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.accounts-confirm-btn {
    border: none;
    border-radius: 12px;
    padding: 0.62rem 1rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.accounts-confirm-btn-cancel {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary-black);
}

.accounts-confirm-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
}

.accounts-confirm-btn-yes {
    background: var(--primary-black);
    color: var(--primary-white);
}

.accounts-confirm-btn-yes:hover {
    opacity: 0.9;
}

.accounts-confirm-btn-yes.is-danger {
    background: #c62828;
}

.accounts-confirm-btn-yes.is-danger:hover {
    background: #b71c1c;
}

@media (max-width: 768px) {
    .accounts-grid {
        grid-template-columns: 1fr;
    }
}
