/* ========== HOW TO EXCHANGE - СУПЕР ИНТЕРАКТИВНАЯ СТРАНИЦА ========== */

/* --- Базовые стили --- */
.how-to-main {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Контейнер не должен выходить за границы */
.how-to-main .container {
    max-width: 100%;
    overflow-x: hidden;
}

/* ========== HERO SECTION ========== */
.how-to-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Плавающие монеты */
.floating-coin {
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    animation: floatCoin 20s ease-in-out infinite;
}

.coin-1 { top: 10%; left: 10%; animation-delay: 0s; }
.coin-2 { top: 20%; right: 15%; animation-delay: -5s; }
.coin-3 { bottom: 30%; left: 20%; animation-delay: -10s; }
.coin-4 { bottom: 20%; right: 10%; animation-delay: -15s; }

@keyframes floatCoin {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(10deg); }
    50% { transform: translate(-20px, -80px) rotate(-5deg); }
    75% { transform: translate(-40px, -40px) rotate(5deg); }
}

/* Плавающие фигуры */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    background: #000;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: morphShape 15s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: morphShape 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseShape 8s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% { border-radius: 50%; transform: scale(1); }
    50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1.1); }
}

@keyframes pulseShape {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.02; }
}

.how-to-hero .hero-content {
    text-align: center;
    z-index: 1;
    padding: 40px 20px;
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
    animation: revealTitle 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line.highlight {
    font-size: 72px;
    background: linear-gradient(135deg, #000 0%, #333 50%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes revealTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Статистика */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Кнопка старта */
.start-journey-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
    position: relative;
    overflow: hidden;
}

.start-journey-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-journey-btn:hover::before {
    width: 300px;
    height: 300px;
}

.start-journey-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.start-journey-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.start-journey-btn:hover svg {
    transform: translateX(5px);
}

/* Индикатор скролла */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards, bounce 2s ease-in-out infinite 1.5s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #000;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator span {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== PROGRESS BAR ========== */
.progress-container {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.progress-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    max-width: 800px;
    margin: 0 auto 15px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000;
    width: 0;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.progress-step.active .step-dot {
    background: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}

.progress-step.completed .step-dot {
    background: #000;
}

.progress-step span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* ========== STEP SECTIONS ========== */
.step-section {
    padding: 100px 0;
    position: relative;
}

.step-section.step-dark {
    background: #fafafa;
}

.step-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Номер этапа - простой круг с цифрой внутри */
.step-number {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eee 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number .number {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

/* Скрываем старый фон - больше не нужен */
.number-bg {
    display: none;
}

.step-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.step-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== INTERACTIVE DEMOS ========== */
.interactive-demo {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

/* Demo Exchange Widget */
.demo-exchange-widget {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 24px;
    padding: 30px;
    position: relative;
}

.demo-zone {
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.demo-zone.active {
    border-color: #000;
    background: #fafafa;
}

.demo-zone-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
}

.demo-currencies {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.demo-currency {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.demo-currency:hover {
    background: #fff;
    border-color: #ddd;
    transform: translateY(-2px);
}

.demo-currency.selected {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: scale(1.05);
}

.demo-currency.pulse {
    animation: pulseCurrency 1s ease infinite;
}

@keyframes pulseCurrency {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
}

.demo-currency-icon {
    font-size: 24px;
    font-weight: 600;
}

.demo-currency-name {
    font-size: 14px;
    font-weight: 500;
}

.demo-amount {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-input {
    flex: 1;
    padding: 15px;
    font-size: 28px;
    font-weight: 600;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-input:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.demo-currency-label {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    min-width: 60px;
}

/* Swap Button */
.demo-swap-btn {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px auto;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

.demo-swap-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Hints */
.demo-hints {
    margin-top: 30px;
}

.hint-bubble {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    animation: slideIn 0.5s ease;
}

.hint-bubble.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hint-icon {
    font-size: 28px;
}

.hint-bubble p {
    font-size: 16px;
    color: #333;
}

/* Success Message */
.demo-success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    margin-top: 20px;
    animation: successPop 0.5s ease;
}

.demo-success-message.show {
    display: flex;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-checkmark {
    width: 30px;
    height: 30px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
    stroke: #fff;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.tip-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.tip-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.tip-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ========== STEP 2: FORM DEMO ========== */
.demo-form-widget {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 24px;
    padding: 40px;
}

.demo-form-group {
    margin-bottom: 30px;
}

.demo-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.label-hint {
    font-size: 12px;
    color: #999;
}

.demo-input-wrapper {
    position: relative;
}

.demo-form-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.demo-form-input:focus {
    outline: none;
    border-color: #000;
}

.demo-form-input.valid {
    border-color: #22c55e;
}

.demo-form-input.invalid {
    border-color: #ef4444;
}

.input-currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
}

/* Slider */
.input-slider-wrapper {
    margin-top: 15px;
}

.demo-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
}

.demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.demo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

/* Card Animation */
.card-animation {
    margin-top: 20px;
    perspective: 1000px;
}

.card-preview {
    width: 320px;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.card-preview:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e7c1 50%, #d4af37 100%);
    border-radius: 8px;
    margin-bottom: 30px;
}

.card-number {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.card-brand {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 32px;
}

/* Email Validation */
.email-validation {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Calculation */
.demo-calculation {
    background: #fafafa;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row span:first-child {
    color: #666;
}

.calc-value {
    font-weight: 600;
    color: #000;
}

.calc-value.highlight {
    font-size: 20px;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.badge svg {
    width: 24px;
    height: 24px;
}

.badge span {
    font-size: 14px;
}

/* ========== STEP 3: PAYMENT ========== */
.payment-methods-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.payment-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.payment-tab:hover {
    background: #eee;
}

.payment-tab.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.payment-tab svg {
    width: 24px;
    height: 24px;
}

.payment-method-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-method-content.active {
    display: block;
}

/* QR Section */
.qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    margin: 0 auto 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 2px;
}

.qr-grid {
    display: contents;
}

.qr-grid::before {
    content: '';
    display: block;
}

.qr-code::after {
    content: '';
    position: absolute;
    inset: 10px;
    background-image:
        repeating-linear-gradient(0deg, #000 0px, #000 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(90deg, #000 0px, #000 4px, transparent 4px, transparent 8px);
    opacity: 0.8;
    border-radius: 8px;
}

.qr-logo {
    position: absolute;
    font-size: 32px;
    font-weight: 700;
    z-index: 1;
    background: #fff;
    padding: 5px 10px;
    border-radius: 8px;
}

.qr-hint {
    font-size: 14px;
    color: #666;
}

/* Wallet Address */
.wallet-address-section {
    margin-bottom: 30px;
}

.address-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 12px;
}

.address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #333;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.copy-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #22c55e;
    color: #fff;
    border-radius: 12px;
    margin-top: 15px;
    animation: slideIn 0.3s ease;
}

.copy-success.show {
    display: flex;
}

.copy-success svg {
    width: 20px;
    height: 20px;
}

/* Payment Timer */
.payment-timer {
    text-align: center;
}

.timer-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: #000;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.timer-label {
    font-size: 12px;
    color: #666;
}

.timer-hint {
    font-size: 14px;
    color: #666;
}

/* Card Payment */
.card-payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 16px;
    margin-bottom: 30px;
}

.payment-bank {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bank-logo {
    font-size: 32px;
}

.bank-name {
    font-weight: 600;
}

.bank-card {
    font-size: 14px;
    color: #666;
}

.payment-amount-display {
    text-align: right;
}

.amount-label {
    font-size: 12px;
    color: #666;
}

.amount-value {
    font-size: 28px;
    font-weight: 700;
}

/* Payment Instructions */
.payment-instructions {
    margin-bottom: 30px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.instruction-step:last-child {
    border-bottom: none;
}

.instruction-number {
    width: 30px;
    height: 30px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.instruction-step p {
    color: #333;
    line-height: 1.6;
}

.paid-btn {
    width: 100%;
    padding: 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.paid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Warning Block */
.warning-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #fffbeb;
    border: 2px solid #fcd34d;
    border-radius: 16px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.warning-icon {
    font-size: 32px;
}

.warning-text strong {
    display: block;
    margin-bottom: 5px;
    color: #92400e;
}

.warning-text p {
    color: #a16207;
    line-height: 1.6;
}

/* ========== STEP 4: STATUS TIMELINE ========== */
.status-timeline {
    max-width: 600px;
    margin: 0 auto;
}

/* Стили timeline наследуются из extended-pages.css */

/* Processing Animation */
.processing-animation {
    margin-top: 15px;
}

.processing-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.processing-fill {
    height: 100%;
    background: #000;
    width: 0;
    transition: width 0.5s ease;
}

.processing-percent {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: inline-block;
}

/* Simulate Button */
.simulate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    padding: 18px;
    background: #f5f5f5;
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simulate-btn:hover {
    background: #000;
    color: #fff;
}

.simulate-btn svg {
    width: 20px;
    height: 20px;
}

/* Final Success */
.final-success {
    display: none;
    position: relative;
    margin-top: 40px;
}

.final-success.show {
    display: block;
    animation: successPop 0.5s ease;
}

.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-in-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

.success-content {
    text-align: center;
    padding: 50px;
    background: #000;
    color: #fff;
    border-radius: 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #000;
}

.success-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.success-content > p {
    color: #999;
    margin-bottom: 30px;
}

.success-details {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #999;
}

/* Support Block */
.support-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    max-width: 800px;
    margin: 60px auto 0;
}

.support-icon {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-icon svg {
    width: 28px;
    height: 28px;
}

.support-text {
    flex: 1;
}

.support-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.support-text p {
    font-size: 14px;
    color: #666;
}

.support-btn {
    padding: 15px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.support-btn:hover {
    background: #333;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 0;
    background: #000;
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: #999;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255,255,255,0.2);
}

.cta-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(5px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .title-line {
        font-size: 32px;
    }

    .title-line.highlight {
        font-size: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-value {
        font-size: 36px;
    }

    .progress-steps span {
        display: none;
    }

    .step-number {
        width: 80px;
        height: 80px;
    }

    .step-number .number {
        font-size: 36px;
    }

    .step-title {
        font-size: 28px;
    }

    .step-description {
        font-size: 16px;
        padding: 0 15px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .demo-currencies {
        flex-direction: column;
    }

    .card-preview {
        width: 100%;
        max-width: 320px;
    }

    .security-badges {
        flex-direction: column;
        gap: 20px;
    }

    .payment-methods-tabs {
        flex-direction: column;
    }

    .support-block {
        flex-direction: column;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    /* Предотвращение выхода контента за границы */
    .interactive-demo {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .demo-exchange-widget {
        padding: 15px;
        max-width: 100%;
    }

    .exchange-zone {
        padding: 15px;
    }

    .zone-input {
        font-size: 18px;
        padding: 12px;
    }

    .currency-card {
        min-width: 80px;
        padding: 10px;
    }

    .currency-carousel {
        gap: 8px;
    }

    .exchange-limits {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .limits-values {
        font-size: 13px;
    }

    .floating-tooltip {
        width: calc(100vw - 30px);
        max-width: 280px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ИНТЕРАКТИВНЫЕ СТИЛИ ========== */

/* Demo Success Messages */
.demo-success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    margin-top: 20px;
    animation: successPop 0.5s ease;
}

.demo-success-message.show {
    display: flex;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.success-checkmark {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-checkmark svg {
    width: 18px;
    height: 18px;
    stroke: #000;
}

/* Hint Bubbles */
.demo-hints {
    margin-top: 20px;
}

.hint-bubble {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 14px;
    animation: hintPop 0.4s ease;
}

.hint-bubble.active {
    display: inline-flex;
}

@keyframes hintPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hint-icon {
    font-size: 24px;
}

/* Copy Success */
.copy-success {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    animation: slideUp 0.3s ease;
}

.copy-success.show {
    display: inline-flex;
}

.copy-success svg {
    width: 16px;
    height: 16px;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Copy Button States */
.copy-btn.copied {
    background: #000 !important;
    color: #fff !important;
}

/* Paid Button States */
.paid-btn.success {
    background: #4CAF50 !important;
    pointer-events: none;
}

.paid-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* QR Overlay */
.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-overlay.show {
    opacity: 1;
}

.qr-modal {
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-overlay.show .qr-modal {
    transform: scale(1);
}

.qr-large {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
}

.qr-modal p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.qr-close-btn {
    padding: 15px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-close-btn:hover {
    background: #333;
    transform: scale(1.05);
}

/* Email Validation Icon */
.email-validation {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
}

.email-validation.valid {
    color: #4CAF50;
}

.email-validation.invalid {
    color: #f44336;
}

/* Card Animation */
.card-animation {
    margin-top: 20px;
    perspective: 1000px;
}

.card-animation.active .card-preview {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Input Validation States */
.demo-form-input.valid {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.demo-form-input.invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

/* Updated Label Animation */
.demo-currency-label.updated {
    animation: labelPulse 0.3s ease;
}

@keyframes labelPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); background: rgba(0,0,0,0.1); }
}

/* Value Changed Animation */
.value-changed {
    animation: valueFlash 0.3s ease;
}

@keyframes valueFlash {
    0%, 100% { background: transparent; }
    50% { background: rgba(0,0,0,0.1); }
}

/* Timer Warning States */
#timerValue.warning {
    color: #ff9800;
}

#timerValue.critical {
    color: #f44336;
    animation: blink 0.5s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 3D Card Hover Shine */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: inherit;
}

/* Scroll Indicator Enhancement */
.scroll-indicator {
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== NEW INTERACTIVE DEMO STYLES ========== */

/* Demo Exchange Card */
.demo-exchange-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.demo-exchange-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-exchange-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.demo-section {
    padding: 20px;
    background: #fafafa;
    border-radius: 16px;
    margin-bottom: 15px;
}

.demo-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

/* Currency Carousel */
.demo-currency-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
}

.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px;
    flex: 1;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.demo-crypto-card {
    min-width: 100px;
    padding: 15px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.demo-crypto-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.demo-crypto-card.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 8px;
}

.crypto-icon.btc { background: #f7931a; color: #fff; }
.crypto-icon.eth { background: #627eea; color: #fff; }
.crypto-icon.usdt { background: #26a17b; color: #fff; }
.crypto-icon.sol { background: linear-gradient(135deg, #9945FF, #14F195); color: #fff; }

.demo-crypto-card.selected .crypto-icon {
    background: #fff;
    color: #000;
}

.crypto-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

.crypto-symbol {
    display: block;
    font-size: 10px;
    opacity: 0.7;
}

/* Amount Input */
.demo-amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.demo-amount-input-wrapper {
    flex: 1;
    position: relative;
}

.demo-amount-input {
    width: 100%;
    padding: 15px 70px 15px 20px;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.demo-amount-input:focus {
    outline: none;
    border-color: #000;
}

.amount-currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Network Selector */
.demo-network-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.network-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.demo-network-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.network-option {
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-option:hover {
    border-color: #ccc;
}

.network-option.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Swap Container */
.demo-swap-container {
    display: flex;
    justify-content: center;
    margin: -10px 0;
    position: relative;
    z-index: 2;
}

.demo-swap-btn {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.demo-swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

.demo-swap-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Limits Row */
.demo-limits-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-bottom: 15px;
}

.limits-info {
    display: flex;
    gap: 10px;
}

.limits-label {
    font-size: 13px;
    color: #666;
}

.limits-value {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

/* Rate Row */
.demo-rate-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.rate-label {
    font-size: 13px;
    color: #666;
}

.rate-value {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    flex: 1;
}

.rate-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
}

/* Terms Row */
.demo-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.demo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.demo-checkbox input {
    display: none;
}

.demo-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.demo-checkbox input:checked + .checkmark {
    background: #000;
    border-color: #000;
}

.demo-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
}

.demo-checkbox a {
    color: #000;
    text-decoration: underline;
}

/* Exchange Button */
.demo-exchange-btn,
.demo-continue-btn,
.demo-confirm-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.demo-exchange-btn:hover,
.demo-continue-btn:hover,
.demo-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.demo-exchange-btn svg,
.demo-continue-btn svg,
.demo-confirm-btn svg {
    width: 20px;
    height: 20px;
}

/* ========== НОВЫЕ ПОДСКАЗКИ (TOOLTIPS) ========== */

/* Иконка вопроса для подсказки - компактная заметная кнопка */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e8e8e8;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.tooltip-trigger::after {
    content: '?';
}

/* Скрываем SVG внутри, показываем только ? */
.tooltip-trigger svg {
    display: none;
}

.tooltip-trigger:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: scale(1.1);
}

/* Плавающая подсказка */
.floating-tooltip {
    position: fixed;
    z-index: 99999;
    width: 280px;
    max-width: calc(100vw - 40px);
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.floating-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* Стрелка подсказки - скрываем, чтобы избежать проблем с позиционированием */
.tooltip-arrow {
    display: none;
}

/* Содержимое подсказки */
.tooltip-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.tooltip-content p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px 0;
    color: #ccc;
}

.tooltip-content p:last-child {
    margin-bottom: 0;
}

.tooltip-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.tooltip-content li {
    font-size: 12px;
    padding: 4px 0 4px 16px;
    position: relative;
    color: #bbb;
}

.tooltip-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #fff;
}

/* Предупреждение в подсказке */
.tooltip-warning {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    color: #fca5a5;
    margin-top: 10px;
}

/* ========== STEP 2: Form Card ========== */
.demo-form-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.demo-form-group {
    margin-bottom: 25px;
}

.demo-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.optional-badge {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 10px;
}

.demo-input-group {
    position: relative;
    display: flex;
    gap: 10px;
}

.demo-text-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.demo-text-input:focus {
    outline: none;
    border-color: #000;
}

.demo-paste-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-paste-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.address-validation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.address-validation.valid {
    color: #22c55e;
}

.address-validation.invalid {
    color: #ef4444;
}

.memo-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 13px;
    color: #c2410c;
}

.email-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.email-icon.valid {
    color: #22c55e;
}

/* Summary Block */
.demo-summary-block {
    background: #fafafa;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.demo-summary-block h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-value {
    font-weight: 600;
}

.summary-value.highlight {
    color: #22c55e;
    font-size: 16px;
}

/* ========== STEP 3: Payment Card ========== */
.demo-payment-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.payment-timer-block {
    text-align: center;
    margin-bottom: 30px;
}

.timer-circle-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg-circle {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.timer-progress-circle {
    fill: none;
    stroke: #000;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    font-size: 36px;
    font-weight: 700;
}

.timer-separator {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.timer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.payment-details-block h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.payment-amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.payment-amount {
    font-size: 48px;
    font-weight: 700;
}

.payment-currency {
    font-size: 24px;
    color: #666;
}

.payment-qr-section {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code-display {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-placeholder {
    width: 140px;
    height: 140px;
    background:
        repeating-linear-gradient(0deg, #000 0, #000 8px, transparent 8px, transparent 16px),
        repeating-linear-gradient(90deg, #000 0, #000 8px, transparent 8px, transparent 16px);
    opacity: 0.8;
}

.qr-logo {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.qr-hint {
    font-size: 13px;
    color: #666;
}

.payment-address-section {
    margin-bottom: 30px;
}

.address-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.address-copy-box {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 12px;
}

.address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
}

.copy-address-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-address-btn:hover {
    background: #333;
}

.copy-success-msg {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: #22c55e;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.copy-success-msg.show {
    display: flex;
}

.payment-warnings {
    margin-bottom: 25px;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff7ed;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #c2410c;
}

.warning-item svg {
    flex-shrink: 0;
}

/* ========== STEP 4: Status Card ========== */
.demo-status-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.order-id {
    font-size: 18px;
    font-weight: 700;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status.processing .status-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

.order-status.completed .status-dot {
    background: #22c55e;
}

.status-timeline-demo {
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50px;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed::before {
    background: #000;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-step.completed .timeline-icon {
    background: #000;
}

.timeline-step.completed .timeline-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.timeline-step.active .timeline-icon {
    background: #000;
}

.timeline-step.pending .timeline-icon {
    background: #f5f5f5;
}

.step-number-icon {
    font-size: 12px;
    font-weight: 600;
    color: #999;
}

.processing-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.timeline-info h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-step.pending .timeline-info h5,
.timeline-step.pending .timeline-info p {
    color: #999;
}

.timeline-info p {
    font-size: 13px;
    color: #666;
}

.processing-progress {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: #000;
    width: 60%;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.demo-simulate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.demo-simulate-btn:hover {
    background: #000;
    color: #fff;
}

.demo-simulate-btn svg {
    width: 18px;
    height: 18px;
}

/* Success Result */
.demo-success-result {
    display: none;
    text-align: center;
    padding: 40px;
    background: #000;
    border-radius: 20px;
    margin-top: 30px;
    animation: successPop 0.5s ease;
}

.demo-success-result.show {
    display: block;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon-large svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
}

.demo-success-result h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.success-details {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #999;
    font-size: 14px;
}

.detail-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.detail-value.highlight {
    color: #22c55e;
}

.detail-value.hash {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* ========== REAL SITE STYLES FOR DEMO ========== */

/* Demo Exchange Widget - match main.css */
.demo-exchange-widget {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 2px solid #eee;
}

/* Zone Input Wrapper */
.zone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-input-wrapper .zone-input {
    flex: 1;
}

/* Позиционирование tooltip рядом с каруселью */
.carousel-tooltip {
    margin-left: 8px;
}

/* Позиционирование tooltip рядом с input */
.input-tooltip {
    margin-left: 8px;
}

/* Input with tooltip */
.input-with-tooltip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-tooltip .form-input-detail {
    flex: 1;
}

.input-with-tooltip .tooltip-trigger {
    flex-shrink: 0;
}

/* Receive currency highlight */
.receive-currency {
    color: #7c3aed;
    font-weight: 700;
}

/* QR placeholder for demo */
.qr-placeholder-demo {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 8px;
    margin: 0 auto;
}

/* Status Banner styles for Step 4 */
.status-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.status-banner.processing {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fcd34d;
}

.status-banner.completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #22c55e;
}

.status-banner .status-icon {
    font-size: 40px;
    line-height: 1;
}

.status-banner .status-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px 0;
}

.status-banner .status-description {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Order Info Card */
.order-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #eee;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail .detail-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-detail .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.order-detail .detail-value.order-id {
    color: #7c3aed;
    font-family: monospace;
}

/* Addresses Card */
.addresses-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #eee;
}

.address-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item .address-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.address-item .address-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 13px;
    color: #000;
    word-break: break-all;
}

.copy-btn-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: transform 0.2s;
}

.copy-btn-small:hover {
    transform: scale(1.2);
}

/* Timer Card */
.timer-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.timer-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timer-icon {
    font-size: 32px;
}

.timer-label {
    font-size: 14px;
    color: #92400e;
}

.timer-value {
    font-size: 32px;
    font-weight: 700;
    color: #92400e;
    font-family: monospace;
}

/* Demo Simulate Button */
.demo-simulate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.demo-simulate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.demo-simulate-btn svg {
    width: 20px;
    height: 20px;
}

/* Demo Success Result */
.demo-success-result {
    display: none;
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

.demo-success-result.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Title in cards */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
}

/* Responsive for demo blocks */
@media (max-width: 768px) {
    .demo-exchange-widget {
        padding: 20px;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .status-banner {
        flex-direction: column;
        text-align: center;
    }

    .timer-content {
        flex-direction: column;
        text-align: center;
    }

    .payment-address-container {
        flex-direction: column;
    }

    .qr-section {
        order: -1;
    }
}
