/* ==========================================================
   ACCOUNT LAYOUT
   ========================================================== */

.account-wrap {
    display: flex;
    gap: 30px;
}

.account-sidebar {
    width: 200px;
}

.account-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-sidebar ul li a {
    display: block;
    padding: 10px;
    border-radius: 6px;
    background: #141414;
    margin-bottom: 5px;
    color: #fff;
    text-decoration: none;
}

.account-sidebar ul li a.active {
    background: #1f6bff;
}

.account-content {
    flex: 1;
}



/* ==========================================================
   PROFILE PAGE (TEXT FIELDS)
   ========================================================== */

.profile-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.avatar-box {
    width: 230px;
    height: 230px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    color: #ddd;
    font-size: 14px;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    margin-bottom: 15px;
}

.profile-form .form-row-full {
    margin-bottom: 15px;
}

.profile-form label {
    font-weight: 600;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.profile-form textarea {
    min-height: 100px;
}

.btn-save {
    margin-top: 20px;
    padding: 10px 22px;
    background: #1f6bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}



/* ==========================================================
   PHOTOS PAGE
   ========================================================== */

.photos-wrapper,
.photo-section {
    margin-top: 20px;
}

/* Main photo */
.main-photo-box {
    width: 230px;
    height: 230px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* Buttons */
.avatar-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1f6bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-btn input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}

.delete-btn {
    padding: 8px 12px;
    background: #e74c3c;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

/* Photo album */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.album-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    cursor: pointer;
}

.limit-warning {
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #ff7b7b;
    border-radius: 6px;
}



/* ==========================================================
   NOTICES
   ========================================================== */

.notice-success,
.notice-error {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.notice-success {
    background: rgba(0, 180, 60, .15);
    border: 1px solid rgba(0, 180, 60, .5);
}

.notice-error {
    background: rgba(255, 0, 0, .15);
    border: 1px solid rgba(255, 0, 0, .5);
}



/* ==========================================================
   LIGHTBOX (PHOTO VIEWER)
   ========================================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding-top: 60px;
}

.lightbox.show {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}