@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Rajdhani:wght@500;600;700&display=swap');

/* STYLE.CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
    :root { --neon-pink: #ff0099; --neon-blue: #00ffff; --neon-red: #ff0000; --dark-bg: #0d0d1a; --darker-bg: #03030f; --neon-purple: #9f7aea; --neon-green: #22c55e; --neon-orange: #f97316; --neon-yellow: #eab308; }
    body { font-family: 'Inter', sans-serif; background-color: #030712; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
    #loading-wrapper { opacity: 0; transform: scale(0.9); transition: opacity 1s ease-out, transform 1s ease-out; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    #loading-wrapper.is-visible { opacity: 1; transform: scale(1); }
    .loader-container { position: relative; width: 100%; max-width: 400px; padding: 0 1rem; }
    .spinner { width: 120px; height: 120px; border: 6px solid #1f2937; border-top-color: #3b82f6; border-radius: 50%; animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite; box-shadow: 0 0 15px rgba(59, 130, 246, 0.7), 0 0 30px rgba(59, 130, 246, 0.5); transition: all 0.5s ease-in-out; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    .loading-text { color: #93c5fd; font-size: 1.5rem; font-weight: 700; margin-top: 1.5rem; animation: pulse 2s infinite; }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    .attribution { position: absolute; bottom: 2rem; width: 100%; text-align: center; font-size: 0.875rem; color: #4b5563; transition: opacity 1s ease-out; }
    .neon-text-blue { color: #60a5fa; text-shadow: 0 0 5px #3b82f6, 0 0 10px #3b82f6, 0 0 20px rgba(59, 130, 246, 0.8); }
    .profile-img-shadow, .credits-box img, .credits-box { box-shadow: 0 0 15px rgba(59, 130, 246, 0.6); user-select: none; }
    #profile-content img { pointer-events: none; }
    .divider-glow { box-shadow: 0 1px 5px rgba(59, 130, 246, 0.2); }
    .menu-button { width: 4rem; height: 4rem; background-color: rgba(31, 41, 55, 0.7); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease-in-out; border: 1px solid rgba(59, 130, 246, 0.2); cursor: pointer; appearance: none; padding: 0; position: relative; overflow: visible; box-shadow: 0 0 6px rgba(59, 130, 246, 0.3); margin: 2px; z-index: 20; }
    .menu-button:hover { transform: scale(1.05); background-color: #1f2937; box-shadow: 0 0 14px rgba(59, 130, 246, 0.9), 0 0 30px rgba(59, 130, 246, 0.6); border-color: rgba(59, 130, 246, 0.5); }
    .menu-button-wrapper-disabled { pointer-events: none; }
    #portal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; z-index: 50; }
    #portal-overlay.active { opacity: 1; pointer-events: auto; }
    #portal-container { position: relative; width: 440px; height: 100dvh; max-height: 100dvh; background: radial-gradient(circle at center, #1a1a2e 0%, #000000 80%); border-radius: 40px; border: 1px solid rgba(96, 165, 250, 0.2); box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(59, 130, 246, 0.1); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 1rem 1rem 1rem 1rem; opacity: 0; transform: scale(0.95); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 50; }
    #portal-container.active { opacity: 1; transform: scale(1); box-shadow: 0 0 60px rgba(59, 130, 246, 0.2), inset 0 0 80px rgba(59, 130, 246, 0.15); }
    #portal-container::before { content: ''; position: absolute; width: 200%; height: 200%; background: radial-gradient(circle, rgba(76, 29, 149, 0.15), transparent 60%); top: -50%; left: -50%; animation: nebulaMove 15s linear infinite; pointer-events: none; z-index: 1; }
    @keyframes nebulaMove { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    .reactor-wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 360px; height: 360px; z-index: 2; pointer-events: none; display: flex; justify-content: center; align-items: center; }
    .reactor-ring-outer { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px dashed rgba(96, 165, 250, 0.3); box-shadow: 0 0 15px rgba(59, 130, 246, 0.1); animation: rotateRight 20s linear infinite; }
    .reactor-ring-mid { position: absolute; width: 280px; height: 280px; border-radius: 50%; border-top: 2px solid #a78bfa; border-bottom: 2px solid transparent; border-left: 2px solid #3b82f6; border-right: 2px solid transparent; filter: drop-shadow(0 0 8px #8b5cf6); animation: rotateLeft 8s linear infinite; }
    .reactor-ring-inner { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0%, rgba(59, 130, 246, 0.2) 20%, #3b82f6 50%, transparent 80%); mask-image: radial-gradient(transparent 60%, black 61%); -webkit-mask-image: radial-gradient(transparent 60%, black 61%); animation: rotateRight 4s linear infinite; opacity: 0.7; }
    .reactor-core-stabilizer { position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,0.05); transform: rotate(45deg); animation: pulseStabilizer 3s ease-in-out infinite; }
    @keyframes rotateRight { 100% { transform: rotate(360deg); } }
    @keyframes rotateLeft { 100% { transform: rotate(-360deg); } }
    @keyframes pulseStabilizer { 0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.3; } 50% { transform: rotate(45deg) scale(1.05); opacity: 0.6; } }
    .portal-fast-spin .reactor-ring-outer { animation: rotateRight 1s linear infinite; border-color: rgba(255, 0, 153, 0.5); box-shadow: 0 0 30px rgba(255, 0, 153, 0.3); }
    .portal-fast-spin .reactor-ring-mid { animation: rotateLeft 0.6s linear infinite; border-color: #ff0099; filter: drop-shadow(0 0 15px #ff0099); }
    .portal-fast-spin .reactor-ring-inner { animation: rotateRight 0.3s linear infinite; background: conic-gradient(from 0deg, transparent 0%, rgba(255, 0, 153, 0.2) 20%, #ff0099 50%, transparent 80%); opacity: 1; }
    .portal-fast-spin .reactor-core-stabilizer { animation: pulseFast 0.5s ease-in-out infinite; border-color: rgba(255, 0, 153, 0.2); }
    @keyframes pulseFast { 0%, 100% { transform: rotate(45deg) scale(0.95); } 50% { transform: rotate(45deg) scale(1.1); } }
    #catch-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #4c1d95, #0f172a); border: 2px solid rgba(139, 92, 246, 0.5); box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), inset 0 0 20px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; opacity: 1; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    #catch-button::after { content: ''; position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); animation: buttonBreathe 3s infinite alternate; }
    #catch-button:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 35px rgba(139, 92, 246, 0.8); border-color: #c4b5fd; }
    #catch-button.fading-out { opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none; }
    #catch-button.fading-in { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
    #catch-button.disabled { pointer-events: none; filter: grayscale(1); opacity: 0.5 !important; box-shadow: none !important; }
    @keyframes buttonBreathe { 0% { transform: scale(1); box-shadow: 0 0 0 transparent; } 100% { transform: scale(0.95); box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.5); } }
    #catch-button svg { width: 44px; height: 44px; stroke: #e9d5ff; stroke-width: 2; filter: drop-shadow(0 0 5px #8b5cf6); transition: transform 0.3s ease; }
    #catch-button:hover svg { transform: rotate(90deg); stroke: #fff; }
    #credit-payout { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3.5rem; font-weight: 900; color: #fff; text-shadow: 0 0 10px #ff0099, 0 0 20px #ff0099, 0 0 40px #ff0099; opacity: 0; transition: opacity 0.3s ease; z-index: 10; user-select: none; pointer-events: none; font-family: monospace; }
    @keyframes finalCreditGlow { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; filter: blur(10px); } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; filter: blur(0px); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
    @keyframes creditFlyAway { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); color: #fff; } 100% { opacity: 0; transform: translate(-50%, -200%) scale(0.2); filter: blur(5px); } }
    #portal-title { z-index: 10; color: #e2e8f0; font-weight: 900; font-size: 2.25rem; text-align: center; text-shadow: 0 0 10px rgba(59, 130, 246, 0.8); margin-top: 1rem; user-select: none; letter-spacing: 0.2em; font-family: 'Inter', sans-serif; text-transform: uppercase; }
    #portal-tries-display { font-family: monospace; color: #94a3b8; font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
    #portal-exit-btn { z-index: 10; background: transparent; color: #94a3b8; font-weight: 600; font-size: 1rem; padding: 0.75rem 3rem; border-radius: 8px; cursor: pointer; border: 1px solid rgba(148, 163, 184, 0.3); transition: all 0.3s ease; user-select: none; margin-top: auto; margin-bottom: 2rem; letter-spacing: 0.1em; text-transform: uppercase; }
    #portal-exit-btn:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.1); }
    #portal-exit-btn.disabled { opacity: 0.3; pointer-events: none; border-color: transparent; }
    #credit-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); padding: 1rem 1.5rem; background: rgba(30, 41, 59, 0.95); border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 0.75rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.7); color: #e0f2fe; font-weight: 600; font-size: 1rem; text-align: center; opacity: 0; transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 100; max-width: 90%; min-width: 250px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
    #credit-notification.show { bottom: 2rem; opacity: 1; }
    #sent-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); padding: 1rem 1.5rem; background: rgba(59, 30, 30, 0.95); border: 1px solid rgba(239, 68, 68, 0.4); border-radius: 0.75rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.7); color: #fecaca; font-weight: 600; font-size: 1rem; text-align: center; opacity: 0; transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 100; max-width: 90%; min-width: 250px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
    #sent-notification.show { bottom: 2rem; opacity: 1; }
    .sent-notification-text-glow { text-shadow: 0 0 4px #f87171, 0 0 8px #ef4444; }
    .timer-bar-sent { height: 5px; width: 100%; background-color: rgba(239, 68, 68, 0.2); border-radius: 2.5px; overflow: hidden; }
    .timer-bar-fill-sent { height: 100%; width: 100%; background: linear-gradient(90deg, #ef4444, #f87171); transform-origin: left; animation: timer-countdown 5s linear forwards; }
    .notification-text-glow { text-shadow: 0 0 4px #93c5fd, 0 0 8px #3b82f6; }
    .timer-bar { height: 5px; width: 100%; background-color: rgba(59, 130, 246, 0.2); border-radius: 2.5px; overflow: hidden; }
    .timer-bar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #3b82f6, #93c5fd); transform-origin: left; animation: timer-countdown 5s linear forwards; }
    @keyframes timer-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
    #timer-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); padding: 1rem 1.5rem; background: rgba(46, 26, 74, 0.95); border: 1px solid rgba(123, 110, 199, 0.4); border-radius: 0.75rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(123, 110, 199, 0.7); color: #e0f2fe; font-weight: 600; font-size: 1rem; text-align: center; opacity: 0; transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 100; max-width: 90%; min-width: 250px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
    #timer-notification.show { bottom: 2rem; opacity: 1; }
    #timer-notification-text .timer-countdown-display { text-shadow: 0 0 4px #d7cdfb, 0 0 8px #9f94c5; font-weight: 700; }
    #main-content-fade { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #030712; opacity: 0; pointer-events: none; transition: opacity 0.8s ease; z-index: 40; padding-top: 4rem; box-sizing: border-box; }
    #main-content-fade.active { opacity: 0.85; pointer-events: auto; background: linear-gradient(135deg, #030712 0%, #1e40af 100%); }
    .portal-button-svg { width: 28px; height: 28px; stroke: #60a5fa; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 3px #3b82f6); }
    .portal-button-text { font-size: 0.75rem; color: #93c5fd; margin-top: 0.4rem; user-select: none; font-weight: 600; text-align: center; white-space: nowrap; }
    #buttons-grid { grid-auto-rows: auto; gap: 1.25rem; }
    .banner-wrapper { position: relative; overflow: hidden; box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
    .banner-wrapper::before { content: ''; position: absolute; top: 0; left: 0; width: 150%; height: 100%; background: linear-gradient( -45deg, transparent 40%, rgba(59, 130, 246, 0.1) 45%, rgba(59, 130, 246, 0.2) 50%, rgba(59, 130, 246, 0.1) 55%, transparent 60% ); transform: translateX(-100%); animation: movingBarrier 4s linear infinite; pointer-events: none; z-index: 5; }
    @keyframes movingBarrier { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
    #wallet-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(3, 7, 18, 0.6); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 60; padding: 1rem; box-sizing: border-box; }
    #wallet-overlay.active { opacity: 1; pointer-events: auto; }
    #wallet-container {
      width: 100%;
      max-width: 640px;
      margin-left: 1rem;
      margin-right: 1rem;
      transform: scale(0.9) translateY(20px);
      opacity: 0;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }
    #wallet-container.active { transform: scale(1) translateY(0); opacity: 1; }
    .wallet-card { background-color: var(--dark-bg); padding: 2rem 1.5rem; display: flex; flex-direction: column; border: 2px solid var(--neon-blue); box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(255, 0, 153, 0.3); transition: all 0.5s ease-in-out; width: 100%; position: relative; }
    #wallet-exit-btn { margin-top: auto; }
    .currency-icon { display: inline-block; height: 36px; width: auto; vertical-align: sub; user-select: none; pointer-events: none; filter: drop-shadow(0 0 3px var(--neon-blue)); }
    .currency-icon-notification { display: inline-block; height: 20px; width: auto; vertical-align: sub; margin-right: 4px; user-select: none; pointer-events: none; filter: drop-shadow(0 0 3px var(--neon-blue)); }
    .currency-icon-menu { display: inline-block; height: 32px; width: 32px; vertical-align: middle; margin-right: 1px; background: none !important; border-radius: 0 !important; box-shadow: none !important; object-fit: contain; user-select: none; pointer-events: none; filter: drop-shadow(0 0 3px var(--neon-blue)); }
    .neon-text-blue { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue), 0 0 10px rgba(0, 255, 255, 0.4); }
    .neon-text-pink { color: var(--neon-pink); text-shadow: 0 0 5px var(--neon-pink), 0 0 10px rgba(255, 0, 153, 0.4); }
    .neon-btn { background-color: transparent; border: 2px solid var(--neon-pink); color: var(--neon-pink); box-shadow: 0 0 5px var(--neon-pink), inset 0 0 5px var(--neon-pink); transition: all 0.3s ease; position: relative; overflow: hidden; }
    .neon-btn:hover { color: var(--dark-bg); background-color: var(--neon-pink); box-shadow: 0 0 15px var(--neon-pink), 0 0 30px var(--neon-pink); transform: translateY(-2px); }
    .neon-btn-blue { border: 2px solid var(--neon-blue); color: var(--neon-blue); box-shadow: 0 0 5px var(--neon-blue), inset 0 0 5px var(--neon-blue); }
    .neon-btn-blue:hover { color: var(--dark-bg); background-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue); transform: translateY(-2px); }
    .neon-btn-close { border: 2px solid #ef4444; color: #ef4444; box-shadow: 0 0 5px #ef4444, inset 0 0 5px #ef4444; }
    .neon-btn-close:hover { color: var(--dark-bg); background-color: #ef4444; box-shadow: 0 0 15px #ef4444, 0 0 30px #ef4444; transform: translateY(-2px); }
    .neon-btn-green { border: 2px solid #22c55e; color: #22c55e; box-shadow: 0 0 5px #22c55e, inset 0 0 5px #22c55e; }
    .neon-btn-green:hover:not(:disabled) { color: var(--dark-bg); background-color: #22c55e; box-shadow: 0 0 15px #22c55e, 0 0 30px #22c55e; transform: translateY(-2px); }
    .neon-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; border-color: #555; color: #555; }
    #send-ui-container { transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); max-height: 0; opacity: 0; overflow: hidden; transform: translateY(20px); background: rgba(13, 13, 26, 0.95); border: 1px solid rgba(0, 255, 255, 0.1); border-radius: 1rem; padding: 0; margin-bottom: 0; }
    #send-ui-container.visible { max-height: 600px; opacity: 1; transform: translateY(0); padding: 1.5rem; margin-bottom: 1rem; box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 10px rgba(0, 255, 255, 0.1); }
    .input-group { position: relative; margin-bottom: 1.5rem; }
    .input-label { position: absolute; top: -10px; left: 10px; background: var(--dark-bg); padding: 0 5px; color: var(--neon-blue); font-size: 0.75rem; font-weight: bold; z-index: 10; }
    #trade-view .input-label { color: var(--neon-green); }
    .neon-input { width: 100%; background: rgba(3, 7, 18, 0.6); border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 0.5rem; padding: 0.75rem 1rem; color: #fff; font-family: monospace; transition: all 0.3s ease; }
    .neon-input:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 8px rgba(0, 255, 255, 0.3); }
    #trade-view .neon-input { border-color: rgba(34, 197, 94, 0.4); }
    #trade-view .neon-input:focus { border-color: var(--neon-green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
    .neon-input.valid { border-color: var(--neon-green); }
    .neon-input.invalid { border-color: var(--neon-red); }
    .validation-msg { color: #ef4444; font-size: 0.7rem; margin-top: 0.25rem; height: 1rem; opacity: 0; transition: opacity 0.3s; }
    .validation-msg.visible { opacity: 1; }
    #history-container { display: none; opacity: 0; transition: opacity 0.4s ease; max-height: 400px; overflow-y: auto; margin-bottom: 1rem; }
    #history-container.visible { display: block; opacity: 1; }
    #history-container::-webkit-scrollbar, #trade-requests-list-container::-webkit-scrollbar, #trade-history-list-container::-webkit-scrollbar { width: 6px; }
    #history-container::-webkit-scrollbar-track, #trade-requests-list-container::-webkit-scrollbar-track, #trade-history-list-container::-webkit-scrollbar-track { background: #030712; }
    #history-container::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 3px; }
    #trade-requests-list-container::-webkit-scrollbar-thumb, #trade-history-list-container::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 3px; }
    .wallet-section-fade-out { transition: opacity 0.3s ease-out, transform 0.3s ease-out; opacity: 0; transform: scale(0.95); pointer-events: none; }
    .neon-btn::before, .neon-btn-blue::before, .neon-btn-close::before, .neon-btn-green::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.1); transition: left 0.5s; }
    .neon-btn:hover::before, .neon-btn-blue:hover::before, .neon-btn-close:hover::before, .neon-btn-green:hover::before { left: 100%; }
    .wallet-id-container { box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.3); position: relative; }
    #copy-tooltip { opacity: 0; transition: opacity 0.3s ease; white-space: nowrap; color: var(--neon-pink); text-shadow: 0 0 3px var(--neon-pink), 0 0 6px rgba(255, 0, 153, 0.4); font-size: 0.75rem; }
    .wallet-id-container:hover #copy-tooltip.active { opacity: 1; }
    .wallet-id-text { font-family: monospace; }
    .clickable-id:hover { cursor: pointer; background-color: rgba(0, 255, 255, 0.05); transition: background-color 0.2s; }
    .icon-btn:hover svg { transform: rotate(15deg); transition: transform 0.3s ease; }
    .icon-btn svg { transition: transform 0.3s ease; }
    .history-item { cursor: default; border-bottom: 1px solid rgba(0, 255, 255, 0.1); user-select: none; }
    #copy-success { opacity: 0; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; transform: translateY(10px); }
    #copy-success.show { opacity: 1; transform: translateY(0); }
    #banned-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: opacity 1s ease; }
    #banned-screen.active { display: flex; opacity: 1; }
    .banned-text { font-family: monospace; color: var(--neon-red); font-size: 3rem; font-weight: 900; text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 40px var(--neon-red); animation: bannedPulse 2s infinite alternate; letter-spacing: 0.2em; text-align: center; }
    .banned-subtext { color: #ef4444; font-size: 1rem; margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
    @keyframes bannedPulse { 0% { text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red); opacity: 0.8; } 100% { text-shadow: 0 0 20px var(--neon-red), 0 0 40px var(--neon-red), 0 0 60px var(--neon-red); opacity: 1; } }

    #maintenance-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(ellipse at center, #1a1a00 0%, #000000 70%); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 9998; opacity: 0; transition: opacity 1s ease; color: #fde047; overflow: hidden; }
    #maintenance-screen::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.5), transparent); animation: scan 4s linear infinite; }
    @keyframes scan { 0% { transform: translateY(-10px); } 100% { transform: translateY(100vh); } }
    #maintenance-screen.active { display: flex; opacity: 1; }
    .maintenance-icon { width: 6rem; height: 6rem; color: #facc15; margin-bottom: 2rem; animation: spin-pulse 4s cubic-bezier(0.5, 0, 0.5, 1) infinite; filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 25px rgba(250, 204, 21, 0.6)); }
    @keyframes spin-pulse { 0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 25px rgba(250, 204, 21, 0.6)); } 50% { transform: rotate(180deg) scale(1.1); filter: drop-shadow(0 0 20px #fde047) drop-shadow(0 0 40px rgba(253, 224, 71, 0.8)); } 100% { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 25px rgba(250, 204, 21, 0.6)); } }
    .maintenance-text { font-family: monospace; color: #fde047; font-size: 2.5rem; font-weight: 900; text-shadow: 0 0 8px rgba(250, 204, 21, 0.8), 0 0 16px #facc15, 0 0 32px #facc15; animation: flicker 3s infinite; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
    @keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 4px rgba(250, 204, 21, 0.5), 0 0 11px #facc15, 0 0 19px #facc15, 0 0 40px #f59e0b, 0 0 80px #f59e0b; opacity: 1; } 20%, 24%, 55% { text-shadow: none; opacity: 0.7; } }
    .maintenance-subtext { color: #eab308; font-size: 1rem; margin-top: 1rem; letter-spacing: 0.05em; opacity: 0.9; animation: pulse 4s infinite; text-align: center; }
    .maintenance-progress-bar { width: 80%; max-width: 400px; height: 12px; background-color: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.3); border-radius: 6px; margin-top: 2.5rem; padding: 2px; box-shadow: inset 0 0 5px rgba(0,0,0,0.5); }
    .maintenance-progress-bar-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #f59e0b, #fde047); border-radius: 4px; box-shadow: 0 0 5px #fde047, 0 0 10px #facc15; position: relative; overflow: hidden; }
    .maintenance-progress-bar-fill::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%); transform: skewX(-25deg); animation: progress-sheen 2s infinite linear; }
    @keyframes progress-sheen { 0% { left: -75%; } 100% { left: 125%; } }

    #rewards-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(23, 10, 39, 0.6); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 60; padding: 1rem; box-sizing: border-box; }
    #rewards-overlay.active { opacity: 1; pointer-events: auto; }
    #rewards-container { width: 100%; max-width: 640px; margin-left: 1rem; margin-right: 1rem; transform: scale(0.9) translateY(20px); opacity: 0; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; }
    #rewards-container.active { transform: scale(1) translateY(0); opacity: 1; }
    .rewards-card { background-color: var(--dark-bg); padding: 2rem 1.5rem; display: flex; flex-direction: column; border: 2px solid var(--neon-purple); box-shadow: 0 0 15px rgba(159, 122, 234, 0.5), 0 0 30px rgba(159, 122, 234, 0.3); transition: all 0.5s ease-in-out; width: 100%; position: relative; min-height: 400px; }
    #rewards-header h2 { color: var(--neon-purple); text-shadow: 0 0 8px var(--neon-purple), 0 0 16px rgba(159, 122, 234, 0.5); text-align: center; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
    #rewards-exit-btn { margin-top: auto; }
    .text-purple-400 { color: #a78bfa; text-shadow: 0 0 10px #9f7aea; }
    
    @media (max-width: 640px) { .attribution { bottom: 1rem; } #buttons-wrapper { padding-bottom: 4rem; padding-top: 1.5rem; } #profile-content > div:first-child { padding: 0.5rem; } #profile-content .w-16.h-16 { width: 3rem !important; height: 3rem !important; } #profile-content h1.text-xl { font-size: 1.1rem; } #profile-content p.text-sm { font-size: 0.75rem; } .credits-box { padding: 0.5rem 0.75rem; } .credits-box .text-lg { font-size: 0.875rem; } .credits-box img { width: 1rem !important; height: 1rem !important; } #buttons-grid { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; justify-content: center; gap: 0.75rem !important; padding-left: 0.75rem; padding-right: 0.75rem; max-width: none !important; padding-top: 1rem; padding-bottom: 1rem; -ms-overflow-style: none; scrollbar-width: none; } #buttons-grid::-webkit-scrollbar { display: none; } #buttons-grid > div { flex-shrink: 0; width: auto; } .menu-button { width: 3.5rem; height: 3.5rem; border-radius: 0.5rem; } .portal-button-svg, .menu-button svg { width: 1.75rem; height: 1.75rem; } .portal-button-text, #buttons-grid .text-xs { font-size: 0.7rem; margin-top: 0.3rem; } #portal-container { width: 90vw; height: 85vh; max-width: 425px; max-height: 640px; border-radius: 1.5rem; padding: 0.5rem 1rem 1rem; } #catch-button { width: 80px; height: 80px; } #catch-button svg { width: 35px; height: 35px; } #credit-payout { font-size: 2.5rem; } #credit-notification.show { bottom: 1rem; } #timer-notification.show { bottom: 1rem; } #portal-title { font-size: 1.5rem; margin-top: 0; } #portal-exit-btn { padding: 0.75rem 2rem; font-size: 0.9rem; margin-top: auto; margin-bottom: 1rem; } .banned-text { font-size: 2rem; } .maintenance-text { font-size: 2rem; } }

.level-container { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #29374e, #182133); height: 22px; min-width: 55px; border-radius: 11px; border: 1px solid rgba(96, 165, 250, 0.4); box-shadow: 0 0 10px rgba(96, 165, 250, 0.3), inset 0 1px 2px rgba(0,0,0,0.5); z-index: 5; padding: 0 10px; margin-right: -15px; }
.level-text { font-size: 0.6rem; font-weight: 700; color: #93c5fd; margin-right: 4px; text-transform: uppercase; line-height: 1; }
.level-number { font-size: 0.8rem; font-weight: 800; color: #e0f2fe; text-shadow: 0 0 3px #60a5fa, 0 0 7px #60a5fa; line-height: 1; }
.xp-bar-container { height: 14px; flex-grow: 1; background-color: rgba(15, 23, 42, 0.7); border-radius: 7px; border: 1px solid rgba(96, 165, 250, 0.1); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); overflow: hidden; position: relative; padding-left: 15px; }
.xp-bar-fill { height: 100%; border-radius: 0; background: linear-gradient(90deg, #8b5cf6, #3b82f6); box-shadow: 0 0 5px rgba(96, 165, 250, 0.5), 0 0 10px rgba(139, 92, 246, 0.4); transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1); position: relative; overflow: hidden; }
.xp-bar-fill::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-25deg) translateX(-150%); animation: xp-sheen 2.5s infinite linear; }
@keyframes xp-sheen { 100% { transform: skewX(-25deg) translateX(450%); } }
#xp-progress-text { display: none; }
#rewards-list::-webkit-scrollbar { width: 6px; }
#rewards-list::-webkit-scrollbar-track { background: transparent; }
#rewards-list::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 3px; border: 1px solid rgba(159, 122, 234, 0.5); }
.reward-item { display: flex; align-items: center; gap: 0.75rem; background: rgba(159, 122, 234, 0.05); padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(159, 122, 234, 0.2); transition: all 0.3s ease; overflow: hidden; }
.reward-item:hover { background: rgba(159, 122, 234, 0.1); border-color: rgba(159, 122, 234, 0.4); transform: scale(1.02); }
.reward-item.locked { filter: grayscale(80%); opacity: 0.6; }
.reward-item.locked:hover { transform: none; background: rgba(159, 122, 234, 0.05); border-color: rgba(159, 122, 234, 0.2); }
.reward-info { display: flex; align-items: center; gap: 1rem; flex-grow: 1; min-width: 0; }
.reward-level-badge { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; color: var(--dark-bg); background-color: var(--neon-purple); padding: 0.2rem 0.5rem; border-radius: 0.25rem; box-shadow: 0 0 5px var(--neon-purple); text-shadow: none; white-space: nowrap; }
.reward-amount { font-size: 1rem; font-weight: 600; color: #e0f2fe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reward-amount img { width: 1rem; height: 1rem; display: inline-block; vertical-align: text-bottom; margin-left: 0.25rem; filter: drop-shadow(0 0 2px var(--neon-blue)); }
.reward-claim-btn { flex-shrink: 0; padding: 0.4rem 1.2rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; border-radius: 0.375rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.reward-claim-btn.claimable { border: 1px solid #22c55e; color: #22c55e; background-color: transparent; box-shadow: 0 0 4px #22c55e, inset 0 0 4px #22c55e; }
.reward-claim-btn.claimable:hover { color: var(--dark-bg); background-color: #22c55e; box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e; transform: translateY(-1px); }
.reward-claim-btn.claimed { border: 1px solid #6b7280; color: #6b7280; background-color: transparent; cursor: default; }
.reward-claim-btn.locked { border: 1px solid #4b5563; color: #4b5563; background-color: transparent; cursor: default; }
.reward-claim-btn:disabled:hover { transform: none; background-color: transparent !important; }

#trade-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 39, 20, 0.6); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 60; padding: 1rem; box-sizing: border-box; }
#trade-overlay.active { opacity: 1; pointer-events: auto; }
#trade-container { width: 100%; max-width: 640px; margin-left: 1rem; margin-right: 1rem; transform: scale(0.9) translateY(20px); opacity: 0; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; }
#trade-container.active { transform: scale(1) translateY(0); opacity: 1; }
.trade-card { background-color: var(--dark-bg); padding: 2rem 1.5rem; display: flex; flex-direction: column; border: 2px solid var(--neon-green); box-shadow: 0 0 15px rgba(34, 197, 94, 0.5), 0 0 30px rgba(34, 197, 94, 0.3); transition: all 0.5s ease-in-out; width: 100%; position: relative; min-height: 400px; }
#trade-header h2 { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green), 0 0 16px rgba(34, 197, 94, 0.5); text-align: center; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
#trade-exit-btn { margin-top: auto; }
.history-card-item { background: rgba(255, 255, 255, 0.03); border-left: 3px solid #333; margin-bottom: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0 0.5rem 0.5rem 0; transition: background 0.2s; }
.history-card-item:hover { background: rgba(255, 255, 255, 0.07); }
.history-card-item.sent { border-left-color: #ef4444; }
.history-card-item.received { border-left-color: #22c55e; }
.history-item-content { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.history-icon { font-size: 1.125rem; font-weight: 700; width: 1.25rem; text-align: center; margin-right: 0.625rem; flex-shrink: 0; }
.history-details { flex-grow: 1; min-width: 0; }
.history-type { color: #e2e8f0; font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-timestamp { font-size: 0.75rem; color: #64748b; }
.history-amount { font-family: monospace; font-weight: 700; font-size: 0.875rem; margin-left: 0.5rem; flex-shrink: 0; }

.currency-text { color: var(--neon-blue); font-weight: 800; font-family: 'Inter', sans-serif; margin-left: 2px; font-size: 0.9em; text-shadow: 0 0 5px var(--neon-blue); vertical-align: middle; }

.trade-tab { color: #6b7280; transition: color 0.3s ease, border-color 0.3s ease; border-bottom: 2px solid transparent; }
.trade-tab.active-tab { color: var(--neon-green); border-bottom-color: var(--neon-green); }
.trade-request-item, .trade-history-item { background: rgba(34, 197, 94, 0.05); border: 1px solid rgba(34, 197, 94, 0.15); padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 0.75rem; }
.trade-details { margin: 0.5rem 0; font-size: 0.8rem; line-height: 1.4; }
.trade-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }

.char-info-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #4b5563;
}
.char-info-box img {
    width: 48px;
    height: 48px;
    border-radius: 0.25rem;
    object-fit: cover;
    flex-shrink: 0;
}
.char-info-details {
    font-size: 0.8rem;
}
.char-info-name {
    font-weight: bold;
    color: #e5e7eb;
}
.char-info-rarity {
    font-size: 0.7rem;
    color: #9ca3af;
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 39, 20, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.custom-alert-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.custom-alert-box {
    background-color: var(--dark-bg);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.4);
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.custom-alert-overlay.visible .custom-alert-box {
    transform: scale(1);
    opacity: 1;
}

.custom-alert-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

.custom-alert-message {
    color: #e5e7eb;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.custom-alert-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#tax-display-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}
#tax-display-container.hidden {
    display: none;
    transform: translateY(-10px);
    opacity: 0;
}
.text-yellow-400 { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }
.text-yellow-200 { color: #fef08a; }
.bg-yellow-900\/20 { background-color: rgba(113, 63, 18, 0.2); }
.border-yellow-500\/50 { border-color: rgba(234, 179, 8, 0.5); }

#cleaning-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,7,18,0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 0.75rem;
}

#cleaning-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#cleaning-container {
  width: 100%;
  max-width: 880px;
  height: auto;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  transform: scale(0.96) translateY(18px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

#cleaning-overlay.active #cleaning-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

#cleaning-card {
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(2,6,23,0.96);
  border-radius: 1rem;
  border: 1px solid rgba(59,130,246,0.18);
  box-shadow: 0 0 22px rgba(59,130,246,0.18);
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

#cleaning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  padding-right: 40px;
  flex-shrink: 0;
}

#cleaning-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e5e7eb;
  white-space: nowrap;
}

#cleaning-search,
#cleaning-filter {
  height: 30px;
  padding: 0 10px;
  font-size: 0.72rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 0.45rem;
  color: #c7d2fe;
  min-width: 110px;
}

#cleaning-search::placeholder {
  color: rgba(147,197,253,0.45);
}

#cleaning-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
  box-shadow: none;
  padding: 0;
}

#cleaning-close-btn::before,
#cleaning-close-btn::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background-color: #94a3b8;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

#cleaning-close-btn::before { transform: rotate(45deg); }
#cleaning-close-btn::after { transform: rotate(-45deg); }

#cleaning-close-btn:hover {
  transform: rotate(90deg);
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

#cleaning-close-btn:hover::before,
#cleaning-close-btn:hover::after {
  background-color: #ef4444;
}

#cleaning-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 0.6rem;
  background: rgba(2,6,23,0.55);
  border-radius: 0.75rem;
  border: 1px solid rgba(59,130,246,0.12);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

#cleaning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 16px;
  height: 100%;
}

@media (min-width: 640px) { #cleaning-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 768px) { #cleaning-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

.cleaning-item {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.6rem;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.cleaning-item:hover {
  border-color: rgba(59,130,246,0.45);
  transform: translateY(-1px);
}

.cleaning-item.selected {
  border-color: rgba(59,130,246,0.8);
  box-shadow: inset 0 0 10px rgba(59,130,246,0.25);
}

.cleaning-item img, .cleaning-item video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.35rem;
}

.cleaning-item .char-meta { width: 100%; }
.cleaning-item .char-name {
  font-size: 0.68rem;
  color: #c7d2fe;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cleaning-item .char-id { font-size: 0.6rem; color: #93c5fd; font-family: monospace; text-align: center; }
.cleaning-item .char-rarity { color: #a78bfa; }

#cleaning-summary { font-size: 0.7rem; color: #c7d2fe; }

#cleaning-card footer {
    flex-shrink: 0;
    margin-top: auto;
}

#cleaning-burn-btn {
  height: 32px;
  padding: 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 0.5rem;

  background: transparent;
  border: 2px solid #f97316 !important;
  color: #f97316 !important;
  box-shadow: 0 0 5px #f97316, inset 0 0 5px rgba(249, 115, 22, 0.5) !important;
  text-shadow: 0 0 5px #f97316;
  transition: all 0.3s ease;
}

#cleaning-burn-btn:hover:not(:disabled) {
  background-color: #f97316 !important;
  color: #020617 !important;
  box-shadow: 0 0 15px #f97316, 0 0 30px #f97316 !important;
  transform: translateY(-2px);
}

#cleaning-burn-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #555 !important;
  color: #555 !important;
  box-shadow: none !important;
  text-shadow: none;
}

#cleaning-confirm-yes {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 5px #ef4444, inset 0 0 5px rgba(239, 68, 68, 0.5) !important;
  text-shadow: 0 0 5px #ef4444;
  transition: all 0.3s ease;
}

#cleaning-confirm-yes:hover:not(:disabled) {
  background-color: #ef4444 !important;
  color: #000000 !important;
  box-shadow: 0 0 20px #ef4444, 0 0 40px #ef4444 !important;
}

#cleaning-confirm-yes:disabled {
  border-color: #4b5563 !important;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none;
  cursor: wait;
}

#cleaning-confirm-list {
  text-align: left;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1rem;

  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
}

#cleaning-confirm-list div {
  padding: 3px 6px;
  color: #d1d5db;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

#cleaning-confirm-list div:last-child {
  border-bottom: none;
}

:root {
    --neon-orange: #f97316;
    --neon-yellow: #eab308;
}

#auction-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(30, 15, 5, 0.6); backdrop-filter: blur(15px); display: flex; align-items: flex-start; justify-content: flex-start; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 60; padding: 0;; box-sizing: border-box; overflow-y: auto; }
#auction-overlay.active { opacity: 1; pointer-events: auto; }

#auction-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    transform: scale(1) translateY(0);
    opacity: 1;
    min-height: 100vh;
}
#auction-container.active { transform: scale(1) translateY(0); opacity: 1; }

.auction-card { 
    background-color: var(--dark-bg); 
    padding: 1rem 0.5rem;; 
    display: flex; 
    flex-direction: column; 
    border: none; 
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5), 0 0 30px rgba(249, 115, 22, 0.3); 
    transition: all 0.5s ease-in-out; 
    width: 100%; 
    position: relative; 
    min-height: 100vh;
}

#auction-header h2 { 
    color: var(--neon-orange); 
    text-shadow: 0 0 8px var(--neon-orange), 0 0 16px rgba(249, 115, 22, 0.5); 
    text-align: center; 
    font-size: 1.5rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}

.neon-btn-yellow { border: 2px solid var(--neon-yellow); color: var(--neon-yellow); box-shadow: 0 0 5px var(--neon-yellow), inset 0 0 5px var(--neon-yellow); }
.neon-btn-yellow:hover { color: var(--dark-bg); background-color: var(--neon-yellow); box-shadow: 0 0 15px var(--neon-yellow), 0 0 30px var(--neon-yellow); transform: translateY(-2px); }

.neon-btn-purple { border: 2px solid var(--neon-purple); color: var(--neon-purple); box-shadow: 0 0 5px var(--neon-purple), inset 0 0 5px var(--neon-purple); }
.neon-btn-purple:hover { color: var(--dark-bg); background-color: var(--neon-purple); box-shadow: 0 0 15px var(--neon-purple), 0 0 30px var(--neon-purple); transform: translateY(-2px); }

.neon-btn-orange { border: 2px solid var(--neon-orange); color: var(--neon-orange); box-shadow: 0 0 5px var(--neon-orange), inset 0 0 5px var(--neon-orange); }
.neon-btn-orange:hover { color: var(--dark-bg); background-color: var(--neon-orange); box-shadow: 0 0 15px var(--neon-orange), 0 0 30px var(--neon-orange); transform: translateY(-2px); }

#auction-market-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
    padding-bottom: 0;
}

.auction-card-modern {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(0, 0, 0, 0.8));
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auction-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.5);
}

.auction-card-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center top;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #000;
}

.auction-timer-badge {
    position: absolute;
    top: -10px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.bid-info-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 6px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    line-height: 1;
}

#custom-alert-overlay {
    z-index: 20000 !important;
}
#bid-modal-overlay {
    z-index: 10000 !important;
}

.text-neon-orange {
    color: #f97316 !important;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}

.text-neon-purple {
    color: #a78bfa !important;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

.text-neon-green {
    color: #4ade80 !important;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.auction-timer-container {
    position: absolute;
    top: -3px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 38px;
    z-index: 10;
}

.admin-trash-btn {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ff6b6b;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    opacity: 0.75;
}

.admin-trash-btn:hover {
    background: rgba(255,70,70,0.18);
    color: #ff8080;
    transform: scale(1.08);
    opacity: 0.55;
}

.auction-timer-badge-inner {
    background: rgba(0, 0, 0, 0.85);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(4px);
}

/* Fix auction bid box for 2-column cards */
#auction-market-list .bid-info-box {
    padding: 6px !important;
    gap: 4px !important;
}

#auction-market-list .bid-info-box > * {
    font-size: 0.7rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#auction-market-list .bid-info-box .text-neon-orange {
    font-size: 1.05rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#auction-market-list button {
    padding: 8px 10px !important;
    min-height: 38px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

#auction-market-list button * {
    font-size: inherit !important;
    white-space: nowrap !important;
}


/* Purchase overlay - same pattern as trade-overlay, different tint */
#purchase-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(20, 30, 45, 0.6); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; z-index: 60; padding: 1rem; box-sizing: border-box; }
#purchase-overlay.active { opacity: 1; pointer-events: auto; }
.purchase-card { background: linear-gradient(180deg, rgba(15, 25, 40, 0.95), rgba(10, 20, 35, 0.95)); border: 1px solid rgba(96, 165, 250, 0.3); padding: 1.5rem; width: 100%; max-width: 480px; }
.purchase-item-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(96, 165, 250, 0.1); font-size: 0.85rem; }
.purchase-item-row.error { color: #f87171; }
.purchase-info-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(96,165,250,0.2); padding: 0.6rem 0.8rem; border-radius: 0.5rem; font-family: monospace; word-break: break-all; }


/* NFT feature-locked screen (per-tab) */
.nft-locked-screen {
  text-align: center; padding: 32px 16px;
  color: #fde047;
  background: radial-gradient(ellipse at center, rgba(250,204,21,0.05) 0%, transparent 70%);
}
.nft-lock-gear {
  width: 4.5rem; height: 4.5rem; color: #facc15; margin: 0 auto;
  animation: nft-gear-spin 4s cubic-bezier(0.5,0,0.5,1) infinite;
  filter: drop-shadow(0 0 12px #facc15) drop-shadow(0 0 25px rgba(250,204,21,0.6));
}
.nft-lock-title {
  margin-top: 0.75rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 1.2rem;
  text-shadow: 0 0 8px rgba(250,204,21,0.8), 0 0 16px #facc15;
}
.nft-lock-subtitle {
  margin-top: 0.5rem; color: #eab308;
  font-size: 0.7rem; letter-spacing: 0.05em;
  text-transform: uppercase; opacity: 0.9;
}
@keyframes nft-gear-spin {
  0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }
}


/* NFT_RESULT_MODAL_v1 — clean card styling + tier colors */
#nft-result-modal { padding: 1rem; box-sizing: border-box; }
.nft-result-card {
    background: linear-gradient(180deg, rgba(15,8,32,0.98), rgba(8,4,20,0.98)) !important;
    background-image: linear-gradient(180deg, rgba(15,8,32,0.98), rgba(8,4,20,0.98)) !important;
    border: 2px solid rgba(167,139,250,0.5);
    border-radius: 1rem;
    padding: 2rem 1.5rem !important;
    width: 100% !important;
    max-width: 340px !important;
    max-height: 80vh;
    text-align: center;
    box-shadow: 0 0 30px rgba(167,139,250,0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.nft-result-icon  { font-size: 4rem !important; line-height: 1; margin-bottom: 0.75rem; }
.nft-result-title { font-size: 1.4rem !important; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: #fff !important; margin-bottom: 0.4rem; }
.nft-result-detail{ font-size: 0.9rem !important; color: #cbd5e1 !important; margin-bottom: 1.5rem; min-height: 1.2em; }
.nft-result-close-btn {
    width: 100% !important; padding: 0.75rem !important; border-radius: 0.6rem !important;
    background: rgba(167,139,250,0.2) !important;
    border: 1px solid rgba(167,139,250,0.5) !important;
    color: #a78bfa !important; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; font-size: 0.9rem; cursor: pointer;
}
.nft-result-close-btn:hover { background: rgba(167,139,250,0.35) !important; color: #fff !important; }
.nft-result-card.tier-nft      { border-color: #06b6d4 !important; box-shadow: 0 0 40px rgba(6,182,212,0.55); }
.nft-result-card.tier-nft      .nft-result-title { color: #67e8f9 !important; text-shadow: 0 0 12px #06b6d4; }
.nft-result-card.tier-mythical { border-color: #f0abfc !important; box-shadow: 0 0 30px rgba(240,171,252,0.45); }
.nft-result-card.tier-mythical .nft-result-title { color: #f0abfc !important; text-shadow: 0 0 12px #d946ef; }
.nft-result-card.tier-divine   { border-color: #fde047 !important; box-shadow: 0 0 30px rgba(253,224,71,0.45); }
.nft-result-card.tier-divine   .nft-result-title { color: #fde047 !important; text-shadow: 0 0 12px #facc15; }
.nft-result-card.tier-cross    { border-color: #a78bfa !important; box-shadow: 0 0 30px rgba(167,139,250,0.45); }
.nft-result-card.tier-cross    .nft-result-title { color: #c4b5fd !important; text-shadow: 0 0 12px #a78bfa; }
.nft-result-card.tier-cct      { border-color: #fbbf24 !important; box-shadow: 0 0 30px rgba(251,191,36,0.45); }
.nft-result-card.tier-cct      .nft-result-title { color: #fde047 !important; text-shadow: 0 0 12px #fbbf24; }
.nft-result-card.tier-free     { border-color: #67e8f9 !important; box-shadow: 0 0 30px rgba(103,232,249,0.45); }
.nft-result-card.tier-free     .nft-result-title { color: #67e8f9 !important; text-shadow: 0 0 12px #06b6d4; }


/* NFT_WHEEL_CHAR_IMG_SIZE_v1 */
.nft-wheel-char-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
}


/* NFT_WHEEL_RING_TRANSITION_v1 — ensures wheel spins smoothly */
.nft-wheel-ring {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.3, 1) !important;
    transform-origin: center center !important;
    will-change: transform;
}


/* NFT_WHEEL_COMPLETE_v1 — full wheel with 7 colored rarity segments */
.nft-wheel-wrapper {
    position: relative !important;
    width: 310px !important; height: 310px !important;
    margin: 0.75rem auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.nft-wheel-ring {
    position: absolute !important; inset: 0 !important;
    border-radius: 50% !important;
    background: conic-gradient(
        from 0deg,
        #06b6d4 0deg 15.66deg,
        #10b981 15.66deg 46.98deg,
        #f97316 46.98deg 75.06deg,
        #fbbf24 75.06deg 127.44deg,
        #ec4899 127.44deg 222.66deg,
        #6366f1 222.66deg 307.26deg,
        #a855f7 307.26deg 349.74deg,
        #06b6d4 349.74deg 360deg
    ) !important;
    box-shadow: 0 0 32px rgba(167,139,250,0.6), 0 0 60px rgba(99,102,241,0.25), inset 0 0 28px rgba(0,0,0,0.5) !important;
    border: 4px solid rgba(167,139,250,0.75) !important;
}
.nft-wheel-center {
    position: relative !important; z-index: 2 !important;
    width: 225px !important; height: 225px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(15,8,32,0.95), rgba(8,4,20,0.98)) !important;
    border: 3px solid rgba(167,139,250,0.7) !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.7), inset 0 0 15px rgba(167,139,250,0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.nft-wheel-char-name {
    font-size: 0.75rem; font-weight: 700;
    color: #c4b5fd; text-align: center;
    margin-top: 0.35rem; max-width: 90%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 0 6px rgba(167,139,250,0.6);
}
.nft-wheel-pointer {
    position: absolute !important;
    top: -8px !important; left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important; height: 0 !important;
    border-left: 14px solid transparent !important;
    border-right: 14px solid transparent !important;
    border-top: 22px solid #fde047 !important;
    filter: drop-shadow(0 0 8px #facc15) !important;
    z-index: 5 !important;
}


/* NFT_WHEEL_HIDE_NAME_v1 — hide char name inside wheel (was being clipped) */
.nft-wheel-center .nft-wheel-char-name { display: none !important; }


/* NFT_WHEEL_SEG_LABELS_v1 — text labels inside each segment */
.seg-label {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-top: 24px !important;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.7);
    white-space: nowrap;
}
.seg-label.seg-nft    { transform: rotate(1.44deg)   !important; }
.seg-label.seg-free   { transform: rotate(31.32deg)  !important; }
.seg-label.seg-cct5k  { transform: rotate(61.02deg)  !important; }
.seg-label.seg-cct3k  { transform: rotate(101.25deg) !important; color: #422006 !important; text-shadow: 0 1px 1px rgba(255,255,255,0.7), 0 0 3px rgba(255,255,255,0.5) !important; }
.seg-label.seg-myth   { transform: rotate(175.05deg) !important; }
.seg-label.seg-divine { transform: rotate(264.96deg) !important; color: #ffffff !important; text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.7) !important; }
.seg-label.seg-cross  { transform: rotate(328.5deg)  !important; }


/* NFT_WHEEL_3RANKS_v1 — 3-character display in wheel center (SS top, A+S bottom) */
.nft-wheel-chars {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    width: 100% !important;
    padding: 0.15rem !important;
}
.nft-rank-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
}
.nft-rank-slot {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transition: opacity 0.3s, filter 0.3s !important;
}
.nft-rank-img-wrap {
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #0f0820 !important;
    position: relative !important;
}
.nft-rank-ss .nft-rank-img-wrap {
    width: 92px !important; height: 92px !important;
    border: 3px solid #fde047 !important;
    box-shadow: 0 0 16px rgba(253,224,71,0.65), inset 0 0 6px rgba(253,224,71,0.3) !important;
}
.nft-rank-a .nft-rank-img-wrap {
    width: 72px !important; height: 72px !important;
    border: 2.5px solid #a78bfa !important;
    box-shadow: 0 0 12px rgba(167,139,250,0.55), inset 0 0 4px rgba(167,139,250,0.3) !important;
}
.nft-rank-s .nft-rank-img-wrap {
    width: 72px !important; height: 72px !important;
    border: 2.5px solid #67e8f9 !important;
    box-shadow: 0 0 12px rgba(103,232,249,0.55), inset 0 0 4px rgba(103,232,249,0.3) !important;
}
.nft-rank-img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.nft-rank-label {
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    margin-top: 2px !important;
    letter-spacing: 0.06em !important;
    text-shadow: 0 0 4px rgba(0,0,0,0.85) !important;
}
.nft-rank-ss .nft-rank-label { color: #fde047 !important; }
.nft-rank-a  .nft-rank-label { color: #a78bfa !important; }
.nft-rank-s  .nft-rank-label { color: #67e8f9 !important; }
.nft-rank-exhausted .nft-rank-img-wrap {
    filter: grayscale(100%) !important;
    opacity: 0.4 !important;
}
.nft-rank-exhausted .nft-rank-img-wrap::after {
    content: "" !important;
    position: absolute !important;
    top: 48% !important; left: -10% !important; right: -10% !important;
    height: 3px !important;
    background: #ef4444 !important;
    transform: rotate(-22deg) !important;
    box-shadow: 0 0 5px #ef4444 !important;
}
.nft-rank-exhausted .nft-rank-label {
    text-decoration: line-through !important;
    opacity: 0.55 !important;
}


/* NFT_MARKET_POLISH_v1 */
.nft-subtab {
    background: rgba(31, 18, 60, 0.5) !important;
    border: 1px solid rgba(167, 139, 250, 0.3) !important;
    color: #9ca3af !important;
    transition: all 0.2s !important;
}
.nft-subtab.active {
    background: rgba(167, 139, 250, 0.25) !important;
    border-color: rgba(167, 139, 250, 0.7) !important;
    color: #c4b5fd !important;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.3) !important;
}
#market-empty, #market-my-empty, #nft-holders-empty {
    background: rgba(31, 18, 60, 0.3);
    border: 1px dashed rgba(167, 139, 250, 0.25);
    border-radius: 0.75rem;
    padding: 2rem 1rem !important;
    color: #9ca3af !important;
    margin-top: 1rem;
    font-size: 0.85rem !important;
    line-height: 1.6;
}
#market-loading, #market-my-loading, #nft-holders-loading {
    color: #a78bfa !important;
    padding: 1.5rem !important;
}


/* ─── NFT Marketplace browse cards (auction-style 2-column layout) ─── */
#market-listings {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
}
.nft-market-card{
    background:#141B30;border:1px solid rgba(255,255,255,.07);
    border-radius:16px;overflow:hidden;position:relative;
    display:flex;flex-direction:column;transition:.18s;
}
.nft-market-card:hover{transform:translateY(-2px);border-color:rgba(232,184,75,.35);box-shadow:0 12px 28px -14px rgba(0,0,0,.7)}
.nft-market-art{position:relative;aspect-ratio:3/4;overflow:hidden;background:linear-gradient(160deg,#1A2238,#0C1124)}
.nft-market-card-image{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;background:#0C1124}
.nft-market-veil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 45%,rgba(8,11,22,.6) 80%,#141B30 100%)}
.nft-market-badge{position:absolute;top:8px;right:8px;z-index:2;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;color:#F7DA8B;background:rgba(232,184,75,.18);border:1px solid rgba(232,184,75,.3);backdrop-filter:blur(6px)}
.nft-market-info{padding:11px 12px 12px;display:flex;flex-direction:column;flex:1}
.nft-market-card-name{font-size:14px;font-weight:700;color:#F1F4FB;letter-spacing:-.01em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nft-market-card-meta{font-size:10px;color:#8B93AD;margin-top:4px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nft-market-price{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.07)}
.nft-market-ton{display:flex;align-items:baseline;gap:4px}
.nft-market-ton b{font-size:17px;font-weight:700;color:#fff}
.nft-market-ton span{font-size:9px;color:#36A8FF;font-weight:700;letter-spacing:.04em}
.nft-market-usdt{font-size:10px;color:#8B93AD;font-weight:500}
.nft-market-usdt b{color:#26A17B;font-weight:700}
.nft-market-buy-btn{margin-top:11px;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#E8B84B,#C8922C);color:#231803;border:none;border-radius:11px;padding:10px;font-size:12.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;cursor:pointer;box-shadow:0 8px 20px -10px rgba(232,184,75,.6);transition:.15s}
.nft-market-buy-btn:hover{filter:brightness(1.05)}
.nft-market-buy-btn:active{transform:translateY(1px)}


/* ─── nft-market-card compact tweak ─── */
/* Bigger artwork, tighter meta + price + button area */
.nft-market-card {
    padding: 0.5rem;
}
.nft-market-card-image {
    height: 200px;          /* was 120px — taller image */
    object-fit: cover;       /* fill the box, no black bars */
    margin-bottom: 0.4rem;
}
.nft-market-card-name {
    font-size: 0.85rem;
    line-height: 1.15;
}
.nft-market-card-meta {
    font-size: 0.6rem;
    line-height: 1.2;
    margin-top: 1px;
}
.nft-market-card-value {
    font-size: 0.62rem;
    line-height: 1.2;
    margin-top: 1px;
}
.nft-market-price-box {
    padding: 4px 8px;
    margin-top: 6px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.nft-market-price-label {
    font-size: 0.55rem;
}
.nft-market-price-value {
    font-size: 0.9rem;
}
.nft-market-buy-btn {
    padding: 0.4rem;
    margin-top: 6px;
    font-size: 0.65rem;
}



/* ============================================================
   NFTW_WHEEL_v2 — premium SVG-based wheel with rotating char showcase
   ============================================================ */
.nftw-stage {
    position: relative !important;
    width: 100% !important;
    max-width: 360px !important;
    aspect-ratio: 1 !important;
    margin: 4px auto 2px !important;
}
.nftw-pointer {
    position: absolute !important;
    left: 50% !important; top: -2px !important;
    transform: translateX(-50%) !important;
    width: 0 !important; height: 0 !important;
    z-index: 6 !important;
    border-left: 17px solid transparent !important;
    border-right: 17px solid transparent !important;
    border-top: 26px solid #ffd166 !important;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)) drop-shadow(0 0 8px rgba(255,209,102,.7)) !important;
}
.nftw-wheel {
    position: absolute !important;
    inset: 0 !important;
    transition: transform 5s cubic-bezier(.13,.72,.06,1) !important;
    will-change: transform !important;
}
.nftw-wheel svg { display: block !important; width: 100% !important; height: 100% !important; }
.nftw-stage::before {
    content: "" !important;
    position: absolute !important;
    inset: 6% !important;
    border-radius: 50% !important;
    box-shadow: 0 0 60px 6px rgba(109,91,208,.35) !important;
    pointer-events: none !important;
}
.nftw-hub {
    position: absolute !important;
    left: 50% !important; top: 50% !important;
    transform: translate(-50%,-50%) !important;
    width: 54% !important; height: 54% !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 50% 40%, #16132c 0%, #0a0917 75%) !important;
    border: 1px solid rgba(141,123,222,.25) !important;
    box-shadow: inset 0 0 40px rgba(0,0,0,.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 4 !important;
    overflow: hidden !important;
}
.nftw-char {
    position: absolute !important;
    width: 82% !important; height: 82% !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transform: scale(.55) rotate(-45deg) !important;
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1) !important;
}
.nftw-char.active { opacity: 1 !important; transform: scale(1) rotate(0) !important; }
.nftw-char.exhausted .nftw-inner { filter: grayscale(100%) !important; opacity: 0.45 !important; }
.nftw-char.exhausted .nftw-tag { text-decoration: line-through !important; opacity: 0.6 !important; }
.nftw-char.exhausted .nftw-inner::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important; left: -5% !important; right: -5% !important;
    height: 3px !important;
    background: #ef4444 !important;
    transform: rotate(-22deg) !important;
    box-shadow: 0 0 6px #ef4444 !important;
    z-index: 3 !important;
}
.nftw-frame {
    position: relative !important;
    width: 100% !important; height: 100% !important;
    border-radius: 50% !important;
    padding: 5px !important;
    background: conic-gradient(from 0deg, var(--c), #fff7e0, var(--c), #7a5e1c, var(--c)) !important;
    box-shadow: 0 0 26px 2px var(--c), inset 0 0 12px rgba(0,0,0,.4) !important;
}
.nftw-frame::after {
    content: "" !important;
    position: absolute !important;
    inset: -30% !important;
    border-radius: 50% !important;
    background: conic-gradient(from 0deg, transparent 0 75%, rgba(255,255,255,.55) 88%, transparent 100%) !important;
    animation: nftwRingspin 4s linear infinite !important;
    mix-blend-mode: screen !important;
}
.nftw-inner {
    position: relative !important;
    width: 100% !important; height: 100% !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #0c0b18 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
}
.nftw-inner img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.nftw-inner .nftw-ph {
    width: 100% !important; height: 100% !important;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 55%, #14122a), #0b0a16 70%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    font-size: 34px !important;
    color: var(--c) !important;
    text-shadow: 0 0 18px var(--c) !important;
}
.nftw-tag {
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    letter-spacing: 2px !important;
    color: var(--c) !important;
    text-shadow: 0 0 10px var(--c), 0 2px 3px #000 !important;
    z-index: 2 !important;
}
@keyframes nftwRingspin { to { transform: rotate(360deg); } }
.nftw-char.nftw-fast { transition: none !important; }
.nftw-wheel.nftw-slow { transition: transform 8.5s cubic-bezier(.05, .85, .08, 1) !important; }
.nftw-lamps {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
}
.nftw-lamp {
    position: absolute !important;
    width: 7px !important; height: 7px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, #fff 0%, #ffd166 45%, rgba(255,209,102,0) 75%) !important;
    transform: translate(-50%,-50%) !important;
    animation: nftwTwinkle 1.8s ease-in-out infinite !important;
}
@keyframes nftwTwinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.nftw-spin-btn {
    width: 100% !important;
    border: 0 !important;
    cursor: pointer !important;
    font-family: 'Rajdhani', system-ui, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .5px !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-top: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    color: #e9e9f5 !important;
    font-size: 17px !important;
    background: linear-gradient(180deg, rgba(22,22,44,.9), rgba(12,12,26,.95)) !important;
    transition: transform .12s ease, box-shadow .25s ease, filter .25s ease !important;
}
.nftw-spin-btn.nftw-one { border: 1.5px solid #39d6ff !important; box-shadow: 0 0 18px rgba(57,214,255,.45), inset 0 0 14px rgba(57,214,255,.12) !important; color: #bfeaff !important; }
.nftw-spin-btn.nftw-ten { border: 1.5px solid #ffd166 !important; box-shadow: 0 0 18px rgba(255,209,102,.45), inset 0 0 14px rgba(255,209,102,.12) !important; color: #ffd166 !important; }
.nftw-spin-btn.nftw-free { border: 1.5px solid #67e8f9 !important; box-shadow: 0 0 18px rgba(103,232,249,.45), inset 0 0 14px rgba(103,232,249,.12) !important; color: #67e8f9 !important; }
.nftw-spin-btn:active { transform: scale(.97) !important; }
.nftw-spin-btn:disabled { filter: grayscale(.6) brightness(.7) !important; cursor: not-allowed !important; }
.nftw-spin-btn.hidden { display: none !important; }
.nftw-lock-overlay {
    position: absolute !important;
    left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 5rem !important;
    color: #ffd166 !important;
    filter: drop-shadow(0 0 14px #facc15) drop-shadow(0 0 28px rgba(255,209,102,0.55)) !important;
    text-align: center !important;
    z-index: 7 !important;
}


/* NFT_TOPTABS_v1 */
.nft-back-to-choose{display:none!important;}
.nft-toptabs{position:sticky;top:0;z-index:6;background:#1a1530;padding:6px 0 10px;margin-bottom:4px;}
.nft-toptab{letter-spacing:.04em;}
.nft-market-cnft{font-family:monospace;font-size:11px;font-weight:700;color:#F7DA8B;margin-left:2px}
.nft-market-badge.rank-a{color:#C9B8FF;background:rgba(157,128,255,.2);border-color:rgba(157,128,255,.32)}
.nft-market-badge.rank-s{color:#F7DA8B;background:rgba(232,184,75,.2);border-color:rgba(232,184,75,.32)}

/* ===== CCT Market gold theme ===== */
#nft-overlay .purchase-card{
  background:
    radial-gradient(120% 50% at 85% -5%, rgba(232,184,75,.10), transparent 55%),
    radial-gradient(120% 50% at 0% 0%, rgba(54,168,255,.07), transparent 50%),
    linear-gradient(180deg,#0C1124,#080B16 45%) !important;
}
.cctm-brand{display:flex;align-items:center;gap:11px}
.cctm-logo{width:38px;height:38px;border-radius:11px;overflow:hidden;display:block;box-shadow:0 6px 18px -4px rgba(255,27,141,.45)}
.cctm-title{font-size:21px;font-weight:800;letter-spacing:-.01em;color:#F1F4FB;line-height:1.1}
.cctm-sub{font-size:10px;color:#E8B84B;letter-spacing:.2em;font-weight:700;margin-top:2px}
.cctm-close{font-size:11px;letter-spacing:.14em;color:#8B93AD !important;border:1px solid rgba(255,255,255,.08);border-radius:999px;padding:7px 13px;background:rgba(255,255,255,.02)}
#nft-wallet-row{background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.01)) !important;border:1px solid rgba(255,255,255,.08) !important;border-radius:14px !important;padding:13px 15px !important}
#nft-wallet-row span[style]{color:#8B93AD !important}
#nft-wallet-addr{color:#F1F4FB !important;font-weight:600}
#nft-overlay .nft-toptab{background:linear-gradient(135deg,#1E2746,#161D33) !important;border:1px solid rgba(232,184,75,.22) !important;color:#F7DA8B !important;border-radius:13px !important}
#nft-overlay .nft-subtab{background:rgba(255,255,255,.02) !important;border:1px solid rgba(255,255,255,.07) !important;color:#8B93AD !important;border-radius:12px !important}
#nft-overlay .nft-subtab.active{background:rgba(232,184,75,.12) !important;border-color:rgba(232,184,75,.3) !important;color:#F7DA8B !important}
#market-admin-btn{border:1px dashed rgba(232,184,75,.4) !important;color:#E8B84B !important;background:rgba(232,184,75,.05) !important;border-radius:13px !important}
.cctm-sec{display:flex;align-items:center;gap:10px;padding:4px 2px 12px}
.cctm-sec h3{font-size:12px;letter-spacing:.2em;color:#8B93AD;font-weight:600;margin:0}
.cctm-sec .cctm-line{flex:1;height:1px;background:rgba(255,255,255,.07)}
.cctm-sec .cctm-count{font-size:11px;color:#E8B84B;font-weight:700;letter-spacing:.04em}

/* nav match mockup */
#nft-overlay .nft-toptab,#nft-overlay .nft-subtab{display:flex !important;align-items:center;justify-content:center;gap:8px;text-transform:none !important;letter-spacing:.01em !important}
#nft-overlay .nft-toptab{padding:15px 10px !important;font-size:14px !important;font-weight:600 !important;border-radius:13px !important}
#nft-overlay .nft-subtab{padding:13px 8px !important;font-size:13px !important;font-weight:600 !important}
.nft-market-cnft{font-size:13.5px !important;font-weight:700}
#nft-overlay .nft-toptab svg,#nft-overlay .nft-subtab svg{width:18px;height:18px;flex:none}

/* NFT detail modal */
#nft-detail-modal{display:none;position:fixed;inset:0;z-index:120;align-items:center;justify-content:center;background:rgba(0,0,0,.7);backdrop-filter:blur(6px);padding:20px}
.nft-d-card{width:100%;max-width:380px;background:linear-gradient(180deg,#141B30,#0C1124);border:1px solid rgba(255,255,255,.08);border-radius:20px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.8)}
.nft-d-hero{position:relative;aspect-ratio:1/1;overflow:hidden;background:#0C1124}
.nft-d-hero img{width:100%;height:100%;object-fit:cover;object-position:center top}
.nft-d-veil{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(12,17,36,.9) 100%)}
.nft-d-title{font-size:20px;font-weight:800;color:#F1F4FB;text-align:center;padding:12px 16px 2px}
.nft-d-cnft{font-family:monospace;color:#F7DA8B;font-weight:700}
.nft-d-rank{text-align:center;font-size:11px;letter-spacing:.18em;color:#8B93AD;font-weight:700;padding-bottom:10px}
.nft-d-table{padding:0 16px 12px;display:flex;flex-direction:column}
.nft-d-row{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;border-top:1px solid rgba(255,255,255,.06)}
.nft-d-k{font-size:13px;font-weight:700;color:#F1F4FB}
.nft-d-v{font-size:13px;color:#C7CEDF}
.nft-d-link{color:#5BB6FF;font-weight:700;cursor:pointer}
.nft-d-close{margin:6px 16px 18px;width:calc(100% - 32px);padding:13px;border:none;border-radius:14px;background:linear-gradient(135deg,#E8B84B,#C8922C);color:#231803;font-weight:700;font-size:15px;cursor:pointer}

/* home CNFT rotator */
#cnft-rotator{position:relative;width:100%;aspect-ratio:16/7;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,rgba(255,27,141,.4),rgba(46,99,255,.4))}
#cnft-rotator-img{width:100%;height:100%;object-fit:cover;object-position:center 25%;display:block;transition:opacity .25s;opacity:0}
.cnft-rotator-veil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 50%,rgba(8,4,16,.65))}
.cnft-rotator-cap{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:13px;font-weight:700;letter-spacing:.28em;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.6)}

/* ===== home glass theme ===== */
.home-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.hb-blob{position:absolute;border-radius:50%;filter:blur(64px)}
.hb-pink1{width:300px;height:300px;background:#FF128C;opacity:.5;top:-70px;left:-70px}
.hb-blue1{width:320px;height:320px;background:#1E46FF;opacity:.45;top:-40px;right:-90px}
.hb-blue2{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-60px;left:-90px}
.hb-pink2{width:340px;height:340px;background:#FF1B8D;opacity:.55;bottom:-90px;right:-70px}
.hb-violet{width:260px;height:260px;background:#7B2BE0;opacity:.4;bottom:18%;left:32%}
.hb-grain{position:absolute;inset:0;opacity:.05;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
#profile-content .credits-box{background:rgba(16,10,26,.42) !important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.14) !important;border-radius:16px !important;box-shadow:0 18px 44px -14px rgba(0,0,0,.7) !important}
#profile-content .level-container{background:rgba(16,10,26,.42) !important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14) !important;border-radius:999px !important}
#profile-content .xp-bar-container{background:rgba(255,255,255,.18) !important;border:1px solid rgba(255,255,255,.16) !important}
#profile-content .xp-bar-fill{background:linear-gradient(90deg,#fff,#FFD0EC) !important}
#profile-content .banner-wrapper{background:rgba(16,10,26,.42) !important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.14) !important;border-radius:22px !important;box-shadow:0 18px 44px -14px rgba(0,0,0,.7) !important}
#profile-content .divider-glow{opacity:0 !important}
#profile-content .menu-button{background:rgba(16,10,26,.42) !important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.14) !important;border-radius:20px !important;box-shadow:0 18px 44px -14px rgba(0,0,0,.7) !important}
#profile-content .menu-button:hover{background:rgba(30,18,44,.6) !important;transform:translateY(-2px) !important}
#profile-content .menu-button svg,#profile-content .portal-button-svg{color:#fff !important;stroke:#fff !important;opacity:.95}
#profile-content .portal-button-text{color:rgba(255,255,255,.92) !important;font-weight:600}

/* home — name + icons like mockup */
#profile-content h1.text-xl{font-family:Georgia,'Times New Roman',serif !important;font-style:italic !important;font-weight:600 !important;letter-spacing:.01em !important;text-shadow:none !important;color:#fff !important}
#profile-content #username-to-copy{color:rgba(255,255,255,.6) !important;font-style:normal !important}
#profile-content .menu-button svg,#profile-content .portal-button-svg{width:30px !important;height:30px !important;stroke:#fff !important;color:#fff !important;fill:none !important;opacity:.95}
#profile-content .portal-button-text{font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif !important}

/* bigger tile icons (mockup) */
#profile-content .menu-button{padding:0 !important}
#profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{width:48% !important;height:48% !important;min-width:34px;min-height:34px}
@media (max-width:640px){
  #profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{width:46% !important;height:46% !important;min-width:30px;min-height:30px}
}

/* home grid + tiles like mockup (4 cols, big icons) */
#profile-content #buttons-grid{
  display:grid !important;grid-template-columns:repeat(4,1fr) !important;
  gap:18px 10px !important;max-width:440px !important;width:100% !important;margin:0 auto !important;
  overflow:visible !important;flex-wrap:wrap !important;padding:10px 14px !important;
}
#profile-content #buttons-grid::-webkit-scrollbar{display:none}
#profile-content #buttons-grid > div{flex-shrink:1 !important;width:auto !important}
#profile-content .menu-button{
  width:100% !important;max-width:78px !important;height:auto !important;aspect-ratio:1/1 !important;
  border-radius:22px !important;margin:0 auto !important;
}
#profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{
  width:36px !important;height:36px !important;min-width:36px;min-height:36px;
}
@media (max-width:640px){
  #profile-content #buttons-grid{
    display:grid !important;grid-template-columns:repeat(4,1fr) !important;
    flex-direction:unset !important;flex-wrap:wrap !important;overflow-x:visible !important;
    gap:16px 8px !important;padding:10px 12px !important;
  }
  #profile-content .menu-button{max-width:72px !important;border-radius:20px !important}
  #profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{width:33px !important;height:33px !important;min-width:33px;min-height:33px}
}

/* fix grid item wrappers (mockup 4-col) */
#profile-content #buttons-grid > .menu-button-wrapper{
  width:auto !important;flex:none !important;margin:0 !important;min-width:0 !important;
  display:flex !important;flex-direction:column !important;align-items:center !important;gap:8px !important;
}
#profile-content #buttons-grid > .menu-button-wrapper > *{margin:0 !important}
#profile-content .portal-button-text{margin-top:0 !important;text-align:center;white-space:nowrap}

/* ===== FINAL home grid override (fixed sizes, beats mobile media query) ===== */
#profile-content #buttons-grid{
  display:grid !important;
  grid-template-columns:repeat(4,72px) !important;
  justify-content:center !important;align-items:start !important;
  gap:22px 16px !important;grid-auto-rows:auto !important;
  max-width:none !important;width:auto !important;margin:0 auto !important;
  overflow:visible !important;padding:14px 10px !important;
  flex-wrap:wrap !important;flex-direction:unset !important;
}
#profile-content #buttons-grid > .menu-button-wrapper{
  width:72px !important;flex:none !important;margin:0 !important;min-width:0 !important;
  display:flex !important;flex-direction:column !important;align-items:center !important;gap:8px !important;
}
#profile-content .menu-button{
  width:72px !important;height:72px !important;max-width:none !important;
  aspect-ratio:auto !important;border-radius:20px !important;margin:0 !important;padding:0 !important;
}
#profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{
  width:34px !important;height:34px !important;min-width:0 !important;min-height:0 !important;
}
#profile-content .portal-button-text{margin-top:0 !important;text-align:center;white-space:nowrap}

/* ===== HARD home grid (4x2 equal, no overflow) ===== */
#profile-content #buttons-wrapper{padding:8px 0 16px !important}
#profile-content #buttons-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  grid-auto-rows:max-content !important;
  justify-items:center !important;align-items:start !important;
  column-gap:10px !important;row-gap:20px !important;
  max-width:360px !important;width:100% !important;margin:0 auto !important;
  padding:8px 8px 0 !important;overflow:visible !important;
  flex-direction:unset !important;flex-wrap:wrap !important;
}
#profile-content #buttons-grid > .menu-button-wrapper{
  width:100% !important;max-width:78px !important;flex:none !important;margin:0 !important;min-width:0 !important;
  display:flex !important;flex-direction:column !important;align-items:center !important;gap:7px !important;
}
#profile-content .menu-button{
  width:100% !important;max-width:72px !important;aspect-ratio:1/1 !important;height:auto !important;
  border-radius:20px !important;margin:0 !important;padding:0 !important;
}
#profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{
  width:34px !important;height:34px !important;min-width:0 !important;min-height:0 !important;
}
#profile-content .portal-button-text{margin-top:0 !important;text-align:center;white-space:nowrap;font-size:13px !important}
@media (max-width:640px){
  #profile-content #buttons-grid{display:grid !important;grid-template-columns:repeat(4,1fr) !important;
    overflow-x:visible !important;flex-wrap:wrap !important;max-width:340px !important;row-gap:18px !important;column-gap:8px !important;}
}

/* ===== FINAL FINAL grid (minmax fix, 4x2) ===== */
#profile-content #buttons-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-auto-rows:min-content !important;
  justify-items:center !important;align-items:start !important;
  column-gap:6px !important;row-gap:20px !important;
  max-width:360px !important;width:100% !important;margin:0 auto !important;
  padding:8px 6px 0 !important;overflow:visible !important;
  flex-direction:unset !important;flex-wrap:wrap !important;
}
#profile-content #buttons-grid > .menu-button-wrapper{
  width:100% !important;min-width:0 !important;max-width:none !important;flex:none !important;margin:0 !important;
  display:flex !important;flex-direction:column !important;align-items:center !important;gap:7px !important;
}
#profile-content .menu-button{
  width:66px !important;height:66px !important;max-width:none !important;aspect-ratio:auto !important;
  border-radius:18px !important;margin:0 !important;padding:0 !important;
}
#profile-content .menu-button svg,#profile-content .menu-button .portal-button-svg{
  width:32px !important;height:32px !important;min-width:0 !important;min-height:0 !important;
}
#profile-content .portal-button-text{
  margin-top:0 !important;text-align:center;white-space:nowrap;font-size:12.5px !important;
  max-width:none !important;overflow:visible !important;
}

/* ===== cct-grid : clean 4-col, beats everything ===== */
#profile-content #buttons-grid.cct-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-auto-flow:row !important;grid-auto-rows:min-content !important;
  justify-items:center !important;align-items:start !important;
  column-gap:6px !important;row-gap:20px !important;
  width:100% !important;max-width:360px !important;margin:0 auto !important;
  padding:8px 6px 0 !important;overflow:visible !important;
}
#profile-content #buttons-grid.cct-grid > .menu-button-wrapper{
  width:100% !important;min-width:0 !important;max-width:none !important;margin:0 !important;
  display:flex !important;flex-direction:column !important;align-items:center !important;gap:7px !important;
}
#profile-content #buttons-grid.cct-grid .menu-button{
  width:66px !important;height:66px !important;max-width:none !important;aspect-ratio:auto !important;
  border-radius:18px !important;margin:0 !important;padding:0 !important;
}
#profile-content #buttons-grid.cct-grid .menu-button svg,
#profile-content #buttons-grid.cct-grid .menu-button .portal-button-svg{
  width:32px !important;height:32px !important;min-width:0 !important;min-height:0 !important;
}
#profile-content #buttons-grid.cct-grid .portal-button-text{
  margin-top:0 !important;text-align:center;white-space:nowrap;font-size:12.5px !important;max-width:none !important;
}
@media (max-width:640px){
  #profile-content #buttons-grid.cct-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;max-width:340px !important;}
}

/* ===== xp bar + accent text -> mockup white/pink ===== */
#profile-content .xp-bar-container{
  height:9px !important;background:rgba(255,255,255,.16) !important;
  border:1px solid rgba(255,255,255,.18) !important;border-radius:999px !important;
  box-shadow:none !important;padding-left:14px !important;
}
#profile-content .xp-bar-fill{
  background:linear-gradient(90deg,#ffffff,#FFD0EC) !important;
  border-radius:999px !important;box-shadow:0 0 10px rgba(255,208,236,.5) !important;
}
#profile-content .level-container{
  background:rgba(16,10,26,.5) !important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.18) !important;border-radius:999px !important;
  box-shadow:0 6px 18px -8px rgba(0,0,0,.6) !important;height:26px !important;margin-right:-12px !important;
}
#profile-content .level-text{color:rgba(255,255,255,.7) !important}
#profile-content .level-number{color:#fff !important;text-shadow:0 0 6px rgba(255,208,236,.75) !important}
#profile-content #user-credits-display{color:#FFD0EC !important}

/* ===== gradient text matching the level bar (pink -> violet) ===== */
#profile-content h1.text-xl,
#profile-content #user-credits-display,
#profile-content .portal-button-text{
  background:linear-gradient(120deg,#FFFFFF 0%,#FFD0EC 38%,#C9A8FF 70%,#8FB6FF 100%) !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  -webkit-text-fill-color:transparent !important;color:transparent !important;
  text-shadow:none !important;
}
#profile-content #user-credits-display{font-weight:700 !important}
#profile-content .portal-button-text{font-weight:600 !important}

/* ===== settings menu (top-right) ===== */
.cct-topright{position:relative;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cct-dots{background:rgba(16,10,26,.42);border:1px solid rgba(255,255,255,.14);border-radius:10px;width:32px;height:28px;display:grid;place-items:center;color:#fff;cursor:pointer;backdrop-filter:blur(10px)}
.cct-dots:active{transform:translateY(1px)}
.cct-topright .credits-box{margin-top:2px}
.cct-menu{position:absolute;top:36px;right:0;z-index:60;min-width:190px;
  background:rgba(20,12,30,.96);border:1px solid rgba(255,255,255,.14);border-radius:14px;
  box-shadow:0 24px 60px -16px rgba(0,0,0,.8);backdrop-filter:blur(20px);padding:6px;display:flex;flex-direction:column}
.cct-menu.hidden,.cct-sub.hidden{display:none}
.cct-mi{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  background:transparent;border:none;color:#F1F4FB;font-size:13.5px;font-weight:600;text-align:left;
  padding:11px 12px;border-radius:9px;cursor:pointer}
.cct-mi:hover{background:rgba(255,255,255,.07)}
.cct-arrow{color:#8B93AD;font-size:16px}
.cct-sub{display:flex;flex-direction:column;margin:2px 4px 6px;padding:4px;border-radius:9px;background:rgba(255,255,255,.04)}
.cct-li{background:transparent;border:none;color:#C7CEDF;font-size:13px;font-weight:600;text-align:left;padding:9px 12px;border-radius:7px;cursor:pointer}
.cct-li:hover{background:rgba(255,255,255,.08)}
.cct-li.active{color:#FFD0EC;background:rgba(255,208,236,.12)}

/* ===== settings menu — glassy, blends with background ===== */
.cct-dots{background:rgba(255,255,255,.06) !important;border:1px solid rgba(255,255,255,.16) !important;color:rgba(255,255,255,.85) !important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.cct-menu{
  background:rgba(22,14,34,.55) !important;border:1px solid rgba(255,255,255,.16) !important;
  backdrop-filter:blur(26px) saturate(1.3) !important;-webkit-backdrop-filter:blur(26px) saturate(1.3) !important;
  box-shadow:0 24px 60px -18px rgba(0,0,0,.6) !important;
}
.cct-mi{
  font-family:Georgia,'Times New Roman',serif !important;font-style:italic !important;
  color:rgba(255,255,255,.92) !important;font-weight:600 !important;letter-spacing:.01em;
}
.cct-mi:hover{background:rgba(255,255,255,.10) !important}
.cct-arrow{color:rgba(255,255,255,.5) !important}
.cct-sub{background:rgba(255,255,255,.05) !important}
.cct-li{
  font-family:Georgia,'Times New Roman',serif !important;font-style:italic !important;
  color:rgba(255,255,255,.78) !important;font-weight:600 !important;
}
.cct-li:hover{background:rgba(255,255,255,.10) !important}
.cct-li.active{color:#FFD0EC !important;background:rgba(255,208,236,.14) !important}

/* settings menu icons — match grid icon style */
.cct-mi-l{display:flex;align-items:center;gap:10px}
.cct-mi-ic{width:20px;height:20px;flex:none;stroke:#fff;opacity:.92}

/* persian readability (sans, not serif-italic) */
html[lang="fa"] #profile-content h1.text-xl{font-family:Tahoma,'Segoe UI',sans-serif !important;font-style:normal !important}
html[lang="fa"] .cct-mi,html[lang="fa"] .cct-li{font-family:Tahoma,'Segoe UI',sans-serif !important;font-style:normal !important}


/* ===== wallet redesign (glass) ===== */
#wallet-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
#wallet-overlay .wallet-card{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;border-radius:26px!important;box-shadow:0 18px 44px -14px rgba(0,0,0,.7)!important;overflow:hidden;}
#wallet-overlay .wallet-card::before,#wallet-overlay .wallet-card::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#wallet-overlay .wallet-card::before{width:280px;height:280px;background:#FF1B8D;opacity:.55;top:-90px;left:-80px;}
#wallet-overlay .wallet-card::after{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-110px;right:-80px;}
#wallet-overlay .wallet-card>*{position:relative;z-index:1;}
#wallet-overlay h2,#wallet-overlay h3{font-family:Georgia,'Times New Roman',serif!important;font-style:italic;font-weight:600;letter-spacing:.03em;}
#wallet-overlay .wallet-id-container{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;box-shadow:none!important;}
#wallet-overlay #wallet-balance-display{background:linear-gradient(120deg,#fff,#E7D4FF);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;text-shadow:none!important;}
#wallet-overlay #wallet-buttons{gap:12px;}
#wallet-overlay #send-btn{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;border-radius:16px!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;}
#wallet-overlay #history-btn{background:rgba(30,18,44,.6)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;border-radius:16px!important;box-shadow:none!important;}
#wallet-overlay #send-btn::before,#wallet-overlay #history-btn::before,#wallet-overlay #wallet-exit-btn::before{display:none!important;}
#wallet-overlay #wallet-exit-btn{background:rgba(255,60,110,.08)!important;border:1px solid rgba(255,90,130,.35)!important;color:#FF7A9C!important;border-radius:16px!important;box-shadow:none!important;letter-spacing:.06em;}
#wallet-overlay .history-card-item{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14);border-left:3px solid transparent!important;border-radius:18px!important;position:relative;overflow:hidden;}
#wallet-overlay .history-card-item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#7BF0A8,#34D6FF);}
#wallet-overlay .history-card-item.sent::before{background:linear-gradient(#FF6B9C,#FF1B8D);}
#wallet-overlay #recent-activity-section h3,#wallet-overlay #history-container h3{border:none!important;}

/* ===== wallet send form mock-match ===== */
#wallet-overlay #send-ui-container h3{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;letter-spacing:normal!important;color:#fff!important;text-shadow:none!important;font-size:24px!important;margin-bottom:22px!important;}
#wallet-overlay #send-ui-container .rounded-lg.p-3{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;box-shadow:none!important;padding:16px!important;}
#wallet-overlay #send-ui-container .absolute{position:static!important;transform:none!important;display:block!important;background:transparent!important;color:rgba(255,255,255,.6)!important;font-weight:600!important;letter-spacing:.2em!important;font-size:11px!important;margin-bottom:6px!important;padding:0!important;}
#wallet-overlay #transfer-balance-display{font-size:34px!important;font-weight:800!important;background:linear-gradient(120deg,#fff,#E7D4FF)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important;}
#wallet-overlay #send-ui-container .input-group{margin-bottom:20px!important;}
#wallet-overlay #send-ui-container .input-label{position:static!important;display:block!important;background:transparent!important;color:rgba(255,255,255,.6)!important;letter-spacing:.14em!important;font-weight:600!important;font-size:11px!important;margin-bottom:8px!important;padding:0 0 0 2px!important;}
#wallet-overlay .neon-input{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:16px!important;box-shadow:none!important;color:#fff!important;padding:16px!important;font-family:ui-monospace,monospace!important;}
#wallet-overlay .neon-input:focus{border-color:rgba(255,27,141,.55)!important;background:rgba(255,255,255,.07)!important;box-shadow:0 0 0 3px rgba(255,27,141,.12)!important;}
#wallet-overlay #cancel-send-btn{background:rgba(255,60,110,.08)!important;border:1px solid rgba(255,90,130,.35)!important;color:#FF7A9C!important;border-radius:16px!important;box-shadow:none!important;text-shadow:none!important;}
#wallet-overlay #confirm-send-btn{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#94a3b8!important;border-radius:16px!important;box-shadow:none!important;text-shadow:none!important;}
#wallet-overlay #confirm-send-btn:not(:disabled){background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;}
#wallet-overlay #cancel-send-btn:hover,#wallet-overlay #confirm-send-btn:hover{transform:none!important;}

/* ===== trade redesign (glass) ===== */
#trade-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
#trade-overlay .trade-card{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;border-radius:26px!important;box-shadow:0 18px 44px -14px rgba(0,0,0,.7)!important;overflow:hidden;}
#trade-overlay .trade-card::before,#trade-overlay .trade-card::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#trade-overlay .trade-card::before{width:280px;height:280px;background:#FF1B8D;opacity:.55;top:-90px;left:-80px;}
#trade-overlay .trade-card::after{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-110px;right:-80px;}
#trade-overlay .trade-card>*{position:relative;z-index:1;}
#trade-header h2{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;letter-spacing:normal!important;color:#fff!important;text-shadow:none!important;text-transform:none!important;}
.trade-toptab{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);color:#94a3b8;border-radius:14px;transition:all .25s ease;}
.trade-toptab.active{background:linear-gradient(135deg,#FF1B8D,#7B2BE0);border-color:transparent;color:#fff;box-shadow:0 10px 26px -10px rgba(255,27,141,.7);}
#trade-overlay .trade-tab{color:rgba(255,255,255,.45);}
#trade-overlay .trade-tab.active-tab{color:#fff;border-bottom-color:#FF1B8D;}
#trade-overlay #trade-requests-view .border-b{border-color:rgba(255,255,255,.14)!important;}
#trade-overlay .trade-request-item,#trade-overlay .trade-history-item{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;}
#trade-overlay .neon-input{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:16px!important;box-shadow:none!important;color:#fff!important;padding:16px!important;font-family:ui-monospace,monospace!important;}
#trade-overlay .neon-input:focus{border-color:rgba(255,27,141,.55)!important;background:rgba(255,255,255,.07)!important;box-shadow:0 0 0 3px rgba(255,27,141,.12)!important;}
#trade-overlay .input-label{position:static!important;display:block!important;background:transparent!important;color:rgba(255,255,255,.6)!important;letter-spacing:.14em!important;font-weight:600!important;font-size:11px!important;margin-bottom:8px!important;padding:0 0 0 2px!important;}
#trade-overlay .char-info-box,#trade-overlay #trade-target-user-info{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;}
#trade-overlay .neon-btn-green{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;border-radius:16px!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;text-shadow:none!important;}
#trade-overlay .neon-btn-green:disabled{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#94a3b8!important;box-shadow:none!important;}
#trade-overlay .neon-btn-close{background:rgba(255,60,110,.08)!important;border:1px solid rgba(255,90,130,.35)!important;color:#FF7A9C!important;border-radius:16px!important;box-shadow:none!important;text-shadow:none!important;}
#trade-overlay .neon-btn-green::before,#trade-overlay .neon-btn-close::before{display:none!important;}
#trade-overlay{padding:0!important;}
#trade-container{max-width:none!important;width:100%!important;height:100vh!important;height:100dvh!important;margin:0!important;}
#trade-overlay .trade-card{height:100%!important;min-height:100%!important;border-radius:0!important;overflow-y:auto!important;}

/* ===== wallet fullscreen ===== */
#wallet-overlay{padding:0!important;}
#wallet-container{max-width:none!important;width:100%!important;height:100vh!important;height:100dvh!important;margin:0!important;}
#wallet-overlay .wallet-card{height:100%!important;min-height:100%!important;border-radius:0!important;overflow-y:auto!important;}

/* ===== rewards redesign (glass, fullscreen) ===== */
#rewards-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:0!important;}
#rewards-container{max-width:none!important;width:100%!important;height:100vh!important;height:100dvh!important;margin:0!important;}
#rewards-overlay .rewards-card{height:100%!important;min-height:100%!important;border-radius:0!important;background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;overflow-x:hidden;overflow-y:auto!important;}
#rewards-overlay .rewards-card::before,#rewards-overlay .rewards-card::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#rewards-overlay .rewards-card::before{width:280px;height:280px;background:#FF1B8D;opacity:.55;top:-90px;left:-80px;}
#rewards-overlay .rewards-card::after{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-110px;right:-80px;}
#rewards-overlay .rewards-card>*{position:relative;z-index:1;}
#rewards-header h2{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;color:#fff!important;text-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;}
#rewards-overlay #rewards-list{max-height:none!important;}
#rewards-overlay .reward-item{background:rgba(16,10,26,.42)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}

/* ===== gate redesign (glass, fullscreen) ===== */
#portal-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;}
#portal-container{width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;background:radial-gradient(300px 300px at -40px -40px,rgba(255,27,141,.5),transparent 70%),radial-gradient(320px 320px at calc(100% + 40px) calc(100% + 60px),rgba(46,99,255,.45),transparent 70%),radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;}
#portal-container::before{animation:none!important;}
#portal-title{font-family:Georgia,'Times New Roman',serif!important;font-style:italic;font-weight:600!important;text-transform:none!important;letter-spacing:normal!important;text-shadow:none!important;color:#fff!important;}
#portal-exit-btn{position:absolute!important;top:1rem!important;right:1.25rem!important;margin:0!important;padding:.4rem .9rem!important;font-size:.75rem!important;background:transparent!important;border:none!important;color:#94a3b8!important;letter-spacing:.1em;z-index:20;}
#portal-exit-btn:hover{color:#fff!important;background:transparent!important;box-shadow:none!important;border:none!important;}

/* ===== purchase redesign (glass, fullscreen) ===== */
#purchase-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;padding:0!important;}
#purchase-overlay::before,#purchase-overlay::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#purchase-overlay::before{width:280px;height:280px;background:#FF1B8D;opacity:.55;top:-60px;left:-60px;}
#purchase-overlay::after{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-90px;right:-60px;}
#purchase-overlay .purchase-card{max-width:none!important;width:100%!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important;background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;overflow-x:hidden;overflow-y:auto!important;padding:1.5rem!important;}
#purchase-overlay header h2{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;color:#fff!important;text-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;}
#purchase-overlay input,#purchase-overlay textarea{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:16px!important;box-shadow:none!important;color:#fff!important;}
#purchase-overlay .purchase-info-box{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;}
#purchase-choose-character{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;}
#purchase-step-input,#purchase-step-review,#purchase-step-cct-input,#purchase-step-cct-review,#purchase-step-pay,#purchase-step-done,#purchase-step-history,#purchase-step-history-detail,#purchase-step-setprice,#purchase-step-setprice-detail{background:rgba(16,10,26,.42)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:26px!important;padding:1.25rem!important;box-shadow:0 18px 44px -14px rgba(0,0,0,.55)!important;}
#purchase-overlay .neon-btn{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e5e7eb!important;border-radius:16px!important;box-shadow:none!important;text-shadow:none!important;}
#purchase-overlay .neon-btn::before{display:none!important;}
#purchase-overlay #purchase-calc-btn,#purchase-overlay #purchase-pay-btn,#purchase-overlay #purchase-cct-calc-btn,#purchase-overlay #purchase-cct-pay-btn,#purchase-overlay #purchase-done-btn{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;}

/* ===== send panel glass ===== */
#wallet-overlay #send-ui-container{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;border-radius:26px!important;}
#wallet-overlay #send-ui-container.visible{box-shadow:0 18px 44px -14px rgba(0,0,0,.55)!important;}

/* === flicker fixes (gate + nft wheel) === */
.reactor-ring-outer,.reactor-ring-mid,.reactor-ring-inner,.reactor-core-stabilizer{will-change:transform}
#nftw-wheel{will-change:transform}
.nftw-char{will-change:opacity,transform}
.nftw-char:not(.active) .nftw-frame::after{animation-play-state:paused !important}
.nftw-char.nftw-fast .nftw-frame::after{display:none !important}

/* === inactive overlays: skip paint/composite === */
#portal-overlay,#wallet-overlay,#rewards-overlay,#trade-overlay,#auction-overlay,#purchase-overlay{visibility:hidden;transition:opacity .5s ease,visibility 0s linear .6s}
#portal-overlay.active,#wallet-overlay.active,#rewards-overlay.active,#trade-overlay.active,#auction-overlay.active,#purchase-overlay.active{visibility:visible;transition:opacity .6s ease,visibility 0s}

/* ===== cleaning redesign (glass, fullscreen) ===== */
#cleaning-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:0!important;}
#cleaning-container{max-width:none!important;width:100%!important;height:100vh!important;height:100dvh!important;max-height:none!important;margin:0!important;}
#cleaning-card{height:100%!important;max-height:none!important;border-radius:0!important;background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;}
#cleaning-card::before,#cleaning-card::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#cleaning-card::before{width:280px;height:280px;background:#FF1B8D;opacity:.55;top:-90px;left:-80px;}
#cleaning-card::after{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-110px;right:-80px;}
#cleaning-card>*{position:relative;z-index:1;}
#cleaning-header h2{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;color:#fff!important;text-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;}
#cleaning-search,#cleaning-filter{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px!important;color:#fff!important;box-shadow:none!important;}
#cleaning-body{background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:18px!important;}
.cleaning-item{background:rgba(16,10,26,.42)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;}
.cleaning-item:hover{border-color:rgba(255,255,255,.35)!important;}
.cleaning-item.selected{border-color:#FF1B8D!important;box-shadow:inset 0 0 12px rgba(255,27,141,.25)!important;}
#cleaning-burn-btn{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;border-radius:14px!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;text-shadow:none!important;}
#cleaning-burn-btn::before{display:none!important;}
#cleaning-burn-btn:disabled{opacity:.45!important;filter:grayscale(.4);}
#cleaning-close-btn{position:static!important;width:auto!important;height:auto!important;padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important;color:#94a3b8!important;font-size:.75rem!important;font-weight:700;letter-spacing:.1em;text-transform:uppercase;align-self:flex-start;}
#cleaning-header{padding-right:0!important;align-items:flex-start!important;}
#cleaning-close-btn::before,#cleaning-close-btn::after{display:none!important;}
#cleaning-close-btn:hover{transform:none!important;background:transparent!important;border:none!important;box-shadow:none!important;color:#fff!important;}

/* ===== auction redesign (glass, trade theme) ===== */
#auction-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;}
#auction-overlay .auction-card{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;overflow-x:hidden;}
#auction-overlay .auction-card::before,#auction-overlay .auction-card::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#auction-overlay .auction-card::before{width:280px;height:280px;background:#FF1B8D;opacity:.55;top:-90px;left:-80px;}
#auction-overlay .auction-card::after{width:300px;height:300px;background:#2E63FF;opacity:.5;bottom:-110px;right:-80px;}
#auction-overlay .auction-card>*{position:relative;z-index:1;}
#auction-header h2{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;color:#fff!important;text-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;font-size:1.25rem!important;}
#tab-market,#tab-create,#tab-bids{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#94a3b8!important;border-radius:14px!important;transition:all .25s ease!important;}
#tab-market.bg-gray-700,#tab-create.bg-gray-700,#tab-bids.bg-gray-700{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;}
#auction-overlay .neon-input{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;box-shadow:none!important;color:#fff!important;}
#auction-overlay .neon-input:focus{border-color:rgba(255,27,141,.55)!important;box-shadow:0 0 0 3px rgba(255,27,141,.12)!important;}
#view-market .sticky{background:#12091D!important;border-color:rgba(255,255,255,.10)!important;box-shadow:0 10px 18px -10px rgba(0,0,0,.7);}
.auction-card-modern{background:rgba(16,10,26,.42)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;}
.auction-card-modern:hover{border-color:rgba(255,255,255,.35)!important;box-shadow:none!important;transform:none!important;}
#auction-create-summary{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;}
#auction-overlay .neon-btn-orange,#bid-modal-overlay .neon-btn-orange{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;border-radius:14px!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;text-shadow:none!important;}
#auction-overlay .neon-btn-orange::before,#bid-modal-overlay .neon-btn-orange::before{display:none!important;}
#auction-overlay .neon-btn-orange:hover,#bid-modal-overlay .neon-btn-orange:hover{transform:none!important;}
#auction-overlay .text-neon-orange,#bid-modal-overlay .text-neon-orange{color:#FF7AC1!important;text-shadow:none!important;}
#bid-modal-overlay .custom-alert-box{background:rgba(16,10,26,.92)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:22px!important;box-shadow:0 18px 44px -14px rgba(0,0,0,.7)!important;}
#bid-modal-overlay .neon-input{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;box-shadow:none!important;color:#fff!important;}

/* ===== bid info box glass ===== */
#auction-overlay .bid-info-box{background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.02))!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:14px!important;padding:9px 11px!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;}
#auction-overlay .bid-info-box .text-neon-orange{color:#FF7AC1!important;text-shadow:none!important;}
#auction-overlay .auction-card-modern .text-neon-purple{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:999px!important;color:#C9B8FF!important;text-shadow:none!important;}

/* auction card name/rarity/seller layout fix */
.auction-card-modern .flex.justify-between.items-center{flex-wrap:wrap!important;justify-content:flex-start!important;gap:4px 8px!important;}
.auction-card-modern .flex.justify-between.items-center .text-gray-300{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.auction-card-modern .text-neon-purple{white-space:nowrap;}

/* auction detail modal: pink glass */
#auction-detail-modal{background:rgba(6,4,12,.78)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
#auction-detail-modal .custom-alert-box{background:rgba(16,10,26,.55)!important;backdrop-filter:blur(24px) saturate(1.2);-webkit-backdrop-filter:blur(24px) saturate(1.2);border:1px solid rgba(255,255,255,.16)!important;border-radius:22px!important;box-shadow:0 24px 60px -18px rgba(0,0,0,.7),0 0 34px -6px rgba(255,27,141,.45)!important;animation:none!important;}
#auction-detail-modal .custom-alert-box::before,#auction-detail-modal .custom-alert-box::after{display:none!important;}

/* ===== nft redesign (glass, pink theme) ===== */
#nft-overlay{background:radial-gradient(120% 90% at 50% 40%,#140A1E,#06040C 90%)!important;}
#nft-overlay>.purchase-card{background:rgba(16,10,26,.42)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;max-width:none!important;position:relative;}
#nft-overlay>.purchase-card::before,#nft-overlay>.purchase-card::after{content:"";position:absolute;border-radius:50%;filter:blur(64px);z-index:0;pointer-events:none;}
#nft-overlay>.purchase-card::before{width:280px;height:280px;background:#FF1B8D;opacity:.5;top:-90px;left:-80px;}
#nft-overlay>.purchase-card::after{width:300px;height:300px;background:#2E63FF;opacity:.45;bottom:-110px;right:-80px;}
#nft-overlay>.purchase-card>*{position:relative;z-index:1;}
#nft-overlay .cctm-sub{color:#FF7AC1!important;}
#nft-overlay .cctm-sec .cctm-count{color:#FF7AC1!important;}
#nft-wallet-addr{color:#FF7AC1!important;}
#nft-overlay .nft-toptabs{position:static!important;background:transparent!important;padding:0 0 10px!important;}
#nft-overlay .cctm-title{font-family:Georgia,'Times New Roman',serif!important;font-style:italic!important;font-weight:600!important;font-size:1.35rem!important;color:#fff!important;letter-spacing:normal!important;}
#nft-overlay .nft-toptab{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#94a3b8!important;border-radius:14px!important;}
#nft-overlay .nft-subtab{background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.10)!important;color:#8B93AD!important;border-radius:12px!important;}
#nft-overlay .nft-subtab.active,#nft-overlay .nft-toptab.active{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;}
#nft-choose .neon-btn{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;border-radius:16px!important;box-shadow:none!important;text-shadow:none!important;}
#nft-choose .neon-btn::before{display:none!important;}
.nft-market-card{background:rgba(16,10,26,.42)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:18px!important;}
.nft-market-card:hover{border-color:rgba(255,255,255,.35)!important;box-shadow:none!important;transform:none!important;}
.nft-market-card-value{color:#FF7AC1!important;}
.nftw-spin-btn.nftw-one{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;text-shadow:none!important;}
.nftw-spin-btn.nftw-ten{background:linear-gradient(135deg,#7B2BE0,#FF1B8D)!important;border:none!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(123,43,224,.7)!important;text-shadow:none!important;}
.nftw-spin-btn.nftw-free{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;box-shadow:none!important;}
#market-buy-confirm,#market-sell-submit{background:linear-gradient(135deg,#FF1B8D,#7B2BE0)!important;border:none!important;color:#fff!important;box-shadow:0 10px 26px -10px rgba(255,27,141,.7)!important;text-shadow:none!important;}
#market-buy-confirm::before,#market-sell-submit::before{display:none!important;}
.nft-d-card{background:rgba(16,10,26,.72)!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 24px 60px -18px rgba(0,0,0,.7),0 0 34px -6px rgba(255,27,141,.4)!important;}
.nft-d-link{color:#FF7AC1!important;}

/* nft wallet row: black off / pink on */
#nft-wallet-row{background:rgba(0,0,0,.55)!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:none!important;transition:background .3s ease,border-color .3s ease;}
#nft-wallet-row #nft-wallet-addr{color:#94a3b8!important;}
#nft-wallet-row.wallet-on{background:linear-gradient(135deg,rgba(255,27,141,.28),rgba(123,43,224,.22))!important;border:1px solid rgba(255,27,141,.45)!important;box-shadow:0 8px 24px -12px rgba(255,27,141,.6)!important;}
#nft-wallet-row.wallet-on #nft-wallet-addr{color:#FF7AC1!important;}
/* my-nft (player sell) rows: glass */
.nft-mine-row{background:rgba(16,10,26,.42)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;}
.nft-mine-row .text-sm.font-bold{color:#fff!important;}
/* GRAM: blue -> pink */
.nft-market-ton span{color:#FF7AC1!important;}
#market-sell-preview{color:#FF7AC1!important;}
