/* ============================================
   livecounts.nl - Roblox Realtime Counter
   Modern, Clean Design
   ============================================ */

:root {
    --roblox-red: #e2231a;
    --roblox-dark: #393b3d;
    --roblox-gray: #656668;
    --bg-primary: #f4f5f7;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #606770;
    --text-muted: #8e8e8e;
    --border-color: #e4e6eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* ============================================
   Header / Navigation Bar
   ============================================ */
.site-header {
    background: linear-gradient(135deg, var(--roblox-red) 0%, #c41e17 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.header-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff !important;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
}

.nav-btn i {
    font-size: 14px;
}

/* Hide old sidebar completely */
body > ul,
.nav-title,
.nav-title2,
.link,
.link2 {
    display: none !important;
}

/* ============================================
   Main Container
   ============================================ */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Profile Card - Main Counter
   ============================================ */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 20px;
}

.pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.main-odo {
    font-size: clamp(48px, 12vw, 96px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 16px 0 8px 0;
}

.follower-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bottom-odo {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-card .bottom-odo {
    color: var(--roblox-red);
}

/* ============================================
   Cards - General
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-body {
    padding: 24px;
}

.card-header {
    background: linear-gradient(135deg, var(--roblox-red) 0%, #c41e17 100%);
    padding: 16px 24px;
    border: none;
}

.card-header h1,
.card-header h2,
.card-header h3,
.header-text {
    color: #fff !important;
    margin: 0;
    font-weight: 600;
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.card p {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Search Box
   ============================================ */
.search-section {
    margin-bottom: 24px;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

#search,
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

#search:focus,
.search-input:focus {
    border-color: var(--roblox-red);
    box-shadow: 0 0 0 3px rgba(226, 35, 26, 0.1);
}

#searchbutton,
.search-button {
    padding: 12px 24px;
    background: var(--roblox-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#searchbutton:hover,
.search-button:hover {
    background: #c41e17;
}

.search-help {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
}

.search-help kbd {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Clickable inline search */
#search[readonly] {
    cursor: pointer;
}

#search[readonly]:hover {
    border-color: var(--roblox-red);
    background: var(--bg-primary);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
    border-radius: var(--radius-sm);
    max-height: 360px;
    overflow: auto;
    z-index: 50;
}

.search-results .item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-results .item:last-child {
    border-bottom: none;
}

.search-results .item:hover,
.search-results .item.active {
    background: var(--bg-primary);
}

.search-results .item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.search-results .meta {
    flex: 1;
}

.search-results .meta .font-weight-bold {
    font-weight: 600;
    color: var(--text-primary);
}

.search-results .meta .text-muted {
    font-size: 13px;
    color: var(--text-muted);
}

.search-results .actions {
    display: flex;
    gap: 6px;
}

.btn-compact {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* ============================================
   Promotion Banner
   ============================================ */
.promotion-card {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.promotion-card .card-body {
    padding: 16px 24px;
}

.promotion-card .card-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.promotion-card .card-text {
    font-size: 14px;
    margin: 0;
}

.promotion-card a {
    color: inherit;
    text-decoration: underline;
}

/* ============================================
   Chart
   ============================================ */
#chart {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 20px;
}

/* ============================================
   Popular Users Section
   ============================================ */
.popular-users-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.popular-item:hover {
    background: var(--bg-card);
    border-color: var(--roblox-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.popular-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--roblox-red);
}

.popular-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.popular-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Milestones Section
   ============================================ */
.milestones-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.milestone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    flex: 1;
    min-width: 140px;
}

.milestone-item.achieved {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.milestone-item.achieved .milestone-icon {
    background: #22c55e;
    color: #fff;
}

.milestone-item.next {
    background: rgba(226, 35, 26, 0.05);
    border-color: var(--roblox-red);
}

.milestone-item.next .milestone-icon {
    background: var(--roblox-red);
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.milestone-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.milestone-info {
    display: flex;
    flex-direction: column;
}

.milestone-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.milestone-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-section .card-body {
    padding: 24px;
}

.faq-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
}

.faq-card .card-header {
    background: transparent;
    padding: 0;
    border: none;
}

.faq-btn {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    font-weight: 500;
    padding: 16px 20px;
    padding-right: 48px;
    position: relative;
    text-decoration: none;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
}

.faq-btn:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-btn[aria-expanded="true"] {
    background: var(--bg-primary);
}

.faq-btn[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion .card-body {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.accordion .card-body ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.accordion .card-body li {
    margin-bottom: 6px;
}

/* ============================================
   Info Card with API Status
   ============================================ */
.info-card {
    position: relative;
}

.api-status {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
}

.api-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.api-status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.api-status-indicator.offline {
    background: #ef4444;
}

.api-status-indicator.warning {
    background: #f59e0b;
}

/* ============================================
   Sharing Section
   ============================================ */
.sharing-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 8px 0;
}

.sharing-section h3:first-child {
    margin-top: 0;
}

.sharing-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.sharing-section .input-group {
    display: flex;
    gap: 8px;
}

.sharing-section input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sharing-section input:focus {
    outline: none;
    border-color: var(--roblox-red);
}

/* ============================================
   Recent Searches
   ============================================ */
.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-item {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.recent-item:hover {
    background: #e4e6eb;
    border-color: #d1d5db;
}

.recent-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.d-none {
    display: none !important;
}

.mt-3 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

/* ============================================
   Theme Squares (for theme switcher)
   ============================================ */
.theme-switcher {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

#square-dark,
#square-white,
#square-rainbow-black,
#square-rainbow-white {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

#square-dark {
    background: #1a1a1a;
}

#square-white {
    background: #fff;
    border-color: var(--border-color);
}

#square-rainbow-black {
    background-image: url(/assets/global/rainbow-black.jpg);
    background-size: cover;
}

#square-rainbow-white {
    background-image: url(/assets/global/rainbow-white.jpg);
    background-size: cover;
}

#square-dark:hover,
#square-white:hover,
#square-rainbow-black:hover,
#square-rainbow-white:hover {
    transform: scale(1.1);
}

/* ============================================
   Rainbow Text Animation
   ============================================ */
.rainbow-text {
    animation: color-change 10s infinite;
}

@keyframes color-change {
    0% { color: #e2231a; }
    25% { color: #22c55e; }
    50% { color: #3b82f6; }
    75% { color: #a855f7; }
    100% { color: #e2231a; }
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
    }
    
    .main-container,
    .container {
        padding: 16px 12px;
    }
    
    .profile-card {
        padding: 32px 16px;
    }
    
    .pfp {
        width: 100px;
        height: 100px;
    }
    
    .main-odo {
        font-size: clamp(36px, 10vw, 72px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    #searchbutton,
    .search-button {
        width: 100%;
    }
    
    .col-sm-6.offset-3 {
        padding: 0;
        margin-left: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }
    
    .api-status {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 16px;
        justify-content: center;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .faq-btn {
        padding: 14px 16px;
        padding-right: 40px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .header-title {
        font-size: 16px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .profile-card {
        padding: 24px 12px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .bottom-odo {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* ============================================
   Modern Sidebar
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--roblox-red) 0%, #c41e17 100%);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.sidebar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sidebar-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 20px;
    margin: 0 0 8px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--bg-primary);
    color: var(--roblox-red);
    text-decoration: none;
}

.sidebar-link.active {
    background: rgba(226, 35, 26, 0.08);
    color: var(--roblox-red);
    border-right: 3px solid var(--roblox-red);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Header with menu toggle */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.25);
}

/* Hide nav button text on small screens */
@media screen and (max-width: 600px) {
    .nav-btn-text {
        display: none;
    }
    
    .nav-btn {
        padding: 10px 12px;
    }
}

/* ============================================
   User Info Card
   ============================================ */
.user-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.user-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.user-info-item i {
    font-size: 18px;
    color: var(--roblox-red);
    margin-top: 2px;
}

.user-info-content {
    display: flex;
    flex-direction: column;
}

.user-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.user-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.user-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.user-description h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-description h4 i {
    color: var(--roblox-red);
}

.user-description p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* User Action Buttons */
.user-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.user-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.user-action-btn:hover {
    background: var(--roblox-red);
    border-color: var(--roblox-red);
    color: #fff;
    text-decoration: none;
}

.user-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--roblox-red);
    background: rgba(226, 35, 26, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.verified-badge img {
    width: 16px;
    height: 16px;
}

/* ============================================
   Promotion Banner (Fixed)
   ============================================ */
.promotion-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    padding: 12px 48px 12px 20px;
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.promotion-banner p {
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    text-align: center;
}

.promotion-banner a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.promotion-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.promotion-close:hover {
    background: rgba(0,0,0,0.2);
}

/* Add padding to main container when promotion banner is visible */
.main-container {
    padding-bottom: 60px;
}

/* ============================================
   Ad Container
   ============================================ */
.ad-container {
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container:empty {
    display: none;
}

/* ============================================
   Responsive Sidebar Adjustments
   ============================================ */
@media screen and (max-width: 320px) {
    .sidebar {
        width: 100%;
    }
}

@media screen and (min-width: 1200px) {
    /* On large screens, sidebar could be permanently visible */
    /* Uncomment below to enable persistent sidebar on desktop */
    /*
    .sidebar {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-container {
        margin-left: 280px;
    }
    
    .site-header .header-content {
        margin-left: 280px;
    }
    */
}

/* ============================================
   Search Modal / Popup
   ============================================ */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.search-modal-header i {
    font-size: 20px;
    color: var(--roblox-red);
}

.search-modal-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--text-primary);
    outline: none;
}

.search-modal-input::placeholder {
    color: var(--text-muted);
}

.search-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.search-modal-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-modal-results .item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-modal-results .item:last-child {
    border-bottom: none;
}

.search-modal-results .item:hover,
.search-modal-results .item.active {
    background: var(--bg-primary);
}

.search-modal-results .item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.search-modal-results .item .meta {
    flex: 1;
}

.search-modal-results .item .meta .name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.search-modal-results .item .meta .id {
    font-size: 13px;
    color: var(--text-muted);
}

.search-modal-results .actions {
    display: flex;
    gap: 8px;
}

.search-modal-results .actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.search-modal-results .btn-open {
    background: var(--roblox-red);
    color: #fff;
    border: none;
}

.search-modal-results .btn-open:hover {
    background: #c41e17;
}

.search-modal-results .btn-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.search-modal-results .btn-copy:hover {
    background: var(--bg-primary);
    border-color: var(--text-muted);
}

.search-modal-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.search-modal-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-modal-empty p {
    margin: 0;
    font-size: 14px;
}

/* Keyboard shortcut hint */
.search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-shortcut {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   Profile Picture - MrBeast Style Border
   ============================================ */
.profile-pic-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-pic-border {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--roblox-red) 0%, #ff6b61 50%, var(--roblox-red) 100%);
    padding: 4px;
    position: relative;
    animation: border-pulse 2s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 35, 26, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(226, 35, 26, 0); }
}

.profile-pic-border .pfp {
    width: 100%;
    height: 100%;
    border: 4px solid var(--bg-card);
    margin-bottom: 0;
}

.profile-pic-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    background: var(--roblox-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-md);
}

.profile-pic-badge img {
    width: 20px;
    height: 20px;
}

/* Live indicator dot */
.live-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ============================================
   Theme Switcher Panel
   ============================================ */
.theme-panel {
    position: fixed;
    bottom: 130px;
    right: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-panel-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.theme-option {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    transform: scale(1.05);
}

.theme-option.active {
    border-color: var(--roblox-red);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.theme-option[data-theme="light"] {
    background: #ffffff;
    border-color: #e4e6eb;
}

.theme-option[data-theme="dark"] {
    background: #1a1a1a;
}

.theme-option[data-theme="rgb-light"] {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: rgb-gradient 3s ease infinite;
}

.theme-option[data-theme="rgb-dark"] {
    background: linear-gradient(135deg, #1a1a1a, #1a1a1a);
    position: relative;
}

.theme-option[data-theme="rgb-dark"]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: rgb-gradient 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes rgb-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.theme-toggle-btn {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    z-index: 99;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--roblox-red);
    color: #fff;
}

/* ============================================
   Odometer Style Selector
   ============================================ */
.odometer-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 0 0;
    flex-wrap: wrap;
}

.odo-style-btn {
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.odo-style-btn:hover {
    border-color: var(--roblox-red);
    color: var(--roblox-red);
}

.odo-style-btn.active {
    background: var(--roblox-red);
    border-color: var(--roblox-red);
    color: #fff;
}

/* ============================================
   Dark Mode Theme
   ============================================ */
body.theme-dark {
    --bg-primary: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #2d2d2d;
}

body.theme-dark .site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: 1px solid var(--roblox-red);
}

body.theme-dark .sidebar-header {
    background: #1a1a1a;
    border-bottom-color: var(--roblox-red);
}

body.theme-dark .profile-pic-border {
    background: linear-gradient(135deg, var(--roblox-red) 0%, #ff6b61 50%, var(--roblox-red) 100%);
}

body.theme-dark .main-odo,
body.theme-dark .bottom-odo,
body.theme-dark .odometer {
    color: #fff !important;
}

body.theme-dark #chart {
    background: var(--bg-card);
}

body.theme-dark .highcharts-background {
    fill: var(--bg-card);
}

body.theme-dark .highcharts-title,
body.theme-dark .highcharts-axis-labels text {
    fill: var(--text-primary) !important;
}

/* ============================================
   RGB Light Mode
   ============================================ */
body.theme-rgb-light {
    --bg-primary: #f4f5f7;
    --bg-card: #ffffff;
}

body.theme-rgb-light .main-odo,
body.theme-rgb-light .main-odo .odometer-digit,
body.theme-rgb-light .main-odo .odometer-value {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b) !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: rgb-gradient 3s ease infinite !important;
}

body.theme-rgb-light .profile-pic-border {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: rgb-gradient 3s ease infinite;
}

body.theme-rgb-light .site-header {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: rgb-gradient 3s ease infinite;
}

/* ============================================
   RGB Dark Mode
   ============================================ */
body.theme-rgb-dark {
    --bg-primary: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #2d2d2d;
}

body.theme-rgb-dark .main-odo,
body.theme-rgb-dark .main-odo .odometer-digit,
body.theme-rgb-dark .main-odo .odometer-value {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b) !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: rgb-gradient 3s ease infinite !important;
}

body.theme-rgb-dark .profile-pic-border {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    animation: rgb-gradient 3s ease infinite;
}

body.theme-rgb-dark .site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) 1;
}

body.theme-rgb-dark .sidebar-header {
    background: #1a1a1a;
}

body.theme-rgb-dark #chart {
    background: var(--bg-card);
}

/* Ensure bottom stats odometers stay visible in RGB modes */
body.theme-rgb-light .bottom-odo,
body.theme-rgb-light .stat-card .odometer {
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

body.theme-rgb-dark .bottom-odo,
body.theme-rgb-dark .stat-card .odometer {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ============================================
   Odometer Style 2 (Colored changes)
   ============================================ */
body.odo-style-2 .odometer.odometer-animating-up .odometer-ribbon-inner {
    color: #22c55e !important;
}

body.odo-style-2 .odometer.odometer-animating-down .odometer-ribbon-inner {
    color: #ef4444 !important;
}

/* ============================================
   Odometer Style 3 (Slot machine)
   ============================================ */
body.odo-style-3 .odometer .odometer-digit {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.1) 100%);
    border-radius: 4px;
    margin: 0 1px;
    padding: 0 4px;
}

body.odo-style-3.theme-dark .odometer .odometer-digit {
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.1) 100%);
}
