:root {
    --plum-deep: #2E1038;
    --plum: #3B1548;
    --plum-mid: #5A2470;
    --plum-soft: #F3ECF7;
    --plum-tint: #FAF6FC;

    --ink: #241326;
    --ink-body: #4A3F4E;
    --ink-mute: #6F6373;

    --page: #FFFFFF;
    --stage: #F6F1F8;
    --line: #E2D8E8;

    --flash: #F6E77E;
    --flash-line: #E3C707;
    --flash-ink: #3B1548;

    --accent: #1B5E3C;
    --accent-dark: #145433;

    --gold: #D9A521;
    --green: #1F6B45;
    --danger: #A31818;
    --danger-line: #E7B9B9;
    --danger-bg: #FCF1F1;
    --danger-ink: #7E1414;
    --on-dark: #FFFFFF;
    --disabled: #B9A9BE;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, dt {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--plum-mid);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shell {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Üst şeritler ---------- */

.top-strip {
    background: var(--plum-deep);
    color: var(--on-dark);
}

.top-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
}

.top-strip-claim b {
    font-weight: 700;
}

.top-strip-certs {
    font-size: 11px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .78);
    text-transform: uppercase;
}

.brand-bar {
    border-bottom: 1px solid var(--line);
    background: var(--page);
}

.brand-bar-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
}

.brand-name {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--plum);
    line-height: 1;
}

.brand-sub {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.flash-bar {
    background: var(--flash);
    border-bottom: 1px solid var(--flash-line);
    color: var(--flash-ink);
}

.flash-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.flash-label {
    font-size: 14px;
    font-weight: 600;
}

.flash-clock {
    display: flex;
    gap: 8px;
}

.clock-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 4px 8px;
    background: var(--plum);
    border-radius: var(--r-sm);
    color: var(--flash);
}

.clock-cell b {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.clock-cell small {
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Hero ---------- */

.hero {
    padding-top: 16px;
    padding-bottom: 24px;
}

.hero-banner {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
}

.hero-tags {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-mute);
}

/* ---------- Blok ---------- */

.block {
    padding-bottom: 0;
    margin-bottom: 24px;
}

.block-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--plum-soft);
    margin-bottom: 16px;
}

.block-note {
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 12px;
}

.block-error {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
}

.block-error[hidden] {
    display: none;
}

/* ---------- Paketler ---------- */

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

.pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--page);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.pkg:hover {
    border-color: var(--plum-mid);
}

.pkg input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pkg input:focus-visible ~ .pkg-cta {
    outline: 2px solid var(--plum-mid);
    outline-offset: 2px;
}

.pkg[data-selected="true"] {
    border-color: var(--plum-mid);
    background: var(--plum-tint);
}

.pkg-best {
    border-color: var(--gold);
}

.pkg-media {
    position: relative;
    display: block;
    background: var(--stage);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 8px;
}

.pkg-media .pkg-stamp {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 56px;
    height: 56px;
    z-index: 1;
    object-fit: contain;
}

.pkg-media img {
    width: 100%;
    height: auto;
}

.pkg-media-test {
    aspect-ratio: 1;
    min-height: 120px;
    background: repeating-linear-gradient(45deg, var(--plum-soft), var(--plum-soft) 8px, var(--page) 8px, var(--page) 16px);
}

.pkg-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pkg-line {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--plum);
    letter-spacing: -.01em;
}

.pkg-line-soft {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-body);
    letter-spacing: 0;
}

.pkg-meta {
    font-size: 12px;
    color: var(--ink-mute);
}

.pkg-badge {
    align-self: flex-start;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--plum-soft);
    color: var(--plum-mid);
    font-size: 11px;
    font-weight: 600;
}

.pkg-badge-hot {
    background: var(--accent);
    color: var(--on-dark);
}

.pkg-price {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--plum);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

.pkg-price s {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-mute);
    margin-right: 8px;
}

.pkg-unit {
    font-size: 12px;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}

.pkg-cta {
    margin-top: 12px;
    font-size: 12px;
    display: block;
    text-align: center;
    padding: 10px 16px;
    border: 2px solid var(--plum-mid);
    border-radius: var(--r-sm);
    background: var(--page);
    color: var(--plum-mid);
    font-weight: 700;
    letter-spacing: .03em;
}

.pkg[data-selected="true"] .pkg-cta {
    background: var(--plum-mid);
    color: var(--on-dark);
}

.cta-on {
    display: none;
}

.pkg[data-selected="true"] .cta-off {
    display: none;
}

.pkg[data-selected="true"] .cta-on {
    display: inline;
}

/* ---------- Kampanya bandı + güven şeridi ---------- */

.promo-band {
    margin-bottom: 16px;
}

.promo-band img {
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
}

/* ---------- Form ---------- */

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-stack .field-error {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.form-row:has(> .field:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-body);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px;
    min-height: 48px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.45;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F6373' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-mute);
    opacity: .8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--plum-mid);
    box-shadow: 0 0 0 3px var(--plum-soft);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.field select:disabled {
    background-color: var(--plum-tint);
    color: var(--ink-mute);
}

.field-error {
    font-size: 13px;
    font-weight: 600;
    color: var(--danger);
}

.field-error[hidden] {
    display: none;
}

/* ---------- Ödeme ---------- */

.pay-box {
    padding: 16px;
    margin-bottom: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--stage);
}

.pay-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.pay-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink-mute);
}

.pay-secure {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-mute);
}

/* ---------- Sipariş özeti ---------- */

.sum-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--plum-tint);
}

.sum-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-body);
}

.sum-row b {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sum-total {
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.sum-total em {
    font-style: normal;
    color: var(--ink-mute);
}

.sum-total b {
    font-size: 20px;
    font-weight: 700;
    color: var(--plum);
    letter-spacing: -.01em;
}

/* ---------- Sözleşme + buton ---------- */

.terms {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--page);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-body);
    cursor: pointer;
}

.terms input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 2px 0 0;
    accent-color: var(--plum-mid);
    cursor: pointer;
}

.terms span {
    display: block;
    font-size: 13px;
    line-height: 20px;
}

.btn-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 60px;
    padding: 16px 24px;
    border: 0;
    border-radius: var(--r-md);
    background: var(--accent);
    color: var(--on-dark);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn-buy:hover {
    background: var(--accent-dark);
}

.btn-buy:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}

.btn-buy:disabled {
    background: var(--disabled);
    cursor: progress;
}

.btn-label {
    text-transform: none;
}

.btn-total {
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    font-weight: 700;
}

.form-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid var(--danger-line);
    border-radius: var(--r-sm);
    background: var(--danger-bg);
    color: var(--danger-ink);
    font-size: 14px;
}

.form-alert[hidden] {
    display: none;
}

/* ---------- Alt bilgi ---------- */

.site-foot {
    margin-top: 32px;
    padding-top: 24px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    background: var(--stage);
}

.foot-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
}

.foot-copy {
    font-size: 12px;
    color: var(--ink-mute);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Sipariş bildirimi (test modu) ---------- */

.order-toast {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 10px 14px 10px 10px;
    background: var(--page);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(46, 16, 56, .14);
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}

.order-toast.is-on {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--stage);
    overflow: hidden;
}

.toast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.toast-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--plum);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-meta {
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink-mute);
}

.toast-meta b {
    font-weight: 600;
    color: var(--ink-body);
}

.toast-time {
    font-size: 11px;
    color: var(--ink-mute);
}

.toast-close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ink-mute);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.toast-close:hover {
    background: var(--stage);
    color: var(--plum);
}

/* ---------- Duyarlı ---------- */

@media (max-width: 600px) {
    .shell {
        padding: 0 12px;
    }

    .top-strip-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .top-strip-claim {
        font-size: 11px;
        line-height: 1.3;
    }

    .top-strip-certs {
        font-size: 10px;
    }

    .brand-bar-inner {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-name {
        font-size: 24px;
    }

    .flash-inner {
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .flash-label {
        font-size: 13px;
    }

    .flash-clock {
        gap: 8px;
    }

    .clock-cell {
        min-width: 64px;
    }


    .pkg-grid {
        gap: 6px;
    }

    .pkg {
        padding: 6px;
    }

    .pkg-line {
        font-size: 13px;
    }

    .pkg-line-soft {
        font-size: 11px;
    }

    .pkg-meta,
    .pkg-unit {
        font-size: 10px;
    }

    .pkg-badge {
        font-size: 9px;
        padding: 4px 6px;
    }

    .pkg-price {
        font-size: 16px;
    }

    .pkg-price s {
        display: block;
        font-size: 11px;
        margin-right: 0;
    }

    .pkg-cta {
        padding: 6px 4px;
        font-size: 10px;
    }

    .pkg-media .pkg-stamp {
        width: 32px;
        height: 32px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pkg-media .pkg-stamp {
        width: 40px;
        height: 40px;
        top: 4px;
        right: 4px;
    }

    .sum-total b {
        font-size: 18px;
    }

    .btn-buy {
        font-size: 14px;
        padding: 16px;
    }

    .btn-total {
        font-size: 16px;
    }

    .order-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* ---------- Landing geri sayim (index.php .cdown) ---------- */

.ensl-75 .cdown {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--flash-ink);
    margin-top: 1px;
}

.ensl-75 .cdown h5 {
    margin: 0;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--flash-ink);
    background: transparent;
}

.ensl-75 .cdown .hour,
.ensl-75 .cdown .minute,
.ensl-75 .cdown .second {
    display: inline-block;
    margin: 4px;
    padding: 5px 10px;
    min-width: 44px;
    border-radius: 10px;
    background-color: var(--plum);
    color: var(--flash);
    font-size: 23px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1.2;
}

/* Sarı alt bar (mobil sabit) içi: koyu kutular zeminde net dursun */
.alt .ensl-75 .cdown {
    padding-top: 4px;
    padding-bottom: 4px;
}

.alt .cdown h5 {
    color: var(--flash-ink);
}

.alt .es_wrap {
    padding: 6px 10px;
    text-align: center;
    color: var(--flash-ink);
}

@media (max-width: 600px) {
    .ensl-75 .cdown {
        gap: 4px;
    }

    .ensl-75 .cdown h5 {
        font-size: 12px;
        padding: 4px 8px;
    }

    .ensl-75 .cdown .hour,
    .ensl-75 .cdown .minute,
    .ensl-75 .cdown .second {
        margin: 3px;
        padding: 4px 8px;
        min-width: 40px;
        font-size: 19px;
    }
}

/* ---------- Sticky flaş sayaç (landing üstü) ---------- */

#flashSticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--plum-deep);
    color: var(--on-dark);
    box-shadow: 0 6px 20px rgba(46, 16, 56, .22);
}

#flashSticky .fs-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 12px 0;
}

#flashSticky .fs-timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#flashSticky .fs-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gold);
    white-space: nowrap;
}

#flashSticky .fs-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-variant-numeric: tabular-nums;
}

#flashSticky .fs-dots b {
    display: inline-block;
    min-width: 34px;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    line-height: 1.25;
}

#flashSticky .fs-dots i {
    font-style: normal;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, .45);
}

#flashSticky .fs-offers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#flashSticky .fs-chip {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease;
}

#flashSticky .fs-chip:hover,
#flashSticky .fs-chip:focus-visible {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .6);
    color: #FFFFFF;
    text-decoration: none;
}

#flashSticky .fs-chip-solid {
    background: var(--flash);
    border-color: var(--flash);
    color: var(--flash-ink);
    font-weight: 700;
}

#flashSticky .fs-chip-solid:hover,
#flashSticky .fs-chip-solid:focus-visible {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--plum-deep);
}

#flashSticky .fs-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 7px;
}

#flashSticky .fs-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63D18B;
    box-shadow: 0 0 0 0 rgba(99, 209, 139, .6);
    animation: fsPulse 2s ease-out infinite;
}

@keyframes fsPulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 209, 139, .55); }
    70% { box-shadow: 0 0 0 6px rgba(99, 209, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 209, 139, 0); }
}

#flashSticky .es_wrap {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    color: rgba(255, 255, 255, .9);
}

#flashSticky .es_box {
    display: none;
}

@media (max-width: 600px) {
    #flashSticky .fs-inner {
        gap: 6px;
        padding: 7px 10px 0;
    }

    #flashSticky .fs-label {
        font-size: 10px;
        letter-spacing: .02em;
    }

    #flashSticky .fs-dots b {
        min-width: 26px;
        padding: 2px 5px;
        font-size: 15px;
    }

    #flashSticky .fs-chip {
        padding: 4px 8px;
        font-size: 10px;
    }

    #flashSticky .fs-live {
        padding: 5px 10px 7px;
        margin-top: 6px;
    }

    #flashSticky .es_wrap {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    #flashSticky .fs-chip {
        padding: 4px 6px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #flashSticky .fs-dot { animation: none; }
}

/* ---------- Satış bildirimi (landing, ödeme ekranındaki toast ile aynı) ---------- */

.nxToast {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 10px 14px 10px 10px;
    background: var(--page);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(46, 16, 56, .14);
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}

.nxToast.is-on {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 639px) {
    .nxToast {
        left: 12px;
        right: 12px;
        bottom: 96px;
        max-width: none;
    }
}

.nxToast .toast-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--stage);
    overflow: hidden;
}

.nxToast .toast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nxToast .toast-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nxToast .toast-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--plum);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nxToast .toast-meta {
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink-mute);
}

.nxToast .toast-meta b {
    font-weight: 600;
    color: var(--ink-body);
}

.nxToast .toast-time {
    font-size: 11px;
    color: var(--ink-mute);
}

.nxToast .toast-close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ink-mute);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.nxToast .toast-close:hover {
    background: var(--stage);
    color: var(--plum);
}
