:root { 
    --green: #004D40; 
    --pink: #f91880; 
    --gray: #818c99; 
    --border: #eff3f4; 
    --bg: #f2f4f7; 
    --indigo: #1877F7; 
}

body { 
    background: var(--bg); 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    color: #0f1419; 
    overflow-x: hidden; 
}

.container { display: block; justify-content: center; }

@media (min-width: 769px) {
    .container { padding-top: 20px; }
}

@media (max-width: 768px) { 
    body { background: #F0F2F5; } 
}

main { width: 100%; max-width: 600px; padding-bottom: 20px; }

.sticky-add-btn { position: fixed; bottom: 30px; right: 30px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: white; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2100; transition: transform 0.2s, bottom 0.3s; }
@media (max-width: 768px) { .sticky-add-btn { bottom: 85px; right: 20px; } .sticky-add-btn.fab-down { bottom: 25px; } }

/* SUGGESTION RAIL */
.suggestion-rail { background: white; padding: 10px 0; border-bottom: 2px solid #E2E8F0; border-top: 1px solid var(--border); }
@media (min-width: 769px) { .suggestion-rail { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } }
.rail-header { padding: 0 10px 8px; font-weight: 400; font-size: 14px; font-family: 'Montserrat'; color: #000; }
.rail-track { display: flex; overflow-x: auto; gap: 12px; padding: 0 10px; scrollbar-width: none; }
.rail-card { flex: 0 0 150px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; cursor: pointer; }
.rail-cover { width: 100%; height: 85px; object-fit: cover; background: var(--green); border-bottom: 1px solid var(--border); }
.rail-info { padding: 6px; display: flex; flex-direction: column; flex: 1; }
.rail-name { font-weight: 700; font-size: 14px; color: #0f1419; text-decoration: none; }
.rail-join-btn { margin-top: auto; background: #E6F2F2; color: black; border: none; padding: 8px 0; border-radius: 14px; font-weight: 600; cursor: pointer; }
.rail-meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; display: block; }

/* REACTION PARTICLES (Global Utility) */
.particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 10; background-color: var(--pink); }

.social-proof { display: flex; align-items: center; margin-bottom: 6px; font-size: 10px; color: var(--gray); font-weight: 500; overflow: hidden; }
.social-proof img { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid white; margin-left: -6px; flex-shrink: 0; object-fit: cover; }
.social-proof img:first-child { margin-left: 0; }

/* Skeleton */
.skeleton-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 9px; }
.skeleton-shimmer { 
    background: #e9ecef; 
    animation: ashley-pulse 1.5s ease-in-out infinite; 
    border-radius: 99px; 
    opacity: 1;
}

@keyframes ashley-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.sk-group-pfp { width: 40px; height: 40px; border-radius: 50px; flex-shrink: 0; }
.sk-group-name { width: 30%; height: 10px; margin-bottom: 8px; }
.sk-author { width: 15%; height: 8px; }
.sk-line { width: 100%; height: 9px; margin-top: 14px; }
.sk-line-mid { width: 85%; height: 9px; margin-top: 10px; }
.sk-line-short { width: 40%; height: 9px; margin-top: 10px; }
@media (max-width: 768px) { .skeleton-card { border: none; border-bottom: 2px solid #CED0D4; border-radius: 0; margin-bottom: 0; padding: 16px 12px; } }





/* COLOUM */
.app-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 600px) 1fr; 
    gap: 32px;
    width: 100%;
    max-width: 1300px; 
    margin: 0 auto;
    align-items: start;
    min-height: 100vh;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.sidebar-left, .sidebar-right { display: none; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.sidebar-left::-webkit-scrollbar, .sidebar-right::-webkit-scrollbar { display: none; }
.sidebar-sticky { display: flex; flex-direction: column; gap: 10px; width: 100%; padding-bottom: 20px; }

/*DESKTOP*/
@media (min-width: 1200px) {
    .sidebar-left, .sidebar-right {
        display: block;
    }
}

/* TABLET*/
@media (min-width: 850px) and (max-width: 1199px) {
    .app-layout {
        grid-template-columns: 280px minmax(0, 600px);
        justify-content: center;
        gap: 20px;
        padding-left: 10px;
    }
    .sidebar-left { display: block; }
    .sidebar-right { display: none; }
}

@media (max-width: 849px) {
    .app-layout {
        display: block;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    main { width: 100% !important; max-width: 100% !important; margin: 0 auto !important; }
}

.sidebar-label { font-weight: 600; font-size: 15px; color: #050505; font-family: 'Inter', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 5px;
    text-decoration: none;
    color: #000000; 
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-item:hover { background: rgba(0, 0, 0, 0.05); }

.sidebar-icon {
    width: 24px; height: 24px; flex-shrink: 0; display: block; color: #536471;
}

.sidebar-pfp {
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
    background: #eff3f4; display: flex; align-items: center; justify-content: center;
}

.sidebar-pfp img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-divider { border: 0; border-top: 1px solid var(--border); margin: 8px 12px; }

.sidebar-footer { padding: 10px; display: flex; flex-wrap: wrap; gap: 0 8px; }
.sidebar-footer a { font-size: 13px; color: var(--gray); text-decoration: none; opacity: 0.8; }
.sidebar-footer a:hover { text-decoration: underline; }
.sidebar-footer .dd-copyright { font-size: 12px; color: var(--gray); opacity: 0.6; margin-top: 8px; width: 100%; }





/* SCROLLBAR*/
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.45); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.6); }
* { scrollbar-width: auto; scrollbar-color: rgba(0, 0, 0, 0.4) transparent; }
html { scrollbar-gutter: stable; }

@media (max-width: 768px) {
    *::-webkit-scrollbar { display: none !important; }
    * { scrollbar-width: none !important; }
    * { -ms-overflow-style: none; }
}







/* WHO TO FOLLOW COMPONENT */
.who-follow-card { background: transparent; border: none; padding: 0; }
.who-row { display: flex; align-items: center; padding: 12px 0; gap: 12px; cursor: pointer; transition: background 0.2s; }
.who-row:last-of-type { border-bottom: none; }
.who-pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eee; }
.who-info { flex: 1; min-width: 0; }
.who-name { font-weight: 700; font-size: 14px; color: #000; display: flex; align-items: center; gap: 4px; line-height: 1.2; }
.who-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-handle { color: var(--gray); font-size: 14px; }
.btn-follow-sm { background: var(--green); color: white; border: none; padding: 7px 12px; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform 0.1s; }
.btn-follow-sm.following { background: #fff; color: #000; border: 1px solid var(--border); }