:root {
    --button-back-color: #000;
    --button-fore-color: #fff;
    --maxw: 900px;
    --content-pad: clamp(18px, 5vw, 60px);
    --page-bg: #f3f3f3;
    --card-bg: #ffffff;
    --text-color: #111;
    --muted-text: #4a4a4a;
    --border-color: #d8d8d8;
    --accent-warm: #ffb100;
    --error-bg: #fff1f1;
    --error-border: #d94b4b;
    --error-text: #8e1f1f;
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 8px 18px rgba(0, 0, 0, 0.22);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--page-bg);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.main {
    max-width: var(--maxw);
    margin: 10px auto;
    padding: 28px var(--content-pad) 48px;
    box-sizing: border-box;
    font-size: clamp(17px, 1.95vw, 20px);
}

.lead {
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.6;
    margin-bottom: 20px;
}

p {
    margin: 0 0 20px 0;
}

strong,
b {
    font-weight: 800;
}

.signoff {
    margin-top: 8px;
    margin-bottom: 28px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 14px 0;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.chain-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 22px 18px;
    margin: 26px 0 28px;
    box-shadow: var(--shadow-soft);
}

.cashtag-list {
    margin: 0;
    padding-left: 1.9rem;
}

    .cashtag-list li {
        margin: 0 0 8px 0;
        font-size: 1.04em;
        font-weight: 500;
        min-height: 1.5em;
    }

        .cashtag-list li:empty {
            opacity: 0.3;
        }

    .cashtag-list .add-row {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
        margin-left: -1.9rem;
        min-height: 0;
    }

.plus-button {
    width: 40px;
    height: 40px;
    border: 2px solid #1c1c1c;
    border-radius: 999px;
    background: #fff;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .plus-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
    }

    .plus-button:active {
        transform: translateY(0);
    }

    .plus-button:focus-visible {
        outline: 3px solid rgba(255, 177, 0, 0.35);
        outline-offset: 3px;
    }

.inline-cashtag-input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.96em;
    font-weight: 500;
    border-radius: 14px;
    border: 2px solid #1c1c1c;
    background: #fff;
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .inline-cashtag-input::placeholder {
        color: #7b7b7b;
    }

    .inline-cashtag-input:focus {
        outline: none;
        border-color: var(--accent-warm);
        box-shadow: 0 0 0 4px rgba(255, 177, 0, 0.18);
    }

.error-message {
    margin: 0 0 18px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.45;
}

.powered-by-wrap {
    display: flex;
    justify-content: center;
    margin: 30px 0 6px;
}

.powered-by-wrap {
    display: flex;
    justify-content: center;
    margin: 30px 0 6px;
}

.powered-by-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    margin: 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe9ef 0%, #ffd9e3 100%);
    border: 1px solid rgba(200, 80, 110, 0.25);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.3;
    color: #6a2a3a;
    text-align: center;
}

.powered-by-pill a {
    color: #111;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 177, 0, 0.75);
    transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.powered-by-pill a:hover {
    color: #000;
    border-bottom-color: #111;
}

.powered-by-pill a:focus-visible {
    outline: 3px solid rgba(255, 177, 0, 0.35);
    outline-offset: 4px;
    border-radius: 4px;
}

    .powered-by-pill a {
        color: #111;
        font-weight: 800;
        text-decoration: none;
        border-bottom: 2px solid rgba(255, 177, 0, 0.75);
        transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    }

        .powered-by-pill a:hover {
            color: #000;
            border-bottom-color: #111;
        }

        .powered-by-pill a:focus-visible {
            outline: 3px solid rgba(255, 177, 0, 0.35);
            outline-offset: 4px;
            border-radius: 4px;
        }

@media (max-width: 614px) {
    .main {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .chain-section {
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 18px;
    }

    .cashtag-list .add-row {
        gap: 10px;
    }

    .plus-button {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .inline-cashtag-input {
        font-size: 16px;
        padding: 9px 12px;
    }

    .powered-by-pill {
        font-size: 0.68em;
        font-weight: 700;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plus-button,
    .inline-cashtag-input {
        transition: none;
    }
}
