/* ===== PROFILE PAGE ===== */
.profile-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    gap: 30px;
}

/* Profile Card */
.profile-card {
    background: #141414;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #2f80ed;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-card h2 {
    margin: 10px 0 5px;
}

.profile-id {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

/* Sections */
.profile-section-1, .profile-section-2, .profile-section-3 {
    background: #101010;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.profile-section-1, .profile-section-2, .profile-section-3 h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

/* Discord Status */
.discord-status {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: bold;
}

.discord-status.disconnected {
    background: #3a0d0d;
    color: #ff6b6b;
}

.discord-status.connected {
    background: #0d3a1d;
    color: #5cff9d;
}

/* Back Button */
.btn-back {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
}

.btn-back:hover {
    color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
    .profile-card img {
        width: 90px;
        height: 90px;
    }
}

.danger-zone {
	border-top: 2px solid #ff4d4d;
	padding-top: 20px;
}

.warning-text {
	color: #ff4d4d;
	font-size: 0.9rem;
	margin-bottom: 10px;
}

.btn-danger {
	background: linear-gradient(135deg, #ff4d4d, #c40000);
	color: white;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
}

.btn-danger:hover {
	opacity: 0.9;
}

/* Access Display */
.access-yes {
	color: #2ecc71; /* green */
	font-weight: bold;
}

.access-no {
	color: #e74c3c; /* red */
	font-weight: bold;
}

/* Account Link Button */
.account-link-btn {
	margin-left: 6px;
	padding: 3px 8px;
	font-size: 12px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	background: #3498db;
	color: #fff;
}

.account-link-btn:hover {
	background: #2980b9;
}

.account-linked {
	margin-left: 6px;
	color: #2ecc71;
	font-weight: 600;
}

.account-unlink-btn {
	margin-left: 8px;
	padding: 3px 8px;
	font-size: 12px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	background: #e74c3c;
	color: #fff;
}

.account-unlink-btn:hover {
	background: #c0392b;
}

.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal.hidden {
	display: none;
}

.modal-content {
	background: #1e1e1e;
	padding: 20px;
	border-radius: 8px;
	width: 300px;
}

.modal-content input {
	width: 100%;
	margin-top: 6px;
	margin-bottom: 12px;
	padding: 6px;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* Profile Nav */
.profile-nav {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 1px solid #222;
	padding-bottom: 10px;
}

.profile-tab {
	background: none;
	border: none;
	color: #aaa;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.profile-tab:hover {
	color: #fff;
}

.profile-tab.active {
	color: #fff;
	border-bottom-color: #4da3ff;
}

.profile-section {
	margin-bottom: 24px;
}

.hidden {
	display: none;
}

.modal-spacer {
	height: 14px;
}

.permission-preview {
	font-size: 0.9em;
	color: #ccc;
	background: rgba(255,255,255,0.05);
	padding: 8px;
	border-radius: 6px;
}

/* Container reset */
#access-requests-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Card */
.access-request-item {
	background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover lift */
.access-request-item:hover {
	transform: translateY(-2px);
	box-shadow:
		0 6px 18px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Header */
.request-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.request-header strong {
	font-size: 0.95rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #ffffff;
}

/* Status pill */
.status {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.6px;
}

/* Status colors */
.status-pending {
	background: rgba(255, 193, 7, 0.15);
	color: #ffc107;
	border: 1px solid rgba(255, 193, 7, 0.35);
}

.status-approved {
	background: rgba(40, 167, 69, 0.15);
	color: #28a745;
	border: 1px solid rgba(40, 167, 69, 0.35);
}

.status-denied {
	background: rgba(220, 53, 69, 0.15);
	color: #dc3545;
	border: 1px solid rgba(220, 53, 69, 0.35);
}

/* Body text */
.request-body p {
	margin: 4px 0;
	font-size: 0.85rem;
	color: #d0d0d0;
}

.request-body strong {
	color: #ffffff;
}

/* Timestamp */
.request-date {
	margin-top: 6px;
	font-size: 0.7rem;
	color: #9a9a9a;
}