/* Account Section Styles */
.account-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
}

.account-header {
    margin-bottom: 2rem;
}

.account-greeting {
    text-align: center;
    margin-bottom: 2rem;
}

.account-greeting h1 {
    font-size: 2.5rem;
    color: #253d30;
    margin-bottom: 0.5rem;
}

.account-greeting p {
    color: #666;
    font-size: 1.1rem;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    padding: 1rem;
    border-radius: 12px;
}

.bonus-card i {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.discount-card i {
    color: #937b61;
    background: rgba(147, 123, 97, 0.1);
}

.orders-card i {
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #253d30;
}

/* Account Content */
.account-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Sidebar Navigation */
.account-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.account-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: rgba(147, 123, 97, 0.05);
    color: #937b61;
}

.nav-item.active {
    background: rgba(147, 123, 97, 0.1);
    color: #937b61;
    border-left-color: #937b61;
    font-weight: 600;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item .badge {
    margin-left: auto;
    background: #937b61;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item.logout-btn {
    color: #dc3545;
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.nav-item.logout-btn:hover {
    background: rgba(220, 53, 69, 0.05);
    color: #dc3545;
}

/* Main Content */
.account-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.account-section-content {
    display: none;
}

.account-section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #253d30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #937b61;
}

/* Profile Section */
.profile-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
}

.profile-avatar {
    text-align: center;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6F47 0%, #654321 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 4rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-change-avatar {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-change-avatar:hover {
    border-color: #937b61;
    color: #937b61;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-save {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #937b61 0%, #6d5a47 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
}

.btn-save:hover {
    background: linear-gradient(135deg, #6d5a47 0%, #937b61 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 123, 97, 0.3);
}

/* Bonuses Section */
.bonus-info-card {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

.bonus-balance h3 {
    color: white;
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bonus-actions {
    margin-top: 1.5rem;
}

.btn-bonus-action {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-bonus-action:hover {
    background: white;
    color: #ff9800;
}

.bonus-rules {
    margin-bottom: 2rem;
}

.bonus-rules h3 {
    color: #253d30;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bonus-rules h3 i {
    color: #937b61;
}

.rules-list {
    display: grid;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #937b61;
}

.rule-item i {
    font-size: 1.5rem;
    color: #937b61;
    margin-top: 0.25rem;
}

.rule-item strong {
    display: block;
    color: #253d30;
    margin-bottom: 0.25rem;
}

.rule-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.bonus-history {
    margin-top: 2rem;
}

.bonus-history h3 {
    color: #253d30;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bonus-history h3 i {
    color: #937b61;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #937b61;
}

.history-item.negative {
    border-left-color: #dc3545;
}

.history-info {
    flex: 1;
}

.history-description {
    font-weight: 600;
    color: #253d30;
    margin-bottom: 0.25rem;
}

.history-date {
    font-size: 0.85rem;
    color: #666;
}

.history-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #937b61;
}

.history-item.negative .history-amount {
    color: #dc3545;
}

/* Discounts Section */
.main-discount {
    background: linear-gradient(135deg, #937b61 0%, #6d5a47 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.discount-icon {
    font-size: 4rem;
}

.discount-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.discount-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.discount-info p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.discounts-list {
    margin-bottom: 2rem;
}

.discounts-list h3 {
    color: #253d30;
    margin-bottom: 1rem;
}

.promo-codes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promo-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #937b61;
}

.promo-code {
    font-weight: 700;
    color: #937b61;
    font-size: 1.1rem;
}

.promo-description {
    color: #666;
    font-size: 0.9rem;
}

.discount-levels {
    margin-top: 2rem;
}

.discount-levels h3 {
    color: #253d30;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-levels h3 i {
    color: #937b61;
}

.levels-list {
    display: grid;
    gap: 1rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}

.level-item[data-level="bronze"] {
    border-left-color: #cd7f32;
}

.level-item[data-level="silver"] {
    border-left-color: #c0c0c0;
}

.level-item[data-level="gold"] {
    border-left-color: #ffd700;
}

.level-item[data-level="platinum"] {
    border-left-color: #e5e4e2;
}

.level-item[data-level="diamond"] {
    border-left-color: #b9f2ff;
}

.level-item i {
    font-size: 2rem;
}

.level-item h4 {
    color: #253d30;
    margin-bottom: 0.25rem;
}

.level-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Orders Section */
.orders-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #937b61;
    color: #937b61;
}

.filter-btn.active {
    background: #937b61;
    color: white;
    border-color: #937b61;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #937b61;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.order-number {
    font-weight: 700;
    color: #253d30;
    font-size: 1.1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #cfe2ff;
    color: #084298;
}

.order-status.shipped {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status.delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #842029;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #937b61;
}

.btn-view-order {
    padding: 0.5rem 1rem;
    background: #937b61;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-order:hover {
    background: #6d5a47;
    transform: translateY(-2px);
}

/* Favorites Section */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* View History Section */
.view-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.view-history-content .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-clear-history {
    background: #6d5a47;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-history:hover {
    background: #5a4a3a;
    transform: translateY(-2px);
}

.view-history-grid .product-card {
    position: relative;
}

.view-history-grid .remove-from-history {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.view-history-grid .remove-from-history:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.favorite-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Addresses Section */
.addresses-list {
    display: grid;
    gap: 1rem;
}

.address-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #937b61;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.address-info {
    flex: 1;
}

.address-title {
    font-weight: 700;
    color: #253d30;
    margin-bottom: 0.5rem;
}

.address-text {
    color: #666;
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit-address,
.btn-delete-address {
    padding: 0.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-address:hover {
    border-color: #937b61;
    color: #937b61;
}

.btn-delete-address:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-add-address {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #937b61 0%, #6d5a47 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-address:hover {
    background: linear-gradient(135deg, #6d5a47 0%, #937b61 100%);
    transform: translateY(-2px);
}

/* Settings Section */
.settings-group {
    margin-bottom: 2rem;
}

.settings-group h3 {
    color: #253d30;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #937b61;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.setting-item strong {
    display: block;
    color: #253d30;
    margin-bottom: 0.25rem;
}

.setting-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.btn-change-password {
    padding: 0.75rem 1.5rem;
    background: #937b61;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-change-password:hover {
    background: #6d5a47;
    transform: translateY(-2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-content h2 {
    color: #253d30;
    margin-bottom: 1.5rem;
}

/* User Menu */
.user-menu.logged-in {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-menu.logged-in:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-name {
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 968px) {
    .account-content {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: #937b61;
    }

    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .account-section {
        padding: 80px 0 60px;
    }

    .account-main {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

