#profile-section {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-header {
    background: white;
    border: 1px solid #EAE0D6;
    border-radius: 12px;
    overflow: hidden;
}

.profile-banner {
    height: 110px;
    background: linear-gradient(135deg, #C9B8A8 0%, #A8927E 40%, #8B6F57 100%);
}

.profile-header.admin {
    border-color: goldenrod;
    border-width: 2px;
    box-shadow: 0 0 12px rgba(218, 165, 32, 0.25);
}

.profile-header.admin .profile-banner {
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(218, 165, 32, 0.15) 40px,
            rgba(218, 165, 32, 0.15) 80px
        ),
        linear-gradient(
            135deg,
            #c8960c 0%,
            #daa520 40%,
            #b8860b 60%,
            #c8960c 100%
        );
    background-size: 100% 100%, 400% 400%;
    animation: gold-shine 4s ease infinite;
}

@keyframes gold-shine {
    0%   { background-position: 0 0, 0% 50%; }
    50%  { background-position: 0 0, 100% 50%; }
    100% { background-position: 0 0, 0% 50%; }
}

.profile-header-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 24px 20px;
}

.profile-avatar {
    margin-top: -40px;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: block;
}

.profile-identity {
    padding-top: 10px;
}

.profile-identity h1 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.profile-role {
    display: inline-block;
    font-size: 11px;
    color: var(--main-brown);
    background-color: rgba(123, 79, 46, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-identity p {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.profile-card {
    background: white;
    border: 1px solid #EAE0D6;
    border-radius: 12px;
    padding: 24px;
}

.profile-card h2 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #EAE0D6;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #EAE0D6;
    font-size: 13px;
}

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

.profile-info-row span:first-child {
    color: #999;
}

.profile-info-row span:last-child {
    color: #333;
    font-weight: 500;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.profile-form input,
.profile-form textarea {
    padding: 10px 14px;
    border: 1px solid #EAE0D6;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #FAFAF8;
    outline: none;
    transition: border-color 0.15s, background-color 0.15s;
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
    resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: var(--main-brown);
    background-color: white;
}

.profile-btn-save {
    align-self: flex-end;
    padding: 9px 24px;
    background-color: var(--main-brown);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.profile-btn-save:hover {
    opacity: 0.88;
}

/* Avatar upload */
.avatar-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #EAE0D6;
    flex-shrink: 0;
}

.avatar-drop-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px;
    border: 2px dashed #EAE0D6;
    border-radius: 10px;
    background-color: #FAFAF8;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.avatar-drop-zone:hover {
    border-color: var(--main-brown);
    background-color: rgba(123, 79, 46, 0.03);
}

.avatar-drop-zone i {
    font-size: 22px;
    color: var(--main-brown);
}

.avatar-drop-zone span {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.avatar-hint {
    font-size: 11px !important;
    color: #bbb !important;
    font-weight: 400 !important;
}

.avatar-drop-zone input[type="file"] {
    display: none;
}

.profile-btn-save {
    align-self: flex-end;
}

/* Actions */
.profile-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-btn-logout {
    padding: 8px 20px;
    background: none;
    border: 1px solid #EAE0D6;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.profile-btn-logout:hover {
    border-color: #e57373;
    color: #e57373;
}

@media (max-width: 768px) {
    .profile-header-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-banner {
        height: 80px;
    }

    .profile-avatar {
        margin-top: -40px;
    }
}