:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #bb86fc;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-header h1 {
    margin-top: 0;
    margin-bottom: 0.2rem;
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.1;
}

.subtitle {
    margin-top: 0;
    font-size: 1.2rem;
    color: #aaa;
}

.top-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-controls {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: #000;
}

.share-help {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.4rem;
    font-style: italic;
}

select {
    padding: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.story {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.action {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.input-field {
    width: 90%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #000;
}

.crypto-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.crypto-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.crypto-card h3 {
    margin-top: 0;
    color: #fff;
}

.qr-code {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 1rem auto;
    border-radius: 4px;
    display: block;
}

.crypto-address {
    background-color: var(--bg-color);
    padding: 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    user-select: all;
}

body.focus-mode .crypto-card:not(.focused) {
    opacity: 0.1;
    filter: blur(4px);
}

body.focus-mode .crypto-card.focused {
    transform: scale(1.1);
    z-index: 10;
    background-color: var(--bg-color);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 40px 5px rgba(255, 255, 255, 0.6),
                0 0 60px 10px rgba(255, 255, 255, 0.4);
    padding: 2rem;
}

body.focus-mode .crypto-card.focused h3 {
    color: #fff;
}

body.focus-mode .crypto-card.focused .crypto-address {
    background-color: #1e1e1e;
    color: #fff;
    border-color: #444;
}

body.focus-mode .crypto-card.focused .qr-code {
    filter: drop-shadow(0 0 15px white) drop-shadow(0 0 25px white);
}

body.focus-mode .crypto-card.focused .copy-btn {
    background-color: #fff;
    color: #000;
}

.copy-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    width: 100%;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 0.8;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 5;
}

body.focus-mode .overlay {
    display: block;
}

.disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    padding: 2rem;
}

.mobile-only {
    display: none;
}

.title-with-logo-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-left: 80px;
}

.logo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.header-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(187, 134, 252, 0.6));
}

@media (max-width: 768px) {
    .crypto-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mobile-only {
        display: block;
    }
    .read-more {
        color: var(--primary-color);
        font-weight: bold;
    }
    .crypto-matrix {
        grid-template-columns: 1fr;
    }
    .title-with-logo-container {
        flex-direction: row;
        align-items: center;
        padding-left: 85px;
        text-align: left;
        width: 100%;
    }
    .title-with-logo-container > div:not(.logo-wrapper) {
        flex-grow: 1;
        width: 100%;
    }
    .logo-wrapper {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }
    .hero-header h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }
    .subtitle {
        font-size: 1.05rem;
        margin-top: 0.3rem;
    }
    .hero {
        margin-bottom: 2rem;
    }
}