/* ==================== SUBSCRIPTION SECTION - ULTRA MODERN ==================== */
.subscription-status-alert {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.03));
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.subscription-status-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #EF4444, #DC2626);
}

.subscription-status-alert.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.03));
    border-color: rgba(16, 185, 129, 0.2);
}

.subscription-status-alert.active::before {
    background: linear-gradient(180deg, #10B981, #059669);
}

.status-alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscription-status-alert.active .status-alert-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.status-alert-content {
    flex: 1;
}

.status-alert-content h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.status-alert-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.status-alert-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    white-space: nowrap;
}

.subscription-status-alert.active .status-alert-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.25);
}

/* Plans Grid */
.sub-plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.sub-card {
    background: linear-gradient(135deg, rgba(24, 26, 34, 0.95), rgba(18, 20, 28, 0.98));
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-card:hover {
    transform: translateY(-8px);
    border-color: rgba(153, 69, 255, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(153, 69, 255, 0.1);
}

.sub-card.featured {
    border-color: rgba(153, 69, 255, 0.4);
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.06), rgba(24, 26, 34, 0.98));
    box-shadow: 0 12px 40px rgba(153, 69, 255, 0.15);
}

.sub-card.ultimate {
    border-color: rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(24, 26, 34, 0.98));
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
}

.sub-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sub-card-badge.trial {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.sub-card-badge.popular {
    background: linear-gradient(135deg, #9945FF, #7C3AED);
    color: white;
}

.sub-card-badge.ultimate {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: white;
}

.sub-card-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(153, 69, 255, 0.12);
    color: #9945FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-card.featured .sub-plan-icon {
    background: rgba(153, 69, 255, 0.18);
    box-shadow: 0 8px 24px rgba(153, 69, 255, 0.2);
}

.sub-card.ultimate .sub-plan-icon {
    background: rgba(249, 115, 22, 0.12);
    color: #F97316;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.sub-plan-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.sub-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.price-currency {
    font-size: 24px;
    font-weight: 800;
    color: #10B981;
}

.sub-plan-period {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.sub-features-list {
    flex: 1;
    margin-bottom: 24px;
}

.sub-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sub-feature-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.sub-action-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.sub-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

.sub-action-btn.primary {
    background: linear-gradient(135deg, #9945FF, #7C3AED);
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.3);
}

.sub-action-btn.primary:hover {
    box-shadow: 0 10px 28px rgba(153, 69, 255, 0.4);
}

.sub-action-btn.ultimate {
    background: linear-gradient(135deg, #F97316, #EA580C);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.sub-action-btn.ultimate:hover {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.4);
}

/* ==================== CHECKOUT MODAL - ULTRA PREMIUM ==================== */
.checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.checkout-overlay.active {
    display: flex;
}

.checkout-backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(153, 69, 255, 0.1), rgba(0, 0, 0, 0.92));
    backdrop-filter: blur(20px) saturate(180%);
    animation: backdropFadeIn 0.4s ease;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px) saturate(180%);
    }
}

.checkout-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(145deg, rgba(24, 26, 34, 0.98), rgba(18, 20, 26, 0.98));
    border: 1.5px solid rgba(153, 69, 255, 0.25);
    border-radius: 28px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 20px 60px rgba(153, 69, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    overflow: hidden;
    margin: auto;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.checkout-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(153, 69, 255, 0.08), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(20, 241, 149, 0.05), transparent 50%);
    pointer-events: none;
}

.checkout-modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9945FF, #14F195);
    opacity: 0.7;
}

.checkout-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.checkout-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
    transform: rotate(90deg);
}

.checkout-loading {
    display: none;
    padding: 60px 32px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.checkout-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    display: block;
}

.checkout-spinner svg {
    width: 100%;
    height: 100%;
    animation: spinWithGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinWithGlow {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 6px rgba(153, 69, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(153, 69, 255, 0.6));
    }
    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 6px rgba(153, 69, 255, 0.4));
    }
}

.checkout-loading h3 {
    display: block;
    width: 100%;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-align: center;
}

.checkout-loading p {
    display: block;
    width: 100%;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.checkout-main {
    display: none;
    padding: 36px 28px 28px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.checkout-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(153, 69, 255, 0.5), transparent);
}

.checkout-plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(153, 69, 255, 0.1));
    color: #9945FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(153, 69, 255, 0.25);
}

.checkout-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.checkout-price {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #14F195, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.checkout-period {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.checkout-timer {
    display: flex;
    justify-content: center;
    margin: 24px 0 28px;
}

.checkout-timer-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.checkout-timer-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 6px 16px rgba(153, 69, 255, 0.3));
}

.checkout-timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 6;
}

.checkout-timer-progress {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.checkout-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-count {
    display: block;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.timer-subtitle {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.checkout-address-section {
    margin: 24px 0;
}

.checkout-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-align: center;
}

.checkout-address-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.checkout-address-block code {
    font-size: 12px;
    font-weight: 600;
    color: #E2E8F0;
    word-break: break-all;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    display: block;
    line-height: 1.7;
}

.checkout-copy-btn {
    width: 100%;
    padding: 11px;
    margin-top: 10px;
    background: linear-gradient(135deg, #9945FF, #7C3AED);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153, 69, 255, 0.4);
}

.checkout-wallet-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.checkout-wallet-info code {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.checkout-status-bar {
    margin: 20px 0 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.checkout-status-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3B82F6, #2563EB);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.checkout-status-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.status-dot-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3B82F6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.3); 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

.checkout-status-content {
    flex: 1;
}

.status-message {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.status-submessage {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.status-submessage #checkCount {
    color: #3B82F6;
    font-weight: 700;
}

.checkout-status-spinner {
    flex-shrink: 0;
}

.spinner-svg {
    animation: rotate 1.5s linear infinite;
}

.spinner-path {
    stroke: #3B82F6;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.checkout-security-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.security-badge svg {
    color: #9945FF;
}

.checkout-success,
.checkout-timeout {
    display: none;
    padding: 40px 32px;
    text-align: center;
}

.checkout-success-icon,
.checkout-timeout-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iconPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.checkout-success-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #10B981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.checkout-timeout-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #EF4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.checkout-success h2,
.checkout-timeout h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.checkout-success p,
.checkout-timeout p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.checkout-success-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    margin: 24px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row span:first-child {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-row span:last-child {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

.checkout-action-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-action-btn.primary {
    background: linear-gradient(135deg, #9945FF, #7C3AED);
    color: white;
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.3);
}

.checkout-action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(153, 69, 255, 0.4);
}

.checkout-action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .subscription-status-alert {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
    }
    
    .sub-plan-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-modal {
        max-width: 100%;
        border-radius: 24px;
    }
    
    .checkout-main,
    .checkout-loading,
    .checkout-success,
    .checkout-timeout {
        padding: 28px 24px;
    }
    
    .checkout-timer-ring {
        width: 120px;
        height: 120px;
    }
    
    .timer-count {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .checkout-modal {
        border-radius: 20px;
    }
    
    .checkout-security-badges {
        grid-template-columns: 1fr;
    }
    
    .price-value {
        font-size: 40px;
    }
}
