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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Exchange Section */
.exchange-section {
    padding: 60px 20px;
}

.exchange-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.exchange-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 32px;
}

#exchangeForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.rate-info {
    display: block;
    font-size: 14px;
    color: #667eea;
    margin-top: 5px;
    font-weight: 500;
}

.btn-exchange {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-exchange:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Web3 Wallet Connection Styles */
.wallet-connect-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-wallet-connect {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}

.btn-wallet-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.5);
}

.or-divider {
    font-size: 14px;
    color: #999;
    font-weight: 600;
}

.wallet-connected-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #e8fff5;
    border: 2px solid #00ff88;
    border-radius: 10px;
    margin-top: 10px;
}

.wallet-connected-msg .icon {
    font-size: 24px;
}

.wallet-connected-msg strong {
    color: #00cc6a;
}

.wallet-connected-msg small {
    color: #666;
    font-size: 12px;
}

/* Wallet Modal */
.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.wallet-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.wallet-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.wallet-modal-body {
    padding: 25px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.wallet-option:hover {
    background: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.wallet-option img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.wallet-option strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.wallet-option small {
    display: block;
    font-size: 14px;
    color: #666;
}

.wallet-help {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.wallet-help p {
    color: #666;
    margin-bottom: 10px;
}

.wallet-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.wallet-help a:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
}

.features h2 {
    text-align: center;
    color: white;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 24px;
}

.feature-card p {
    color: #666;
}

/* FAQ Section */
.faq {
    padding: 60px 20px;
    background: white;
}

.faq h2 {
    text-align: center;
    color: #667eea;
    font-size: 36px;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Payment Page Styles */
.payment-section {
    padding: 30px 15px;
    min-height: calc(100vh - 150px);
}

.payment-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.payment-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #667eea;
    font-size: 24px;
    font-weight: 600;
}

.timer-box {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
}

.timer-label {
    font-size: 13px;
    margin-bottom: 3px;
    opacity: 0.9;
}

.timer {
    font-size: 28px;
    font-weight: 700;
}

.status-box {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-box.pending {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.status-box.success {
    background: #d4edda;
    border: 1px solid #28a745;
}

.status-box.expired {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

.status-icon {
    font-size: 24px;
    margin-bottom: 0;
}

.status-text {
    font-size: 16px;
    font-weight: 600;
}

/* Demo Mode Warning */
.demo-warning {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 3px solid #ffc107;
    border-radius: 15px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.demo-warning .demo-icon {
    font-size: 36px;
}

.demo-warning strong {
    color: #856404;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.demo-warning small {
    color: #856404;
    font-size: 14px;
}

/* Real Payment Badge */
.real-payment-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #28a745;
    border-radius: 15px;
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

.real-payment-badge .real-icon {
    font-size: 36px;
}

.real-payment-badge strong {
    color: #155724;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.real-payment-badge small {
    color: #155724;
    font-size: 14px;
}

.payment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-row .label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.detail-row .value {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.wallet-address {
    word-break: break-all;
    max-width: 60%;
    text-align: right;
    font-size: 12px;
    font-family: monospace;
}

.payment-address-box {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.payment-address-box h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.qr-code-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.qr-code {
    display: block;
    text-align: center;
}

.qr-code canvas {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.address-display {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.address-display input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
}

.btn-copy {
    padding: 8px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    font-size: 12px;
    margin-bottom: 0;
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.warning {
    color: #dc3545;
    font-weight: 500;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.order-id {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

.btn-back {
    display: block;
    text-align: center;
    padding: 10px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
    font-size: 14px;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

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

    .hero p {
        font-size: 16px;
    }

    .payment-box {
        padding: 25px;
        margin: 0 10px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile-specific fixes for payment page */
    .qr-code-wrapper {
        display: block;
        margin-bottom: 12px;
    }
    
    .qr-code-container {
        display: block;
        padding: 12px;
        margin: 0 auto;
        max-width: 70%;
    }
    
    .qr-code {
        display: block;
    }
    
    .qr-code canvas {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    .address-display {
        display: flex;
        gap: 6px;
        margin-bottom: 12px;
        align-items: center;
    }
    
    .address-display input {
        flex: 1;
        padding: 8px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 11px;
        font-family: monospace;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .btn-copy {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 4px;
    }
    
    .payment-address-box {
        padding: 15px;
    }
    
    .payment-details {
        padding: 12px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }
    
    .detail-row .label,
    .detail-row .value {
        text-align: left;
        width: 100%;
        font-size: 12px;
    }
    
    .wallet-address {
        max-width: 100%;
        word-break: break-word;
        font-size: 11px;
    }
    
    .timer {
        font-size: 24px;
    }
    
    .status-text {
        font-size: 14px;
    }
    
    .status-box {
        padding: 12px;
        gap: 8px;
    }
    
    .status-icon {
        font-size: 20px;
    }
    
    
}

/* FAQ Page Styles */
.faq-page {
    padding: 60px 20px;
    background: white;
    min-height: calc(100vh - 200px);
}

.page-title {
    text-align: center;
    color: #667eea;
    font-size: 42px;
    margin-bottom: 40px;
    padding-top: 20px;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.faq-category .faq-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.faq-category .faq-item h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.faq-category .faq-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-category .faq-item ol,
.faq-category .faq-item ul {
    margin-left: 20px;
    margin-top: 10px;
    color: #666;
    line-height: 1.8;
}

.faq-category .faq-item li {
    margin-bottom: 8px;
}

/* Privacy Page Styles */
.privacy-page {
    padding: 60px 20px;
    background: white;
    min-height: calc(100vh - 200px);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.privacy-section h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 20px;
}

.privacy-section h3 {
    color: #333;
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.privacy-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-section ul,
.privacy-section ol {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.privacy-section li {
    margin-bottom: 10px;
}

.privacy-section strong {
    color: #333;
}

.privacy-section a {
    color: #667eea;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

.last-updated {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.last-updated p {
    margin-bottom: 5px;
}

/* Support Page Styles */
.support-page {
    padding: 60px 20px;
    background: white;
    min-height: calc(100vh - 200px);
}

.support-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: #666;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.support-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.support-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.support-card p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-info {
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    word-break: break-all;
}

.btn-support {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-support:hover {
    transform: scale(1.05);
}

.common-issues {
    max-width: 900px;
    margin: 0 auto 60px;
}

.common-issues h2 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.issue-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.issue-item h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.issue-item p {
    color: #666;
    line-height: 1.8;
}

.contact-form-section {
    max-width: 700px;
    margin: 0 auto 60px;
}

.contact-form-section h2 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.business-info {
    max-width: 700px;
    margin: 0 auto;
    background: #f0f4ff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.business-info h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.business-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.business-info ul {
    list-style: none;
    color: #666;
    line-height: 1.8;
}

.business-info li {
    margin-bottom: 8px;
}

/* Additional security measures completely removed as per user request */

/* Allow image dragging */
img {
    -webkit-user-drag: auto;
    -khtml-user-drag: auto;
    -moz-user-drag: auto;
    -o-user-drag: auto;
    user-drag: auto;
}
