/*
Theme Name:   Envo One Child
Theme URI:    https://yoursite.com
Description:  Child theme for Envo One — fully structured customer dashboard v2.0
Author:       Your Name
Template:     envo-one
Version:      2.0.0
License:      GNU General Public License v2 or later
Text Domain:  envo-one-child
*/

/* ═══════════════════════════════════════════════════
   CSS VARIABLES — Light & Dark Mode
═══════════════════════════════════════════════════ */
:root {
    --primary:        #4f46e5;
    --primary-dark:   #3730a3;
    --primary-light:  #eef2ff;
    --accent:         #7c3aed;
    --success:        #16a34a;
    --success-bg:     #dcfce7;
    --warning:        #d97706;
    --warning-bg:     #fef9c3;
    --danger:         #dc2626;
    --danger-bg:      #fee2e2;
    --info:           #0891b2;
    --info-bg:        #cffafe;
    --text-dark:      #0f172a;
    --text-mid:       #475569;
    --text-light:     #94a3b8;
    --border:         #e2e8f0;
    --bg-page:        #f1f5f9;
    --bg-card:        #ffffff;
    --bg-hover:       #f8fafc;
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --shadow-sm:      0 1px 4px rgba(15,23,42,0.07);
    --shadow-md:      0 4px 20px rgba(15,23,42,0.10);
    --shadow-lg:      0 12px 40px rgba(15,23,42,0.15);
    --transition:     0.2s cubic-bezier(0.4,0,0.2,1);
    --icon-blue:      #4f46e5; --icon-blue-bg:   #eef2ff;
    --icon-green:     #16a34a; --icon-green-bg:  #dcfce7;
    --icon-purple:    #7c3aed; --icon-purple-bg: #f5f3ff;
    --icon-orange:    #ea580c; --icon-orange-bg: #fff7ed;
    --icon-pink:      #db2777; --icon-pink-bg:   #fdf2f8;
    --icon-teal:      #0891b2; --icon-teal-bg:   #ecfeff;
    --icon-red:       #dc2626; --icon-red-bg:    #fee2e2;
}

[data-theme="dark"] {
    --text-dark:      #f1f5f9;
    --text-mid:       #94a3b8;
    --text-light:     #64748b;
    --border:         #1e293b;
    --bg-page:        #0f172a;
    --bg-card:        #1e293b;
    --bg-hover:       #263548;
    --primary-light:  #1e1b4b;
    --shadow-sm:      0 1px 4px rgba(0,0,0,0.3);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:      0 12px 40px rgba(0,0,0,0.5);
    --icon-blue-bg:   #1e1b4b; --icon-green-bg:  #052e16;
    --icon-purple-bg: #2e1065; --icon-orange-bg: #431407;
    --icon-pink-bg:   #500724; --icon-teal-bg:   #083344;
    --icon-red-bg:    #450a0a;
    --success-bg:     #052e16; --warning-bg:     #422006; --danger-bg: #450a0a;
}

/* ═══════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body.woocommerce-account {
    background: var(--bg-page) !important;
}

/* ═══════════════════════════════════════════════════
   THE BIG FIX — PAGE LAYOUT
   Forces proper sidebar + content layout regardless
   of what the parent theme does with floats/columns
═══════════════════════════════════════════════════ */

/* 1. Wrap everything in a controlled container */
.woocommerce-account #content,
.woocommerce-account .site-main,
.woocommerce-account main {
    background: var(--bg-page);
}

/* 2. The main woocommerce div — make it flex */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 28px !important;
    max-width: 1260px !important;
    margin: 36px auto !important;
    padding: 0 24px !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* 3. Kill any inherited floats */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none !important; }

/* 4. Sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 268px !important;
    min-width: 268px !important;
    max-width: 268px !important;
    flex-shrink: 0 !important;
    float: none !important;
    clear: none !important;
    position: sticky !important;
    top: 90px !important;
    z-index: 20 !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
}

/* 5. Content area */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
}

/* 6. Tablet/mobile collapse */
@media (max-width: 960px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
        padding: 0 16px !important;
        margin: 20px auto !important;
        gap: 16px !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        position: static !important;
    }
}

/* ═══════════════════════════════════════════════════
   DARK MODE TOGGLE — Fixed bottom-right
═══════════════════════════════════════════════════ */
#darkModeToggle {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 9990;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 20px;
    transition: all var(--transition);
}
#darkModeToggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(15deg);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR PROFILE BLOCK
═══════════════════════════════════════════════════ */
.customer-profile-block {
    background: linear-gradient(145deg, var(--primary) 0%, var(--accent) 100%);
    padding: 30px 18px 22px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.customer-profile-block::before {
    content: '';
    position: absolute;
    width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
    top: -40px; right: -40px; pointer-events: none;
}

/* Avatar upload wrapper */
.avatar-upload-wrap {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 14px;
    cursor: pointer;
}
.avatar-upload-wrap img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6);
    display: block;
}
.avatar-initials {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}
.avatar-upload-btn {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 26px; height: 26px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
    border: none;
    transition: transform var(--transition);
}
.avatar-upload-btn:hover { transform: scale(1.18); }
.avatar-upload-btn svg { width: 13px; height: 13px; }
#avatarFileInput { display: none; }

.customer-name  { font-size: 0.97rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.customer-email { font-size: 0.73rem; color: rgba(255,255,255,0.72); margin: 0; word-break: break-all; }

/* ── Avatar Upload Modal ───────────────────────── */
.avatar-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.avatar-modal-overlay.open { display: flex; }
.avatar-modal {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 420px; width: 92%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.22s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.avatar-modal h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; }
.avatar-modal > p { font-size: 0.83rem; color: var(--text-light); margin: 0 0 18px; }
.avatar-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 36px 20px;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 14px;
}
.avatar-drop-zone:hover, .avatar-drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.avatar-drop-zone svg { width: 40px; height: 40px; color: var(--text-light); }
.avatar-drop-zone p { font-size: 0.83rem; color: var(--text-light); margin: 10px 0 0; }
.avatar-drop-zone span { color: var(--primary); font-weight: 700; }
.avatar-preview-wrap { display: none; margin: 14px 0; }
.avatar-preview-wrap img {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary);
    margin: 0 auto; display: block;
}
.avatar-modal-btns {
    display: flex; gap: 10px; justify-content: center; margin-top: 16px;
}
.btn-cancel-modal {
    background: none; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 20px; color: var(--text-mid);
    font-size: 0.87rem; font-weight: 600; cursor: pointer;
    transition: all var(--transition);
}
.btn-cancel-modal:hover { border-color: var(--text-mid); background: var(--bg-hover); }
.btn-save-avatar {
    background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-sm);
    padding: 9px 22px; font-size: 0.87rem; font-weight: 700;
    cursor: pointer; transition: background var(--transition);
}
.btn-save-avatar:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════
   SIDEBAR NAV
═══════════════════════════════════════════════════ */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 10px 0; margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 18px;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.875rem; font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.woocommerce-MyAccount-navigation ul li a svg { width: 17px; height: 17px; flex-shrink: 0; }
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--is-active a {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 700;
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--danger);
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: var(--danger-bg); border-left-color: var(--danger);
}

/* Mobile nav toggle */
.account-mobile-nav-toggle {
    display: none; width: 100%;
    background: var(--primary); color: #fff;
    border: none; padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
@media (max-width: 960px) {
    .account-mobile-nav-toggle { display: flex; }
    .woocommerce-MyAccount-navigation { display: none !important; }
    .woocommerce-MyAccount-navigation.nav-open { display: block !important; }
}

/* ═══════════════════════════════════════════════════
   WELCOME BANNER
═══════════════════════════════════════════════════ */
.customer-welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    padding: 28px 34px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.customer-welcome-banner::before {
    content: ''; position: absolute;
    right: -60px; top: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.welcome-text { position: relative; z-index: 1; }
.customer-welcome-banner h2 {
    font-size: 1.4rem; font-weight: 800;
    margin: 0 0 5px; color: #fff;
}
.customer-welcome-banner p {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}
.banner-emoji {
    font-size: 54px; line-height: 1;
    position: relative; z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
@media (max-width: 580px) {
    .customer-welcome-banner { padding: 20px 18px; }
    .banner-emoji { display: none; }
}

/* ═══════════════════════════════════════════════════
   STATS ROW — All 4 always visible
═══════════════════════════════════════════════════ */
.customer-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 700px) { .customer-stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.blue   { background: var(--icon-blue-bg);   color: var(--icon-blue); }
.stat-icon.purple { background: var(--icon-purple-bg); color: var(--icon-purple); }
.stat-icon.green  { background: var(--icon-green-bg);  color: var(--icon-green); }
.stat-icon.orange { background: var(--icon-orange-bg); color: var(--icon-orange); }

.stat-number {
    font-size: 1.9rem; font-weight: 900;
    color: var(--text-dark); line-height: 1;
}
.stat-label {
    font-size: 0.71rem; color: var(--text-light);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════
   QUICK ACTIONS GRID — Colored icons per card
═══════════════════════════════════════════════════ */
.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 700px) { .dashboard-actions-grid { grid-template-columns: repeat(2, 1fr); } }

.action-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 14px 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.action-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    text-decoration: none;
}
.action-icon {
    width: 58px; height: 58px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition);
}
.action-card:hover .action-icon { transform: scale(1.1); }
.action-icon svg { width: 28px; height: 28px; }
.action-label {
    font-size: 0.83rem; font-weight: 700; color: var(--text-dark);
}

/* Per-card colors */
.action-card.ac-orders   .action-icon { background: var(--icon-blue-bg);   color: var(--icon-blue);   }
.action-card.ac-address  .action-icon { background: var(--icon-green-bg);  color: var(--icon-green);  }
.action-card.ac-account  .action-icon { background: var(--icon-purple-bg); color: var(--icon-purple); }
.action-card.ac-download .action-icon { background: var(--icon-orange-bg); color: var(--icon-orange); }
.action-card.ac-payment  .action-icon { background: var(--icon-teal-bg);   color: var(--icon-teal);   }
.action-card.ac-support  .action-icon { background: var(--icon-pink-bg);   color: var(--icon-pink);   }
.action-card.ac-wishlist .action-icon { background: var(--icon-red-bg);    color: var(--icon-red);    }

.action-card.ac-orders:hover   { border-color: var(--icon-blue);   background: var(--icon-blue-bg); }
.action-card.ac-address:hover  { border-color: var(--icon-green);  background: var(--icon-green-bg); }
.action-card.ac-account:hover  { border-color: var(--icon-purple); background: var(--icon-purple-bg); }
.action-card.ac-download:hover { border-color: var(--icon-orange); background: var(--icon-orange-bg); }
.action-card.ac-payment:hover  { border-color: var(--icon-teal);   background: var(--icon-teal-bg); }
.action-card.ac-support:hover  { border-color: var(--icon-pink);   background: var(--icon-pink-bg); }
.action-card.ac-wishlist:hover { border-color: var(--icon-red);    background: var(--icon-red-bg); }

/* ═══════════════════════════════════════════════════
   SECTION CARDS
═══════════════════════════════════════════════════ */
.customer-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.customer-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.customer-section-header h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--text-dark); margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.customer-section-header h3 svg { width: 17px; height: 17px; color: var(--primary); }
.customer-section-header a { font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.customer-section-header a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   ORDERS TABLE
═══════════════════════════════════════════════════ */
table.woocommerce-orders-table, .customer-section-body table.shop_table {
    width: 100%; border-collapse: collapse; font-size: 0.84rem;
}
table.woocommerce-orders-table th, .customer-section-body table.shop_table th {
    background: var(--bg-hover); padding: 11px 16px;
    text-align: left; font-size: 0.71rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-light); border-bottom: 1px solid var(--border);
}
table.woocommerce-orders-table td, .customer-section-body table.shop_table td {
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    color: var(--text-mid); vertical-align: middle;
}
table.woocommerce-orders-table tr:last-child td,
.customer-section-body table.shop_table tr:last-child td { border-bottom: none; }
table.woocommerce-orders-table tr:hover td,
.customer-section-body table.shop_table tr:hover td { background: var(--bg-hover); }
.order-number a { font-weight: 700; color: var(--primary); text-decoration: none; }
.order-number a:hover { text-decoration: underline; }

/* Status Badges */
.woocommerce-order-status, mark.order-status {
    display: inline-flex; align-items: center;
    padding: 4px 11px; border-radius: 99px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: capitalize; white-space: nowrap;
}
.woocommerce-order-status.status-completed,  mark.order-status.status-completed  { background: var(--success-bg);      color: var(--success); }
.woocommerce-order-status.status-processing, mark.order-status.status-processing { background: var(--icon-blue-bg);    color: var(--icon-blue); }
.woocommerce-order-status.status-on-hold,    mark.order-status.status-on-hold    { background: var(--warning-bg);      color: var(--warning); }
.woocommerce-order-status.status-pending,    mark.order-status.status-pending    { background: var(--bg-hover);        color: var(--text-mid); }
.woocommerce-order-status.status-cancelled,  mark.order-status.status-cancelled  { background: var(--danger-bg);       color: var(--danger); }
.woocommerce-order-status.status-refunded,   mark.order-status.status-refunded   { background: var(--icon-purple-bg);  color: var(--icon-purple); }
.woocommerce-order-status.status-failed,     mark.order-status.status-failed     { background: var(--danger-bg);       color: var(--danger); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.woocommerce-account .button,
.woocommerce-account a.button,
.woocommerce-account input[type="submit"],
.woocommerce-account button[type="submit"] {
    background: var(--primary) !important; color: #fff !important;
    border: none !important; border-radius: var(--radius-sm) !important;
    padding: 10px 22px !important; font-size: 0.875rem !important;
    font-weight: 700 !important; cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important; align-items: center; gap: 6px;
    transition: background var(--transition), box-shadow var(--transition) !important;
    line-height: 1.5 !important;
}
.woocommerce-account .button:hover,
.woocommerce-account a.button:hover,
.woocommerce-account input[type="submit"]:hover,
.woocommerce-account button[type="submit"]:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79,70,229,0.35) !important;
    text-decoration: none !important;
}
.woocommerce-account .button.btn-sm { padding: 6px 14px !important; font-size: 0.78rem !important; }
.woocommerce-account .button.alt { background: var(--accent) !important; }

/* ═══════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account form.woocommerce-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm);
}
.woocommerce-account form label {
    display: block; font-size: 0.84rem; font-weight: 600;
    color: var(--text-dark); margin-bottom: 6px;
}
.woocommerce-account form input[type="text"],
.woocommerce-account form input[type="email"],
.woocommerce-account form input[type="password"],
.woocommerce-account form input[type="tel"],
.woocommerce-account form select,
.woocommerce-account form textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text-dark); background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.woocommerce-account form input:focus,
.woocommerce-account form select:focus,
.woocommerce-account form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.woocommerce-account form .form-row { margin-bottom: 18px; }
.woocommerce-account form .form-row-first,
.woocommerce-account form .form-row-last {
    width: calc(50% - 9px); display: inline-block; vertical-align: top;
}
.woocommerce-account form .form-row-first { margin-right: 9px; }
.woocommerce-account form .form-row-last  { margin-left: 9px;  }
@media (max-width: 600px) {
    .woocommerce-account form .form-row-first,
    .woocommerce-account form .form-row-last { width: 100%; margin: 0 0 18px; display: block; }
}

/* ═══════════════════════════════════════════════════
   ADDRESSES
═══════════════════════════════════════════════════ */
.woocommerce-account .woocommerce-Addresses {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 640px) { .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; } }
.woocommerce-account .woocommerce-Address {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm);
}
.woocommerce-account .woocommerce-Address header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.woocommerce-account .woocommerce-Address .title h3 {
    font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin: 0;
}
.woocommerce-account address { font-style: normal; color: var(--text-mid); font-size: 0.88rem; line-height: 1.8; }

/* ═══════════════════════════════════════════════════
   NOTICES
═══════════════════════════════════════════════════ */
.woocommerce-message {
    background: var(--success-bg); border-left: 4px solid var(--success);
    padding: 13px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--success); font-weight: 600; margin-bottom: 18px; font-size: 0.88rem;
}
.woocommerce-error {
    background: var(--danger-bg); border-left: 4px solid var(--danger);
    padding: 13px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--danger); font-weight: 600; margin-bottom: 18px; font-size: 0.88rem;
}
.woocommerce-info {
    background: var(--primary-light); border-left: 4px solid var(--primary);
    padding: 13px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--primary); font-weight: 500; margin-bottom: 18px; font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════
   ORDER PROGRESS TRACKER
═══════════════════════════════════════════════════ */
.order-progress-track {
    display: flex; align-items: flex-start; padding: 24px 16px;
}
.order-progress-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-circle {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.87rem;
    border: 3px solid var(--border);
    background: var(--bg-card); color: var(--text-light);
    transition: all 0.3s; position: relative; z-index: 2;
}
.order-progress-step.done  .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.order-progress-step.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(79,70,229,0.18); }
.step-label { font-size: 0.73rem; margin: 8px 0 0; color: var(--text-light); font-weight: 500; }
.order-progress-step.done  .step-label { color: var(--success); font-weight: 600; }
.order-progress-step.active .step-label { color: var(--primary); font-weight: 700; }
.progress-connector { flex: 1; height: 3px; background: var(--border); margin-top: 20px; border-radius: 2px; z-index: 0; }
.progress-connector.done { background: var(--success); }

/* ═══════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════ */
.envo-empty-state { padding: 48px 28px; text-align: center; }
.envo-empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; line-height: 1; }
.envo-empty-state p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 18px; }

/* ═══════════════════════════════════════════════════
   DARK MODE SMOOTH TRANSITIONS
═══════════════════════════════════════════════════ */
body,
.customer-section, .stat-card, .action-card,
.woocommerce-MyAccount-navigation,
.woocommerce-order-details, .woocommerce-customer-details,
.woocommerce-account .woocommerce-Address,
.avatar-modal {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
