:root {
  --bg: #060913;
  --panel: rgba(15, 18, 32, 0.78);
  --panel-strong: rgba(20, 24, 42, 0.92);
  --line: rgba(255, 255, 255, 0.11);
  --discord: #5865f2;
  --cyan: #35e8ff;
  --pink: #ff4fd8;
  --green: #3ee87d;
  --yellow: #f0b232;
  --red: #f45b69;
  --text: #eef4ff;
  --muted: #9aa8c7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; background:#060913; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { width:0; height:0; display:none; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image:
    linear-gradient(145deg, rgba(3, 5, 11, 0.68), rgba(8, 12, 24, 0.86)),
    url('./data/background/bg-960.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: -2px;
  z-index: -5;
  pointer-events:none;
  background-color: var(--bg);
  background-image:
    linear-gradient(145deg, rgba(3, 5, 11, 0.68), rgba(8, 12, 24, 0.86)),
    url('./data/background/bg-960.jpg');
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:translateZ(0);
  will-change:transform;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, #000 18%, transparent 78%);
}
.pointer-glow { display: none !important; }
body.pointer-active .pointer-glow { display: none !important; }
.page-ripple, .hover-ripple { display: none !important; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; cursor: pointer; }

@media (min-width: 760px) {
  body { background-image:
    linear-gradient(145deg, rgba(3, 5, 11, 0.64), rgba(8, 12, 24, 0.84)),
    url('./data/background/bg-1440.jpg'); }
  body::before { background-image:
    linear-gradient(145deg, rgba(3, 5, 11, 0.64), rgba(8, 12, 24, 0.84)),
    url('./data/background/bg-1440.jpg'); }
}

@media (min-width: 1440px) {
  body { background-image:
    linear-gradient(145deg, rgba(3, 5, 11, 0.62), rgba(8, 12, 24, 0.82)),
    url('./data/background/bg-1920.jpg'); }
  body::before { background-image:
    linear-gradient(145deg, rgba(3, 5, 11, 0.62), rgba(8, 12, 24, 0.82)),
    url('./data/background/bg-1920.jpg'); }
}

.ambient { display: none; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: 0.06; background: repeating-linear-gradient(0deg, rgba(255,255,255,.13) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; }

body.color-page-active .screen { padding-bottom:30px; align-items:start; }
body.color-page-active .profile-screen { padding-top:34px; }
body.color-page-active .profile-console { margin-top:0; }

.mobile-panel-backdrop { display: none; }
.mobile-panel-header { display: none; }

.screen { min-height: 100vh; min-height: 100dvh; width: 100%; display: none; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.terminal-screen { padding-bottom: 30px; overscroll-behavior:none; touch-action:none; }
.screen.active { display: flex; animation: screenIn .55s ease both; }
.glass-panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08); backdrop-filter: blur(22px) saturate(130%); }

.cmd-window { width: min(760px, 94vw); overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #0c0c0c; box-shadow: 0 26px 90px rgba(0,0,0,.58); }
.cmd-titlebar { height: 34px; display: flex; align-items: center; justify-content: flex-start; background: #1f1f1f; border-bottom: 1px solid rgba(255,255,255,.08); user-select: none; }
.cmd-tabs { display: flex; align-items: center; height: 100%; min-width: 0; flex:0 1 auto; overflow:hidden; }
.cmd-tab { height: 100%; min-width:132px; max-width:210px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 0 12px 0 16px; color: #cfcfcf; font: 600 12px "Segoe UI", system-ui, sans-serif; background: #171717; border:0; border-right: 1px solid rgba(255,255,255,.08); }
.cmd-tab.active-tab { color:#fff; background:#0c0c0c; }
.cmd-tab-title { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.cmd-tab-close { opacity:.55; font-size:14px; line-height:1; }
.cmd-tab:hover .cmd-tab-close { opacity:1; }
.cmd-plus { width: 34px; height:100%; text-align: center; color: #d0d0d0; font-size: 17px; flex:0 0 auto; border:0; background:transparent; cursor:inherit; }
.cmd-controls { margin-left:auto; display: grid; grid-template-columns: repeat(3, 40px); height: 100%; align-items: center; text-align: center; color: #d7d7d7; font-family: "Segoe UI", system-ui, sans-serif; font-size: 12px; }
.cmd-controls span:last-child:hover { background: #c42b1c; color: white; }
.cmd-body { min-height: 380px; padding: 18px 20px 20px; color: #f2f2f2; font: 500 clamp(12px, 2vw, 15px) Consolas, "Cascadia Mono", "JetBrains Mono", monospace; line-height: 1.48; }
.cmd-plus:hover { background:#2b2b2b; }
.cmd-log { white-space:pre-wrap; min-height:270px; color:#f2f2f2; }
.cmd-prompt-line { display:flex; align-items:center; gap:0; color:#f2f2f2; margin:0; }
.cmd-prompt-line span { flex:0 0 auto; }
.cmd-prompt-line input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:#f2f2f2; font:inherit; caret-color:#f2f2f2; padding:0 0 0 6px; }
.cmd-body p { margin: 0; }
#typewriter-output.hidden, .cmd-continue.hidden, .cmd-prompt-line.hidden { display:none; }
.cmd-log.typing::after { content: "█"; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.cmd-continue { margin-top: 18px; width: 100%; padding: 12px 14px; cursor: pointer; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: #1b1b1b; transition: .2s ease; }
.cmd-continue:hover { background: #252525; border-color: rgba(255,255,255,.32); }

.profile-console { margin: auto; width: 1010px; max-width: min(1010px, 96vw); height: 720px; max-height: 94vh; display: flex; flex-direction: row; overflow: hidden; border-radius: 8px; transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-2px); transform-style: preserve-3d; position: relative; border: 0; background: rgba(13, 17, 30, 0.72); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); transition: transform .2s ease, box-shadow .24s ease, width .35s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform, width; }
.profile-console:has(#rightPanelContainer.collapsed),
.profile-console.collapsed { width: 410px; }
.profile-console.interactive-hover { box-shadow: var(--shadow), 0 0 42px rgba(88,101,242,.16), inset 0 1px 0 rgba(255,255,255,.1); }
.profile-console::before { content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: inherit; padding: 2px; background: linear-gradient(180deg, #ff7adf 0%, #c56cff 34%, rgba(255,255,255,.22) 50%, #5865f2 68%, #35e8ff 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .95; }
.profile-console::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(360px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255,255,255,.18), rgba(53,232,255,.08) 28%, transparent 58%); opacity: 0; mix-blend-mode: screen; transition: opacity .22s ease; }
.profile-console.interactive-hover::after { opacity: 1; }
.hover-ripple { display: none !important; }

/* Custom scrollbars */
.profile-scroll-body::-webkit-scrollbar, .tab-content::-webkit-scrollbar { width: 5px; }
.profile-scroll-body::-webkit-scrollbar-track, .tab-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 999px; }
.profile-scroll-body::-webkit-scrollbar-thumb, .tab-content::-webkit-scrollbar-thumb { background: rgba(88, 101, 242, 0.35); border-radius: 999px; }
.profile-scroll-body::-webkit-scrollbar-thumb:hover, .tab-content::-webkit-scrollbar-thumb:hover { background: rgba(88, 101, 242, 0.65); }

/* LEFT PROFILE COLUMN */
.profile-left-col { width: 410px; height: 100%; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(16, 20, 38, 0.75) 0%, rgba(11, 14, 26, 0.72) 100%); position: relative; z-index: 4; overflow: hidden; }
.profile-console:has(#rightPanelContainer.collapsed) .profile-left-col,
.profile-console.collapsed .profile-left-col { border-right: none; }
.profile-fixed-top { flex-shrink: 0; display: flex; flex-direction: column; }
.profile-scroll-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 12px; }
.profile-banner { height: 135px; position: relative; overflow: hidden; background: #121626; flex-shrink: 0; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.12) contrast(1.05); }
.profile-banner::after { content: ""; position: absolute; inset: auto 0 0; height: 52px; background: linear-gradient(transparent, rgba(15,18,32,.94)); }
.banner-glow { position: absolute; inset: 0; background: radial-gradient(circle at 24% 38%, rgba(53,232,255,.22), transparent 34%); animation: glowShift 5s ease infinite alternate; }

.profile-header { display: flex; align-items: flex-end; justify-content: flex-start; gap: 14px; padding: 0 20px 12px; margin-top: -46px; position: relative; z-index: 5; }
.avatar-wrap { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.avatar-image, .avatar-fallback { width: 100%; height: 100%; border-radius: 50%; border: 4px solid rgba(15,18,32,.98); object-fit: cover; background: linear-gradient(135deg, #202541, #5865f2); }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff; }
.avatar-image[src]:not([src=""]) { position: relative; z-index: 2; }
.avatar-image[src]:not([src=""]) + .avatar-fallback { display: none; }
.avatar-glow { box-shadow: 0 0 16px 2px rgba(88, 101, 242, 0.65), inset 0 0 8px rgba(53, 232, 255, 0.5); }
.avatar-decoration { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 8px rgba(255,79,216,.32)); transform: scale(1.08); transform-origin: center; }

.status-orb { position: absolute; z-index: 5; right: 4px; bottom: 7px; width: 26px; height: 26px; border-radius: 50%; border: 4px solid rgba(15,18,32,.98); background: #828898; box-shadow: none; }
.status-orb::after { content: ""; position: absolute; pointer-events: none; }
.status-orb.online { background: #23a55a; box-shadow: 0 0 16px rgba(35,165,90,.48); }
.status-orb.online::after { display: none; }
.status-orb.idle { background-color: rgba(15,18,32,.98); background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 23"%3E%3Ccircle cx="12" cy="11.5" r="11.5" fill="%230f1220"/%3E%3Cpath fill="%23faa61a" fill-rule="evenodd" d="M 11.550781 -0.00390625 C 11.847656 -0.00390625 12.144531 -0.00390625 12.441406 -0.00390625 C 15.25 0.121094 17.71875 1.054688 19.84375 2.789062 C 21.714844 4.359375 22.972656 6.300781 23.617188 8.613281 C 23.847656 9.484375 23.972656 10.371094 23.996094 11.265625 C 23.996094 11.417969 23.996094 11.574219 23.996094 11.726562 C 23.90625 14.496094 22.933594 16.925781 21.074219 19.023438 C 19.386719 20.871094 17.296875 22.089844 14.800781 22.6875 C 14.023438 22.863281 13.234375 22.964844 12.441406 22.996094 C 12.140625 22.996094 11.84375 22.996094 11.542969 22.996094 C 8.800781 22.871094 6.378906 21.976562 4.273438 20.308594 C 2.367188 18.75 1.074219 16.804688 0.398438 14.476562 C 0.164062 13.621094 0.03125 12.75 -0.00390625 11.863281 C -0.00390625 11.621094 -0.00390625 11.378906 -0.00390625 11.136719 C 0.0234375 10.425781 0.113281 9.722656 0.273438 9.027344 C 0.847656 10.859375 1.988281 12.265625 3.691406 13.246094 C 5.175781 14.058594 6.761719 14.355469 8.457031 14.136719 C 10.15625 13.886719 11.601562 13.171875 12.789062 11.996094 C 14.117188 10.621094 14.796875 8.988281 14.824219 7.101562 C 14.792969 5.203125 14.109375 3.566406 12.765625 2.1875 C 11.832031 1.265625 10.714844 0.621094 9.417969 0.261719 C 10.121094 0.113281 10.832031 0.0234375 11.550781 -0.00390625 Z M 11.550781 -0.00390625"/%3E%3C/svg%3E'); background-position: center; background-size: 22px 22px; background-repeat: no-repeat; box-shadow: none; }
.status-orb.idle::after { display: none; }
.status-orb.dnd { background: #f23f43; box-shadow: 0 0 16px rgba(242,63,67,.42); }
.status-orb.dnd::after { left: 50%; top: 50%; width: 13px; height: 4px; border-radius: 99px; background: #fff; transform: translate(-50%, -50%); }
.status-orb.offline { background: #80848e; box-shadow: none; }
.status-orb.offline::after { inset: 5px; border-radius: 50%; background: rgba(15,18,32,.98); }

.custom-status-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgba(8, 12, 24, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(88, 101, 242, 0.32); font-size: 12px; font-weight: 600; color: #dfe5ff; margin-bottom: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.35); max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.identity-section { padding: 0 20px 12px; }
.identity-section h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.profile-typing-name { display: inline; min-height: 1em; background: linear-gradient(90deg, #fff, #ffd6f5 42%, #a9f6ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 22px rgba(255,79,216,.18); }
.profile-typing-cursor { display: inline-block; margin-left: 2px; color: #fff; font-weight: 500; text-shadow: 0 0 12px rgba(255,255,255,.58); animation: typingCaret .8s infinite; }

.handle-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 5px; font-size: 12px; color: #a3b2d6; }
.handle-bar .username { margin: 0; color: #d1dcfa; font-weight: 600; }
.handle-bar .dot-sep { color: #5a6684; }
.server-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 4px; background: rgba(88, 101, 242, 0.22); border: 1px solid rgba(88, 101, 242, 0.4); color: #dce4ff; font-size: 11px; font-weight: 700; transition: all 0.2s ease; }
.clan-badge-icon { width: 13px; height: 13px; border-radius: 50%; object-fit: contain; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sync-clock { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: #9cb0dc; margin-left: auto; margin-bottom: 8px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(8, 12, 24, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.08); letter-spacing: 0.3px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.client-platform-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: #c0cde8; font-size: 11px; font-weight: 600; cursor: default; transition: all 0.2s ease; white-space: nowrap; }
.client-platform-btn svg { flex-shrink: 0; }
.client-platform-btn:hover { background: rgba(88, 101, 242, 0.15); border-color: rgba(88, 101, 242, 0.35); color: #fff; }

.inline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: #80848e; flex-shrink: 0; }
.inline-dot.online { background: var(--green); box-shadow: 0 0 12px rgba(62,232,125,.5); }
.inline-dot.idle { background: var(--yellow); }
.inline-dot.dnd { background: var(--red); }

.badge-list { display: flex !important; align-items: center; gap: 5px; min-height: 24px; padding: 0 20px 12px; overflow: visible !important; white-space: normal !important; flex-wrap: wrap; }
.discord-badge { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; position: relative; transition: .18s ease; }
.discord-badge:hover { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 8px rgba(88,101,242,.4)); }
.discord-badge::before { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(4px) scale(.98); z-index: 80; padding: 7px 10px; border-radius: 7px; background: #111214; color: #f2f3f5; font: 700 12px/1.2 "Inter", sans-serif; white-space: nowrap; box-shadow: 0 8px 18px rgba(0,0,0,.34); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s; }
.discord-badge::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%) translateY(4px); z-index: 79; border: 6px solid transparent; border-top-color: #111214; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s; }
.discord-badge:hover::before, .discord-badge:hover::after, .discord-badge:focus-visible::before, .discord-badge:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); transition-delay: 0s; }
.discord-badge img { width: 22px; height: 22px; display: block; object-fit: contain; }
.discord-badge.nitro { filter: drop-shadow(0 0 8px rgba(255,115,207,.18)); }
.discord-badge.empty { width: auto; padding: 4px 7px; color: var(--muted); font: 700 11px "JetBrains Mono", monospace; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); }

.profile-actions-row { display: flex; align-items: center; gap: 8px; padding: 0 20px 14px; }
.btn-primary-action { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: #5865f2; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; transition: background 0.2s ease, transform 0.15s ease; box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35); }
.btn-primary-action:hover { background: #4752c4; transform: translateY(-1px); }
.btn-primary-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-icon-action { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #cbd5e1; text-decoration: none; transition: all 0.2s ease; flex-shrink: 0; cursor: pointer; }
.btn-icon-action:hover { background: rgba(88, 101, 242, 0.2); border-color: rgba(88, 101, 242, 0.4); color: #fff; transform: translateY(-1px); }
.btn-icon-action svg { width: 16px; height: 16px; }
.panel-toggle-btn.is-collapsed #toggleChevron { transform: rotate(180deg); }
#toggleChevron { transform-origin: center; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.col-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); margin: 0 20px 14px; }
.info-section { padding: 0 20px 14px; }
.section-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #8fa2ce; margin-bottom: 6px; }
.bio-text { font-size: 12px; color: #c5d2f0; line-height: 1.5; margin: 0; }

/* Tags: subtle hover bounce, aligned evenly across row */
.tags { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 10px; }
.tags span { flex: 1 1 0; text-align: center; padding: 5px 3px; border-radius: 999px; background: rgba(88, 101, 242, 0.14); border: 1px solid rgba(88, 101, 242, 0.28); color: #e2e8ff; font-size: 11px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; user-select: none; white-space: nowrap; }
.tags span:hover { transform: translateY(-2px) scale(1.03); background: rgba(88, 101, 242, 0.32); border-color: rgba(140, 160, 255, 0.6); box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35); color: #ffffff; }
.tags span:active { transform: translateY(0) scale(0.98); }

/* Connections: 2-column grid with aligned icons */
.connections-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.conn-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); color: #d8e2f8; text-decoration: none; transition: all 0.2s ease; font-size: 11.5px; min-width: 0; }
.conn-item.conn-item-wide { grid-column: span 2; }
.conn-item:hover { background: rgba(88, 101, 242, 0.15); border-color: rgba(88, 101, 242, 0.35); color: #fff; transform: translateY(-1px); }
.conn-left { display: flex; align-items: center; gap: 7px; font-weight: 600; min-width: 0; overflow: hidden; }
.conn-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; line-height: 1; text-align: center; }
.conn-x-svg { width: 12px; height: 12px; display: block; flex-shrink: 0; }
.conn-name { color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.conn-arrow { width: 12px; height: 12px; stroke: #8292b5; flex-shrink: 0; transition: stroke 0.2s ease, transform 0.2s ease; }
.conn-item:hover .conn-arrow { stroke: #fff; transform: translateX(2px); }

/* RIGHT WIDGETS COLUMN */
.right-panel-container { flex: 1; min-width: 0; width: 600px; height: 100%; background: rgba(10, 13, 25, 0.65); overflow: hidden; display: flex; flex-direction: column; transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; z-index: 4; }
.right-panel-container.collapsed { max-width: 0 !important; width: 0 !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; border: none !important; }

.right-widgets-inner { width: 100%; height: 100%; max-height: 100%; display: flex; flex-direction: column; padding: 20px 22px; box-sizing: border-box; overflow: hidden; }
.widgets-nav-tabs { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 12px; margin-bottom: 16px; flex-shrink: 0; }
.nav-tab-btn { position: relative; background: transparent; border: 0; padding: 4px 0; color: #8895b8; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: color 0.2s ease; }
.nav-tab-btn:hover { color: #dfe5ff; }
.nav-tab-btn.active { color: #fff; }
.tab-indicator { position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: #5865f2; border-radius: 999px; opacity: 0; transition: opacity 0.2s ease; }
.nav-tab-btn.active .tab-indicator { opacity: 1; box-shadow: 0 0 8px #5865f2; }

.tab-content { display: none; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; }
.tab-content.active { display: block; animation: tabFadeIn 0.25s ease both; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* FEATURED SHOWCASE CARD */
.featured-showcase-card { position: relative; overflow: hidden; border-radius: 8px; padding: 16px 18px; min-height: 155px; background: linear-gradient(135deg, rgba(28, 33, 64, 0.7) 0%, rgba(22, 26, 52, 0.58) 50%, rgba(16, 19, 40, 0.72) 100%); border: 1px solid rgba(88, 101, 242, 0.25); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.showcase-info { position: relative; z-index: 3; max-width: 65%; display: flex; flex-direction: column; gap: 6px; }
.showcase-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #b7a6ff; }
.showcase-tag .tag-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; background: rgba(88, 101, 242, 0.3); font-size: 11px; }
.showcase-name { margin: 0; font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.showcase-meta { display: flex; flex-direction: column; font-size: 12px; gap: 2px; }
.showcase-handle { color: #9bb0d8; font-weight: 600; }
.showcase-link { color: #b39bfb; text-decoration: underline; font-weight: 600; transition: color 0.15s ease; }
.showcase-link:hover { color: #d0c4fe; }
.showcase-quote { margin: 2px 0 0; font-size: 12px; color: #d5def5; font-weight: 500; line-height: 1.4; }
.showcase-quote .heart { color: #ff4a6e; }

.showcase-art-wrap { position: absolute; right: 0; top: 0; bottom: 0; width: 220px; overflow: hidden; pointer-events: none; z-index: 1; }
.showcase-art { width: 100%; height: 100%; object-fit: cover; object-position: left; }
.showcase-art-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20, 24, 46, 0.98) 0%, rgba(20, 24, 46, 0.65) 30%, transparent 100%); }

/* APPS GRID */
.widgets-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.widgets-title { margin: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #8fa2ce; }
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.2s ease; cursor: pointer; }
.app-card:hover { background: rgba(88, 101, 242, 0.16); border-color: rgba(88, 101, 242, 0.35); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.app-icon-wrap { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; font-size: 20px; background: rgba(20, 24, 48, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); }
.app-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.app-text { min-width: 0; }
.app-title { display: block; font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-detail { display: block; font-size: 11px; color: #9cb0dc; font-weight: 500; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* WEBSITES TAB */
.websites-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.website-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); text-decoration: none; color: inherit; transition: all 0.22s ease; cursor: pointer; }
.website-card:hover { background: rgba(88,101,242,0.14); border-color: rgba(88,101,242,0.35); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.website-icon-wrap { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(88,101,242,0.18), rgba(53,232,255,0.1)); border: 1px solid rgba(88,101,242,0.25); color: var(--cyan); overflow: hidden; }
.website-icon-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.website-info { flex: 1; min-width: 0; }
.website-name { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.website-desc { display: block; font-size: 12px; color: #9cb0dc; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.website-arrow { flex-shrink: 0; color: #6a7ca5; transition: color 0.2s ease, transform 0.2s ease; }
.website-card:hover .website-arrow { color: var(--cyan); transform: translate(2px, -2px); }

/* REALTIME ACTIVITIES TAB */
.activity-card { margin: 0 0 12px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.045); border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.activity-card.hidden { display: none; }
.activity-card h2 { margin: 0 0 5px; font-size: 14px; }
.activity-card p { margin: 0; color: var(--muted); font-size: 13px; }
.activity-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--discord), var(--cyan)); box-shadow: 0 0 22px rgba(88,101,242,.24); flex-shrink: 0; }
.activity-time { margin-top: 5px !important; font: 700 11px "JetBrains Mono", monospace; color: #c7d0ff !important; }
.handle { color: #fff !important; font-weight: 800; }

.realtime-spotify-card { padding: 14px 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 6px; }
.spotify-header { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #1db954; }
.spotify-song { font-size: 13px; color: #e1e7f5; font-weight: 600; }

/* EMBEDDED TOOLS (UNITY COLORIZER & BOT TABS) */
.embedded-tool-header { margin-bottom: 12px; }
.embedded-tool-header h3 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.embedded-tool-header .eyebrow { margin: 0 0 3px; }

.field-block { display: grid; gap: 7px; margin-bottom: 12px; color: #dfe5ff; font-weight: 700; font-size: 12px; }
.field-block textarea, .field-block select, .color-picks label { width: 100%; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(7,10,22,.58); color: #eef4ff; outline: none; }
.field-block textarea, .field-block select { padding: 10px 12px; font: 600 13px "JetBrains Mono", monospace; resize: vertical; }
.field-block select { appearance: none; -webkit-appearance: none; min-height: 40px; padding-right: 36px; background-image: linear-gradient(135deg, rgba(88,101,242,.18), rgba(53,232,255,.07)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23bff7ff' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E"); background-repeat: no-repeat, no-repeat; background-position: center, right 12px center; background-size: 100% 100%, 16px 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.field-block select option { color: #eef4ff; background: #101427; font: 600 13px "JetBrains Mono", monospace; }
.field-block textarea:focus, .field-block select:focus { border-color: rgba(53,232,255,.48); box-shadow: 0 0 0 3px rgba(53,232,255,.08); }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-grid.compact { align-items: end; }
.color-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 3px 0 12px; }
.color-picks label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; color: var(--muted); font-size: 12px; transition: .2s ease; }
.color-picks label.disabled { opacity: .34; filter: grayscale(1); pointer-events: none; }
.color-picks input { width: 38px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.toggle-row label { min-height: 36px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.045); color: #dfe5ff; font-size: 12px; display: inline-flex; align-items: center; gap: 7px; line-height: 1; cursor: pointer; }
.toggle-row input { width: 14px; height: 14px; margin: 0; accent-color: var(--cyan); flex: 0 0 auto; }
.preview-card { margin: 2px 0 12px; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, rgba(88,101,242,.12), rgba(53,232,255,.06)); }
.preview-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.tc-preview { min-height: 38px; word-break: break-word; font-size: 15px; line-height: 1.45; }
.output-block textarea { min-height: 100px; color: #bff7ff; }
.copy-btn { width: 100%; padding: 11px 14px; font-weight: 800; font-size: 13px; border-radius: 8px; border: 1px solid rgba(53,232,255,.3); color: #fff; background: linear-gradient(135deg, rgba(88,101,242,.4), rgba(53,232,255,.25)); cursor: pointer; transition: .2s ease; }
.copy-btn:hover { background: linear-gradient(135deg, rgba(88,101,242,.6), rgba(53,232,255,.4)); border-color: rgba(53,232,255,.6); transform: translateY(-1px); }

/* DISCORD BOT TAB */
.bot-hero { display: flex; gap: 14px; align-items: center; min-height: 105px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background-image: linear-gradient(135deg, rgba(9,12,26,.86), rgba(16,18,35,.64) 54%, rgba(8,11,22,.88)), linear-gradient(135deg, rgba(88,101,242,.28), rgba(255,79,216,.14) 52%, rgba(53,232,255,.1)); background-position: center; background-size: cover; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 42px rgba(0,0,0,.16); position: relative; overflow: hidden; margin-bottom: 12px; }
.bot-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(280px circle at 18% 20%, rgba(255,255,255,.13), transparent 62%); mix-blend-mode: screen; }
.bot-hero > * { position: relative; z-index: 1; }
.bot-avatar-wrap { width: 60px; height: 60px; flex: 0 0 auto; position: relative; border-radius: 12px; padding: 2px; background: linear-gradient(135deg, var(--discord), var(--pink) 55%, var(--cyan)); }
.bot-avatar { width: 100%; height: 100%; display: block; border-radius: 10px; object-fit: cover; background: rgba(8,11,22,.78); }
.bot-avatar[src=""] { visibility: hidden; }
.bot-status-dot { position: absolute; right: 0; bottom: 0; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #111626; background: #8791a8; }
.bot-status-dot.online { background: #32f5a1; box-shadow: 0 0 14px rgba(50,245,161,.7); }
.bot-status-dot.idle { width: 18px; height: 18px; right: -1px; bottom: -1px; border: 3px solid #111626; background-color: #111626; background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 23"%3E%3Ccircle cx="12" cy="11.5" r="11.5" fill="%23111626"/%3E%3Cpath fill="%23faa61a" fill-rule="evenodd" d="M 11.550781 -0.00390625 C 11.847656 -0.00390625 12.144531 -0.00390625 12.441406 -0.00390625 C 15.25 0.121094 17.71875 1.054688 19.84375 2.789062 C 21.714844 4.359375 22.972656 6.300781 23.617188 8.613281 C 23.847656 9.484375 23.972656 10.371094 23.996094 11.265625 C 23.996094 11.417969 23.996094 11.574219 23.996094 11.726562 C 23.90625 14.496094 22.933594 16.925781 21.074219 19.023438 C 19.386719 20.871094 17.296875 22.089844 14.800781 22.6875 C 14.023438 22.863281 13.234375 22.964844 12.441406 22.996094 C 12.140625 22.996094 11.84375 22.996094 11.542969 22.996094 C 8.800781 22.871094 6.378906 21.976562 4.273438 20.308594 C 2.367188 18.75 1.074219 16.804688 0.398438 14.476562 C 0.164062 13.621094 0.03125 12.75 -0.00390625 11.863281 C -0.00390625 11.621094 -0.00390625 11.378906 -0.00390625 11.136719 C 0.0234375 10.425781 0.113281 9.722656 0.273438 9.027344 C 0.847656 10.859375 1.988281 12.265625 3.691406 13.246094 C 5.175781 14.058594 6.761719 14.355469 8.457031 14.136719 C 10.15625 13.886719 11.601562 13.171875 12.789062 11.996094 C 14.117188 10.621094 14.796875 8.988281 14.824219 7.101562 C 14.792969 5.203125 14.109375 3.566406 12.765625 2.1875 C 11.832031 1.265625 10.714844 0.621094 9.417969 0.261719 C 10.121094 0.113281 10.832031 0.0234375 11.550781 -0.00390625 Z M 11.550781 -0.00390625"/%3E%3C/svg%3E'); background-position: center; background-repeat: no-repeat; background-size: 18px 18px; }
.bot-kicker { display: block; margin-bottom: 4px; color: #bff7ff; font: 800 10px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.bot-hero h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.05; letter-spacing: -.02em; }
.bot-hero p { margin: 0; color: #dbe5ff; font-size: 13px; line-height: 1.4; }
.bot-actions { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.invite-btn { flex: 0 0 auto; padding: 9px 14px; border-radius: 8px; color: #07101d; font-weight: 800; font-size: 12.5px; background: linear-gradient(135deg, var(--cyan), #fff); box-shadow: 0 10px 24px rgba(53,232,255,.18); text-decoration: none; transition: .2s ease; }
.invite-btn.disabled { opacity: .48; pointer-events: none; filter: grayscale(.4); }
.invite-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(53,232,255,.26); }
.bot-note { color: var(--muted); font-size: 12px; }
.bot-live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
.bot-live-grid article { min-width: 0; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.bot-live-grid article.wide { grid-column: span 2; }
.bot-live-grid span { display: block; margin-bottom: 5px; color: #9bb0dc; font: 800 10px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.bot-live-grid strong { display: block; color: #eef4ff; font-size: 14px; word-break: break-word; }
.bot-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.bot-feature-grid article { min-width: 0; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.bot-feature-grid span { display: block; color: #b9c1ff; font: 800 10px "JetBrains Mono", monospace; margin-bottom: 6px; }
.bot-feature-grid p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.hidden { display:none !important; }

#discord-link svg { transform:translateY(1px) scale(1.08); transform-origin:center; }
#discord-link:hover svg { transform:translateY(1px) scale(1.18); }

@keyframes drift { to { transform:translate(8%, -5%) scale(1.12); } }
@keyframes screenIn { from { opacity:0; transform:translateY(14px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes pageDriftOut { 0% { opacity:1; transform:translateY(-4px) translateX(0) scale(1); filter:blur(0); } 55% { opacity:.42; transform:translateY(-4px) translateX(-18px) scale(.975); filter:blur(1.8px); } 100% { opacity:1; transform:translateY(-4px) translateX(0) scale(1); filter:blur(0); } }
@keyframes pageDriftIn { 0% { opacity:.46; transform:translateY(-4px) translateX(18px) scale(.975); filter:blur(1.8px); } 100% { opacity:1; transform:translateY(-4px) translateX(0) scale(1); filter:blur(0); } }
@keyframes colorPageWipeIn { 0% { opacity:0; clip-path:inset(0 0 0 100% round 14px); transform:translateX(34px) scale(.985); filter:blur(4px); } 58% { opacity:1; clip-path:inset(0 0 0 0 round 14px); transform:translateX(0) scale(1); filter:blur(.4px); } 100% { opacity:1; clip-path:inset(0 0 0 0 round 14px); transform:none; filter:blur(0); } }
@keyframes colorPageWipeOut { 0% { opacity:1; clip-path:inset(0 0 0 0 round 14px); transform:none; filter:blur(0); } 100% { opacity:0; clip-path:inset(0 100% 0 0 round 14px); transform:translateX(-26px) scale(.985); filter:blur(3px); } }
@keyframes glowShift { to { opacity:.55; transform:translateX(3%); } }
@keyframes hoverRipple { to { opacity:0; transform:translate(-50%, -50%) scale(24); } }
@keyframes pageRipple { to { opacity:0; transform:translate(-50%, -50%) scale(34); } }
@keyframes blink { 50% { opacity:0; } }

/* ============================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ============================================================ */

body.mobile-panel-open {
  overflow: hidden !important;
}

@media (max-width: 880px) {
  html, body {
    height: 100%;
    height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  #app-root {
    height: 100%;
    height: 100dvh;
    overflow: hidden !important;
  }

  /* 1. Center the screen content horizontally & vertically - NO outer page scroll */
  .screen {
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 14px 10px;
    box-sizing: border-box;
    display: none;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
  .screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .terminal-screen {
    padding-bottom: 20px;
    overscroll-behavior: none;
    touch-action: none;
  }
  .terminal-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 2. Main Profile Card: perfectly centered & sized for mobile viewport */
  .profile-console {
    margin: auto !important;
    width: min(410px, 94vw) !important;
    max-width: min(410px, 94vw) !important;
    height: min(650px, calc(100dvh - 28px)) !important;
    max-height: calc(100dvh - 28px) !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 12px !important;
    transform: none !important;
    perspective: none !important;
    will-change: auto !important;
    overflow: hidden !important;
  }
  .profile-console:has(#rightPanelContainer.collapsed),
  .profile-console.collapsed,
  .profile-console:not(.collapsed) {
    width: min(410px, 94vw) !important;
    max-width: min(410px, 94vw) !important;
  }

  .profile-left-col {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-right: none !important;
    border-radius: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .profile-fixed-top {
    flex-shrink: 0 !important;
  }

  .profile-scroll-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Keep toggle button visible */
  .panel-toggle-btn {
    display: inline-flex !important;
  }

  /* 3. Mobile Backdrop */
  .mobile-panel-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(3, 6, 14, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 900 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1) !important;
  }
  .mobile-panel-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* 4. Sub-panel as Mobile Bottom Sheet Drawer */
  .right-panel-container {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: min(780px, 86dvh) !important;
    max-height: 86dvh !important;
    border-radius: 22px 22px 0 0 !important;
    background: rgba(13, 17, 32, 0.97) !important;
    backdrop-filter: blur(30px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: none !important;
    box-shadow: 0 -12px 42px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    z-index: 1000 !important;
    transform: translateY(105%) !important;
    transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease, visibility 0.36s !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .right-panel-container:not(.collapsed) {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .right-panel-container.collapsed {
    transform: translateY(105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Mobile Sheet Header */
  .mobile-panel-header {
    display: flex !important;
    flex-direction: column;
    padding: 6px 14px 2px;
    flex-shrink: 0;
    user-select: none;
    touch-action: none;
  }
  .mobile-drag-handle {
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.3);
    margin: 4px auto 4px;
    cursor: grab;
    transition: background 0.2s ease, width 0.2s ease;
  }
  .mobile-drag-handle:active {
    background: rgba(53, 232, 255, 0.8);
    width: 46px;
  }
  .mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2px;
  }
  .mobile-panel-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
  }
  .mobile-panel-close-btn:hover, .mobile-panel-close-btn:active {
    background: rgba(244, 91, 105, 0.25);
    border-color: rgba(244, 91, 105, 0.5);
    color: #fff;
  }

  /* Widgets Inner container */
  .right-widgets-inner {
    width: 100%;
    height: 100%;
    padding: 4px 18px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Horizontal swipeable tabs on mobile */
  .widgets-nav-tabs {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 14px;
    flex-shrink: 0;
  }
  .widgets-nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tab-btn {
    flex-shrink: 0;
    font-size: 13px;
    padding: 4px 2px;
  }

  .tab-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
  }

  /* Featured Showcase Card on mobile */
  .featured-showcase-card {
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    min-height: 135px;
    border-radius: 10px;
  }
  .showcase-info {
    max-width: 72%;
  }
  .showcase-name {
    font-size: 20px;
  }
  .showcase-art-wrap {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 130px;
    opacity: 0.65;
    display: block !important;
  }

  /* Apps Grid */
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .app-card {
    padding: 8px 10px;
    gap: 9px;
  }
  .app-icon-wrap {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .app-title {
    font-size: 12.5px;
  }
  .app-detail {
    font-size: 10.5px;
  }

  /* Websites List */
  .website-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .website-icon-wrap {
    width: 38px;
    height: 38px;
  }
  .website-name {
    font-size: 13.5px;
  }
  .website-desc {
    font-size: 11.5px;
  }

  /* Unity Text & Bot Grids */
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .color-picks {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .bot-live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bot-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .screen {
    padding: 10px 8px;
  }
  .profile-console {
    width: min(400px, 95vw) !important;
    max-width: min(400px, 95vw) !important;
    height: min(630px, calc(100dvh - 20px)) !important;
    max-height: calc(100dvh - 20px) !important;
  }
  .profile-left-col {
    height: 100% !important;
    max-height: 100% !important;
  }
  .profile-banner {
    height: 115px;
  }
  .profile-header {
    gap: 10px;
    padding: 0 14px 10px;
    margin-top: -38px;
  }
  .avatar-wrap {
    width: 80px;
    height: 80px;
  }
  .identity-section, .badge-list, .profile-actions-row, .info-section {
    padding-left: 14px;
    padding-right: 14px;
  }
  .col-divider {
    margin-left: 14px;
    margin-right: 14px;
  }
  .identity-section h1 {
    font-size: 21px;
  }
  .btn-primary-action {
    font-size: 12.5px;
    padding: 7px 10px;
  }
}

@media (max-width: 360px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .profile-header {
    gap: 8px;
  }
  .avatar-wrap {
    width: 72px;
    height: 72px;
  }
  .sync-clock {
    font-size: 10px;
    padding: 3px 7px;
  }
}

@keyframes typingCaret { 50% { opacity:0; } }
