@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: rgb(148, 9, 236);
    --primary-dark: rgb(118, 7, 188);
    --accent: rgb(177, 79, 236);
    --text-dark: #262c3a;
    --text-light: #5a6277;
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
    --success: #2ecc71;
    --warning: #e74c3c;
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2px;
    transition: background 0.5s ease;
}

/* Container with enhanced shadow - more compact height and width */
.container {
    width: 100%;
    max-width: 500px; /* Reduced from 550px */
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 
                0 1px 8px rgba(0, 0, 0, 0.05),
                0 30px 60px rgba(148, 9, 236, 0.1);
    padding: 20px 30px; /* Further reduced padding */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: container-fade-in 0.6s ease-out;
    position: relative;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 
                0 5px 15px rgba(0, 0, 0, 0.06),
                0 30px 70px rgba(148, 9, 236, 0.15);
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 50px;
    padding: 5px 12px;
    margin: -5px auto 15px;
    width: fit-content;
    font-size: 13px;
    color: #2ecc71;
    font-weight: 500;
}

.security-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    fill: #2ecc71;
}

/* Headings with improved typography - more compact */
h1 {
    font-size: 26px; /* Reduced from 28px */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px; /* Reduced from 20px */
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

h1:after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, rgb(148, 9, 236), rgb(177, 79, 236));
    bottom: 0;
    left: 30%;
    border-radius: 10px;
}

h2 {
    font-size: 20px; /* Reduced from 22px */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px; /* Reduced from 18px */
    letter-spacing: -0.3px;
}

/* Email Input Section with animations */
#email-input-section {
    margin-bottom: 25px;
    animation: slide-up 0.5s ease both;
    animation-delay: 0.2s;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

#email-input-section h3 {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 12px; /* Reduced margins */
}

input[type="email"] {
    width: 65%;
    padding: 12px 15px; /* Reduced padding */
    margin: 10px 0; /* Reduced margins */
    border: 1px solid #e0e5ec;
    border-radius: var(--border-radius);
    background: #f8fafc;
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.15);
    background: var(--bg-card);
}

#submit-btn {
    background: linear-gradient(135deg, rgb(148, 9, 236) 0%, rgb(177, 79, 236) 100%);
    color: white;
    border: none;
    padding: 12px 24px; /* Reduced padding */
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(148, 9, 236, 0.3);
    position: relative;
    overflow: hidden;
}

#submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(148, 9, 236, 0.4);
}

#submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(148, 9, 236, 0.3);
}

#submit-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent);
    transition: 0.5s;
}

#submit-btn:hover:after {
    left: 100%;
}

#submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Section with animations - more compact */
#payment-section {
    padding-top: 5px; /* Reduced from 10px */
    animation: fade-in 0.5s ease both;
    position: relative;
    padding-bottom: 35px; /* Reduced space for the chat button */
}

.amount-text {
    font-size: 16px; /* Reduced from 18px */
    margin: 15px 0; /* Reduced from 20px */
    color: var(--text-light);
    animation: pulse 2s infinite;
}

.amount-text strong {
    font-size: 24px;
    color: rgb(148, 9, 236);
    font-weight: 700;
}

/* QR Code with enhanced styling - refined professional glow */
.qr-code {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    position: relative;
    animation: scale-in 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) both;
    animation-delay: 0.3s;
}

/* Remove the previous :before and :after pseudo-elements */
.qr-code:before, 
.qr-code:after {
    display: none;
}

.qr-code img {
    width: 160px;
    height: 160px;
    border: 2px solid white;
    border-radius: 10px;
    padding: 8px;
    background: var(--bg-card);
    box-shadow: 
        0 0 15px rgba(148, 9, 236, 0.2),
        0 0 30px rgba(148, 9, 236, 0.15),
        0 0 45px rgba(148, 9, 236, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    animation: qr-pulse 3s ease-in-out infinite;
}

@keyframes qr-pulse {
    0% {
        box-shadow: 
            0 0 15px rgba(148, 9, 236, 0.2),
            0 0 30px rgba(148, 9, 236, 0.15),
            0 0 45px rgba(148, 9, 236, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(148, 9, 236, 0.25),
            0 0 35px rgba(148, 9, 236, 0.18),
            0 0 50px rgba(148, 9, 236, 0.12);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(148, 9, 236, 0.2),
            0 0 30px rgba(148, 9, 236, 0.15),
            0 0 45px rgba(148, 9, 236, 0.1);
    }
}

.qr-code img:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 18px rgba(148, 9, 236, 0.3),
        0 0 35px rgba(148, 9, 236, 0.2),
        0 0 50px rgba(148, 9, 236, 0.15);
}

/* Wallet Address with improved styling - sleeker and centered */
.wallet-address {
    display: block;
    margin: 18px 0;
    padding: 0;
    background: transparent;
    border: none;
    animation: slide-up 0.5s ease both;
    animation-delay: 0.4s;
    position: relative;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-address:before {
    content: "Payment Address";
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
}

.wallet-address-container {
    position: relative;
    background: linear-gradient(to right, rgba(148, 9, 236, 0.05), rgba(177, 79, 236, 0.08), rgba(148, 9, 236, 0.05));
    border-radius: var(--border-radius);
    padding: 14px 50px 14px 14px;
    border: 1px solid rgba(148, 9, 236, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.wallet-address-container:hover {
    border-color: rgba(148, 9, 236, 0.4);
    box-shadow: 0 6px 20px rgba(148, 9, 236, 0.1);
}

.wallet-address span {
    color: var(--text-dark);
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 0.5px;
    user-select: all;
    flex-grow: 1;
}

/* Elegant Copy Button - positioned on the right side */
#copy-btn {
    background: linear-gradient(135deg, rgb(148, 9, 236) 0%, rgb(177, 79, 236) 100%);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 8px;
    box-shadow: 0 4px 10px rgba(148, 9, 236, 0.2);
}

#copy-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(148, 9, 236, 0.3);
}

#copy-btn:active {
    transform: scale(0.95);
}

#copy-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Copy success animation - repositioned to be more visible */
.copy-success {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(148, 9, 236);
    color: white;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 20;
    white-space: nowrap;
}

.copy-success.show {
    opacity: 1;
    animation: float-up-fade 1.5s forwards;
}

@keyframes float-up-fade {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    70% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Shining highlight effect for wallet address */
.address-highlight {
    position: absolute;
    width: 30%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
}

.wallet-address-container:hover .address-highlight {
    animation: highlight-scan 1.5s ease-in-out infinite;
}

@keyframes highlight-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Expiration Timer with attention-grabbing style - more compact */
.expiration-timer {
    margin: 18px 0; /* Reduced from 25px */
    font-size: 15px; /* Reduced from 16px */
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slide-up 0.5s ease both;
    animation-delay: 0.5s;
}

.expiration-timer span {
    font-weight: 700;
    color: var(--warning);
    margin-left: 8px;
    font-size: 18px;
    letter-spacing: 0.5px;
    animation: blink 1.5s infinite;
}

/* Payment Status - more compact */
.payment-status {
    margin-top: 18px; /* Reduced from 25px */
    text-align: center;
    font-size: 14px; /* Reduced from 15px */
    color: var(--text-light);
    line-height: 1.5;
    padding: 12px 15px; /* Reduced padding */
    border-top: 1px dashed #e0e5ec;
    animation: fade-in 0.5s ease both;
    animation-delay: 0.6s;
}

.payment-status span {
    font-weight: 600;
    color: var(--text-dark);
}

.payment-status #connection-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.8;
}

.payment-status #connection-status .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
    top: -1px;
}

.payment-status #connection-status .connected {
    background-color: var(--success);
    box-shadow: 0 0 5px var(--success);
    animation: pulse 2s infinite;
}

.payment-status #connection-status .disconnected {
    background-color: var(--warning);
    box-shadow: 0 0 5px var(--warning);
}

.payment-status #connection-status .checking {
    background-color: var(--primary);
    box-shadow: 0 0 5px var(--primary);
    animation: blink 1s infinite;
}

/* Live Chat Button - position adjusted for smaller container */
.live-chat-btn {
    position: absolute;
    bottom: 10px; /* Reduced from 15px */
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 9, 236, 0.1);
    color: rgb(148, 9, 236);
    border: 1px solid rgba(148, 9, 236, 0.2);
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.live-chat-btn:hover {
    background: rgba(148, 9, 236, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(148, 9, 236, 0.15);
}

.telegram-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    fill: rgb(148, 9, 236);
}

.live-chat-btn span {
    display: inline-block;
}

/* Remove unnecessary animations for the live chat button */
.live-chat-btn:before,
.live-chat-btn:after {
    display: none;
}

/* Pulse animation for the chat button */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(0.95);
    }
}

/* Responsive styles for live chat button */
@media (max-width: 480px) {
    .live-chat-btn {
        padding: 8px 16px;
        font-size: 12px;
        bottom: 15px;
        right: 15px;
    }
    
    .telegram-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes container-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design with smoother transitions */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .qr-code img {
        width: 160px;
        height: 160px;
    }

    .wallet-address {
        font-size: 12px;
        padding: 10px;
    }

    #copy-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Price Tag Styling - improved hierarchy with purple accent */
.price-tag {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 15px;
    display: inline-block;
    position: relative;
    padding: 3px 12px;
    border-radius: var(--border-radius);
    background: rgba(148, 9, 236, 0.05);
    border: 1px dashed rgba(148, 9, 236, 0.3);
    line-height: 1.2;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-shadow: 0px 1px 1px rgba(148, 9, 236, 0.2);
}

.currency-symbol {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 2px;
    position: relative;
    top: -3px;
}

.price-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 1px;
}

/* Benefits List - more compact */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px; /* Reduced from 25px */
    text-align: left;
}

.benefits-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid rgba(148, 9, 236, 0.05);
}

.benefits-list li:first-child {
    font-weight: 600;
    margin-bottom: 5px;
    padding-left: 0;
    color: var(--text-dark);
    border-bottom: none;
}

.benefits-list li:not(:first-child):before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 18px;
    height: 18px;
    background: rgba(148, 9, 236, 0.1);
    border-radius: 50%;
}

.benefits-list li:not(:first-child):after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: bold;
}

.benefits-list.compact li {
    padding: 6px 0 6px 25px; /* Reduced padding */
    font-size: 14px; /* Reduced font size */
    line-height: 1.4; /* Tighter line height */
}

.benefits-list.compact li:first-child {
    margin-bottom: 3px; /* Reduced from 5px */
    padding-left: 0;
}

.benefits-list.compact li:not(:first-child):before {
    width: 16px; /* Smaller checkmark circle */
    height: 16px;
    top: 7px;
}

.benefits-list.compact li:not(:first-child):after {
    left: 4px;
    top: 5px;
    font-size: 10px; /* Smaller checkmark */
}
