/* 
 * Premium Account Styles for WooCommerce
 * Modern, Sleek, and Professional Design
 */

:root {
    /* Color Palette - Premium Tech Indigo */
    --acc-primary: #6366f1;
    --acc-primary-rgb: 99, 102, 241;
    --acc-secondary: #8b5cf6;
    --acc-accent: #f43f5e;
    --acc-bg: #f8fafc;
    --acc-card-bg: #ffffff;
    --acc-text: #1e293b;
    --acc-text-muted: #64748b;
    --acc-border: #e2e8f0;
    --acc-radius-lg: 16px;
    --acc-radius-md: 12px;
    --acc-radius-sm: 8px;
    --acc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --acc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --acc-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Auth specific */
    --auth-primary: var(--acc-primary);
    --auth-primary-hover: var(--acc-secondary);
}

/* Base resets & layout */
.woocommerce-account .woocommerce {
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Hide default titles */
.woocommerce-account h1,
.woocommerce-account .page-title,
.woocommerce-account .bricks-title {
    display: none !important;
}

.noti-count {
    position: absolute;
    top: 0px !important;
    right: -8px !important;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    width: 15px;
    height: 15px;
    justify-content: center;
    display: flex;
    line-height: 1em;
}

.woocommerce-MyAccount-content h2 {
    font-size: 16px;
}

/* 1. Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: transparent;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    background: var(--acc-card-bg);
    border-radius: var(--acc-radius-lg);
    border: 1px solid var(--acc-border);
    box-shadow: var(--acc-shadow);
}

.woocommerce-MyAccount-navigation ul li {
    margin: 4px 0 !important;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    color: var(--acc-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--acc-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    line-height: 50px;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(var(--acc-primary-rgb), 0.05);
    color: var(--acc-primary);
    transform: translateX(5px);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, var(--acc-primary), var(--acc-secondary));
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(var(--acc-primary-rgb), 0.3);
}

/* Nav Icons via SVG Masks */
.woocommerce-MyAccount-navigation ul li a::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 14px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.woocommerce-MyAccount-navigation-link--dashboard a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6' /%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z' /%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4' /%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z' /%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z' /%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--notifications a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9' /%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1' /%3E%3C/svg%3E");
}

/* 2. Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    background: var(--acc-card-bg);
    padding: 40px;
    border-radius: var(--acc-radius-lg);
    border: 1px solid var(--acc-border);
    box-shadow: var(--acc-shadow-lg);
    min-height: 500px;
    animation: accFadeIn 0.5s ease-out;
}

@keyframes accFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Profile Card */
.dashboard-profile-card {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    margin-top: 25px;
}

.spending-report-section {
    background: #ffffff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-lg);
    padding: 30px;
    margin-bottom: 40px;
}

.spending-report-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--acc-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-profile-card::after {
    content: \"\";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--acc-primary-rgb), 0.05) 0%, transparent 70%);
    z-index: 0;
}

.db-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--acc-border);
    position: relative;
    z-index: 1;
}

.db-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: var(--acc-shadow);
}

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

.db-user-meta h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--acc-text);
    letter-spacing: -0.5px;
}

.db-user-meta p {
    margin: 5px 0 0;
    font-size: 15px;
    color: var(--acc-text-muted);
}

.db-edit-link {
    margin-left: auto;
    font-size: 14px;
    color: var(--acc-primary);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--acc-primary);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}

.db-edit-link:hover {
    background: var(--acc-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--acc-primary-rgb), 0.3);
}

.db-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.db-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.db-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--acc-text-muted);
    font-weight: 700;
}

.db-info-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--acc-text);
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.db-stat-card {
    background: var(--acc-bg);
    padding: 20px;
    border-radius: var(--acc-radius-md);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.db-stat-card:hover {
    background: #ffffff;
    border-color: var(--acc-primary);
    box-shadow: var(--acc-shadow);
    transform: translateY(-3px);
}

.db-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--acc-text-muted);
    margin-bottom: 8px;
}

.db-stat-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--acc-text);
}

.db-stat-val.points {
    color: #f59e0b;
}

/* Forms & Inputs */
.woocommerce-MyAccount-content form.edit-account,
.woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    max-width: 800px;
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-MyAccount-content .form-row-first,
.woocommerce-MyAccount-content .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce-MyAccount-content .form-row-last {
    float: right;
}

.woocommerce-MyAccount-content .form-row-wide {
    width: 100%;
    clear: both;
}

/* Addresses Summary Styling */
.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.woocommerce-Address {
    background: #ffffff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius-lg);
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.woocommerce-Address:hover {
    transform: translateY(-5px);
    box-shadow: var(--acc-shadow-lg);
    border-color: var(--acc-primary);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--acc-bg);
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--acc-text);
}

.woocommerce-Address-title .edit {
    font-size: 13px;
    color: var(--acc-primary);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(var(--acc-primary-rgb), 0.05);
    border-radius: var(--acc-radius-sm);
    transition: all 0.3s;
}

.woocommerce-Address-title .edit:hover {
    background: var(--acc-primary);
    color: #ffffff;
}

.woocommerce-Address address {
    font-style: normal;
    color: var(--acc-text-muted);
    line-height: 1.8;
    font-size: 14px;
}

/* Icons for address details */
.woocommerce-Address address br {
    display: block;
    content: "";
    margin-bottom: 5px;
}

/* Custom styling for the formatted address parts */
.woocommerce-Address address {
    display: block;
}

.woocommerce-Address address b,
.woocommerce-Address address strong {
    color: var(--acc-text);
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.woocommerce-MyAccount-content .form-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Hide Unnecessary Address Fields */
#billing_country_field,
#shipping_country_field,
#billing_postcode_field,
#shipping_postcode_field {
    display: none !important;
}

/* Force visibility of essential address fields */
.woocommerce-account #billing_state_field,
.woocommerce-account #shipping_state_field,
.woocommerce-account #billing_city_field,
.woocommerce-account #shipping_city_field {
    display: block !important;
}

.woocommerce-MyAccount-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--acc-text);
}

.woocommerce-MyAccount-content label abbr.required {
    text-decoration: none !important;
    color: var(--acc-accent);
}

.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea,
.select2-container--default .select2-selection--single {
    width: 100% !important;
    height: auto !important;
    padding: 10px 16px !important;
    border: 2px solid var(--acc-border) !important;
    border-radius: var(--acc-radius-md) !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    background: #ffffff !important;
    color: var(--acc-text) !important;
    box-sizing: border-box !important;
    display: block !important;
}

.woocommerce-MyAccount-content input.input-text {
    width: 100% !important;
    height: auto !important;
    padding: 0px 16px !important;
    border: 2px solid var(--acc-border) !important;
    border-radius: var(--acc-radius-md) !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    background: #ffffff !important;
    color: var(--acc-text) !important;
    box-sizing: border-box !important;
    display: block !important;
}

.select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    padding: 0 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: var(--acc-text) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
}

.woocommerce-MyAccount-content input.input-text:focus,
.woocommerce-MyAccount-content select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--acc-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--acc-primary-rgb), 0.1) !important;
    outline: none !important;
}

/* Select2 Dropdown Styling */
.select2-dropdown {
    border: 1px solid var(--acc-border) !important;
    border-radius: var(--acc-radius-md) !important;
    box-shadow: var(--acc-shadow-lg) !important;
    overflow: hidden !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--acc-border) !important;
    border-radius: var(--acc-radius-sm) !important;
    padding: 8px 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--acc-primary) !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 16px !important;
}

/* Avatar Upload Section */
.edit-account-avatar-section {
    margin: 40px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: var(--acc-radius-lg);
    border: 2px dashed var(--acc-border);
}

.avatar-upload-container {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 15px;
}

.avatar-preview-small {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: var(--acc-shadow);
}

.btn-upload-avatar-trigger {
    background: #ffffff !important;
    border: 2px solid var(--acc-border) !important;
    color: var(--acc-text) !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: var(--acc-radius-md) !important;
    cursor: pointer;
    transition: all 0.3s !important;
}

.btn-upload-avatar-trigger:hover {
    border-color: var(--acc-primary) !important;
    color: var(--acc-primary) !important;
}

/* Tables */
.shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--acc-border) !important;
    border-radius: var(--acc-radius-lg) !important;
    overflow: hidden !important;
    margin: 20px 0 !important;
}

.shop_table th {
    background: #f8fafc !important;
    padding: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    color: var(--acc-text-muted) !important;
}

.shop_table td {
    padding: 20px !important;
    border-top: 1px solid var(--acc-border) !important;
    vertical-align: middle !important;
}

.woocommerce-order-details .woocommerce-table__product-total {
    text-align: end;
}

/* Order Details Table Enhancements */
.woocommerce-table--order-details {
    margin-top: 30px !important;
}

.woocommerce-table--order-details thead th {
    background: #f8fafc !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 15px 20px !important;
    border-bottom: 2px solid var(--acc-bg) !important;
}

.woocommerce-table--order-details .woocommerce-table__product-name {
    padding-left: 20px !important;
}

.woocommerce-table--order-details .woocommerce-table__product-name a {
    font-weight: 600;
    color: var(--acc-text);
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
    line-height: 1.2em;
}

.woocommerce-table--order-details .woocommerce-table__product-name img {
    margin-right: 15px;
    border-radius: 8px;
    border: 1px solid var(--acc-border);
    float: left;
}

.woocommerce-table--order-details .product-quantity {
    display: inline-block !important;
    font-weight: 800 !important;
    background: var(--acc-bg);
    color: var(--acc-primary);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.woocommerce-table--order-details tfoot th {
    text-align: left !important;
    font-weight: 600;
    color: var(--acc-text-muted);
    text-transform: uppercase;
    font-size: 12px;
    border-top: 1px solid var(--acc-bg) !important;
}

.woocommerce-table--order-details tfoot td {
    text-align: right !important;
    font-weight: 700;
    color: var(--acc-text);
    border-top: 1px solid var(--acc-bg) !important;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    background: #f8fafc;
}

.woocommerce-table--order-details tfoot tr:last-child td .woocommerce-Price-amount {
    color: var(--acc-accent);
    font-size: 20px;
    font-weight: 800;
}

/* Hide redundant customer details info */
.woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce-customer-details .woocommerce-customer-details--phone {
    display: none !important;
}

/* Notifications UI */
.cc-notifications-wrap {
    width: 100%;
}

.noti-summary {
    font-size: 13px;
    color: var(--acc-text-muted);
    margin: 0 0 12px;
}

.noti-list-scroll {
    max-height: min(70vh, 720px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
}

.noti-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--acc-border);
}

.noti-page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.noti-page-link,
.noti-page-current,
.noti-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--acc-radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.noti-page-link {
    background: var(--acc-bg);
    color: var(--acc-text);
    border: 1px solid var(--acc-border);
    transition: all 0.2s;
}

.noti-page-link:hover {
    border-color: var(--acc-primary);
    color: var(--acc-primary);
}

.noti-page-current {
    background: var(--acc-primary);
    color: #fff;
}

.noti-page-dots {
    color: var(--acc-text-muted);
    min-width: auto;
    padding: 0 4px;
}

.noti-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.noti-bell-wrapper {
    position: relative;
    display: inline-block;
}

.noti-bell-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.noti-bell-icon {
    font-size: 20px;
    line-height: 1;
}

.noti-bell-wrapper .noti-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.noti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--acc-bg);
}

.noti-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--acc-text);
}

.noti-mark-all {
    background: transparent;
    border: none;
    color: var(--acc-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--acc-radius-sm);
    transition: background 0.3s;
}

.noti-mark-all:hover {
    background: rgba(var(--acc-primary-rgb), 0.05);
}

.noti-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--acc-radius-lg);
    border: 1px solid var(--acc-border);
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.noti-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--acc-shadow);
    border-color: var(--acc-primary);
}

.noti-item.unread {
    background: linear-gradient(to right, rgba(var(--acc-primary-rgb), 0.02), #ffffff);
    border-left: 4px solid var(--acc-primary);
}

.noti-icon {
    width: 48px;
    height: 48px;
    background: var(--acc-bg);
    border-radius: var(--acc-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.noti-item-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--acc-text);
}

.noti-item-msg {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--acc-text-muted);
    line-height: 1.6;
}

.noti-item-time {
    font-size: 12px;
    color: var(--acc-text-muted);
    font-weight: 600;
    display: inline-block;
}

.noti-copy-btn,
.noti-item-link {
    display: inline-block;
    margin-top: 10px;
    background: var(--acc-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--acc-radius-md);
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1.3em;
}

.noti-copy-btn:hover {
    background: var(--acc-secondary);
    box-shadow: 0 4px 10px rgba(var(--acc-primary-rgb), 0.2);
}

.noti-delete {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: var(--acc-text-muted) !important;
    cursor: pointer;
    transition: all 0.3s !important;
    line-height: 1 !important;
    padding: 0 !important;
    opacity: 0;
}

.noti-item:hover .noti-delete {
    opacity: 1;
}

.noti-delete:hover {
    background: var(--acc-accent) !important;
    color: #ffffff !important;
    transform: rotate(90deg);
}

.noti-dot {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 8px;
    height: 8px;
    background: var(--acc-primary);
    border-radius: 50%;
    z-index: 2;
}

/* Auth Pages (Login/Register) */
.auth-container {
    max-width: 700px;
    margin: 80px auto;
    padding: 50px;
    background: var(--acc-card-bg);
    border-radius: 24px;
    box-shadow: var(--acc-shadow-lg);
    border: 1px solid var(--acc-border);
}

.auth-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--acc-text);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.auth-subtitle {
    text-align: center;
    color: var(--acc-text-muted);
    margin-bottom: 40px;
    font-size: 16px;
}

.auth-group {
    margin-bottom: 25px;
}

.auth-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--acc-text);
    margin-bottom: 10px;
}

.auth-group input {
    width: 100%;
    padding: 8px 18px;
    background: #f8fafc;
    border: 2px solid var(--acc-border);
    border-radius: var(--acc-radius-md);
    font-size: 15px;
    color: var(--acc-text);
    transition: all 0.3s;
}

.auth-group input:focus {
    background: #ffffff;
    border-color: var(--acc-primary);
    box-shadow: 0 0 0 4px rgba(var(--acc-primary-rgb), 0.1);
    outline: none;
}

.auth-message {
    padding: 12px 15px;
    border-radius: var(--acc-radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    font-weight: 600;
}

.auth-message.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.auth-message.success {
    background: #f0fdf4;
    color: #22c55e;
    border: 1px solid #dcfce7;
}

.auth-footer {
    margin-top: 35px;
    text-align: center;
    font-size: 14px;
    color: var(--acc-text-muted);
}

.auth-footer a {
    color: var(--acc-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--acc-primary), var(--acc-secondary));
    color: #ffffff;
    border: none;
    border-radius: var(--acc-radius-md);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 10px 15px -3px rgba(var(--acc-primary-rgb), 0.3);
    text-align: center;
}

.auth-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(var(--acc-primary-rgb), 0.4);
}

/* Timeline Custom */
.order-tracking-timeline {
    margin: 40px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: var(--acc-radius-lg);
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-steps::before {
    content: \"\";
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--acc-border);
    z-index: 1;
}

.step-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 3px solid var(--acc-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
    transition: all 0.4s;
}

.step.active .step-icon {
    border-color: var(--acc-primary);
    color: var(--acc-primary);
    box-shadow: 0 0 0 6px rgba(var(--acc-primary-rgb), 0.1);
}

.step.completed .step-icon {
    background: var(--acc-primary);
    border-color: var(--acc-primary);
    color: #ffffff;
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--acc-text-muted);
}

.step.active .step-label {
    color: var(--acc-text);
}

/* Loader */
.loader-dots span {
    background: #ffffff;
}

/* Button default overrides */
.woocommerce-MyAccount-content button.button,
.woocommerce-MyAccount-content a.button {
    background: var(--acc-primary) !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: var(--acc-radius-md) !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    border: none !important;
    box-shadow: var(--acc-shadow-sm) !important;
}

.woocommerce-MyAccount-content button.button:hover,
.woocommerce-MyAccount-content a.button:hover {
    background: var(--acc-secondary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--acc-shadow) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        padding: 30px 15px;
        gap: 20px;
    }

    .woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
    }

    .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .woocommerce-MyAccount-navigation ul li {
        margin: 0 !important;
    }

    .woocommerce-MyAccount-navigation ul li a {
        font-size: 13px;
        padding: 10px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 8px;
    }

    .woocommerce-MyAccount-navigation ul li a::before {
        margin-right: 0;
        width: 24px;
        height: 24px;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
        min-height: auto;
    }

    /* Dashboard Profile */
    .db-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .db-avatar {
        margin: 0 auto;
    }

    .db-edit-link {
        margin: 10px auto 0;
        display: inline-block;
    }

    .avatar-upload-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .db-profile-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    /* Auth Pages */
    .auth-container {
        margin: 40px 15px;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* Responsive Tables */
    .shop_table_responsive thead,
    .shop_table thead {
        display: none;
    }

    .shop_table_responsive tr,
    .shop_table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--acc-border);
        border-radius: var(--acc-radius-md);
        padding: 15px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .shop_table_responsive td,
    .shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--acc-bg) !important;
    }

    .shop_table_responsive td:last-child,
    .shop_table td:last-child {
        border-bottom: none !important;
    }

    .shop_table_responsive td::before,
    .shop_table td::before {
        content: attr(data-title);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        color: var(--acc-text-muted);
        text-align: left;
        margin-right: 15px;
    }

    /* Address Form Optimization */
    .woocommerce-address-fields__field-wrapper,
    .woocommerce-EditAccountForm {
        display: flex !important;
        flex-direction: column !important;
    }

    .woocommerce-address-fields__field-wrapper .form-row,
    .woocommerce-EditAccountForm .form-row {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
    }

    .woocommerce-MyAccount-content .form-row-first,
    .woocommerce-MyAccount-content .form-row-last {
        width: 100% !important;
        float: none !important;
    }

    /* Order Timeline Mobile */
    .timeline-steps {
        flex-direction: column;
        gap: 30px;
        padding-left: 20px;
        position: relative;
    }

    .timeline-steps::before {
        top: 0;
        bottom: 0;
        left: 36px;
        width: 2px;
        height: 100%;
        background: var(--acc-border);
        display: block;
    }

    .step {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
        position: relative;
    }

    .step-icon {
        margin: 0;
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        background: #fff;
        border: 2px solid var(--acc-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }

    .step.active .step-icon {
        border-color: var(--acc-primary);
        color: var(--acc-primary);
    }

    .step.completed .step-icon {
        background: var(--acc-primary);
        border-color: var(--acc-primary);
        color: #fff;
    }

    .noti-item-title,
    .noti-item-msg {
        font-size: 12px;
    }

    /* Notifications Mobile */
    .noti-item {
        padding: 15px;
        gap: 15px;
    }

    .noti-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .noti-delete {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-MyAccount-navigation ul li a {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding: 6px 15px !important;
        line-height: 42px;
    }

    .woocommerce-MyAccount-content button.button,
    .woocommerce-MyAccount-content a.button {
        padding: 0px 25px !important;
        font-size: 12px;
    }

    .woocommerce-MyAccount-content .shop_table {
        border: 0px solid var(--acc-border) !important;
    }

    .woocommerce-MyAccount-navigation ul li a span:first-child {
        margin-right: 12px !important;
        margin-bottom: 0 !important;
    }

    .woocommerce-MyAccount-content .shop_table th {
        padding: 10px !important;
    }

    .dashboard-profile-card,
    .spending-report-section,
    .woocommerce-Address {
        padding: 15px;
    }

    .woocommerce-MyAccount-content h2,
    .woocommerce-Address-title .edit {
        font-size: 12px;
    }

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

    .auth-container {
        padding: 20px 15px;
        border-radius: 0;
    }
}