/* ==========================================================================
   GUNS.LOL BIO PLATFORM - AUTHENTIC DARK AESTHETIC
   Clean, minimalist, no childish emojis, modern Onest typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

:root {
    --accent: #a8ff35;
    --accent-rgb: 168, 255, 53;
    --accent-glow: rgba(168, 255, 53, 0.35);
    --bg-dark: #08080c;
    --card-bg: rgba(14, 15, 22, 0.72);
    --card-blur: 24px;
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #9090a2;
    --text-tertiary: #585868;
    --btn-bg: rgba(255, 255, 255, 0.035);
    --btn-border: rgba(255, 255, 255, 0.07);
    --btn-hover: rgba(255, 255, 255, 0.075);
    --discord-brand: #5865F2;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Dynamic Interactive Living Canvas */
#aliveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Ambient Radial Aura Blobs */
.ambient-plasma {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(168, 255, 53, 0.08), transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(88, 101, 242, 0.12), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(18, 20, 32, 0.9), transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.custom-bg-media {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.25);
    transform: scale(1.06);
    z-index: 0;
    opacity: 0.7;
    transition: background-image 0.5s ease;
}

/* CRT Scanlines & Vignette */
.crt-scanlines {
    position: fixed;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.88) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ==========================================================================
   CLICK TO ENTER OVERLAY (GUNS.LOL CLASSIC)
   ========================================================================== */
.click-overlay {
    position: fixed;
    inset: 0;
    background-color: #060608;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.click-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.click-prompt {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #ffffff;
    text-transform: uppercase;
    animation: promptPulse 2.4s ease-in-out infinite;
}

.click-subtext {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--text-tertiary);
    margin-top: 8px;
    text-transform: uppercase;
}

@keyframes promptPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.99); text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }
    50% { opacity: 1; transform: scale(1.01); text-shadow: 0 0 20px var(--accent-glow); }
}

/* ==========================================================================
   GUNS.LOL SITE HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 8, 12, 0.5);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent);
}

.brand-logo span {
    color: var(--accent);
}

.btn-menu-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-menu-back:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.btn-menu-back svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.action-btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.action-btn-primary {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: #ffffff;
}

.action-btn-primary:hover {
    background: var(--btn-hover);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.action-btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #08080c;
    font-weight: 700;
    box-shadow: 0 0 16px var(--accent-glow);
}

.action-btn-accent:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.user-session-badge {
    display: none;
    align-items: center;
    gap: 9px;
    background: rgba(20, 21, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px 12px 4px 5px;
}

.user-session-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.user-session-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.user-session-logout {
    font-size: 11.5px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 4px;
    padding: 2px 5px;
    border-radius: 4px;
}

.user-session-logout:hover {
    color: #ff5555;
}

/* ==========================================================================
   MAIN PROFILE STAGE & CARD
   ========================================================================== */
.profile-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding-top: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow-y: auto;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border-radius: 20px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 0, 0, 0.5);
    animation: profileCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes profileCardIn {
    0% { opacity: 0; transform: translateY(24px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Avatar Group */
.avatar-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 2px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 26px var(--accent-glow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-img:hover {
    transform: scale(1.03);
    border-color: var(--accent);
}

.status-dot-pulse {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #23a55a;
    border: 3px solid #0d0e14;
    box-shadow: 0 0 10px rgba(35, 165, 90, 0.7);
}

/* Identity & Tags */
.identity-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.name-text {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.badge-verified-svg {
    width: 21px;
    height: 21px;
    fill: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    flex-shrink: 0;
}

.handle-tag {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Badges Showcase */
.badges-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: -2px;
}

.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #d8d8e6;
    letter-spacing: 0.2px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: #ffffff;
}

.badge-chip svg {
    width: 12px;
    height: 12px;
    fill: var(--accent);
}

/* Bio Text */
.bio-paragraph {
    font-size: 14px;
    line-height: 1.55;
    color: #c4c4d6;
    max-width: 380px;
    white-space: pre-line;
    word-break: break-word;
}

/* Discord Presence Box */
.discord-card {
    width: 100%;
    background: rgba(20, 20, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.35);
}

.discord-avatar-frame {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.discord-pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discord-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #14141e;
    background-color: #23a55a;
}

.discord-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.discord-tag {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.discord-status-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-active {
    color: #1ed760;
    font-weight: 600;
}

/* Guns.lol Style Button Links */
.links-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

.profile-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-link-btn:hover {
    transform: translateY(-2px);
    background: var(--btn-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-arrow-svg {
    width: 14px;
    height: 14px;
    fill: var(--text-tertiary);
    transition: transform 0.25s ease, fill 0.25s ease;
}

.profile-link-btn:hover .link-arrow-svg {
    transform: translateX(3px);
    fill: #ffffff;
}

/* Audio Player Bar */
.audio-bar {
    width: 100%;
    background: rgba(16, 17, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-play-trigger {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #08080c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 14px var(--accent-glow);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.audio-play-trigger:hover {
    transform: scale(1.07);
}

.audio-play-trigger svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.audio-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    flex-grow: 1;
}

.audio-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-artist {
    font-size: 11.5px;
    color: var(--text-secondary);
}

.equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    flex-shrink: 0;
}

.eq-bar {
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.12s ease;
}

.equalizer-bars.playing .eq-bar:nth-child(1) { animation: eqBounce 0.6s infinite alternate 0.1s; }
.equalizer-bars.playing .eq-bar:nth-child(2) { animation: eqBounce 0.6s infinite alternate 0.25s; }
.equalizer-bars.playing .eq-bar:nth-child(3) { animation: eqBounce 0.6s infinite alternate 0.15s; }
.equalizer-bars.playing .eq-bar:nth-child(4) { animation: eqBounce 0.6s infinite alternate 0.35s; }

@keyframes eqBounce {
    0% { height: 3px; }
    100% { height: 16px; }
}

.volume-slider-bar {
    width: 55px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Card Bottom Views Footer */
.profile-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-tertiary);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: 2px;
}

.views-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.views-pill svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* ==========================================================================
   AUTHENTICATION & REGISTRATION MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(14, 15, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .auth-modal {
    transform: scale(1);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
}

.auth-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
}

.auth-close-btn:hover {
    color: #ffffff;
}

/* Auth Tabs */
.auth-switch-tabs {
    display: flex;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-switch-btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-switch-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Discord One-Click Connect Button */
.discord-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    background: var(--discord-brand);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-connect-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5);
}

.discord-connect-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-field {
    width: 100%;
    background: rgba(24, 25, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.auth-submit-btn {
    width: 100%;
    height: 42px;
    background: var(--accent);
    color: #08080c;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 16px var(--accent-glow);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   BUILDER SIDEBAR DRAWER
   ========================================================================== */
.builder-sidebar {
    position: fixed;
    top: 0;
    right: -520px;
    width: 460px;
    max-width: 95vw;
    height: 100vh;
    background: rgba(12, 13, 18, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.builder-sidebar.open {
    right: 0;
}

.drawer-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}

.drawer-close-btn:hover { color: #ffffff; }

.drawer-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    overflow-x: auto;
}

.drawer-tab-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.drawer-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(168, 255, 53, 0.04);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #b0b0c2;
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    background: rgba(8, 9, 13, 0.95);
}

.hidden { display: none !important; }

/* ==========================================================================
   MOBILE PHONES & SMALL SCREENS NORMALIZATION (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    .site-header {
        padding: 0 12px !important;
        height: 56px !important;
    }

    .brand-group {
        gap: 6px !important;
    }

    .brand-logo {
        font-size: 15px !important;
        gap: 6px !important;
    }

    .brand-logo-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .btn-menu-back {
        padding: 6px 8px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }

    .btn-menu-back span {
        display: none !important;
    }

    .header-actions {
        gap: 6px !important;
    }

    .action-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        gap: 5px !important;
    }

    .profile-stage {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        padding: 68px 14px 44px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    /* Top Strip Widget on mobile: place nicely above the profile card */
    .top-right-widget {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto 16px auto !important;
        transform: none !important;
        align-items: stretch !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .bar-strip {
        width: 100% !important;
        height: 32px !important;
        padding: 0 12px !important;
    }

    .strip-link {
        font-size: 13px !important;
    }

    .profile-card {
        padding: 24px 18px !important;
        max-width: 440px !important;
        width: 100% !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }

    .avatar-wrap {
        width: 96px !important;
        height: 96px !important;
    }

    .name-text {
        font-size: 22px !important;
    }

    .audio-bar {
        padding: 8px 12px !important;
        gap: 10px !important;
    }

    .volume-slider-bar {
        width: 45px !important;
    }

    .audio-title {
        font-size: 12.5px !important;
    }

    .audio-artist {
        font-size: 11px !important;
    }

    .discord-card {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .auth-modal {
        width: calc(100vw - 32px) !important;
        max-width: 380px !important;
        padding: 20px 18px !important;
        margin: auto !important;
    }

    .builder-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 400px) {
    .site-header {
        padding: 0 8px !important;
    }

    .action-btn {
        padding: 5px 8px !important;
        font-size: 11.5px !important;
    }

    #openBuilderBtn {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
}
