/* ============================================================
   BLYP - STILE COMPLETO RESPONSIVE
   Supporta: Mobile (320px+), Tablet (768px+), Desktop (1024px+)
   ============================================================ */

/* ======================== CSS VARIABLES ======================== */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --primary-rgb: 99,102,241;
    --secondary: #1E1B4B;
    --secondary-light: #312E81;
    --accent: #F7C948;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-rgb: 239,68,68;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --card-bg: #FFFFFF;
    --card-hover: #F8FAFC;
    --nav-bg: rgba(255,255,255,0.92);
    --hero-gradient: linear-gradient(135deg, #6366F1 0%, #818CF8 50%, #A5B4FC 100%);
}

[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border: #334155;
    --card-bg: #1E293B;
    --card-hover: #263548;
    --nav-bg: rgba(15,23,42,0.92);
    --hero-gradient: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1a1840 100%);
}

/* ======================== RESET & BASE ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}
.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-block { width: 100%; justify-content: center; }

.btn-social {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}
.btn-social:hover { border-color: var(--text-muted); background: var(--bg-secondary); }
.btn-google:hover { border-color: #DB4437; color: #DB4437; }
.btn-github:hover { border-color: #333; color: var(--text-primary); }
.btn-apple:hover { border-color: #000; }

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 24px; }

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 260px;
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.search-bar i { color: var(--text-muted); font-size: 14px; }
.search-bar input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar kbd {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-family: var(--font);
    border: 1px solid var(--border);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-link.active { color: var(--primary); background: rgba(99,102,241,0.08); font-weight: 600; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}
.nav-icon-btn:hover { background: var(--bg-tertiary); color: var(--primary); }

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: var(--font);
}
.lang-btn:hover { border-color: var(--primary); }
.lang-btn .fa-chevron-down { font-size: 10px; color: var(--text-muted); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    z-index: 100;
}
.lang-dropdown.show { display: block; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-primary);
}
.lang-option:hover { background: var(--bg-secondary); }
.lang-option.active { background: rgba(99,102,241,0.08); color: var(--primary); font-weight: 600; }

/* User Menu */
.user-menu { position: relative; }
.avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    padding: 0;
    transition: var(--transition);
}
.avatar-btn:hover { border-color: var(--primary); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-img-lg { width: 48px; height: 48px; border-radius: 50%; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    z-index: 100;
}
.user-dropdown.show { display: block; }
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.user-dropdown-header strong { display: block; font-size: 15px; }
.user-badge {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg-secondary); }
.user-dropdown a i { width: 18px; text-align: center; color: var(--text-muted); }
.logout-link { color: var(--danger) !important; }
.logout-link i { color: var(--danger) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bg-primary);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.show { display: block; }
.mobile-menu-inner {
    padding: 16px 20px 40px;
}
.mobile-search-form { margin-bottom: 16px; }
.mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.mobile-search-bar i { color: var(--text-muted); font-size: 14px; }
.mobile-search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-primary);
    font-family: var(--font);
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.mobile-nav-link.active { color: var(--primary); font-weight: 600; }
.mobile-nav-link i { width: 20px; text-align: center; font-size: 16px; }
.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}
.mobile-auth-btns {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
/* Legacy compat */
.mobile-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.mobile-search i { color: var(--text-muted); }
.mobile-search input { border: none; background: none; outline: none; width: 100%; font-size: 14px; color: var(--text-primary); font-family: var(--font); }
.mobile-link { padding: 12px 0; font-size: 16px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mobile-link.active { color: var(--primary); }
.mobile-menu .btn { margin-top: 0; }

/* ======================== NOTIFICATIONS DROPDOWN (inline in navbar) ======================== */
.notif-panel-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    z-index: 9999;
    overflow: hidden;
}
.notif-panel-dropdown.open { display: block; }
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.notif-panel-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .notif-panel-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
    .notif-panel-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: var(--card-bg);
        z-index: 1;
    }
    .notif-close-btn { display: inline-block !important; }
    .notif-panel-list {
        max-height: none;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
    }
}

/* ======================== NOTIFICATIONS PANEL (legacy) ======================== */
.notif-panel {
    position: fixed;
    top: 64px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    overflow: hidden;
}
.notif-panel.show { display: block; }

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.notif-header h3 { font-size: 16px; font-weight: 700; }
.notif-mark-all {
    font-size: 13px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 500;
}

.notif-tabs {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
}
.notif-tab {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.notif-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.notif-list { overflow-y: auto; max-height: 360px; -webkit-overflow-scrolling: touch; }
.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}
.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: rgba(99,102,241,0.04); }
.notif-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.notif-content { flex: 1; }
.notif-text { font-size: 13px; line-height: 1.4; color: var(--text-primary); }
.notif-text strong { font-weight: 600; }
.notif-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ======================== HERO ======================== */
.hero {
    background: var(--hero-gradient);
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: -2px;
    line-height: 1.1;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

/* ======================== MAIN CONTENT ======================== */
.main-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.section { margin-bottom: 40px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h2 { font-size: 24px; font-weight: 800; }

/* Date Nav */
.date-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.date-nav::-webkit-scrollbar { display: none; }
.date-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font);
}
.date-btn:hover { border-color: var(--primary); color: var(--primary); }
.date-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }
.cat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font);
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.cat-chip i { font-size: 12px; }

/* ======================== PRODUCT CARDS ======================== */
.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-list img, .spotlight-box img { max-width: 100%; max-height: 64px; }

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}
.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 32px;
    text-align: center;
}
.product-rank.top-3 { color: var(--primary); }

.product-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    min-height: 64px;
    max-height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.product-icon img { width: 100%; height: 100%; max-width: 64px; max-height: 64px; object-fit: cover; display: block; }

.product-info { flex: 1; min-width: 0; }
.product-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.product-badge {
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-featured { background: rgba(99,102,241,0.1); color: var(--primary); }
.badge-new { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-trending { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-promoted { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(234,179,8,0.15)); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.badge-boosted { background: rgba(99,102,241,0.08); font-size: 13px; padding: 1px 6px; }

/* Spotlight Box */
.spotlight-box {
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(168,85,247,0.06));
    border: 2px solid rgba(99,102,241,0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.spotlight-box:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.1); }
.spotlight-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; letter-spacing: 0.5px; }
.spotlight-content { display: flex; align-items: center; gap: 14px; }
.spotlight-icon { width: 56px; height: 56px; min-width: 56px; max-width: 56px; min-height: 56px; max-height: 56px; border-radius: 14px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--bg-secondary); }
.spotlight-icon img { width: 100%; height: 100%; max-width: 56px; max-height: 56px; object-fit: cover; display: block; }
.spotlight-info { flex: 1; min-width: 0; }
.spotlight-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.spotlight-tagline { font-size: 13px; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotlight-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; gap: 12px; align-items: center; }
.spotlight-cta { flex-shrink: 0; }
.spotlight-section { margin-bottom: 16px; }
.spotlight-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
.spotlight-grid > .spotlight-box { margin-bottom: 0; padding: 12px 14px; }
.spotlight-grid > .spotlight-box .spotlight-icon { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
.spotlight-grid > .spotlight-box .spotlight-name { font-size: 14px; }
.spotlight-grid > .spotlight-box .spotlight-tagline { font-size: 12px; }
.spotlight-grid > .spotlight-box .spotlight-meta { font-size: 11px; gap: 8px; }
@media (max-width: 600px) {
    .spotlight-cta { display: none; }
    .spotlight-content { gap: 10px; }
    .spotlight-icon { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
    .spotlight-grid { grid-template-columns: 1fr !important; }
    .spotlight-compact .spotlight-icon { width: 38px; height: 38px; font-size: 18px; }
}

.product-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.product-category {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 3px 10px;
    border-radius: 50px;
}
.product-comments-count {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-maker {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.maker-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Upvote Button */
.upvote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    min-width: 64px;
    flex-shrink: 0;
    font-family: var(--font);
}
.upvote-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.upvote-btn.voted {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.upvote-icon { font-size: 16px; }
.upvote-count { font-size: 14px; font-weight: 700; }

/* ======================== BLYP BUTTON ======================== */
.blyp-wrapper {
    position: relative;
    flex-shrink: 0;
}
.blyp-form {
    display: contents;
}
.blyp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 64px;
    flex-shrink: 0;
    font-family: var(--font);
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    overflow: visible;
}
.blyp-bolt {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(0.3);
}
.blyp-count {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.blyp-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.2);
}
.blyp-btn:hover .blyp-bolt {
    transform: scale(1.3) rotate(-8deg);
    filter: grayscale(0);
}
/* Blyped (voted) state */
.blyp-btn.blyped {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.blyp-btn.blyped .blyp-bolt {
    filter: grayscale(0) brightness(1.2);
}
/* Blyp flash animation on vote */
@keyframes blypFlash {
    0% { transform: scale(1); }
    20% { transform: scale(1.25) rotate(-12deg); }
    40% { transform: scale(0.9) rotate(6deg); }
    60% { transform: scale(1.15) rotate(-4deg); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
@keyframes blypBurst {
    0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); }
    50% { box-shadow: 0 0 0 12px rgba(99,102,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
@keyframes blypCountUp {
    0% { transform: translateY(8px); opacity: 0; }
    60% { transform: translateY(-3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
.blyp-btn.blyped {
    animation: blypBurst 0.5s ease;
}
.blyp-btn.blyped .blyp-bolt {
    animation: blypFlash 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.blyp-btn.blyped .blyp-count {
    animation: blypCountUp 0.4s ease;
}

/* Blyp Reactions Popup (on hover) */
.blyp-reactions {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    display: flex;
    gap: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 6px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    white-space: nowrap;
}
.blyp-reactions::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--card-bg);
}
.blyp-wrapper:hover .blyp-reactions {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
.blyp-reactions .react-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    line-height: 1;
}
.blyp-reactions .react-btn:hover {
    transform: scale(1.4);
    background: var(--bg-secondary);
}

/* ======================== BLYP PARTICLES (JS-created) ======================== */
.blyp-particle {
    position: absolute;
    pointer-events: none;
    font-size: 12px;
    z-index: 20;
    animation: particleFly 0.7s ease-out forwards;
}
@keyframes particleFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3); }
}

/* Load More */
.load-more-container { text-align: center; margin-top: 32px; }

/* ======================== COLLECTIONS ======================== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.collection-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.collection-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.collection-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 160px;
    background: var(--border);
}
.collection-images .coll-img {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.collection-body { padding: 16px; }
.collection-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.collection-count { font-size: 13px; color: var(--text-muted); }
.collection-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}
.collection-author img { width: 24px; height: 24px; border-radius: 50%; }

/* ======================== COMMUNITY ======================== */
.community-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.discussion-card {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
}
.discussion-card:hover { border-color: var(--primary-light); }

.discussion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.discussion-header img { width: 36px; height: 36px; border-radius: 50%; }
.discussion-author { font-weight: 600; font-size: 14px; }
.discussion-time { font-size: 12px; color: var(--text-muted); }

.discussion-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.discussion-preview { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.discussion-footer {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.discussion-footer span { display: flex; align-items: center; gap: 4px; }

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.top-maker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.top-maker-item img { width: 36px; height: 36px; border-radius: 50%; }
.top-maker-info { flex: 1; }
.top-maker-name { font-size: 14px; font-weight: 600; }
.top-maker-level { font-size: 12px; color: var(--accent); }
.top-maker-xp { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}
.tag-chip:hover { background: rgba(99,102,241,0.1); color: var(--primary); }

/* ======================== RANKINGS ======================== */
.rankings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}
.rank-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.rank-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ======================== MODALS ======================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-sm { max-width: 440px; }
.modal-lg { max-width: 720px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 20px; font-weight: 700; }
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* Submit Form */
.submit-form { padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.image-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.image-upload:hover { border-color: var(--primary); color: var(--primary); }
.image-upload i { font-size: 32px; margin-bottom: 8px; display: block; }

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Auth */
.auth-content { padding: 24px; }
.social-auth { display: flex; flex-direction: column; gap: 10px; }
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-form { margin-top: 0; }
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-switch a { color: var(--primary); font-weight: 600; }

/* Product Detail */
.product-detail { padding: 24px; }
.product-detail-hero {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}
.product-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}
.product-detail-info { flex: 1; }
.product-detail-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.product-detail-tagline { font-size: 15px; color: var(--text-secondary); }
.product-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.gallery-img {
    height: 160px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
}

.comment-section { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.comment-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.comment-input-row img { width: 36px; height: 36px; border-radius: 50%; }
.comment-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}
.comment-input-row input:focus { border-color: var(--primary); }

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}
.comment-item img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-text { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.comment-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ======================== FOOTER ======================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 24px;
}

.footer-container { max-width: 1080px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon { font-size: 28px; }
.footer-brand .logo-text { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; line-height: 1.6; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ======================== RESPONSIVE ======================== */

/* Tablet */
@media (max-width: 1200px) {
    .nav-center { display: none; }
    .search-bar { min-width: 200px; }
    .nav-container { overflow: hidden; }
    .nav-right { flex-shrink: 1; min-width: 0; }
    .hamburger { display: flex; }
    .nav-right .btn-outline,
    .nav-right .btn-primary:not(#submit-btn) { display: none; }
    .user-menu { display: none; }
    #submit-btn { display: none; }
    .community-layout { grid-template-columns: 1fr; }
    .community-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet small */
@media (max-width: 768px) {
    .search-bar { display: none; }
    .hamburger { display: flex; }
    .lang-switcher .lang-code { display: none; }
    .lang-btn .fa-chevron-down { display: none; }
    #submit-btn { display: none; }
    .user-menu { display: none; }
    #theme-toggle { display: none; }
    .nav-right .btn-outline,
    .nav-right .btn-primary:not(#submit-btn) { display: none; }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { flex-direction: row !important; flex-wrap: nowrap; gap: 16px; justify-content: center; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 11px; }
    .main-content { padding: 24px 16px 40px; }
    .product-card { padding: 16px; gap: 12px; }
    .product-rank { display: none; }
    .product-icon { width: 52px; height: 52px; font-size: 22px; }
    .product-name { font-size: 15px; }
    .product-tagline { font-size: 13px; }
    .upvote-btn { padding: 8px 12px; min-width: 52px; }
    .collections-grid { grid-template-columns: 1fr; }
    .community-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .modal { max-height: 100vh; border-radius: var(--radius) var(--radius) 0 0; }
    .notif-panel, .notif-panel-dropdown { right: 8px; left: 8px; width: auto; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-container { padding: 0 16px; }
    .hero { padding: 90px 16px 50px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { flex-direction: row !important; flex-wrap: nowrap; gap: 12px; justify-content: center; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 10px; }
    .product-meta { flex-wrap: wrap; }
    .product-detail-hero { flex-direction: column; }
    .product-detail-actions { flex-direction: column; }
    .form-actions { flex-direction: column-reverse; }
    .notif-panel, .notif-panel-dropdown { top: 56px; right: 4px; left: 4px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
    .notif-list { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card { animation: fadeIn 0.3s ease forwards; }
.modal-overlay.show .modal { animation: slideDown 0.3s ease; }
.upvote-btn.voted { animation: pulse 0.3s ease; }

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ======================== SELECTION ======================== */
::selection {
    background: rgba(99,102,241,0.2);
    color: var(--text-primary);
}

/* ======================== HOMEPAGE SIDEBAR LAYOUT ======================== */
.main-with-sidebar {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.main-feed {
    min-width: 0; /* prevent grid blowout */
}
.main-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ======================== PRODUCT OF THE WEEK ======================== */
.potw-card {
    display: block;
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(129,140,248,0.04) 100%);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.potw-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
}
.potw-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(99,102,241,0.15);
    transform: translateY(-1px);
}
.potw-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.potw-content {
    display: flex;
    align-items: center;
    gap: 16px;
}
.potw-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    overflow: hidden;
}
.potw-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}
.potw-info {
    flex: 1;
    min-width: 0;
}
.potw-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.potw-name {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.potw-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.potw-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.potw-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* ======================== QUICK REACTIONS ======================== */
.quick-reactions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}
.react-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}
.react-btn:hover {
    transform: scale(1.2);
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.react-btn.active {
    border-color: var(--primary);
    background: rgba(99,102,241,0.1);
}

/* React count badge */
.react-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 2px;
    font-family: var(--font);
}
.react-btn.active .react-count {
    color: var(--primary);
}

/* Reaction counts in popup */
.blyp-reactions .react-btn {
    gap: 2px;
}
.blyp-reactions .react-btn .react-count {
    font-size: 10px;
}

/* Inline reaction pills in product meta */
.product-reactions-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}
.reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 99px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

/* ======================== SIDEBAR WIDGETS ======================== */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
}
.widget-header h3 {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-primary);
}
.widget-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.widget-link:hover {
    text-decoration: underline;
}
.widget-list {
    padding: 8px 0;
}
.widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}
.widget-item:hover {
    background: var(--bg-secondary);
}
.widget-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}
.widget-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.widget-item:first-child .widget-rank {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}
.widget-item-info {
    flex: 1;
    min-width: 0;
}
.widget-item-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.widget-item-meta i {
    font-size: 10px;
}

/* ======================== SIDEBAR RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .main-with-sidebar {
        grid-template-columns: 1fr;
    }
    .main-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}
@media (max-width: 640px) {
    .main-sidebar {
        grid-template-columns: 1fr;
    }
    .potw-content {
        flex-wrap: nowrap;
    }
    .potw-stats {
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
    }
    .quick-reactions {
        display: none;
    }
}

/* ======================== PRINT ======================== */
@media print {
    .navbar, .footer, .modal-overlay, .notif-panel { display: none; }
    .hero { padding-top: 20px; }
    body { color: #000; background: #fff; }
}
