/* Profile Page Styles - Dark Gaming Theme */
.profile-section {
    padding: 60px 0;
}

.profile-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-header {
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(6, 182, 212, 0.5) 100%);
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.profile-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    z-index: 1;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-cyan));
}

.profile-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.profile-content {
    display: flex;
    min-height: 600px;
}

/* Sidebar */
.profile-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--glass-border);
    padding: 0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.sidebar-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-cyan));
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.sidebar-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffd86b;
    font-size: 1.2rem;
    line-height: 1.45;
}

.sidebar-note i {
    margin-right: 6px;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.4rem;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 1.5rem;
}

.sidebar-item:hover .sidebar-link {
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary-light);
    padding-left: 26px;
}

.sidebar-item:hover .sidebar-link i {
    color: var(--primary-light);
}

.sidebar-item.active .sidebar-link {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    color: var(--primary-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

.sidebar-item.active .sidebar-link i {
    color: var(--primary-light);
}

/* Main Content */
.profile-main {
    flex: 1;
    padding: 30px;
}

.profile-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.profile-info-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.info-header {
    background: rgba(139, 92, 246, 0.08);
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.info-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content {
    padding: 20px;
}

.info-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.2s ease;
    align-items: center;
}

.info-row:hover {
    background: rgba(139, 92, 246, 0.04);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--border-radius-sm);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 160px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.info-value--highlight {
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 1.8rem;
}

.change-password-link,
.update-phone-link {
    margin-left: 15px;
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.3rem;
}

.change-password-link:hover,
.update-phone-link:hover {
    color: var(--neon-cyan);
}

.mt-4 {
    margin-top: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.4rem;
}

.form-control {
    font-size: 1.5rem;
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: "Fz Poppins", sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    outline: none;
    background: rgba(139, 92, 246, 0.05);
}

.form-control:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.form-text {
    margin-top: 5px;
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    font-size: 1.3rem;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid rgba(239, 68, 68, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--neon-cyan));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    font-family: "Fz Poppins", sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.45);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

/* History Table */
.history-table-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.history-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table .no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 6px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--border-radius-sm);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--glass-border);
    font-size: 1.4rem;
}

.pagination .page-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .profile-content { flex-direction: column; }
    .profile-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
}

@media (max-width: 768px) {
    .profile-section { padding: 40px 0; }
    .profile-header { padding: 15px 20px; }
    .profile-title { font-size: 1.8rem; }
    .profile-main { padding: 20px; }
    .info-row { flex-direction: column; padding: 12px 0; }
    .info-label { width: 100%; margin-bottom: 4px; }
}

@media (max-width: 480px) {
    .profile-section { padding: 30px 0; }
    .profile-header { padding: 12px 15px; }
    .profile-title { font-size: 1.6rem; }
    .profile-main { padding: 15px; }
}

/* Animation for balance */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.profile-balance-danger {
    color: #f87171;
    animation: pulse 1.5s infinite;
    display: inline-block;
}
