/* AGGZ Membership - Professional B2B Pricing Page */

.aggz-pricing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 50px;
    background: #ffffff;
}

/* Hero Section */
.aggz-pricing-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.aggz-pricing-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.aggz-pricing-subtitle {
    font-size: 1rem;
    color: #6e6e73;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Status Banner */
.aggz-pricing-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 auto 32px;
    font-size: 0.875rem;
}

.aggz-status-shop {
    font-weight: 600;
    color: #1d1d1f;
}

.aggz-status-plan {
    color: #6e6e73;
}

.aggz-status-plan strong {
    color: #007aff;
    font-weight: 600;
}

/* Notice Banner */
.aggz-pricing-notice {
    text-align: center;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 32px;
}

.aggz-pricing-notice p {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Pricing Cards */
.aggz-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.aggz-pricing-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.aggz-pricing-card:hover {
    border-color: #007aff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.15);
}

.aggz-card-current {
    border-color: #34c759;
    background: #f0fdf4;
}

.aggz-card-current:hover {
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.2);
}

.aggz-card-featured {
    border-color: #007aff;
    position: relative;
}

.aggz-card-featured:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
}

.aggz-card-badge-featured {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #007aff;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Header */
.aggz-card-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.aggz-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px 0;
    letter-spacing: -0.2px;
}

.aggz-card-price {
    margin-bottom: 10px;
}

.aggz-price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1;
    letter-spacing: -0.5px;
}

.aggz-price-period {
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 400;
    margin-left: 2px;
}

.aggz-card-description {
    font-size: 0.8125rem;
    color: #6e6e73;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Card Features */
.aggz-card-features {
    flex-grow: 1;
    margin-bottom: 16px;
}

.aggz-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aggz-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: #1d1d1f;
}

.aggz-icon-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    color: #34c759;
    flex-shrink: 0;
}

.aggz-card-features li strong {
    font-weight: 600;
    color: #1d1d1f;
}

/* Card Action */
.aggz-card-action {
    margin-top: auto;
}

/* Buttons */
.aggz-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.aggz-btn-primary {
    background: #1a1a1a;
    color: #fff;
}

.aggz-btn-primary:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.aggz-btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
}

.aggz-btn-secondary:hover {
    background: #f9fafb;
    color: #1a1a1a;
    text-decoration: none;
}

.aggz-btn-current {
    background: #eff6ff;
    color: #2563eb;
    cursor: default;
}

.aggz-btn-disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Comparison Section */
.aggz-comparison-section {
    margin-bottom: 40px;
    padding: 0;
}

.aggz-comparison-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin: 0 0 24px 0;
    letter-spacing: -0.3px;
}

.aggz-comparison-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.aggz-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}

.aggz-comparison-table th,
.aggz-comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f5f5f7;
}

.aggz-comparison-table th {
    background: #fafbfc;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.875rem;
}

.aggz-comparison-table .aggz-feature-col,
.aggz-comparison-table .aggz-feature-name {
    text-align: left;
    font-weight: 500;
    color: #1d1d1f;
}

.aggz-comparison-table td {
    font-size: 0.8125rem;
    color: #6e6e73;
}

.aggz-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.aggz-comparison-table tbody tr:hover {
    background: #fafbfc;
}

.aggz-col-current {
    background: #f0fdf4 !important;
}

/* Trust Section */
.aggz-trust-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 24px 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.aggz-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #6e6e73;
    font-weight: 400;
}

.aggz-trust-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    color: #34c759;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .aggz-pricing-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .aggz-card-featured {
        border-color: #007aff;
    }
}

@media (max-width: 768px) {
    .aggz-pricing {
        padding: 30px 16px 40px;
    }

    .aggz-pricing-hero {
        margin-bottom: 28px;
    }

    .aggz-pricing-title {
        font-size: 1.75rem;
    }

    .aggz-pricing-subtitle {
        font-size: 0.9375rem;
    }

    .aggz-pricing-status {
        flex-direction: column;
        gap: 6px;
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    .aggz-pricing-cards {
        margin-bottom: 36px;
    }

    .aggz-pricing-card {
        padding: 20px 18px;
    }

    .aggz-card-header {
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .aggz-price-amount {
        font-size: 1.75rem;
    }

    .aggz-comparison-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .aggz-comparison-table th,
    .aggz-comparison-table td {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .aggz-trust-section {
        gap: 20px;
        padding: 20px;
    }

    .aggz-trust-item {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .aggz-pricing {
        padding: 24px 12px 32px;
    }

    .aggz-pricing-title {
        font-size: 1.5rem;
    }

    .aggz-pricing-card {
        padding: 18px 16px;
    }

    .aggz-card-name {
        font-size: 1rem;
    }

    .aggz-price-amount {
        font-size: 1.5rem;
    }

    .aggz-card-features li {
        font-size: 0.8125rem;
        padding: 5px 0;
    }

    .aggz-icon-check,
    .aggz-trust-icon {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
        max-width: 14px;
        max-height: 14px;
    }

    .aggz-btn, .aggz-btn-upgrade {
        padding: 11px 20px;
        font-size: 0.875rem;
    }

    .aggz-trust-section {
        gap: 16px;
        padding: 16px;
    }
}

/* ===========================================
   SELLER DASHBOARD - MEMBERSHIP PAGE
   =========================================== */

.ets_mp-membership-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.ets_mp-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ets_mp-current-plan-box {
    background: #e8f4f8;
    border-left: 3px solid #2fb5d2;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ets_mp-current-plan-box strong {
    color: #2fb5d2;
}

/* Desktop table */
.ets_mp-plans-desktop .table {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.ets_mp-plans-desktop .table th {
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(to bottom, #f8f9fa 0%, #f1f3f5 100%);
    color: #1d1d1f;
    padding: 14px 12px;
    border-color: #e5e7eb;
}

.ets_mp-plans-desktop .table td {
    vertical-align: middle;
    font-size: 13px;
    padding: 12px;
    color: #3c3c43;
}

.ets_mp-plans-desktop .table tr.success {
    background: linear-gradient(to right, #f0fdf4 0%, #f0fdf4 100%);
    border-left: 3px solid #34c759;
}

.ets_mp-plans-desktop .table td strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Mobile cards */
.ets_mp-plans-mobile {
    margin-bottom: 20px;
}

.ets_mp-plan-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.ets_mp-plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ets_mp-plan-card.current {
    border-color: #34c759;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
}

.ets_mp-plan-card .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.ets_mp-plan-card .plan-name {
    font-weight: 700;
    font-size: 17px;
    color: #1d1d1f;
    letter-spacing: -0.2px;
}

.ets_mp-plan-card .plan-price {
    font-weight: 700;
    font-size: 20px;
    color: #007aff;
    letter-spacing: -0.3px;
}

.ets_mp-plan-card .plan-price small {
    font-size: 12px;
    font-weight: 500;
    color: #86868b;
    margin-left: 2px;
}

.ets_mp-plan-card .plan-details {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 14px;
    line-height: 1.5;
}

.ets_mp-plan-card .plan-details div {
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.ets_mp-plan-card .plan-details div::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: 600;
}

.ets_mp-plan-card .plan-action {
    text-align: center;
    margin-top: 4px;
}

/* Benefits row */
.ets_mp-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
}

.ets_mp-benefits-row span {
    font-size: 13px;
    color: #666;
}

.ets_mp-benefits-row .icon-check {
    color: #5cb85c;
    margin-right: 5px;
}

/* Responsive: Desktop shows table, Mobile shows cards */
.ets_mp-plans-desktop {
    display: block;
}
.ets_mp-plans-mobile {
    display: none;
}

@media (max-width: 767px) {
    .ets_mp-plans-desktop {
        display: none;
    }
    .ets_mp-plans-mobile {
        display: block;
    }
    .ets_mp-benefits-row {
        flex-direction: column;
        gap: 8px;
    }
    .ets_mp-membership-section {
        padding: 15px;
    }
    .ets_mp-section-title {
        font-size: 16px;
    }
}

/* ===========================================
   AGGZ TABLE SCROLL - Mobile Responsive Wrapper
   =========================================== */

.aggz-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 15px;
}

.aggz-table-scroll table {
    min-width: 600px;
}

.aggz-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.aggz-table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.aggz-table-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.aggz-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Desktop table scroll wrapper */
.ets_mp-plans-desktop .aggz-table-scroll {
    margin-bottom: 0;
}

/* ===========================================
   MEMBERSHIP INVOICES TABLE - Mobile Fix
   =========================================== */

@media (max-width: 991px) {
    /* Reduce padding on tablet */
    .ets_mp-membership-section {
        padding: 15px;
    }

    /* Make sure tables scroll */
    .ets_mp_content_left .table-responsive,
    .ets_mp-plans-desktop {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ets_mp-plans-desktop .table {
        min-width: 550px;
    }
}

@media (max-width: 767px) {
    /* Compact padding on mobile - reduce white space */
    .ets_mp-membership-section {
        padding: 12px;
    }

    .ets_mp-current-plan-box {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Mobile plan cards - reduced padding */
    .ets_mp-plan-card {
        padding: 14px;
        margin-bottom: 10px;
    }

    .ets_mp-plan-card .plan-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .ets_mp-plan-card .plan-name {
        font-size: 16px;
    }

    .ets_mp-plan-card .plan-price {
        font-size: 18px;
    }

    .ets_mp-plan-card .plan-details {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .ets_mp-plan-card .plan-details div {
        margin-bottom: 4px;
    }

    .ets_mp-plan-card .plan-action {
        margin-top: 0;
    }

    /* Full width upgrade buttons on mobile */
    .ets_mp-plan-card .btn,
    .ets_mp-plan-card .aggz-btn-upgrade,
    .ets_mp-membership-section .btn {
        display: block;
        width: 100%;
    }

    /* Current plan badge - compact */
    .ets_mp-plan-card .aggz-badge-current {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Benefits row mobile - compact */
    .ets_mp-benefits-row {
        padding: 10px 0;
        gap: 8px;
        margin-bottom: 12px;
    }

    .ets_mp-benefits-row span {
        font-size: 12px;
    }
}

@media (max-width: 479px) {
    .ets_mp-membership-section {
        padding: 10px;
    }

    .ets_mp-section-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .ets_mp-current-plan-box {
        margin-bottom: 14px;
        padding: 8px 10px;
    }

    /* Extra compact cards on very small screens */
    .ets_mp-plan-card {
        padding: 12px;
        margin-bottom: 8px;
    }

    .ets_mp-plan-card .plan-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .ets_mp-plan-card .plan-name {
        font-size: 15px;
    }

    .ets_mp-plan-card .plan-price {
        font-size: 17px;
        color: #007aff;
    }

    .ets_mp-plan-card .plan-details {
        margin-bottom: 10px;
    }

    .ets_mp-plan-card .plan-details div {
        margin-bottom: 3px;
    }

    /* Compact upgrade button */
    .aggz-btn-upgrade {
        padding: 12px 24px;
        font-size: 14px;
    }

    .ets_mp-benefits-row {
        padding: 8px 0;
        margin-bottom: 10px;
    }
}

/* ===========================================
   BILLING PAGE - Available Plans Section
   Injected into ETS billing page via JS
   =========================================== */

.aggz-membership-plans.panel {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    max-width: 100%;
    overflow: visible;
}

.aggz-membership-plans .panel-heading {
    background: #fafbfc;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 16px;
    color: #1d1d1f;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aggz-membership-plans .panel-heading svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.aggz-membership-plans .panel-body {
    padding: 20px;
    max-width: 100%;
}

/* Current Plan Alert Banner */
.aggz-membership-plans .alert.alert-info {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    border: none;
    border-left: 4px solid #24b9d7;
    background: #f0fbfd;
    color: #1d1d1f;
}

/* Card wrapper */
.aggz-billing-cards-wrapper {
    margin-bottom: 15px;
    max-width: 100%;
}

/* Card grid */
.aggz-billing-cards-wrapper .aggz-pricing-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

/* Individual pricing card */
.aggz-billing-cards-wrapper .aggz-pricing-card {
    flex: 1 1 0%;
    min-width: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 22px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.aggz-billing-cards-wrapper .aggz-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Current plan card */
.aggz-billing-cards-wrapper .aggz-card-current {
    border: 2px solid #24b9d7;
    background: #f8fdfe;
}

.aggz-billing-cards-wrapper .aggz-card-current:hover {
    box-shadow: 0 4px 12px rgba(36, 185, 215, 0.15);
}

.aggz-billing-cards-wrapper .aggz-card-current::after {
    content: "\2713  Active";
    position: absolute;
    top: -10px;
    right: 12px;
    background: #24b9d7;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Card header */
.aggz-billing-cards-wrapper .aggz-card-header {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.aggz-billing-cards-wrapper .aggz-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.aggz-billing-cards-wrapper .aggz-card-price {
    margin-bottom: 0;
}

.aggz-billing-cards-wrapper .aggz-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1;
    letter-spacing: -0.5px;
}

.aggz-billing-cards-wrapper .aggz-price-period {
    font-size: 0.8125rem;
    color: #86868b;
    font-weight: 400;
    margin-left: 2px;
}

/* Features list */
.aggz-billing-cards-wrapper .aggz-card-features {
    text-align: left;
    margin-bottom: 14px;
    flex-grow: 1;
}

.aggz-billing-cards-wrapper .aggz-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aggz-billing-cards-wrapper .aggz-card-features li {
    padding: 5px 0 5px 22px;
    font-size: 13px;
    color: #3c3c43;
    position: relative;
}

.aggz-billing-cards-wrapper .aggz-card-features li::before {
    content: "\2713";
    color: #34c759;
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 12px;
}

.aggz-billing-cards-wrapper .aggz-card-features li strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Card action */
.aggz-billing-cards-wrapper .aggz-card-action {
    margin-top: auto;
    padding-top: 10px;
}

.aggz-billing-cards-wrapper .aggz-card-action .btn {
    width: 100%;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
}

.aggz-billing-cards-wrapper .aggz-card-action .btn.btn-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    opacity: 1;
}

.aggz-billing-cards-wrapper .aggz-card-action .btn.btn-primary {
    background: #1a1a1a;
    color: #fff;
    border: none;
}

.aggz-billing-cards-wrapper .aggz-card-action .btn.btn-primary:hover {
    background: #333;
}

/* "Lower tier" text */
.aggz-billing-cards-wrapper .aggz-card-action > span[style] {
    background: #f5f5f7;
    color: #86868b !important;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px !important;
    display: inline-block !important;
}

/* Footer trust indicators */
.aggz-membership-plans .text-muted {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.aggz-membership-plans .text-muted span {
    margin: 0 6px;
}

.aggz-membership-plans .text-muted .icon-check {
    color: #34c759;
}

/* ===========================================
   ETS MARKETPLACE - Bootstrap Grid Override
   Fix narrow content column on mobile
   =========================================== */

@media (max-width: 991px) {
  body[id*="module-ets_marketplace"] .ets-mp-main-row > .ets-mp-content,
  body[id*="module-ets_marketplace"] .ets-mp-main-row > .ets_mp_content_left.col-lg-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  body[id*="module-ets_marketplace"] .ets-mp-main-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ===========================================
   TABLE OVERFLOW - Scrollable wrapper
   =========================================== */

@media (max-width: 991px) {
  .aggz-table-scroll {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .aggz-table-scroll table {
    min-width: 650px;
  }
}

/* ===========================================
   APPLE-STYLE UPGRADE BUTTONS
   =========================================== */

.aggz-btn-upgrade {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.aggz-btn-upgrade::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.aggz-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0051d5 0%, #007aff 100%);
    color: #ffffff !important;
    text-decoration: none;
}

.aggz-btn-upgrade:hover::before {
    left: 100%;
}

.aggz-btn-upgrade:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.aggz-btn-upgrade-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    width: auto;
    min-width: 100px;
}

.aggz-badge-current {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.25);
    letter-spacing: 0.3px;
}

.aggz-btn-upgrade-outline {
    background: #ffffff;
    color: #007aff !important;
    border: 2px solid #007aff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

.aggz-btn-upgrade-outline:hover {
    background: #f0f7ff;
    color: #0051d5 !important;
    border-color: #0051d5;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

/* ===========================================
   BILLING PAGE - Responsive Breakpoints
   =========================================== */

/* Tablet */
@media (max-width: 991px) {
    .aggz-billing-cards-wrapper .aggz-pricing-cards {
        flex-wrap: wrap;
    }

    .aggz-billing-cards-wrapper .aggz-pricing-card {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .aggz-membership-plans.panel {
        border-radius: 6px;
    }

    .aggz-membership-plans .panel-heading {
        font-size: 14px;
        padding: 12px 15px;
    }

    .aggz-membership-plans .panel-body {
        padding: 15px;
    }

    .aggz-billing-cards-wrapper .aggz-pricing-cards {
        flex-direction: column;
        gap: 12px;
    }

    .aggz-billing-cards-wrapper .aggz-pricing-card {
        flex: 1 1 auto;
        min-width: 0;
        padding: 16px 14px 14px;
    }

    .aggz-billing-cards-wrapper .aggz-card-name {
        font-size: 0.9375rem;
    }

    .aggz-billing-cards-wrapper .aggz-price-amount {
        font-size: 1.5rem;
    }

    .aggz-billing-cards-wrapper .aggz-card-features li {
        font-size: 12px;
        padding: 4px 0 4px 20px;
    }

    .aggz-membership-plans .alert.alert-info {
        padding: 8px 12px;
        font-size: 12px;
    }

    .aggz-membership-plans .text-muted span {
        display: block;
        margin: 3px 0;
    }

    .aggz-membership-plans .btn,
    .aggz-membership-plans .btn-primary {
        width: 100%;
        display: block;
    }
}

/* Small mobile */
@media (max-width: 479px) {
    .aggz-membership-plans .panel-body {
        padding: 12px;
    }

    .aggz-billing-cards-wrapper .aggz-pricing-card {
        padding: 14px 12px 12px;
    }

    .aggz-billing-cards-wrapper .aggz-card-name {
        font-size: 0.875rem;
    }

    .aggz-billing-cards-wrapper .aggz-price-amount {
        font-size: 1.375rem;
    }

    .aggz-billing-cards-wrapper .aggz-card-features li {
        font-size: 11px;
        padding: 3px 0 3px 18px;
    }

    .aggz-billing-cards-wrapper .aggz-card-current::after {
        top: -8px;
        right: 8px;
        padding: 2px 8px;
        font-size: 9px;
    }
}
