/* Profile Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.profile-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(18, 18, 26, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .profile-card {
    transform: translateY(0);
}

/* Header */
.profile-header {
    position: relative;
    padding: 32px 24px 24px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(29, 155, 240, 0.15) 0%, transparent 70%);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    padding: 3px;
    background-clip: content-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.profile-id {
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #8899ac;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Body */
.profile-body {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-label {
    color: #8899ac;
    font-size: 0.9rem;
}

.info-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.status-active {
    color: #22c55e;
}

.status-inactive {
    color: #ef4444;
}

/* Admin Controls */
.owner-panel {
    margin-top: 20px;
    padding: 16px;
    background: rgba(29, 155, 240, 0.08);
    /* Transparent blue tint */
    border: 1px solid rgba(29, 155, 240, 0.2);
    border-radius: 12px;
}

.panel-title {
    color: #1d9bf0;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-group {
    display: flex;
    gap: 8px;
}

.glass-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.glass-input:focus {
    border-color: #1d9bf0;
    background: rgba(0, 0, 0, 0.5);
}

.save-btn {
    background: #1d9bf0;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.feedback-msg {
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 1.2em;
}

/* Actions */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    margin-top: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, #1d9bf0 0%, #0c8de4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 155, 240, 0.4);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}