/* RST PAY - Checkout PIX Fintech */

.checkout-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
    background: #050508;
}

.checkout-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 168, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 87, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.checkout-wrap {
    width: 100%;
    max-width: 420px;
    animation: checkoutIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkoutIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-card {
    background: linear-gradient(145deg, rgba(22, 26, 34, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.checkout-header {
    padding: 28px 28px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.06) 0%, transparent 100%);
}

.checkout-merchant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkout-merchant-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #00A8FF, #0057FF);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
}

.checkout-merchant-name {
    font-size: 0.9rem;
    color: #C0C7D1;
    font-weight: 500;
}

.checkout-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.checkout-amount small {
    font-size: 1rem;
    color: #00A8FF;
    font-weight: 600;
}

.checkout-title {
    font-size: 0.95rem;
    color: #C0C7D1;
    margin-top: 8px;
    opacity: 0.85;
}

.checkout-body { padding: 28px; }

.checkout-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #FFC107;
}

.checkout-timer.urgent {
    background: rgba(255, 82, 82, 0.08);
    border-color: rgba(255, 82, 82, 0.3);
    color: #FF5252;
    animation: pulse 1s infinite;
}

.checkout-timer-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.checkout-qr-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.checkout-qr-ring {
    position: relative;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 168, 255, 0.15);
}

.checkout-qr-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, #00A8FF, #0057FF, #00A8FF);
    background-size: 200% 200%;
    animation: qrGlow 3s ease infinite;
    z-index: -1;
}

@keyframes qrGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.checkout-qr-ring img {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.checkout-qr-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    padding: 20px;
}

.checkout-pix-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00A8FF;
    margin-bottom: 12px;
    font-weight: 600;
}

.checkout-copy-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 87, 255, 0.1));
    border: 1px solid rgba(0, 168, 255, 0.35);
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-copy-btn:hover {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.25), rgba(0, 87, 255, 0.15));
    box-shadow: 0 0 24px rgba(0, 168, 255, 0.3);
    transform: translateY(-1px);
}

.checkout-copy-btn.copied {
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.4);
    color: #00E676;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.checkout-step {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: #C0C7D1;
    opacity: 0.5;
}

.checkout-step.active { opacity: 1; color: #00A8FF; }
.checkout-step.done { opacity: 1; color: #00E676; }

.checkout-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.checkout-step.active .checkout-step-num {
    background: rgba(0, 168, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 168, 255, 0.4);
}

.checkout-step.done .checkout-step-num { background: rgba(0, 230, 118, 0.2); }

.checkout-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    color: rgba(192, 199, 209, 0.4);
}

.checkout-footer strong { color: #00A8FF; }

.checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(192, 199, 209, 0.5);
}

/* Success state */
.checkout-success {
    text-align: center;
    padding: 40px 28px;
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.checkout-success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #00E676, #00C853);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
    animation: successBounce 0.6s ease 0.2s both;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.checkout-success h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
}

.checkout-success p { color: #C0C7D1; font-size: 0.9rem; }

.checkout-expired {
    text-align: center;
    padding: 40px 28px;
}

.checkout-expired-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.checkout-loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 16px 0;
}

.checkout-loading-dots span {
    width: 8px; height: 8px;
    background: #00A8FF;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.checkout-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.checkout-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.checkout-status-bar {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.checkout-status-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00A8FF, #0057FF);
    border-radius: 2px;
    animation: statusPulse 2s ease infinite;
    width: 60%;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-10%); }
    50% { opacity: 1; transform: translateX(10%); }
}

/* KYC */
.kyc-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 152, 0, 0.08));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.kyc-banner.approved {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 200, 83, 0.06));
    border-color: rgba(0, 230, 118, 0.3);
}

.kyc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.kyc-step-item {
    text-align: center;
    padding: 16px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.kyc-step-item.active {
    border-color: rgba(0, 168, 255, 0.4);
    background: rgba(0, 168, 255, 0.08);
}

.kyc-step-item.done {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.06);
}

.kyc-upload-zone {
    border: 2px dashed rgba(0, 168, 255, 0.3);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 168, 255, 0.03);
}

.kyc-upload-zone:hover {
    border-color: #00A8FF;
    background: rgba(0, 168, 255, 0.08);
}

.kyc-upload-zone.has-file {
    border-color: #00E676;
    border-style: solid;
    background: rgba(0, 230, 118, 0.05);
}

/* Fintech extras */
.fintech-hero-stat {
    position: relative;
    overflow: hidden;
}

.fintech-hero-stat .stat-sparkline {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    opacity: 0.3;
}

.notif-bell {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0, 168, 255, 0.08);
    border: 1px solid rgba(0, 168, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.notif-bell:hover { box-shadow: 0 0 16px rgba(0, 168, 255, 0.3); }

.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: #FF5252;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.quick-action-btn {
    padding: 20px 16px;
    border-radius: 16px;
    background: rgba(0, 168, 255, 0.06);
    border: 1px solid rgba(0, 168, 255, 0.15);
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    display: block;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 168, 255, 0.15);
    color: #fff;
}

.quick-action-btn .qa-icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.quick-action-btn .qa-label { font-size: 0.8rem; font-weight: 600; }

.activity-feed-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.activity-feed-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-feed-icon.pix { background: rgba(0, 168, 255, 0.15); }
.activity-feed-icon.usdt { background: rgba(0, 230, 118, 0.15); }
.activity-feed-icon.kyc { background: rgba(255, 193, 7, 0.15); }

.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

.landing-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.landing-hero p {
    font-size: 1.15rem;
    color: #C0C7D1;
    max-width: 560px;
    margin-bottom: 36px;
    opacity: 0.85;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 24px;
}

.landing-feature {
    padding: 32px 28px;
    border-radius: 20px;
    background: rgba(22, 26, 34, 0.6);
    border: 1px solid rgba(0, 168, 255, 0.12);
    text-align: left;
    transition: all 0.3s;
}

.landing-feature:hover {
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateY(-4px);
}

.landing-feature-icon { font-size: 2rem; margin-bottom: 16px; }

@media (max-width: 576px) {
    .checkout-amount { font-size: 2rem; }
    .kyc-steps { grid-template-columns: repeat(2, 1fr); }
}
