/* ── OG Faucet Style ── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lucida Grande", "Segoe UI", Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

a {
    color: #1a0dab;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    background: #f4f4f4;
    padding: 1px 4px;
    word-break: break-all;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 24px 0;
}

/* ── Page ── */

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* ── Header ── */

.header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 16px;
}

.header-faucet {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

.header-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 52px;
    font-weight: normal;
    color: #8b0000;
    line-height: 1.1;
    margin-top: 8px;
}

/* ── Content layout ── */

.content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ── Sidebar ── */

.sidebar {
    flex: 0 0 140px;
    font-size: 13px;
    padding-top: 4px;
}

.sidebar-balance {
    font-size: 17px;
    font-weight: bold;
    color: #2a7a2a;
    margin-bottom: 0;
}

.sidebar-balance-sub {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: #777;
    margin-bottom: 0;
}

.sidebar-balance-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

.sidebar-section-title {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-top: 16px;
    margin-bottom: 2px;
}

.sidebar a {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

/* ── Copyable elements ── */

.copyable {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: #555;
    word-break: break-all;
    margin-bottom: 4px;
    cursor: pointer;
    position: relative;
    transition: color 0.15s;
}

.copyable:hover {
    color: #1a0dab;
    text-decoration: underline;
}

code.copyable {
    font-size: 12px;
    cursor: pointer;
}

code.copyable:hover {
    background: #e8e8ff;
    color: #1a0dab;
}

/* ── Copy toast ── */

.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Main ── */

.main {
    flex: 1;
    min-width: 0;
}

.main h2 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.main h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 6px;
}

.main > p {
    margin-bottom: 14px;
}

/* ── Math CAPTCHA ── */

.captcha-box {
    border: 3px solid #c44;
    border-radius: 4px;
    background: #fff8f0;
    padding: 14px 18px;
    margin: 14px 0;
}

.captcha-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-question {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.captcha-eq {
    font-size: 20px;
    color: #666;
}

.captcha-input {
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    width: 70px;
    padding: 4px 8px;
    border: 2px solid #c44;
    border-radius: 3px;
    text-align: center;
    background: #fff;
}

.captcha-input:focus {
    outline: none;
    border-color: #922;
}

.captcha-refresh {
    font-size: 20px;
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 8px;
    color: #666;
    line-height: 1;
}

.captcha-refresh:hover {
    background: #f0f0f0;
    color: #333;
}

/* ── Claim form row ── */

.claim-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.claim-row label {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.claim-row input[type="text"] {
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid #999;
    width: 300px;
    max-width: 100%;
}

.claim-row input[type="text"]:focus {
    outline: none;
    border-color: #555;
}

.claim-row button {
    font-size: 14px;
    padding: 4px 14px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #999;
    border-radius: 2px;
    white-space: nowrap;
}

.claim-row button:hover {
    background: #e0e0e0;
}

.claim-row button:disabled {
    color: #999;
    cursor: wait;
}

/* ── Status / eligibility messages ── */

.status-msg {
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 3px;
    font-size: 13px;
}

.status-msg.success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.status-msg.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.eligibility {
    padding: 8px 12px;
    margin: 6px 0 14px;
    border-radius: 3px;
    font-size: 13px;
}

.eligibility.success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.eligibility.warning {
    background: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.eligibility.error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* ── Claim result ── */

.claim-result {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 3px;
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 13px;
}

.claim-result h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #3c763d;
}

.claim-result p {
    margin-bottom: 4px;
    color: #333;
}

.claim-result a {
    color: #1a0dab;
}

/* ── Footer info ── */

.footer-info {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

.footer-info code {
    font-size: 10px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .header-title {
        font-size: 32px;
    }

    .header-faucet {
        width: 64px;
    }

    .content {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 20px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 14px;
        margin-bottom: 10px;
    }

    .sidebar-section-title {
        margin-top: 0;
    }

    .claim-row input[type="text"] {
        width: 100%;
    }

    .captcha-question {
        font-size: 18px;
    }

    .captcha-input {
        font-size: 16px;
        width: 60px;
    }
}
