:root {
    --bg: #0f1115;
    --bg2: #171a21;
    --card: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8ecf1;
    --muted: #8b95a7;
    --accent: #4cc2ff;
    --shadow: rgba(0, 0, 0, 0.45);
    --green: #00ff99;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at top, #1b2230 0%, var(--bg2) 35%, var(--bg) 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

.header {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.18);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.channel-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.channel-label {
    white-space: nowrap;
}

.channel-input {
    width: 170px;
    max-width: 46vw;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.channel-input:focus {
    border-color: rgba(76, 194, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(76, 194, 255, 0.12);
}

.channel-input::placeholder {
    color: #6b7280;
}

.live {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.6s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px;
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px var(--shadow);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.hero {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.hero h1 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.05;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

textarea {
    width: 100%;
    flex: 1;
    min-height: 0;
    resize: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.24);

    border-radius: 22px;
    padding: 16px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    outline: none;
    transition: 0.2s ease;
}

textarea:focus {
    border-color: rgba(76, 194, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(76, 194, 255, 0.12);
}

textarea::placeholder {
    color: #6b7280;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

footer {
    width: 100%;
    flex-shrink: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    background: rgba(10, 10, 10, 0.12);
    flex-wrap: wrap;
}

.footer-sep {
    opacity: 0.4;
}



.donate-btn {
    background: none;
    border: none;
    color: orange;
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: opacity .12s ease, transform .12s ease;
}

.donate-btn:hover {
    text-decoration: none;
    text-shadow: 0 0 8px orange, 0 0 16px orange;
    outline: none;
}

.donate-btn:active {
    opacity: 0.7;
    outline: none;
}

#fingerprint {
    font-family: monospace;
    color: var(--accent);
}


textarea:read-only {
    opacity: 0.7;
    cursor: not-allowed;
}

.textarea-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
}

.textarea-wrap textarea {
    flex: 1;
}


.textarea-action-btn {
    position: absolute;

    right: 12px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.45);

    color: var(--accent);

    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    backdrop-filter: blur(6px);

    transition: 0.15s ease;
}

.textarea-action-btn:hover {
    transform: scale(1.05);

    background: rgba(255, 255, 255, 0.12);

    text-shadow:
        0 0 8px var(--accent),
        0 0 16px var(--accent);
}

.textarea-action-btn:active {
    transform: scale(0.96);
}

.clear-btn {
    top: 12px;
}

.qr-btn {
    top: 60px;
    padding-top: 3px;
}

.copy-btn {
    top: 106px;
    padding-top: 2px;
}

.paste-btn {
    top: 152px;
    padding-top: 2px;
}


@media (max-width: 700px) {
    .header {
        padding: 10px 12px;
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .brand {
        gap: 10px;
    }

    .title {
        font-size: 17px;
    }

    .subtitle {
        display: none;
    }

    .live {
        font-size: 12px;
        gap: 8px;
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .channel-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .channel-input {
        width: 100%;
        max-width: none;
        flex: 1;
    }

    .container {
        padding: 10px;
    }

    .card {
        padding: 14px;
        border-radius: 20px;
    }

    .hero {
        margin-bottom: 8px;
    }

   .hero h1 {
        font-size: 18px;
        line-height: 1.08;
        max-width: none;
    }

    .hero p {
        display: none;
    }

    textarea {
        padding: 14px;
        font-size: 14px;
        border-radius: 18px;
    }

    .footer-bar {
        align-items: flex-start;
        gap: 4px;
        margin-top: 10px;
        font-size: 11px;
    }

    footer {
        padding: 8px 12px;
        font-size: 12px;
        gap: 10px;
    }

    .donate-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 12px;
    }

    #fingerprint {
        font-family: monospace;
        font-size: 13px;
        font-weight: 600;
    }
}