:root {
    --primary-gold: #d4d4d4;
    --dark-bg: #050505;
    --card-bg: #0e0e0e;
    --card-border: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --verified-blue: #3b82f6;
    --3d-shadow: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-font-smoothing: antialiased;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

input,
textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 20px;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* =========================================
   SPLASH SCREEN
   ========================================= */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.splash-content {
    text-align: center;
}

.splash-logo-ring {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 212, 212, 0.3);
    animation: pulseGlow 2s infinite;
}

.splash-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.splash-line {
    width: 0%;
    height: 2px;
    background: var(--primary-gold);
    margin: 0 auto 10px;
    animation: expandLine 1.5s forwards ease-in-out;
}

.splash-subtitle {
    font-size: 10px;
    color: var(--primary-gold);
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeInText 1s 0.5s forwards;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 212, 212, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 212, 212, 0.6);
        transform: scale(1.05);
    }
}

@keyframes expandLine {
    0% {
        width: 0;
    }
    100% {
        width: 100px;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes goldFlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* =========================================
   MAIN LAYOUT & STATUS BAR
   ========================================= */
.main-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    contain: content;
}

.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clock-box,
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-gold);
}

.top-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.text-red {
    color: #ef4444 !important;
}

/* =========================================
   RUNNING TEXT
   ========================================= */
.running-text-container {
    display: flex;
    align-items: center;
    background: #0f0f0f;
    border-bottom: 1px solid #222;
    margin-top: 60px;
    font-size: 11px;
    transform: translateZ(0);
}

.running-label {
    background: var(--primary-gold);
    color: #000;
    padding: 6px 10px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.running-content {
    flex: 1;
    color: var(--text-secondary);
    padding: 6px;
    overflow: hidden;
    white-space: nowrap;
    font-family: monospace;
}

/* =========================================
   PROFILE SECTION
   ========================================= */
.profile-card-unique::after,
.gallery-box::after,
.music-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px !important;
    opacity: 0.8;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 20%, #fff 50%, var(--primary-gold) 80%, transparent 100%);
    background-size: 200% 100%;
    animation: goldFlow 4s infinite linear;
    will-change: background-position;
}

.profile-section {
    padding: 30px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card-unique {
    width: 100%;
    padding: 20px 10px;
    background: #0e0e0e;
    border: 1px solid rgba(212, 212, 212, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(0);
}

.profile-ring {
    width: 115px;
    height: 115px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 212, 212, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#profileImg,
.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.web-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: -0.5px;
}

.verified-icon {
    font-size: 20px;
    color: var(--verified-blue);
    display: flex;
    align-items: center;
}

.web-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    max-width: 100%;
}

.tags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: 0.2s;
}

.profile-tag i {
    color: var(--primary-gold);
}

.profile-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-gold);
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.soc-icon {
    font-size: 18px;
    color: var(--text-secondary);
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.soc-icon:hover {
    color: var(--primary-gold);
    background: rgba(212, 212, 212, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-gold);
}

/* =========================================
   MUSIC PLAYER
   ========================================= */
.music-wrapper {
    margin: 20px 20px;
    position: relative;
    z-index: 20;
    transform: translateZ(0);
}

.music-card-outer {
    background: #121212;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom: 4px solid #000;
}

.music-card-inner {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.music-top-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 800;
}

.music-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 8px;
    height: 90px;
}

.visual-box {
    background: #000;
    border-radius: 10px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.4);
    z-index: 1;
    opacity: 0.8;
}

.album-cover {
    position: relative;
    z-index: 2;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
    transition: transform 0.5s;
}

.spinning {
    animation: spin 5s linear infinite;
}

#visualizerCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
}

.playlist-box {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    border: 1px solid #1f1f1f;
    overflow-y: auto;
    padding: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #1f1f1f;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.list-item.active {
    background: rgba(212, 212, 212, 0.1);
    border-left: 2px solid var(--primary-gold);
}

.list-item.active .list-title {
    color: var(--primary-gold);
}

.list-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100px;
}

.list-artist {
    font-size: 8px;
    color: var(--text-secondary);
}

.control-deck {
    margin-top: 8px;
    border-top: 1px solid #222;
    padding-top: 6px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: monospace;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.progress-bg {
    width: 90%;
    height: 3px;
    background: #222;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gold);
    width: 0%;
    border-radius: 4px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.buttons-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    margin-top: 10px;
}

.btn-small {
    font-size: 14px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-small:hover {
    color: var(--text-primary);
}

.btn-small.active {
    color: var(--primary-gold);
}

.btn-main {
    font-size: 20px;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    color: var(--primary-gold);
}

.btn-play-big {
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(212, 212, 212, 0.3);
    border-bottom: 2px solid #888888;
}

.btn-play-big:active {
    border-bottom-width: 0;
    transform: translateY(2px);
}

.vol-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

.vol-icon {
    font-size: 9px;
    color: var(--text-secondary);
}

.vol-bg {
    width: 80px;
    height: 3px;
    background: #222;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.vol-fill {
    width: 100%;
    height: 100%;
    background: #666;
    border-radius: 4px;
}

/* =========================================
   MENU LIST & LINKS
   ========================================= */
.menu-list {
    padding: 0 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 20;
    transform: translateZ(0);
}

.menu-category {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-left: 10px;
    border-left: 2px solid rgba(212, 212, 212, 0.5);
    opacity: 1;
}

.menu-card {
    display: flex;
    align-items: center;
    background: #121212;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    border-bottom: 4px solid var(--3d-shadow);
    transition: 0.1s;
    transform: translateZ(0);
}

.menu-card:active {
    border-bottom-width: 0;
    transform: translateY(4px);
}

.menu-icon {
    width: 45px;
    height: 45px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    margin-right: 15px;
    font-size: 20px;
}

.menu-text h4 {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.menu-text p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.menu-arrow {
    margin-left: auto;
    font-size: 14px;
    color: var(--primary-gold);
    opacity: 1;
}

/* =========================================
   GALLERY / SLIDER
   ========================================= */
.gallery-section {
    margin-top: 40px;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 20;
    transform: translateZ(0);
}

.gallery-box {
    width: 100%;
    padding: 20px;
    background: #0e0e0e;
    border: 1px solid rgba(212, 212, 212, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.gallery-label {
    font-size: 14px;
    text-align: left;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-gold);
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-bg));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.slider-outer-clip {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-outer-clip::-webkit-scrollbar {
    display: none;
}

.slide-track {
    display: inline-flex;
    gap: 12px;
}

.slide-img {
    width: 240px;
    height: 150px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    flex-shrink: 0;
}

/* =========================================
   CHAT AI SYSTEM
   ========================================= */
.chat-container {
    margin: 40px 20px;
    background: #121212;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 20;
    transform: translateZ(0);
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #222;
    background: #141414;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    width: 30px;
    height: 30px;
    padding: 2px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
}

.bot-info {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.trash-btn {
    color: #ef4444;
}

.chat-box {
    height: 280px;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-msg {
    background: #1a1a1a;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 85%;
    align-self: start;
}

.user-msg {
    background: var(--primary-gold);
    color: #000;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    max-width: 85%;
    align-self: end;
    font-weight: 600;
}

.chat-input-area {
    padding: 12px;
    background: #0f0f0f;
    display: flex;
    gap: 10px;
    border-top: 1px solid #222;
}

.chat-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
}

.chat-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    border-radius: 12px;
    border: none;
    border-bottom: 3px solid #888888;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-btn:active {
    border-bottom-width: 0;
    transform: translateY(3px);
}

.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* =========================================
   FOOTER
   ========================================= */
.simple-footer {
    margin-top: 50px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    background: #050505;
}

.footer-line {
    width: 50px;
    height: 3px;
    background: var(--primary-gold);
    margin: 0 auto 15px auto;
    border-radius: 50px;
    box-shadow: 0 0 10px var(--primary-gold);
}

.simple-footer p {
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 5px;
}

.footer-small {
    font-size: 9px !important;
    opacity: 0.6;
}
