/* ==========================================================================
}
/* ==========================================================================
   LIGHT DASHBOARD (PREMIUM VIEW)
   ========================================================================== */
.aa-custom-dashboard-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Sidebar Styling */
.aa-dashboard-sidebar {
    flex: 0 0 280px;
    width: 280px;
}

.aa-sidebar-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 25px 15px;
}

.aa-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.aa-sidebar-nav ul li {
    margin-bottom: 5px;
    border: none;
}

.aa-sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aa-sidebar-nav ul li a::before {
    content: "•";
    margin-right: 15px;
    font-size: 18px;
    color: #94a3b8;
}

.aa-sidebar-nav ul li a:hover {
    background: #f8fafc;
    color: #0f172a;
}

.aa-sidebar-nav ul li.is-active a {
    background: #0f172a;
    color: #ffffff;
}

.aa-sidebar-nav ul li.is-active a::before {
    color: #ffffff;
}

.aa-sidebar-support {
    background: #f0fdf4;
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.aa-sidebar-support strong {
    display: block;
    font-size: 16px;
    color: #166534;
    margin-bottom: 5px;
}

.aa-sidebar-support p {
    font-size: 13px;
    color: #15803d;
    margin: 0 0 15px 0;
}

.aa-support-btn {
    display: inline-block;
    background: #166534;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.aa-support-btn:hover {
    background: #14532d;
}

.aa-support-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 60px;
    opacity: 0.1;
}

/* Dashboard Content Area */
.aa-dashboard-content {
    flex: 1;
    min-width: 0;
    float: none;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Light Dashboard Components */
.aa-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.aa-header-left h1 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 5px 0;
}

.aa-header-left p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.aa-header-right span {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aa-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

a.aa-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a.aa-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.aa-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.aa-stat-icon.blue { background: #eff6ff; color: #C8A15A; }
.aa-stat-icon.green { background: #f0fdf4; color: #22c55e; }
.aa-stat-icon.purple { background: #faf5ff; color: #a855f7; }
.aa-stat-icon.orange { background: #fff7ed; color: #f97316; }

.aa-stat-info {
    display: flex;
    flex-direction: column;
}

.aa-stat-info span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.aa-stat-info strong {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 4px 0;
}

.aa-stat-info a {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
}

.aa-stat-info a:hover {
    color: #0f172a;
}

.aa-dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.aa-recent-orders-card, .aa-account-overview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
}

.aa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.aa-card-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.aa-card-header a {
    font-size: 13px;
    color: #C8A15A;
    font-weight: 600;
    text-decoration: none;
}

/* Recent Orders Table */
.aa-order-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.aa-order-item:last-child {
    border-bottom: none;
}

.aa-order-img {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.aa-order-details {
    flex: 1;
}

.aa-order-details strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 3px;
}

.aa-order-details span {
    font-size: 12px;
    color: #64748b;
}

.aa-order-status {
    flex: 0 0 100px;
    text-align: right;
    margin-right: 20px;
}

.aa-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.aa-badge.status-completed { background: #dcfce7; color: #166534; }
.aa-badge.status-processing { background: #dbeafe; color: #1e40af; }
.aa-badge.status-on-hold { background: #fef3c7; color: #92400e; }
.aa-badge.status-cancelled { background: #fee2e2; color: #991b1b; }
.aa-badge.status-failed { background: #fee2e2; color: #991b1b; }

.aa-order-total {
    text-align: right;
    flex: 0 0 100px;
}

.aa-order-total strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
}

.aa-order-total span {
    font-size: 12px;
    color: #64748b;
}

.aa-orders-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.aa-orders-footer a {
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Account Overview List */
.aa-overview-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}

.aa-overview-item:last-child {
    border-bottom: none;
}

.aa-overview-item span {
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}

.aa-overview-item strong {
    font-size: 13px;
    color: #0f172a;
    text-align: right;
    font-weight: 500;
    word-break: break-all;
}

.aa-overview-footer {
    margin-top: 25px;
}

.aa-btn-outline {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.aa-btn-outline:hover {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 1024px) {
    .aa-stat-cards { grid-template-columns: repeat(2, 1fr); }
    .aa-dashboard-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .aa-stat-cards { grid-template-columns: 1fr; }
    .aa-dashboard-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* ==========================================================================
   APP LAYOUT & POLISH
   ========================================================================== */



body.woocommerce-account {
    background-color: #f8fafc !important;
}

.aa-custom-dashboard-wrapper {
    margin: 40px auto !important;
}

/* Sidebar Buttons Polish */
.aa-sidebar-nav ul li a.aa-btn-shop-now {
    background: linear-gradient(135deg, #f38624 0%, #d97706 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(243, 134, 36, 0.3);
    border: none;
    padding: 15px 20px;
}

.aa-sidebar-nav ul li a.aa-btn-shop-now::before {
    display: none;
}

.aa-sidebar-nav ul li a.aa-btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 134, 36, 0.4);
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.aa-sidebar-nav ul li a.aa-btn-back-home {
    background: transparent;
    color: #94a3b8 !important;
    text-align: center;
    justify-content: center;
    font-size: 13px;
    margin-top: -5px;
}

.aa-sidebar-nav ul li a.aa-btn-back-home::before {
    display: none;
}

.aa-sidebar-nav ul li a.aa-btn-back-home:hover {
    color: #0f172a !important;
    background: transparent;
}

/* Cards Polish */
a.aa-stat-card,
.aa-recent-orders-card {
    border-radius: 24px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
    background: #ffffff;
}

a.aa-stat-card {
    padding: 25px !important;
}

a.aa-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02) !important;
    border-color: #e2e8f0 !important;
}

.aa-stat-info strong {
    font-size: 24px !important;
}

.aa-recent-orders-card {
    padding: 30px !important;
}
/* ==========================================================================
   WOOCOMMERCE ENDPOINTS POLISH (Orders, Addresses, Account Details)
   ========================================================================== */

/* Wrap the content area in a premium card */
.aa-dashboard-content .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* Hide the default woocommerce message/hello text just in case */
.aa-dashboard-content .woocommerce-MyAccount-content > p:first-of-type,
.aa-dashboard-content .woocommerce-MyAccount-content > p:nth-of-type(2) {
    display: none;
}

/* -----------------------------
   Tables (Orders, Downloads)
   ----------------------------- */
table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin-bottom: 25px;
}

table.shop_table th {
    background: #f8fafc;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
}

table.shop_table th:first-child { 
    border-left: 1px solid #e2e8f0; 
    border-top-left-radius: 12px; 
    border-bottom-left-radius: 12px; 
}
table.shop_table th:last-child { 
    border-right: 1px solid #e2e8f0; 
    border-top-right-radius: 12px; 
    border-bottom-right-radius: 12px; 
}

table.shop_table td {
    padding: 20px;
    font-size: 14px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Order Links */
table.shop_table td.woocommerce-orders-table__cell-order-number a {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
}
table.shop_table td.woocommerce-orders-table__cell-order-number a:hover {
    color: #C8A15A;
}

/* Action Buttons in Table */
table.shop_table td .button,
table.shop_table td a.woocommerce-button {
    background: #f8fafc;
    color: #C8A15A;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-block;
    border: 1px solid #e2e8f0;
    margin-right: 10px;
    margin-bottom: 5px;
    white-space: nowrap;
}

table.shop_table td .button:hover,
table.shop_table td a.woocommerce-button:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

/* -----------------------------
   Forms (Account Details)
   ----------------------------- */
.woocommerce-MyAccount-content form legend {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    width: 100%;
}

.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    transition: all 0.3s;
}

.woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus {
    border-color: #C8A15A;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Primary Form Button */
.woocommerce-MyAccount-content button[type="submit"] {
    background: #0f172a;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    margin-top: 10px;
}

.woocommerce-MyAccount-content button[type="submit"]:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(15, 23, 42, 0.2);
}

/* -----------------------------
   Addresses Block
   ----------------------------- */
.woocommerce-MyAccount-content .u-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.woocommerce-Address {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.woocommerce-Address-title a.edit {
    color: #C8A15A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.woocommerce-Address-title a.edit:hover {
    background: #bfdbfe;
    color: #1d4ed8;
}

.woocommerce-Address address {
    color: #475569;
    line-height: 1.8;
    font-style: normal;
}

/* WooCommerce Notices/Alerts */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .aa-dashboard-content .woocommerce-MyAccount-content {
        padding: 20px;
    }
    .woocommerce-MyAccount-content .u-columns {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   SIDEBAR PROFILE POLISH
   ========================================================================== */

.aa-dashboard-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.aa-dashboard-sidebar h2.aa-sidebar-title { display: none; }

.aa-sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e2e8f0;
}

.aa-profile-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #eff6ff;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.aa-profile-avatar {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.aa-profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.aa-profile-info span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.aa-sidebar-nav ul li a {
    padding: 12px 15px;
}
/* ==========================================================================
   EDIT ACCOUNT FORM POLISH
   ========================================================================== */

/* Reset Fieldset */
.woocommerce-MyAccount-content form fieldset {
    border: 1px solid #e2e8f0;
    padding: 30px;
    margin: 40px 0 20px 0;
    border-radius: 16px;
    background: #f8fafc;
}

.woocommerce-MyAccount-content form legend {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
    border-bottom: none;
    padding: 0 15px;
    width: auto;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transform: translateY(-5px);
}

/* Improve Input Fields */
.woocommerce-MyAccount-content form input.input-text,
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form input[type="email"] {
    width: 100%;
    padding: 14px 18px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

.woocommerce-MyAccount-content form input.input-text:focus,
.woocommerce-MyAccount-content form input[type="password"]:focus,
.woocommerce-MyAccount-content form input[type="email"]:focus {
    border-color: #C8A15A !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

/* Improve Labels */
.woocommerce-MyAccount-content form label {
    display: block;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 14px !important;
}

/* Form Row Grid for First/Last Name */
.woocommerce-EditAccountForm {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-EditAccountForm .woocommerce-form-row {
    width: 100%;
    margin-bottom: 0 !important;
}

.woocommerce-EditAccountForm .woocommerce-form-row--first,
.woocommerce-EditAccountForm .woocommerce-form-row--last {
    width: calc(50% - 10px);
}

.woocommerce-EditAccountForm fieldset {
    width: 100%;
}

.woocommerce-EditAccountForm .clear {
    display: none;
}

.woocommerce-EditAccountForm > p {
    width: 100%;
}

/* Save Changes Button */
.woocommerce-MyAccount-content button[type="submit"] {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 15px !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2) !important;
    margin-top: 10px;
}

.woocommerce-MyAccount-content button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3) !important;
}

/* Helper Text */
.woocommerce-MyAccount-content form span.description {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    font-style: normal;
}

@media (max-width: 768px) {
    .woocommerce-EditAccountForm .woocommerce-form-row--first,
    .woocommerce-EditAccountForm .woocommerce-form-row--last {
        width: 100%;
    }
}
/* ==========================================================================
   PROFILE PICTURE UPLOAD UI
   ========================================================================== */

.aa-profile-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
    width: 100%;
}

.aa-profile-upload-wrapper:hover {
    border-color: #C8A15A;
    background: #f8fafc;
}

.aa-profile-upload-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #eff6ff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
    flex-shrink: 0;
}

.aa-profile-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aa-profile-upload-actions {
    flex: 1;
}

.aa-profile-upload-actions h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.aa-profile-upload-actions p {
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #64748b;
}

.aa-profile-upload-actions .aa-upload-btn {
    display: inline-block;
    background: #eff6ff;
    color: #C8A15A;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #bfdbfe;
    transition: all 0.3s;
}

.aa-profile-upload-actions .aa-upload-btn:hover {
    background: #C8A15A;
    color: #ffffff;
    border-color: #C8A15A;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .aa-profile-upload-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
/* ==========================================================================
   RECOMMENDED PRODUCTS (My Account Bottom)
   ========================================================================== */

.aa-dashboard-recommended {
    max-width: 1300px;
    margin: 40px auto 50px auto;
    padding: 0 20px;
}

.aa-recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.aa-recommended-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.aa-btn-view-all {
    color: #C8A15A;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    background: #eff6ff;
    padding: 8px 18px;
    border-radius: 8px;
}

.aa-btn-view-all:hover {
    background: #C8A15A;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.aa-recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.aa-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.aa-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.aa-product-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.aa-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aa-product-card:hover .aa-product-img img {
    transform: scale(1.08);
}

.aa-product-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aa-product-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.aa-product-info h4 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s;
}

.aa-product-info h4 a:hover {
    color: #C8A15A;
}

.aa-product-price {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

.aa-product-price del {
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
    margin-right: 6px;
}

.aa-product-price ins {
    text-decoration: none;
    color: #C8A15A;
}

.aa-product-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.aa-product-card:hover .aa-product-btn {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

@media (max-width: 1024px) {
    .aa-recommended-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .aa-recommended-grid { grid-template-columns: repeat(2, 1fr); }
    .aa-recommended-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}
@media (max-width: 480px) {
    .aa-recommended-grid { grid-template-columns: 1fr; }
}
/* ==========================================================================
   MOBILE OFF-CANVAS SIDEBAR & RESPONSIVENESS
   ========================================================================== */

.aa-mobile-dashboard-header {
    display: none;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.aa-mobile-menu-toggle {
    background: none;
    border: none;
    padding: 5px;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aa-mobile-dashboard-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.aa-sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2b3036;
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.aa-sidebar-close:hover {
    background: #1e2227;
}

.aa-sidebar-close svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
}

.aa-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .aa-custom-dashboard-wrapper {
        flex-direction: column;
        margin-top: 0 !important;
        padding-top: 0;
    }

    .aa-mobile-dashboard-header {
        display: flex;
    }

    /* Off-canvas sidebar logic */
    .aa-dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 9999;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        padding-top: 30px;
    }

    .aa-sidebar-close {
        display: flex;
    }

    .aa-sidebar-open .aa-dashboard-sidebar {
        left: 0;
    }

    .aa-sidebar-open .aa-sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .aa-dashboard-content {
        padding: 0;
        width: 100%;
    }
}
/* ==========================================================================
   DASHBOARD OVERVIEW MOBILE POLISH
   ========================================================================== */

@media (max-width: 768px) {
    .aa-dashboard-header h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
    
    .aa-dashboard-header p {
        font-size: 14px !important;
    }

    .aa-stat-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .aa-stat-card {
        padding: 15px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .aa-stat-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .aa-stat-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .aa-stat-info span {
        font-size: 12px !important;
    }

    .aa-stat-info strong {
        font-size: 18px !important;
    }
}
/* ==========================================================================
   FORCE WOODMART MOBILE TOOLBAR TO BE FIXED
   ========================================================================== */
@media (max-width: 992px) {
    .wd-toolbar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        display: flex !important;
        transform: translateY(0) !important;
    }
    
    body.woocommerce-account {
        padding-bottom: 70px !important;
    }
}
/* ==========================================================================
   SCROLLABLE HORIZONTAL TABLE ORDERS (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent the card from expanding beyond the screen */
    .aa-recent-orders-card {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important; 
        border-radius: 12px !important;
    }
    
    /* Make the card header responsive so "View all orders" doesn't break */
    .aa-card-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    /* Create the horizontal scrolling wrapper */
    .aa-orders-list {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        padding-bottom: 15px !important;
        
        /* Custom Scrollbar */
        scrollbar-width: thin !important;
        scrollbar-color: #94a3b8 #f1f5f9 !important;
    }
    
    .aa-orders-list::-webkit-scrollbar {
        height: 6px !important;
    }
    .aa-orders-list::-webkit-scrollbar-track {
        background: #f1f5f9 !important;
        border-radius: 10px !important;
    }
    .aa-orders-list::-webkit-scrollbar-thumb {
        background-color: #94a3b8 !important;
        border-radius: 10px !important;
    }

    /* Force the order item to stay horizontal like a table row */
    .aa-order-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        min-width: 650px !important; /* Wide enough to fit everything in one line */
        width: max-content !important; /* Allow it to grow if needed */
        padding: 15px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    
    /* Ensure child columns don't shrink */
    .aa-order-img {
        flex: 0 0 48px !important;
        margin-right: 15px !important;
    }
    
    .aa-order-details {
        flex: 0 0 160px !important;
        padding-right: 15px !important;
    }
    
    .aa-order-status {
        flex: 0 0 100px !important;
        text-align: left !important;
    }
    
    .aa-order-meta-right {
        flex: 0 0 160px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .aa-order-action-btn {
        flex: 0 0 100px !important;
        margin-left: auto !important;
    }
}
/* ==========================================================================
   MOBILE RECOMMENDED PRODUCTS GRID FIX
   ========================================================================== */
@media (max-width: 768px) {
    .aa-recommended-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .aa-product-info {
        padding: 12px !important;
    }
    .aa-product-info h4 {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        /* Line clamp for uniform height */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .aa-product-price {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    .aa-product-price del {
        font-size: 12px !important;
    }
    .aa-product-btn {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    /* Ensure it stays 2 columns even on very small screens, or adjust gaps */
    .aa-recommended-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .aa-product-info {
        padding: 10px !important;
    }
    .aa-product-info h4 {
        font-size: 12px !important;
    }
    .aa-product-price {
        font-size: 13px !important;
    }
    .aa-product-btn {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}
/* ==========================================================================
   PREMIUM LOGIN / REGISTER PAGE
   ========================================================================== */
.aa-login-register-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 0 20px;
}
.aa-login-register-header {
    text-align: center;
    margin-bottom: 30px;
}
.aa-login-register-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.aa-login-register-header p {
    color: #64748b;
    font-size: 15px;
}
.aa-auth-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}
.aa-tab-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.aa-tab-btn.active {
    color: #C8A15A;
    border-bottom-color: #C8A15A;
}
.aa-login-register-cards,
.aa-lost-password-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}
.aa-tabbed-view #customer_login {
    display: block !important;
}
.aa-tabbed-view .u-column1,
.aa-tabbed-view .u-column2 {
    display: none !important;
    width: 100% !important;
    float: none !important;
}
.aa-tabbed-view .active-tab {
    display: block !important;
}

/* Hide WooCommerce native headings */
.aa-tabbed-view h2 {
    display: none !important;
}

/* Form Styles */
.aa-login-register-cards .woocommerce-form-row,
.aa-lost-password-card .woocommerce-form-row {
    margin-bottom: 20px;
}
.aa-login-register-cards label,
.aa-lost-password-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}
.aa-login-register-cards input[type="text"],
.aa-login-register-cards input[type="email"],
.aa-login-register-cards input[type="password"],
.aa-lost-password-card input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.3s;
    background: #f8fafc;
}
.aa-login-register-cards input:focus,
.aa-lost-password-card input:focus {
    border-color: #C8A15A;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.aa-login-register-cards button.woocommerce-Button,
.aa-lost-password-card button.woocommerce-Button {
    width: 100%;
    padding: 14px;
    background: #C8A15A !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.aa-login-register-cards button.woocommerce-Button:hover,
.aa-lost-password-card button.woocommerce-Button:hover {
    background: #E0B96D !important;
    transform: translateY(-1px);
}
.woocommerce-LostPassword {
    text-align: center;
    margin-top: 20px;
}
.woocommerce-LostPassword a {
    color: #C8A15A;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.woocommerce-LostPassword a:hover {
    text-decoration: underline;
}
.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
    font-weight: 400 !important;
}
.aa-back-to-login {
    text-align: center;
    margin-top: 25px;
}
.aa-back-to-login a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.aa-back-to-login a:hover {
    color: #0f172a;
}

@media (max-width: 768px) {
    .aa-login-register-cards,
    .aa-lost-password-card {
        padding: 25px;
    }
    .aa-login-register-header h2 {
        font-size: 24px;
    }
}
/* ==========================================================================
   FIX LOGIN PAGE BROKEN STYLES & ADD FOOTER BUTTONS
   ========================================================================== */

/* Force tab buttons to override theme styles (remove red borders) */
.aa-auth-tabs button.aa-tab-btn {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: #64748b !important;
    padding: 10px 20px !important;
    box-shadow: none !important;
    outline: none !important;
}

.aa-auth-tabs button.aa-tab-btn.active {
    color: #C8A15A !important;
    border-bottom-color: #C8A15A !important;
}

/* Force login and register submit buttons to override theme styles */
.aa-login-register-cards button[name="login"],
.aa-login-register-cards button[name="register"],
.aa-lost-password-card button[type="submit"] {
    background: #C8A15A !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    width: 100% !important;
}

.aa-login-register-cards button[name="login"]:hover,
.aa-login-register-cards button[name="register"]:hover,
.aa-lost-password-card button[type="submit"]:hover {
    background: #E0B96D !important;
}

/* Hide any weird empty elements or broken password toggles caused by theme */
.aa-login-register-cards .show-password-input {
    display: none !important;
}

/* Style for the new Footer Links (Back to home, Go to shop) */
.aa-auth-footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding: 0 10px;
}

.aa-auth-footer-links a {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.aa-auth-footer-links a:hover {
    color: #0f172a;
    border-color: #e2e8f0;
    background: #f8fafc;
}

/* Responsive Orders & Invoices List */
@media (max-width: 768px) {
    .aa-order-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        gap: 10px;
    }
    .aa-order-img {
        display: none; /* Hide icon on mobile to save space */
    }
    .aa-order-status {
        text-align: left;
        margin: 0;
    }
    .aa-order-meta-right {
        text-align: left;
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    .aa-order-meta-right strong { display: inline-block; margin: 0; }
    .aa-order-action-btn {
        margin-left: 0 !important;
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 5px;
    }
    .aa-order-action-btn a.aa-btn-invoice {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
}
