.pay-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    .pay-modal-overlay {
        padding: 20px;
    }
}

.pay-modal-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-height: 98vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modal-up 0.3s ease-out;
}

@media (min-width: 768px) {
    .pay-modal-container {
        border-radius: 16px;
        width: auto;
        max-height: 90vh;
    }

    .pay-modal-container.wide {
        min-width: 900px;
        max-width: 1100px;
    }

    .pay-modal-container.narrow {
        min-width: 500px;
        max-width: 700px;
    }
}

.pay-modal-header {
    position: relative;
    background: #ffffff;
    padding: 12px;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
    .pay-modal-header {
        padding: 10px;
    }
}

.pay-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #9ca3af;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    z-index: 10;
}

.pay-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

@media (min-width: 768px) {
    .pay-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

.pay-modal-title-area {
    text-align: center;
    padding-right: 28px;
}

.pay-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .pay-modal-title {
        font-size: 22px;
        margin-bottom: 4px;
    }
}

.mobile-swipe-hint {
    background: #f0f7f4;
    border-bottom: 1px solid #d1e3d9;
    padding: 6px 12px;
}

@media (min-width: 768px) {
    .mobile-swipe-hint {
        display: none;
    }
}

.swipe-hint-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #238564;
}

.pay-cards-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.pay-cards-scroll-container {
    height: 100%;
}

@media (min-width: 768px) {
    .pay-cards-scroll-container {
        padding: 8px;
        overflow-y: auto;
    }
}

.pay-cards-inner {
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pay-cards-inner::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .pay-cards-inner {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
        max-width: 1100px;
        margin: 0 auto;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .pay-cards-inner.single-card {
        display: flex;
        justify-content: center;
    }
}

.pay-card-item {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: center;
    padding: 0 4px;
}

@media (min-width: 768px) {
    .pay-card-item {
        width: auto;
        scroll-snap-align: none;
        padding: 0;
    }
}

.pay-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.pay-card:hover {
    transform: scale(1.01);
}

.pay-card.premium {
    border-color: #42b983;
    box-shadow: 0 4px 15px rgba(66, 185, 131, 0.1);
}

.pay-card.credits {
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.pay-card-body {
    padding: 4px;
}

@media (min-width: 768px) {
    .pay-card-body {
        padding: 12px;
    }
}

.pay-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .pay-card-header {
        margin-bottom: 10px;
    }
}

.pay-card-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .pay-card-icon-box {
        width: 44px;
        height: 44px;
    }
}

.pay-card-icon-box.premium {
    background: linear-gradient(135deg, #42b983 0%, #34a876 100%);
}

.pay-card-icon-box.credits {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.pay-card-header-text {
    margin-left: 8px;
    flex: 1;
}

.pay-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 0.5;
}

@media (min-width: 768px) {
    .pay-card-title {
        font-size: 18px;
    }
}

.pay-card-subtitle {
    font-size: 10px;
    color: #6b7280;
    line-height: 0;
}

.pay-card-badge {
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    color: white;
}

.pay-card-badge.premium {
    background: linear-gradient(to right, #42b983, #66d1a1);
}

.pay-card-badge.credits {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
}

.pay-feature-list {
    background: #f9fafb;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
    border: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
    .pay-feature-list {
        padding: 10px;
        margin-bottom: 12px;
    }
}

.pay-feature-list.credits {
    background: #fffbeb;
    border-color: #fef3c7;
}

.pay-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2px;
}

.pay-feature-item:last-child {
    margin-bottom: 0;
}

.pay-feature-icon {
    margin-top: 2px;
    margin-right: 6px;
    flex-shrink: 0;
    color: #10b981;
}

.pay-feature-icon.credits {
    color: #f97316;
}

.pay-feature-text-box {
    display: flex;
    flex-direction: column;
    line-height: 0.5;
}

@media (min-width: 768px) {
    .pay-feature-text-box {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

.pay-feature-main {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    line-height: 0;
}

@media (min-width: 768px) {
    .pay-feature-main {
        font-size: 14px;
    }
}

.pay-feature-desc {
    font-size: 12px;
    color: #4b5563;
    line-height: 0;
}


.pay-plans-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .pay-plans-container {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
    }
}

.plan-option {
    display: flex;
    flex-direction: column;
    padding: 4px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

@media (min-width: 768px) {
    .plan-option {
        flex: 1;
        padding: 8px;
    }
}

.plan-option:hover,
.plan-option.active {
    border-color: #42b983;
    background: #f0fdf4;
}

.plan-discount-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #f97316;
    color: white;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 9999px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .plan-discount-badge {
        top: -8px;
        left: auto;
        right: 8px;
        transform: none;
        font-size: 10px;
        padding: 2px 6px;
    }
}

.plan-discount-badge.hot {
    background: #ef4444;
}

.plan-option-content {
    display: flex;
    align-items: flex-start;
}

.plan-radio {
    width: 12px;
    height: 12px;
    accent-color: #42b983;
    flex-shrink: 0;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .plan-radio {
        width: 16px;
        height: 16px;
    }
}

.plan-info {
    margin-left: 6px;
    flex: 1;
    min-width: 0;
    line-height: 0;
}
@media (min-width: 768px) {
    .plan-info {
        line-height: 1;
    }
}
.plan-name-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .plan-name-price {
        margin-bottom: 4px;
    }
}

.plan-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

@media (min-width: 768px) {
    .plan-name {
        font-size: 14px;
    }
}

.plan-price {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-left: 4px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .plan-price {
        font-size: 16px;
        margin-left: 6px;
    }
}

.plan-price.highlight {
    color: #42b983;
}

.plan-unit {
    font-size: 10px;
    font-weight: 400;
    color: #6b7280;
}

.plan-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    text-align: right;
}

.plan-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 0;
}

.plan-desc.highlight {
    color: #42b983;
}

.credits-input-section {
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .credits-input-section {
        margin-bottom: 12px;
    }
}

.credits-input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.credits-input-wrapper {
    position: relative;
}

.credits-currency-symbol {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}

@media (min-width: 768px) {
    .credits-currency-symbol {
        left: 10px;
        font-size: 16px;
    }
}

.credits-input {
    width: 100%;
    padding: 6px 8px 6px 24px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .credits-input {
        padding: 8px 12px 8px 40px;
        font-size: 16px;
    }
}

.credits-input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.credits-input.error {
    border-color: #ef4444;
}

.credits-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding: 0 4px;
}

.credits-info-text {
    font-size: 12px;
    color: #6b7280;
}

.credits-highlight {
    font-weight: 700;
    color: #ea580c;
}

.credits-min-hint {
    font-size: 10px;
    color: #9ca3af;
}

.credits-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .credits-quick-grid {
        gap: 8px;
        margin-bottom: 12px;
    }
}

.credits-quick-btn {
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    padding: 4px 0;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    color: #4b5563;
}

@media (min-width: 768px) {
    .credits-quick-btn {
        padding: 8px 0;
        font-size: 14px;
    }
}

.credits-quick-btn:hover,
.credits-quick-btn.active {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #f59e0b;
}

.credits-quick-btn:hover {
    transform: scale(1.05);
}

.pay-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .pay-buttons-group {
        gap: 8px;
    }
}

.pay-btn {
    width: 100%;
    padding: 10px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .pay-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 12px;
    }
}

.pay-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pay-btn:active {
    transform: scale(0.98);
}

.pay-btn.stripe {
    background: linear-gradient(135deg, #635BFF 0%, #4339F2 100%);
    color: white;
}

.pay-btn.paypal {
    background: linear-gradient(135deg, #003087 0%, #009CDE 100%);
    color: white;
}

.pay-btn.alipay {
    background: linear-gradient(135deg, #1677FF 0%, #0050B3 100%);
    color: white;
}

.mobile-slide-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobile-slide-nav {
        display: none;
    }
}

.slide-nav-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .slide-nav-btn {
        width: 40px;
        height: 40px;
    }
}

.slide-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

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

.mobile-page-indicators {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobile-page-indicators {
        display: none;
    }
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: #42b983;
    width: 16px;
}

.pay-footer-hint {
    font-size: 11px;
    text-align: center;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .pay-footer-hint {
        margin-top: 8px;
        font-size: 12px;
    }
}

.pay-footer-hint.warning {
    color: #dc2626;
    font-weight: 500;
}

.pay-footer-hint.info {
    color: #6b7280;
}

.renewal-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 100%;
    padding: 16px;
    text-align: center;
    animation: modal-up 0.3s ease-out;
}

@media (min-width: 768px) {
    .renewal-modal {
        border-radius: 16px;
        padding: 24px;
    }
}

.renewal-icon-box {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    color: #42b983;
}

@media (min-width: 768px) {
    .renewal-icon-box {
        margin-bottom: 16px;
    }
}

.renewal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

@media (min-width: 768px) {
    .renewal-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
}

.renewal-desc {
    color: #4b5563;
    margin-bottom: 12px;
    font-size: 13px;
}

@media (min-width: 768px) {
    .renewal-desc {
        margin-bottom: 24px;
        font-size: 16px;
    }
}

.renewal-close-btn {
    width: 100%;
    background: #42b983;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

@media (min-width: 768px) {
    .renewal-close-btn {
        padding: 12px;
    }
}

.renewal-close-btn:hover {
    background: #34a876;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.mb-3 {
    margin-bottom: 12px;
}
.credits .pay-feature-desc{
    line-height: 1.2;
}