/* ===========================================
   Billing & API Keys Page Styles
   =========================================== */

/* API Keys Page */
.api-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (max-width: 576px) {
    .api-page-container {
        padding: 1rem 0.75rem;
    }
}

.api-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.api-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.api-page-header p {
    margin: 0.25rem 0 0;
    color: var(--color-gray);
}

.api-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .api-stats-row {
        grid-template-columns: 1fr;
    }
}

.api-stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.api-stat-card h4 {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

.api-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.api-stat-card .stat-value span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray);
}

.api-stat-card .progress-bar-container {
    height: 6px;
    background: var(--color-light-gray);
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.api-stat-card .progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
}

/* API Keys Card & Table */
.api-keys-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.api-keys-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-light-gray);
    font-weight: 600;
}

.api-keys-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    max-width: 100%;
    box-sizing: border-box;
}

.api-keys-table th,
.api-keys-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
    word-wrap: break-word;
    box-sizing: border-box;
}

/* Table column widths to prevent horizontal scrolling */
.api-keys-table th:nth-child(1),
.api-keys-table td:nth-child(1) {
    width: 18%;
    /* Name */
}

.api-keys-table th:nth-child(2),
.api-keys-table td:nth-child(2) {
    width: 30%;
    /* Key */
    min-width: 180px;
}

.api-keys-table th:nth-child(3),
.api-keys-table td:nth-child(3) {
    width: 10%;
    /* Status */
}

.api-keys-table th:nth-child(4),
.api-keys-table td:nth-child(4) {
    width: 13%;
    /* Created */
}

.api-keys-table th:nth-child(5),
.api-keys-table td:nth-child(5) {
    width: 12%;
    /* Last Used */
}

.api-keys-table th:nth-child(6),
.api-keys-table td:nth-child(6) {
    width: 17%;
    /* Actions - percentage to fit within 100% */
    text-align: right;
    min-width: 140px;
    padding-right: 1.5rem;
    /* Extra padding to prevent button from touching card edge */
    padding-left: 1rem;
    /* Ensure consistent left padding */
    box-sizing: border-box;
}

.api-keys-table th {
    background: var(--color-off-white);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-gray);
}

.api-keys-table tr:last-child td {
    border-bottom: none;
}

/* Desktop: Always show all details, hide expand button */
.api-key-expand-btn {
    display: none;
}

.api-key-detail-cell {
    display: table-cell;
}

.api-key-header-mobile {
    display: block;
}

/* Responsive styles for API keys table */
@media (max-width: 768px) {
    .api-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .api-page-header h1 {
        font-size: 1.5rem;
    }

    .api-stats-row {
        gap: 0.75rem;
    }

    .api-stat-card {
        padding: 1rem;
    }

    .api-stat-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .api-stat-card .stat-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .api-page-container {
        padding: 1rem 0.75rem;
    }

    .api-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .api-page-header>div {
        text-align: left;
    }

    .api-page-header h1 {
        font-size: 1.5rem;
    }

    .api-keys-card {
        border-radius: 0.5rem;
        margin: 0;
        overflow: visible;
    }

    .api-keys-card-header {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Convert table to card layout on mobile */
    .table-responsive {
        overflow-x: visible;
        padding: 0.5rem;
    }

    .api-keys-table {
        display: block;
        width: 100%;
        table-layout: auto !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .api-keys-table thead {
        display: none;
    }

    .api-keys-table tbody {
        display: block;
        padding: 0;
    }

    .api-keys-table tr {
        display: block;
        background: white;
        border: 1px solid var(--color-border);
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        width: 100%;
    }

    .api-keys-table th,
    .api-keys-table td {
        display: block;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        border: none;
        text-align: left !important;
    }

    /* Expand/Collapse functionality - Mobile only */
    .api-key-header-mobile {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .api-key-expand-btn {
        background: transparent;
        border: 2px solid var(--color-border);
        color: var(--color-gray);
        width: 32px;
        height: 32px;
        border-radius: 6px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        padding: 0;
    }

    .api-key-expand-btn:hover {
        background: var(--color-off-white);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    .api-key-expand-btn i {
        transition: transform 0.2s ease;
        font-size: 0.75rem;
    }

    .api-key-row.expanded .api-key-expand-btn i {
        transform: rotate(180deg);
    }

    /* Hide details by default on mobile, except API key */
    .api-key-detail-cell {
        display: none !important;
    }

    /* Always show API key on mobile */
    .api-keys-table td:nth-child(2),
    .api-keys-table td.api-key-detail-cell:nth-child(2) {
        display: block !important;
    }

    .api-key-row.expanded .api-key-detail-cell {
        display: block !important;
    }

    /* Name column - header */
    .api-keys-table td:nth-child(1),
    .api-keys-table td.api-key-name-cell {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.875rem;
        background: var(--color-off-white);
        border-bottom: 1px solid var(--color-border);
        font-weight: 600;
        font-size: 0.95rem;
        text-align: left !important;
    }

    /* Key column - always visible on mobile */
    .api-keys-table td:nth-child(2),
    .api-keys-table td.api-key-detail-cell:nth-child(2) {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.875rem;
        border-bottom: 1px solid var(--color-light-gray);
        text-align: left !important;
        display: block !important;
    }

    /* Show label only when expanded */
    .api-key-row.expanded .api-keys-table td:nth-child(2)::before {
        content: "API Key";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Status column */
    .api-keys-table td:nth-child(3),
    .api-keys-table td.api-key-detail-cell:nth-child(3) {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.875rem;
        border-bottom: 1px solid var(--color-light-gray);
        text-align: left !important;
    }

    .api-key-row.expanded .api-keys-table td:nth-child(3)::before {
        content: "Status";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Created column */
    .api-keys-table td:nth-child(4),
    .api-keys-table td.api-key-detail-cell:nth-child(4) {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.875rem;
        border-bottom: 1px solid var(--color-light-gray);
        text-align: left !important;
    }

    .api-key-row.expanded .api-keys-table td:nth-child(4)::before {
        content: "Created";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Last Used column */
    .api-keys-table td:nth-child(5),
    .api-keys-table td.api-key-detail-cell:nth-child(5) {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.875rem;
        border-bottom: 1px solid var(--color-light-gray);
        text-align: left !important;
    }

    .api-key-row.expanded .api-keys-table td:nth-child(5)::before {
        content: "Last Used";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Actions column */
    .api-keys-table td:nth-child(6),
    .api-keys-table td.api-key-detail-cell:nth-child(6) {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.875rem;
        text-align: center !important;
        border-bottom: none;
    }

    /* Adjust API key code display on mobile */
    .api-key-code {
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        margin-top: 0.25rem;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }

    .api-key-code code {
        font-size: 0.75rem;
        max-width: calc(100% - 35px);
        min-width: 0;
        word-break: break-all;
        overflow-wrap: break-word;
        flex: 1;
        box-sizing: border-box;
    }

    .api-key-code button {
        flex-shrink: 0;
        width: 30px;
        min-width: 30px;
    }

    .api-keys-table .btn-revoke,
    .api-keys-table .btn-outline-danger {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        border-radius: 8px;
        border-width: 2px;
        font-weight: 600;
    }

    /* Fix text wrapping and prevent stretching */
    .api-keys-table td {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
        box-sizing: border-box;
    }

    .api-keys-table td * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .api-keys-table td strong {
        display: block;
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .api-keys-table td.text-muted {
        font-size: 0.875rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Badge adjustments for mobile */
    .api-keys-table .badge-active,
    .api-keys-table .badge-revoked {
        display: inline-block;
        white-space: nowrap;
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

    /* Badge adjustments */
    .badge-active,
    .badge-revoked {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Quick links mobile */
    .api-quick-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .api-quick-links .btn {
        width: 100%;
        justify-content: center;
    }

    /* Ensure no horizontal overflow */
    .api-page-container,
    .api-keys-card,
    .table-responsive {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Stats row mobile spacing */
    .api-stats-row {
        gap: 0.75rem;
    }

    .api-stat-card {
        padding: 1rem 0.75rem;
    }

    /* Modal mobile adjustments */
    .api-modal-box {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .api-modal-header,
    .api-modal-body,
    .api-modal-footer {
        padding: 1rem;
    }

    .api-modal-header h3 {
        font-size: 1rem;
    }

    .api-empty-state {
        padding: 2rem 1rem;
    }

    .api-empty-state i {
        font-size: 2rem;
    }

    /* Payment history table mobile styles */
    .billing-payments-card .table-responsive {
        padding: 0.5rem;
        overflow-x: visible;
    }

    .billing-payments-table,
    .billing-payments-table thead,
    .billing-payments-table tbody,
    .billing-payments-table th,
    .billing-payments-table td,
    .billing-payments-table tr {
        display: block;
    }

    .billing-payments-table thead {
        display: none;
    }

    .billing-payments-table tbody {
        padding: 0;
    }

    .billing-payments-table tr {
        background: white;
        border: 1px solid var(--color-border);
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .billing-payments-table th,
    .billing-payments-table td {
        display: block;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 0.875rem;
        border: none;
        border-bottom: 1px solid var(--color-light-gray);
        text-align: left !important;
        box-sizing: border-box;
    }

    .billing-payments-table td:last-child {
        border-bottom: none;
    }

    /* Hide details by default */
    .payment-detail-cell {
        display: none !important;
    }

    .payment-row.expanded .payment-detail-cell {
        display: block !important;
    }

    /* Mobile Header (Description) */
    .payment-description-cell {
        display: block !important;
        background: var(--color-off-white);
        border-bottom: 1px solid var(--color-border);
        padding: 0.875rem !important;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .payment-header-mobile {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Expand Button */
    .payment-expand-btn {
        background: transparent;
        border: 2px solid var(--color-border);
        color: var(--color-gray);
        width: 32px;
        height: 32px;
        border-radius: 6px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        padding: 0;
        margin-left: 0.5rem;
    }

    .payment-expand-btn:hover {
        background: var(--color-off-white);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    .payment-expand-btn i {
        transition: transform 0.2s ease;
        font-size: 0.75rem;
    }

    .payment-row.expanded .payment-expand-btn i {
        transform: rotate(180deg);
    }

    /* Amount - always visible */
    .billing-payments-table td:nth-child(3) {
        display: block !important;
        font-weight: bold;
    }

    .billing-payments-table td:nth-child(3)::before {
        content: "Amount";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Date column - show label when expanded */
    .billing-payments-table td:nth-child(1)::before {
        content: "Date";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Status column */
    .billing-payments-table td:nth-child(4)::before {
        content: "Status";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }

    /* Method column */
    .billing-payments-table td:nth-child(5)::before {
        content: "Payment Method";
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--color-gray);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 0.375rem;
    }
}

.api-key-code {
    font-family: monospace;
    background: var(--color-off-white);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.api-key-code code {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key-code button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0;
}

.badge-active {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-revoked {
    background: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Revoke modal warning styling */
.api-revoke-warning {
    text-align: center;
    padding: 1rem 0;
}

.api-revoke-warning i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.api-revoke-warning p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #dc3545;
}

.api-revoke-warning .text-muted {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
}

.api-empty-state {
    padding: 3rem;
    text-align: center;
}

.api-empty-state i {
    font-size: 3rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.api-quick-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Modal Overlay */
.api-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.api-modal-overlay.active {
    display: flex;
}

.api-modal-box {
    background: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.api-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.api-modal-header button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-gray);
}

.api-modal-body {
    padding: 1.25rem;
}

.api-modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.api-modal-body input[type="text"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-light-gray);
    border-radius: 0.25rem;
    font-size: 1rem;
}

.api-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.api-secret-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.api-secret-value {
    background: var(--color-off-white);
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-family: monospace;
    word-break: break-all;
    margin-top: 0.25rem;
}

.api-secret-group {
    margin-bottom: 1rem;
}

.api-modal-header-success {
    background: var(--color-success);
    color: white;
}

.api-modal-header-success button {
    color: white;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on desktop */
@media (min-width: 577px) {
    .table-responsive {
        overflow-x: visible;
    }

    .api-keys-table {
        width: 100%;
        table-layout: fixed;
    }
}

.text-muted {
    color: var(--color-gray);
}

.text-right {
    text-align: right;
}

.text-danger {
    color: var(--color-danger);
}

.fw-bold {
    font-weight: 600;
}

.btn-outline-danger {
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--color-danger);
    color: white;
}

/* Revoke button redesign - boxed with curved corners */
.btn-revoke {
    background: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: auto;
    width: auto;
}

/* Ensure revoke button in table has proper spacing */
.api-keys-table td:nth-child(6) .btn-revoke {
    margin-left: auto;
}

.btn-revoke:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-revoke:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
}

.btn-revoke i {
    font-size: 0.875rem;
}

/* Legacy support - keep old class working */
.api-keys-table .btn-outline-danger {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: auto;
    width: auto;
    border-radius: 8px;
    border-width: 2px;
    font-weight: 600;
}

.btn-danger {
    background-color: #e53e3e;
    /* Explicit red */
    color: #ffffff !important;
    /* Force white text */
    border: 1px solid #e53e3e;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
    color: #ffffff !important;
}

/* ===========================================
   Billing Page Styles
   =========================================== */

.billing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.billing-header {
    margin-bottom: 2rem;
}

.billing-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.billing-header p {
    margin: 0.25rem 0 0;
    color: var(--color-gray);
}

/* Current Plan Card */
.billing-plan-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.billing-plan-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.billing-plan-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-plan-header .plan-expiry {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Usage Stats Grid */
.billing-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .billing-stats-grid {
        grid-template-columns: 1fr;
    }
}

.billing-stat-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
}

.billing-stat-card .stat-header {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.billing-stat-card .stat-limit {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.billing-stat-card .stat-progress {
    height: 6px;
    background: var(--color-light-gray);
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.billing-stat-card .stat-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.billing-stat-card .stat-progress-fill.warning {
    background: #ffc107;
}

.billing-stat-card .stat-progress-fill.danger {
    background: var(--color-danger);
}

/* Quick Actions */
.billing-actions-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.billing-actions-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-light-gray);
    font-weight: 600;
}

.billing-actions-body {
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Features List */
.billing-features-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.billing-features-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-light-gray);
    font-weight: 600;
}

.billing-features-body {
    padding: 1.25rem;
}

.billing-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .billing-features-grid {
        grid-template-columns: 1fr;
    }
}

.billing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.billing-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.billing-features-list li:last-child {
    border-bottom: none;
}

.billing-features-list .feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

.billing-features-list .feature-icon.active {
    background: #d4edda;
    color: #155724;
}

.billing-features-list .feature-icon.inactive {
    background: var(--color-light-gray);
    color: var(--color-gray);
}

.billing-features-list .feature-text {
    flex: 1;
}

.billing-features-list .feature-text.inactive {
    color: var(--color-gray);
}

.billing-limits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.billing-limits-list li:last-child {
    border-bottom: none;
}

.billing-limits-list .limit-icon {
    color: var(--color-primary);
    width: 20px;
}

.billing-limits-list .limit-label {
    font-weight: 500;
}

.billing-limits-list .limit-value {
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* Payment History Table */
.billing-payments-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.billing-payments-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-light-gray);
    font-weight: 600;
}

.billing-payments-card .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on desktop for payment table */
@media (min-width: 577px) {
    .billing-payments-card .table-responsive {
        overflow-x: visible;
    }
}

.billing-payments-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    max-width: 100%;
    box-sizing: border-box;
}

.billing-payments-table th,
.billing-payments-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-light-gray);
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Hide expand button on desktop */
.payment-expand-btn {
    display: none;
}

/* Payment table column widths */
.billing-payments-table th:nth-child(1),
.billing-payments-table td:nth-child(1) {
    width: 15%;
    /* Date */
}

.billing-payments-table th:nth-child(2),
.billing-payments-table td:nth-child(2) {
    width: 35%;
    /* Description */
}

.billing-payments-table th:nth-child(3),
.billing-payments-table td:nth-child(3) {
    width: 15%;
    /* Amount */
}

.billing-payments-table th:nth-child(4),
.billing-payments-table td:nth-child(4) {
    width: 15%;
    /* Status */
}

.billing-payments-table th:nth-child(5),
.billing-payments-table td:nth-child(5) {
    width: 20%;
    /* Method */
}

.billing-payments-table th {
    background: var(--color-off-white);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-gray);
}

.billing-payments-table tr:last-child td {
    border-bottom: none;
}

.payment-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.payment-status.completed {
    background: #d4edda;
    color: #155724;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.payment-status.refunded {
    background: var(--color-light-gray);
    color: var(--color-gray);
}

/* Cancel Subscription Card */
.billing-cancel-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-danger);
    overflow: hidden;
    margin-bottom: 2rem;
}

.billing-cancel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-light-gray);
    font-weight: 600;
    color: var(--color-danger);
}

.billing-cancel-body {
    padding: 1.25rem;
}

.billing-cancel-body p {
    margin: 0 0 1rem;
    color: var(--color-gray);
}

/* ===========================================
   Checkout Page Styles
   =========================================== */

.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkout-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.checkout-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c53030 100%);
    color: white !important;
    padding: 2rem;
    text-align: center;
}

.checkout-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    color: white !important;
}

.checkout-header h1 i {
    color: white !important;
}

.checkout-header p {
    margin: 0;
    opacity: 0.9;
    color: white !important;
}

.checkout-header * {
    color: white !important;
}

.checkout-body {
    padding: 2rem;
}

.order-summary {
    background: var(--color-off-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-summary h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.order-line:last-child {
    border-bottom: none;
}

.order-line.total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--color-primary);
}

.checkout-footer {
    margin-top: 1.5rem;
}

.checkout-footer .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--color-gray);
    font-size: 0.875rem;
}

.secure-notice i {
    color: var(--color-success);
}

.sandbox-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.sandbox-notice i {
    color: #856404;
    font-size: 1.25rem;
}

.sandbox-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.875rem;
}

.payment-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-gray);
}

.checkout-back-link {
    text-align: center;
    margin-top: 1.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--color-dark);
}

/* ===========================================
   Pricing Page Styles
   =========================================== */

.pricing-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-off-white) 0%, #fff 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.pricing-header h1 i {
    color: var(--color-primary);
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto;
}

.pricing-subheader {
    margin-top: 1rem !important;
    font-size: 0.9375rem !important;
    color: var(--color-gray);
    background: var(--color-off-white);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    display: inline-block;
}

.pricing-subheader i {
    margin-right: 0.25rem;
    color: var(--color-primary);
}

.pricing-subheader i.fa-code {
    color: #6366f1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover:not(.current) {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(230, 57, 70, 0.3);
}

.pricing-card.featured:not(.current) {
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured:not(.current):hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.pricing-card.current {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--color-text);
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.pricing-card:not(.current) {
    border: 2px solid transparent !important;
}

.pricing-card.current.featured {
    border: 2px solid var(--color-primary);
}

.pricing-card.current::before {
    content: 'Current Plan';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 10;
    line-height: 1.4;
}

.pricing-card.current .btn {
    background: var(--color-gray);
    color: white !important;
    cursor: default;
    box-shadow: none;
    transform: none;
    opacity: 0.8;
}

.pricing-card.current .btn:hover {
    background: var(--color-gray);
    transform: none;
    box-shadow: none;
}

.pricing-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    border-radius: 0.375rem;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
    white-space: nowrap;
}

.pricing-card-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-light-gray);
}

.pricing-card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-weight: 700;
}

.pricing-card-header .description {
    color: var(--color-gray);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.pricing-price {
    padding: 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-off-white) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--color-light-gray);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-amount .currency {
    font-size: 1.75rem;
    vertical-align: top;
    font-weight: 600;
}

.pricing-period {
    color: var(--color-gray);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Currency Notice Banner */
.currency-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.currency-notice-content {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #1e40af;
    font-size: 0.875rem;
    flex: 1;
    min-width: 250px;
}

.currency-notice-content i {
    font-size: 1.25rem;
    color: #3b82f6;
}

.currency-notice-content strong {
    color: #1e3a8a;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-selector label {
    color: #3b82f6;
    font-size: 1rem;
}

.currency-selector select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 0.5rem;
    background: white;
    color: #1e40af;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: all 0.2s ease;
}

.currency-selector select:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

.currency-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Local Currency Display (shown BIG for international users) */
.local-currency-amount {
    margin-bottom: 0.25rem;
}

.local-currency-amount .local-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

/* ZAR Price Container */
.zar-price-container {
    /* Default: shown normally */
    display: block;
}

/* ZAR shown as secondary (for international users) */
.zar-price-container.secondary {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--color-light-gray);
}

.zar-price-container.secondary::before {
    content: "Billed in ";
    font-size: 0.75rem;
    color: var(--color-gray);
    font-weight: 400;
}

.zar-price-container.secondary .zar-amount {
    display: inline;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray);
}

.zar-price-container.secondary .zar-amount .currency {
    font-size: 0.9rem;
    vertical-align: baseline;
}

/* Billing Disclaimer */
.billing-disclaimer {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    text-align: center;
}

.billing-disclaimer .disclaimer-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
}

.billing-disclaimer .disclaimer-content i {
    color: var(--color-gray);
    font-size: 0.875rem;
}

.billing-disclaimer .disclaimer-content p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-gray);
    line-height: 1.4;
}

.billing-disclaimer .disclaimer-content strong {
    color: var(--color-dark);
}

/* Pricing Features Section Headers */
.pricing-features-section {
    margin-bottom: 0.25rem;
}

.pricing-features-section:last-child {
    margin-bottom: 0;
}

.pricing-features-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    margin: 0 -1.5rem 0.5rem -1.5rem;
    background: linear-gradient(135deg, var(--color-off-white) 0%, #f0f0f0 100%);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray);
    border-bottom: 1px solid var(--color-light-gray);
}

.pricing-features-section-header i {
    font-size: 0.8rem;
    color: var(--color-primary);
}

.pricing-features-section-header.developer {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    margin-top: 0.5rem;
    border-top: 1px solid #c7d2fe;
}

.pricing-features-section-header.developer i {
    color: #6366f1;
}

/* Developer section styling */
.pricing-features-section-developer {
    position: relative;
}

.pricing-features-section-developer .pricing-feature {
    padding-left: 0;
}

/* Mobile responsive adjustments for section headers */
@media (max-width: 768px) {
    .pricing-features-section-header {
        margin: 0 -1.25rem 0.5rem -1.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .pricing-features-section-header.developer {
        margin-top: 0.375rem;
    }
}

@media (max-width: 480px) {
    .pricing-features-section-header {
        margin: 0 -1rem 0.5rem -1rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
    }
}

.pricing-features {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature .feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
    background: var(--color-off-white);
    color: var(--color-primary);
    font-size: 0.875rem;
}

.pricing-feature .feature-icon.enabled {
    background: #d4edda;
    color: #155724;
}

.pricing-feature .feature-icon.disabled {
    background: #f8f9fa;
    color: #6c757d;
}

.pricing-feature .feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pricing-feature .feature-label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9375rem;
}

.pricing-feature .feature-value {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

.pricing-feature.disabled .feature-label,
.pricing-feature.disabled .feature-value {
    color: var(--color-gray);
    opacity: 0.6;
}

.pricing-feature.enabled .feature-label {
    color: var(--color-dark);
}

/* Featured unlimited style for plans with unlimited tool usage */
.pricing-feature.featured-unlimited {
    background: var(--color-primary-soft);
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    margin: 0 -0.75rem;
    width: calc(100% + 1.5rem);
}

.pricing-feature.featured-unlimited .feature-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.pricing-feature.featured-unlimited .feature-value {
    font-weight: 600;
    color: var(--color-primary);
}

.pricing-card-footer {
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-light-gray);
    margin-top: auto;
}

.pricing-card-footer .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.pricing-card-footer .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .pricing-section {
        padding: 2rem 0;
    }

    .pricing-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .pricing-header p {
        font-size: 1rem;
    }

    .pricing-subheader {
        font-size: 0.8125rem !important;
        padding: 0.625rem 1rem;
        line-height: 1.6;
    }

    /* Local currency mobile styles */
    .local-currency-amount .local-price {
        font-size: 2.5rem;
    }

    .zar-price-container.secondary .zar-amount {
        font-size: 0.8rem;
    }

    /* Billing disclaimer mobile */
    .billing-disclaimer {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .billing-disclaimer .disclaimer-content {
        flex-direction: row;
        padding: 0.5rem 0.875rem;
    }


    .billing-disclaimer .disclaimer-content p {
        font-size: 0.8125rem;
    }


    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .pricing-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .pricing-card {
        max-width: 100%;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        border-radius: 0.875rem;
    }

    .pricing-card.featured:not(.current) {
        transform: none;
    }

    .pricing-card.featured:not(.current):hover {
        transform: translateY(-4px);
    }

    .pricing-card.current.featured:hover {
        transform: translateY(-4px);
    }

    .pricing-card-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .pricing-card-header h2 {
        font-size: 1.5rem;
    }

    .pricing-price {
        padding: 1.25rem 1.25rem;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .pricing-amount .currency {
        font-size: 1.5rem;
    }

    .pricing-features {
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    .pricing-feature {
        padding: 0.5rem 0;
        gap: 0.75rem;
    }

    .pricing-feature .feature-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

    .pricing-feature .feature-label {
        font-size: 0.875rem;
    }

    .pricing-feature .feature-value {
        font-size: 0.8125rem;
    }

    .pricing-card-footer {
        padding: 1rem 1.25rem;
    }

    .pricing-badge {
        top: 0.625rem;
        right: 0.625rem;
        padding: 0.2rem 0.625rem;
        font-size: 0.625rem;
    }

    .pricing-card.current::before {
        font-size: 0.625rem;
        padding: 0.2rem 1rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 1.5rem 0;
    }

    .pricing-header h1 {
        font-size: 1.75rem;
    }

    .pricing-header p {
        font-size: 0.9375rem;
    }

    .pricing-subheader {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.875rem;
        display: block;
        text-align: center;
        line-height: 1.7;
    }

    .pricing-grid {
        gap: 1.25rem;
        padding: 0 0.25rem;
    }

    .pricing-section .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .pricing-card-header {
        padding: 1.25rem 1rem 1rem;
    }

    .pricing-card-header h2 {
        font-size: 1.375rem;
    }

    .pricing-card-header .description {
        font-size: 0.875rem;
    }

    .pricing-price {
        padding: 1.25rem 1rem;
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .pricing-amount .currency {
        font-size: 1.25rem;
    }

    .pricing-features {
        padding: 1rem;
    }

    .pricing-feature {
        padding: 0.5rem 0;
    }

    .pricing-card-footer {
        padding: 1rem;
    }

    .pricing-card-footer .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ===========================================
   FAQ Accordion Styles
   =========================================== */

.pricing-faq {
    max-width: 800px;
    margin: 4rem auto 0;
}

.pricing-faq-title {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-header {
    cursor: pointer;
}

.faq-body {
    padding: 1rem 1.5rem;
    display: none;
}