/* ==========================================================================
   MY SUBSCRIPTION TAB STYLES - MenuList Application
   Consistent with Menu Generator design
   ========================================================================== */

.my-subscription-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Subscription Header */
.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.subscription-header .header-left h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-header .header-left h1 i {
    color: #d4a574;
}

.subscription-header .header-left .subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.subscription-header .header-right {
    display: flex;
    gap: 10px;
}

/* Refresh Button */
.btn-refresh {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.btn-refresh:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-refresh:active {
    transform: scale(0.95);
}

.btn-refresh i {
    font-size: 1rem;
}

.btn-refresh:hover i {
    animation: spin 1s linear;
}

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

/* Subscription Card - Consistent with generator-panel */
.subscription-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.12), 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Card Header - Consistent with date-section */
.subscription-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-badge {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subscription-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-amount i {
    color: #d4a574;
    font-size: 1.3rem;
}

/* Card Body */
.subscription-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #d4a574;
}

.info-row .label {
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-row .label i {
    color: #d4a574;
}

.info-row .value {
    font-weight: 600;
    color: #1e293b;
}

/* Next Billing Info Row */
.info-row.next-billing {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-left: 4px solid #10b981;
}

.info-row.next-billing .label {
    color: #065f46;
}

.info-row.next-billing .label i {
    color: #10b981;
}

.info-row.next-billing .value {
    color: #065f46;
    font-weight: 700;
}

/* Warning Message */
.warning-message {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    border-radius: 12px;
    color: #92400e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-message i {
    font-size: 1.3rem;
    color: #f59e0b;
}

/* Renewal Warning - blue info style */
.warning-message.renewal-warning {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left-color: #3b82f6;
    color: #1e40af;
    align-items: flex-start;
}

.warning-message.renewal-warning i {
    color: #2563eb;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-message.renewal-warning div {
    flex: 1;
}

.warning-message.renewal-warning strong {
    display: block;
    color: #1e40af;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.warning-message.renewal-warning p {
    margin: 0;
    color: #1e3a8a;
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.card-actions .btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.card-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-actions .btn-primary {
    background: linear-gradient(135deg, #d4a574, #c49464);
    border: none;
    color: white;
}

.card-actions .btn-primary:hover {
    background: linear-gradient(135deg, #c49464, #b48454);
}

/* Subscription Settings Dropdown */
.subscription-settings {
    position: relative;
    margin-top: 15px;
}

.btn-settings {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-settings:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-settings i {
    font-size: 1rem;
}

.settings-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 100;
}

.settings-option {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.settings-option:hover {
    background: #f8fafc;
}

.settings-option.danger {
    color: #ef4444;
}

.settings-option.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.settings-option i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Error Message for Incomplete Subscriptions */
.error-message {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.error-message i {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.error-message div {
    flex: 1;
}

.error-message strong {
    display: block;
    color: #92400e;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.error-message p {
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

.error-message #incomplete-countdown {
    font-weight: 700;
    color: #d97706;
    font-size: 1.1em;
}

/* Past Due Warning - More prominent */
.past-due-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
}

.past-due-warning i {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.past-due-warning div {
    flex: 1;
}

.past-due-warning strong {
    display: block;
    color: #92400e;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.past-due-warning p {
    color: #78350f;
    margin: 0;
    line-height: 1.5;
}

/* Past Due Actions - Side by side buttons */
.past-due-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.past-due-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    min-width: 160px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.past-due-actions .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.past-due-actions .btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.past-due-actions .btn-secondary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
}

.past-due-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
}

.past-due-actions .btn-outline {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.past-due-actions .btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

@media (max-width: 768px) {
    .past-due-actions {
        flex-direction: column;
    }

    .past-due-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Available Plans Section */
.available-plans-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.12), 0 4px 16px rgba(0,0,0,0.06);
}

.available-plans-section .section-header {
    margin-bottom: 30px;
}

.available-plans-section .section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.available-plans-section .section-header h2 i {
    color: #d4a574;
    font-size: 1.4rem;
}

.available-plans-section .section-header .subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Plan Selection UI */
.plans-selection {
    margin-top: 30px;
}

.billing-period-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.period-btn {
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.period-btn.active {
    background: linear-gradient(135deg, #d4a574, #c49464);
    border-color: #d4a574;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.period-btn .discount-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plans-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .plans-grid {
        flex-direction: column;
        align-items: center;
    }
}

.plan-option-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
}

.plan-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-option-card:hover {
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.plan-option-card:hover::before {
    opacity: 1;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plan-name::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    border-radius: 2px;
}

.plan-name .discount-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.plan-price {
    margin-bottom: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.price-currency {
    font-size: 1.1rem;
    color: #64748b;
    margin-left: 4px;
}

.price-period {
    font-size: 0.95rem;
    color: #94a3b8;
}

.price-vat-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

.price-per-month {
    color: #10b981;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-per-month i {
    font-size: 1rem;
}

.savings-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #fbbf24;
}

.savings-badge i {
    color: #f59e0b;
    font-size: 1rem;
}

.plan-description {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 48px;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
}

.plan-features li {
    padding: 12px 0;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.plan-features li:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

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

.plan-features li i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-select-plan {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: auto auto 0 auto;
    background: linear-gradient(135deg, #d4a574, #c49464);
    border: none;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-select-plan:hover {
    background: linear-gradient(135deg, #c49464, #b38454);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.btn-select-plan i {
    font-size: 1.1rem;
}

.no-plans-message {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-plans-message i {
    font-size: 3rem;
    color: #d4a574;
    margin-bottom: 16px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.loading-spinner i {
    font-size: 2rem;
    color: #d4a574;
    margin-right: 12px;
}

/* No Subscription State */
.subscription-card.no-subscription {
    text-align: center;
    padding: 50px 30px;
}

.subscription-card.no-subscription .card-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 20px;
}

.subscription-card.no-subscription h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.subscription-card.no-subscription p {
    color: #64748b;
    margin: 0 0 10px 0;
}

.subscription-card.no-subscription .help-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Invoices Section */
.invoices-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.12), 0 4px 16px rgba(0,0,0,0.06);
}

.invoices-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoices-section h2 i {
    color: #d4a574;
}

.no-invoices {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.no-invoices i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    display: block;
}

.no-invoices p {
    margin: 0;
    font-size: 1rem;
}

/* Invoice List */
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Invoices Pagination */
.invoices-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.invoices-pagination-info {
    font-size: 0.85rem;
    color: #64748b;
}

.invoices-pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoices-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.invoices-page-btn:hover:not(:disabled):not(.active) {
    background: #f1f5f9;
    border-color: #d4a574;
    color: #b8874f;
}

.invoices-page-btn.active {
    background: linear-gradient(135deg, #d4a574, #c49464);
    border-color: transparent;
    color: white;
    cursor: default;
}

.invoices-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.invoice-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #d4a574;
    transition: all 0.3s ease;
}

.invoice-row:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.invoice-info {
    flex: 1;
}

.invoice-number {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-number i {
    color: #d4a574;
    font-size: 0.9rem;
}

.invoice-date {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-date i {
    color: #94a3b8;
}

.invoice-amount {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-amount i {
    color: #d4a574;
}

.invoice-status {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-download-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #d4a574, #c49464);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.invoice-download-btn:hover {
    background: linear-gradient(135deg, #c49464, #b48454);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* ==========================================================================
   BILLING INFO MODAL STYLES
   ========================================================================== */

/* Modal Overlay - Centered on desktop, fullscreen on mobile */
.billing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.billing-modal-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.billing-modal-container .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.billing-modal-container .modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.billing-modal-container .modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.billing-modal-container .billing-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* Mobile: Fullscreen modal */
@media (max-width: 640px) {
    .billing-modal-overlay {
        padding: 0;
    }

    .billing-modal-container {
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
    }

    .billing-modal-container .billing-modal-footer {
        border-radius: 0;
    }
}

.plan-summary-box {
    background: linear-gradient(135deg, #fef7f0, #fdf4eb);
    border: 2px solid #d4a574;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.plan-summary-box h3 {
    margin: 0 0 4px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.plan-price-summary {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.plan-price-summary .vat-info {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #10b981;
}

.billing-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.billing-form .form-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.billing-form .section-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.billing-form .form-control {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.billing-form .form-control:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

/* Field Error State */
.billing-form .form-control.field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.form-error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error-message i {
    font-size: 0.75rem;
}

.billing-form .form-control.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.billing-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.billing-form .form-row.three-cols {
    grid-template-columns: 1fr 100px 1fr;
}

@media (max-width: 600px) {
    .billing-form .form-row,
    .billing-form .form-row.three-cols {
        grid-template-columns: 1fr;
    }
}

/* Customer Type Radio Cards */
.customer-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.customer-type-options.two-options {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 500px) {
    .customer-type-options,
    .customer-type-options.two-options {
        grid-template-columns: 1fr 1fr;
    }
}

.radio-card {
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}

.radio-card-content i {
    font-size: 1.1rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.radio-card-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: #d4a574;
    background: linear-gradient(135deg, #fef7f0, #fdf4eb);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.radio-card input[type="radio"]:checked + .radio-card-content i {
    color: #d4a574;
}

.radio-card input[type="radio"]:checked + .radio-card-content span {
    color: #1e293b;
}

.radio-card:hover .radio-card-content {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Company Fields */
.company-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 4px;
}

.company-fields.hidden,
#individual-fields.hidden {
    display: none;
}

/* Billing Modal Footer Buttons */
.billing-modal-footer .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.billing-modal-footer .btn-secondary {
    background: #e2e8f0;
    color: #64748b;
}

.billing-modal-footer .btn-secondary:hover {
    background: #cbd5e1;
    color: #475569;
}

.billing-modal-footer .btn-primary {
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: white;
}

.billing-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #c4956a, #b4855a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

/* Generic Modal Footer (fallback) */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    margin-top: 20px;
}

.modal-footer .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.modal-footer .btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #d4a574, #c49464);
    border: none;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #c49464, #b48454);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .my-subscription-container {
        padding: 20px 15px;
    }

    .subscription-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .subscription-amount {
        font-size: 1.3rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .invoice-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .invoices-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .invoices-pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .invoice-info {
        flex: 1 1 100%;
    }

    .invoice-amount,
    .invoice-status {
        flex: 1;
    }

    .invoice-download-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

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

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================================
   Редизайн 05.10.2026 - същият визуален език като картата на абонамента в
   менюто на профила (header-dark.css .psc-*): тъмнокафяв блок със статуса,
   кремави карти, топли бутони. Страницата е СКРИТ таб - виж my-subscription.js.
   Редът на фактура (.invoice-row) се рисува и в прозореца „Фактури“ от менюто.
   ========================================================================== */
.sub-page { max-width: 880px; margin: 0 auto; gap: 18px; color: #3f3328; }

.sub-topbar { display: flex; align-items: center; gap: 12px; }
.sub-title { flex: 1; margin: 0; font-size: 1.6rem; font-weight: 800; color: #2b231d; }
.sub-back, .sub-icon-btn {
    min-height: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid #efe4d8; background: #fff; color: #5a4a3a; font: inherit; font-weight: 700; cursor: pointer;
    transition: background .12s, border-color .12s;
}
.sub-back { padding: 9px 14px; border-radius: 12px; font-size: .9rem; }
.sub-icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.sub-back:hover, .sub-icon-btn:hover { background: #fbf4ec; border-color: #e6d4bf; }
.sub-back:focus-visible, .sub-icon-btn:focus-visible, .sub-btn:focus-visible { outline: 3px solid #e0b98a; outline-offset: 2px; }

/* ---- статус */
.sub-hero {
    padding: 24px 26px; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, #3a2f26, #57432f);
    box-shadow: 0 16px 40px rgba(60, 40, 25, .22);
}
.sub-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sub-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    font-size: .82rem; font-weight: 700; background: rgba(63, 157, 69, .22); color: #b8e6bb;
}
.sub-pill i { font-size: .8rem; }
.sub-hero--trial .sub-pill { background: rgba(6, 182, 212, .2); color: #a5ecf7; }
.sub-hero--warn .sub-pill { background: rgba(232, 163, 58, .24); color: #f6d39a; }
.sub-hero--bad .sub-pill { background: rgba(226, 91, 58, .26); color: #ffc0ae; }
.sub-hero--mute .sub-pill { background: rgba(255, 255, 255, .14); color: #e9dccd; }
.sub-price { font-size: 2rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.sub-price small { font-size: .9rem; font-weight: 500; color: #d9c6ae; }
.sub-bar { height: 6px; margin: 20px 0 4px; border-radius: 9px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.sub-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #f1d3a6, #d4a574); }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 18px 0 0; }
.sub-facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #c9b39a; }
.sub-facts dd { margin: 4px 0 0; font-size: 1.02rem; font-weight: 700; }
.sub-muted { font-weight: 500; color: #d9c6ae; }
.sub-hero-title { margin: 16px 0 6px; font-size: 1.5rem; font-weight: 800; }
.sub-hero-text { margin: 0; max-width: 560px; color: #e3d3c0; line-height: 1.5; }

/* ---- съобщения под статуса */
.sub-banner {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px;
    border: 1px solid #f1dfc4; background: #fdf6ea; color: #6b4a1f;
}
.sub-banner > i { margin-top: 2px; font-size: 1.1rem; color: #c98a2b; }
.sub-banner strong { display: block; margin-bottom: 2px; color: #4a3218; }
.sub-banner p { margin: 0; line-height: 1.5; font-size: .92rem; }
.sub-banner--bad { border-color: #f5cdc2; background: #fdf0ec; color: #7a2e1c; }
.sub-banner--bad > i { color: #d4512f; }
.sub-banner--bad strong { color: #5e1f10; }
.sub-banner--info { border-color: #e6dccf; background: #fbf7f2; color: #5a4a3a; }
.sub-banner--info > i { color: #a8743f; }
.sub-banner #incomplete-countdown { font-weight: 800; }

/* ---- бутони */
.sub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sub-actions-gap { flex: 1; }
.sub-btn {
    min-height: 0; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
    border: 1px solid #e6d4bf; border-radius: 12px; background: #fff; color: #3f3328;
    font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .12s, border-color .12s;
}
.sub-btn i { color: #a8743f; }
.sub-btn:hover { background: #fbf4ec; }
.sub-btn.is-primary { border-color: transparent; background: #3a2f26; color: #fff; }
.sub-btn.is-primary i { color: #f1d3a6; }
.sub-btn.is-primary:hover { background: #2b231d; }
.sub-btn.is-ghost { border-color: transparent; background: transparent; }
.sub-btn.is-ghost:hover { background: #f3e6d6; }
.sub-btn.is-danger { border-color: transparent; background: transparent; color: #b3261e; }
.sub-btn.is-danger i { color: #b3261e; }
.sub-btn.is-danger:hover { background: #fdecea; }

/* ---- карти (фактури, планове) */
.sub-card {
    padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid #efe4d8;
    box-shadow: 0 8px 26px rgba(60, 40, 25, .06);
}
.sub-card-head { margin-bottom: 16px; }
.sub-card-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: #2b231d; }
.sub-card-head p { margin: 4px 0 0; font-size: .88rem; color: #8a7866; }
.sub-empty { padding: 22px 0 8px; text-align: center; color: #8a7866; }
.sub-empty i { font-size: 1.8rem; color: #d4a574; }
.sub-empty p { margin: 8px 0 0; }
.sub-page .available-plans-section { padding: 22px 24px; }
.sub-page .loading-spinner { color: #8a7866; }

/* Плановете - старата маркировка, нови цветове */
.sub-page .billing-period-toggle { background: #fbf4ec; border-radius: 12px; }
.sub-page .period-btn.active { background: #3a2f26; color: #fff; box-shadow: none; }
.sub-page .plan-option-card { border: 1px solid #efe4d8; border-radius: 18px; box-shadow: none; }
.sub-page .plan-option-card::before { background: linear-gradient(90deg, #f1d3a6, #d4a574); }
.sub-page .plan-option-card:hover { border-color: #e0c49e; box-shadow: 0 12px 30px rgba(60, 40, 25, .1); transform: none; }
.sub-page .btn-select-plan { background: #3a2f26; border-radius: 12px; }
.sub-page .btn-select-plan:hover { background: #2b231d; transform: none; box-shadow: none; }

/* ---- ред на фактура (страницата и прозорецът от менюто) */
.invoices-list { gap: 0; }
.invoice-row {
    display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 16px;
    padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid #f1e8de; border-radius: 0;
}
.invoice-row:last-child { border-bottom: 0; }
.invoice-row:hover { background: none; transform: none; }
.invoice-icon { width: 38px; height: 38px; border-radius: 11px; background: #f3e6d6; color: #a8743f; display: grid; place-items: center; }
.invoice-info { min-width: 0; }
.invoice-number { margin: 0; font-weight: 700; color: #2b231d; }
.invoice-date { margin-top: 2px; font-size: .84rem; color: #8a7866; }
.invoice-amount { font-weight: 800; font-size: 1rem; color: #2b231d; white-space: nowrap; }
.invoice-status { padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: #f1ebe4; color: #6e6256; }
.invoice-status.is-ok { background: #e7f4e8; color: #2f7a35; }
.invoice-status.is-info { background: #e8f0fb; color: #2f5c9a; }
.invoice-status.is-warn { background: #fdf1dc; color: #9a5d0b; }
.invoice-status.is-bad { background: #fdecea; color: #b3261e; }
.invoice-download-btn {
    min-height: 0; padding: 8px 14px; border: 1px solid #e6d4bf; border-radius: 10px; background: #fff; color: #3f3328;
    font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.invoice-download-btn i { color: #a8743f; }
.invoice-download-btn:hover { background: #fbf4ec; transform: none; box-shadow: none; }
.invoices-pagination { border-top-color: #f1e8de; }
.invoices-pagination-info { color: #8a7866; }
.invoices-page-btn { background: #fff; border-color: #efe4d8; color: #5a4a3a; }
.invoices-page-btn.active { background: #3a2f26; color: #fff; }
.invoices-page-btn:hover:not(:disabled):not(.active) { background: #fbf4ec; border-color: #e6d4bf; color: #3f3328; }

@media (max-width: 640px) {
    .sub-title { font-size: 1.35rem; }
    .sub-hero, .sub-card, .sub-page .available-plans-section { padding: 18px; border-radius: 18px; }
    .sub-price { font-size: 1.6rem; }
    .sub-actions { flex-direction: column; align-items: stretch; }
    .sub-actions-gap { display: none; }
    .sub-btn { justify-content: center; }
    .invoice-row { grid-template-columns: auto 1fr auto; row-gap: 8px; }
    .invoice-status { grid-column: 2; justify-self: start; }
    .invoice-amount { grid-column: 3; grid-row: 1; }
    .invoice-download-btn { grid-column: 3; grid-row: 2; justify-content: center; }
}
@media (pointer: coarse) {
    .sub-btn, .sub-back, .invoice-download-btn { min-height: 44px; }
    .sub-icon-btn { width: 44px; height: 44px; }
}
