.settings-sub-nav {
    margin-bottom: 24px;
}

.subscription-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.subscription-stat-card,
.branding-card {
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(20, 32, 74, 0.08);
}

.subscription-stat-card h3,
.branding-card h3 {
    font-size: 0.95rem;
    color: #4b587c;
    margin-bottom: 12px;
}

.subscription-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.subscription-stat-meta,
.subscription-stat-note,
.branding-description {
    color: #64748b;
    font-size: 0.92rem;
}

.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 12px 0 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #eef4ff);
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    flex-wrap: wrap;
}

.billing-label {
    font-weight: 700;
    color: #64748b;
}

.billing-label.active {
    color: #0f172a;
}

.billing-save-badge {
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.billing-toggle {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 32px;
}

.billing-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.billing-toggle-slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.billing-toggle input:checked + .billing-toggle-slider {
    background: #2563eb;
}

.billing-toggle input:checked + .billing-toggle-slider::before {
    transform: translateX(26px);
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.subscription-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe3f0;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(20, 32, 74, 0.08);
}

.subscription-card.featured {
    border-color: #2563eb;
    box-shadow: 0 22px 55px rgba(37, 99, 235, 0.16);
}

.subscription-card.premium {
    background: linear-gradient(180deg, #fffdf7 0%, #fff7e6 100%);
}

.subscription-card.active-plan-card {
    border-color: #0f766e;
    box-shadow: 0 22px 55px rgba(15, 118, 110, 0.18);
}

.plan-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #2563eb;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    border-radius: 999px;
}

.plan-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.plan-desc {
    color: #64748b;
    min-height: 44px;
    margin-bottom: 16px;
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 18px;
}

.plan-currency {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 700;
}

.plan-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.plan-period {
    color: #64748b;
    font-weight: 700;
}

.plan-features {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 10px;
    color: #334155;
}

.plan-features li {
    padding-left: 18px;
    position: relative;
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
}

.plan-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.plan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.plan-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-history-list {
    display: grid;
    gap: 12px;
}

.payment-history-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.payment-history-main {
    display: grid;
    gap: 4px;
}

.payment-history-title {
    font-weight: 700;
    color: #0f172a;
}

.payment-history-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.logo-upload-area {
    margin-top: 18px;
}

.logo-preview-container {
    display: grid;
    gap: 14px;
}

.logo-preview-img {
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #dbe3f0;
    background: #ffffff;
}

.logo-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.logo-dropzone.dragover,
.logo-dropzone:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    transform: translateY(-1px);
}

.dropzone-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    background: #2563eb;
    color: #fff;
}

.dropzone-text {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.dropzone-hint,
.upload-status {
    color: #64748b;
}

.upload-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.upload-status.success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.upload-status.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .subscription-stat-value {
        font-size: 1.45rem;
    }

    .plan-amount {
        font-size: 1.65rem;
    }

    .payment-history-item {
        flex-direction: column;
    }
}

[data-theme="dark"] .subscription-stat-card,
[data-theme="dark"] .branding-card,
[data-theme="dark"] .subscription-card {
    background: #111827;
    border-color: #334155;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] .billing-toggle-wrapper {
    background: linear-gradient(135deg, #0f172a, #111827);
    border-color: #334155;
}

[data-theme="dark"] .subscription-stat-value,
[data-theme="dark"] .plan-title,
[data-theme="dark"] .dropzone-text,
[data-theme="dark"] .payment-history-title {
    color: #f8fafc;
}

[data-theme="dark"] .plan-amount {
    color: #f8fafc;
}

[data-theme="dark"] .plan-currency,
[data-theme="dark"] .plan-period {
    color: #cbd5e1;
}

[data-theme="dark"] .subscription-stat-card h3,
[data-theme="dark"] .branding-card h3,
[data-theme="dark"] .subscription-stat-meta,
[data-theme="dark"] .subscription-stat-note,
[data-theme="dark"] .branding-description,
[data-theme="dark"] .plan-desc,
[data-theme="dark"] .plan-features,
[data-theme="dark"] .dropzone-hint,
[data-theme="dark"] .upload-status,
[data-theme="dark"] .payment-history-subtitle,
[data-theme="dark"] .billing-label {
    color: #cbd5e1;
}

[data-theme="dark"] .logo-preview-img,
[data-theme="dark"] .payment-history-item,
[data-theme="dark"] .upload-status {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .logo-dropzone {
    background: linear-gradient(135deg, #0f172a, #172033);
    border-color: #3b82f6;
}
