.profile-wrapper {
    display: flex;
    gap: 30px;
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* ===== SIDEBAR ===== */
.profile-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eaeaea;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #111;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.avatar-edit:hover {
    background: #333;
}

.avatar-edit svg {
    width: 14px;
    height: 14px;
}

.sidebar-name {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-email {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.sidebar-joined {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 25px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: 0.3s;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: #f5f5f5;
    color: #111;
}

.sidebar-link.active {
    background: #111;
    color: #fff;
}

/* ===== CONTENT ===== */
.profile-content {
    flex: 1;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
    animation: fadeUp 0.4s ease;
}

.tab-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.info-label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
}

.status-active {
    color: #16a34a;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: 0.3s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #111;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.alert.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ===== EMPTY ORDERS ===== */
.empty-orders {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.empty-orders svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.4;
}

.empty-orders p {
    font-size: 16px;
}

/* ===== DARK MODE ===== */
body.dark .sidebar-link:hover {
    background: #222;
    color: #f0f0f0;
}

body.dark .sidebar-link.active {
    background: #f0f0f0;
    color: #111;
}

body.dark .tab-title {
    border-bottom-color: #222;
}

body.dark .info-item {
    background: #111;
    border-color: #222;
}

body.dark .info-label {
    color: #777;
}

body.dark .info-value {
    color: #f0f0f0;
}

body.dark .form-group label {
    color: #f0f0f0;
}

body.dark .form-group input {
    background: #1e1e1e;
    border-color: #333;
    color: #f0f0f0;
}

body.dark .form-group input:focus {
    border-color: #f0f0f0;
}

body.dark .avatar-img {
    border-color: #333;
}

body.dark .sidebar-email,
body.dark .sidebar-joined {
    color: #aaa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .profile-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .profile-sidebar {
        width: 100%;
    }

    .sidebar-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-link span {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}