/**
 * Payment Page Styles - iOS 18 Liquid Glass Design
 */

/* Remove parent containers */
#app:has(.payment-page) {
    padding: 0 !important;
}

#page-content:has(.payment-page) {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.payment-page {
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    padding-top: 48px;
}

/* Main Card - Liquid Glass */
.payment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Crypto Icon - minimal top space */
.payment-crypto-icon {
    margin: 0 auto 12px;
    width: 80px;
    height: 80px;
}

.payment-crypto-icon .crypto-gif {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Title */
.payment-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.payment-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 16px 0;
    transition: all 0.3s ease;
}

.payment-status.detecting {
    color: var(--warning);
    animation: pulse 1s ease-in-out infinite;
}

.payment-status.confirmed {
    color: var(--success);
    font-weight: 600;
}

/* Success Icon */
.payment-success-icon {
    margin: 0 auto 16px;
    width: 80px;
    height: 80px;
    animation: scaleIn 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Transaction Hash Box */
.payment-tx-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.payment-tx-hash {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
    display: block;
}

/* Timer */
.payment-timer {
    margin-bottom: 20px;
}

#payment-timer {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

#payment-timer.warning {
    color: var(--warning);
    animation: pulse 1s ease-in-out infinite;
}

#payment-timer.expired {
    color: var(--error);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Payment Sections */
.payment-section {
    margin-bottom: 12px;
}

/* Address & Amount Cards - Liquid Glass */
.payment-address-box,
.payment-amount-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    word-break: break-all;
}

.payment-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    display: block;
}

.payment-address {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 10px 0;
    word-break: break-all;
    display: block;
}

.payment-crypto-amount {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    display: block;
}

/* Blue Liquid Glass Copy Buttons */
.copy-btn-primary {
    width: 100%;
    background: rgba(10, 132, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 16px rgba(10, 132, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Animated gradient overlay */
.copy-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.copy-btn-primary:hover::before {
    left: 100%;
}

.copy-btn-primary:active {
    transform: scale(0.96);
    box-shadow:
        0 4px 8px rgba(10, 132, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.copy-btn-primary.copied {
    background: rgba(10, 132, 255, 1);
}

.copy-btn-primary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Confirmation Notice */
.payment-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 8px;
    color: rgba(255, 255, 255, 0.65);
}

.payment-confirmation svg {
    color: var(--accent-primary);
}

.payment-confirmation span {
    font-size: 13px;
    font-weight: 600;
}

.payment-notice-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Red Liquid Glass Cancel Button */
.cancel-btn {
    width: 100%;
    background: rgba(255, 59, 48, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 16px rgba(255, 59, 48, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay for cancel button */
.cancel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.cancel-btn:hover::before {
    left: 100%;
}

.cancel-btn:active {
    transform: scale(0.96);
    box-shadow:
        0 4px 8px rgba(255, 59, 48, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 400px) {
    .payment-card {
        padding: 14px;
    }

    .payment-crypto-icon,
    .payment-crypto-icon .crypto-gif {
        width: 70px;
        height: 70px;
    }

    .payment-title {
        font-size: 22px;
    }

    #payment-timer {
        font-size: 28px;
    }

    .payment-crypto-amount {
        font-size: 20px;
    }
}
