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


    body {
        font-family: 'Segoe UI', sans-serif;
        background: #0f0f0f;
        color: #e0e0e0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 2rem 1rem 4rem;
    }



    .card {
        background: #1a1a1a;
        border: 1px solid #2a2a2a;
        border-radius: 12px;
        padding: 2.5rem 2rem;
        width: 100%;
        max-width: 560px;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
        color: #fff;
    }

    p.subtitle {
        font-size: 0.85rem;
        color: #888;
    }

    p.disclaimer {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0.75rem 1rem;
        background: #2a1a00;
        border: 1px solid #7a4800;
        border-radius: 6px;
        font-size: 0.8rem;
        color: #f0a040;
    }

    button {
        width: 100%;
        padding: 0.75rem;
        background: #7b3fe4;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    button:hover {
        background: #6530c2;
    }

    button:disabled {
        background: #444;
        cursor: not-allowed;
    }

    .result {
        margin-top: 1.5rem;
        display: none;
    }

    .field {
        margin-bottom: 1.2rem;
    }

    label {
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #888;
        margin-bottom: 0.4rem;
    }

    .value {
        background: #111;
        border: 1px solid #2a2a2a;
        border-radius: 6px;
        padding: 0.6rem 0.8rem;
        font-family: monospace;
        font-size: 0.82rem;
        word-break: break-all;
        overflow-wrap: break-word;
        white-space: normal;
        color: #c9b8ff;
        cursor: pointer;
        position: relative;
        transition: border-color 0.2s;
    }

    .value:hover {
        border-color: #7b3fe4;
    }

    .copy-hint {
        font-size: 0.7rem;
        color: #555;
        margin-top: 0.25rem;
    }

    .warning {
        margin-top: 1.5rem;
        padding: 0.75rem 1rem;
        background: #2a1a00;
        border: 1px solid #7a4800;
        border-radius: 6px;
        font-size: 0.8rem;
        color: #f0a040;
    }

    .error {
        margin-top: 1rem;
        color: #f06060;
        font-size: 0.85rem;
        display: none;
    }

    .btn-download {
        background: #1e3a2f;
        border: 1px solid #2e6b4f;
        color: #4caf87;
    }

    .btn-download:hover {
        background: #1a4d3a;
    }

    .btn-import {
        background: #1a2a3a;
        border: 1px solid #2e5080;
        color: #5aabf0;
    }

    .btn-import:hover {
        background: #1a3550;
    }

    .btn-row {
        display: flex;
        gap: 0.6rem;
        margin-top: 0.6rem;
    }

    .btn-row button {
        flex: 1;
        width: auto;
    }

    .import-section {
        margin-top: 1.5rem;
        border-top: 1px solid #2a2a2a;
        padding-top: 1.5rem;
    }

    .import-label {
        font-size: 0.8rem;
        color: #888;
        margin-bottom: 0.6rem;
    }

    .wallets-section {
        margin-top: 1.5rem;
        border-top: 1px solid #2a2a2a;
        padding-top: 1.5rem;
    }

    .wallets-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #888;
        margin-bottom: 0.6rem;
    }

    .wallets-count {
        text-transform: none;
        letter-spacing: normal;
        color: #555;
    }

    .wallets-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        max-height: 220px;
        overflow-y: auto;
    }

    .wallet-entry {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #111;
        border: 1px solid #2a2a2a;
        border-radius: 6px;
        padding: 0.45rem 0.7rem;
        gap: 0.5rem;
    }

    .wallet-entry-info {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        min-width: 0;
    }

    .wallet-entry-addr {
        font-family: monospace;
        font-size: 0.8rem;
        color: #c9b8ff;
    }

    .wallet-entry-date {
        font-size: 0.68rem;
        color: #555;
    }

    .wallet-entry-actions {
        display: flex;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .btn-sm {
        width: auto;
        padding: 0.25rem 0.55rem;
        font-size: 0.72rem;
        border-radius: 5px;
    }

    .btn-load-wallet {
        background: #1a2a3a;
        border: 1px solid #2e5080;
        color: #5aabf0;
    }

    .btn-load-wallet:hover {
        background: #1a3550;
    }

    .btn-delete-wallet {
        background: #2a1a1a;
        border: 1px solid #6a2a2a;
        color: #f06060;
    }

    .btn-delete-wallet:hover {
        background: #3a1a1a;
    }

    .faq-card {
        background: #1a1a1a;
        border: 1px solid #2a2a2a;
        border-radius: 12px;
        padding: 2rem;
        width: 100%;
        max-width: 560px;
        margin-top: 3rem;
    }

    .faq-heading {
        font-size: 1rem;
        color: #fff;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .faq-item {
        border-top: 1px solid #2a2a2a;
    }

    .faq-item:last-child {
        border-bottom: 1px solid #2a2a2a;
    }

    .faq-question {
        cursor: pointer;
        padding: 0.75rem 0;
        font-size: 0.88rem;
        color: #c9b8ff;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
    }

    .faq-question::-webkit-details-marker {
        display: none;
    }

    .faq-question::after {
        content: '+';
        font-size: 1.1rem;
        color: #555;
        flex-shrink: 0;
        margin-left: 0.75rem;
        transition: transform 0.2s;
    }

    details[open] .faq-question::after {
        content: '−';
    }

    .faq-answer {
        font-size: 0.82rem;
        color: #aaa;
        padding: 0 0 0.85rem 0;
        line-height: 1.6;
    }

    .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 0.75rem 1rem;
        background: #0f0f0f;
        border-top: 1px solid #2a2a2a;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.25rem;
        flex-wrap: wrap;
        font-size: 0.78rem;
        color: #ffffff;
        text-align: center;
        z-index: 100;
    }

    .footer-links {
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links a {
        color: #fff;
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer-links a:hover {
        color: #c9b8ff;
    }

    .balance-section {
        margin-top: 1.25rem;
        border-top: 1px solid #2a2a2a;
        padding-top: 1rem;
    }

    .network-switcher {
        display: flex;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #2a2a2a;
        margin-bottom: 0.85rem;
    }

    .btn-network {
        flex: 1;
        width: auto;
        padding: 0.45rem 0;
        border-radius: 0;
        border: none;
        background: #111;
        color: #888;
        font-size: 0.8rem;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }

    .btn-network + .btn-network {
        border-left: 1px solid #2a2a2a;
    }

    .btn-network.active {
        background: #7b3fe4;
        color: #fff;
    }

    .btn-network:hover:not(.active) {
        background: #1e1e1e;
        color: #ccc;
    }

    .token-switcher {
        display: flex;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #2a2a2a;
        margin-bottom: 0.85rem;
    }

    .btn-token {
        flex: 1;
        width: auto;
        padding: 0.4rem 0;
        border-radius: 0;
        border: none;
        background: #111;
        color: #888;
        font-size: 0.78rem;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }

    .btn-token + .btn-token {
        border-left: 1px solid #2a2a2a;
    }

    .btn-token.active {
        background: #2a1f4a;
        color: #c9b8ff;
    }

    .btn-token:hover:not(.active) {
        background: #1e1e1e;
        color: #ccc;
    }

    .balance-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.82rem;
    }

    .balance-label {
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.75rem;
    }

    .balance-value {
        font-family: monospace;
        color: #4caf87;
        font-size: 0.9rem;
    }

    .send-section {
        margin-top: 1.25rem;
        border-top: 1px solid #2a2a2a;
        padding-top: 1rem;
    }

    .send-heading {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #888;
        margin-bottom: 0.75rem;
    }

    .send-input {
        width: 100%;
        background: #111;
        border: 1px solid #2a2a2a;
        border-radius: 6px;
        padding: 0.55rem 0.8rem;
        font-family: monospace;
        font-size: 0.82rem;
        color: #e0e0e0;
        outline: none;
        transition: border-color 0.2s;
    }

    .send-input:focus {
        border-color: #7b3fe4;
    }

    .btn-send {
        margin-top: 0.75rem;
        background: #7b3fe4;
        color: #fff;
        border: none;
    }

    .btn-send:hover {
        background: #6530c2;
    }

    .btn-buy {
        margin-top: 0.6rem;
        background: #1a3520;
        border: 1px solid #2e6b3a;
        color: #4cdf80;
    }

    .btn-buy:hover {
        background: #1e4528;
    }

    .btn-sell {
        margin-top: 0.6rem;
        background: #351a1a;
        border: 1px solid #6b2e2e;
        color: #ff6f6f;
        width: 100%;
        border-radius: 8px;
        font-size: 1rem;
        transition: background 0.2s;
    }

    .btn-sell:hover {
        background: #451e1e;
    }

    .send-status {
        margin-top: 0.6rem;
        font-size: 0.8rem;
        line-height: 1.5;
        display: block;
    }

    .send-status--error {
        color: #f06060;
    }

    .send-status--ok {
        color: #4caf87;
    }
