/* ===========================
   ACCOUNT PAGES STYLES
   =========================== */

   :root {
    --admin-primary: #002993;
    --admin-secondary: #BC9E50;
    --admin-dark: #1a1d2e;
    --admin-gray: #6c757d;
    --admin-light-gray: #f8f9fa;
    --admin-border: #dee2e6;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-info: #3b82f6;
}

/* Account Section */
.account-section {
    min-height: 80vh;
    background-color: #f9fafb;
}

/* Account Sidebar */
.account-sidebar {
    position: sticky;
    top: 100px;
}

.user-info-card {
    background: linear-gradient(135deg, var(--navy) 0%, rgba(0, 41, 147, 0.9) 100%);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 41, 147, 0.15);
}
.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.primary {
    background: var(--admin-primary);
    color: var(--admin-secondary);
}

.filter-btn.secondary {
    background: var(--admin-light-gray);
    color: var(--admin-dark);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.user-info-card img {
border-radius: 50%;
    width: 75%;
    height: 75%;
    margin: 0 auto;}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(188, 158, 80, 0.2);
    border: 3px solid var(--golden);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    color: var(--golden);
}

.user-name {
    font-size: 1.25rem;
    font-weight: 700;
    /* color: white; */
    margin-bottom: 6px;
}

.user-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Account Navigation */
.account-nav {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.account-nav-item:hover {
    background-color: #f3f4f6;
    color: var(--navy);
}

.account-nav-item.active {
    background-color: rgba(0, 41, 147, 0.05);
    color: var(--navy);
    border-left-color: var(--navy);
    font-weight: 600;
}

.account-nav-item i {
    font-size: 18px;
    width: 20px;
}

/* Account Alerts */
.account-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slideInDown 0.4s ease;
}

.account-alert.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.account-alert.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.account-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.account-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.account-page-subtitle {
    color: #6b7280;
    margin-top: 6px;
}

.add-address-header-btn {
    padding: 12px 24px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-address-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 41, 147, 0.2);
}

/* Account Card */
.account-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.account-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.view-all-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--golden);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
}

.stat-icon.orders {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-icon.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.wishlist {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-icon.addresses {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.order-item-card:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-item-image {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-id {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.order-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.order-items {
    color: #4b5563;
    font-size: 0.9rem;
}

.order-item-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-badge.green {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.red {
    background-color: #fee2e2;
    color: #991b1b;
}

.order-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.order-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-action-btn {
    padding: 8px 20px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.order-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 147, 0.2);
}

/* Quick Actions */
.quick-action-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.quick-action-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--golden) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.quick-action-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.quick-action-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

.quick-action-btn {
    padding: 12px 32px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 41, 147, 0.2);
}

/* Order Filter Tabs */
.order-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    overflow-x: auto;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 6px;
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background-color: #f3f4f6;
    color: var(--navy);
}

.filter-tab.active {
    background-color: var(--navy);
    color: var(--golden);
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.order-card-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.order-card-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.order-card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.order-card-image {
    position: relative;
    width: 100px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.items-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.order-card-details {
    flex: 1;
}

.order-items-text {
    color: #6b7280;
    margin-bottom: 6px;
}

.order-total-text {
    color: #4b5563;
    font-size: 1.1rem;
}

.order-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-detail-btn,
.order-track-btn,
.order-return-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.order-detail-btn {
    background-color: var(--navy);
    color: var(--golden);
}

.order-track-btn {
    background-color: #3b82f6;
    color: white;
}

.order-return-btn {
    background-color: #f59e0b;
    color: white;
}

.order-detail-btn:hover,
.order-track-btn:hover,
.order-return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 5rem;
    color: #e5e7eb;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.empty-state p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.empty-state-btn {
    padding: 14px 36px;
    background-color: var(--navy);
    color: var(--golden);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--navy);
}

/* Order Detail Header */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.order-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.order-detail-date {
    color: #6b7280;
    margin-top: 6px;
}

.status-badge-large {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge-large.delivered {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge-large.shipped {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge-large.processing {
    background-color: #fef3c7;
    color: #92400e;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-detail-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.order-detail-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.order-detail-item-info {
    flex: 1;
}

.order-detail-item-info h4 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.order-detail-item-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.order-detail-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

/* Tracking Timeline */
.tracking-timeline {
    position: relative;
    padding-left: 40px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background-color: #e5e7eb;
}

.tracking-step {
    position: relative;
    margin-bottom: 32px;
}

.tracking-icon {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}

.tracking-step.completed .tracking-icon {
    background: linear-gradient(135deg, var(--navy) 0%, var(--golden) 100%);
    color: white;
}

.tracking-content h4 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.tracking-content p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Price Summary */
.price-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #4b5563;
}

.price-row.total {
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

/* Address Detail */
.address-detail {
    line-height: 1.7;
}

.address-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.address-text {
    color: #6b7280;
    margin-bottom: 8px;
}

.address-mobile {
    color: #4b5563;
    font-weight: 600;
}

.payment-method-text {
    color: #4b5563;
    font-size: 1.05rem;
}

/* Action Buttons */
.cancel-order-btn,
.return-order-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.cancel-order-btn {
    background-color: #fee2e2;
    color: #991b1b;
}

.return-order-btn {
    background-color: #fef3c7;
    color: #92400e;
}

.cancel-order-btn:hover,
.return-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.wishlist-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wishlist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.wishlist-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.wishlist-remove-btn:hover {
    background-color: #ef4444;
    color: white;
}

.wishlist-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.wishlist-image {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

.wishlist-card:hover .wishlist-image img {
    transform: scale(1.1);
}

.wishlist-content {
    padding: 16px;
}

.wishlist-product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.wishlist-product-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wishlist-product-name a:hover {
    color: var(--navy);
}

.wishlist-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wishlist-price .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.wishlist-price .original-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.wishlist-stock {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wishlist-stock.in-stock {
    color: #10b981;
}

.wishlist-stock.low-stock {
    color: #f59e0b;
}

.wishlist-stock i {
    font-size: 8px;
}

.wishlist-add-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-add-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 147, 0.2);
}

/* Addresses Grid */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.address-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.address-card:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.address-badges {
    position: absolute;
    top: -12px;
    right: 10px;
    color: white;
}

.default-address-badge {
    background: linear-gradient(135deg, var(--golden) 0%, #d4a574 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.billing-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.address-type-label {
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.address-card-actions {
    display: flex;
    gap: 8px;
}

.address-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.address-action-icon:hover {
    background-color: var(--navy);
    color: var(--golden);
}

.address-action-icon.delete:hover {
    background-color: #ef4444;
    color: white;
}

.address-card-body {
    margin-bottom: 16px;
}

.address-card-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.address-card-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.address-card-mobile {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
}

.set-default-btn {
    width: 100%;
    padding: 10px;
    background-color: #f3f4f6;
    color: var(--navy);
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.set-default-btn:hover {
    background-color: var(--navy);
    color: var(--golden);
    border-color: var(--navy);
}

/* Add Address Card */
.add-address-card {
    background: linear-gradient(135deg, rgba(0, 41, 147, 0.05) 0%, rgba(188, 158, 80, 0.05) 100%);
    border: 2px dashed var(--navy);
    border-radius: 12px;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-address-card:hover {
    background: linear-gradient(135deg, rgba(0, 41, 147, 0.08) 0%, rgba(188, 158, 80, 0.08) 100%);
    border-color: var(--golden);
}

.add-address-card i {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.add-address-card p {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Address Modal */
.address-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.address-modal.show {
    opacity: 1;
    visibility: visible;
}

.address-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.address-modal.show .address-modal-content {
    transform: scale(1);
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.address-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.address-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.address-modal-close:hover {
    background-color: #ef4444;
    color: white;
}

.address-modal-content form {
    padding: 24px;
}

.address-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background-color: var(--navy);
    color: var(--golden);
}

.modal-btn.secondary {
    background-color: #f3f4f6;
    color: #4b5563;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Profile Specific */
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--golden) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.profile-email {
    color: #6b7280;
    margin-bottom: 8px;
}

.profile-joined {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.upload-photo-btn {
    padding: 10px 24px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 147, 0.2);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
    background-color: rgba(0, 41, 147, 0.02);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.form-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 600;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--navy);
}

.form-actions {
    margin-top: 24px;
}

.form-submit-btn {
    padding: 14px 32px;
    background-color: var(--navy);
    color: var(--golden);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 147, 0.25);
}

/* Returns */
.returns-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.return-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.return-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.return-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.return-order-id {
    color: #6b7280;
    font-size: 0.9rem;
}

.return-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.return-status-badge.approved {
    background-color: #d1fae5;
    color: #065f46;
}

.return-status-badge.processing {
    background-color: #fef3c7;
    color: #92400e;
}

.return-status-badge.rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.return-card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.return-product-image {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

.return-details {
    flex: 1;
}

.return-product-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.return-reason,
.return-date,
.return-amount {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.return-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.return-cancel-btn {
    padding: 10px 20px;
    background-color: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.return-cancel-btn:hover {
    background-color: #ef4444;
    color: white;
}

.return-policy-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.policy-item i {
    color: #10b981;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-item p {
    color: #4b5563;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .account-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-item-card,
    .order-card-body,
    .return-card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-card-actions,
    .order-item-actions,
    .return-actions {
        flex-direction: row;
        width: 100%;
    }

    .order-action-btn,
    .order-detail-btn,
    .order-track-btn,
    .order-return-btn {
        flex: 1;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

@media (max-width: 480px) {
    .account-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

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

    .order-filter-tabs {
        flex-wrap: nowrap;
    }

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

    .address-modal-content {
        max-height: 95vh;
    }
}
/* Review form improvements */
.write-review-box {
    background: #f8fafc;
    border: 1px solid #e6edf3;
    padding: 16px;
    border-radius: 10px;
}
.write-review-box .rating-input {
    display: flex;
    gap: 6px;
    align-items: center;
}
.write-review-box .rating-input input[type="radio"] {
    display: none;
}
.write-review-box .rating-input label {
    cursor: pointer;
    font-size: 20px;
    color: #cbd5e1;
    transition: color 0.15s ease;
}
.write-review-box .rating-input input[type="radio"]:checked + label i,
.write-review-box .rating-input label:hover i {
    color: #f59e0b;
}
.write-review-box textarea.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    box-sizing: border-box;
}
.write-review-box .product-add-cart-btn {
    background: #002993;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.write-review-box .product-add-cart-btn:hover {
    background: #001a5e;
}
.write-review-box .product-add-cart-btn.mt-4 { margin-top: 12px; }

/* Small layout tweaks for review items */
.reviews-list .review-item { padding: 12px; border-bottom: 1px solid #eef2f7; }

.tracking-step.cancelled .tracking-icon {
    background: #ef4444;
}

.tracking-step.cancelled .tracking-content h4 {
    color: #ef4444;
}

.tracking-number {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.tracking-number strong {
    color: #111827;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #002993 0%, #001a66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-avatar-large i {
    font-size: 60px;
    color: white;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-photo-btn {
    margin-top: 1rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, #002993 0%, #001a66 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 147, 0.3);
}
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert ul li {
    margin: 0.25rem 0;
}
