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

:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --surface-hover: #18181b;
    --border: #222225;
    --border-light: #2a2a2e;
    --text: #e4e4e7;
    --text-dim: #71717a;
    --text-muted: #52525b;
    --accent: #a78bfa;
    --accent-dim: rgba(167, 139, 250, 0.08);
    --green: #4ade80;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body), sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
    z-index: 1;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.lang-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
    animation: fadeIn 0.4s ease-out;
}

.lang-toggle {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 6px 11px;
    font-size: 0.75rem;
    font-family: var(--font-body), sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lang-btn.active {
    background: var(--border);
    color: var(--text);
}

.lang-btn:hover:not(.active) {
    color: var(--text-dim);
}

.header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeIn 0.6s ease-out;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.header p {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto;
}

.section-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    animation: fadeIn 0.6s ease-out 0.15s both;
}

.kofi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.da-card {    margin-bottom: 40px;    animation-delay: 0.15s;}
.kofi-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.kofi-card svg {
    flex-shrink: 0;
}

.kofi-card span {
    font-size: 0.95rem;
    font-weight: 400;
}

.kofi-arrow {
    margin-left: auto;
    opacity: 0.4;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

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

.crypto-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.crypto-card:nth-child(1) {
    animation: slideUp 0.5s ease-out 0.25s both;
}

.crypto-card:nth-child(2) {
    animation: slideUp 0.5s ease-out 0.30s both;
}

.crypto-card:nth-child(3) {
    animation: slideUp 0.5s ease-out 0.35s both;
}

.crypto-card:nth-child(4) {
    animation: slideUp 0.5s ease-out 0.40s both;
}

.crypto-card:hover {
    border-color: var(--border-light);
}

.crypto-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

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

.crypto-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono), monospace;
    flex-shrink: 0;
}

.icon-btc {
    background: rgba(247, 147, 26, 0.12);
    color: #f7931a;
}

.icon-eth {
    background: rgba(98, 126, 234, 0.12);
    color: #627eea;
}

.icon-usdt {
    background: rgba(38, 161, 123, 0.12);
    color: #26a17b;
}

.icon-sol {
    background: rgba(153, 69, 255, 0.12);
    color: #9945ff;
}

.crypto-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.crypto-network {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.crypto-toggle {
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.crypto-card.open .crypto-toggle {
    transform: rotate(180deg);
}

.crypto-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.crypto-card.open .crypto-body {
    max-height: 500px;
}

.crypto-body-inner {
    padding: 0 18px 18px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.address-text {
    flex: 1;
    font-family: var(--font-mono), monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    word-break: break-all;
    line-height: 1.5;
}

.copy-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-family: var(--font-body), sans-serif;
    white-space: nowrap;
}

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

.copy-btn.copied {
    border-color: var(--green);
    color: var(--green);
    background: rgba(74, 222, 128, 0.08);
}

.qr-container {
    display: flex;
    justify-content: center;
}

.qr-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: inline-flex;
}

.warning, .min-deposit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.55;
}

.warning svg, .min-deposit svg {
    flex-shrink: 0;
}

.warning {
    margin-top: 28px;
    animation: fadeIn 0.6s ease-out 0.55s both;
}

.warning strong {
    color: #facc15;
    font-weight: 600;
}

.footer {
    text-align: center;
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.78rem;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.network-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.network-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-family: var(--font-body), sans-serif;
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.network-tab.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.network-tab:hover:not(.active) {
    color: var(--text-dim);
    border-color: var(--border-light);
}

.address-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.min-deposit {
    margin-bottom: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.anim-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.anim-item {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.lang-btn--x {
    font-size: 0.85rem !important;
    line-height: 1;
}

.lang-btn--x.active {
    background: rgba(167, 139, 250, 0.12) !important;
}

@media (max-width: 480px) {
    .page {
        padding: 32px 16px 60px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .address-text {
        font-size: 0.65rem;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}
