@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0b0d12;
    --bg-raised: #11141b;
    --bg-card: #141822;
    --bg-hover: #1a1f2b;
    --bg-input: #0f1218;

    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(59, 130, 246, 0.4);

    --text: #f0f2f5;
    --text-mute: #9ca3b8;
    --text-dim: #6b7285;

    --accent: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-deep: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent-wash: rgba(59, 130, 246, 0.12);

    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --danger-wash: rgba(239, 68, 68, 0.1);

    --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --ui: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ui);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(59, 130, 246, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 32px 0 80px;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   SLEEK NAVBAR
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 13, 18, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0;
}

.nav .container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-brand .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-wash);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-sm);
    padding: 5px;
    flex-shrink: 0;
}

.nav-brand .logo-icon svg {
    width: 100%;
    height: 100%;
}

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

.nav-link {
    color: var(--text-mute);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--r-sm);
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.nav-link-btn:hover {
    background: var(--accent-deep);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.footer .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-wash);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-sm);
    padding: 5px;
    flex-shrink: 0;
}

.footer .logo-icon svg { 
    width: 100%; 
    height: 100%; 
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.profile-page {
    min-height: 100vh;
    padding-top: 70px;
}

.ban-banner {
    background: var(--danger-wash);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--r-md);
    padding: 14px 20px;
    margin: 24px 0;
    color: #fca5a5;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.005em;
}

.profile-header {
    padding: 32px 0 24px;
}

.profile-box {
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    border: none;
    padding: 0;
}

.profile-header-top {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar svg {
    width: 52%;
    height: 52%;
    color: var(--text-dim);
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.1;
}

.profile-meta {
    font-size: 0.9375rem;
    color: var(--text-mute);
    margin-bottom: 12px;
    font-weight: 500;
}

.profile-platforms {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.platform-icon:hover {
    transform: translateY(-4px) scale(1.15);
}

.platform-icon::before {
    content: attr(data-platform);
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: var(--bg-card);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-strong);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.platform-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -44px;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.platform-icon:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.platform-icon svg {
    width: 100%;
    height: 100%;
    color: white;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

.badge {
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    background: var(--danger-wash);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    letter-spacing: 0.01em;
}

.profile-stats-compact {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-compact svg {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
}

.stat-compact-value {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
}

.stat-compact-value.credits {
    color: var(--accent-bright);
}

.stat-compact-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   TABS (Stats.cc style)
   ═══════════════════════════════════════════════════════════ */
.tabs-section {
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.tabs-nav {
    display: flex;
    gap: 4px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-mute);
    font-family: var(--ui);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    position: relative;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    padding-bottom: 60px;
}

.tab-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   INVENTORY SECTION
   ═══════════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-count {
    font-size: 0.9375rem;
    color: var(--text-mute);
    font-weight: 600;
}

.inventory-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 50px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-block {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.category-block.open {
    border: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid var(--border);
}

.category-header:hover {
    background: transparent;
    padding-left: 8px;
}

.category-header:hover .category-arrow {
    color: var(--accent-bright);
    transform: scale(1.2);
}

.category-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-arrow {
    font-size: 1.125rem;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    font-weight: 700;
}

.category-block.open .category-arrow {
    transform: rotate(90deg);
}

.category-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.category-count {
    font-size: 0.75rem;
    color: var(--accent-bright);
    font-weight: 700;
    background: var(--accent-wash);
    padding: 5px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-accent);
    min-width: 36px;
    text-align: center;
}

.items-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 16px 0 20px;
}

.items-grid.show {
    display: grid;
    animation: slideDown 0.3s ease;
}

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

.item-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-input) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 0.8125rem;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card-clickable {
    cursor: pointer;
}

.item-card-clickable:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-color: var(--accent);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--accent-glow),
        -3px 0 12px rgba(59, 130, 246, 0.15);
}

.item-card-clickable:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.item-card-clickable:hover::after {
    opacity: 1;
}

.item-card-clickable:active {
    transform: translateX(3px) translateY(-1px);
}

.item-card-clickable:active {
    transform: translateX(2px) translateY(-1px);
}

.inventory-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    padding: 20px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.sidebar-subtitle {
    font-size: 0.8125rem;
    color: var(--text-mute);
    margin-bottom: 16px;
}

.charm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin: 0 -10px 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    transition: all 0.15s ease;
}

.charm-item:hover {
    background: var(--bg-hover);
    border-color: var(--border);
}

.charm-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    flex-shrink: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.charm-info {
    flex: 1;
    min-width: 0;
}

.charm-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
}

.charm-rank {
    font-size: 0.75rem;
    color: var(--accent-bright);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stats-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.stats-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.stats-card-body {
    padding: 20px;
}

.stats-placeholder {
    color: var(--text-mute);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════ */
.fullpage-view {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 32px 60px;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-wash);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-bright);
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.search-title {
    font-family: var(--display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--text);
    text-transform: uppercase;
}

.search-title .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-subtitle {
    font-size: 1.0625rem;
    color: var(--text-mute);
    margin-bottom: 40px;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.search-box {
    position: relative;
    margin-bottom: 24px;
    text-align: left;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 20px 24px 20px 58px;
    font-family: var(--ui);
    font-size: 1.125rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--r-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.search-input::placeholder { 
    color: var(--text-dim);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 24px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.search-results.show { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s ease;
    gap: 16px;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-hover); }

.search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
    background: var(--bg-input);
}

.search-result-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    color: var(--text-dim);
}

.search-result-avatar-default svg {
    width: 24px;
    height: 24px;
}

.search-result-avatar-loading {
    opacity: 0.5;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

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

@keyframes pulse-loading {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.3; }
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-main { 
    flex: 1; 
    min-width: 0; 
    text-align: left;
}

.search-result-username {
    font-family: var(--ui);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--text-mute);
}

.search-result-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-ban-badge {
    padding: 3px 8px;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    background: var(--danger-wash);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-result-arrow {
    font-size: 1rem;
    color: var(--text-mute);
    transition: all 0.15s ease;
}

.search-result-item:hover .search-result-arrow {
    color: var(--accent-bright);
    transform: translateX(3px);
}

.no-results {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-mute);
    font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE (Supabase-inspired)
   ═══════════════════════════════════════════════════════════ */
.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 70px;
}

.hero-section {
    padding: 100px 0 80px;
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-mute);
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.hero-pill:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.hero-pill svg {
    width: 14px;
    height: 14px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    position: relative;
}

.pill-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--ok);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-accent {
    display: block;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.hero-description {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-mute);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--ui);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hero-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.hero-btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.hero-btn-primary:hover {
    background: var(--accent-deep);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.hero-btn-primary:hover svg {
    transform: translateX(2px);
}

.hero-btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-strong);
}

.hero-btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
}

.features-section {
    padding: 60px 0 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--accent-wash);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-title {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-mute);
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGE (Smaller, Centered)
   ═══════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.auth-eyebrow {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--accent-wash);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-bright);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.auth-title {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.1;
}

.auth-title .accent {
    color: var(--accent);
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: var(--text-mute);
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
}

.auth-form {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    padding: 28px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--ui);
    font-size: 0.9375rem;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--r-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: var(--text-dim);
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: var(--accent);
    color: white;
    border: none;
    font-family: var(--ui);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--r-md);
    letter-spacing: -0.005em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.submit-btn:hover {
    background: var(--accent-deep);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), 0 0 0 3px var(--accent-glow);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-msg {
    background: var(--danger-wash);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
}

.info-msg {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid var(--border-accent);
    color: var(--accent-bright);
    padding: 12px 14px;
    border-radius: var(--r-md);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-mute);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.back-link:hover {
    color: var(--accent-bright);
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   LOADING
   ═══════════════════════════════════════════════════════════ */
.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.footer-text {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-align: right;
}

.footer-text p { margin: 0; }

/* New footer style */
.footer-content-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.footer-link {
    color: var(--text-mute);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--accent-bright);
}

.footer-divider {
    color: var(--text-dim);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.footer-disclaimer p {
    margin: 0;
    margin-bottom: 4px;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .inventory-grid { grid-template-columns: 1fr; }
    .inventory-sidebar { position: static; }
    .profile-header-top {
        flex-wrap: wrap;
    }
    .profile-stats-compact {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-section { padding: 80px 0 60px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-description { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
    .hero-btn { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .profile-header-top {
        flex-direction: column;
        text-align: center;
    }
    .profile-avatar { margin: 0 auto; width: 96px; height: 96px; }
    .profile-platforms { justify-content: center; }
    .profile-badges { justify-content: center; }
    .profile-stats-compact { 
        justify-content: center; 
        gap: 16px;
        flex-wrap: wrap;
    }
    .stat-compact-value { font-size: 1.125rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-text { text-align: center; }
    .fullpage-view { padding: 100px 20px 40px; }
    .auth-page { padding: 100px 20px 40px; }
    .tabs-nav { overflow-x: auto; }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 5px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

::selection { background: var(--accent); color: white; }

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}

.empty-icon {
    font-size: 48px;
    opacity: 0.25;
    margin-bottom: 14px;
}

.empty-text {
    color: var(--text-mute);
    font-size: 0.9375rem;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 200;
    inset: 0;
    background: rgba(5, 6, 10, 0.92);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 80px;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 1200px;
    width: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
}

.image-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    line-height: 1;
    padding: 0;
}

.image-modal-close:hover { 
    color: #ffffff; 
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.image-modal-title {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    text-transform: uppercase;
}

.image-modal-img {
    max-width: 1100px;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: none;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: rgba(20, 24, 34, 0.95);
    padding: 40px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6);
    animation: imageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Platform Modal */
.platform-modal {
    display: none;
    position: fixed;
    z-index: 300;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

.platform-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.platform-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.platform-modal-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-modal-icon img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

.platform-modal-title {
    flex: 1;
}

.platform-modal-label {
    font-size: 0.6875rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    font-weight: 600;
}

.platform-modal-name {
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.platform-modal-body {
    padding: 24px;
}

.platform-modal-username-label {
    font-size: 0.6875rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 600;
}

.platform-modal-username {
    font-family: var(--ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: #0a0b0e;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.platform-modal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.platform-modal-button {
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--ui);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.platform-modal-button:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.platform-modal-button:active {
    transform: translateY(0);
}

.platform-modal-button svg {
    width: 14px;
    height: 14px;
}

.platform-modal-button-secondary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-bright);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.platform-modal-button-secondary:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent);
    color: var(--accent-bright);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.platform-modal-close {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    color: var(--text-mute);
    font-family: var(--ui);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
    text-align: center;
}

.platform-modal-close:hover {
    color: var(--text);
    background: var(--bg-hover);
    border-radius: 6px;
}