/* FurryCore Network v2.1 — Unified Design System Tokens & Polish */
:root {
    --fc-bg: #07080d;
    --fc-surface: #0d1017;
    --fc-elevated: #141925;
    --fc-glass: rgba(255, 255, 255, 0.035);
    --fc-border: rgba(255, 255, 255, 0.09);
    --fc-cyan: #00f2ff;
    --fc-pink: #ff2e97;
    --fc-purple: #9b5cff;
    --fc-green: #22c55e;
    --fc-amber: #f59e0b;
    --fc-danger: #ff3366;
    --fc-text-high: #f8fafc;
    --fc-text-mid: rgba(248, 250, 252, 0.78);
    --fc-text-low: rgba(248, 250, 252, 0.50);
    --fc-gradient: linear-gradient(135deg, #00f2ff 0%, #ff2e97 52%, #9b5cff 100%);
    --fc-radius-sm: 10px;
    --fc-radius-md: 14px;
    --fc-radius-lg: 20px;
    --fc-radius-full: 9999px;
}

/* Creation Studio Visual Filters (Boop Photos & Clips) */
.fc-filter-none { filter: none; }
.fc-filter-cyber { filter: contrast(1.16) saturate(1.42) hue-rotate(-12deg); }
.fc-filter-synth { filter: contrast(1.12) saturate(1.55) hue-rotate(24deg) brightness(1.04); }
.fc-filter-neon { filter: contrast(1.24) saturate(1.75) brightness(1.06); }
.fc-filter-vintage { filter: sepia(0.38) contrast(1.06) brightness(0.96) saturate(0.9); }
.fc-filter-mono { filter: grayscale(1) contrast(1.25); }

/* Elastic Boop & Bump Radar Animations */
@keyframes boopPop {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
    65% { transform: translate(-50%, -50%) scale(1.0); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(1.45); opacity: 0; }
}
@keyframes radarPulse {
    0% { transform: scale(0.75); opacity: 0.85; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Polished High-Contrast Light Theme (PawSteps & Shop) */
html[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --card-bg: #ffffff;
    --text-high: #0f172a;
    --text-mid: #334155;
    --text-low: #64748b;
    --border: rgba(15, 23, 42, 0.12);
    --accent: #0284c7;
    --accent-neon: #0284c7;
}

html[data-theme="light"] body {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-high,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 {
    color: #0f172a !important;
}

html[data-theme="light"] .text-white-50,
html[data-theme="light"] .text-low,
html[data-theme="light"] .text-mid {
    color: #475569 !important;
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .shop-header,
html[data-theme="light"] .glass-nav,
html[data-theme="light"] .mobile-top-bar,
html[data-theme="light"] .mobile-bottom-nav,
html[data-theme="light"] .shipping-banner,
html[data-theme="light"] .shipping-box,
html[data-theme="light"] .post-card,
html[data-theme="light"] .compose-box,
html[data-theme="light"] .stories-bar,
html[data-theme="light"] .event-card,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .dropdown-item {
    color: #0f172a !important;
}
html[data-theme="light"] .dropdown-item:hover {
    background: #f1f5f9 !important;
}

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] .input-group-text {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .form-control::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] .msg-received {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .msg-sent {
    background: linear-gradient(135deg, #0284c7, #7c3aed) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .chip,
html[data-theme="light"] .swatch-chip,
html[data-theme="light"] .btn-ghost {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] .chip.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

html[data-theme="light"] .poll-option-btn {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] .btn-close-white {
    filter: invert(1);
}

html[data-theme="light"] .list-group-item {
    color: #0f172a !important;
}

/* Preserve white text inside the dark 3D wallet card even on Light Theme */
html[data-theme="light"] .wallet-face,
html[data-theme="light"] .wallet-face .text-white,
html[data-theme="light"] .wallet-face .fw-bold {
    color: #ffffff !important;
}
html[data-theme="light"] .wallet-face .text-white-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* 3D Holographic Digital Wallet Card */
.wallet-scene {
    perspective: 1200px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.wallet-card-3d {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.wallet-card-3d.is-flipped {
    transform: rotateY(180deg);
}

.wallet-face {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    border: 1.5px solid rgba(0, 242, 255, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 242, 255, 0.15);
    background: radial-gradient(circle at 15% 20%, rgba(0, 242, 255, 0.22), transparent 52%),
                radial-gradient(circle at 85% 80%, rgba(188, 19, 254, 0.25), transparent 55%),
                linear-gradient(135deg, #0b1020 0%, #12182d 50%, #090d18 100%);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wallet-face.finish-matte {
    background: linear-gradient(135deg, #101116 0%, #1a1c24 100%);
    border-color: rgba(255, 255, 255, 0.22);
}

.wallet-face.finish-gold {
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.28), transparent 55%),
                linear-gradient(135deg, #1a1405 0%, #2b2109 55%, #120e04 100%);
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.22);
}

.wallet-face-back {
    transform: rotateY(180deg);
}

.wallet-holo-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(0, 242, 255, 0.14) 38%,
        rgba(188, 19, 254, 0.18) 50%,
        rgba(255, 255, 255, 0.12) 60%,
        transparent 80%
    );
    mix-blend-mode: screen;
    opacity: 0.75;
    transition: background-position 0.15s ease;
}

.wallet-chip {
    width: 40px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, #fde68a 0%, #d97706 50%, #fef08a 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
}

/* Special Tags / Official Badges */
.badge-pill-official {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-pill-official:hover {
    transform: translateY(-1px);
}

.badge-pill-rare {
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.16), rgba(0, 242, 255, 0.14), rgba(188, 19, 254, 0.16));
    box-shadow: 0 0 14px rgba(0, 242, 255, 0.25);
    border-width: 1.5px;
}

.interest-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.25);
    color: var(--accent, #00f2ff);
    text-decoration: none;
    transition: 0.2s;
}
.interest-pill:hover {
    background: rgba(0, 242, 255, 0.18);
    color: var(--accent, #00f2ff);
}

/* Lightbox Overlay */
.fc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    cursor: zoom-out;
}
.fc-lightbox.open { display: flex; }
.fc-lightbox img {
    max-width: 94vw;
    max-height: 84vh;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
    object-fit: contain;
}
.fc-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}
.fc-zoomable { cursor: zoom-in; }

/* Emoji Picker Popover */
.emoji-picker-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg-elevated, #141925);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    margin-top: 8px;
}
.emoji-picker-btn {
    border: none;
    background: transparent;
    font-size: 1.15rem;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s, background 0.12s;
}
.emoji-picker-btn:hover {
    transform: scale(1.2);
    background: rgba(0, 242, 255, 0.12);
}

@media print {
    body * { visibility: hidden !important; }
    .print-wallet-zone, .print-wallet-zone * { visibility: visible !important; }
    .print-wallet-zone { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff !important; }
}

@media (prefers-reduced-motion: reduce) {
    .wallet-card-3d { transition: none; }
}
