@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-body: #0c0d16;
    --bg-header: #151b23;
    --bg-card: #1a1f2e;
    --bg-input: #131722;
    --bg-input-hover: #1a1f2e;
    --border: rgba(255,255,255,.08);
    --border-light: rgba(255,255,255,.12);
    --border-focus: #00b4d8;
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,.6);
    --text-muted: rgba(255,255,255,.35);
    --accent: #00b4d8;
    --accent-hover: #00cfff;
    --accent-glow: rgba(0,180,216,.25);
    --green: #00c853;
    --green-bg: rgba(0,200,83,.12);
    --orange: #ffab00;
    --orange-bg: rgba(255,171,0,.12);
    --red: #ff3d57;
    --red-bg: rgba(255,61,87,.12);
    --purple: #a855f7;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 16px 48px rgba(0,0,0,.5);
    --font: 'Montserrat', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

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

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ONLINE BADGE */
.online-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--green);
    background: var(--green-bg);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(0,200,83,.2);
}

.online-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,200,83,.4); }
    50% { opacity: .6; box-shadow: 0 0 0 4px rgba(0,200,83,0); }
}

/* HEADER */
.header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
    color: var(--text-secondary);
    font-size: .875rem;
    font-weight: 600;
    transition: color .2s;
    letter-spacing: .01em;
}
.nav a:hover { color: var(--text-primary); }

/* HERO */
.hero {
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,180,216,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -.02em;
    position: relative;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 36px;
    font-weight: 400;
    position: relative;
}

/* EXCHANGE BOX */
.exchange-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    position: relative;
}

.exchange-columns {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.exchange-col {
    flex: 1;
    min-width: 0;
}

.exchange-col-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.exchange-col-label .label-text {
    font-size: .8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.exchange-col-label .label-ccy {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.exchange-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    transition: border-color .2s;
}

.exchange-input-wrap:focus-within {
    border-color: var(--border-focus);
}

.exchange-input-wrap input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-family: var(--font);
    font-weight: 600;
    outline: none;
}

.exchange-input-wrap input::placeholder {
    color: var(--text-muted);
}

.ccy-select {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.06);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    appearance: none;
    min-width: 120px;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: background .2s;
}

.ccy-select:hover {
    background: rgba(255,255,255,.1);
}

.exchange-rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    margin-top: 4px;
}

.rate-text {
    font-size: .78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 500;
}

.rate-usd {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 30px 0 0;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
    transition: all .25s;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.swap-btn:hover {
    background: var(--accent);
    color: var(--bg-body);
    border-color: var(--accent);
    transform: rotate(180deg);
}

.exchange-bottom {
    margin-top: 20px;
}

.address-row {
    margin-bottom: 16px;
}

.address-row label {
    display: block;
    font-size: .8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.address-row input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: .9rem;
    font-family: var(--font);
    font-weight: 500;
    outline: none;
    transition: border-color .2s;
}

.address-row input:focus { border-color: var(--border-focus); }

.address-row input::placeholder {
    color: var(--text-muted);
}

.exchange-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.order-type-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.04);
    border-radius: 8px;
    padding: 4px;
}

.order-type-toggle .type-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    margin-right: 4px;
    white-space: nowrap;
}

.order-type-toggle button {
    background: transparent;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font);
    white-space: nowrap;
}

.order-type-toggle button.active {
    background: rgba(0,180,216,.15);
    color: var(--accent);
}

.order-type-toggle button:hover:not(.active) {
    color: var(--text-primary);
}

.error-msg {
    color: var(--red);
    font-size: .82rem;
    text-align: center;
    min-height: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}

.rate-info {
    font-size: .82rem;
    color: var(--text-secondary);
    text-align: center;
    min-height: 20px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.exchange-btn {
    padding: 14px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    font-family: var(--font);
    letter-spacing: .02em;
    white-space: nowrap;
    min-width: 180px;
}

.exchange-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.exchange-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* FEATURES */
.features {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -.02em;
}

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

.feature {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: border-color .2s, background .2s;
}

.feature:hover {
    border-color: var(--border-light);
    background: rgba(255,255,255,.05);
}

.feature-num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,180,216,.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature p {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.55;
    font-weight: 400;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

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

details {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    transition: border-color .2s;
}

details:hover {
    border-color: var(--border-light);
}

details[open] {
    border-color: rgba(0,180,216,.2);
}

summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
}

summary:hover { color: var(--accent); }

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all .2s;
    flex-shrink: 0;
    margin-left: 16px;
}

details[open] summary::after {
    content: '\2212';
    color: var(--accent);
}

details p {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.65;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: .82rem;
}

/* ORDER PAGE */
.order-section {
    padding: 60px 0;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.order-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.status-new { background: var(--orange-bg); color: var(--orange); }
.status-pending { background: var(--orange-bg); color: var(--orange); }
.status-exchange { background: rgba(0,180,216,.12); color: var(--accent); }
.status-withdraw { background: rgba(168,85,247,.12); color: var(--purple); }
.status-done { background: var(--green-bg); color: var(--green); }
.status-expired { background: var(--red-bg); color: var(--red); }
.status-emergency { background: var(--red-bg); color: var(--red); }

/* ORDER PROGRESS */
.order-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.order-progress::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border-light);
    transition: all .3s;
}

.progress-step.active .step-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.progress-step.current .step-dot {
    box-shadow: 0 0 0 5px var(--accent-glow);
}

.progress-step span {
    font-size: .68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.progress-step.active span { color: var(--text-primary); }

.order-details {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 24px;
}

.detail-col {
    flex: 1;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.detail-col h3 {
    font-size: .8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.detail-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font);
    margin-bottom: 14px;
    color: var(--accent);
}

.detail-label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.detail-address {
    font-size: .72rem;
    font-family: var(--font-mono);
    word-break: break-all;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.detail-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    padding-top: 40px;
    flex-shrink: 0;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--accent);
    padding: 5px 14px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font);
}

.copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.qr-container {
    text-align: center;
    margin: 24px 0;
}

.qr-img {
    max-width: 200px;
    border-radius: var(--radius);
}

.qr-container p {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.order-timer {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--orange);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.order-note {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
}

.order-note p {
    font-size: .85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { padding: 36px 0 28px; }
    .exchange-box { padding: 20px; }
    .exchange-columns { flex-direction: column; gap: 0; }
    .swap-btn { margin: -10px auto; }
    .exchange-footer { flex-direction: column; gap: 12px; }
    .exchange-btn { width: 100%; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .order-details { flex-direction: column; }
    .detail-arrow { display: none; }
    .nav { gap: 16px; }
    .nav a { font-size: .8rem; }
    .order-type-toggle { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; gap: 8px; height: auto; padding: 12px 0; }
    .exchange-input-wrap input { font-size: 1rem; }
    .order-progress { overflow-x: auto; gap: 8px; }
    .hero h1 { font-size: 1.6rem; }
}
