@font-face {
    font-family: 'Dalgona Milk';
    src: url('fonts/TkachenkoSketch4F-Bold.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Dalgona Milk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    overflow-y: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.top-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 12px 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.top-bar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #000000 !important;
    text-decoration: none;
}

.top-bar-logo img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: #000000 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.top-bar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #000000 !important;
}

.top-bar-btn.primary {
    background: #36038f;
    border-color: #36038f;
    box-shadow: 0 0 15px rgba(143, 3, 3, 0.6), 0 0 30px rgba(143, 3, 3, 0.3);
}

.top-bar-btn.primary:hover {
    background: #36038f;
    border-color: #36038f;
    box-shadow: 0 0 20px rgba(143, 3, 3, 0.8), 0 0 40px rgba(255, 78, 78, 0.925);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 40px;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.left-text {
    flex: 1;
    max-width: 400px;
    padding-right: 40px;
}

.profile-container {
    background: rgba(54, 3, 143, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 48px 36px 48px;
    border: 2px solid rgba(54, 3, 143, 0.5);
    animation: fadeInUp 1s ease-out;
    width: 100%;
    max-width: 600px;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(54, 3, 143, 0.4), 0 0 60px rgba(54, 3, 143, 0.2);
    min-height: 570px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 15px;
    overflow: visible;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    border: 2px solid rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    position: relative;
}

.avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 10;
}

.avatar-decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-info-top {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
}

.profile-info h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 41px;
    margin-bottom: 0;
    filter: drop-shadow(#8f0303 0 0 4px);
    position: relative;
    cursor: pointer;
    color: #ffffff;
}

.profile-info h1::after {
    content: 'Milo';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/sparkle_black.gif);
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    pointer-events: none;
    z-index: 1;
}

.profile-info h1::before {
    content: 'UID 00';
    position: absolute;
    bottom: 130%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 2000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: max-content;
    line-height: 1.2;
}

.profile-info h1:hover::before {
    opacity: 1;
    visibility: visible;
}

.badge {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1000001;
    pointer-events: auto;
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.badges-container {
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: visible;
    position: relative;
    z-index: 10;
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 15px;
}

.badges-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(54, 3, 143, 0.1), rgba(54, 3, 143, 0.05));
    border-radius: inherit;
    z-index: -1;
}

.typewriter {
    font-size: 17px;
    font-weight: 570;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 6px;
}

.discord-widget {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 5px 8px;
    margin-bottom: 0 !important;
    text-align: left;
    min-height: 52px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    width: calc(100% + 104px);
    margin-left: -104px;
    padding-left: 112px;
}

.discord-widget .discord-badge-widget {
    position: absolute;
    top: 4px;
    right: 8px;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 6px;
    width: auto;
    max-width: 70%;
    overflow: visible;
    z-index: 99999;
    pointer-events: auto;
    box-sizing: border-box;
}

.discord-widget .discord-badge-widget .badge {
    width: 16px;
    height: 16px;
}

.discord-widget .discord-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    transform: translateX(-100px);
}

.discord-widget .discord-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    position: relative;
}

.discord-widget .discord-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.discord-widget .discord-status-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    z-index: 20;
}

.discord-widget .discord-avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 10;
}

.discord-widget .discord-avatar-decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.discord-widget .discord-presence {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    transform: translateX(-108px);
}

.discord-widget .discord-info {
    min-width: 0;
    overflow: hidden;
    margin-left: 4px;
}

.discord-widget .discord-info .username {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.discord-widget .discord-info .activity {
    font-size: 12px;
    color: rgba(208,207,230,0.9);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-widget .nameplate-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    overflow: hidden;
    max-width: 100%;
    line-height: 1;
}

.discord-widget .nameplate-wrap .username {
    position: relative;
    z-index: 1;
}

.discord-widget .presence-nameplate {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-widget .presence-nameplate video,
.discord-widget .presence-nameplate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2) blur(1px);
}

.discord-widget.has-nameplate .presence-nameplate {
    opacity: 0.8 !important;
}

.widget-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.socials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 6px !important;
}

.social-link-widget {
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 46px;
    position: relative;
    overflow: hidden;
}

.social-link-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(54, 3, 143, 0.1), rgba(54, 3, 143, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 12px;
}

.social-link-widget:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(54, 3, 143, 0.3);
    box-shadow:
        0 8px 25px rgba(54, 3, 143, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(54, 3, 143, 0.1);
}

.social-link-widget:hover::before {
    opacity: 1;
}

.social-link-widget:active {
    transform: scale(0.98) translateY(0px);
    transition: all 0.1s ease;
}

.social-link-widget img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link-widget:hover img {
    transform: scale(1.1) rotate(2deg);
}

.social-link-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.social-link-widget:hover .social-link-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(54, 3, 143, 0.5);
}

.social-link-url {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.social-link-widget:hover .social-link-url {
    color: rgba(255, 255, 255, 0.8);
}

.bottom-info {
    position: absolute;
    bottom: 2px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.bottom-info .views,
.bottom-info .location {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: pointer;
}

.bottom-info .location::before { content: 'Location'; }
.bottom-info .views::before { content: 'Profile Views'; }

.bottom-info .location::before,
.bottom-info .views::before {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.bottom-info .location:hover::before,
.bottom-info .views:hover::before {
    opacity: 1;
    visibility: visible;
}

.server-widget {
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    overflow: hidden;
}

.server-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 14px 14px 0 0;
    z-index: 1;
}

.server-content {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

#guns-widget .server-info h3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

#guns-widget .server-info h3 .server-tag {
    margin-left: 0;
}

#guns-widget .server-info h3 .server-name {
    display: block;
    line-height: 1.2;
}

.server-tag {
    background: rgba(116, 127, 141, 0.3);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
}

.server-tag img {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.server-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.server-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.online-dot {
    background: #43b581;
    box-shadow: 0 0 8px rgba(67, 181, 129, 0.5);
}

.member-dot {
    background: #747f8d;
}

.join-btn {
    background: #5865F2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.join-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

.music-player {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 100000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-column-gap: 12px;
    grid-row-gap: 6px;
    align-items: center;
    width: min(95vw, 560px);
    padding: 10px 12px 12px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 12px rgba(54, 3, 143, 0.18), 0 0 24px rgba(54, 3, 143, 0.09);
}

.music-cover {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.music-title {
    font-size: 15px;
    font-weight: 450;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.12);
    color: #ffffff;
    cursor: pointer;
    transition: all .15s ease;
}

.music-btn.skip {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.08);
}

.music-btn.skip:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.15);
}

.music-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    min-width: 42px;
    text-align: right;
    font-weight: 400;
}

.music-progress {
    grid-column: 2 / span 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-left: 4px;
}

.music-progress input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    outline: none;
}

.music-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

.music-progress input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

.volume-widget {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(54, 3, 143, 0.35), 0 0 60px rgba(54, 3, 143, 0.2);
    overflow: visible;
    line-height: 0;
    font-size: 0;
    contain: layout;
    isolation: isolate;
}

.volume-toggle {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    opacity: .95;
    font-size: 22px;
    line-height: 1;
}

.volume-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
    overflow: visible;
}

.volume-slider {
    width: 0;
    opacity: 0;
    transform: translateX(-4px);
    pointer-events: none;
    overflow: hidden;
    transition: width .18s ease, opacity .18s ease, transform .18s ease;
}

.volume-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 22px;
    background: transparent;
    border-radius: 999px;
    outline: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.volume-slider input[type="range"]::-moz-range-track {
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.volume-slider input[type="range"]::-ms-fill-lower,
.volume-slider input[type="range"]::-ms-fill-upper {
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    margin-top: -4px;
    position: relative;
    z-index: 2;
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.volume-slider input[type="range"]::-ms-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.volume-slider input[type="range"]:focus {
    outline: none;
}
@media (hover: hover) {
    .volume-widget:hover {
        padding: 8px 10px 8px 8px;
        gap: 8px;
    }
    .volume-widget:hover .volume-slider {
        width: 140px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (hover: none) {
    .volume-widget.open {
        padding: 8px 10px 8px 8px;
        gap: 8px;
    }
    .volume-widget.open .volume-slider {
        width: 140px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.discord-widget-link {
    min-height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
}

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

.discord-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.discord-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.discord-username {
    font-size: 14px;
    font-weight: 600;
}

.discord-activity {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.server-tag-container {
    margin-left: auto;
    flex-shrink: 0;
}

.server-tag:hover {
    background: rgba(116, 127, 141, 0.5);
}

.discord-status-dot.online { background: #43b581; }
.discord-status-dot.idle { background: #faa61a; }
.discord-status-dot.dnd { background: #f04747; }
.discord-status-dot.offline { background: #747f8d; }

.badge::before {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000000 !important;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: max-content;
    content: attr(data-badge);
}

.badge:hover::before,
.badge:focus::before,
.badge:active::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.click-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.click-text {
    font-family: 'Dalgona Milk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(54, 3, 143, 0.6);
    user-select: none;
    animation: pulse 2s ease-in-out infinite;
}

.click-subtitle {
    font-family: 'Dalgona Milk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    user-select: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(54, 3, 143, 0.6);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(54, 3, 143, 0.8);
    }
}

.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 0.3s, visibility 0.5s ease 0.3s;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.discord-link:hover {
    color: #5865F2;
}

.discord-link::before {
    content: 'Discord';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.discord-link:hover::before {
    opacity: 1;
    visibility: visible;
}

.gmail-link {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.gmail-link:hover {
    color: #EA4335;
}

.gmail-link::before {
    content: 'Email';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gmail-link:hover::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .container { padding: 20px 16px; flex-direction: column; gap: 50px; }
    .bottom-info {
        bottom: 1px;
        font-size: 11px;
    }
    .profile-container { min-height: auto; max-width: 100%; order: 1; padding: 20px 16px 20px; }
    .socials-grid { margin-top: 50px; order: 2; }
    .left-text { max-width: 100%; padding-right: 0; text-align: center; order: 2; }
    .discord-widget .discord-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
    }
    .discord-widget .discord-avatar img {
        border-radius: 50%;
    }
    .discord-widget .discord-status-dot {
        width: 14px;
        height: 14px;
        bottom: -2px;
        right: -2px;
        border: 2px solid rgba(10, 10, 10, 0.9);
    }
    .discord-widget .discord-avatar-decoration {
        width: 115%;
        height: 115%;
    }
    .discord-widget .discord-presence {
        transform: translateX(-104px);
        gap: 6px;
    }
    .discord-widget {
        margin-bottom: 0 !important;
        min-height: 48px;
        width: calc(100% + 96px);
        margin-left: -96px;
        padding-left: 104px;
    }
    .discord-widget .discord-info {
        margin-left: 2px;
    }


    .discord-widget .nameplate-wrap {
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 12px;
        max-width: calc(100% - 120px);
    }

    .discord-widget .presence-nameplate {
        border-radius: 12px;
    }

    .discord-widget .discord-info .username {
        font-size: 13px;
        max-width: 140px;
    }

    .discord-widget .discord-info .activity {
        font-size: 11px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .music-player { width: calc(100vw - 24px); grid-column-gap: 10px; padding: 10px; }


    .discord-widget .nameplate-wrap {
        padding: 2px 6px;
        font-size: 11px;
        max-width: calc(100% - 100px);
    }

    .discord-widget .discord-info .username {
        font-size: 12px;
        max-width: 120px;
    }

    .discord-widget .discord-info .activity {
        font-size: 10px;
        max-width: 120px;
    }

    .discord-widget .discord-presence {
        transform: translateX(-100px);
        gap: 4px;
    }

    .discord-widget {
        width: calc(100% + 92px);
        margin-left: -92px;
        padding-left: 100px;
    }
}

@media (max-width: 768px) {
    .top-bar { top: 10px; padding: 10px 16px; min-width: auto; max-width: calc(100vw - 32px); width: calc(100vw - 32px); border-radius: 16px; left: 50%; transform: translateX(-50%); }
    .top-bar-logo { font-size: 16px; }
    .top-bar-logo img { width: 20px; height: 20px; }
    .container { padding-top: 100px; }
    body { overflow-y: auto; }
    .container { max-height: none; }
}

@media (max-width: 480px) {
    .music-player { width: calc(100vw - 24px); grid-column-gap: 10px; padding: 10px; }
}

@media (min-width: 1024px) {
    .container { padding-bottom: 120px; }
    .profile-container { min-height: 600px; max-height: calc(100vh - 220px); }
}

@media only screen and (max-width: 640px) and (-webkit-min-device-pixel-ratio: 1) {
    .discord-widget {
        position: fixed !important;
        left: 8px !important;
        right: 8px !important;
        top: 80px !important;
        margin: 0 auto !important;
        z-index: 9999 !important;
        width: auto !important;
        max-width: 96vw !important;
        min-height: 56px !important;
        padding: 8px 12px 8px 56px !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
    }
    .discord-widget .discord-avatar {
        position: absolute !important;
        left: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
        z-index: 2 !important;
    }
    .discord-widget .discord-avatar img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
    }
    .discord-widget .discord-info {
        margin-left: 0 !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
        overflow: visible !important;
        flex: 1 1 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .discord-widget .discord-info .username-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .discord-widget .discord-info .username {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #fff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
    }
    .discord-widget .server-tag {
        margin-left: 8px !important;
        font-size: 11px !important;
        padding: 2px 6px !important;
        border-radius: 8px !important;
        background: rgba(116,127,141,0.3) !important;
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        height: 18px !important;
    }
    .discord-widget .discord-info .activity,
    .discord-widget .discord-info .typewriter {
        font-size: 11px !important;
        color: rgba(208,207,230,0.9) !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
    }
    .discord-widget .discord-presence {
        margin-left: auto !important;
        margin-right: 0 !important;
        gap: 4px !important;
        align-items: center !important;
        display: flex !important;
        position: static !important;
        transform: none !important;
        min-width: 0 !important;
        z-index: 1 !important;
    }
    /* Hide overlapping elements if needed */
    .discord-widget .discord-avatar-decoration {
        display: none !important;
    }
    /* Prevent overlap with typewriter/description */
    .profile-container .typewriter {
        margin-top: 60px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .discord-widget .presence-nameplate video { display: none; }
}

/* Safari-specific mobile fixes for .discord-widget */
@media only screen and (max-width: 640px) and (-webkit-min-device-pixel-ratio: 1) {
    .discord-widget {
        position: fixed !important;
        left: 0;
        right: 0;
        top: 120px; /* Adjust as needed */
        margin: 0 auto !important;
        z-index: 9999 !important;
        width: auto !important;
        max-width: 95vw !important;
        padding-left: 16px !important;
        padding-right: 48px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    .discord-widget .discord-info {
        min-width: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
        overflow: visible !important;
        margin-left: 4px !important;
        flex: 1 1 0 !important;
    }
    .discord-widget .discord-info .username,
    .discord-widget .discord-info .activity {
        max-width: 100vw !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        margin-left: 0 !important;
        display: block !important;
    }
    .discord-widget .discord-avatar,
    .discord-widget .discord-presence,
    .discord-widget .discord-info,
    .discord-widget .discord-badge-widget,
    .discord-widget .nameplate-wrap {
        margin-left: 13px !important;
    }
    .discord-widget .discord-badge-widget {
        right: 18px !important;
        padding-left: 0px !important;
    }
    .discord-widget .server-tag-container,
    .discord-widget .server-tag {
        position: absolute !important;
        right: 8px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
        overflow: visible !important;
        background: rgba(116,127,141,0.3) !important;
        display: inline-flex !important;
    }
    .container,
    .profile-container,
    .discord-widget {
        overflow: visible !important;
    }
}
