:root {
    color-scheme: dark;
    --bg: #07070b;
    --panel: rgba(16, 16, 26, 0.92);
    --panel-strong: #11111d;
    --text: #f7f7ff;
    --muted: #b7b9c8;
    --cyan: #00f5ff;
    --pink: #ff3d81;
    --lime: #bbff3d;
    --line: rgba(255, 255, 255, 0.13);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        linear-gradient(120deg, rgba(0, 245, 255, 0.12), transparent 34%),
        linear-gradient(250deg, rgba(255, 61, 129, 0.14), transparent 38%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 7px),
        var(--bg);
}

button,
input,
select,
textarea {
    font: inherit;
}

.tip-shell {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 16px;
    display: grid;
    place-items: center;
}

.tip-card {
    width: min(100%, 620px);
    padding: clamp(22px, 5vw, 36px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--lime));
}

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

.brand-lockup .brand-logo,
.thanks-card .brand-logo,
.tip-card .brand-logo,
.brand-logo {
    width: auto !important;
    height: 46px !important;
    max-width: 120px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    display: block !important;
    flex: 0 0 auto !important;
    filter: drop-shadow(0 0 14px rgba(0, 245, 255, 0.25));
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.7rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 3px 0 rgba(255, 61, 129, 0.72), -2px 0 rgba(0, 245, 255, 0.45);
}

.intro,
.success-copy {
    margin: 22px 0 26px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.55;
}

.creator-purpose-box {
    display: grid;
    gap: 5px;
    margin: -8px 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.035);
}

.creator-purpose-box h2 {
    margin: 0;
    color: var(--cyan);
    font-size: 0.84rem;
    line-height: 1.25;
    text-shadow: 2px 0 rgba(255, 61, 129, 0.32);
}

.creator-purpose-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.42;
}

.top-twitch-address {
    margin: -16px 0 18px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.top-twitch-address span {
    color: rgba(247, 247, 255, 0.84);
    font-weight: 850;
}

.top-twitch-address a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 850;
}

.top-twitch-address a:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.donation-goal-public {
    --goal-progress: 0%;
    --goal-bg-opacity: 0.82;
    --goal-effect-intensity: 0.55;
    --goal-effect-speed: 7s;
    position: relative;
    display: grid;
    gap: 10px;
    margin: -4px 0 18px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.donation-goal-public--background {
    background:
        linear-gradient(135deg, rgba(0, 245, 255, calc(0.11 * var(--goal-bg-opacity))), transparent 52%),
        linear-gradient(260deg, rgba(255, 61, 129, calc(0.10 * var(--goal-bg-opacity))), transparent 58%),
        rgba(255, 255, 255, calc(0.04 * var(--goal-bg-opacity)));
}

.donation-goal-public--neon,
.donation-goal-public--neon_line {
    border-color: rgba(0, 245, 255, 0.34);
}

.donation-goal-public--cyber_chaos,
.donation-goal-public--hud_corner {
    border-color: rgba(255, 61, 129, 0.32);
}

.donation-goal-public--minimal,
.donation-goal-public--minimal_floating {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.donation-goal-public--effect-rainbow_runner::before,
.donation-goal-public--effect-cyber_pulse::before,
.donation-goal-public--effect-electric_surge::before,
.donation-goal-public--effect-scanline::before,
.donation-goal-public--effect-chaos_flicker::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: calc(0.22 * var(--goal-effect-intensity));
}

.donation-goal-public--effect-rainbow_runner::before {
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.35), rgba(255, 61, 129, 0.35), transparent);
    transform: translateX(-100%);
    animation: goal-runner var(--goal-effect-speed) linear infinite;
}

.donation-goal-public--effect-cyber_pulse::before,
.donation-goal-public--effect-electric_surge::before,
.donation-goal-public--effect-chaos_flicker::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.28), transparent 36%),
        radial-gradient(circle at 80% 70%, rgba(255, 61, 129, 0.28), transparent 34%);
    animation: goal-pulse var(--goal-effect-speed) ease-in-out infinite;
}

.donation-goal-public--effect-scanline::before {
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16) 1px, transparent 1px, transparent 8px);
}

.donation-goal-public__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.donation-goal-public h2 {
    margin: 0;
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.25;
    text-shadow: 2px 0 rgba(0, 245, 255, 0.3);
    overflow-wrap: anywhere;
}

.donation-goal-public__percent {
    flex: 0 0 auto;
    color: var(--lime);
    font-size: 0.86rem;
    font-weight: 950;
}

.donation-goal-public__description {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.donation-goal-public__track {
    position: relative;
    z-index: 1;
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.donation-goal-public--progress-line .donation-goal-public__track {
    height: 6px;
    border-radius: 0;
}

.donation-goal-public__bar {
    display: block;
    width: var(--goal-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--pink), var(--lime));
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.38);
}

.goal-option--has-progress .donation-goal-public__bar {
    min-width: 2px;
}

.donation-goal-public__amounts {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.donation-goal-public__amounts span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.donation-goal-public--compact {
    gap: 8px;
    padding: 12px;
}

.donation-goal-public--compact .donation-goal-public__description {
    display: none;
}

.goal-selector {
    display: grid;
    gap: 12px;
    margin-bottom: 4px;
}

.goal-selector__heading h2,
.goal-selector__heading p,
.goal-selector__summary {
    margin: 0;
}

.goal-selector__heading h2 {
    color: var(--text);
    font-size: 1rem;
}

.goal-selector__heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.goal-selector__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.goal-option {
    --goal-progress: 0%;
    position: relative;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.24);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.goal-option:hover {
    border-color: rgba(0, 245, 255, 0.58);
    transform: translateY(-1px);
}

.goal-option:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.goal-option:disabled {
    cursor: wait;
    opacity: 0.72;
}

.goal-option.is-selected {
    border-color: var(--cyan);
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.13), transparent 55%),
        rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.3), 0 0 22px rgba(0, 245, 255, 0.18);
}

.goal-option.is-selected::after {
    content: "Selected";
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: var(--cyan);
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.goal-option--general {
    align-content: center;
    min-height: 112px;
}

.goal-option--title-only {
    align-content: start;
    min-height: 72px;
    padding-bottom: 30px;
}

.goal-option__general-title,
.donation-goal-public__title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.goal-option__general-copy {
    color: var(--muted);
    font-size: 0.84rem;
}

.goal-option .donation-goal-public__description {
    display: block;
    text-align: left;
}

.goal-option .donation-goal-public__amounts {
    padding-bottom: 12px;
}

.goal-selector__summary {
    color: var(--lime);
    font-size: 0.88rem;
    font-weight: 850;
}

.tip-form {
    display: grid;
    gap: 14px;
}

.amount-block {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend,
.field-label {
    display: block;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.preset-button,
.submit-button,
.secondary-link {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.preset-button {
    padding: 0 8px;
    font-weight: 800;
    white-space: nowrap;
}

.preset-button:hover,
.preset-button.is-active {
    border-color: var(--cyan);
    background: rgba(0, 245, 255, 0.14);
}

.money-field {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: var(--panel-strong);
}

.money-field input,
input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--text);
    background: var(--panel-strong);
    outline: none;
}

.money-field input {
    min-width: 0;
    border: 0;
    background: transparent;
}

.money-field span {
    padding: 0 15px;
    color: var(--cyan);
    font-weight: 900;
}

input,
select,
textarea,
.money-field input {
    padding: 13px 14px;
}

.currency-select {
    min-height: 50px;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(0, 245, 255, 0.1), rgba(255, 61, 129, 0.08)),
        var(--panel-strong);
    font-weight: 900;
}

textarea {
    resize: vertical;
}

input.is-muted,
input:disabled {
    cursor: not-allowed;
    color: rgba(247, 247, 255, 0.58);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.09);
}

input:focus,
select:focus,
textarea:focus,
.money-field:focus-within {
    border-color: rgba(0, 245, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.14);
}

.field-help,
.fine-print,
.payment-placeholder {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    width: fit-content;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--cyan);
}

.checkbox-field span {
    color: var(--muted);
}

.consent-field {
    width: 100%;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.consent-field span {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
}

.stream-visibility-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 61, 129, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 61, 129, 0.08), transparent 48%),
        rgba(255, 255, 255, 0.035);
}

.stream-visibility-box h2 {
    margin: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.25;
    text-shadow: 2px 0 rgba(0, 245, 255, 0.32);
}

.stream-visibility-options {
    display: grid;
    gap: 6px;
}

.stream-visibility-box .checkbox-field {
    width: 100%;
    min-height: 34px;
}

.stream-info-box {
    padding: 14px;
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.075), transparent 48%),
        rgba(255, 255, 255, 0.035);
}

.stream-info-box h2 {
    margin: 0 0 8px;
    color: var(--cyan);
    font-size: 0.96rem;
    line-height: 1.25;
    text-shadow: 2px 0 rgba(255, 61, 129, 0.32);
}

.stream-info-box ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.chaos-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 61, 129, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 61, 129, 0.1), transparent 46%),
        rgba(0, 0, 0, 0.18);
}

.chaos-panel[hidden] {
    display: none;
}

.chaos-panel.is-locked {
    border-color: rgba(183, 185, 200, 0.24);
    background:
        linear-gradient(135deg, rgba(183, 185, 200, 0.08), transparent 46%),
        rgba(0, 0, 0, 0.18);
}

.chaos-locked-message {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(183, 185, 200, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.chaos-locked-message[hidden] {
    display: none;
}

.chaos-locked-message strong {
    color: var(--text);
    font-size: 0.92rem;
}

.chaos-locked-message span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.chaos-panel-header h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
    text-shadow: 2px 0 rgba(255, 61, 129, 0.45);
}

.chaos-panel-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.chaos-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.chaos-action {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
    text-align: left;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.chaos-action span {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 950;
}

.chaos-action strong {
    font-size: 0.94rem;
    line-height: 1.2;
}

.chaos-action:hover,
.chaos-action.is-selected {
    transform: translateY(-1px);
    border-color: var(--pink);
    background: rgba(255, 61, 129, 0.16);
}

.chaos-action:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.clear-action-button {
    justify-self: start;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
}

.payment-panel {
    min-height: 86px;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(0, 245, 255, 0.24);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.payment-element:empty {
    display: none;
}

.tip-message {
    min-height: 24px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.tip-message.is-error {
    color: #ff9cbd;
}

.tip-message.is-success {
    color: var(--lime);
    font-weight: 800;
}

.tip-message.is-info {
    color: var(--cyan);
}

.submit-button {
    position: relative;
    width: 100%;
    min-height: 54px;
    border-color: rgba(0, 245, 255, 0.5);
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.95), rgba(255, 61, 129, 0.95));
    color: #050508;
    font-size: 1.02rem;
    font-weight: 950;
    text-transform: uppercase;
}

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

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.submit-button.is-loading .button-text {
    opacity: 0;
}

.button-loader {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
}

.submit-button.is-loading .button-loader {
    display: grid;
}

.button-loader::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid rgba(5, 5, 8, 0.35);
    border-top-color: #050508;
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.fine-print {
    margin-top: 18px;
}

.legal-note {
    margin: 8px 0 0;
    color: rgba(183, 185, 200, 0.82);
    font-size: 0.78rem;
    line-height: 1.45;
}

.button-note {
    margin-top: -4px;
    text-align: center;
}

.content-proof-section {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.06), transparent 48%),
        rgba(255, 255, 255, 0.03);
}

.content-proof-section h2 {
    margin: 0;
    color: var(--cyan);
    font-size: 0.96rem;
    line-height: 1.25;
    text-shadow: 2px 0 rgba(255, 61, 129, 0.32);
}

.content-proof-section p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.content-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.content-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.content-card:hover {
    transform: translateY(-1px);
    border-color: var(--cyan);
    background: rgba(0, 245, 255, 0.12);
}

.content-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.18), rgba(255, 61, 129, 0.12)),
        var(--panel-strong);
}

.content-card-body {
    display: grid;
    gap: 7px;
    padding: 10px;
}

.content-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.2;
}

.content-card p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.content-card a {
    width: fit-content;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(0, 245, 255, 0.06);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 850;
}

.content-card a:hover {
    border-color: var(--cyan);
    background: rgba(0, 245, 255, 0.12);
}

.thankyou-note {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.thanks-card {
    text-align: center;
    max-width: 660px;
}

.thankyou-card {
    text-align: center;
}

.thankyou-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thankyou-card .brand-logo {
    display: block !important;
    margin: 0 auto 0.75rem auto !important;
}

.thankyou-logo {
    margin: 0 auto 0.75rem auto !important;
}

.thankyou-label {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.thankyou-title {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 0.95;
}

.thankyou-subtitle {
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.55;
}

.thanks-header {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.thanks-card .brand-lockup {
    justify-content: center;
    align-items: center;
}

.thanks-card .brand-logo {
    margin: 0 auto;
}

.thanks-card .thanks-logo {
    height: 48px !important;
    max-width: 130px !important;
    max-height: 48px !important;
    margin-bottom: 4px;
}

.thanks-title,
.thanks-card h1 {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.thanks-subtitle {
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-box {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(187, 255, 61, 0.34);
    border-radius: 8px;
    background: rgba(187, 255, 61, 0.07);
}

.tip-confirming p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.tip-confirmation {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.confirmation-label {
    margin: 0 0 12px;
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tip-details {
    display: grid;
    gap: 12px;
    margin: 0;
    text-align: left;
}

.tip-details div {
    display: grid;
    gap: 4px;
}

.tip-details dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tip-details dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.tip-detail-message dd {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.5;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.action-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-weight: 900;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.action-button:hover {
    transform: translateY(-1px);
    border-color: var(--cyan);
    background: rgba(0, 245, 255, 0.13);
}

.action-button-primary {
    color: #050508;
    border-color: rgba(0, 245, 255, 0.5);
    background: linear-gradient(90deg, rgba(0, 245, 255, 0.95), rgba(255, 61, 129, 0.95));
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--cyan);
    text-decoration: none;
    font-weight: 900;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes goal-runner {
    to {
        transform: translateX(100%);
    }
}

@keyframes goal-pulse {
    0%,
    100% {
        opacity: calc(0.12 * var(--goal-effect-intensity));
    }

    50% {
        opacity: calc(0.34 * var(--goal-effect-intensity));
    }
}

@media (max-width: 560px) {
    .tip-shell {
        padding: 16px 12px;
        align-items: start;
    }

    .tip-card {
        margin-top: 8px;
    }

    .preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-goal-public__header,
    .donation-goal-public__amounts {
        flex-direction: column;
        gap: 6px;
    }

    .goal-selector__grid {
        grid-template-columns: 1fr;
    }

    .chaos-actions {
        grid-template-columns: 1fr;
    }

    .preset-button:last-child {
        grid-column: span 2;
    }

    .brand-lockup .brand-logo,
    .thanks-card .brand-logo,
    .tip-card .brand-logo,
    .brand-logo {
        height: 40px !important;
        max-width: 100px !important;
        max-height: 40px !important;
    }

    .thankyou-actions,
    .thanks-actions {
        flex-direction: column;
    }

    .thankyou-actions a,
    .thanks-actions a {
        width: 100%;
    }

    .content-card-grid {
        grid-template-columns: 1fr;
    }

    .thanks-card .thanks-logo {
        height: 42px !important;
        max-height: 42px !important;
        max-width: 112px !important;
    }
}
