/* My Plan Page Styles */


.plan-selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Skeleton Loading Styles */
.my-plan-skeleton {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-subscription-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    min-height: 200px;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.skeleton-title {
    width: 200px;
    height: 32px;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-highlight) 50%, var(--skeleton-base) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

.skeleton-badge {
    width: 80px;
    height: 32px;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-highlight) 50%, var(--skeleton-base) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 16px;
}

.skeleton-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skeleton-detail-item {
    height: 60px;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-highlight) 50%, var(--skeleton-base) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 12px;
}

.skeleton-plans-section {
    margin-top: 32px;
}

.skeleton-section-title {
    width: 250px;
    height: 36px;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-highlight) 50%, var(--skeleton-base) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
    margin-bottom: 24px;
}

.skeleton-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.skeleton-plan-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.skeleton-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, var(--skeleton-shimmer) 50%, transparent 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Fade in content when loaded */
#my-plan-content {
    animation: fadeIn 0.5s ease-in;
}

/* Empty State Banner - Compact (≤100px) */
.empty-state-banner {
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    margin-bottom: 32px;
    max-height: 100px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: white;
}

.empty-state-text {
    margin: 0;
    opacity: 0.9;
    font-size: 13px;
}

/* Compact Plan Banner - Redesigned */
.current-plan-banner {
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
    border-radius: 12px;
    padding: 20px 24px;
    color: white;
    margin-bottom: 32px;
}

/* Header - Single row with emoji, name, devices, and badge */
.compact-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.compact-plan-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF !important;
}

.plan-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.plan-name {
    font-weight: 600;
    color: #FFFFFF;
}

.compact-plan-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.compact-plan-badge.expired {
    background: rgba(255, 59, 48, 0.3);
    color: white;
    border: 1px solid rgba(255, 59, 48, 0.5);
}

/* Info Grid - 2 rows, 2 columns */
.compact-plan-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-row.secondary {
    font-size: 13px;
    opacity: 0.85;
}

.info-left {
    flex: 1;
}

.info-right {
    text-align: right;
    white-space: nowrap;
}

.info-right.price {
    font-size: 20px;
    font-weight: 700;
}

/* Compact Actions */
.compact-plan-actions {
    margin-top: 16px;
}

.btn-renew-compact {
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #6D28D9;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-renew-compact:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-renew-compact i {
    width: 18px;
    height: 18px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.plan-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #6D28D9;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.15);
    transform: translateY(-4px);
}

.plan-card.current-plan-card {
    border-color: #6D28D9;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.plan-card.current-plan-card::before {
    content: 'Current Plan';
    position: absolute;
    top: 16px;
    right: 16px;
    background: #6D28D9;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-name {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: #6D28D9;
    margin: 0;
}

.plan-price-currency {
    font-size: 24px;
    font-weight: 600;
}

.plan-price-period {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
}

.plan-price-per-device {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

/* Device Counter */
.device-counter {
    background: #F3F4F6;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.device-counter-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
    display: block;
}

.device-counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.device-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #6D28D9;
    background: white;
    color: #6D28D9;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-btn:hover:not(:disabled) {
    background: #6D28D9;
    color: white;
    transform: scale(1.1);
}

.device-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.device-count {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    min-width: 60px;
    text-align: center;
}

.total-price-display {
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #6D28D9;
}

/* Device Tier Selector (for fixed pricing tiers) */
.device-tier-selector {
    margin: 24px 0;
}

.device-tier-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 12px;
}

.device-tier-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.tier-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tier-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
}

.tier-option:hover .tier-option-content {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.tier-option.selected .tier-option-content {
    border-color: #6D28D9;
    background: #F5F3FF;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.tier-devices {
    font-weight: 600;
    color: #1F2937;
    font-size: 15px;
}

.tier-price {
    font-weight: 700;
    color: #6D28D9;
    font-size: 18px;
}

.tier-per-device {
    font-size: 12px;
    color: #6B7280;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

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

.plan-features i {
    color: #10B981;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-features .feature-disabled i {
    color: #EF4444;
}

.plan-features span {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.5;
}

/* Select Plan Button */
.select-plan-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #6D28D9;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-plan-btn:hover {
    background: #5B21B6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.select-plan-btn:disabled,
.select-plan-btn.current {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Old subscription styles removed - using compact design above */

/* Billing History */
.billing-history-section {
    background: var(--card-bg, white);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    border: 2px solid var(--border-color, #E5E7EB);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.billing-history-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color, #1F2937);
    margin: 0 0 24px 0;
}

.billing-history-title i {
    width: 24px;
    height: 24px;
    color: #6D28D9;
}

.billing-table-container {
    overflow-x: auto;
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table thead {
    background: var(--bg-tertiary, #F9FAFB);
}

.billing-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color, #E5E7EB);
}

.billing-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #F3F4F6);
    color: var(--text-primary, #4B5563);
    font-size: 14px;
}

.billing-table tbody tr:hover {
    background: var(--table-row-hover, #F9FAFB);
}

.transaction-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-failed {
    background: #FEE2E2;
    color: #991B1B;
}

.status-refunded {
    background: #E0E7FF;
    color: #3730A3;
}

.no-billing-history {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary, #9CA3AF);
}

.no-billing-history i {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-billing-history p {
    color: var(--text-secondary, #6B7280);
}

.no-billing-history p {
    margin: 0;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .compact-plan-badge {
        align-self: flex-start;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .info-right {
        text-align: left;
    }
    
    .billing-table {
        font-size: 12px;
    }
    
    .billing-table th,
    .billing-table td {
        padding: 10px 8px;
    }
}


/* ========================================
   CONVERSION-OPTIMIZED PRICING DESIGN
   ======================================== */

/* Plans Container - Side by Side */
#plans-container {
    display: flex !important;
    gap: 24px;
    margin-bottom: 32px;
}

/* Conversion Plan Card */
.conversion-plan-card {
    flex: 1;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.conversion-plan-card:hover {
    border-color: #6D28D9;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.12);
}

/* Plan Header */
.conversion-plan-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.conversion-plan-name {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.conversion-plan-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Tier Grid - 3 Tiers Visible */
.conversion-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

/* Tier Card */
.conversion-tier-card {
    position: relative;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.conversion-tier-card:hover {
    border-color: #6D28D9;
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

.conversion-tier-card.selected {
    border-color: #6D28D9;
    background: rgba(109, 40, 217, 0.05);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

/* Most Popular Badge */
.conversion-tier-card.most-popular {
    border-color: #F59E0B;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.most-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* Tier Card Header */
.tier-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    min-height: 20px;
}

.tier-card-devices {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
}

/* Tier Card Price */
.tier-card-price {
    margin-bottom: 4px;
}

.tier-card-currency {
    font-size: 18px;
    font-weight: 600;
    color: #6D28D9;
    vertical-align: top;
}

.tier-card-amount {
    font-size: 36px;
    font-weight: 800;
    color: #6D28D9;
    line-height: 1;
}

.tier-card-period {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.tier-card-per-device {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 12px;
}

/* Tier Card CTA */
.tier-card-cta {
    width: 100%;
    padding: 10px 16px;
    background: white;
    color: #6D28D9;
    border: 2px solid #6D28D9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-card-cta:hover {
    background: #6D28D9;
    color: white;
}

.tier-card-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.conversion-tier-card.most-popular .tier-card-cta {
    background: #6D28D9;
    color: white;
    border-color: #6D28D9;
}

.conversion-tier-card.most-popular .tier-card-cta:hover {
    background: #5B21B6;
    border-color: #5B21B6;
}

/* Feature List */
.conversion-plan-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.conversion-plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #1F2937;
}

.conversion-plan-features li:last-child {
    border-bottom: none;
}

.feature-icon-check,
.feature-icon-minus {
    flex-shrink: 0;
}

.feature-excluded {
    opacity: 0.5;
}

.feature-excluded span {
    text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .conversion-tier-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .conversion-tier-card {
        padding: 20px 16px;
    }
}

@media (max-width: 768px) {
    #plans-container {
        flex-direction: column;
    }
    
    .conversion-plan-name {
        font-size: 28px;
    }
    
    .tier-card-amount {
        font-size: 32px;
    }
}

/* Accessibility - Focus States */
.conversion-tier-card:focus-within {
    outline: 3px solid #6D28D9;
    outline-offset: 2px;
}

.tier-card-cta:focus {
    outline: 3px solid #6D28D9;
    outline-offset: 2px;
}


/* ========================================
   INVOICE STYLES
   ======================================== */

/* View Invoice Button */
.btn-view-invoice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #6D28D9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-invoice:hover {
    background: #5B21B6;
    transform: translateY(-1px);
}

.btn-view-invoice i {
    width: 14px;
    height: 14px;
}

/* Invoice Modal */
.invoice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.invoice-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.invoice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
}

.invoice-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

.invoice-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #6B7280;
    transition: all 0.2s ease;
}

.invoice-close-btn:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.invoice-close-btn i {
    width: 20px;
    height: 20px;
}

/* Invoice Container */
.invoice-container {
    padding: 32px;
    background: white;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #6D28D9;
}

.invoice-logo {
    height: 50px;
    width: auto;
}

.invoice-title {
    font-size: 32px;
    font-weight: 800;
    color: #6D28D9;
    letter-spacing: 2px;
}

/* Invoice Info */
.invoice-info {
    margin-bottom: 24px;
}

.invoice-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.invoice-label {
    font-weight: 600;
    color: #6B7280;
}

.invoice-value {
    font-weight: 500;
    color: #1F2937;
}

/* Invoice Parties */
.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
}

.invoice-party-title {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.invoice-party-name {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.invoice-party-email {
    font-size: 14px;
    color: #6B7280;
}

/* Invoice Items Table */
.invoice-items {
    margin-bottom: 32px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th {
    background: #6D28D9;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoice-table th:first-child {
    border-radius: 8px 0 0 0;
}

.invoice-table th:last-child {
    border-radius: 0 8px 0 0;
    text-align: right;
}

.invoice-table td {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    color: #4B5563;
    font-size: 14px;
}

.invoice-table tbody td:last-child {
    text-align: right;
}

.invoice-table tfoot td {
    padding: 16px;
    background: #F9FAFB;
    font-size: 16px;
}

.invoice-table tfoot td:first-child {
    border-radius: 0 0 0 8px;
}

.invoice-table tfoot td:last-child {
    border-radius: 0 0 8px 0;
    text-align: right;
    color: #6D28D9;
}

/* Invoice Footer */
.invoice-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.invoice-footer p {
    margin: 0 0 8px 0;
    color: #6B7280;
    font-size: 14px;
}

.invoice-footer .invoice-contact {
    font-size: 12px;
    color: #9CA3AF;
}

/* Invoice Actions */
.invoice-actions {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: center;
}

.btn-download-invoice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #6D28D9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-invoice:hover {
    background: #5B21B6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.btn-download-invoice i {
    width: 18px;
    height: 18px;
}

/* Responsive Invoice */
@media (max-width: 640px) {
    .invoice-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .invoice-container {
        padding: 20px;
    }
    
    .invoice-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .invoice-title {
        font-size: 24px;
    }
    
    .invoice-parties {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .invoice-table th,
    .invoice-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Dark Mode Support for Invoice */
[data-theme="dark"] .invoice-modal-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .invoice-modal-header {
    border-color: var(--border-color);
}

[data-theme="dark"] .invoice-modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .invoice-close-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .invoice-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .invoice-container {
    background: var(--bg-secondary);
}

[data-theme="dark"] .invoice-value {
    color: var(--text-primary);
}

[data-theme="dark"] .invoice-parties {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .invoice-party-name {
    color: var(--text-primary);
}

[data-theme="dark"] .invoice-table td {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .invoice-table tfoot td {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .invoice-footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .invoice-actions {
    border-color: var(--border-color);
}
