/* FORCE layout */
body.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 40px !important;
}

/* Sidebar */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 260px !important;
    flex-shrink: 0 !important;
}

/* Remove list style */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Menu items */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 14px !important;
}

/* Links */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 16px 18px !important;
    border-radius: 14px !important;
    background: #f3f4f6 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    color: #1f2937 !important;
    transition: all 0.2s ease !important;
}

/* Hover */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #e5e7eb !important;
}

/* Active */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Content */
body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 !important;
}

/* Card */
.vc-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Reset background */
body.woocommerce-account {
    background: #f8fafc !important;
}

body.woocommerce-account .woocommerce {
    max-width: 1300px;
    margin: 80px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.06);
}

.woocommerce-MyAccount-navigation {
    margin-top: 10px;
    width: 280px !important;
}

body.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 60px !important;
}

/* Dashboard wrapper */
.vc-dashboard-wrapper {
    max-width: 700px;
}

/* Membership Card */
.woocommerce-MyAccount-content .vc-membership-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 28px;
    border-radius: 18px;
    margin-top: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.woocommerce-MyAccount-content .vc-membership-card,
.woocommerce-MyAccount-content .vc-membership-card * {
    color: #ffffff !important;
}

/* Header layout */
.vc-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vc-plan-badge {
    background: #22c55e;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.vc-plan-group {
    font-size: 14px;
    opacity: 0.8;
}

/* Body */
.vc-plan-body p {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Button */
/* =========================
   CTA BUTTON (FINAL SAFE VERSION)
========================= */

.woocommerce-MyAccount-content .vc-btn {
    display: inline-block;
    margin-top: 18px;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.woocommerce-MyAccount-content .vc-btn:hover {
    background: #f1f5f9 !important;
    transform: translateY(-1px);
}

/* No plan state */
.vc-no-plan {
    text-align: center;
}

/* Quick Stats Grid */
.vc-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.vc-stat-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    text-align: center;
}

.vc-stat-box h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #64748b;
}

.vc-stat-box p {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

.vc-seat-bar {
    margin-top: 8px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.vc-seat-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* =====================================
   MOBILE DRAWER (ONLY MOBILE)
===================================== */

.vc-mobile-menu-btn {
    display: none;
}

.vc-overlay {
    display: none;
}

/* Mobile header wrapper */
.vc-card-header-mobile {
    position: relative;
    height: 0;
}


@media (max-width: 768px) {

    /* Stack layout */
    body.woocommerce-account .woocommerce {
        flex-direction: column !important;
    }

    /* Hide sidebar by default */
    .woocommerce-MyAccount-navigation {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px !important;
        height: 100vh;
        background: #ffffff;
        z-index: 9998;
        transition: left 0.3s ease;
        padding: 30px 20px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    }

    body.vc-drawer-open .woocommerce-MyAccount-navigation {
        left: 0;
    }

/* ==============================
   PREMIUM MOBILE ACCOUNT BUTTON
============================== */

.vc-mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;

    position: absolute;
    top: 260px;
    left: 30px;
    z-index: 1100;

    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: none;
    border-radius: 14px;

    padding: 12px 18px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

/* Hover effect */
.vc-mobile-menu-btn:active {
    transform: scale(0.97);
}

/* Icon */
.vc-mobile-menu-btn .vc-hamburger {
    font-size: 18px;
    line-height: 1.5;
}

/* Label */
.vc-mobile-menu-btn .vc-menu-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Desktop ẩn */
@media (min-width: 769px) {
    .vc-mobile-menu-btn {
        display: none;
    }
}



/* ==============================
   Profile tab
============================== */


.vc-profile-wrapper {
    max-width: 900px;
}

.vc-profile-header {
    margin-bottom: 24px;
}

.vc-profile-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vc-profile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vc-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.vc-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #3b5bfd;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.vc-btn-outline {
    background: transparent;
    border: 1px solid #3b5bfd;
    color: #3b5bfd;
}

.vc-back-btn {
    display: inline-block;
    margin-bottom: 16px;
}


/* ==============================
   progress upload
============================== */

.vc-crop-container {
    width: 100%;
    max-height: 300px;
    margin-top: 10px;
    overflow: hidden;
}

.vc-crop-container img {
    max-width: 100%;
}


.vc-upload-progress {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.vc-upload-bar {
    width: 0%;
    height: 100%;
    background: #3b5bfd;
    transition: width 0.2s ease;
}

.vc-upload-percent {
    font-size: 13px;
    margin-top: 6px;
}


