/* --- Subscription Page Specific Styles --- */

.sub-header {
    margin-bottom: 2.5rem;
}

.sub-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.sub-header p {
    color: var(--text-muted);
}

/* Current Subscription Card */
.current-sub-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.current-sub-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.current-sub-info .sub-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sub-credits-bar {
    width: 100%;
    max-width: 300px;
}

.sub-credits-bar-inner {
    height: 8px;
    background: var(--surface-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.sub-credits-progress {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 4px;
    width: 30%;
}

.sub-credits-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-inline: auto;
}

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

.pricing-section-title h2 {
    font-size: 2rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    align-items: flex-start;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .pricing-card {
    background: #15161a;
    border: 1px solid #27272a;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    position: relative;
    border: none;
    background: linear-gradient(90deg, #2563EB 0%, #0EA5E9 50%, #00D4FF 100%);
    color: #ffffff;
    transform: scale(1.02);
}

.pricing-card.popular .plan-name,
.pricing-card.popular .plan-price .amount,
.pricing-card.popular .plan-price .currency,
.pricing-card.popular .plan-price .per-month,
.pricing-card.popular .original-price,
.pricing-card.popular .billing-cycle,
.pricing-card.popular .plan-features li {
    color: #ffffff !important;
}

.pricing-card.popular .plan-features li i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.pricing-card.popular li.highlighted-feature {
    color: #ffffff !important;
}

.pricing-card.popular li.highlighted-feature i {
    color: #ffffff !important;
}

[data-theme="dark"] .pricing-card.popular {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: none;
    white-space: nowrap;
    width: max-content;
}

.popular-badge i {
    font-size: 1rem;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.plan-price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.plan-price .per-month {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.billing-cycle {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

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

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-features li i {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -1px;
}

[data-theme="dark"] .plan-features li i {
    color: #52525b;
}

.pricing-card.popular .plan-features li i {
    color: #3b82f6;
}

li.highlighted-feature {
    color: #3b82f6 !important;
}

li.highlighted-feature i {
    color: #3b82f6 !important;
}

.btn-plan-default {
    background-color: #f4f4f5;
    color: #18181b;
    border: none;
    border-radius: 999px;
    padding: 0.8rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
    font-family: var(--font-sans);
    cursor: pointer;
}

[data-theme="dark"] .btn-plan-default {
    background-color: #27272a;
    color: #fafafa;
}

.btn-plan-default:hover {
    background-color: #e4e4e7;
}
[data-theme="dark"] .btn-plan-default:hover {
    background-color: #3f3f46;
}

.btn-plan-highlight {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 999px;
    padding: 0.8rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
    font-family: var(--font-sans);
    cursor: pointer;
}

.btn-plan-highlight:hover {
    background-color: #f4f4f5;
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 4rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem;
    text-align: center;
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-main);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .comparison-table th {
    background: rgba(0, 0, 0, 0.02);
}

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

.comparison-table i.ri-check-line {
    color: #10b981;
    font-size: 1.25rem;
    font-weight: bold;
}

.comparison-table i.ri-close-line {
    color: var(--text-muted);
    font-size: 1.25rem;
    opacity: 0.5;
}

/* Payment Methods & History Layout */
.sub-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Background Shapes */
.sub-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .sub-bg-shape {
    opacity: 0.10;
}

.sub-bg-shape.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(122, 92, 255, 0) 70%);
}

.sub-bg-shape.shape-2 {
    top: 40%;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00d2ff 0%, rgba(0, 210, 255, 0) 70%);
}


.sub-card-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.sub-card-container h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Payment Methods */
.payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary);
    background: rgba(122, 92, 255, 0.05);
}

.pm-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pm-icon {
    font-size: 1.5rem;
    color: var(--text-main);
}

.pm-details {
    display: flex;
    flex-direction: column;
}

.pm-number {
    font-weight: 600;
    color: var(--text-main);
}

.pm-expiry {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Billing History */
.billing-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
}

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

.hi-info {
    display: flex;
    flex-direction: column;
}

.hi-date {
    font-weight: 600;
    color: var(--text-main);
}

.hi-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hi-amount {
    font-weight: 600;
    color: var(--text-main);
}

.hi-download {
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.hi-download:hover {
    color: var(--primary-hover);
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .accordion-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid var(--surface-border);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    padding: 1.2rem 1.5rem;
    max-height: 300px; /* arbitrary max-height enough for content */
}

/* Responsive */
@media (max-width: 1024px) {
    .sub-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .current-sub-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.btn-upgrade {
    background: linear-gradient(90deg, #2563EB 0%, #0EA5E9 50%, #00D4FF 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    width: 100%;
    outline: 1px solid rgba(59, 130, 246, 0.8);
    outline-offset: 3px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-family: var(--font-sans);
    cursor: pointer;
}

.btn-upgrade:hover {
    outline-offset: 5px;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular .btn-upgrade {
    background: #ffffff;
    color: #2563eb;
    outline: 1px solid rgba(255, 255, 255, 0.8);
}

.pricing-card.popular .btn-upgrade:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.btn-upgrade i {
    font-size: 1.2rem;
    font-weight: 400;
}

