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

:root {
    --bg-main: #0B0B0F;
    --bg-card: #15151A;
    --bg-card-hover: #1A1A20;
    --bg-input: #1C1C24;
    
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    
    --brand-red: #E50914;
    --brand-blue: #00A3FF;
    --brand-blue-hover: #008AE6;
    --brand-green: #22C55E;
    
    --border-color: #2A2A35;
    --border-highlight: #3A3A4A;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-green { color: var(--brand-green); }
.text-sm { font-size: 12px; }

/* Top Navigation */
.crypto-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
}

.crypto-nav .logo img {
    height: 32px;
}

.nav-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.2s;
}

.btn-back:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Header */
.crypto-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.1);
    color: var(--brand-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.crypto-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.crypto-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Layout */
.crypto-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 32px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.card h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i {
    color: var(--brand-red);
}

/* Order Summary */
.summary-card {
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.summary-item .label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item .value {
    font-weight: 600;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px;
    background: rgba(229, 9, 20, 0.05);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 12px;
}

.total-row span:first-child {
    font-weight: 600;
    font-size: 16px;
}

.total-row .total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-red);
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    padding: 12px;
    border-radius: 8px;
    flex: 1;
    margin: 0 4px;
    text-align: center;
}

.trust-badge i {
    color: var(--brand-green);
    font-size: 18px;
}

.trust-badge span {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* How to Pay */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 16px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Right Column (Payment Card) */
.crypto-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.crypto-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-family: inherit;
}

.crypto-btn img {
    width: 16px;
    height: 16px;
}

.crypto-btn:hover {
    background: var(--border-highlight);
    color: var(--text-primary);
}

.crypto-btn.active {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--brand-red);
    color: white;
}

.network-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.network-warning i {
    color: #F59E0B;
    font-size: 20px;
    margin-top: 2px;
}

.network-warning p {
    font-size: 13px;
    color: #E2E8F0;
    line-height: 1.5;
}

.network-warning strong {
    color: #F59E0B;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-wrapper {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: monospace;
    outline: none;
}

.copy-btn {
    background: var(--border-highlight);
    border: none;
    border-left: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #4A4A5A;
    color: white;
}

.input-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.qr-code-wrapper {
    background: var(--bg-main);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin: 32px 0;
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.qr-code-wrapper p {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-blue);
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    transition: 0.2s;
    margin-bottom: 16px;
}

.btn-telegram:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-2px);
}

.telegram-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 24px;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: 0.2s;
}

.help-link:hover {
    color: white;
    border-color: var(--border-highlight);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--brand-green);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .crypto-container {
        grid-template-columns: 1fr;
    }
    
    .crypto-nav {
        padding: 16px 20px;
    }
    
    .lang-selector {
        display: none;
    }
}

@media (max-width: 480px) {
    .crypto-header h1 {
        font-size: 28px;
    }
    
    .crypto-btn {
        flex: 1 1 45%;
        justify-content: center;
    }
    
    .input-wrapper input {
        font-size: 13px;
        padding: 12px;
    }
    
    .copy-btn {
        padding: 0 12px;
    }
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    display: none;
}

@media (max-width: 900px) {
    .crypto-container {
        padding-bottom: 120px; /* Make space for sticky footer */
    }

    .mobile-sticky-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        padding: 16px 24px;
        align-items: center;
        justify-content: space-between;
        z-index: 100;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    }

    .sticky-price-info {
        display: flex;
        flex-direction: column;
    }

    .sticky-label {
        font-size: 10px;
        color: var(--text-secondary);
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .sticky-value {
        font-size: 20px;
        font-weight: 800;
        color: var(--brand-red);
        line-height: 1.1;
    }

    .mobile-sticky-footer .sticky-btn {
        margin-bottom: 0;
        padding: 14px 32px;
        width: auto;
        font-size: 16px;
    }
}

/* Social Proof Notification */
.social-proof-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 90;
    max-width: 320px;
}

.social-proof-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.sp-icon {
    font-size: 24px;
    background: rgba(0, 255, 136, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sp-content p {
    margin: 0;
}

.sp-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.sp-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px !important;
}

@media (max-width: 900px) {
    .social-proof-notification {
        bottom: auto;
        top: 20px;
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
        transform: translateY(-150px);
        z-index: 1000;
        margin: 0 auto;
    }
}
