/* Demo Page Styles */

:root {
    --primary-dark: #0A1628;
    --primary: #1A2B4A;
    --primary-light: #2A3F5F;
    --accent: #00D9FF;
    --accent-light: #33E1FF;
    --accent-dark: #00B8D9;
    --success: #00C853;
    --warning: #FFB300;
    --error: #FF3D00;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.demo-header {
    background: rgba(26, 43, 74, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.demo-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-badge {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.demo-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-nav a:hover {
    color: var(--accent-light);
}

.demo-nav .lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-nav .lang-toggle:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Main Content */
.demo-main {
    padding: 60px 0 120px;
}

.demo-intro {
    text-align: center;
    margin-bottom: 48px;
}

.demo-intro h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-intro p {
    font-size: 20px;
    color: var(--gray-300);
}

/* Exchange Widget */
.exchange-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exchange-section {
    margin-bottom: 24px;
}

.exchange-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exchange-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.exchange-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
}

.exchange-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    outline: none;
}

.exchange-input::placeholder {
    color: var(--gray-500);
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.currency-selector:hover {
    background: rgba(0, 217, 255, 0.2);
}

.currency-flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.crypto-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.currency-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    min-width: 60px;
}

.currency-selector i {
    color: var(--gray-400);
    font-size: 14px;
}

.exchange-info {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-400);
}

.exchange-balance {
    font-weight: 500;
}

.exchange-rate {
    color: var(--accent);
    font-weight: 600;
}

/* Conversion Rate Display - Blue text below sections */
.conversion-rate-display {
    text-align: center;
    margin: 24px 0;
    padding: 16px;
    background: transparent;
}

.conversion-rate-display span {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Exchange Divider */
.exchange-divider {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.swap-button {
    background: var(--accent);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-dark);
    font-size: 20px;
}

.swap-button:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Exchange Details */
.exchange-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-row.total {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 2px solid rgba(0, 217, 255, 0.2);
    font-size: 18px;
    font-weight: 700;
}

.detail-label {
    color: var(--gray-400);
    font-weight: 500;
}

.detail-value {
    color: var(--white);
    font-weight: 600;
}

/* Wallet Section */
.wallet-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-input-group {
    display: flex;
    gap: 12px;
}

.wallet-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: var(--white);
    outline: none;
    transition: all 0.3s ease;
}

.wallet-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1);
}

.wallet-input::placeholder {
    color: var(--gray-500);
}

.paste-button {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    color: var(--accent);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.paste-button:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent);
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

.wallet-info i {
    color: var(--accent);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.btn-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.btn-action i {
    font-size: 32px;
    color: var(--accent);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.btn-subtitle {
    font-size: 13px;
    color: var(--gray-400);
}

.btn-bank {
    border-color: rgba(0, 200, 83, 0.3);
}

.btn-bank:hover {
    background: rgba(0, 200, 83, 0.1);
    border-color: var(--success);
}

.btn-deposit {
    border-color: rgba(255, 179, 0, 0.3);
}

.btn-deposit:hover {
    background: rgba(255, 179, 0, 0.1);
    border-color: var(--warning);
}

/* Continue Button */
.btn-continue {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.4);
}

/* Dropdown Modal */
.dropdown-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dropdown-modal.active {
    display: flex;
}

.dropdown-content {
    background: var(--primary);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-search {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-search i {
    color: var(--gray-400);
}

.dropdown-search input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--white);
    outline: none;
}

.dropdown-search input::placeholder {
    color: var(--gray-500);
}

.dropdown-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 217, 255, 0.1);
}

.dropdown-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown-item.fiat-item img {
    border-radius: 4px;
    height: 24px;
    width: 32px;
    object-fit: cover;
}

.dropdown-item-info {
    flex: 1;
}

.dropdown-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.dropdown-item-code {
    font-size: 14px;
    color: var(--gray-400);
}

.dropdown-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-modal.active {
    display: flex;
}

.success-content {
    background: var(--primary);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 24px;
}

.success-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.success-content p {
    color: var(--gray-300);
    margin-bottom: 32px;
}

.success-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.success-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.success-row span:first-child {
    color: var(--gray-400);
}

.success-row span:last-child {
    color: var(--white);
    font-weight: 600;
}

.mono {
    font-family: 'Courier New', monospace;
}

/* Demo Features */
.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.2);
}

.feature-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-intro h1 {
        font-size: 32px;
    }

    .demo-intro p {
        font-size: 16px;
    }

    .exchange-widget {
        padding: 24px;
    }

    .exchange-input {
        font-size: 24px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .demo-features {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 4px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}