/* Executive Hub Layout */
.qcg-executive-hub {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2d3436;
}

.qcg-hub-header-area {
    margin-bottom: 40px;
    text-align: left;
}

.qcg-hub-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e272e;
    margin: 0 0 10px 0;
}

.qcg-hub-subtitle {
    font-size: 16px;
    color: #636e72;
    margin: 0;
}

/* Cards Grid (Top Row) */
.qcg-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.qcg-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f2f6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.qcg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* Profile Card */
.qcg-profile-header {
    text-align: center;
    position: relative;
}

.qcg-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f1f2f6;
}

.qcg-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qcg-profile-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.qcg-profile-email {
    font-size: 14px;
    color: #636e72;
}

.qcg-badge-pill {
    display: inline-block;
    background: #e1f5fe;
    color: #0288d1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.qcg-profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f1f2f6;
    padding-top: 20px;
    margin-top: auto;
}

.qcg-stat-box {
    text-align: center;
}

.qcg-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #b2bec3;
    letter-spacing: 0.5px;
}

.qcg-stat-val {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
}

/* Wallet Card */
.qcg-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.qcg-balance-amount {
    font-size: 42px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 10px;
}

.qcg-balance-trend {
    color: #00b894;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qcg-btn-full {
    display: block;
    width: 100%;
    text-align: center;
    background: #00b894;
    color: #fff !important;
    /* Woo Override */
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.qcg-btn-full:hover {
    background: #00a884;
}

.qcg-icon-float {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #e0f2f1;
    color: #00897b;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Order Card */
.qcg-order-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2d3436;
}

.qcg-order-status {
    color: #0984e3;
    font-weight: 500;
    font-size: 14px;
}

.qcg-tracking-timeline {
    margin: 30px 0;
    position: relative;
    padding-top: 10px;
}

.qcg-progress-bar {
    height: 6px;
    background: #dfe6e9;
    border-radius: 3px;
    overflow: hidden;
}

.qcg-progress-fill {
    height: 100%;
    background: #0984e3;
    width: 60%;
    /* Dynamic in PHP usually */
}

.qcg-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #636e72;
    margin-top: 8px;
}

.qcg-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 2px solid #dfe6e9;
    color: #2d3436 !important;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.qcg-btn-outline:hover {
    border-color: #b2bec3;
    background: #f1f2f6;
}

/* Management Grid */
.qcg-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2d3436;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qcg-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.qcg-mgmt-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f1f2f6;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.qcg-mgmt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #e1e8ef;
}

.qcg-mgmt-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2d3436;
    margin-bottom: 20px;
}

.qcg-mgmt-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2d3436;
}

.qcg-mgmt-desc {
    font-size: 14px;
    color: #636e72;
    line-height: 1.5;
    margin: 0;
}

.qcg-arrow-link {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #b2bec3;
    font-size: 18px;
}

.qcg-notification-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff7675;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Support Footer */
.qcg-support-bar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.qcg-support-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qcg-support-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    color: #0984e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.qcg-support-text h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.qcg-support-text p {
    margin: 0;
    color: #636e72;
}

.qcg-support-actions {
    display: flex;
    gap: 15px;
}

.qcg-btn-primary {
    background: #2d3436;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.qcg-btn-secondary {
    background: #fff;
    color: #2d3436 !important;
    border: 1px solid #dfe6e9;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Gamification Card */
.qcg-gamification-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
}

.qcg-rank-title {
    font-size: 24px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 5px;
}

.qcg-points-display {
    margin-bottom: 15px;
}

.qcg-points-val {
    font-size: 28px;
    font-weight: 700;
    color: #ff9800;
}

.qcg-points-label {
    font-size: 14px;
    font-weight: 600;
    color: #b2bec3;
    text-transform: uppercase;
}

.qcg-rank-progress {
    margin-top: 20px;
}

.qcg-rank-bar {
    height: 8px;
    background: #f1f2f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.qcg-rank-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
    border-radius: 4px;
}

.qcg-rank-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #636e72;
    font-weight: 500;
}

/* Endpoint Card Wrapper (Generic Content) */
.qcg-modern-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f2f6;
    min-height: 400px;
}

/* Make WooCommerce Tables Look Better Inside Card */
.qcg-modern-content table.shop_table {
    border: none;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.qcg-modern-content table.shop_table th {
    font-weight: 600;
    color: #b2bec3;
    text-transform: uppercase;
    font-size: 12px;
    padding: 15px;
    border: none;
}

.qcg-modern-content table.shop_table td {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #f1f2f6;
    border-bottom: 1px solid #f1f2f6;
}

.qcg-modern-content table.shop_table td:first-child {
    border-left: 1px solid #f1f2f6;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.qcg-modern-content table.shop_table td:last-child {
    border-right: 1px solid #f1f2f6;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .qcg-support-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .qcg-support-info {
        flex-direction: column;
    }

    .qcg-dashboard-cards {
        grid-template-columns: 1fr;
    }

    .qcg-mgmt-grid {
        grid-template-columns: 1fr;
    }

    .qcg-modern-content {
        padding: 20px;
    }
}