/**
 * Ecomall Custom My Account Styles (v2)
 * Place in: wp-content/themes/ecomall-child/custom-my-account.css
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.ma-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: var(--ts-pr-font-family, 'Mulish', sans-serif);
    color: var(--ts-text-color, #000);
}
.ma-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.ma-sidebar {
    position: sticky;
    top: 30px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ts-border, #ebebeb);
}
.admin-bar .ma-sidebar { top: 62px; }

.ma-profile-card {
    background: linear-gradient(135deg, var(--ts-primary-color, #0068c8) 0%, #004a8f 100%);
    color: var(--ts-text-in-primary-color, #fff);
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ma-profile-card::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%; pointer-events: none;
}
.ma-profile-card::after {
    content: '';
    position: absolute; bottom: -30px; left: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%; pointer-events: none;
}
.ma-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; letter-spacing: 1px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.25);
    position: relative; z-index: 1;
    overflow: hidden;
}
.ma-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ma-profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700;
    margin-bottom: 4px; position: relative; z-index: 1;
}
.ma-profile-email {
    font-size: 13px; opacity: 0.75;
    position: relative; z-index: 1; word-break: break-all;
}
.ma-tier-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(252,201,4,0.2);
    color: var(--ts-hightlight, #fcc904);
    padding: 5px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 14px; position: relative; z-index: 1;
}

/* Navigation */
.ma-nav { padding: 12px 0; }
.ma-nav-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 24px;
    font-size: 14px; font-weight: 600;
    color: var(--ts-text-color, #000);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}
.ma-nav-item:hover {
    background: var(--ts-primary-opacity, rgba(0,104,200,0.04));
    color: var(--ts-primary-color, #0068c8);
    text-decoration: none;
}
.ma-nav-item.active {
    background: rgba(0,104,200,0.06);
    color: var(--ts-primary-color, #0068c8);
    border-left-color: var(--ts-primary-color, #0068c8);
    font-weight: 800;
}
.ma-nav-item.logout-btn {
    color: #dd2831;
    margin-top: 8px;
    border-top: 1px solid var(--ts-border, #ebebeb);
    padding-top: 18px;
}
.ma-nav-item.logout-btn:hover { background: rgba(221,40,49,0.04); color: #dd2831; }
.ma-nav-icon { width: 22px; text-align: center; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ma-nav-icon svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.ma-main { min-width: 0; }

.ma-page-header { margin-bottom: 32px; }
.ma-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 700;
    margin: 0 0 6px; color: var(--ts-heading-color, #000);
}
.ma-page-subtitle { font-size: 14px; color: var(--ts-gray-color, #848484); margin: 0; }
.ma-back-link {
    display: inline-block; margin-top: 10px;
    font-size: 13px; font-weight: 700;
    color: var(--ts-primary-color, #0068c8);
    text-decoration: none;
    transition: opacity 0.2s;
}
.ma-back-link:hover { opacity: 0.7; text-decoration: none; }

/* ═══════════════════════════════════════════
   WELCOME BANNER
   ═══════════════════════════════════════════ */
.ma-welcome-banner {
    background: linear-gradient(135deg, #e8f3fe 0%, #f0f7ff 50%, #fff5cf 100%);
    border-radius: 14px; padding: 28px 32px; margin-bottom: 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; position: relative; overflow: hidden;
}
.ma-welcome-banner::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 200px; height: 200px;
    background: rgba(0,104,200,0.03); border-radius: 50%; pointer-events: none;
}
.ma-welcome-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; margin: 0 0 6px; color: var(--ts-heading-color, #000);
}
.ma-welcome-text p { margin: 0; font-size: 14px; color: var(--ts-gray-color, #848484); }
.ma-points-chip {
    background: var(--ts-main-bg, #fff);
    border-radius: 12px; padding: 16px 24px;
    text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative; z-index: 1; flex-shrink: 0;
}
.ma-points-value { font-size: 28px; font-weight: 900; color: var(--ts-primary-color, #0068c8); line-height: 1; }
.ma-points-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ts-gray-color, #848484); margin-top: 4px; }

/* ═══════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════ */
.ma-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.ma-stat-card {
    padding: 22px 20px; border-radius: 12px;
    border: 1px solid var(--ts-border, #ebebeb);
    position: relative; overflow: hidden;
    transition: all 0.25s ease; cursor: default;
    background: var(--ts-main-bg, #fff);
    text-decoration: none; color: inherit; display: block;
}
.ma-stat-card:hover {
    border-color: var(--ts-primary-color, #0068c8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,104,200,0.08);
    text-decoration: none; color: inherit;
}
.ma-stat-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 12px 12px 0 0; }
.ma-stat-value { font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.ma-stat-label { font-size: 13px; font-weight: 700; color: var(--ts-text-color, #000); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.ma-stat-sub { font-size: 12px; color: var(--ts-gray-color, #848484); }

/* ═══════════════════════════════════════════
   SECTION CARDS
   ═══════════════════════════════════════════ */
.ma-section {
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 14px; overflow: hidden;
    margin-bottom: 24px; background: var(--ts-main-bg, #fff);
}
.ma-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--ts-border, #ebebeb);
}
.ma-section-title { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; color: var(--ts-heading-color, #000); }
.ma-section-action { font-size: 13px; font-weight: 700; color: var(--ts-primary-color, #0068c8); cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
.ma-section-action:hover { opacity: 0.7; text-decoration: none; color: var(--ts-primary-color); }
.ma-section-body { padding: 24px; }

/* ═══════════════════════════════════════════
   ORDER TABLE ROWS
   ═══════════════════════════════════════════ */
.ma-order-row {
    display: grid;
    grid-template-columns: 100px 1fr 80px 120px 100px 100px;
    align-items: center; padding: 16px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 14px; gap: 12px;
}
.ma-order-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ma-order-row.header-row {
    font-weight: 800; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ts-gray-color, #848484);
    padding-top: 0;
    border-bottom: 1px solid var(--ts-border, #ebebeb);
    padding-bottom: 14px;
}
.ma-order-id { font-weight: 700; color: var(--ts-primary-color, #0068c8); }
.ma-order-date { color: var(--ts-gray-color, #848484); }
.ma-order-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.ma-order-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ma-order-total { font-weight: 700; }
.ma-order-action-btn {
    font-size: 12px; font-weight: 700;
    color: var(--ts-primary-color, #0068c8);
    cursor: pointer; text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--ts-primary-color, #0068c8);
    border-radius: 6px; text-align: center;
    transition: all 0.2s; background: transparent;
    display: inline-block;
}
.ma-order-action-btn:hover {
    background: var(--ts-primary-color, #0068c8);
    color: var(--ts-text-in-primary-color, #fff);
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   ORDER DETAIL BANNER (view-order page)
   ═══════════════════════════════════════════ */
.ma-order-detail-banner {
    background: #fafbfc;
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex; flex-direction: column; gap: 16px;
}
.ma-odb-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ma-odb-date { font-size: 13px; color: var(--ts-gray-color, #848484); }
.ma-odb-meta {
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    font-size: 14px;
}
.ma-odb-meta strong { font-weight: 700; }
.ma-odb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ma-odb-actions .ma-order-action-btn.cancel {
    border-color: #dd2831; color: #dd2831;
}
.ma-odb-actions .ma-order-action-btn.cancel:hover {
    background: #dd2831; color: #fff;
}

/* Tracking info */
.ma-tracking-info {
    background: #fff;
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 10px;
    padding: 16px 20px;
}
.ma-tracking-title {
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 12px;
    color: var(--ts-heading-color, #000);
}
.ma-tracking-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
}
.ma-tracking-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ma-tracking-carrier { font-weight: 700; font-size: 14px; }
.ma-tracking-number {
    font-family: monospace; font-size: 13px;
    background: #f4f4f4; padding: 3px 10px;
    border-radius: 4px; letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   QUICK ACTIONS
   ═══════════════════════════════════════════ */
.ma-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ma-quick-action-card {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: 28px 20px;
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 12px;
    text-decoration: none; color: var(--ts-text-color, #000);
    transition: all 0.25s ease; gap: 8px;
}
.ma-quick-action-card:hover {
    border-color: var(--ts-primary-color, #0068c8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,104,200,0.08);
    text-decoration: none; color: var(--ts-primary-color, #0068c8);
}
.ma-qa-icon { font-size: 28px; line-height: 1; display: block; margin-bottom: 4px; }
.ma-qa-icon svg { width: 28px; height: 28px; }
.ma-qa-label { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.ma-qa-desc { font-size: 12px; color: var(--ts-gray-color, #848484); }
.ma-quick-action-card:hover .ma-qa-desc { color: var(--ts-primary-color, #0068c8); opacity: 0.7; }

/* ═══════════════════════════════════════════
   WC CONTENT OVERRIDES
   Styles for WooCommerce's own templates
   rendered inside .ma-section cards.
   ═══════════════════════════════════════════ */
.ma-wc-content { line-height: 1.6; }
.ma-wc-content:empty { display: none; }

/* Hide WC's default "My account" navigation (we have our own sidebar) */
.woocommerce-MyAccount-navigation { display: none !important; }
.woocommerce-MyAccount-content { width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; }

/* ── Orders table ── */
.ma-wc-content table.woocommerce-orders-table,
.ma-wc-content .woocommerce-orders-table { width: 100%; border: 0; margin: 0; border-collapse: collapse; }
.ma-wc-content .woocommerce-orders-table thead th {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ts-gray-color, #848484);
    padding: 0 12px 14px 0; text-align: start;
    border-bottom: 1px solid var(--ts-border, #ebebeb);
    background: transparent;
}
.ma-wc-content .woocommerce-orders-table td {
    padding: 16px 12px 16px 0;
    border-top: 0;
    border-bottom: 1px solid #f4f4f4;
    vertical-align: middle; font-size: 14px;
    background: transparent;
}
.ma-wc-content .woocommerce-orders-table tr:last-child td { border-bottom: 0; }
.ma-wc-content .woocommerce-orders-table .button,
.ma-wc-content .woocommerce-orders-table .woocommerce-button {
    font-size: 12px; padding: 6px 16px; min-width: 0; border-radius: 6px;
    background: transparent; border: 1px solid var(--ts-primary-color, #0068c8);
    color: var(--ts-primary-color, #0068c8);
    margin: 2px 4px 2px 0; text-decoration: none;
    display: inline-block; line-height: 1.4;
    font-weight: 700; text-transform: none; letter-spacing: 0;
    transition: all 0.2s;
}
.ma-wc-content .woocommerce-orders-table .button:hover,
.ma-wc-content .woocommerce-orders-table .woocommerce-button:hover {
    background: var(--ts-primary-color, #0068c8);
    color: var(--ts-text-in-primary-color, #fff);
}

/* ── Order details (view-order) ── */
.ma-wc-content .woocommerce-order-details { margin-bottom: 30px; }
.ma-wc-content .woocommerce-order-details .shop_table { width: 100%; border: 0; border-collapse: collapse; }
.ma-wc-content .woocommerce-order-details .shop_table th,
.ma-wc-content .woocommerce-order-details .shop_table td {
    padding: 14px 12px; border: 0;
    border-bottom: 1px solid #f4f4f4;
    background: transparent; text-align: start;
}
.ma-wc-content .woocommerce-order-details .shop_table thead th {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ts-gray-color, #848484);
    border-bottom: 1px solid var(--ts-border, #ebebeb);
}
.ma-wc-content .woocommerce-order-details .shop_table tfoot th,
.ma-wc-content .woocommerce-order-details .shop_table tfoot td {
    border-bottom: 1px solid #f4f4f4;
}
.ma-wc-content .woocommerce-order-details .product-name a { color: inherit; text-decoration: none; }
.ma-wc-content .woocommerce-order-details .product-name a:hover { color: var(--ts-primary-color, #0068c8); }

/* ── Customer details (view-order) ── */
.ma-wc-content .woocommerce-customer-details { margin-top: 30px; }
.ma-wc-content .woocommerce-columns--addresses {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.ma-wc-content .woocommerce-columns--addresses .woocommerce-column {
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 12px; padding: 24px;
}
.ma-wc-content .woocommerce-columns--addresses h2,
.ma-wc-content .woocommerce-column__title {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin: 0 0 14px; padding: 0;
}
.ma-wc-content .woocommerce-columns--addresses address {
    line-height: 1.8; font-style: normal;
}

/* ── Address cards ── */
.ma-wc-content .woocommerce-Addresses {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.ma-wc-content .woocommerce-Address,
.ma-wc-content .u-column1,
.ma-wc-content .u-column2 {
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 12px; padding: 24px;
    transition: border-color 0.2s;
}
.ma-wc-content .woocommerce-Address:hover,
.ma-wc-content .u-column1:hover,
.ma-wc-content .u-column2:hover { border-color: var(--ts-primary-color, #0068c8); }
.ma-wc-content .woocommerce-Address-title,
.ma-wc-content header.woocommerce-Address-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.ma-wc-content .woocommerce-Address-title h3,
.ma-wc-content header.woocommerce-Address-title h3 {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em; margin: 0;
}
.ma-wc-content .woocommerce-Address-title .edit,
.ma-wc-content header.woocommerce-Address-title .edit {
    font-size: 12px; font-weight: 700;
    color: var(--ts-primary-color, #0068c8); text-decoration: none;
}
.ma-wc-content .woocommerce-Address address,
.ma-wc-content .woocommerce-Address-title ~ address { line-height: 1.8; font-style: normal; }

/* ── Edit address form ── */
.ma-wc-content .woocommerce-address-fields .form-row { margin-bottom: 18px; }
.ma-wc-content .woocommerce-address-fields label {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 8px; display: block;
}
.ma-wc-content .woocommerce-address-fields input:not([type="submit"]),
.ma-wc-content .woocommerce-address-fields select {
    border-radius: 8px; border: 1px solid var(--ts-border, #ebebeb);
    padding: 12px 16px; width: 100%; font-size: 14px;
    transition: border-color 0.2s;
    font-family: var(--ts-pr-font-family, 'Mulish', sans-serif);
}
.ma-wc-content .woocommerce-address-fields input:focus,
.ma-wc-content .woocommerce-address-fields select:focus {
    border-color: var(--ts-primary-color, #0068c8);
    outline: none; box-shadow: none;
}

/* ── Edit account form ── */
.ma-wc-content .woocommerce-EditAccountForm .form-row,
.ma-wc-content form.woocommerce-EditAccountForm p { margin-bottom: 18px; }
.ma-wc-content .woocommerce-EditAccountForm label {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    display: block; margin-bottom: 8px;
}
.ma-wc-content .woocommerce-EditAccountForm input[type="text"],
.ma-wc-content .woocommerce-EditAccountForm input[type="email"],
.ma-wc-content .woocommerce-EditAccountForm input[type="password"],
.ma-wc-content .woocommerce-EditAccountForm input[type="tel"] {
    padding: 12px 16px;
    border: 1px solid var(--ts-border, #ebebeb);
    border-radius: 8px; font-size: 14px;
    transition: border-color 0.2s; width: 100%;
    font-family: var(--ts-pr-font-family, 'Mulish', sans-serif);
}
.ma-wc-content .woocommerce-EditAccountForm input:focus {
    border-color: var(--ts-primary-color, #0068c8);
    outline: none; box-shadow: none;
}
.ma-wc-content .woocommerce-EditAccountForm fieldset {
    border: 0; padding: 0; margin: 32px 0 0;
}
.ma-wc-content .woocommerce-EditAccountForm fieldset legend {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 20px; padding: 0 0 14px;
    border-bottom: 1px solid var(--ts-border, #ebebeb);
    width: 100%;
}

/* ── Downloads table ── */
.ma-wc-content .woocommerce-table--order-downloads { width: 100%; border: 0; }
.ma-wc-content .woocommerce-table--order-downloads th {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ts-gray-color, #848484);
    padding: 0 12px 14px 0;
    border-bottom: 1px solid var(--ts-border, #ebebeb);
    background: transparent;
}
.ma-wc-content .woocommerce-table--order-downloads td {
    padding: 14px 12px 14px 0; border-bottom: 1px solid #f4f4f4;
    background: transparent;
}
.ma-wc-content .woocommerce-table--order-downloads .button {
    font-size: 12px; padding: 6px 16px; min-width: 0; border-radius: 6px;
}

/* ── Generic WC buttons ── */
.ma-wc-content .woocommerce .button,
.ma-wc-content .button,
.ma-wc-content input[type="submit"],
.ma-wc-content button[type="submit"] {
    font-family: var(--ts-btn-font-family, 'Mulish', sans-serif);
    font-weight: var(--ts-btn-font-weight, 800);
    font-size: var(--ts-btn-font-size, 14px);
    letter-spacing: var(--ts-btn-letter-spacing, 0.05em);
    text-transform: uppercase;
    padding: 14px 32px; border-radius: 8px;
    background: var(--ts-btn-bg, #0068c8);
    color: var(--ts-btn-color, #fff);
    border: 2px solid var(--ts-btn-border, #0068c8);
    transition: all 0.2s ease;
    cursor: pointer;
}
.ma-wc-content .woocommerce .button:hover,
.ma-wc-content .button:hover,
.ma-wc-content input[type="submit"]:hover,
.ma-wc-content button[type="submit"]:hover {
    background: var(--ts-btn-hover-bg, transparent);
    color: var(--ts-btn-hover-color, #000);
    border-color: var(--ts-btn-hover-border, #0068c8);
}

/* ── Empty states ── */
.ma-wc-content .woocommerce-message,
.ma-wc-content .woocommerce-info {
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0;
}

/* ── WC pagination inside account ── */
.ma-wc-content .woocommerce-pagination {
    margin-top: 24px; text-align: center;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media only screen and (max-width: 1279px) {
    .ma-layout { grid-template-columns: 240px 1fr; gap: 28px; }
    .ma-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ma-page-title { font-size: 28px; }
    .ma-order-row { grid-template-columns: 90px 1fr 70px 100px 90px; }
    .ma-order-row > *:nth-child(3),
    .ma-order-row.header-row > *:nth-child(3) { display: none; }
    .ma-profile-card { padding: 28px 20px 24px; }
    .ma-profile-name { font-size: 20px; }
}

@media only screen and (max-width: 991px) {
    .ma-layout { grid-template-columns: 1fr; gap: 24px; }
    .ma-sidebar { position: static; }
    .ma-profile-card {
        display: flex; flex-wrap: wrap; align-items: center;
        text-align: left; gap: 12px; padding: 20px 24px;
    }
    .ma-avatar { width: 56px; height: 56px; font-size: 20px; margin: 0; }
    .ma-profile-name { font-size: 18px; margin-bottom: 0; flex: 1; }
    .ma-profile-email { display: none; }
    .ma-tier-badge { margin-top: 0; margin-left: auto; }
    .ma-nav {
        display: flex; overflow-x: auto; padding: 0; gap: 0;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .ma-nav::-webkit-scrollbar { display: none; }
    .ma-nav-item {
        padding: 14px 16px; white-space: nowrap;
        border-left: 0; border-bottom: 3px solid transparent; font-size: 13px;
    }
    .ma-nav-item.active { border-left: 0; border-bottom-color: var(--ts-primary-color, #0068c8); }
    .ma-nav-item.logout-btn { margin-top: 0; border-top: 0; padding-top: 14px; }
    .ma-quick-actions { grid-template-columns: repeat(3, 1fr); }
    .ma-wc-content .woocommerce-Addresses,
    .ma-wc-content .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 767px) {
    .ma-wrapper { padding: 20px 0; }
    .ma-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ma-stat-card { padding: 16px 14px; }
    .ma-stat-value { font-size: 22px; }
    .ma-welcome-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
    .ma-page-title { font-size: 24px; }
    .ma-order-row { grid-template-columns: 80px 1fr 90px 80px; font-size: 13px; gap: 8px; }
    .ma-order-row > *:nth-child(3), .ma-order-row > *:nth-child(4),
    .ma-order-row.header-row > *:nth-child(3), .ma-order-row.header-row > *:nth-child(4) { display: none; }
    .ma-section-body { padding: 18px; }
    .ma-section-header { padding: 16px 18px; }
    .ma-quick-actions { grid-template-columns: 1fr; gap: 10px; }
    .ma-quick-action-card { flex-direction: row; text-align: left; padding: 18px 20px; gap: 14px; }
    .ma-qa-icon { font-size: 22px; margin-bottom: 0; }
    .ma-qa-icon svg { width: 22px; height: 22px; }
    .ma-wc-content .woocommerce-Addresses,
    .ma-wc-content .woocommerce-columns--addresses { grid-template-columns: 1fr; }
    .ma-points-chip { padding: 12px 20px; }
    .ma-points-value { font-size: 22px; }
    .ma-order-detail-banner { padding: 18px 20px; }
    .ma-odb-meta { flex-direction: column; gap: 6px; }
}

@media only screen and (max-width: 480px) {
    .ma-order-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 0; }
    .ma-order-row.header-row { display: none; }
    .ma-order-row > *:nth-child(3), .ma-order-row > *:nth-child(4), .ma-order-row > *:nth-child(6) { display: none; }
    .ma-order-row .ma-order-total { text-align: right; }
    .ma-order-date { grid-column: 1 / -1; font-size: 12px; }
    .ma-stat-card { padding: 14px 12px; }
    .ma-stat-value { font-size: 20px; }
    .ma-stat-label { font-size: 11px; }

    /* Make WC tables responsive */
    .ma-wc-content table.woocommerce-orders-table thead { display: none; }
    .ma-wc-content table.woocommerce-orders-table tr {
        display: block; padding: 16px 0;
        border-bottom: 1px solid var(--ts-border, #ebebeb);
    }
    .ma-wc-content table.woocommerce-orders-table td {
        display: flex; justify-content: space-between; align-items: center;
        padding: 6px 0; border: 0; text-align: right;
    }
    .ma-wc-content table.woocommerce-orders-table td::before {
        content: attr(data-title);
        font-weight: 700; font-size: 12px;
        text-transform: uppercase; letter-spacing: 0.03em;
        text-align: left;
    }
}
