/* AURUM 777 — casino/betting cabinet (dark + gold) */
:root {
    --bg: #0a0b11;
    --bg-2: #11131c;
    --card: #171a25;
    --card-2: #1f2331;
    --border: #2a2e3c;
    --border-soft: #20232f;
    --text: #fafafa;
    --text-2: #c7c9d3;
    --muted: #7e818c;
    --gold: #f5b800;
    --gold-2: #ffd34a;
    --gold-dark: #b88500;
    --gold-tint: rgba(245, 184, 0, 0.12);
    --gold-glow: 0 0 24px rgba(245, 184, 0, 0.35);
    --red: #ef4444;
    --red-tint: rgba(239, 68, 68, 0.12);
    --green: #10b981;
    --green-tint: rgba(16, 185, 129, 0.12);
    --purple: #a78bfa;
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(245, 184, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ─── Top bar ─── */
.topbar {
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    padding: max(14px, env(safe-area-inset-top)) 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 17px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
    color: #0a0b11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(245, 184, 0, 0.35);
    font-family: "Georgia", serif;
}

.brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

.brand .brand-text small {
    font-size: 9px;
    color: var(--gold);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.15s;
}

.icon-btn:active {
    background: var(--card-2);
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
    color: #0a0b11;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.vip-badge::before {
    content: "★";
    font-size: 11px;
}

/* ─── Balance card ─── */
.balance-card {
    margin: 16px;
    padding: 22px 20px 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(245, 184, 0, 0.18) 0%, transparent 60%),
        linear-gradient(160deg, #1d2030 0%, #0f1119 100%);
    color: var(--text);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(245, 184, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.balance-card::after {
    content: "♠ ♦";
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 18px;
    letter-spacing: 4px;
    color: var(--gold);
    opacity: 0.5;
}

.balance-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.balance-amount {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 60%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(245, 184, 0, 0.15);
}

.balance-amount .currency {
    font-size: 24px;
    margin-left: 4px;
    font-weight: 700;
}

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

.balance-sub .bonus {
    color: var(--green);
    font-weight: 600;
}

.balance-sub .dot {
    color: var(--border);
}

/* ─── Actions row ─── */
.actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 16px 12px;
}

.action-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    font-weight: 600;
    font-size: 14px;
    -webkit-appearance: none;
    font-family: inherit;
}

.action-card:active {
    transform: scale(0.97);
}

.action-card.primary {
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: #0a0b11;
    border: none;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

.action-card svg {
    width: 26px;
    height: 26px;
}

/* ─── Quick games strip (visual filler) ─── */
.games-strip {
    margin: 0 16px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.games-strip::-webkit-scrollbar { display: none; }

.game-tile {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--gold);
    cursor: pointer;
    position: relative;
}

.game-tile.live::after {
    content: "LIVE";
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red);
    color: white;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* ─── Section heading ─── */
.section-head {
    padding: 16px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-head h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-head a {
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

/* ─── Transactions ─── */
.tx-list {
    margin: 0 16px;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 18px;
}

.tx-icon.in {
    background: var(--green-tint);
    color: var(--green);
}

.tx-icon.out {
    background: var(--gold-tint);
    color: var(--gold);
}

.tx-icon.pending {
    background: rgba(167, 139, 250, 0.15);
    color: var(--purple);
}

.tx-icon.loss {
    background: var(--red-tint);
    color: var(--red);
}

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.tx-amount {
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.tx-amount.in {
    color: var(--green);
}

.tx-amount.out {
    color: var(--text);
}

.tx-amount.pending {
    color: var(--purple);
}

.tx-amount.loss {
    color: var(--red);
}

/* ─── Spacer at bottom ─── */
.bottom-pad {
    height: env(safe-area-inset-bottom);
    min-height: 32px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.15s, transform 0.1s;
    -webkit-appearance: none;
}

.btn:active:not(:disabled) {
    opacity: 0.85;
    transform: scale(0.99);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: #0a0b11;
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--card-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}

.btn-success {
    background: var(--green);
    color: #0a0b11;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

/* ─── Form inputs ─── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    -webkit-appearance: none;
    transition: border-color 0.15s;
}

.form-input::placeholder { color: var(--muted); }
.form-input:focus { outline: none; border-color: var(--gold); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

.form-hint.warn { color: var(--gold); }

/* ─── Scanner screen ─── */
.scan-page {
    background: #000;
    color: white;
    height: 100vh;
    overflow: hidden;
    max-width: 480px;
}

.scan-page .topbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
    border-bottom: none;
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scan-page .brand,
.scan-page .icon-btn {
    color: white;
}

.scan-page .icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

#qr-reader {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#qr-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#qr-reader__scan_region { min-height: 100% !important; }
#qr-reader__scan_region > img,
#qr-reader__dashboard,
#qr-reader__dashboard_section_swaplink,
#qr-reader__header_message { display: none !important; }

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(260px, 70vw);
    height: min(260px, 70vw);
    z-index: 5;
    pointer-events: none;
}

.scan-corner {
    position: absolute;
    width: 38px;
    height: 38px;
    border-color: var(--gold-2);
    border-style: solid;
    border-width: 0;
    box-shadow: 0 0 12px rgba(245, 184, 0, 0.5);
}

.scan-corner.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-radius: 14px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-radius: 0 14px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-radius: 0 0 0 14px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-radius: 0 0 14px 0; }

.scan-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
    box-shadow: 0 0 10px var(--gold);
    animation: scanline 2.4s ease-in-out infinite;
}

@keyframes scanline {
    0%, 100% { top: 12px; opacity: 0.6; }
    50% { top: calc(100% - 14px); opacity: 1; }
}

/* «Locking» state — QR в кадре, идёт подтверждение (1.2с до срабатывания) */
.scan-overlay.locking .scan-corner {
    border-color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 32px rgba(245, 184, 0, 0.5);
    animation: lockPulse 0.5s ease-in-out infinite alternate;
}
.scan-overlay.locking .scan-line {
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 14px #ffffff;
    animation-duration: 0.7s;
}
@keyframes lockPulse {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.scan-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 28px 20px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    text-align: center;
}

.scan-hint {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 16px;
}

.scan-hint .gold {
    color: var(--gold-2);
    font-weight: 700;
}

.scan-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(245, 184, 0, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scan-upload input { display: none; }

/* ─── Sheet (bottom modal) ─── */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sheet.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.sheet-card {
    width: 100%;
    max-width: 480px;
    background: var(--card);
    color: var(--text);
    border-radius: 24px 24px 0 0;
    border-top: 1px solid var(--border);
    padding: 18px 20px max(28px, env(safe-area-inset-bottom));
    animation: slideUp 0.3s ease-out;
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.sheet-sub {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 20px;
}

.sheet-amount {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sheet-amount .currency {
    font-size: 24px;
    opacity: 0.7;
    margin-left: 4px;
    font-weight: 700;
}

.sheet-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}

.sheet-row:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

.sheet-row .label {
    color: var(--muted);
    font-size: 14px;
    flex-shrink: 0;
}

.sheet-row .value {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    color: var(--text);
    word-break: break-word;
}

.sheet-row .value.danger { color: var(--red); }
.sheet-row .value.gold { color: var(--gold); }

.sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* ─── Withdraw method cards ─── */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: var(--card-2);
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    width: 100%;
    font-family: inherit;
    -webkit-appearance: none;
}

.method-card:active {
    transform: scale(0.98);
}

.method-card.featured {
    background:
        linear-gradient(135deg, rgba(245, 184, 0, 0.12) 0%, rgba(245, 184, 0, 0.02) 100%),
        var(--card-2);
    border-color: rgba(245, 184, 0, 0.45);
    box-shadow: var(--gold-glow);
    position: relative;
}

.method-card.featured::after {
    content: "РЕКОМЕНДУЕМ";
    position: absolute;
    top: -8px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
    color: #0a0b11;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 1px;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-card.featured .method-icon {
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
    color: #0a0b11;
    border: none;
}

.method-info {
    flex: 1;
    min-width: 0;
}

.method-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.method-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.method-meta .pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.method-meta .pill.fast {
    background: var(--green-tint);
    color: var(--green);
    font-weight: 600;
}

.method-meta .pill.free {
    background: var(--gold-tint);
    color: var(--gold);
    font-weight: 600;
}

.method-meta .pill.slow {
    color: var(--text-2);
}

.method-meta .pill.fee {
    color: var(--red);
}

.method-limit {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

.method-limit strong {
    color: var(--gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.method-arrow {
    color: var(--muted);
    flex-shrink: 0;
}

/* ─── Processing / success ─── */
.center-screen {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 24px;
}

.center-screen.active {
    display: flex;
    animation: fadeIn 0.2s;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 20px;
}

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

.success-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
    color: #0a0b11;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--gold-glow);
}

.success-ring.green {
    background: var(--green);
    color: #0a0b11;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}

.success-ring.pending {
    background: var(--purple);
    color: #0a0b11;
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.4);
}

@keyframes pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-ring svg {
    width: 44px;
    height: 44px;
    stroke-width: 3;
}

.center-screen h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.center-screen .sub {
    color: var(--text-2);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 340px;
    line-height: 1.5;
}

.center-screen .meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 28px;
}

.center-screen .actions {
    width: 100%;
    max-width: 320px;
}

.tag-instant {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold-tint);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(245, 184, 0, 0.95);
    color: #0a0b11;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 500;
    display: none;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.toast.active {
    display: block;
    animation: toastFade 3s ease-out;
}

@keyframes toastFade {
    0%, 100% { opacity: 0; }
    15%, 85% { opacity: 1; }
}
