/* ==============================================================================
   AMETIST IOT PLATFORM — pay.css
   Payment Page Styles (/dialog/payment/)
   ============================================================================== */

.payment-page {
    min-height: calc(100vh - 160px);
    padding: 30px 20px 60px;
}

.payment-container {
    max-width: 1080px;
    margin: 0 auto;
}

.payment-header {
    text-align: center;
    margin-bottom: 36px;
}

.payment-logo {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #c084fc 80%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.payment-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

.payment-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    margin-bottom: 40px;
}

/* QR Code Card */
.qr-section {
    background: rgba(14, 10, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(124, 58, 237, 0.2);
    position: relative;
    overflow: hidden;
}

.qr-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #38bdf8);
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.qr-code {
    width: 170px;
    height: 170px;
    margin: 0 auto 14px;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.payment-amount {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    max-width: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount-label {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
}

.amount-value {
    color: #34d399;
    font-size: 1.35rem;
    font-weight: 800;
}

.wallet-address {
    background: rgba(8, 6, 26, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.address-label {
    font-size: 0.82rem;
    color: #94a3b8;
}

.address-value {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    transition: all 0.25s ease;
}

.copy-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.65);
    color: #ffffff;
}

/* Instructions Card */
.instructions-section {
    background: rgba(14, 10, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.instructions-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.step-content {
    flex: 1;
}

.step-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-description {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    color: #fbbf24;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .payment-content {
        grid-template-columns: 1fr;
    }
    .qr-grid {
        grid-template-columns: 1fr;
    }
}
