* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 40px 20px 90px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #0a0a0a;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 0;
    pointer-events: none;
}

.background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

img, .loader-logo { filter: none !important; }

.loader-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.loader-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    animation: loaderPulse 0.6s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
    from { transform: scale(1); opacity: 0.8; }
    to   { transform: scale(1.12); opacity: 1; }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

.card-wrapper {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.card-wrapper::before {
    content: '';
    position: absolute;
    inset: -25px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 50%, transparent 70%);
    border-radius: 40px;
    filter: blur(25px);
    z-index: -1;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.75; }
}

.card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 24px;
    padding: 44px 36px 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
    opacity: 0;
    animation: cardFadeIn 0.9s ease 0.3s forwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: block;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.4);
    animation: profilePulse 3.5s ease-in-out infinite;
    filter: none !important;
}

@keyframes profilePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    50%       { box-shadow: 0 0 0 14px rgba(255,255,255,0); transform: scale(1.04); }
}

.profile-name {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.profile-bio {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.6;
}

.button-container { display: flex; flex-direction: column; gap: 13px; }

.social-button {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 15px 18px;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.45s ease;
}

.social-button:hover::before { left: 100%; }

.social-button:hover {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

.social-button:active { transform: scale(0.98); }

.button-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
    overflow: hidden;
}

.button-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; filter: none !important; }

.social-button:hover .button-icon { transform: scale(1.1); background: rgba(255,255,255,0.2); }

.button-content { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.button-text { font-size: 16px; font-weight: 600; letter-spacing: 0.3px; }
.button-note { font-size: 11px; color: rgba(255,255,255,0.6); }

.floating-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15,15,15,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 9px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    opacity: 0;
    animation: barSlideUp 0.6s ease 2.6s forwards;
}

@keyframes barSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 7px 13px;
    color: rgba(255,255,255,0.8);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s, transform 0.18s, color 0.25s;
    white-space: nowrap;
    text-decoration: none;
}

.bar-btn:hover { background: rgba(255,255,255,0.16); color: #fff; transform: translateY(-2px); }
.bar-btn:active { transform: scale(0.95); }
.bar-btn.audio-off { color: rgba(255,255,255,0.4); }
.bar-btn.audio-on  { color: #fff; }

.bar-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.11); }

.visits-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.65);
    padding: 0 4px;
}

.visits-count strong { color: #fff; font-weight: 700; }

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 72px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }

.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s, visibility 0.28s;
}

.share-overlay.open { opacity: 1; visibility: visible; }

.share-modal {
    background: rgba(16,16,16,0.97);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 22px;
    padding: 28px 22px 22px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.65);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.28s;
}

.share-overlay.open .share-modal { transform: translateY(0) scale(1); }

.share-modal h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.share-link-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 9px 12px;
    gap: 8px;
    margin-bottom: 14px;
}

.share-link-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

.copy-btn {
    background: rgba(255,255,255,0.11);
    border: none;
    border-radius: 8px;
    padding: 5px 11px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.copy-btn:hover { background: rgba(255,255,255,0.2); }
.copy-btn.copied { background: rgba(80,200,120,0.28); color: #7eed9f; }

.share-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 13px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 11px 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.platform-btn:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); color: #fff; }

.share-close {
    width: 100%;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 9px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
}

.share-close:hover { color: #fff; border-color: rgba(255,255,255,0.25); }

.toast {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(25,25,25,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 9px 18px;
    color: #fff;
    font-size: 13px;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.28s, transform 0.28s;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }