/* ========================================
   MAIN ACCOUNT PAGE STYLES
   ======================================== */

/* Main Wrapper */
.cfp-my-account-wrapper {
    display: flex !important;
    min-height: 100vh !important;
    background: #FFFFFF !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    position: relative !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.cfp-account-content {
    background-color: #FFFFFF !important;
}

/* No License Message Styles */
.cfp-no-license-message {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin: 20px 0;
}

.cfp-no-license-icon {
    margin-bottom: 24px;
}

.cfp-no-license-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.cfp-no-license-message p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cfp-no-license-message .cfp-btn-primary-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cfp-no-license-message .cfp-btn-primary-profile:hover {
    background: #4888E8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Mobile Menu Toggle */
.cfp-mobile-menu-toggle {
    display: none !important;
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: #4888E8 !important;
    border-radius: 8px !important;
    z-index: 1002 !important;
    cursor: pointer !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.cfp-mobile-menu-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: white !important;
    transition: all 0.3s ease !important;
}

.cfp-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.cfp-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.cfp-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Sidebar */
.cfp-account-sidebar {
    width: 280px !important;
    background: #ffffff !important;
    padding: 48px 32px !important;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
    max-height: 700px !important;
}

.cfp-account-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 40px 0 !important;
    color: #333436 !important;
    line-height: 1.2 !important;
}

.cfp-account-title .cfp-accent {
    color: #4888E8 !important;
}

.cfp-account-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: auto !important;
    flex: 1 !important;
}

.cfp-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.cfp-nav-text {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.cfp-nav-item:hover {
    background: #f3f4f6 !important;
    color: #333436 !important;
}

.cfp-nav-item.active {
    background: #e7efff !important;
    color: #4888E8 !important;
    box-shadow: inset 0 0 0 2px rgba(43, 110, 242, 0.15) !important;
}

.cfp-nav-item img {
    flex-shrink: 0 !important;
}

.cfp-btn-logout-profile {
    width: 100% !important;
    padding: 14px 24px !important;
    background: #E51B1B !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 24px !important;
}

.cfp-btn-logout-profile:hover {
    background: #E51B1B !important;
    transform: translateY(-1px) !important;
}

/* Content Area */
.cfp-account-content {
    flex: 1 !important;
    padding: 48px 56px !important;
    max-width: calc(80% - 280px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cfp-content-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #333436 !important;
    margin: 0 0 32px 0 !important;
    line-height: 1.3 !important;
}

.cfp-tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease !important;
}

.cfp-tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0 !important;
        transform: translateY(10px) !important;
    }

    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* License Section */
.cfp-license-key-display {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 20px !important;
    background: linear-gradient(90deg, #92BEFF1A 0%, #92BEFF1A 100%) !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    border: 1px solid #d9e4ff !important;
    flex-wrap: wrap !important;
}

.cfp-masked-key {
    font-family: 'Courier New', monospace !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #4888E8 !important;
    letter-spacing: 1px !important;
    flex: 1 !important;
    min-width: 200px !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

.cfp-btn-primary-profile {
    background-color: #4888E8 !important;
    width: 100% !important;
    max-width: 300px !important;
}

.cfp-btn-icon-view {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 6px !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.cfp-btn-icon-view:hover {
    background: #e5e7eb !important;
    color: #333436 !important;
}

/* License Status Card */
.cfp-license-status-card {
    background: #ffffff !important;
    border: 2px solid #09B125 !important;
    border-radius: 24px !important;
    padding: 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 20px 50px rgba(16, 24, 64, 0.08) !important;
    overflow: hidden !important;
}

.cfp-license-status-card.inactive {
    border-color: #34C759 !important;
}

.cfp-status-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.cfp-status-badge {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #0fad5c !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.cfp-status-badge.inactive {
    color: #34C759 !important;
}

.cfp-status-badge svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.cfp-expiry {
    text-align: right !important;
    font-size: 14px !important;
    color: #000000 !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
}

.cfp-expiry strong {
    color: #09B125 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    word-break: break-word !important;
}

.cfp-status-message {
    color: #000000 !important;
    margin: 0 0 24px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

/* Plan Info */
.cfp-plan-info {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 40px !important;
    margin-top: 24px !important;
    flex-wrap: wrap !important;
}

.cfp-plan-details-column {
    flex: 1 !important;
    min-width: 200px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.cfp-plan-details-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
}

.cfp-plan-icon-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cfp-pro-icon {
    width: 40px !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.cfp-plan-details-content h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #333436 !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
}

.cfp-plan-price-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.cfp-price {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #4888E8 !important;
    line-height: 1 !important;
}

.cfp-plan-type {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.cfp-plan-features-column {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 200px !important;
    padding: 20px !important;
    border-radius: 12px !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
}

.cfp-feature {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 14px !important;
    color: #333436 !important;
    font-weight: 500 !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
}

.cfp-feature img {
    flex-shrink: 0 !important;
}

/* Available Plans Section */
.cfp-available-plans-section {
    margin: 32px 0;
    padding: 32px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.cfp-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.cfp-section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

/* Grid Layout - 2 Plans per row */
.cfp-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.cfp-plan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.cfp-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    z-index: 5;
}

.cfp-plan-card.highlighted {
    border: 2px solid #3b82f6;
    background: #eff6ff;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

/* Vertical layout for Content inside Card (Standard Pricing Card) */
.cfp-plan-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* Vertical stack inside card */
    gap: 16px;
    flex: 1;
    text-align: left;
}

/* Extra padding for badge */
.cfp-plan-card.highlighted .cfp-plan-card-body,
.cfp-plan-card.cfp-current-plan-card .cfp-plan-card-body {
    padding-top: 32px;
}

.cfp-plan-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}

.cfp-plan-card-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cfp-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.cfp-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.cfp-price-period {
    font-size: 14px;
    color: #6b7280;
}

.cfp-monthly-equivalent {
    font-size: 11px;
    color: #059669;
    background: #ecfdf5;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    align-self: flex-start;
}

/* Features List */
.cfp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Vertical list */
    gap: 12px;
    flex: 1;
}

.cfp-plan-features li {
    padding: 0;
    color: #4b5563;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.cfp-feature-tick {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Action Button */
.cfp-plan-action {
    margin-top: auto;
    width: 100%;
}

.cfp-btn-upgrade {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #4888E8;
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cfp-btn-upgrade:hover {
    background: #3672cb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cfp-btn-upgrade.disabled {
    background: #e5e7eb;
    color: #9ca3af !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Badge Design */
.cfp-most-popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    transform: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-left-radius: 16px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.cfp-most-popular-badge.cfp-current-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Current Plan Card */
.cfp-plan-card.cfp-current-plan-card {
    border: 2px solid #10b981;
    background: #f0fdf4;
}

.cfp-plan-card.cfp-current-plan-card .cfp-price-amount,
.cfp-plan-card.cfp-current-plan-card .cfp-plan-card-body h4 {
    color: #047857;
}

.cfp-plan-card.cfp-current-plan-card .cfp-btn-upgrade {
    background: #10b981;
}

.cfp-plan-card.cfp-current-plan-card .cfp-btn-upgrade:hover {
    background: #059669;
}

/* Note Section */
.cfp-plan-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    margin-top: 20px;
}

.cfp-plan-note svg {
    color: #d97706;
    flex-shrink: 0;
}

.cfp-plan-note span {
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .cfp-plan-card-body {
        gap: 16px;
    }

    .cfp-plan-features {
        margin: 8px 0;
    }
}

/* Help Section */
.cfp-help-section {
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.cfp-help-text {
    flex: 1 !important;
    min-width: 200px !important;
}

.cfp-help-text h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 4px 0 !important;
    color: #333436 !important;
    line-height: 1.4 !important;
}

.cfp-help-text p {
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.cfp-btn-contact {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: #4888E8 !important;
    color: white !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.cfp-btn-contact:hover {
    background: #4888E8 !important;
    transform: translateY(-1px) !important;
}

/* Invoices Table */
.cfp-invoices-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 24px !important;
}

.cfp-invoices-table {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    min-width: 600px !important;
}

.cfp-invoices-table table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.cfp-invoice-number {
    font-weight: 600 !important;
    color: #111827 !important;
    word-break: break-all !important;
}

.cfp-invoice-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    /* FIXED */
    margin-left: -20px !important;
}

.cfp-empty-row td {
    text-align: center !important;
    padding: 32px 0 !important;
    color: #6b7280 !important;
}

.cfp-invoices-table thead {
    background: #F7F7FC !important;
}

.cfp-invoices-table th {
    padding: 16px 20px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #333436 !important;
    font-size: 14px !important;
    border: none !important;
    white-space: nowrap !important;
}

.cfp-invoices-table td {
    padding: 16px 20px !important;
    color: #6b7280 !important;
    background: #FFFFFF !important;
    border: none !important;
    word-break: break-word !important;
}

.cfp-invoices-list-data {
    font-weight: 200 !important;
}

.cfp-action-btn {
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    border-radius: 10px !important;
    color: #4b5ed2 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.receipt-icon-big img {
    width: 30px !important;
    height: 30px !important;
}

.license-icon-big img {
    width: 30px !important;
    height: 30px !important;
}

/* Downloads List */
.cfp-downloads-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
}

.cfp-download-item {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.cfp-download-info {
    flex: 1 !important;
    min-width: 200px !important;
}

.cfp-download-info h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 4px 0 !important;
    color: #333436 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
}

.cfp-version {
    font-size: 14px !important;
    color: #6b7280 !important;
}

.cfp-btn-download-file {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: #4888E8 !important;
    color: white !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.cfp-btn-download-file:hover {
    background: #4888E8 !important;
    transform: translateY(-1px) !important;
}

.cfp-last-updated {
    text-align: right !important;
    color: #9ca3af !important;
    font-size: 13px !important;
}

/* Profile Form */
.cfp-profile-form {
    background: white !important;
    border-radius: 12px !important;
    padding: 28px !important;
    max-width: 600px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cfp-form-group {
    margin-bottom: 20px !important;
    width: 100% !important;
}

.cfp-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 900 !important;
    color: #333436 !important;
    font-size: 14px !important;
}

.cfp-form-group input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.cfp-form-group input:focus {
    outline: none !important;
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.cfp-readonly-input {
    background: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.cfp-password-field {
    position: relative !important;
}

.cfp-password-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.cfp-btn-save-profile,
button.cfp-btn-primary-profile {
    display: block;
    width: 100% !important;
    max-width: 320px;
    height: 48px !important;
    background: #4888E8 !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin: 20px auto 0;
    box-shadow: 0 6px 20px rgba(72, 136, 232, 0.3);
    transition: 0.3s ease;
}

.cfp-btn-save-profile:hover,
button.cfp-btn-primary-profile:hover {
    background: #3a78d8 !important;
    transform: translateY(-2px);
}

/* License Key Popup Styles */
.cfp-license-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.cfp-license-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: cfpOverlayFadeIn 0.3s ease-out;
}

@keyframes cfpOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cfp-license-popup-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cfp-license-popup-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: cfpPopupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes cfpPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cfp-popup-header {
    display: flex;
    align-items: flex-start;
    padding: 28px 32px 24px;
    background: #4888E8;
    color: white;
    position: relative;
    gap: 16px;
}

.cfp-popup-header-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfp-popup-header-icon svg {
    color: white;
}

.cfp-popup-header-text {
    flex: 1;
    min-width: 0;
}

.cfp-popup-header h3 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.cfp-popup-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.4;
}

.cfp-popup-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 10px;
    cursor: pointer;
    color: white;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-top: -4px;
}

.cfp-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.cfp-popup-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.cfp-user-info-section {
    padding: 24px 32px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cfp-user-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cfp-info-icon {
    background: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.cfp-info-icon svg {
    color: #667eea;
    width: 20px;
    height: 20px;
}

.cfp-info-content {
    flex: 1;
    min-width: 0;
}

.cfp-info-content label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.cfp-info-value {
    font-size: 1rem;
    color: #111827;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-all;
}

.cfp-license-key-section {
    padding: 32px;
    background: white;
}

.cfp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cfp-section-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.cfp-section-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cfp-license-key-display-popup {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cfp-license-key-display-popup:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.cfp-license-key-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cfp-license-key-text {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 1rem;
    color: #111827;
    line-height: 1.6;
    word-break: break-all;
    word-wrap: break-word;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0;
    background: transparent;
    border: none;
    min-height: 24px;
}

.cfp-key-action-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: #6b7280;
    width: 44px;
    height: 44px;
}

.cfp-key-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
    transform: translateY(-1px);
}

.cfp-key-action-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.cfp-key-action-btn.copied .copy-icon {
    display: none;
}

.cfp-key-action-btn.copied .check-icon {
    display: block;
}

.cfp-license-instructions {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.cfp-license-instructions h5 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #0369a1;
    font-weight: 700;
}

.cfp-license-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.cfp-license-instructions li {
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 6px;
}

.cfp-license-instructions li:last-child {
    margin-bottom: 0;
}

.cfp-support-section {
    padding: 24px 32px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cfp-support-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cfp-support-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cfp-support-icon svg {
    color: white;
}

.cfp-support-text {
    flex: 1;
    min-width: 0;
}

.cfp-support-text h5 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #111827;
    font-weight: 700;
}

.cfp-support-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.cfp-btn-support {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 20px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cfp-btn-support:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    transform: translateY(-1px);
}

.cfp-popup-footer {
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
    background: white;
    text-align: right;
}

.cfp-popup-body::-webkit-scrollbar {
    width: 6px;
}

.cfp-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cfp-popup-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cfp-popup-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

body.cfp-popup-open {
    overflow: hidden;
}

/* ========================================
   RECEIPT POPUP STYLES - UPDATED
   ======================================== */

.cfp-receipt-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.cfp-receipt-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: cfpReceiptOverlayFadeIn 0.3s ease-out;
}

@keyframes cfpReceiptOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cfp-receipt-popup-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.cfp-receipt-popup-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: cfpReceiptSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

@keyframes cfpReceiptSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cfp-receipt-header {
    padding: 20px 20px 0;
    background: #ffffff;
    position: relative;
}

.cfp-receipt-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 10;
}

.cfp-receipt-close-btn:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.cfp-receipt-body {
    padding: 0 30px 30px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(95vh - 60px);
}

/* Thank You Section - Now part of scrollable content */
.cfp-receipt-thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 30px 0 40px;
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 16px;
    color: white;
}

.cfp-receipt-check-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 10px;
}

.cfp-receipt-check-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cfp-receipt-thank-you h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.cfp-receipt-thank-you p {
    margin: 0;
    font-size: 16px;
    color: #000000;
    font-weight: 400;
    max-width: 300px;
    line-height: 1.5;
}

.cfp-receipt-company {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    gap: 20px;
}

.cfp-company-info {
    flex: 1;
}

.cfp-company-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #4888E8 !important;
}

.cfp-company-info p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.cfp-company-logo {
    flex-shrink: 0;
}

.cfp-company-logo img {
    display: block;
    max-width: 120px;
    height: auto;
}

.cfp-receipt-order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.cfp-label-green {
    font-size: 16px;
    font-weight: 700;
    color: #09B125;
    display: inline-block;
}

.cfp-receipt-customer {
    margin-bottom: 24px;
}

.cfp-customer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cfp-customer-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cfp-customer-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

.cfp-receipt-subscription-card {
    background: #4888E8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.cfp-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cfp-subscription-header h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.cfp-billing-cycle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.cfp-plan-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    display: inline-block;
}

.cfp-plan-validity {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.cfp-subscription-details {
    margin-bottom: 16px;
}

.cfp-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: white;
}

.cfp-subscription-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.cfp-receipt-payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    gap: 16px;
}

.cfp-payment-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cfp-payment-card-info img {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.cfp-payment-card-info span {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    font-family: 'Courier New', monospace;
}

.cfp-next-billing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cfp-next-billing span:first-child {
    font-size: 12px;
    color: #6b7280;
}

.cfp-next-billing span:last-child {
    font-size: 14px;
    font-weight: 900;
    color: #000000;
}

.cfp-receipt-expiry {
    text-align: left;
    padding: 0 16px 16px;
    margin-bottom: 16px;
}

.cfp-receipt-expiry span {
    font-size: 13px;
    color: #6b7280;
}

.cfp-receipt-expiry span span {
    font-weight: 700;
    color: #000000;
}

.cfp-receipt-success-message {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.cfp-receipt-success-message p {
    margin: 0;
    font-size: 13px;
    color: #065f46;
    line-height: 1.5;
}

/* Footer Buttons - Now inside scrollable content */
.cfp-receipt-footer {
    padding: 20px 0 0;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cfp-btn-download-receipt,
.cfp-btn-continue-receipt {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cfp-btn-download-receipt,
.cfp-btn-download-receipt:visited,
.cfp-btn-download-receipt:active,
.cfp-btn-download-receipt:focus {
    background: #4888E8 !important;
    color: white !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.cfp-btn-download-receipt:hover {
    background: #3a78d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 136, 232, 0.3);
}

.cfp-btn-continue-receipt {
    background: #f3f4f6;
    color: #111827;
}

.cfp-btn-continue-receipt:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.cfp-receipt-branding {
    padding: 20px 30px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.cfp-receipt-branding h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0369a1;
}

.cfp-receipt-branding p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #0c4a6e;
}

.cfp-copyright {
    font-size: 11px !important;
    color: #64748b !important;
}

.cfp-receipt-body::-webkit-scrollbar {
    width: 6px;
}

.cfp-receipt-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cfp-receipt-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cfp-receipt-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

body.cfp-receipt-popup-open {
    overflow: hidden;
}

/* Print Styles for PDF - UPDATED */
@media print {
    body * {
        visibility: hidden;
    }

    .cfp-receipt-popup,
    .cfp-receipt-popup * {
        visibility: visible !important;
    }

    .cfp-receipt-popup {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: white !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .cfp-receipt-popup-overlay,
    .cfp-receipt-popup-container {
        position: static !important;
        display: block !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .cfp-receipt-popup-content {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        page-break-inside: avoid !important;
    }

    .cfp-receipt-header,
    .cfp-receipt-close-btn,
    .cfp-receipt-footer {
        display: none !important;
    }

    .cfp-receipt-body {
        max-height: none !important;
        overflow: visible !important;
        padding: 20mm !important;
        display: block !important;
        height: auto !important;
        page-break-inside: avoid !important;
    }

    /* Optimize for single page printing */
    .cfp-receipt-thank-you {
        page-break-after: avoid !important;
        margin-top: 0 !important;
    }

    .cfp-receipt-company,
    .cfp-receipt-order-info,
    .cfp-receipt-customer,
    .cfp-receipt-subscription-card,
    .cfp-receipt-payment-method,
    .cfp-receipt-success-message {
        page-break-inside: avoid !important;
        margin-bottom: 15px !important;
    }

    /* Ensure colors print correctly */
    .cfp-receipt-thank-you {
        background: #667eea !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: white !important;
    }

    .cfp-receipt-subscription-card {
        background: #4888E8 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: white !important;
    }

    .cfp-receipt-success-message {
        background: #d1fae5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        border-color: #6ee7b7 !important;
        color: #065f46 !important;
    }

    /* Remove all hover effects */
    .cfp-btn-download-receipt:hover,
    .cfp-btn-continue-receipt:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Force single page */
    @page {
        margin: 10mm;
        size: A4 portrait;
    }

    html,
    body {
        height: auto !important;
        overflow: visible !important;
    }
}

/* Subscriptions Tab Styles */
.cfp-subscriptions-container {
    margin-top: 20px;
}

.cfp-subscriptions-loading {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.cfp-subscriptions-loading .cfp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4888E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.cfp-subscriptions-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.cfp-subscriptions-empty .cfp-empty-icon {
    margin-bottom: 20px;
}

.cfp-subscriptions-empty h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 10px;
}

.cfp-subscriptions-empty p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 16px;
}

.cfp-subscriptions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cfp-subscriptions-count {
    font-size: 16px;
    color: #4b5563;
    font-weight: 500;
}

.cfp-btn-refresh {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cfp-btn-refresh:hover {
    background: transparent;
    border-color: #d1d5db;
    color: #4b5563;
}

.cfp-subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cfp-subscription-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.cfp-subscription-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cfp-subscription-card.active {
    border-left: 4px solid #10b981;
}

.cfp-subscription-card.pending {
    border-left: 4px solid #f59e0b;
}

.cfp-subscription-card.cancelled {
    border-left: 4px solid #ef4444;
    opacity: 0.8;
}

.cfp-subscription-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.cfp-subscription-status {
    flex: 1;
}

.cfp-subscription-actions {
    display: flex;
    gap: 8px;
}

.cfp-action-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cfp-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.cfp-subscription-card-body {
    margin-bottom: 20px;
}

.cfp-subscription-plan h4 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 5px;
}

.cfp-subscription-price {
    font-size: 24px;
    font-weight: 700;
    color: #4888E8;
    margin-bottom: 15px;
}

.cfp-subscription-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfp-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cfp-detail-item:last-child {
    border-bottom: none;
}

.cfp-detail-label {
    color: #6b7280;
    font-size: 14px;
}

.cfp-detail-value {
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
}

.cfp-subscription-card-footer {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.cfp-btn-cancel {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cfp-btn-cancel:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

.cfp-btn-view-razorpay {
    background: #4888E8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: all 0.2s;
}

.cfp-btn-view-razorpay:hover {
    background: #3b78d7;
    color: white;
}

.cfp-subscriptions-footer {
    margin-top: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.cfp-subscriptions-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #0369a1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Subscription Details Modal */
.cfp-subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.cfp-subscription-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cfp-subscription-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cfp-subscription-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cfp-subscription-modal-header {
    display: flex;
    align-items: center;
    padding: 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.cfp-subscription-modal-icon {
    margin-right: 12px;
    color: #4888E8;
}

.cfp-subscription-modal-text {
    flex: 1;
}

.cfp-subscription-modal-text h3 {
    font-size: 20px;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.cfp-subscription-modal-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.cfp-subscription-modal-close-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cfp-subscription-modal-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.cfp-subscription-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.cfp-subscription-details-content {
    background: white;
}

.cfp-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cfp-details-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #4888E8;
}

.cfp-details-section h4 {
    margin-top: 0;
    color: #4888E8;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfp-details-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cfp-details-row:last-child {
    border-bottom: none;
}

.cfp-details-label {
    font-weight: 500;
    color: #4b5563;
    font-size: 14px;
}

.cfp-details-value {
    color: #1f2937;
    font-size: 14px;
    text-align: right;
}

.cfp-details-value code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.cfp-invoices-mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cfp-invoices-mini-table th {
    background: #f3f4f6;
    padding: 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.cfp-invoices-mini-table td {
    padding: 10px;
    font-size: 12px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.cfp-invoices-mini-table tr:last-child td {
    border-bottom: none;
}

.cfp-subscription-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.cfp-btn-cancel-subscription {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cfp-btn-cancel-subscription:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

/* Cancel Confirmation Modal */
.cfp-cancel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.cfp-cancel-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cfp-cancel-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cfp-cancel-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cfp-cancel-modal-header {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.cfp-cancel-modal-icon {
    color: #dc2626;
    margin-bottom: 16px;
}

.cfp-cancel-modal-text h3 {
    font-size: 24px;
    color: #dc2626;
    margin: 0 0 8px 0;
}

.cfp-cancel-modal-subtitle {
    color: #7f1d1d;
    font-size: 14px;
    margin: 0;
}

.cfp-cancel-modal-body {
    padding: 24px;
}

.cfp-cancel-options {
    margin-bottom: 24px;
}

.cfp-cancel-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cfp-cancel-option:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.cfp-cancel-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 4px;
}

.cfp-cancel-option label {
    flex: 1;
    cursor: pointer;
}

.cfp-cancel-option strong {
    display: block;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 16px;
}

.cfp-cancel-description {
    display: block;
    color: #6b7280;
    font-size: 14px;
}

.cfp-cancel-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fffbeb;
    border-radius: 12px;
    border: 1px solid #fbbf24;
}

.cfp-cancel-warning svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.cfp-cancel-warning span {
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.cfp-cancel-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.cfp-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.cfp-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.cfp-btn-danger {
    background: #dc2626;
    color: white;
    border: 1px solid #dc2626;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.cfp-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.cfp-cancel-success {
    text-align: center;
    padding: 40px 20px;
}

.cfp-cancel-success svg {
    margin-bottom: 24px;
}

.cfp-cancel-success h3 {
    color: #10b981;
    font-size: 24px;
    margin-bottom: 12px;
}

.cfp-cancel-success p {
    color: #6b7280;
    line-height: 1.5;
}

.cfp-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .cfp-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cfp-account-content {
        padding: 40px 30px !important;
        max-width: calc(100% - 280px) !important;
    }

    .cfp-plan-info {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .cfp-plan-features-column {
        width: 100% !important;
        margin-top: 20px !important;
    }
}

@media (max-width: 768px) {
    .cfp-mobile-menu-toggle {
        display: flex !important;
    }

    .cfp-my-account-wrapper {
        flex-direction: column !important;
    }

    .cfp-account-sidebar {
        width: 280px !important;
        position: fixed !important;
        left: -280px !important;
        top: 0 !important;
        height: 100vh !important;
        transition: left 0.3s ease !important;
        z-index: 1001 !important;
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.15) !important;
    }

    .cfp-account-sidebar.mobile-open {
        left: 0 !important;
    }

    body.cfp-mobile-menu-active {
        overflow: hidden !important;
    }

    .cfp-account-content {
        padding: 80px 20px 40px 20px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .cfp-content-title {
        font-size: 24px !important;
        margin-bottom: 24px !important;
    }

    .cfp-license-key-display {
        padding: 10px 16px !important;
    }

    .cfp-masked-key {
        font-size: 14px !important;
        min-width: 150px !important;
    }

    .cfp-license-status-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .cfp-status-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .cfp-expiry {
        text-align: left !important;
        width: 100% !important;
    }

    .cfp-plan-info {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .cfp-plan-details-column {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .cfp-plan-details-content {
        gap: 12px !important;
    }

    .cfp-plan-details-content h3 {
        font-size: 20px !important;
    }

    .cfp-price {
        font-size: 24px !important;
    }

    .cfp-plan-features-column {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
    }

    .cfp-feature {
        font-size: 13px !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .cfp-feature:last-child {
        border-bottom: none !important;
    }

    .cfp-plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cfp-help-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .cfp-download-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .cfp-btn-download-file {
        width: 100% !important;
        justify-content: center !important;
    }

    .cfp-profile-form {
        padding: 20px !important;
    }

    .cfp-form-group input {
        padding: 10px 14px !important;
    }

    .cfp-btn-primary-profile {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }

    /* Receipt Popup Mobile */
    .cfp-receipt-popup-container {
        padding: 16px;
    }

    .cfp-receipt-popup-content {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }

    .cfp-receipt-header {
        padding: 32px 20px 24px;
    }

    .cfp-receipt-body {
        padding: 0 20px 20px;
        max-height: calc(95vh - 320px);
    }

    .cfp-receipt-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .cfp-btn-download-receipt,
    .cfp-btn-continue-receipt {
        width: 100%;
    }

    .cfp-receipt-company {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfp-company-logo {
        margin-top: 12px;
    }

    .cfp-receipt-payment-method {
        flex-direction: column;
        align-items: stretch;
    }

    .cfp-next-billing {
        align-items: flex-start;
    }

    .cfp-receipt-branding {
        padding: 16px 20px;
    }

    /* License Popup Mobile */
    .cfp-license-popup-container {
        padding: 16px;
    }

    .cfp-license-popup-content {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }

    .cfp-popup-header {
        padding: 24px;
        flex-wrap: wrap;
    }

    .cfp-user-info-section {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .cfp-license-key-section,
    .cfp-support-section,
    .cfp-popup-footer {
        padding: 20px;
    }

    .cfp-license-key-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cfp-key-action-btn {
        width: 100%;
    }

    .cfp-support-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cfp-btn-support {
        text-align: center;
        justify-content: center;
    }

    .cfp-popup-footer {
        text-align: center;
    }

    .cfp-btn-primary-profile {
        width: 100%;
    }

    .cfp-subscriptions-grid {
        grid-template-columns: 1fr;
    }

    .cfp-subscription-card {
        padding: 16px;
    }

    .cfp-subscription-modal-content,
    .cfp-cancel-modal-content {
        margin: 10px;
        max-height: 85vh;
    }

    .cfp-details-grid {
        grid-template-columns: 1fr;
    }

    .cfp-cancel-modal-footer {
        flex-direction: column;
    }

    .cfp-btn-secondary,
    .cfp-btn-danger {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cfp-account-content {
        padding: 70px 15px 30px 15px !important;
    }

    .cfp-content-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .cfp-license-key-display {
        padding: 8px 12px !important;
        gap: 12px !important;
    }

    .cfp-masked-key {
        font-size: 13px !important;
        min-width: 120px !important;
        letter-spacing: 0.5px !important;
    }

    .cfp-license-status-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .cfp-plan-details-content h3 {
        font-size: 18px !important;
    }

    .cfp-price {
        font-size: 22px !important;
    }

    .cfp-plan-icon-title {
        gap: 8px !important;
    }

    .cfp-pro-icon {
        width: 35px !important;
    }

    .cfp-plan-features-column {
        padding: 0 !important;
    }

    .cfp-feature {
        font-size: 12px !important;
        gap: 8px !important;
    }

    .cfp-feature img {
        width: 20px !important;
        height: 20px !important;
    }

    .cfp-available-plans-section {
        padding: 16px;
    }

    .cfp-section-title {
        font-size: 20px;
    }

    .cfp-price-amount {
        font-size: 24px;
    }

    .cfp-plan-card-header {
        padding: 16px;
    }

    .cfp-plan-card-body {
        padding: 16px;
    }

    .cfp-invoices-table {
        min-width: 400px !important;
    }

    .cfp-invoices-table th,
    .cfp-invoices-table td {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }

    .receipt-icon-big img,
    .license-icon-big img {
        width: 30px !important;
        height: 30px !important;
    }

    .cfp-btn-contact,
    .cfp-btn-download-file {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .cfp-btn-text {
        font-size: 13px !important;
    }

    /* Receipt Popup Small Mobile */
    .cfp-receipt-header {
        padding: 28px 16px 20px;
    }

    .cfp-receipt-body {
        padding: 0 16px 16px;
    }

    .cfp-receipt-thank-you h2 {
        font-size: 24px;
    }

    .cfp-receipt-check-icon {
        width: 70px;
        height: 70px;
        padding: 12px;
    }

    .cfp-receipt-check-icon img {
        width: 45px;
        height: 45px;
    }

    .cfp-company-info h3 {
        font-size: 14px;
    }

    .cfp-company-info p {
        font-size: 12px;
    }

    .cfp-company-logo img {
        max-width: 100px;
    }

    .cfp-receipt-subscription-card {
        padding: 16px;
    }

    .cfp-subscription-header h4 {
        font-size: 16px;
    }

    .cfp-subscription-total {
        font-size: 16px;
    }

    .cfp-receipt-footer {
        padding: 12px 16px;
    }

    /* License Popup Small Mobile */
    .cfp-popup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cfp-popup-header-icon {
        align-self: flex-start;
    }

    .cfp-popup-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .cfp-popup-header-text {
        width: 100%;
    }

    .cfp-popup-body {
        max-height: calc(95vh - 180px);
    }
}

/* Eye Toggle Icons */
#cfp-toggle-key img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 20px !important;
    height: 20px !important;
}

#cfp-toggle-key svg,
#cfp-toggle-key img {
    display: inline-block !important;
}

#cfp-toggle-key {
    background-color: transparent !important;
}

#cfp-toggle-key .eye-open {
    display: inline-block !important;
}

#cfp-toggle-key .eye-closed {
    display: none !important;
}

#cfp-toggle-key.showing .eye-open {
    display: none !important;
}

#cfp-toggle-key.showing .eye-closed {
    display: inline-block !important;
}

/* Tab Icon Styles */
.cfp-nav-item .active-icon,
.cfp-nav-item .inactive-icon {
    transition: opacity 0.2s ease !important;
}

.cfp-nav-item .active-icon {
    display: none !important;
}

.cfp-nav-item .inactive-icon {
    display: block !important;
}

.cfp-nav-item.active .active-icon {
    display: block !important;
}

.cfp-nav-item.active .inactive-icon {
    display: none !important;
}

.cfp-nav-item:not(.active) .active-icon {
    display: none !important;
}

.cfp-nav-item:not(.active) .inactive-icon {
    display: block !important;
}

.cfp-status-text {
    color: #34C759 !important;
}

/* Loading Overlay */
#cfp-loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

.cfp-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #f3f4f6 !important;
    border-top-color: #4F46E5 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg) !important;
    }
}

.cfp-plan-details-column::after {
    content: none !important;
    display: none !important;
}

.cfp-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cfp-status-left {
    display: flex;
    flex-direction: column;
}

.cfp-status-message {
    font-size: 14px;
    color: #333;
    margin-top: 3px !important;
}

/* Remove Underline from Links */
.cfp-account-nav .cfp-nav-item {
    text-decoration: none !important;
}

.cfp-account-nav .cfp-nav-item:hover,
.cfp-account-nav .cfp-nav-item:focus {
    text-decoration: none !important;
}

.cfp-btn-contact,
.cfp-btn-download-file {
    text-decoration: none !important;
}

.cfp-btn-text {
    white-space: nowrap !important;
}

/* Print Styles for PDF */
@media print {

    /* Hide everything initially */
    body * {
        visibility: hidden;
    }

    /* Show only the receipt popup and its content */
    #cfp-receipt-popup,
    #cfp-receipt-popup * {
        visibility: visible;
    }

    /* Reset Body/Html for print */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
        zoom: 90%;
        /* Scale down 90% to prevent cutting/overflow */
        -webkit-print-color-adjust: exact !important;
        /* Print background colors */
        print-color-adjust: exact !important;
    }

    /* Position the popup to take the full page */
    #cfp-receipt-popup {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        z-index: 99999;
        display: block !important;
    }

    .cfp-receipt-popup-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 40px !important;
        /* Standard document padding */
        box-shadow: none !important;
        border: none !important;
        position: static !important;
        transform: none !important;
        background: transparent !important;
    }

    /* Remove internal card styles */
    .cfp-receipt-popup-card {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Hide Header/Footer/Close Button */
    .cfp-receipt-close-btn,
    .cfp-receipt-popup-header,
    .cfp-receipt-footer,
    .cfp-mobile-menu-toggle {
        display: none !important;
    }

    /* Ensure content flows naturally */
    .cfp-receipt-scrollable-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Tighten vertical spacing to fit one page */
    .cfp-receipt-success-section {
        margin-bottom: 20px !important;
        padding-top: 0 !important;
    }

    .cfp-success-icon-wrapper img {
        width: 45px !important;
        /* Smaller icon */
        height: 45px !important;
    }

    .cfp-receipt-success-section h2 {
        font-size: 22px !important;
        /* Slightly smaller title */
        margin: 10px 0 !important;
    }

    .cfp-company-info-row {
        margin-bottom: 20px !important;
        page-break-inside: avoid !important;
    }

    .cfp-receipt-customer-section {
        margin-bottom: 20px !important;
        page-break-inside: avoid !important;
    }

    .cfp-receipt-blue-card {
        margin-top: 15px !important;
        padding: 20px !important;
        page-break-inside: avoid !important;
        background-color: #f0fdf4 !important;
        /* Ensure background prints */
        border: 1px solid #dcfce7 !important;
        /* Add border for definition */
    }

    .cfp-receipt-note-box {
        margin-top: 15px !important;
        page-break-inside: avoid !important;
    }
}

.cfp-mobile-menu-toggle {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 50 !important;
    /* reduced */
}

.cfp-my-account-wrapper {
    position: relative !important;
}

/* Animation for modals */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cfp-subscription-modal-content,
.cfp-cancel-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Status badges */
.cfp-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cfp-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.cfp-status-badge.authenticated {
    background: #dbeafe;
    color: #1e40af;
}

.cfp-status-badge.created {
    background: #f3f4f6;
    color: #4b5563;
}

.cfp-status-badge.halted {
    background: #fef3c7;
    color: #92400e;
}

.cfp-status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.cfp-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.cfp-status-badge.unknown {
    background: #f3f4f6;
    color: #6b7280;
}


#invoices-tab td,
#invoices-tab th {
    white-space: nowrap !important;
}

/* ========================================
   RECEIPT POPUP LAYOUT FIXES
   ======================================== */
.cfp-company-info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

.cfp-company-details {
    flex: 1 !important;
    max-width: 60% !important;
}

.cfp-company-logo-right {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 140px !important;
    /* Constraint width */
    display: flex !important;
    justify-content: flex-end !important;
}

.cfp-company-logo {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    max-height: 60px !important;
    /* Constraint height just in case */
}

.cfp-company-name {
    font-size: 16px !important;
    color: #4888E8 !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

.cfp-company-address {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

/* ========================================
   LICENSE POPUP HEADER STYLES (Blue Header)
   ======================================== */
.cfp-popup-header {
    background-color: #4888E8;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
    /* Desktop uses row layout by default */
}

.cfp-popup-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.cfp-popup-header-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
}

.cfp-popup-header-text {
    flex: 1;
}

.cfp-popup-header h3 {
    color: white !important;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.cfp-popup-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin: 4px 0 0 0;
}

.cfp-popup-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
    flex-shrink: 0;
}

.cfp-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cfp-popup-close-btn svg {
    stroke: white;
    width: 20px;
    height: 20px;
}