body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    font-family: 'Inter', sans-serif;
}

/* ── Layout Container ── */
#overlay-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

#new-alert-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pill-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ══════════════════════════════════════
   STAGE 1 — Full Alert Card
   ══════════════════════════════════════ */
.stage1-card {
    width: 520px;
    padding: 28px 32px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #12081F, #1A0E2E);
    border: 2px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin-bottom: 6px;
}

.stage1-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stage1-card.hiding {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s ease-in;
}

.stage1-card .glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    z-index: 0;
    animation: pulse 2s infinite;
    pointer-events: none;
}

.stage1-card .content {
    position: relative;
    z-index: 1;
}

.stage1-card .donor-name {
    font-family: 'Sora', sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.stage1-card .donation-amount {
    color: #45E7FF;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px 0;
}

.stage1-card .donation-message {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    opacity: 0.85;
}

/* ══════════════════════════════════════
   PILL — Compact persistent bar
   ══════════════════════════════════════ */
.donation-pill {
    height: 64px;
    width: 380px;
    padding: 14px 24px;
    box-sizing: border-box;
    border-radius: 999px;
    display: flex;
    align-items: center;
    line-height: 1;
    gap: 12px;
    background: linear-gradient(135deg, #12081F, #1A0E2E);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scale(0.96) translateY(-15px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donation-pill.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.donation-pill.removing {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s ease-out;
}

.donation-pill .pill-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    z-index: 0;
    border-radius: 0;
}

.donation-pill .pill-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    color: #FFF;
    z-index: 1;
    flex-shrink: 0;
}

.donation-pill .pill-name {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    z-index: 1;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donation-pill .pill-amount-badge {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    z-index: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* Base Sweep Animation Element */
.donation-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 18%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
    transform: skewX(-20deg);
    z-index: 2;
    pointer-events: none;
    opacity: 0.22;
    filter: blur(4px);
}

/* ══════════════════════════════════════
   TIER 1 — Normal Support (₹20–49)
   Slate Blue #5E6B86
   ══════════════════════════════════════ */
.tier-1 { border-color: #5E6B86; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08); }
.tier-1 .donor-name, .tier-1 .pill-name { color: #A2B2D4; }
.tier-1 .donation-message { color: #8A9BBF; }
.tier-1 .pill-progress { background-color: #5E6B86; }
.tier-1 .pill-amount-badge { background: rgba(94, 107, 134, 0.2); color: #C5D2ED; }
.tier-1 .pill-avatar { background: rgba(94, 107, 134, 0.3); color: #C5D2ED; }
.tier-1 .stage1-card .donation-amount { color: #A2B2D4; }

/* ══════════════════════════════════════
   TIER 2 — Bronze (₹50–99)
   Warm Copper #B87333
   ══════════════════════════════════════ */
.tier-2 { border-color: #B87333; }
.tier-2::after { background: linear-gradient(90deg, transparent, #B87333, transparent); animation: shimmer-sweep 4s infinite; }
.tier-2 .donor-name, .tier-2 .pill-name { color: #E5A56C; }
.tier-2 .donation-message { color: #CCA17A; }
.tier-2 .pill-progress { background-color: #B87333; }
.tier-2 .pill-amount-badge { background: rgba(184, 115, 51, 0.2); color: #FFCDA3; }
.tier-2 .pill-avatar { background: rgba(184, 115, 51, 0.3); color: #FFCDA3; }
.tier-2 .stage1-card .donation-amount { color: #E5A56C; }

/* ══════════════════════════════════════
   TIER 3 — Silver (₹100–249)
   Brushed Silver #C8D0D8
   ══════════════════════════════════════ */
.tier-3 {
    border-color: #C8D0D8;
    background: linear-gradient(135deg, #18191E, #202228);
}
.tier-3::after { animation: shimmer-sweep 3.5s infinite; }
.tier-3 .donor-name, .tier-3 .pill-name { color: #FFFFFF; }
.tier-3 .donation-message { color: #E0E5EA; }
.tier-3 .pill-progress { background-color: #C8D0D8; }
.tier-3 .pill-amount-badge { background: rgba(200, 208, 216, 0.2); color: #FFFFFF; }
.tier-3 .pill-avatar { background: rgba(200, 208, 216, 0.3); color: #FFFFFF; }
.tier-3 .stage1-card .donation-amount { color: #FFFFFF; }

/* ══════════════════════════════════════
   TIER 4 — Gold (₹250–499)
   Royal Gold #E8B93C
   ══════════════════════════════════════ */
.tier-4 {
    border-color: #E8B93C;
    background: linear-gradient(135deg, #2A2415 0%, #1A1505 50%, #2A2415 100%);
}
.tier-4::after { animation: shimmer-sweep 2.5s infinite; }
.tier-4::before {
    content: '';
    position: absolute;
    width: 3px; height: 3px;
    background: #FFF;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px #E8B93C;
    top: 25%; left: 75%;
    opacity: 0;
    z-index: 3;
    animation: sparkle-pop 5s infinite 2.5s;
}
.tier-4 .donor-name, .tier-4 .pill-name { color: #FFDF85; text-shadow: 0 0 5px rgba(232, 185, 60, 0.5); font-family: 'Sora', sans-serif; }
.tier-4 .donation-message { color: #EED382; }
.tier-4 .pill-progress { background-color: #E8B93C; box-shadow: 0 0 10px #E8B93C; }
.tier-4 .pill-amount-badge { background: rgba(232, 185, 60, 0.2); color: #FFECA3; box-shadow: inset 0 0 5px rgba(232, 185, 60, 0.3); }
.tier-4 .pill-avatar { background: linear-gradient(135deg, #E8B93C, #A67E1E); color: #FFF; }
.tier-4 .stage1-card .donation-amount { color: #FFDF85; }

/* ══════════════════════════════════════
   TIER 5 — Diamond (₹500–999)
   Ice Cyan #45E7FF
   ══════════════════════════════════════ */
.tier-5 {
    border-color: #45E7FF;
    background: linear-gradient(135deg, rgba(69, 231, 255, 0.05) 0%, #12081F 50%, rgba(69, 231, 255, 0.1) 100%);
}
.tier-5::after { animation: shimmer-sweep 2s infinite cubic-bezier(0.4, 0, 0.2, 1); filter: blur(2px); }
.tier-5::before {
    content: '';
    position: absolute;
    width: 2px; height: 2px;
    background: #FFF;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px #45E7FF, 20px -5px 0 0 #FFF, 20px -5px 6px 2px #45E7FF;
    bottom: 25%; left: 45%;
    opacity: 0;
    z-index: 3;
    animation: float-ember 3s infinite 0.5s;
}
.tier-5 .donor-name, .tier-5 .pill-name { color: #BFFFFF; text-shadow: 0 0 8px rgba(69, 231, 255, 0.6); font-family: 'Sora', sans-serif; }
.tier-5 .donation-message { color: #99EEFF; }
.tier-5 .pill-progress { background-color: #45E7FF; box-shadow: 0 0 12px #45E7FF; }
.tier-5 .pill-amount-badge { background: rgba(69, 231, 255, 0.2); color: #E0FFFF; box-shadow: inset 0 0 5px rgba(69, 231, 255, 0.4); }
.tier-5 .pill-avatar { background: linear-gradient(135deg, #45E7FF, #00A6CC); color: #FFF; text-shadow: 0 0 4px rgba(0,0,0,0.5); }
.tier-5 .stage1-card .donation-amount { color: #BFFFFF; }

/* ══════════════════════════════════════
   TIER 6 — Legendary (₹1000+)
   Purple -> Gold #7C3AED -> #F59E0B
   ══════════════════════════════════════ */
.tier-6 {
    border: 2px solid rgba(245, 158, 11, 0.6);
    background: linear-gradient(270deg, #1A0E2E, #2B1545, #1A0E2E);
    background-size: 200% 200%;
    animation: satin-move 6s ease infinite, legendary-breath 4s infinite alternate;
}
.tier-6::after { animation: shimmer-sweep 1.5s infinite; filter: blur(3px); width: 25%; }
.tier-6::before {
    content: '';
    position: absolute;
    width: 4px; height: 4px;
    background: #FF4D00;
    border-radius: 50%;
    box-shadow: 0 0 10px 3px #F59E0B;
    bottom: 10%; left: 30%;
    opacity: 0;
    z-index: 3;
    animation: float-ember 4s infinite 1s;
}
.tier-6 .donor-name, .tier-6 .pill-name {
    font-family: 'Sora', sans-serif;
    background: linear-gradient(90deg, #E5C2FF, #FFC15E, #E5C2FF);
    background-size: 200% auto;
    animation: shine-text 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.5));
}
.tier-6 .donation-message { color: #E5C2FF; }
.tier-6 .pill-progress { background: linear-gradient(90deg, #7C3AED, #F59E0B); box-shadow: 0 0 15px #F59E0B; }
.tier-6 .pill-amount-badge { 
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.3), rgba(245, 158, 11, 0.3));
    color: #FFECA3;
    box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.4);
}
.tier-6 .pill-avatar { 
    background: linear-gradient(135deg, #7C3AED, #F59E0B); 
    color: #FFF; 
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
.tier-6 .stage1-card .donation-amount { 
    background: linear-gradient(90deg, #E5C2FF, #FFC15E, #E5C2FF);
    background-size: 200% auto;
    animation: shine-text 3s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Custom Pill Animations ── */
@keyframes shimmer-sweep {
    0% { left: -100%; opacity: 0; }
    5% { opacity: 1; }
    35% { left: 150%; opacity: 1; }
    40% { opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

@keyframes sparkle-pop {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes float-ember {
    0% { opacity: 0; transform: translate(0, 0); }
    30% { opacity: 1; transform: translate(15px, -15px); }
    100% { opacity: 0; transform: translate(30px, -30px); }
}

@keyframes legendary-breath {
    0% { box-shadow: 0 0 10px rgba(124, 58, 237, 0.3); border-color: rgba(124, 58, 237, 0.5); }
    100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.6); border-color: rgba(245, 158, 11, 0.8); }
}

@keyframes shine-text {
    to { background-position: 200% center; }
}

@keyframes satin-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Animations ── */
@keyframes pulse {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
    50%  { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
}
