/* --- CSS Variables & Reset --- */
:root {
    /* This defines your new logo pink color across the whole site */
    --primary-pink: #f840c8; 
    /* A slightly lighter version for gradients */
    --primary-pink-light: #ff7be3;
}

/* Added Smooth Scroll for the anchor links */
html {
    scroll-behavior: smooth;
}

/* --- Load Custom Font --- */
@font-face {
    font-family: 'BrandFont'; 
    /* CHANGE THIS LINE to match your file exactly */
    src: url('fonts/think-big.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505; /* Very dark background */
    color: #ffffff;
    font-family: 'Inter', sans-serif; /* Clean modern font */
}

a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* --- Navigation (Thinner & Glassy) --- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 40px; 
    gap: 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    
    /* Glass Effect */
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Border & Shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar i {
    margin-right: 8px;
    font-size: 0.9em; 
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-contact {
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-hub {
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-pink-light));
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(248, 64, 200, 0.5);
}

/* --- Hero Section --- */
.hero {
    min-height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 40px; 
    padding-bottom: 20px;
}

.brand-subtitle {
    font-family: 'BrandFont', sans-serif; 
    font-size: 6rem; 
    font-weight: normal; 
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 40px var(--primary-pink),
        0 0 80px var(--primary-pink),
        0 0 120px var(--primary-pink);
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-pink);
    display: block;
}

.description {
    color: #888;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 10px;
}

/* --- General Section Styles --- */
section {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #ccc;
    margin-bottom: 50px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 40px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
    box-shadow: 0 5px 15px rgba(248, 64, 200, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Products (Carousel Cards) --- */
.product-card {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 15px;
    flex: 0 0 auto;
    width: 300px; 
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.product-card:hover {
    border-color: #333;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 255, 0, 0.2);
    color: #0f0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #0f0;
    font-weight: 600;
}

.badge.new {
    background: rgba(248, 64, 200, 0.2);
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.price {
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.btn-product {
    display: inline-block;
    background: var(--primary-pink);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-product:hover {
    background: var(--primary-pink-light);
}

/* --- Carousel Container & Logic --- */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-window {
    width: 100%;
    overflow: hidden; 
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    padding-left: 10px;
}

.carousel-track::-webkit-scrollbar { 
    display: none; 
}

/* Navigation Arrow Buttons */
.nav-btn {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px var(--primary-pink);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
}

/* --- Community Section --- */
.community-section {
    background: radial-gradient(circle at center, #2a0a20 0%, #000 100%);
    padding: 100px 20px;
}

.community-content {
    max-width: 600px;
    margin: 0 auto;
}

.community-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.community-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.community-buttons a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.community-buttons a i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--primary-pink);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(248, 64, 200, 0.4);
}

.btn-secondary {
    border: 1px solid var(--primary-pink);
    color: var(--primary-pink);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(248, 64, 200, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(248, 64, 200, 0.2);
    border-color: var(--primary-pink-light);
    color: #fff;
}

/* --- Footer --- */
.site-footer {
    background: #080808;
    border-top: 1px solid #222;
    padding: 60px 40px 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h3 i {
    color: var(--primary-pink);
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #888;
}

.footer-col ul li a:hover {
    color: var(--primary-pink);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.input-group input {
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    color: white;
    border-radius: 5px;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-pink);
}

.input-group button {
    background: var(--primary-pink);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
}

/* --- DASHBOARD LAYOUT (Updated) --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed navbar */
    background: #050505;
}

/* --- SIDEBAR --- */
.dash-sidebar {
    width: 260px;
    background: #0a0a0a;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative; /* For footer positioning */
}

.sidebar-header {
    padding: 30px 25px;
}
.sidebar-header h3 {
    color: var(--primary-pink);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.sidebar-header p {
    color: #666;
    font-size: 0.75rem;
    margin-top: 5px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    gap: 5px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #888;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.side-link i { width: 20px; text-align: center; }

.side-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    padding-left: 20px; /* Slight slide effect */
}

/* Active State - Like Screenshot */
.side-link.active {
    background: var(--primary-pink);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(248, 64, 200, 0.3);
}

.nav-divider {
    padding: 20px 15px 10px;
    border-top: 1px solid #1a1a1a;
    margin-top: 10px;
    color: #444;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.product-link { font-size: 0.85rem; }

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
}
.status-dot.online { background: #0f0; box-shadow: 0 0 5px #0f0; }
.status-dot.offline { background: #444; }

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto; /* Pushes to bottom */
    padding: 20px;
    border-top: 1px solid #222;
    background: #080808;
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.avatar-circle.small {
    width: 35px; height: 35px;
    background: #222; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #666; font-size: 0.9rem;
}
.user-details { display: flex; flex-direction: column; }
.username { color: white; font-weight: bold; font-size: 0.85rem; }
.connection-status { color: #0f0; font-size: 0.7rem; }

.back-link {
    display: block;
    color: var(--primary-pink);
    font-size: 0.8rem;
    text-decoration: none;
}

/* --- MAIN CONTENT --- */
.dash-content {
    flex-grow: 1;
    /* Increased from 40px to 60px top/bottom and 80px left/right */
    padding: 60px 80px; 
    max-width: 1600px; /* Allow it to get slightly wider */
    margin: 0 auto; /* Keeps it centered on ultra-wide monitors */
}

.dash-page-header {
    margin-bottom: 30px;
    background: linear-gradient(90deg, #1a0510 0%, transparent 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #222;
}
.dash-page-header h1 { font-size: 1.8rem; margin-bottom: 5px; }
.dash-page-header p { color: #888; font-size: 0.9rem; }

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-5px); }

/* Glow Accents */
.pink-glow { border-top: 2px solid var(--primary-pink); }
.green-glow { border-top: 2px solid #00ff88; }
.blue-glow { border-top: 2px solid #00ccff; }
.gold-glow { border-top: 2px solid #ffaa00; }

.card-icon-bg {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
}

.pink-glow .card-icon-bg { color: var(--primary-pink); background: rgba(248,64,200,0.1); }
.green-glow .card-icon-bg { color: #00ff88; background: rgba(0,255,136,0.1); }
.blue-glow .card-icon-bg { color: #00ccff; background: rgba(0,204,255,0.1); }
.gold-glow .card-icon-bg { color: #ffaa00; background: rgba(255,170,0,0.1); }

.card-data h2 { font-size: 2.5rem; line-height: 1; margin-bottom: 5px; }
.card-data h4 { color: #fff; font-size: 1.1rem; }
.card-data p { color: #666; font-size: 0.8rem; margin-bottom: 20px; }

.card-action {
    padding-top: 15px;
    border-top: 1px solid #222;
}
.card-action a {
    font-size: 0.8rem; color: #888; display: flex; align-items: center; gap: 8px;
}
.card-action a:hover { color: white; }

/* --- ACTIVITY SECTION --- */
.activity-section {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 25px;
}

.activity-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex; align-items: center; gap: 10px;
}

.activity-list { display: flex; flex-direction: column; gap: 0; }

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #1a1a1a;
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.activity-icon.update { background: rgba(0,255,136,0.1); color: #00ff88; }
.activity-icon.purchase { background: rgba(0,204,255,0.1); color: #00ccff; }
.activity-icon.alert { background: rgba(255,170,0,0.1); color: #ffaa00; }

.activity-info h4 { font-size: 0.95rem; margin-bottom: 3px; }
.activity-info p { font-size: 0.8rem; color: #666; }
.activity-time {
    margin-left: auto;
    font-size: 0.75rem; color: #555;
    white-space: nowrap;
}

/* --- MY PRODUCTS PAGE --- */

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 20px;
}

.library-header h1 { font-size: 2rem; margin-bottom: 5px; }
.library-header p { color: #888; font-size: 0.9rem; }

/* Search Bar */
.search-container {
    position: relative;
    width: 350px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-container input {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 12px 12px 12px 45px; /* Left padding for icon */
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(248, 64, 200, 0.2);
    outline: none;
}

/* Grid Layout */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Library Card */
.library-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.library-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.lib-card-img {
    height: 160px;
    width: 100%;
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lib-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    font-size: 3rem;
    color: #333;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.status-badge.online {
    background: rgba(0, 255, 0, 0.2);
    color: #0f0;
    border: 1px solid #0f0;
}

.status-badge.offline {
    background: rgba(100, 100, 100, 0.4);
    color: #ccc;
    border: 1px solid #666;
}

/* Card Info */
.lib-card-info {
    padding: 15px;
    text-align: center;
}

.lib-card-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uuid-snip {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 15px;
    font-family: monospace;
}

/* Configure Button */
.btn-configure {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
    border: 1px solid #333;
}

.btn-configure:hover {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
}

/* --- ACHIEVEMENTS PAGE --- */

/* Progress Bar Card */
.achievement-progress-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-info h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.progress-count { font-family: monospace; color: var(--primary-pink); font-weight: bold; }

.progress-track {
    width: 100%;
    height: 10px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink), #ff7be3);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-pink);
}

.progress-sub { font-size: 0.8rem; color: #666; font-style: italic; }

/* Category Headers */
.achieve-category { margin-bottom: 40px; }

.category-title {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title .count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #555;
}

/* Achievements Grid */
.achieve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

/* Individual Card */
.achieve-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

/* Locked State (Default) */
.achieve-card.locked {
    opacity: 0.6;
}

.achieve-card.locked .achieve-icon { color: #333; }
.achieve-card.locked h4 { color: #555; }
.lock-icon {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 0.7rem;
    color: #444;
}

/* Unlocked State */
.achieve-card.unlocked {
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(248, 64, 200, 0.1);
    background: linear-gradient(135deg, #0f0f0f, #150510);
}

.achieve-card.unlocked .achieve-icon {
    color: var(--primary-pink);
    text-shadow: 0 0 10px var(--primary-pink);
}

.achieve-card.unlocked h4 { color: #fff; }

/* Icon & Text Styling */
.achieve-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    height: 40px;
    display: flex; align-items: center; justify-content: center;
}

.achieve-card h4 {
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.rarity {
    display: block;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Rarity Colors */
.rarity.common { color: #666; }
.rarity.rare { color: #00ccff; text-shadow: 0 0 5px rgba(0, 204, 255, 0.3); }
.rarity.epic { color: #b026ff; text-shadow: 0 0 5px rgba(176, 38, 255, 0.3); }
.rarity.legendary { color: #ffaa00; text-shadow: 0 0 5px rgba(255, 170, 0, 0.3); }

/* Hover Effect */
.achieve-card:hover {
    transform: translateY(-3px);
    opacity: 1; /* Brighten up locked cards on hover so they can see what it is */
    border-color: #333;
}

/* --- SOUNDS PAGE (Updated) --- */

/* Section Layout */
.sound-section {
    margin-bottom: 50px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    background: #0f0f0f;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #333;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover { color: white; }

.filter-btn.active {
    background: var(--primary-pink);
    color: white;
    font-weight: bold;
}

/* Sound Grid */
.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

/* Album Card Style */
.sound-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.sound-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Image Area */
.sound-img-container {
    width: 100%;
    aspect-ratio: 1/1; /* Makes it a perfect square */
    position: relative;
    background: #1a1a1a;
}

.sound-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays (Owned / Price) */
.badge-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.badge-overlay.owned {
    background: rgba(0, 0, 0, 0.6);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.badge-overlay.price {
    background: rgba(0, 0, 0, 0.6);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

/* Card Text */
.sound-card-body {
    padding: 15px;
}

.sound-card-body h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sound-cat {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Footer */
.sound-card-footer {
    padding: 0 15px 15px 15px;
    margin-top: auto;
    display: flex;
    gap: 10px;
}

/* Buttons from before */
.btn-icon {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #151515;
    color: #888;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.btn-icon:hover { color: var(--primary-pink); border-color: var(--primary-pink); }

.btn-full {
    flex-grow: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}
.btn-full:hover { background: #222; color: white; }

.active-btn {
    background: rgba(248, 64, 200, 0.1);
    color: var(--primary-pink);
    border-color: var(--primary-pink);
    cursor: default;
}

.buy {
    color: #ffaa00;
}
.buy:hover {
    background: rgba(255, 170, 0, 0.1);
    color: #fff;
}
/* --- PURCHASE MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #050505;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid #222;
    box-shadow: 0 0 40px rgba(248, 64, 200, 0.15); /* Pink Glow */
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header h2 { font-size: 1.5rem; color: white; margin-bottom: 5px; }
.modal-header p { color: #888; font-size: 0.9rem; margin-bottom: 25px; }

/* Product Box inside Modal */
.modal-product-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    margin-bottom: 25px;
}

.modal-img-box {
    width: 80px; height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.modal-img-box img { width: 100%; height: 100%; object-fit: cover; }

.modal-info h4 { font-size: 1.1rem; color: white; margin-bottom: 2px; text-transform: uppercase; }
.modal-info p { font-size: 0.8rem; color: #666; margin-bottom: 8px; }
.modal-price { 
    display: inline-block;
    color: var(--primary-pink); 
    font-weight: bold; 
    font-size: 1.2rem;
    margin-right: 8px;
}
.modal-sub { font-size: 0.75rem; color: #555; }

/* Instructions Box */
.modal-instructions {
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    margin-bottom: 25px;
    background: #0a0a0a;
}

.modal-instructions h5 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}

.modal-instructions ol {
    list-style: none;
    margin-bottom: 15px;
}

.modal-instructions li {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.modal-instructions li span { color: var(--primary-pink); font-weight: bold; }
.modal-instructions li strong { color: white; }

.modal-note {
    font-size: 0.75rem;
    color: #ffaa00; /* Gold/Warning color */
    background: rgba(255, 170, 0, 0.05);
    padding: 10px;
    border-radius: 6px;
    display: flex; align-items: center; gap: 8px;
}

/* Close Button */
.btn-close-modal {
    background: transparent;
    border: none;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.2s;
}

.btn-close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}
/* --- CONFIGURATION PAGE STYLES --- */

/* Sidebar Updates */
.sidebar-section {
    padding: 20px 15px;
    border-top: 1px solid #222;
}

.sidebar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
}

.count-badge { color: white; }

.product-item {
    font-size: 0.85rem;
    justify-content: space-between;
}

.status-pill {
    font-size: 0.6rem;
    background: var(--primary-pink);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Header Gradient Area */
.config-header {
    background: linear-gradient(135deg, #2a0a1a 0%, #050505 100%);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind header */
.config-header::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: var(--primary-pink);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 2.5rem;
    color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.05);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.header-titles h1 { font-size: 1.8rem; margin-bottom: 5px; color: white; }
.header-titles p { color: #888; font-size: 0.9rem; }

.header-actions { margin-left: auto; text-align: right; }

.connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 0, 0.2);
    margin-bottom: 10px;
}

.dot { width: 6px; height: 6px; background: #0f0; border-radius: 50%; box-shadow: 0 0 5px #0f0; }

.btn-back {
    display: inline-block;
    color: #888;
    font-size: 0.9rem;
}
.btn-back:hover { color: white; }

/* Tab Navigation Bar */
.config-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    border-bottom: 1px solid #222;
}

.tab-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.tab-btn:hover { background: rgba(255, 255, 255, 0.05); color: white; }

.tab-btn.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
    box-shadow: 0 0 15px rgba(248, 64, 200, 0.3);
}

/* Tab Content Areas */
.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Setting Cards */
.setting-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.card-header { margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 15px; }
.card-header h3 { font-size: 1.1rem; color: white; margin-bottom: 5px; }
.card-header p { color: #666; font-size: 0.85rem; }

/* Controls & Inputs */
.control-group { margin-bottom: 30px; }

.label-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.value-display { color: var(--primary-pink); font-weight: bold; }

/* Range Slider Styling */
.sg-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 5px;
    outline: none;
}

.sg-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(248, 64, 200, 0.5);
}

.range-presets {
    display: flex; justify-content: space-between; margin-bottom: 5px;
}
.range-presets span {
    font-size: 0.75rem; color: #555; cursor: pointer; padding: 2px 5px; border-radius: 4px;
}
.range-presets span:hover { background: #222; color: white; }

/* Toggle Box */
.highlight-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #222;
}

.toggle-header { display: flex; justify-content: space-between; align-items: center; }
.toggle-label label { font-size: 1rem; color: white; display: block; margin-bottom: 5px; }
.toggle-label p { font-size: 0.8rem; color: #666; }

/* Info Box */
.info-box {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
}
.info-box h4 { color: #0f0; font-size: 0.9rem; margin-bottom: 10px; }
.info-box ul { list-style: none; padding-left: 0; }
.info-box li { color: #ccc; font-size: 0.85rem; margin-bottom: 5px; position: relative; padding-left: 15px; }
.info-box li::before { content: "•"; color: #0f0; position: absolute; left: 0; }

/* Color Picker Styles */
.color-input-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.color-preview-box { width: 50px; height: 50px; border-radius: 8px; border: 2px solid #333; }
.text-input { background: #000; border: 1px solid #333; color: white; padding: 10px; border-radius: 6px; }

.swatch-row { display: flex; gap: 10px; margin-bottom: 20px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.swatch:hover { transform: scale(1.1); border-color: white; }

.code-snippet {
    background: #000; padding: 15px; border-radius: 8px; border: 1px solid #222;
    display: flex; flex-direction: column; gap: 5px;
}
.code-label { color: #666; font-size: 0.75rem; }
.code-snippet code { color: #00ccff; font-family: monospace; }

/* Segmented Control (Volume) */
.segmented-control {
    display: flex;
    background: #000;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
    border: 1px solid #222;
}

.segmented-control button {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.segmented-control button.active {
    background: #222;
    color: white;
    font-weight: bold;
}

.premium-banner {
    margin-top: 30px;
    border: 1px dashed #333;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}
.btn-store { color: var(--primary-pink); text-decoration: underline; font-size: 0.9rem; }
/* --- TAB: ACCESS --- */
.access-mode-selector {
    display: flex;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px;
}
.access-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}
.access-btn.active {
    background: #a3183d; /* Dark Red from screenshot */
    color: white;
}
.info-box.dark {
    background: transparent;
    border: none;
    padding: 0;
}

/* --- TAB: WHITELIST --- */
.split-list-container {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.list-column { flex: 1; }
.add-row {
    display: flex;
    gap: 10px;
}
.add-row input {
    flex-grow: 1;
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    color: white;
}
.btn-add {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.small-hint { text-align: right; color: #666; font-size: 0.75rem; margin-top: 5px; }

/* --- TAB: PARTNER --- */
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left side smaller, right side wider */
    gap: 24px;
    align-items: start;
    margin-top: 10px;
}

/* Base Card Style for Dark Mode */
.partner-card {
    background: #0a0a0a; /* Very dark background */
    border: 1px solid #2a2a2a; /* Subtle grey border */
    border-radius: 12px;
    padding: 30px;
    position: relative;
    /* Ensure content stacks correctly */
    display: flex;
    flex-direction: column; 
}

/* --- Left Column: Status Card (The Heart) --- */
.partner-card.status-card {
    border: 1px dashed #3a1c24; /* Dark red dashed border */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px; /* Force height to match right side roughly */
}

.heart-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #1a0f14; /* Dark red/black circle bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #ff3366; /* Hot pink heart */
    border: none;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}

.partner-card h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.partner-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* The UNLINKED Badge */
.status-badge {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #666;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Right Column: Action Cards --- */
.partner-column {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Space between Invite and Pending boxes */
}

/* Invite Section */
.tag-invite {
    display: inline-block;
    background: #1a0f14;
    color: #ff3366;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #3a1c24;
    width: fit-content;
    position: static; /* Reset absolute positioning */
}

.partner-card h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.sub-text {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Dark Input Field */
.partner-input {
    width: 100%;
    background: #050505;
    border: 1px solid #333;
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-sizing: border-box; /* Fixes width issues */
}

.partner-input:focus {
    border-color: #ff3366;
    outline: none;
}

/* Helper text below input */
small {
    display: block;
    color: #555;
    font-size: 0.75rem;
    margin-bottom: 20px;
}

/* The Big Pink Button */
.btn-send-invite {
    width: 100%;
    background: #ff3366;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-send-invite:hover {
    background: #ff1f59;
}

/* --- Pending Section --- */
.pending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.pending-header h5 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
}

.btn-refresh {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.empty-state {
    border: 1px dashed #333;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #080808;
    margin-top: 10px;
}

.empty-icon {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

/* --- TAB: CHAT --- */
.chat-toggles-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px;
}
.toggle-item-box {
    background: #000; padding: 15px; border-radius: 8px; border: 1px solid #222;
}
.chk-label { font-size: 1rem; color: white; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.custom-text-section h4 { color: #fff; margin-bottom: 15px; }
.inputs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-wrapper label { font-size: 0.8rem; color: #888; display: block; margin-bottom: 5px; }
.input-wrapper input { width: 100%; background: #000; border: 1px solid #333; padding: 10px; color: white; border-radius: 6px; }
.message-preview-box { background: #000; padding: 15px; border-left: 3px solid var(--primary-pink); color: #888; font-size: 0.9rem; }

/* --- Particle & Animation Styles --- */

/* The Grid for Effects/Emotes */
.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.effect-btn {
    background: #0f0f0f; /* Dark bg */
    border: 1px solid #333; /* Dark border */
    border-radius: 8px;
    padding: 10px 5px;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
}

.effect-btn:hover {
    background: #1a1a1a;
    border-color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: white;
}

.effect-btn.active {
    background: rgba(248, 64, 200, 0.1); /* Pink tint */
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    font-weight: 600;
}

.size-btn-group { display: flex; gap: 5px; margin-bottom: 20px; }
.size-btn-group button {
    flex: 1; background: #000; border: 1px solid #333; color: #888; padding: 8px; cursor: pointer; border-radius: 4px;
}
.size-btn-group button.active { background: #333; color: white; border-color: #555; }

.range-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: #666; margin-top: 5px; }
.input-group-joined { display: flex; }
.input-group-joined input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-joined button { background: #222; border: 1px solid #333; color: white; padding: 0 15px; border-radius: 0 6px 6px 0; cursor: pointer; }

/* Chain Styles */
.chain-style-btns { display: flex; gap: 10px; margin: 15px 0; }
.style-btn { background: #000; border: 1px solid #333; color: #888; padding: 8px 15px; border-radius: 4px; cursor: pointer; }
.style-btn.active { border-color: var(--primary-pink); color: white; }
.btn-preview-all { background: #222; border: 1px solid #333; color: white; width: 100%; padding: 10px; border-radius: 6px; cursor: pointer; }

/* Animations Split Layout */
.anim-split-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.anim-col {
    flex: 1;
    background: #0f0f0f; /* Dark card background */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #222;
}

/* Dropdowns */
.sg-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #050505;
    color: white;
    margin: 10px 0 15px;
    cursor: pointer;
}

.chk-row { display: flex; align-items: center; gap: 10px; color: #ccc; font-size: 0.9rem; margin-top: 5px; }
.status-pill.active-pill { background: rgba(0, 255, 0, 0.2); color: #0f0; border: 1px solid #0f0; display: inline-block; margin-top: 10px; }

/* Dashed Preview Box */
.preview-area.dashed {
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #0a0a0a;
    color: #666;
}

.btn-test-anim {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 30px;
    cursor: pointer;
    color: #ccc;
    font-weight: 500;
    transition: 0.2s;
}

.btn-test-anim:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background: rgba(248, 64, 200, 0.05);
}

/* --- UNIVERSAL SPACING FIX --- */
/* This ensures all major sections across all pages have consistent, large gaps */
.sound-section, 
.achieve-category, 
.stats-grid, 
.activity-section, 
.library-header,
.setting-group {
    margin-bottom: 80px !important; /* Forces big gap */
}

/* Add a little extra space under page headers too */
.dash-page-header {
    margin-bottom: 60px;
}

/* --- Sidebar Profile Photo --- */
.profile-photo-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Makes it a circle */
    object-fit: cover;   /* Prevents stretching */
    border: 2px solid var(--pink-glow); /* Optional: adds your brand color as a ring */
}

/* Ensure the fallback icon has the same alignment */
#avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex; 
    align-items: center;
    justify-content: center;
}