.package-card {
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.package-card:hover {
    transform: translateY(-2px);
}

.current-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 30px;
    white-space: nowrap;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 30px;
    white-space: nowrap;
    z-index: 30;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.stats-container {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #e2e8f0;
}

.dark .stats-container {
    background: #1e293b;
    border-color: #334155;
}

.stat-item {
    margin-bottom: 0.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
}

.stat-value {
    font-size: 0.7rem;
    font-weight: 700;
}

.stat-value-regular {
    color: #10b981;
}

.stat-value-ai {
    color: #6366f1;
}

.stat-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.usage-bar {
    height: 3px;
    border-radius: 10px;
}

.action-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.2s;
    display: block;
    cursor: pointer;
    margin-top: 0.5rem;
}

.action-btn-subscribe {
    background: #1e293b;
    color: white;
    border: none;
}

.action-btn-subscribe:hover {
    background: #0f172a;
}

.action-btn-subscribe-popular {
    background: #6366f1;
    color: white;
    border: none;
}

.action-btn-subscribe-popular:hover {
    background: #4f46e5;
}

.action-btn-current {
    border: 1px solid #10b981;
    background: #ecfdf5;
    color: #10b981;
}

.dark .action-btn-current {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: #34d399;
}

.plan-toggle-monthly {
    background: #6366f1 !important;
    color: white !important;
}

.plan-toggle-yearly {
    background: #00a884 !important;
    color: white !important;
}

.plan-toggle-default {
    background: transparent !important;
    color: #64748b !important;
}

.dark .plan-toggle-default {
    color: #94a3b8 !important;
}

.payment-modal {
    background: white;
    border-radius: 20px;
    width: 360px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark .payment-modal {
    background: #1e293b;
}

.modal-animate {
    animation: modalShow 0.2s ease-out forwards;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.payment-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.dark .payment-summary {
    background: #0f172a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-weight: bold;
}

.dark .summary-row:last-child {
    border-top-color: #334155;
}

.payment-option {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.dark .payment-option {
    border-color: #334155;
}

.payment-option-wallet {
    cursor: pointer;
}

.payment-option-wallet:hover {
    border-color: #10b981;
}

.payment-option-disabled {
    opacity: 0.5;
}

.wallet-icon {
    width: 36px;
    height: 36px;
    background: #dcfce7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .wallet-icon {
    background: rgba(16, 185, 129, 0.1);
}

.wallet-icon i {
    color: #10b981;
    font-size: 16px;
}

.card-btn {
    background: linear-gradient(135deg, #00a884, #008f6f);
    border-radius: 12px;
    padding: 10px;
    width: 100%;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-btn:hover {
    background: linear-gradient(135deg, #008f6f, #007a5e);
    transform: translateY(-1px);
}

.feature-item {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.feature-item i {
    font-size: 9px;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.features-list {
    flex: 1;
    margin-bottom: 0.25rem;
}

.price-details {
    font-size: 0.65rem;
    line-height: 1.3;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

@media (max-width: 640px) {
    .payment-modal {
        width: 320px;
    }
    
    .current-plan-badge,
    .popular-badge {
        font-size: 8px;
        padding: 3px 12px;
        top: -10px;
    }
}