/* ===== Discount Topbar (all pages) ===== */
.discount-topbar {
    width: 100%;
    background: linear-gradient(90deg, #1a0533 0%, #2d0a5e 50%, #1a0533 100%);
    border-bottom: 1px solid rgba(168,85,247,.35);
    position: relative;
    z-index: 1100;
    overflow: hidden;
}
.discount-topbar-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 48px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 40px;
}
.discount-topbar-icon {
    color: #f59e0b;
    font-size: 13px;
    flex-shrink: 0;
}
.discount-topbar-msg {
    color: #e2d8f5;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}
.discount-topbar-msg strong { color: #fff; }
.discount-topbar-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168,85,247,.25);
    border: 1px solid rgba(168,85,247,.5);
    color: #d8b4fe;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.discount-topbar-code:hover {
    background: rgba(168,85,247,.45);
    color: #fff;
    text-decoration: none;
}
.discount-topbar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(226,216,245,.45);
    font-size: 15px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    transition: color .2s, background .2s;
    border-radius: 4px;
}
.discount-topbar-close:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

@media (max-width: 768px) {
    .discount-topbar-inner {
        padding: 8px 40px 8px 12px;
        gap: 7px;
    }
    .discount-topbar-msg { font-size: 12px; }
    .discount-topbar-close { right: 8px; font-size: 14px; }
}
@media (max-width: 480px) {
    .discount-topbar-inner { padding: 8px 36px 8px 10px; gap: 6px; }
    .discount-topbar-icon { display: none; }
    .discount-topbar-msg { font-size: 11.5px; }
    .discount-topbar-code { font-size: 11px; padding: 3px 9px; }
}

/* ===== Buy Premium Page Banner ===== */
.discount-pp-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0f0020 0%, #1e0442 50%, #0f0020 100%);
    border: 1px solid rgba(168,85,247,.4);
    box-shadow: 0 8px 32px rgba(168,85,247,.2), 0 0 0 1px rgba(168,85,247,.1);
}
.discount-pp-banner-glow {
    position: absolute;
    top: -60px; left: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(168,85,247,.25) 0%, transparent 70%);
    pointer-events: none;
    animation: discountGlowPulse 3s ease-in-out infinite;
}
@keyframes discountGlowPulse {
    0%, 100% { opacity: .7; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.1); }
}
.discount-pp-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
}
.discount-pp-banner-left { flex: 1; min-width: 0; }
.discount-pp-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.discount-pp-banner-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}
.discount-pp-banner-msg {
    color: #c4b5fd;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}
.discount-pp-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.discount-pp-banner-label {
    color: rgba(196,181,253,.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.discount-pp-banner-code-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(168,85,247,.15);
    border: 1.5px dashed rgba(168,85,247,.55);
    border-radius: 12px;
    padding: 8px 14px;
}
.discount-pp-banner-code {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #d8b4fe;
    background: none;
    padding: 0;
    user-select: all;
}
.discount-pp-banner-copy {
    background: rgba(168,85,247,.3);
    border: 1px solid rgba(168,85,247,.5);
    color: #d8b4fe;
    border-radius: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.discount-pp-banner-copy:hover { background: rgba(168,85,247,.55); color: #fff; }

@media (max-width: 640px) {
    .discount-pp-banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 16px;
    }
    .discount-pp-banner-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .discount-pp-banner-right {
        align-items: flex-start;
        width: 100%;
    }
    .discount-pp-banner-label {
        align-self: flex-start;
    }
    .discount-pp-banner-code-wrap {
        width: 100%;
        justify-content: space-between;
    }
    .discount-pp-banner-title { font-size: 17px; }
    .discount-pp-banner-code  { font-size: 17px; }
}
@media (max-width: 360px) {
    .discount-pp-banner-title { font-size: 15px; }
    .discount-pp-banner-code  { font-size: 15px; letter-spacing: .07em; }
}

/* Light mode */
[data-theme="light"] .discount-topbar {
    background: linear-gradient(90deg, #f3e8ff 0%, #ede9fe 50%, #f3e8ff 100%);
    border-bottom-color: rgba(124,58,237,.25);
}
[data-theme="light"] .discount-topbar-msg { color: #4c1d95; }
[data-theme="light"] .discount-topbar-msg strong { color: #3b0764; }
[data-theme="light"] .discount-topbar-code {
    background: rgba(124,58,237,.12);
    border-color: rgba(124,58,237,.4);
    color: #7c3aed;
}
[data-theme="light"] .discount-topbar-close { color: rgba(76,29,149,.4); }
[data-theme="light"] .discount-topbar-close:hover { color: #3b0764; background: rgba(0,0,0,.05); }
[data-theme="light"] .discount-topbar-icon { color: #d97706; }

[data-theme="light"] .discount-pp-banner {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 50%, #faf5ff 100%);
    border-color: rgba(124,58,237,.35);
    box-shadow: 0 8px 32px rgba(124,58,237,.1), 0 0 0 1px rgba(124,58,237,.08);
}
[data-theme="light"] .discount-pp-banner-glow {
    background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
}
[data-theme="light"] .discount-pp-banner-title { color: #3b0764; }
[data-theme="light"] .discount-pp-banner-msg   { color: #6d28d9; }
[data-theme="light"] .discount-pp-banner-label { color: rgba(109,40,217,.6); }
[data-theme="light"] .discount-pp-banner-code-wrap {
    background: rgba(124,58,237,.08);
    border-color: rgba(124,58,237,.4);
}
[data-theme="light"] .discount-pp-banner-code  { color: #5b21b6; }
[data-theme="light"] .discount-pp-banner-copy  {
    background: rgba(124,58,237,.12);
    border-color: rgba(124,58,237,.35);
    color: #6d28d9;
}
[data-theme="light"] .discount-pp-banner-copy:hover { background: rgba(124,58,237,.25); color: #3b0764; }
