/* ========================================
   Account Page Styles - Царский Сон
   ======================================== */

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumb-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-nav {
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #C9A961;
}

.breadcrumb-current {
    color: #2E1500;
    font-size: 0.875rem;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    color: #d1d5db;
}

/* ========================================
   Account Page Layout
   ======================================== */
.account-page {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #fafafa, #ffffff, #f5f5f5);
}

/* ========================================
   Account Header
   ======================================== */
.account-header {
    position: relative;
    background: linear-gradient(to bottom right, #FAF8F5, #FFF9F0, #F5F1EB);
    color: #2E1500;
    padding: 4rem 0;
    overflow: hidden;
    border-bottom: 2px solid #E5DCC8;
}

.account-header-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.account-header-bg::before,
.account-header-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #E5DCC8;
    filter: blur(80px);
}

.account-header-bg::before {
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
}

.account-header-bg::after {
    bottom: 0;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: #D4C9B8;
}

.account-header-content {
    position: relative;
    z-index: 10;
}

.account-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-user-name {
    font-size: 1.875rem;
    color: #2E1500;
    margin: 0;
}

.account-user-email {
    color: #A88B4D;
    font-size: 1.125rem;
    margin: 0;
}

.account-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.account-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.account-badge-vip {
    background: linear-gradient(to right, #C9A961, #A88B4D);
    color: white;
}

.account-badge-bonus {
    background: white;
    color: #A88B4D;
    border: 1px solid rgba(201, 169, 97, 0.3);
}

/* ========================================
   Account Main Content
   ======================================== */
.account-main {
    padding: 2rem 1rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ========================================
   Account Sidebar
   ======================================== */
.account-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
}

.account-nav {
    padding: 0.5rem;
}

.account-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #6b7280;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.account-nav-item svg:first-child {
    flex-shrink: 0;
}

.account-nav-item span {
    flex: 1;
    margin-left: 0.75rem;
}

.account-nav-item .account-nav-arrow {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-nav-item:hover {
    color: #2E1500;
    transform: translateX(4px);
}

.account-nav-item.active {
    color: #2E1500;
    background: linear-gradient(to right, rgba(201, 169, 97, 0.1), rgba(168, 139, 77, 0.1));
    border-left-color: #C9A961;
}

.account-nav-item.active svg:first-child {
    color: #C9A961;
}

.account-nav-item.active .account-nav-arrow {
    opacity: 1;
    color: #C9A961;
}

.account-nav-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
}

.account-nav-logout {
    color: #6b7280;
}

.account-nav-logout:hover {
    color: #dc2626;
}

/* ========================================
   Account Content
   ======================================== */
.account-content {
    position: relative;
}

.account-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.account-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-section {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-section-title {
    font-size: 1.5rem;
    color: #2E1500;
    margin: 0;
}

/* ========================================
   Buttons
   ======================================== */
.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-btn-primary {
    background: linear-gradient(to right, #C9A961, #A88B4D);
    color: white;
}

.account-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.account-btn-outline {
    background: transparent;
    border: 1px solid #C9A961;
    color: #A88B4D;
}

.account-btn-outline:hover {
    background: rgba(201, 169, 97, 0.1);
}

.account-btn-danger {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.account-btn-danger:hover {
    background: rgba(220, 38, 38, 0.05);
}

.account-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   Form
   ======================================== */
.account-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2E1500;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-label svg {
    color: #A88B4D;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input[readonly] {
    background-color: #f9fafb;
    cursor: default;
}

/* ========================================
   Stats Cards
   ======================================== */
.account-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.account-stat-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.account-stat-card:hover {
    transform: translateY(-4px);
}

.account-stat-card-gold {
    background: linear-gradient(to bottom right, #C9A961, #A88B4D);
    color: white;
}

.account-stat-card-white {
    background: white;
    border: 2px solid #C9A961;
    color: #2E1500;
}

.account-stat-card-white svg {
    color: #C9A961;
}

.account-stat-bg {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.account-stat-card-white .account-stat-bg {
    background: rgba(201, 169, 97, 0.05);
}

.account-stat-card svg {
    margin-bottom: 0.75rem;
}

.account-stat-label {
    opacity: 0.8;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.account-stat-value {
    font-size: 1.875rem;
    font-weight: 400;
    margin: 0;
}

/* ========================================
   Orders List
   ======================================== */
.account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item-lk {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: #C9A961;
    transform: translateX(4px);
}

.order-image {
    width: 100%;
    height: 8rem;
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.order-item:hover .order-image img {
    transform: scale(1.1);
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-number {
    font-size: 1.125rem;
    color: #2E1500;
    margin: 0 0 0.25rem 0;
}

.order-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.order-status {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.order-status-delivered {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.2);
}

.order-status-shipping {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.2);
}

.order-status-processing {
    background: rgba(201, 169, 97, 0.1);
    color: #A88B4D;
    border-color: rgba(201, 169, 97, 0.2);
}

.order-status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.order-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-items {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.order-total {
    font-size: 1.25rem;
    color: #2E1500;
    font-weight: 500;
    margin: 0;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ========================================
   Favorites Grid
   ======================================== */
.favorites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.favorite-product {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.favorite-product:hover {
    border-color: #C9A961;
}

.favorite-product-image {
    position: relative;
    height: 16rem;
    background: #f5f5f5;
    overflow: hidden;
}

.favorite-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.favorite-product:hover .favorite-product-image img {
    transform: scale(1.1);
}

.favorite-remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #dc2626;
}

.favorite-remove-btn:hover {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.favorite-product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.favorite-product-name {
    color: #2E1500;
    font-size: 1rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-current {
    font-size: 1.5rem;
    color: #2E1500;
    font-weight: 500;
}

.price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ========================================
   Addresses List
   ======================================== */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-card {
    border: 1px solid #e5e7eb;
    padding: 1.25rem;
    transition: border-color 0.3s ease;
}

.address-card:hover {
    border-color: #C9A961;
}

.address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.address-name {
    font-size: 1.125rem;
    color: #2E1500;
    margin: 0;
}

.address-badge-default {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: linear-gradient(to right, #C9A961, #A88B4D);
    color: white;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.address-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.address-info-item svg {
    color: #C9A961;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.address-info-item span {
    color: #374151;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.address-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-btn-edit {
    border-color: #C9A961;
    color: #A88B4D;
}

.address-btn-edit:hover {
    background: rgba(201, 169, 97, 0.1);
}

.address-btn-delete {
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.address-btn-delete:hover {
    background: rgba(220, 38, 38, 0.05);
}

/* ========================================
   Loyalty Card
   ======================================== */
.loyalty-bonus-card {
    position: relative;
    background: linear-gradient(to bottom right, #2E1500, #3E2510, #2E1500);
    color: white;
    padding: 2rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loyalty-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.loyalty-card-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.loyalty-card-circle-1 {
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: #C9A961;
}

.loyalty-card-circle-2 {
    bottom: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: #A88B4D;
}

.loyalty-card-content {
    position: relative;
    z-index: 10;
}

.loyalty-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.loyalty-card-label {
    color: #C9A961;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.loyalty-card-title {
    font-size: 1.875rem;
    margin: 0;
}

.loyalty-card-header svg {
    color: #C9A961;
}

.loyalty-card-balance {
    margin-bottom: 1rem;
}

.loyalty-card-balance-label {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.loyalty-card-balance-value {
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
}

.loyalty-card-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loyalty-card-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.loyalty-card-info-value {
    font-size: 1.25rem;
    color: #C9A961;
    margin: 0;
}

/* ========================================
   Loyalty Levels
   ======================================== */
.loyalty-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loyalty-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s ease;
    position: relative;
}

.loyalty-level:hover {
    border-color: #C9A961;
}

.loyalty-level-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.loyalty-level-basic {
    background: #6b7280;
}

.loyalty-level-silver {
    background: #9ca3af;
}

.loyalty-level-gold {
    background: #C9A961;
}

.loyalty-level-vip {
    background: linear-gradient(to right, #C9A961, #A88B4D);
}

.loyalty-level-info {
    flex: 1;
}

.loyalty-level-name {
    font-size: 1.125rem;
    color: #2E1500;
    margin: 0 0 0.25rem 0;
}

.loyalty-level-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.loyalty-level-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: linear-gradient(to right, #C9A961, #A88B4D);
    color: white;
}

/* ========================================
   Bonus History
   ======================================== */
.bonus-history {
    display: flex;
    flex-direction: column;
}

.bonus-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
}

.bonus-history-item:last-child {
    border-bottom: none;
}

.bonus-history-desc {
    color: #2E1500;
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}

.bonus-history-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.bonus-history-amount {
    font-size: 1.125rem;
    font-weight: 500;
    flex-shrink: 0;
}

.bonus-history-plus {
    color: #15803d;
}

.bonus-history-minus {
    color: #6b7280;
}

/* ========================================
   Settings
   ======================================== */
.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group-title {
    font-size: 1.125rem;
    color: #2E1500;
    margin-bottom: 1rem;
}

.settings-group-danger {
    color: #dc2626;
}

.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (min-width: 768px) {
    .account-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .favorites-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .order-item {
        flex-direction: row;
    }

    .order-image {
        width: 8rem;
        height: 8rem;
    }

    .loyalty-card-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .account-layout {
        grid-template-columns: 280px 1fr;
    }

    .account-main {
        padding: 2rem 1rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.w-full {
    width: 100%;
}
  .order-detail-item {
      width: 12rem;
  }
