/* ═══════════════════════════════════════
   Cards Page — Card collection app
   ═══════════════════════════════════════ */

/* ── Cards Nav ── */
.cards-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(10, 10, 10, 0.72);
    border-bottom: 1px solid var(--border);
}

.cards-nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
}

.cards-nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cards-nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--accent);
}

.cards-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: 0.25s;
}

.cards-nav-back:hover {
    color: var(--accent);
    border-color: rgba(201, 169, 110, 0.3);
}

/* ── Cards App Shell ── */
.cards-app-shell {
    opacity: 1;
    transition: opacity 0.45s ease, filter 0.45s ease;
}

.cards-app-shell.gated {
    opacity: 0.12;
    filter: blur(18px);
    pointer-events: none;
    user-select: none;
}

/* ── Cards Lock Screen ── */
.cards-lock-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    transition: opacity 0.45s, visibility 0.45s;
}

.cards-lock-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cards-lock-card {
    width: min(100%, 560px);
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0.96), rgba(16, 16, 16, 0.96));
    border: 1px solid rgba(201, 169, 110, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.cards-lock-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(201, 169, 110, 0.10);
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 169, 110, 0.16);
}

.cards-lock-card h2 {
    margin-top: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 500;
}

.cards-lock-card p {
    margin: 14px 0 24px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.cards-lock-input {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.cards-lock-input:focus {
    border-color: rgba(201, 169, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.08);
}

.cards-lock-submit {
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    color: #111;
    background: linear-gradient(135deg, #d9be88, var(--accent-soft));
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cards-lock-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(184, 147, 78, 0.3);
}

.cards-lock-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Login Player Boxes ── */
.login-player-box {
    flex: 1;
    min-width: 200px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.login-player-avatar {
    font-size: 3rem;
    margin-bottom: 8px;
}

.login-player-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.login-player-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ── Flat Card (Collection) ── */
.flat-card {
    position: relative;
    background: linear-gradient(180deg, rgba(24,24,24,0.96), rgba(12,12,12,0.99));
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.flat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.flat-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--surface-2);
    transition: transform 0.4s ease;
}

.flat-card:hover .card-img {
    transform: scale(1.05);
}

.flat-card .card-body {
    padding: 14px;
    position: relative;
}

.flat-card .card-num {
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.flat-card .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

.flat-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}

.flat-card .fav-star {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 3;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    transition: 0.25s;
}

.flat-card .fav-star.active {
    color: #e85d5d;
    filter: drop-shadow(0 0 6px rgba(232,93,93,0.5));
    animation: heartPulse 0.6s ease;
}

@keyframes heartPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ── Rarity Borders & Glow ── */
.card-rarity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 3;
}

.flat-card[data-rarity="Common"] { border-color: rgba(138,138,138,0.3); }
.flat-card[data-rarity="Common"]:hover { border-color: rgba(138,138,138,0.6); box-shadow: 0 8px 24px rgba(138,138,138,0.15); }
.flat-card[data-rarity="Common"] .card-rarity-badge { color: #9a9a9a; }

.flat-card[data-rarity="Uncommon"] { border-color: rgba(122,182,72,0.35); }
.flat-card[data-rarity="Uncommon"]:hover { border-color: rgba(122,182,72,0.7); box-shadow: 0 8px 24px rgba(122,182,72,0.12); }
.flat-card[data-rarity="Uncommon"] .card-rarity-badge { color: #7ab648; }

.flat-card[data-rarity="Rare"] { border-color: rgba(91,160,208,0.35); }
.flat-card[data-rarity="Rare"]:hover { border-color: rgba(91,160,208,0.7); box-shadow: 0 8px 28px rgba(91,160,208,0.15); }
.flat-card[data-rarity="Rare"] .card-rarity-badge { color: #5ba0d0; }

.flat-card[data-rarity="Epic"] {
    border-color: rgba(176,108,212,0.4);
    background: linear-gradient(180deg, rgba(28,22,36,0.96), rgba(14,10,18,0.99));
}
.flat-card[data-rarity="Epic"]:hover { border-color: rgba(176,108,212,0.75); box-shadow: 0 8px 32px rgba(176,108,212,0.2); }
.flat-card[data-rarity="Epic"] .card-rarity-badge { color: #b06cd4; }

.flat-card[data-rarity="Legendary"] {
    border-color: rgba(232,160,64,0.5);
    background: linear-gradient(180deg, rgba(32,24,14,0.96), rgba(18,12,4,0.99));
}
.flat-card[data-rarity="Legendary"]:hover { border-color: rgba(232,160,64,0.8); box-shadow: 0 8px 36px rgba(232,160,64,0.25); }
.flat-card[data-rarity="Legendary"] .card-rarity-badge { color: #e8a040; }

.flat-card[data-rarity="Mythic"] {
    border-color: rgba(232,93,93,0.5);
    background: linear-gradient(180deg, rgba(30,14,14,0.96), rgba(16,6,6,0.99));
}
.flat-card[data-rarity="Mythic"]:hover { border-color: rgba(232,93,93,0.85); box-shadow: 0 8px 40px rgba(232,93,93,0.25); }
.flat-card[data-rarity="Mythic"] .card-rarity-badge { color: #e85d5d; }

.flat-card[data-rarity="Secret"] {
    border-color: rgba(212,192,240,0.5);
    background: linear-gradient(180deg, rgba(26,22,34,0.96), rgba(14,10,20,0.99));
}
.flat-card[data-rarity="Secret"]:hover { border-color: rgba(212,192,240,0.8); box-shadow: 0 8px 36px rgba(212,192,240,0.2); }
.flat-card[data-rarity="Secret"] .card-rarity-badge { color: #d4c0f0; }

.flat-card[data-rarity="Anniversary Exclusive"] {
    border-color: rgba(240,176,192,0.5);
    background: linear-gradient(180deg, rgba(30,18,22,0.96), rgba(16,8,12,0.99));
}
.flat-card[data-rarity="Anniversary Exclusive"]:hover { border-color: rgba(240,176,192,0.8); box-shadow: 0 8px 36px rgba(240,176,192,0.2); }
.flat-card[data-rarity="Anniversary Exclusive"] .card-rarity-badge { color: #f0b0c0; }

.flat-card[data-rarity="One-of-a-Kind"] {
    border-width: 2px;
    border-color: rgba(255,215,0,0.6);
    background: linear-gradient(180deg, rgba(34,30,14,0.96), rgba(20,16,6,0.99));
}
.flat-card[data-rarity="One-of-a-Kind"]:hover {
    border-color: rgba(255,215,0,0.9);
    box-shadow: 0 8px 44px rgba(255,215,0,0.3), 0 0 60px rgba(255,215,0,0.1);
}
.flat-card[data-rarity="One-of-a-Kind"] .card-rarity-badge {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(180,140,0,0.5), rgba(100,70,0,0.7));
}

/* ── Shiny Card Overlay ── */
.flat-card.shiny::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255,255,255,0.06) 25%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 75%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%,100% { background-position: -200% -200%; }
    50% { background-position: 200% 200%; }
}

.flat-card.shiny .card-img-wrap::before {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 36px;
    z-index: 3;
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.8));
    animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes twinkle {
    0%,100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.card-rarity-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.card-img-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--text-dim);
}

/* ── Card Thumb (Pull Results) ── */
.card-thumb {
    background: var(--surface-2);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-thumb-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.card-thumb-body {
    padding: 8px;
}

.card-thumb-rarity {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.card-thumb-title {
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--text);
}

/* ── Card Tag & Notes ── */
.card-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.64rem;
    background: rgba(201, 169, 110, 0.08);
    color: var(--accent);
    display: inline-block;
    margin: 2px;
}

.card-notes {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 2px solid rgba(201, 169, 110, 0.2);
}

.card-action-btn {
    padding: 6px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.68rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-action-btn:hover {
    border-color: rgba(201, 169, 110, 0.25);
    color: var(--text);
}

.card-action-btn.danger:hover {
    border-color: rgba(232, 93, 93, 0.3);
    color: #e85d5d;
}

/* ── Daily Pull ── */
.pull-section {
    max-width: 500px;
    margin: 120px auto 0;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn-pull {
    width: 100%;
    padding: 24px;
    border-radius: 24px;
    border: 2px dashed var(--accent);
    background: rgba(201, 169, 110, 0.06);
    color: var(--accent);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-pull:not(.pulled):hover {
    background: rgba(201,169,110,0.12);
    border-color: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201,169,110,0.15);
}

.btn-pull:not(.pulled):active {
    transform: scale(0.97);
}

.btn-pull.pulled {
    opacity: 0.4;
    border-style: solid;
    border-color: var(--border);
    cursor: not-allowed;
}

.btn-pull-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 6px;
}

.btn-pull-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
    text-transform: none;
}

.btn-pull.pulled {
    opacity: 0.5;
    border-style: solid;
    border-color: var(--border);
}

/* ── Cards Stats Row ── */
.cards-stats-row {
    max-width: 500px;
    margin: 20px auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 28px;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.cards-stats-row strong {
    color: var(--text);
}

/* ── Cards Search ── */
.cards-search-row {
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.cards-search-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

/* ── Cards Footer ── */
.cards-footer-row {
    text-align: center;
    padding: 20px 24px 60px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Card Grid ── */
.card-grid-wrap {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-dim);
}

.card-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-empty .icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-pull-btn {
    margin-top: 16px;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #d9be88, #b8934e);
    color: #111;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── Discard List ── */
.discard-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 8px;
}

.discard-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

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

.discard-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.discard-meta {
    font-size: 0.68rem;
    color: var(--text-dim);
}

/* ── Cards Lock Message ── */
.cards-lock-message {
    min-height: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.cards-lock-message.error {
    color: #f1a2a2;
}

.cards-lock-message.success {
    color: #b6d9a6;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .flat-card .card-img {
        height: 180px;
    }
    .cards-nav-inner {
        padding: 10px 16px;
    }
}

/* ── Pull Animation ── */
.btn-pull:not(.pulled):hover {
    background: rgba(201,169,110,0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201,169,110,0.12);
}

.btn-pull:not(.pulled):active {
    transform: scale(0.97);
}

/* Shiny reveal sparkle */
.card-thumb.shiny-reveal {
    animation: shinyReveal 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.card-thumb.shiny-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        transparent 30%, rgba(255,215,0,0.4) 50%, transparent 70%);
    background-size: 300% 300%;
    animation: shinySweep 1.2s ease-out forwards;
}

@keyframes shinyReveal {
    0% { transform: scale(0.5) rotateY(90deg); opacity: 0; }
    60% { transform: scale(1.08) rotateY(0deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

@keyframes shinySweep {
    0% { background-position: 200% 200%; }
    100% { background-position: -100% -100%; }
}

/* Pull result cards grid */
#pull-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

/* ── Pull Result "Lihat Koleksi" Button ── */
.btn-view-collection {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #d9be88, var(--accent-soft));
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-collection:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201,169,110,0.3);
}

/* ── Grand Pull Celebration ── */
.grand-pull-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.grand-pull-overlay.show {
    opacity: 1;
    visibility: visible;
}

.grand-pull-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.grand-particle {
    position: absolute;
    pointer-events: none;
    animation: grandFloat 4s ease-out forwards;
    font-size: 1.5rem;
    opacity: 0;
}

@keyframes grandFloat {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 1; transform: translateY(-20px) scale(1.2); }
    100% { transform: translateY(-120vh) scale(0.3); opacity: 0; }
}

.grand-pull-card {
    position: relative;
    text-align: center;
    padding: 40px 32px;
    border-radius: 28px;
    max-width: 420px;
    width: 90%;
    background: linear-gradient(180deg, rgba(20,16,8,0.98), rgba(10,8,4,0.99));
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 0 80px rgba(255,215,0,0.15), 0 30px 60px rgba(0,0,0,0.5);
    animation: grandCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes grandCardIn {
    0% { transform: scale(0.3) rotate(-5deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.grand-pull-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.12), transparent 60%);
    pointer-events: none;
    animation: grandGlow 2s ease-in-out infinite alternate;
}

@keyframes grandGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.grand-pull-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: grandIconBounce 0.8s ease infinite alternate;
}

@keyframes grandIconBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.grand-pull-rarity {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.grand-pull-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #ffd700;
}

.grand-pull-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 2px solid rgba(255,215,0,0.2);
    box-shadow: 0 0 30px rgba(255,215,0,0.1);
}

.grand-pull-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Rarity glow on pull results */
.card-thumb[data-rarity] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-thumb[data-rarity="Legendary"]:hover,
.card-thumb[data-rarity="Mythic"]:hover,
.card-thumb[data-rarity="One-of-a-Kind"]:hover {
    transform: translateY(-4px);
}

/* ── Level & EXP Bar ── */
.card-level-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.card-level {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(201,169,110,0.12);
    padding: 1px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.card-exp-bar {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.card-exp-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transition: width 0.4s ease;
}

/* ── Feed Modal ── */
.feed-source-card {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(232,93,93,0.08);
    border: 1px solid rgba(232,93,93,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.feed-target-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-target-item:hover {
    border-color: var(--accent);
    background: rgba(201,169,110,0.05);
}

.feed-target-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

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

.feed-target-title {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
