/* --- GLOBAL STYLES --- */
:root {
    /* --- VERTICK-INSPIRED PALETTE (Neutral Dark) --- */
    /* Deep, true black background instead of blue-grey */
    --primary-bg: #050505;
    
    /* Slightly lighter neutral gray for panels */
    --secondary-bg: #121212;
    
    /* Subtle, neutral borders */
    --border-color: #262626;

    /* Crisp White Text */
    --text-main: #ffffff;
    --text-muted: #9ca3af; /* Cool gray for muted text */

    /* Vibrant Accents (Data Ticker Style) */
    --accent-blue: #3b82f6;   /* Bright Tech Blue */
    --accent-green: #10b981;  /* Crypto Up Green */
    --accent-red: #ef4444;    /* Crypto Down Red */
    --accent-yellow: #eab308; /* Bitcoin Orange/Yellow */
    --accent-purple: #8b5cf6;
}

body { 
    background-color: var(--primary-bg);
    color: var(--text-main); 
    /* UPDATED FONT FAMILY */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    /* Improved anti-aliasing for the clean look */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- WATCHLIST ICON STYLES --- */
.watchlist-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    color: #444; /* Default inactive color */
}
.watchlist-btn:hover { transform: scale(1.2); color: #666; }
.watchlist-btn.watched { color: var(--accent-yellow); }
.watchlist-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Notification Toast */
.watchlist-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    border: 1px solid var(--accent-yellow);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}
.watchlist-toast-content { font-size: 0.9rem; line-height: 1.4; }
.watchlist-toast-close { background:transparent; border:none; color:#888; cursor:pointer; font-size:1.2rem; margin-left:auto; }
@keyframes slideIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.public-container { 
    max-width: 1200px;
    margin: 0 auto; 
    padding: 2rem; 
}

.dashboard-grid { 
    display: flex;
    flex-direction: column; 
    gap: 2rem; 
}

.panel { 
    background: var(--secondary-bg);
    border: 1px solid var(--border-color); 
    border-radius: 12px; /* Slightly softer corners */
    padding: 1.5rem; 
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5); /* Subtle depth */
}

/* --- HEADER & NAV --- */
.site-header { 
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 1.5rem; 
    position: relative; 
}

.site-title-row { 
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 15px; 
}

/* NEW LOGO STYLES */
.text-logo-container {
    display: inline-flex;
    align-items: center;
    border-bottom: 3px solid var(--accent-red); /* Red underline for whole line */
    padding-bottom: 4px;
    text-decoration: none;
    margin-bottom: 5px;
}


/* Styling for Maker Biography */
.maker-bio-panel {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-blue);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--text-main);
    font-size: 1.05rem;
    max-width: 900px;
}

/* Formats any links in the bio as clickable hyperlinks */
.maker-bio-panel a {
    color: var(--accent-blue);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.maker-bio-panel a:hover {
    opacity: 0.8;
}

.maker-bio-panel p {
    margin-bottom: 1rem;
}
.maker-bio-panel p:last-child {
    margin-bottom: 0;
}

.text-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.logo-watch { color: var(--accent-red); }

.logo-domain { 
    font-size: 0.6em; 
    color: var(--text-muted); 
    margin-left: 2px; 
    font-weight: 600;
    letter-spacing: 0;
}

.logo-eye-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
    fill: #fff;
    display: inline-block;
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    transform: translateX(3px);
}

.site-subtitle { 
    color: var(--text-muted);
    font-size: 0.95rem; 
    margin: 0; 
    margin-top: 10px;
    font-weight: 400;
    opacity: 0.9; 
}

.hamburger-btn { 
    display: none;
    background: transparent; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    color: #fff; 
    font-size: 1.5rem; 
    cursor: pointer; 
    padding: 6px 12px; 
    transition: background 0.2s;
}
.hamburger-btn:hover { background: #222; }

.main-nav { 
    display: flex;
    gap: 6px; 
    background: #1a1a1a; 
    padding: 5px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    margin-top: 15px;
}

.nav-item { 
    background: transparent;
    border: none; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; /* Inter Medium */
    cursor: pointer; 
    padding: 10px 20px; 
    position: relative; 
    transition: all 0.2s ease;
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    flex: 1;
    white-space: nowrap;
}

.nav-item:hover { 
    background: rgba(255, 255, 255, 0.08);
    color: #fff; 
}

.nav-item.active { 
    background: #252525; /* More neutral active state */
    color: #fff; 
    border: 1px solid #444;
    box-shadow: none; /* Removed blue glow for cleaner look */
}

.nav-icon { 
    width: 18px;
    height: 18px; 
    fill: currentColor; 
    opacity: 0.8; 
}
.nav-item.active .nav-icon { opacity: 1; }

/* --- VIEWS UTILITY --- */
.view-section { 
    display: none;
    animation: fadeIn 0.3s ease; 
}
.view-section.active { display: block; }

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

/* --- SUMMARY STATS BAR --- */
.summary-bar { 
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem; 
    margin-bottom: 2rem; 
}

.stat-card { 
    /* Solid neutral background instead of gradient */
    background: var(--secondary-bg);
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    position: relative; 
    overflow: hidden;
    min-height: 90px; 
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s; 
    cursor: pointer;
}

.stat-card:hover { 
    transform: translateY(-4px);
    border-color: #555; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

/* Slimmer accent bars */
.stat-card::before { 
    content: '';
    position: absolute; 
    top: 0; left: 0; 
    width: 3px; height: 100%; 
    background: #444;
}

.stat-card.blue::before { background: var(--accent-blue); }
.stat-card.green::before { background: var(--accent-green); }
.stat-card.red::before { background: var(--accent-red); }
.stat-card.yellow::before { background: var(--accent-yellow); }

.stat-title { 
    font-size: 0.7rem;
    text-transform: uppercase; 
    color: var(--text-muted); 
    letter-spacing: 0.08em; 
    margin-bottom: 8px; 
    font-weight: 600;
}

.stat-value { 
    font-size: 1.4rem;
    font-weight: 700; 
    color: #fff; 
    line-height: 1; 
    margin-bottom: 6px; 
    letter-spacing: -0.02em;
}

.stat-sub { 
    font-size: 0.75rem;
    color: #777; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.stat-sub strong { color: #ccc; }

/* --- COIN CAROUSEL --- */
.carousel-container {
    position: relative;
    background: radial-gradient(circle at center, #1f1f1f 0%, #111 100%); /* Subtle radial spotlight */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    color: #fff;
    font-size: 4rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
    justify-content: center;
    padding: 0; /* Ensures the icon doesn't shift */
    line-height: 1; /* Prevents text-based vertical alignment issues */
    transition: all 0.2s;
}
.carousel-nav-btn:hover { background: #fff; color: #000; border-color: #fff; }
.carousel-nav-btn.left { left: 10px; padding-right: 2px; } /* Optical centering */
.carousel-nav-btn.right { right: 10px; padding-left: 2px; } /* Optical centering */
.carousel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.coin-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    cursor: pointer;
    transform: scale(0.5);
    pointer-events: none; 
}

.coin-visual {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #444; /* Darker default border */
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    background: #000;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}
.coin-visual.gold { border-color: #CB1B16; box-shadow: 0 0 20px rgba(234, 179, 8, 0.2); }

.coin-visual img { width: 100%; height: 100%; object-fit: cover; }

.coin-info {
    text-align: center;
    opacity: 0; 
    transition: opacity 0.3s;
    max-width: 200px;
}

.coin-maker { 
    font-weight: 700;
    font-size: 1.1rem; 
    color: #fff; 
    letter-spacing: -0.01em;
}
.coin-release { 
    font-size: 0.85rem;
    color: #888; 
    margin-bottom: 6px; 
    font-weight: 500;
}
.coin-amt { 
    font-size: 1rem; 
    color: var(--accent-red); 
    font-family: 'Inter', monospace; /* Use Inter with tabular nums if possible, else mono */
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    background: #222; 
    padding: 4px 10px; 
    border-radius: 6px; 
}
.coin-amt.rx { color: var(--accent-green); }

/* --- CAROUSEL ANIMATION STATES --- */
.coin-card.active {
    opacity: 1;
    transform: translateX(0) scale(1.1);
    z-index: 10;
    pointer-events: auto;
}
.coin-card.active .coin-info { opacity: 1; }

.coin-card.prev {
    opacity: 0.3;
    transform: translateX(-140px) scale(0.85); 
    z-index: 5;
    filter: blur(2px);
    pointer-events: auto;
}

.coin-card.next {
    opacity: 0.3;
    transform: translateX(140px) scale(0.85); 
    z-index: 5;
    filter: blur(2px);
    pointer-events: auto;
}

.coin-card.off-left {
    opacity: 0;
    transform: translateX(-280px) scale(0.5);
    z-index: 1;
}

.coin-card.off-right {
    opacity: 0;
    transform: translateX(280px) scale(0.5);
    z-index: 1;
}

/* --- LOG THUMBNAIL --- */
.event-thumb-log { 
    width: 28px;
    height: 28px; 
    border-radius: 4px; 
    object-fit: cover; 
    margin-right: 10px; 
    border: 1px solid #333; 
    flex-shrink: 0;
}

/* --- MAKERS GALLERY & GLOSSARY --- */
.maker-section { 
    margin-bottom: 2.5rem; 
    scroll-margin-top: 90px; /* Offset for header/sticky behavior */
}

.maker-name-header { 
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff; 
    border-bottom: 1px solid #333; 
    padding-bottom: 10px; 
    margin-bottom: 15px;
}

.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 12px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    justify-content: center;
}

.glossary-link {
    padding: 6px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 20px; /* Pill shape */
    transition: all 0.2s;
    font-size: 0.85rem;
    border: 1px solid #333;
    min-width: 36px;
    text-align: center;
    background: #1a1a1a;
    cursor: pointer;
    user-select: none;
}

.glossary-link:hover {
    background: #333;
    color: #fff;
    border-color: #555;
    transform: translateY(-1px);
}

.glossary-link:active {
    transform: translateY(0);
}

.series-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 1.5rem; 
}

.series-card { 
    background: var(--secondary-bg);
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    overflow: hidden; 
    cursor: pointer; 
    transition: transform 0.2s, border-color 0.2s;
}
.series-card:hover { transform: translateY(-3px); border-color: #666; }

.series-thumb { 
    width: 100%;
    height: 140px; 
    object-fit: cover; 
    background: #000; 
    border-bottom: 1px solid #222;
}

.series-info { padding: 14px; }
.series-title { font-weight: 600; font-size: 1rem; margin-bottom: 5px; color: #fff; }
.series-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }

/* --- CONTROLS --- */
.controls-row { 
    display: flex;
    gap: 1rem; 
    align-items: center; 
    justify-content: flex-end; 
    margin-bottom: 1rem; 
}

.form-control { 
    background: #1a1a1a;
    color: #fff; 
    border: 1px solid #333; 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-size: 0.9rem;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent-blue); }

/* --- GROUPS --- */
.group-item { 
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #111; 
    transition: border-color 0.2s;
}

.clickable-row { cursor: pointer; }
.clickable-row:hover { background: #181818; border-color: #555; }

.group-header { 
    background: #151515;
    padding: 6px 10px;
    display: flex; 
    align-items: center; 
    transition: background 0.2s; 
}

.group-image-box { 
    width: 110px;
    height: 110px; 
    margin-right: 15px; 
    border-radius: 6px; 
    perspective: 1000px;
    flex-shrink: 0;
    background: transparent;
    border: none;
}

.coin-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 6px; 
    border: 1px solid #333; 
}

/* Hover effect only if not empty */
.group-image-box:hover .coin-flipper.has-back {
    transform: rotateY(180deg);
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 6px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-front img, .coin-back img { width: 100%; height: 100%; object-fit: cover; }

/* Back is rotated 180 initially */
.coin-back {
    transform: rotateY(180deg);
}

/* CAROUSEL FLIP LOGIC */
.coin-visual {
    width: 110px;
    height: 110px;
    border-radius: 50%; /* Carousel is circular */
    border: none;
    background: transparent;
    box-shadow: none; 
    perspective: 1000px;
    overflow: visible; /* Allow 3D spin */
}

.carousel-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Auto-flip class for carousel */
.carousel-flipper.is-flipped {
    transform: rotateY(180deg);
}

.carousel-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #444; /* Border moved to face */
    background: #000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display:flex; align-items:center; justify-content:center;
}

.carousel-face.gold { border-color: #444; box-shadow: 0 0 20px rgba(234, 179, 8, 0.2); }
.carousel-face.back { transform: rotateY(180deg); }

.carousel-face img { width: 100%; height: 100%; object-fit: cover; }

/* SINGLE PAGE IMAGE STYLES */
.single-img-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-right: 20px;
}

.single-img-box {
    width: 200px; /* 120px * 1.35 = 162px */
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
    background: #000;
    flex-shrink: 0;
}
.single-img-box img { width: 100%; height: 100%; object-fit: contain; }

.group-image-box img { width: 100%; height: 100%; object-fit: cover; }

.group-header-content { display: flex; width: 100%; align-items: center; }
.group-info-col { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }

.group-title { 
    display: flex;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px; 
    color: #fff;
}

/* NEW META TAGS STYLES */
.group-meta-row { 
    display: flex; 
    gap: 8px; 
    font-size: 0.8rem; 
    color: #bbb; 
    margin-bottom: 8px; 
    flex-wrap: wrap; 
    align-items: center;
}
.meta-tag { 
    background: rgba(255,255,255,0.06); 
    padding: 2px 8px; 
    border-radius: 4px; 
    font-weight: 500; 
    font-size: 0.75rem; 
    color: #ccc; 
    border: 1px solid rgba(255,255,255,0.05);
}

.stats-container { display: flex; flex-wrap: wrap; gap: 8px; }

.stats-item { 
    display: flex;
    flex-direction: column; 
    background: rgba(255,255,255,0.03); 
    padding: 4px 8px;
    border-radius: 4px; 
    border-left: 2px solid #444; 
    min-width: 100px; 
}
.stats-item.funding { border-left-color: var(--accent-green); }
.stats-item.activity { border-left-color: var(--accent-yellow); }
.stats-item.status { border-left-color: var(--accent-purple); min-width: 130px; }

.stats-label { font-size: 0.65rem; color: #777; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

.stats-value { 
    font-size: 1rem;
    font-weight: 600; 
    color: #eee;
    margin-top: 2px;
}

/* Clickable Stats Logic */
.clickable-stat {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: all 0.2s;
}
.clickable-stat:hover { opacity: 0.8; text-decoration-style: solid; }

.filter-banner {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-right { font-size: 1.2rem; color: #444; margin-left: 15px; }
.clickable-row:hover .arrow-right { color: #fff; }

.group-content { display: none; background: #0a0a0a; border-top: 1px solid var(--border-color); }
.group-content.active { display: block; }

/* --- SINGLE VIEW NAV (New Layout) --- */
.single-nav-container {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.nav-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-weight: 500;
}
.breadcrumb-link:hover { color: var(--accent-blue); text-decoration: underline; }
.breadcrumb-sep { color: #444; }
.breadcrumb-current { color: #fff; font-weight: 600; }

.series-list-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    padding-left: 2px;
}

.series-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.series-scroll-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    width: 100%;
    align-items: center;
    white-space: nowrap; /* Ensures single row */
}
.series-scroll-track::-webkit-scrollbar { display: none; /* Hide Chrome/Safari scrollbar */ }

.slider-arrow {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 1.2rem;
    user-select: none;
    padding-bottom: 4px; /* Center alignment tweak */
}
.slider-arrow:hover { background: #fff; color: #000; border-color: #fff; }

/* Updated Chip Style */
.nav-chip { 
    display: inline-flex;
    align-items: center; 
    gap: 8px; 
    background: #222; 
    border: 1px solid #444; 
    padding: 6px 12px; 
    border-radius: 20px; 
    color: #ccc; 
    text-decoration: none;
    font-size: 0.85rem; 
    font-weight: 500;
    white-space: nowrap; 
    transition: all 0.2s; 
    flex-shrink: 0; 
    cursor: pointer;
}
.nav-chip:hover { background: #333; color: #fff; border-color: #666; }
.nav-chip.active { background: #fff; color: #000; border-color: #fff; }
.nav-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }


/* --- TABLE --- */
.addr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.addr-table th, .addr-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #222; }
.addr-table th { 
    background: #111;
    color: #666; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    font-weight: 600;
    letter-spacing: 0.05em; 
    user-select: none;
}
.addr-table th.sortable { cursor: pointer; transition: background 0.2s; }
.addr-table th.sortable:hover { background: #222; color: #fff; }

.sort-indicator { margin-left: 5px; font-size: 0.8em; color: var(--accent-blue); }
.serial-col { width: 60px; font-weight: bold; color: var(--accent-blue); }

.addr-full { display: inline; font-family: 'Inter', monospace; }
.addr-short { display: none; font-family: 'Inter', monospace; }

.usd-value { font-size: 0.8em; color: var(--text-muted); margin-left: 6px; font-weight: normal; }
.usd-inline { display: inline-block; font-size: 0.85em; color: var(--accent-green); font-weight: normal; margin-left: 6px; }

@keyframes highlightFade {
    0% { background-color: var(--accent-yellow); color: #000; box-shadow: none; }
    50% { background-color: var(--accent-yellow); color: #000; box-shadow: none; }
    75% { background-color: rgba(255, 193, 7, 0.1); color: inherit; box-shadow: inset 0 0 0 2px var(--accent-yellow); }
    100% { 
        background-color: transparent;
        color: inherit; 
        box-shadow: inset 0 0 0 2px var(--accent-yellow); 
    }
}
.highlight-row { animation: highlightFade 6s forwards; }

/* --- ALERT STYLES (Public) --- */
.alert-card {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--accent-red);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alert-card.severity-medium { background: rgba(255, 193, 7, 0.1); border-color: var(--accent-yellow); }
.alert-card.severity-low { background: rgba(23, 162, 184, 0.1); border-color: #17a2b8; }
.alert-message { font-size: 0.95rem; color: #fff; font-weight:500; }
.alert-meta { font-size: 0.8rem; color: #aaa; margin-top: 4px; }
.alert-info-box {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 6px;
    border-left: 2px solid #555;
}

/* --- PAGINATION --- */
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 10px; font-size: 0.9rem; color: #aaa; }
.pagination-btn { background: #222; border: 1px solid #333; color: white; padding: 4px 12px; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: transparent; }
.pagination-btn:hover:not(:disabled) { background: #fff; color: #000; border-color: #fff; }
.pagination-btn-inner { background: transparent; border: 1px solid #444; color: #ccc; }
.pagination-btn-inner:hover:not(:disabled) { background: #333; border-color: #666; color: #fff; }
.list-info { text-align: center; color: #666; font-size: 0.8rem; margin-top: 10px; }

/* --- API PAGE --- */
.api-block { background: #111; border: 1px solid #333; border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.api-method { display: inline-block; padding: 4px 8px; border-radius: 4px; font-weight: bold; font-family: monospace; font-size: 0.9rem; margin-right: 10px; }
.method-get { background: rgba(40, 167, 69, 0.1); color: var(--accent-green); border: 1px solid rgba(40, 167, 69, 0.3); }
.api-url { font-family: monospace; color: #fff; font-size: 1.1rem; word-break: break-all; }
.api-desc { color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.code-block { background: #000; border: 1px solid #333; border-radius: 6px; padding: 15px; margin-top: 15px; font-family: monospace; font-size: 0.9rem; color: #d4d4d4; overflow-x: auto; white-space: pre; }
.subsection-title { color: #fff; margin-top: 25px; margin-bottom: 10px; border-bottom: 1px solid #333; padding-bottom: 5px; font-size: 1.1rem; font-weight: 600; }

/* --- ABOUT --- */
.about-block { margin-bottom: 1.5rem; line-height: 1.6; color: #ccc; }
.about-block h4 { color: #fff; margin-bottom: 0.5rem; font-size: 1.1rem; border-left: 3px solid var(--accent-blue); padding-left: 10px; }
.about-link { color: var(--accent-blue); text-decoration: none; }
.about-link:hover { text-decoration: underline; }

/* --- FOOTER --- */
.site-footer { border-top: 1px solid var(--border-color); margin-top: 2rem; padding-top: 1rem; padding-bottom: 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.footer-link { color: var(--text-muted); text-decoration: none; border-bottom: 1px dotted #555; transition: all 0.2s; }
.footer-link:hover { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.site-logo { max-height: 100px; width: auto; display: block; }

/* --- SUBMIT FORM --- */
.form-section-label { color: #fff; margin-bottom: 8px; font-weight: 600; display: block; font-size: 0.95rem; }
.form-hint { color: #888; font-size: 0.85rem; margin-bottom: 10px; display: block; line-height: 1.4; }
.submit-btn { background: var(--accent-blue); color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: background 0.2s; width: 100%; margin-top: 15px; }
.submit-btn:hover { background: #2563eb; }
.submit-btn:disabled { background: #333; cursor: not-allowed; color: #777; }

#qr-modal {
    display: none; 
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center; justify-content: center; flex-direction: column;
}
#qr-reader {
    width: 100%; max-width: 500px; background: #000; border: 2px solid #333;
}
#qr-close-btn {
    margin-top: 20px; padding: 10px 20px; background: #dc2626; color: white;
    border: none; border-radius: 4px; cursor: pointer; font-size: 1rem;
}
.scan-btn {
    background: #4b5563; padding: 5px 10px; font-size: 0.8rem; margin-bottom: 5px;
    display: inline-flex; align-items: center; gap: 5px; width: auto;
}

.link-menu-container { position: relative; display: inline-block; }
.link-dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 5px 0;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    left: 0;
    top: 100%;
}
.link-dropdown.active { display: block; }
.link-option {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
}
.link-option:hover { background: #333; color: #fff; }

.maker-brand-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.maker-logo {
    max-width: 400px; 
    width: 100%;      
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Image Modal (Lightbox) */
.img-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.img-modal-content {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
}

.img-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10001;
}
.img-modal-close:hover { color: var(--accent-red); }

/* Funding Bar Labels */
.funding-bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: width 0.5s ease;
}

.funding-bar-text {
    font-size: 0.7rem;
    color: #000; 
    font-weight: 700;
    white-space: nowrap;
    padding: 0 4px;
    text-shadow: 0 0 2px rgba(255,255,255,0.5);
    opacity: 1;
}

/* Unfunded segment text needs to be light */
.funding-bar-segment.unfunded .funding-bar-text {
    color: #888;
    text-shadow: none;
}

/* Hide text on very small segments to prevent clutter */
.funding-bar-segment[style*="width: 0"] .funding-bar-text,
.funding-bar-segment[style*="width: 1%"] .funding-bar-text,
.funding-bar-segment[style*="width: 2%"] .funding-bar-text,
.funding-bar-segment[style*="width: 3%"] .funding-bar-text,
.funding-bar-segment[style*="width: 4%"] .funding-bar-text {
    opacity: 0; 
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .single-img-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-right: 15px;
        margin-bottom: 15px;
    }

    .maker-section .stats-item {
        flex: 1 1 100% !important; 
    }

    .maker-brand-container {
        flex-direction: column;
        text-align: center;
    }
    .maker-logo {
        max-width: 300px; 
    }

    .public-container { padding: 10px; }
    
    /* REDUCED HEADER WHITESPACE FOR MOBILE */
    .site-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .site-logo { max-height: 80px; max-width: 80%; }

    .site-title-row { flex-direction: row; align-items: center; justify-content: space-between; }
    .site-title { font-size: 1.5rem; }
    .site-subtitle { display: none; }
    .hamburger-btn { display: block; }
    
    .main-nav { 
        display: none;
        flex-direction: column; 
        position: absolute; 
        top: 100%; left: 0; right: 0; 
        width: 100%; 
        background: #111; 
        border-bottom: 1px solid #333; 
        z-index: 1000;
        padding: 10px 0; 
        margin-top: 5px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .main-nav.active { display: flex; }

    .nav-item { 
        flex: none;
        justify-content: flex-start; 
        padding: 15px 20px; 
        font-size: 1rem; 
        border-radius: 0; 
        width: 100%; 
        box-sizing: border-box; 
        border-bottom: 1px solid #222;
    }
    .nav-item:last-child { border-bottom: none; }

    .summary-bar { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-value { font-size: 1.1rem; }

    .panel { padding: 12px; }
    .controls-row { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 8px; 
        align-items: center; 
        margin-top: 15px; 
        justify-content: flex-start; 
    }

    .form-control { 
        flex: 1 1 auto; 
        min-width: 120px; 
        max-width: 100%; 
        font-size: 0.8rem; 
        padding: 6px 4px; 
        text-overflow: ellipsis; 
    }
    .group-header-content { align-items: flex-start; }
    .group-image-box { width: 60px; height: 60px; }
    .group-title { font-size: 1rem; }
    .stats-container { margin-top: 8px; }
    .stats-item { min-width: auto; flex: 1 1 45%; }
    
    .table-responsive { display: block; width: 100%; }
    .addr-table th, .addr-table td { padding: 6px 4px; font-size: 0.75rem; }
    .serial-col { width: 30px; }
    .addr-full { display: none; }
    .addr-short { display: inline; font-size: 0.7rem; }
    .series-grid { grid-template-columns: 1fr; }
    
    /* Carousel Responsive */
    .carousel-container { height: 230px; padding: 0.5rem; }
    .coin-visual { width: 75px; height: 75px; margin-bottom: 8px; }
    .coin-card.active { transform: translateX(0) scale(1.05); }
    .coin-card.prev { transform: translateX(-100px) scale(0.8); }
    .coin-card.next { transform: translateX(100px) scale(0.8); }
    .coin-card.off-left { transform: translateX(-200px) scale(0.5); }
    .coin-card.off-right { transform: translateX(200px) scale(0.5); }
    
    .group-meta-row { gap: 6px; }
    .meta-tag { padding: 2px 6px; font-size: 0.7rem; }
    
    .text-logo { font-size: 1.4rem; }
    .logo-eye-icon { width: 18px; height: 18px; margin-left: 5px; }

    /* --- NEW: Compact Tracked Collections Grid (Homepage) --- */
    #groups-container .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 8px;
        margin-top: 8px;
    }
    
    #groups-container .stats-item {
        flex: none; 
        width: auto;
        min-width: 0;
        margin-bottom: 0;
    }
    
    /* Stack BTC and USD for Funding */
    #groups-container .stats-item.funding .stats-value {
        display: flex;
        flex-direction: column; 
        align-items: flex-start;
        line-height: 1.2;
    }
    
    #groups-container .stats-item.funding .usd-value {
        margin-left: 0 !important; 
        font-size: 0.75rem; 
        margin-top: 2px;
        display: block;
    }

    .single-img-box {
        width: 120px; 
        height: 120px;
    }

    .group-info-col {
        min-width: 0; 
        padding-right: 5px; 
    }

    .group-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .group-title button {
        margin-left: 0 !important;
    }
    
    .group-meta-row {
        flex-wrap: wrap;
    }

    /* Force 2 columns: Addresses (left) and % Funded (right) */
    #single-group-container .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    #single-group-container .stats-item {
        width: auto;
        min-width: 0;
        margin-bottom: 0;
    }
    
    #single-group-container .stats-item.funding .stats-value {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.2;
    }
    
    #single-group-container .stats-item.funding .usd-value {
        margin-left: 0 !important;
        font-size: 0.75rem;
        margin-top: 2px;
        display: block;
    }

    #single-group-container .stats-item.activity {
        display: none;
    }

    .maker-section .stats-item.funding,
    .maker-section .stats-item:nth-child(3) {
        display: none !important;
    }

    .maker-section .stats-item:first-child {
        flex: 1 1 100%;
        margin-bottom: 10px;
        padding: 8px 12px;
    }

    .maker-name-header {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

/* --- TREASURY CHART INTERACTION --- */
.treasury-bar {
    transition: filter 0.2s ease, opacity 0.2s ease;
}
a:hover > div > .treasury-bar {
    filter: brightness(1.2);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
