:root {
    --accent: #38bdf8;
    --card-bg: rgba(18, 18, 23, 0.65);
    --border: rgba(56, 189, 248, 0.2);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.wrapper {
    width: 100%;
    max-width: 1050px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-wrapper-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 220px;
    margin-bottom: 15px;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.profile-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent);
    opacity: 0.15;
    filter: blur(50px);
    z-index: -1;
    border-radius: 50%;
}

.floating-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: var(--shadow);
    z-index: 10;
    text-decoration: none;
    transition: 0.3s;
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.floating-icon:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: scale(1.15);
}

.icon-1 { top: 10%; left: 5px; animation-delay: 0s; }
.icon-2 { bottom: 15%; left: 0; animation-delay: 1s; }
.icon-3 { top: 40%; right: 0; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-top: 4px;
}

.profile-desc {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.right-column-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.chat-freeform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    width: 100%;
}

.chat-left-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.chat-text {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 20%, var(--accent) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.chat-badge {
    font-size: 0.65rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent);
    padding: 2px 8px;
    letter-spacing: 1px;
    font-weight: 700;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: stretch;
}

.sections-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.section-box {
    background: rgba(25, 25, 32, 0.5);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.section-box:hover {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(35, 35, 45, 0.85);
    transform: translateY(-2px);
}

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

.section-title-box {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #e4e4e7;
}

.section-icon {
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.3s ease;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.3s ease;
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.4;
}

.section-box.active {
    border-color: var(--accent);
    background: rgba(35, 35, 45, 0.95);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.15);
}

.section-box.active .section-content {
    max-height: 100px;
    margin-top: 10px;
}

.section-box.active .section-icon {
    transform: rotate(90deg);
    color: var(--accent);
}

.music-square-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.music-square-card:hover {
    border-color: var(--accent);
}

.music-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.music-square-card:hover .music-cover-img {
    transform: scale(1.06);
    opacity: 0.8;
}

.music-overlay {
    position: relative;
    z-index: 2;
    padding: 14px;
    background: linear-gradient(to top, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0.5) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.play-indicator {
    width: 32px;
    height: 32px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.75rem;
    margin-bottom: 2px;
    transition: 0.3s;
}

.music-square-card.playing .play-indicator {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent);
    animation: pulsePlay 1.5s infinite;
}

@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.card-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
}

.card-action {
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.volume-container {
    position: relative;
    z-index: 2;
    padding: 0 14px 14px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    background: rgba(5,5,8,0.95);
}

.volume-container input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
    height: 3px;
    cursor: pointer;
    background: var(--border);
}

.sociabuzz-widget-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

.sociabuzz-widget-container iframe {
    width: 100%;
    height: 48px;
    border: none;
    display: block;
    background: transparent;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .content-row {
        grid-template-columns: 1fr;
    }
    .music-square-card {
        aspect-ratio: auto;
        height: 180px;
    }
}

@media (max-width: 550px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
    .chat-freeform {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
