

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

.brand h1 {
    font-size: 24px;
    margin: 0;
    letter-spacing: .3px;
}

.badge-pill {
    padding: 6px 10px;
    border-radius: 100px;
    background: #f3f4f6;
    color: #334155;
    font-size: 12px;
}

/* Layout */
.grid {
    display: grid;
    gap: 24px;
    align-items: start;
    grid-template-columns: 1.05fr .95fr;
    /* left/right */
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(2, 6, 23, .06);
    background: #ffffff;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .2px;
}

.card-body {
    padding: 20px;
}

/* Form */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.label {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.req {
    color: var(--danger);
}

.input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: #3281c430;
    /* subtle blue tint */
    color: var(--text);
    outline: none;
    transition: .2s border-color, .2s box-shadow;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width:600px) {
    .row2 {
        grid-template-columns: 1fr;
    }
}

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.switch {
    inline-size: 42px;
    block-size: 26px;
    border-radius: 999px;
    background: #1f2a44;
    position: relative;
    transition: .25s background;
    border: 1px solid rgba(148, 163, 184, .18);
}

.switch::after {
    content: "";
    position: absolute;
    inset: 3px auto 3px 3px;
    width: 20px;
    border-radius: 999px;
    background: #fff;
    transition: .25s left, .25s transform;
}

.switch.on {
    background:#2e2b8f;
}

.switch.on::after {
    left: calc(100% - 23px);
}

.helper {
    font-size: 12px;
    color: var(--muted);
    margin-top: -6px;
    margin-bottom: 12px;
}

.preview {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px dashed rgba(2, 6, 23, .08);
    color: #0f172a;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .08s ease, box-shadow .2s ease;
}

.btn:active {
    transform: translateY(1px);
} */

/* .btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-700));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(35, 125, 180, .25);
}

.btn-primary:hover {
    filter: brightness(1.03);
    box-shadow: 0 16px 40px rgba(35, 125, 180, .35);
} */

.pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Live feed */
.feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(148, 163, 184, .12);
    will-change: transform, opacity;
}

.feed-item.enter {
    animation: feed-drop 280ms ease-out both;
}

@keyframes feed-drop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.feed-main {
    flex: 1;
    min-width: 0;
}

.feed-name {
    font-weight: 700;
    font-size: 14px;
    margin: 0;
}

.feed-meta {
    font-size: 12px;
    color: var(--muted);
}

.amount {
    font-weight: 800;
}

.empty {
    text-align: center;
    padding: 16px;
    color: var(--muted);
    border: 1px dashed rgba(148, 163, 184, .2);
    border-radius: 14px;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal {
    width: min(560px, 92vw);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    color: var(--text);
    border: 1px solid rgba(2, 6, 23, .12);
    box-shadow: var(--shadow);
}

.modal-head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(2, 6, 23, .12);
    background: linear-gradient(180deg, rgba(35, 125, 180, .05), rgba(255, 255, 255, 0));
}

.modal-title {
    font-weight: 800;
    letter-spacing: .3px;
}

.modal-body {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.modal-actions {
    padding: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(2, 6, 23, .12);
}

.close-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.divider {
    height: 1px;
    background: rgba(148, 163, 184, .12);
    margin: 8px 0;
}

/* Floating shine */
.shine {
    position: relative;
}

.shine::after {
    content: "";
    display: none;
}

/* === Bigger Thank-You banner === */
.thanks {
    border: 1px solid rgba(35, 125, 180, .18);
    box-shadow: 0 14px 40px rgba(2, 6, 23, .08);
}

.thanks .card-body {
    padding: 22px;
    position: relative;
}

.thanks-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.thanks-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(180deg, #237DB4, #195a80);
    color: #fff;
    box-shadow: 0 12px 20px rgba(35, 125, 180, .22);
}

.thanks-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: #0f172a;
}

.thanks-sub {
    font-size: 13px;
    color: #475569;
    margin-top: 6px;
}

.thanks-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, .10);
    background: #f8fafc;
    font-size: 12px;
    color: #0f172a;
}

.share-buttons .btn {
    padding: 12px 14px;
    border-radius: 999px;
}

.thanks-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.thanks-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Confetti (subtle, brand-blue shades) */
#confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 14px;
    border-radius: 3px;
    opacity: .95;
    transform: rotate(15deg);
    animation: confetti-fall var(--t, 1200ms) ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(130px) rotate(140deg);
        opacity: 0;
    }
}

.black-bg {
    background-color: #000;
}
