/* ==================== GENESIS PAYMENT PAGE STYLES ==================== */

/* Override body for checkout page */
body {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation adjustments */
.nav {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateX(-4px);
}

.back-link .arrow-icon {
    width: 18px;
    height: 18px;
}

/* ==================== CHECKOUT SECTION ==================== */
.checkout-section {
    flex: 1;
    padding: 140px 0 80px;
    position: relative;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== PRODUCT DETAILS (LEFT) ==================== */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.badge-icon {
    font-size: 18px;
}

.product-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* ==================== COUNTDOWN TIMER ==================== */
.countdown-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
}

.countdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clock-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.time-unit {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
}

.time-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.time-separator {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==================== FEATURES LIST ==================== */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateX(4px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    stroke: var(--primary);
    stroke-width: 2;
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* ==================== SECURITY BADGE ==================== */
.security-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(79, 172, 254, 0.05);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 12px;
}

.shield-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent-2);
    stroke-width: 2;
}

.security-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.security-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== PAYMENT CARD (RIGHT) ==================== */
.payment-card {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.payment-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.payment-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

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

.price-amount {
    font-size: 56px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
}

.price-currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-usd {
    font-size: 16px;
    color: var(--text-muted);
}

/* ==================== WALLET SECTION ==================== */
.wallet-section {
    min-height: 300px;
}

.wallet-disconnected {
    text-align: center;
    padding: 40px 20px;
}

.wallet-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    padding: 16px;
    background: var(--gradient-primary);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.wallet-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
}

.wallet-disconnected h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wallet-disconnected p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-connect-wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-connect-wallet:active {
    transform: translateY(0);
}

.phantom-icon {
    width: 24px;
    height: 24px;
}

/* Connected Wallet */
.connected-wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.wallet-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.wallet-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.wallet-address {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
}

.btn-disconnect {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-disconnect svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-secondary);
    stroke-width: 2;
}

.btn-disconnect:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #f5576c;
}

.btn-disconnect:hover svg {
    stroke: #f5576c;
}

/* Purchase Button */
.btn-purchase {
    width: 100%;
    padding: 18px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.btn-purchase:active {
    transform: translateY(0);
}

.btn-purchase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-price {
    font-size: 18px;
    font-weight: 800;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#loadingText {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    padding: 16px;
    background: var(--gradient-green);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(56, 239, 125, 0.3);
}

.success-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
}

.success-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-success-home {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    padding: 16px;
    background: var(--gradient-accent);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.3);
}

.error-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
}

.error-state h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-retry {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* ==================== FAQ ==================== */
.payment-faq {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-item p {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.checkout-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .payment-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 120px 0 60px;
    }

    .product-title {
        font-size: 36px;
    }

    .product-subtitle {
        font-size: 16px;
    }

    .countdown-timer {
        gap: 8px;
    }

    .time-unit {
        padding: 12px 8px;
    }

    .time-value {
        font-size: 24px;
    }

    .time-label {
        font-size: 10px;
    }

    .time-separator {
        font-size: 20px;
    }

    .price-amount {
        font-size: 42px;
    }

    .price-currency {
        font-size: 22px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .payment-card {
        padding: 24px;
    }

    .product-title {
        font-size: 28px;
    }

    .features-title {
        font-size: 18px;
    }

    .feature-item {
        padding: 12px;
    }
}
