/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --secondary: #1A1A2E;
    --accent: #10B981;
    --accent-light: #D1FAE5;
    
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    --error: #EF4444;
    --error-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --success: #10B981;
    --success-light: #D1FAE5;
    
    /* Crypto Colors */
    --usdt: #26A17B;
    --usdc: #2775CA;
    --sol-start: #9945FF;
    --sol-end: #14F195;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--primary);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-trust span {
    font-size: 14px;
    color: var(--text-muted);
}

.payment-icons {
    display: flex;
    gap: 12px;
}

.payment-icon {
    height: 28px;
    width: auto;
    border-radius: var(--radius-sm);
}

/* Crypto Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.crypto-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-light);
}

.crypto-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.crypto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--bg-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.crypto-item:hover {
    background: var(--bg-tertiary);
}

.crypto-item:last-child {
    margin-bottom: 0;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-icon svg {
    width: 40px;
    height: 40px;
}

.crypto-details {
    display: flex;
    flex-direction: column;
}

.crypto-name {
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-symbol {
    font-size: 13px;
    color: var(--text-muted);
}

.crypto-price {
    text-align: right;
}

.crypto-price .price {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.crypto-price .change {
    font-size: 13px;
}

.crypto-price .change.positive {
    color: var(--accent);
}

.crypto-price .change.negative {
    color: var(--error);
}

/* ===== ASSETS SECTION ===== */
.assets {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.asset-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.asset-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.asset-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-icon svg {
    width: 80px;
    height: 80px;
}

.asset-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.asset-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 15px;
}

.asset-features {
    text-align: left;
    margin-bottom: 24px;
}

.asset-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step {
    text-align: center;
    max-width: 220px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 24px;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== COMPLIANCE ===== */
.compliance {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.compliance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.compliance-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.compliance-text > p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.compliance-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compliance-item {
    display: flex;
    gap: 16px;
}

.compliance-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compliance-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.compliance-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.compliance-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.badge-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.badge-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-card span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0052CC 100%);
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--secondary);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    color: white;
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer-legal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal .disclaimer {
    margin-top: 8px;
    font-size: 12px;
    max-width: 600px;
}

.footer-payments {
    display: flex;
    gap: 12px;
}

.footer-payments img {
    height: 28px;
    width: auto;
    border-radius: var(--radius-sm);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    background: var(--bg-secondary);
    min-height: 100vh;
}

.header-checkout {
    background: white;
}

.checkout-security {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.checkout-main {
    padding: 48px 0 80px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

/* Checkout Steps Indicator */
.checkout-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 16px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-indicator .step-number {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.step-indicator.active .step-number {
    background: var(--primary);
    color: white;
}

.step-indicator.completed .step-number {
    background: var(--accent);
    color: white;
}

.step-indicator .step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.step-indicator.active .step-label {
    color: var(--text-primary);
}

.step-divider {
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

/* Checkout Form */
.checkout-form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Asset Selection */
.asset-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.asset-option {
    cursor: pointer;
}

.asset-option input {
    display: none;
}

.asset-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.asset-option input:checked + .asset-option-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.asset-option-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.asset-option-icon svg {
    width: 48px;
    height: 48px;
}

.asset-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asset-option-info .asset-name {
    font-weight: 600;
    font-size: 18px;
}

.asset-option-info .asset-fullname {
    font-size: 14px;
    color: var(--text-muted);
}

.asset-option-price {
    font-weight: 600;
    font-size: 18px;
}

/* Network Selection */
.network-selection {
    margin-bottom: 32px;
}

.network-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.network-option {
    cursor: pointer;
}

.network-option input {
    display: none;
}

.network-option-content {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.network-option input:checked + .network-option-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.network-name {
    font-weight: 500;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--error);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group input.error {
    border-color: var(--error);
}

.input-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Amount Input Group */
.amount-input-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 32px;
}

.input-with-currency {
    position: relative;
    display: flex;
}

.input-with-currency input {
    flex: 1;
    padding-right: 80px;
}

.currency-selector,
.currency-display {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.currency-selector select {
    padding: 8px 12px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.currency-display {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.amount-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 32px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Card Input */
.card-input-wrapper {
    position: relative;
}

.card-input-wrapper input {
    padding-right: 60px;
}

.card-type-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 26px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.payment-method {
    cursor: pointer;
}

.payment-method input {
    display: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.payment-method input:checked + .payment-method-content {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method-icons {
    display: flex;
    gap: 8px;
}

.payment-method-icons img {
    height: 24px;
    width: auto;
}

.payment-method-name {
    font-weight: 500;
}

/* Card Form */
.card-form {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

/* Terms Agreement */
.terms-agreement {
    margin-bottom: 32px;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
}

.form-actions .btn {
    flex: 1;
}

.btn-pay {
    background: var(--accent);
}

.btn-pay:hover {
    background: #059669;
}

/* Order Summary */
.checkout-summary-section {
    position: sticky;
    top: 96px;
}

.order-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.order-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.summary-asset {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-asset-icon {
    width: 48px;
    height: 48px;
}

.summary-asset-icon svg {
    width: 48px;
    height: 48px;
}

.summary-asset-name {
    font-weight: 600;
    font-size: 18px;
}

.summary-asset-network {
    font-size: 13px;
    color: var(--text-muted);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.summary-row.total {
    font-weight: 600;
    font-size: 18px;
    padding-top: 12px;
}

.summary-row.receive {
    color: var(--accent);
    font-weight: 600;
}

.wallet-address-display {
    font-family: monospace;
    font-size: 13px;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    margin-top: 8px;
}

.summary-security {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.trust-badge img {
    height: 32px;
    width: auto;
}

/* Checkout Help */
.checkout-help {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.checkout-help h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.checkout-help p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Footer Checkout */
.footer-checkout {
    background: white;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.footer-checkout-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-checkout-content p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-checkout-links {
    display: flex;
    gap: 24px;
}

.footer-checkout-links a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-checkout-links a:hover {
    color: var(--primary);
}

/* ===== RESULT PAGES ===== */
.result-page {
    background: var(--bg-secondary);
    min-height: 100vh;
}

.header-simple {
    background: white;
}

.result-main {
    padding: 60px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.result-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.result-icon {
    margin-bottom: 24px;
}

.result-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.result-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Transaction Details */
.transaction-details {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

.transaction-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row.highlight {
    background: var(--accent-light);
    margin: 8px -24px;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.detail-row.highlight .detail-value {
    color: var(--accent);
    font-size: 18px;
}

.wallet-value {
    font-family: monospace;
    font-size: 13px !important;
}

.copy-btn {
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px !important;
}

.status-badge.success {
    background: var(--accent-light);
    color: var(--accent);
}

/* Delivery Timeline */
.delivery-status {
    text-align: left;
    margin-bottom: 32px;
}

.delivery-status h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.delivery-timeline {
    position: relative;
    padding-left: 28px;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
    padding-left: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.timeline-content {
    display: flex;
    flex-direction: column;
}

.timeline-title {
    font-weight: 500;
    font-size: 14px;
}

.timeline-time {
    font-size: 13px;
    color: var(--text-muted);
}

.timeline-item.completed .timeline-title {
    color: var(--text-primary);
}

.timeline-item.pending .timeline-title {
    color: var(--text-muted);
}

.timeline-item.active .timeline-title {
    color: var(--primary);
}

/* Result Notice */
.result-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: left;
    margin-bottom: 32px;
}

.result-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.result-notice p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Error Details (Failed Page) */
.error-details {
    margin-bottom: 32px;
}

.error-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.error-reason {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--error-light);
    border-radius: var(--radius);
    text-align: left;
}

.error-reason span {
    font-size: 15px;
    color: var(--error);
}

/* Troubleshooting */
.troubleshooting {
    text-align: left;
    margin-bottom: 32px;
}

.troubleshooting h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.troubleshooting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.troubleshooting-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.troubleshooting-list svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Transaction Reference */
.transaction-reference {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
}

.reference-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* Footer Simple */
.footer-simple {
    background: white;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.footer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-simple-content p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-simple-links a {
    font-size: 14px;
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .assets-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compliance-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-section {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }
    
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .steps {
        flex-direction: column;
        gap: 32px;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .compliance-badges {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .checkout-steps-indicator {
        flex-wrap: wrap;
    }
    
    .step-indicator .step-label {
        display: none;
    }
    
    .checkout-form-section {
        padding: 24px;
    }
    
    .amount-input-group {
        grid-template-columns: 1fr;
    }
    
    .amount-swap {
        transform: rotate(90deg);
        padding: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .result-card {
        padding: 32px 24px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .footer-checkout-content,
    .footer-simple-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
/* ===== LEGAL PAGES ===== */
.legal-page {
    background: var(--bg-secondary);
}

.legal-main {
    padding: 60px 0 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.legal-header {
    background: var(--primary);
    color: white;
    padding: 48px;
    text-align: center;
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    opacity: 0.8;
}

.legal-body {
    padding: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
    list-style-type: disc;
}

.legal-section li strong {
    color: var(--text-primary);
}

.contact-info {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 16px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Mobile Legal Pages */
@media (max-width: 768px) {
    .legal-header {
        padding: 32px 24px;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-body {
        padding: 32px 24px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 16px;
    }
}
/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.toast-error {
    background: #dc2626;
}

.toast-success {
    background: #059669;
}

/* Validation Messages */
.validation-success,
.validation-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.validation-success {
    color: #10b981;
}

.validation-error {
    color: #ef4444;
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Button Success State */
.btn-success {
    background: #10b981 !important;
}

/* Card Input Wrapper */
.card-input-wrapper {
    position: relative;
}

.card-type-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.card-type-icon img {
    height: 24px;
    width: auto;
}
/* Добавьте в styles.css */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}