:root {
    --primary-blue: #3b82f6;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-cyan: #06b6d4;
    --primary-green: #10b981;
    --border-color: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(6, 182, 212, 0.06);
    --accent-glow: rgba(6, 182, 212, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: radial-gradient(ellipse at 50% 30%, #0f172a 0%, #070a15 50%, #03050b 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(8, 10, 18, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #e2e8f0, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

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

.lang-switcher select {
    appearance: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 5px 26px 5px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lang-switcher select:hover { border-color: rgba(255,255,255,0.18); }
.lang-switcher { position: relative; }
.lang-switcher::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}
.lang-switcher select option { background: #11131e; color: var(--text-primary); }

/* Main */
.main-container {
    padding-top: 56px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-bottom: 32px;
    width: 100%;
}

/* Hero */
.hero-section {
    width: 100%;
    max-width: 520px;
    padding: 24px 20px 20px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}
.badge svg { width: 12px; height: 12px; stroke: var(--accent-cyan); }

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-subtitle span { display: flex; align-items: center; gap: 5px; }
.hero-subtitle span svg { width: 13px; height: 13px; stroke: var(--accent-cyan); opacity: 0.8; }

/* Card */
.card {
    width: 100%;
    max-width: 440px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(12, 15, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.03), 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

.notice-box {
    color: #67e8f9;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.06);
    letter-spacing: 0.2px;
}

/* Input */
.input-area { margin-bottom: 4px; }

.trx-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 13px 16px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 14px;
    color: #e2e8f0;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    letter-spacing: 0.3px;
}
.trx-input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0;
}
.trx-input:focus {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.06);
}

.input-error { border-color: rgba(239, 68, 68, 0.5) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important; }

.error-text {
    color: rgba(239, 68, 68, 0.8);
    font-size: 12px;
    margin-top: 8px;
    display: none;
    text-align: left;
    padding-left: 4px;
}

.submit-area { margin-top: 14px; }

/* Submit button - glass accent */
.btn-submit {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    letter-spacing: 0.2px;
}
.btn-submit:hover {
    background: rgba(6, 182, 212, 0.14);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.06);
}
.btn-submit:active { transform: scale(0.97); background: rgba(6, 182, 212, 0.1); }
.btn-submit:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* Loading */
.loading-area { margin-bottom: 0; }

.loading-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-weight: 400;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    height: 5px;
    width: 100%;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #0891b2, #06b6d4, #22d3ee);
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.status-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 400;
    display: none;
}

/* Result */
.result-area { display: none; }

.success-title {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.success-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.success-address {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    word-break: break-all;
    padding: 10px 14px;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 18px;
    font-family: 'SF Mono', Monaco, monospace;
}

/* Result buttons */
.btn-group { display: flex; gap: 8px; justify-content: center; }

.btn-base {
    color: var(--accent-cyan);
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    width: 100%;
}
.btn-base:hover {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
}
.btn-base:active { transform: scale(0.97); }

/* Footer tip */
.footer-tip {
    margin-top: 24px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.12));
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.footer-tip-icon {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #34d399;
}
.footer-tip-icon svg { width: 16px; height: 16px; }
.footer-tip-content { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.footer-tip-text { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-tip-highlight { font-size: 13px; color: #34d399; font-weight: 600; }
.footer-tip-save { font-size: 11px; color: rgba(52, 211, 153, 0.6); }

/* FAQ */
.faq-section {
    width: 100%;
    max-width: 520px;
    margin: 36px auto 0;
    padding: 0 20px;
}

.faq-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.faq-section-title svg { width: 20px; height: 20px; stroke: var(--accent-cyan); opacity: 0.7; }

.faq-footer {
    margin-bottom: 16px;
    padding: 10px 16px;
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.08);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(6, 182, 212, 0.7);
    text-align: center;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.08); }

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.faq-q-icon {
    width: 26px;
    height: 26px;
    background: rgba(6, 182, 212, 0.06);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}
.faq-q-icon svg { width: 14px; height: 14px; opacity: 0.8; }

.faq-answer {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 36px;
}

/* Footer */
.footer-section {
    margin-top: auto;
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .card { padding: 24px 18px; }
    .navbar { padding: 0 16px; }
    .faq-answer { padding-left: 0; margin-top: 4px; }
}
