:root {
    --bg: #000000;
    --card: #0b0b0b;
    --card-hover: #101010;

    --text: #ffffff;
    --muted: #9a9a9a;

    --border: #202020;
    --border-hover: #303030;

    --white: #ffffff;
    --red: #ef4444;

    --github: #6e7681;
    --youtube: #ff3b30;
    --discord: #5865f2;
    --green: #22c55e;

    --yellow: #facc15;
    --yellow-bg: rgba(250, 204, 21, 0.04);
    --green-bg: rgba(34, 197, 94, 0.04);
    --red-bg: rgba(239, 68, 68, 0.04);

    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
    display: flex;
    flex-direction: column;
}

button, input {
    font-family: inherit;
}

.header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .92);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
}

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

.brand-content {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 11px;
    color: var(--muted);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.donate-toggle {
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: transparent;
    border: 1.5px solid var(--green);
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.donate-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.donate-toggle:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--green);
    border-color: var(--green);
    color: #000;
}

.donate-toggle:disabled {
    background: #1c1c1e;
    border-color: #2c2c2e;
    color: #48484a;
    cursor: not-allowed;
    transform: none;
}

.socials {
    display: flex;
    gap: 8px;
}

.social {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    border: 1.5px solid;
}

.social svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social:hover {
    transform: translateY(-2px);
}

.github { color: var(--github); border-color: var(--github); }
.github:hover { background: rgba(110, 118, 129, .15); }

.youtube { color: var(--youtube); border-color: var(--youtube); }
.youtube:hover { background: rgba(255, 59, 48, .15); }

.discord { color: var(--discord); border-color: var(--discord); }
.discord:hover { background: rgba(88, 101, 242, .15); }

.container {
    width: min(860px, 100%);
    margin: 20px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.section-title h2 {
    font-size: 16px;
    font-weight: 700;
}

#count {
    font-size: 12px;
    color: var(--muted);
}

#throwsList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.throw {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform-origin: center;
    transition: opacity .18s ease, transform .18s ease;
}

.throw.removing {
    opacity: 0;
    transform: scale(.95) translateY(6px);
}

.throw-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 8px;
}

.input {
    height: 42px;
    background: #050505;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    color: #fff;
    outline: none;
    width: 100%;
    transition: border-color .15s ease;
}

.input:focus {
    border-color: #555;
}

.throw-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.clear-btn, .delete-btn {
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s ease, transform .15s ease, border-color .15s ease, color .15s ease;
}

.clear-btn svg, .delete-btn svg {
    width: 16px;
    height: 16px;
}

.clear-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.delete-btn.locked {
    opacity: .35;
    cursor: not-allowed;
}

.delete-btn.active {
    border-color: var(--red);
    color: var(--red);
}

.delete-btn.active:hover {
    background: rgba(239, 68, 68, .10);
    transform: translateY(-1px);
}

.actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-message {
    display: none;
    border: 1px solid var(--red);
    background: var(--red-bg);
    color: var(--red);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease, transform .15s ease, background .15s ease, border .15s ease, color .15s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
}

.btn-secondary:disabled {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    border: none;
    background: #fff;
    color: #000;
}

.btn-primary:disabled {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.result-card {
    border: 1px solid var(--border);
    background: #050505;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.result-label {
    font-size: 12px;
    color: var(--muted);
}

.result-value {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 800;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: min(440px, 92%);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

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

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
}

.modal-title svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.modal-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-info {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.select-header {
    height: 44px;
    background: #050505;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s ease;
}

.select-header:hover {
    border-color: var(--border-hover);
}

.select-header svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-select.active .select-header svg {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #0b0b0b;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
    display: block;
    transition: opacity 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.custom-select.active .select-options {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.select-option {
    padding: 12px 14px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.select-option:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.select-option.selected {
    color: var(--green);
    background: rgba(34, 197, 94, 0.03);
}

.address-box {
    display: flex;
    gap: 8px;
}

.address-input {
    height: 44px;
    color: var(--muted);
    cursor: default;
    background: #050505;
    font-size: 14px;
    text-overflow: ellipsis;
}

.address-copy-btn {
    height: 44px;
    min-width: 44px;
    background: #fff;
    border: none;
    border-radius: 10px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    padding: 0 16px;
    transition: transform 0.1s ease, background 0.15s ease;
}

.address-copy-btn:hover {
    background: #e5e5e5;
}

.address-copy-btn:active {
    transform: scale(0.96);
}

.address-copy-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.changelog-container {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 4px;
}

.changelog-container::-webkit-scrollbar {
    width: 4px;
}

.changelog-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.changelog-version-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-version-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.changelog-v-num {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.changelog-v-date {
    font-size: 11px;
    color: var(--muted);
}

.changelog-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 2px;
}

.changelog-item {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
}

.changelog-item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #050505;
    transition: border-color 0.15s ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-trigger {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-trigger span {
    font-size: 14px;
    font-weight: 600;
}

.faq-trigger svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item.active .faq-trigger svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0 16px;
}

.faq-item.active .faq-content {
    padding-bottom: 16px;
}

.faq-content p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.gif-container {
    position: relative;
    width: 100%;
    margin-top: 12px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0a0a0a;
}

.youtube-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0f0f11 25%, #18181c 50%, #0f0f11 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
    z-index: 1;
}

.tutorial-video {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.footer {
    margin-top: auto;
    padding: 20px 16px;
    border-top: 1px solid var(--border);
}

.warning-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 860px;
    margin: 0 auto 16px;
    border: 1px solid var(--yellow);
    background: var(--yellow-bg);
    border-radius: 12px;
    padding: 14px;
}

.warning-icon svg {
    width: 16px;
    height: 16px;
    color: var(--yellow);
}

.warning-text {
    color: var(--yellow);
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom-row {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 14px;
    justify-content: flex-start;
}

.footer-link {
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--muted);
}

.author-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.love-line {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.love-line svg {
    width: 11px;
    height: 11px;
    fill: var(--red);
    color: var(--red);
}

.footer-version-container {
    display: flex;
    justify-content: flex-end;
}

.version-link {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
    padding: 2px 4px;
}

.version-link:hover {
    color: #fff;
}

@media (max-width: 700px) {
    .throw-row {
        grid-template-columns: 1fr 1fr;
    }
    .throw-row .input:nth-child(3) {
        grid-column: span 2;
    }
    .header {
        padding: 0 14px;
    }
    .donate-text {
        display: none;
    }
    .donate-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
    }
    .social {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }
    .donate-toggle {
        width: 38px;
        height: 38px;
        border-width: 1.5px;
    }
    .address-copy-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        aspect-ratio: 1 / 1;
    }
    .copy-btn-text {
        display: none;
    }
    .footer-bottom-row {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .footer-version-container {
        justify-content: center;
    }
    .author-credits {
        order: -1;
    }
}


