:root {
    /* DARK MODE (Default) */
    --bg-page: #121212;
    --bg-card: #181818;
    --bg-nav: #181818;
    --bg-item: #1f1f1f; 
    --text-main: #ffffff;
    --icon-main: #202020;
    --text-muted: #a1a1aa;
    --border: #2a2a2a;
    --blue: #11ac9c;
    --blue-light: #0fb2a1;
    --particle-color: 255, 255, 255;
    --promo-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    
    /* Floating Icon Color - Dark Mode */
    --icon-float-color: rgba(255,255, 255, 0.15);
    
    /* Mobile Menu Variables */
    --mobile-overlay: rgba(0,0,0,0.6);
    --bg-mobile-menu: #181818;

    /* SIDEBAR ICON COLOR - Dark Mode Default */
    --sidebar-icon-bg: #facc15; 
}

body, nav, .thread, .hero, .sb-card, .tab, .h-btn, .cat-item, .follow-row, .trend-row, .pagination-container {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* LINK */
a:link {
  text-decoration: none;
  
}

/* LIGHT MODE VARIABLES */
body.light-mode {
    --bg-page: #f3f4f6;
    --bg-card: #ffffff;
    --bg-nav: #ffffff;
    --bg-item: #f9fafb;
    --text-main: #111827;
    --icon-main: #ffffff;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --particle-color: 0, 0, 0;
    --promo-gradient: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    
    /* Floating Icon Color - Light Mode */
    --icon-float-color: rgba(0,0, 0, 0.08);
    
    --mobile-overlay: rgba(0,0,0,0.4);
    --bg-mobile-menu: #ffffff;

    /* SIDEBAR ICON COLOR - Light Mode Override */
    --sidebar-icon-bg: #fa154a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-page); 
    color: var(--text-main); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
    width: 100%;
}

/* ================= NAVBAR ================= */
nav {
    background-color: var(--bg-nav);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0; 
    border-bottom: 1px solid var(--border);
    position: sticky; 
    top: 0; 
    z-index: 1000;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-l, .nav-r { display: flex; align-items: center; gap: 20px; }

/* Logo & Desktop Nav */
.nav-l i.bi-app-indicator { font-size: 25px; line-height: 1; flex-shrink: 0; }
.logo { 
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700; 
    white-space: nowrap; 
    letter-spacing: -0.5px; 
    flex-shrink: 0;
}
.logo .txt-next { color: #eb5070; }
.logo .txt-forum { color: #0fb2a1; }

.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 400; white-space: nowrap; }


/* Logo abimasi */
     @keyframes logoIcon {
      0%, 100% {
        color: #0fb2a1;
        filter: drop-shadow(0 0 6px #0fb2a1);
      }
      50% {
        color: #eb5070;
        filter: drop-shadow(0 0 14px #0fb2a1);
      }
    }

    .logo i {
      font-size: 28px;
  /* Terapkan animasi: durasi 4 detik agar lebih santai/elegan */
      animation: logoIcon 4s infinite alternate;
    }


/* Right Side Items */
.bi-search { font-size: 18px; color: var(--text-main); cursor: pointer; transition: color 0.2s; }
.bi-search:hover { color: var(--blue); }

/* Theme Icon */
.theme-icon {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    margin-right: -5px;
}
.theme-icon:hover { color: var(--blue); background-color: var(--bg-item); }

/* Buttons */
.btn-reg, .btn-login { 
    padding: 10px 14px; 
    border-radius: 6px; border: none; cursor: pointer; font-size: 13px; 
    font-weight: 500; transition: opacity 0.3s; white-space: nowrap; 
}
.btn-reg { background: #eb5070; color: white; }
.btn-login { background: #0fb2a1; color: white; }
.btn-login:hover { opacity: 0.9; }

/* HAMBURGER ICON */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
    padding: 5px;
}

/* ================= MOBILE MENU DRAWER ================= */
.mobile-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--mobile-overlay);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-nav {
    position: fixed;
    top: 60px;
    right: -280px; 
    width: 280px;
    max-width: 85%;
    height: calc(100vh - 60px);
    background-color: var(--bg-mobile-menu);
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--border);
}

/* Active States */
.mobile-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav.active { right: 0; }

/* Mobile Menu Content */
.mobile-nav-header {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.mobile-link {
    display: flex;
    padding: 12px 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-item);
    transition: background 0.2s;
    align-items: center;
    gap: 10px;
}
.mobile-link:hover { background-color: var(--bg-item); color: var(--blue); }
.mobile-link i { font-size: 16px; color: var(--text-muted); }
.mobile-link:hover i { color: var(--blue); }

.mobile-btn-group {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-btn-group .btn-login, .mobile-btn-group .btn-reg {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}


a:visited {
  color: #ffe300;
}
a:hover {
  color: #ffe300;
}
a:active {
  color: #eb5070;
}
/* ================= MAIN LAYOUT ================= */
.container { 
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1fr 310px; 
    gap: 25px; 
    width: 100%;
}

/* MAIN CONTENT AREA */
main { min-width: 0; } 

/* AD FULL STYLE */
.ad-full { 
    grid-column: 1/-1; 
    background: var(--bg-item); 
    border: 1px solid var(--border); 
    width: 100%; 
    height: 90px; 
    margin: 0px 0 0px 0; 
    padding: 12px; 
    text-align: center; 
    color: #444; 
    font-size: 11px; 
    text-transform: uppercase; 
    border-radius: 8px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s; 
    box-sizing: border-box;
    overflow: hidden;
}
body.light-mode .ad-full { background: var(--bg-card); color: #9ca3af; }

/* =================== PROMO BANNER =================== */
.promo-banner {
    background: var(--promo-gradient);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(30px, 5vw, 50px) 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 280px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}
.blob-1 { top: -20px; left: -20px; width: 120px; height: 120px; background: #4f46e5; }
.blob-2 { bottom: -30px; right: -30px; width: 160px; height: 160px; background: #db2777; }
.blob-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 220px; height: 220px; background: #059669; opacity: 0.15; }

.floating-icon {
    position: absolute;
    pointer-events: none; 
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-float-color);
    will-change: transform;
    left: 0;
    top: 0;
}

.promo-inner {
    z-index: 2; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
    gap: 15px;
}
.promo-h {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
body.light-mode .promo-h { color: #111827; text-shadow: none; }
.promo-p {
    font-size: 14px;
    color: #e5e7eb;
    margin: 0;
    max-width: 90%;
    line-height: 1.5;
}
body.light-mode .promo-p { color: #4b5563; }

.promo-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    flex-wrap: wrap; 
    justify-content: center;
}
.av-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    margin-left: -8px;
    transition: transform 0.2s;
    cursor: pointer;
    background: var(--bg-card);
}
.av-circle:first-child { margin-left: 0; }
.av-circle:hover { transform: scale(1.15); z-index: 10; }

body.light-mode .av-circle { border-color: #f3f4f6; }
.av-circle-more { background: #374151; font-size: 9px; }
body.light-mode .av-circle-more { background: #d1d5db; color: #374151; }

.promo-stats {
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 10px; 
}
.promo-stats strong { color: #34d399; }
body.light-mode .promo-stats { color: #6b7280; }
body.light-mode .promo-stats strong { color: #059669; }

.btn-promo {
    background-color: #0fb2a1; 
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(15, 178, 161, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    margin-top: 5px;
    position: relative;
    z-index: 5; 
    width: auto; 
    min-width: 160px;
}
.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(15, 178, 161, 0.35);
    background-color: #0ea58f; 
}

/* HERO SECTION */
.hero { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    padding: clamp(20px, 4vw, 30px); 
    margin-bottom: 25px; 
    position: relative; 
    overflow: hidden; 
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#particleCanvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; 
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 700; margin-bottom: 15px; }
.hero p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 25px; max-width: 100%; }
.hero-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.h-btn { background: var(--bg-item); border: 1px solid var(--border); padding: 12px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; transition: 0.3s; position: relative; z-index: 2; justify-content: center; }
.h-btn i { color: var(--blue-light); font-size: 16px; flex-shrink: 0; }
.h-btn:hover { border-color: var(--blue); }

/* TABS */
.tabs { display: flex; background: var(--bg-item); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1; padding: 15px 10px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; color: #777; border-right: 1px solid var(--border); transition: 0.3s; white-space: nowrap; min-width: 80px;}
.tab.active { background: var(--bg-card); color: var(--text-main); border-bottom: 2px solid var(--blue); }
.tab:last-child { border-right: none; }

/* THREAD */
.thread { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 15px; }
.thread-top { display: flex; justify-content: space-between; margin-bottom: 15px; gap: 10px; }
.user-meta { display: flex; gap: 12px; align-items: center; overflow: hidden; }
.av { width: 40px; height: 40px; border-radius: 50%; background: #4b5563; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0;}
.u-txt h4 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-txt span { font-size: 11px; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.thread h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.thread p { font-size: 13px; color: var(--text-muted); line-height:1.6; margin-bottom: 15px; }

.thread-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid var(--border); 
    padding-top: 12px; 
    font-size: 13px; 
    color: var(--text-muted); 
    flex-wrap: wrap; 
    gap: 10px; 
}
.stats { display: flex; gap: 15px; align-items: center; }
.stats span { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: 0.2s; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.thread-footer div:not(.stats) { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-footer div:not(.stats) strong { color: var(--text-main); }
.stats span:hover, .thread-footer div:not(.stats):hover { color: var(--text-main); }

.trend-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); align-items: center; }

/* PAGINATION */
.pagination-container {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; margin-bottom: 0px; gap: 10px;
    background-color: var(--bg-item); border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 20px;              
}
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-controls { display: flex; gap: 0; align-items: center; }
.page-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-main);
    width: 36px; height: 36px; border-radius: 0; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; font-size: 14px; position: relative; z-index: 1; margin-left: -1px;
}
.page-btn:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; margin-left: 0; }
.page-btn:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.page-btn:hover:not(.disabled) { border-color: var(--blue); color: var(--blue); background: var(--bg-card); z-index: 2; }
.page-btn.active { background: var(--blue); color: white; border-color: var(--blue); z-index: 1; }
.page-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.btn-text-mobile { display: none; }
.pagination-controls button:not(:first-child):not(:last-child) { display: flex; }

/* DROPDOWN MENU */
.dropdown-container { position: relative; }
.dropdown-btn { cursor: pointer; padding: 5px; border-radius: 4px; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.dropdown-btn:hover { background: var(--bg-item); }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: 100%; width: 190px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); z-index: 2000;
    overflow: hidden; margin-top: 5px; animation: fadeIn 0.15s ease-out;
}
.dropdown-menu.show { display: block; }
.dropdown-item { padding: 12px 16px; font-size: 13px; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background 0.2s; }
.dropdown-item:hover { background: var(--bg-item); }
.dropdown-item i { font-size: 14px; color: var(--text-muted); }
.dropdown-item:hover i { color: var(--text-main); }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger i { color: #ef4444; }
.dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* SIDEBAR */
aside { min-width: 0; }
.sb-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; }

/* UPDATED SIDEBAR TITLE STYLES */
.sb-title { 
    padding: 15px 20px; 
    font-size: 13px; 
    font-weight: 700; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* ICON CIRCLE STYLE */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 20%;
    background-color: var(--sidebar-icon-bg);
    color: var(--icon-main);
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.3s ease;
}
.icon-circle:hover {
    transform: scale(1.1) rotate(10deg);
}

/* TAG INPUT BOX */
.tag-input-container {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.tag-input {
    flex: 1;
    background: var(--bg-item);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s;
}
.tag-input:focus { border-color: var(--blue); }
.tag-add-btn {
    background: var(--blue);
    color: var(--icon-main);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.tag-add-btn:hover { opacity: 0.9; }

/* CATEGORIES */
.cat-item { display: block; } 
.cat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; font-size: 13px; cursor: pointer; 
    border-bottom: 1px solid var(--border); transition: 0.2s;
    user-select: none;
}
.cat-row:hover { background: var(--bg-item); }
.cat-row i { transition: transform 0.3s ease; }
.cat-item.open .cat-row i { transform: rotate(180deg); }
.sub-cat { display: none; background-color: var(--bg-page); }
.cat-item.open .sub-cat { display: block; }
.sub-cat-item {
    padding: 10px 20px 10px 35px; font-size: 12px;
    color: var(--text-muted); border-bottom: 1px solid var(--border);
    cursor: pointer; transition: 0.2s;
}
.sub-cat-item:hover { background: var(--bg-item); color: var(--text-main); }
.cat-item:last-child .cat-row { border-bottom: none; }
.sub-cat-item:last-child { border-bottom: none; }

/* TAG CLOUD */
.tag-wrap {
    position: relative; height: 300px; width: 100%; overflow: hidden; 
    background-color: transparent; cursor: default;
}
.tag-wrap span {
    position: absolute; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: color 0.2s, transform 0.2s; line-height: 1; 
    transform-origin: center center; z-index: 5;
}
.tag-wrap span:hover { z-index: 100; transform: scale(1.1) !important; }

/* FOLLOW & TRENDING ROWS */
.follow-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); transition: 0.2s; }
.follow-row:hover { background: var(--bg-item); }
.follow-txt b { font-size: 13px; display: block; }
.follow-txt span { font-size: 11px; color: var(--text-muted); }

.trend-row { display: flex; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--border); transition: 0.2s; }
.trend-row:hover { background: var(--bg-item); }
.trend-c { flex: 1; min-width: 0; }
.trend-c a { font-size: 14px; font-weight: 700; color: var(--blue-light); line-height: 1.4; text-decoration: none; margin-bottom: 5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-c p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }

.btn-view { width: calc(100% - 40px); margin: 15px 20px; padding: 8px; background: var(--bg-item); border: 1px solid var(--border); color: var(--text-main); border-radius: 6px; cursor: pointer; font-size: 12px; transition: 0.2s; }
.btn-view:hover { border-color: var(--blue); color: var(--blue); }

/* FOOTER */
footer { text-align: center; padding: 30px 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; margin-top: 40px; background-color: var(--bg-page); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 400; transition: color 0.2s; font-size: 12px; }
.footer-links a:hover { color: var(--text-main); }

/* ================= RESPONSIVE MEDIA QUERIES ================= */

/* Tablets (iPad, etc) */
@media (max-width: 992px) { 
    .container { grid-template-columns: 1fr; } 
    .promo-inner { max-width: 100%; }
}

/* Mobile Phones (General) */
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .btn-reg, .btn-login { display: none; }
    .mobile-toggle { display: block; }
    .nav-r { gap: 10px; }
    .nav-container { padding: 0 15px; } 
    .logo { margin-right: 5px; }
    
    .container { padding: 0 15px; }
    
    /* Promo Banner Mobile Adjustments */
    .promo-banner { padding: 30px 15px; min-height: auto; }
    .blob-1 { width: 100px; height: 100px; }
    .blob-2 { width: 140px; height: 140px; }
    
    /* Hero Mobile */
    .hero { padding: 20px 15px; } 
    .hero-btns { grid-template-columns: 1fr 1fr; }
    
    /* Tag Cloud Height Adjustment */
    .tag-wrap { height: 250px; }
    
    /* THREAD FOOTER MOBILE - Centered layout */
    .thread-footer {
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px;
        text-align: center;
    }
    .stats {
        justify-content: center; 
        gap: 20px; 
        width: 100%;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
    }
    .thread-footer div:not(.stats) { 
        justify-content: center; 
        text-align: center; 
        font-size: 12px; 
        line-height: 1.4;
        flex-direction: column; 
        gap: 5px;
    }
    .thread-footer div:not(.stats) i { display: none; } 

    /* PAGINATION MOBILE */
    .pagination-container { 
        flex-direction: column; 
        gap: 10px; 
        padding: 15px; 
    }
    .pagination-info { 
        width: 100%; 
        text-align: center; 
        margin-bottom: 5px; 
    }
    .pagination-controls { 
        width: 100%; 
        justify-content: space-between; 
    }
    .pagination-controls button:not(:first-child):not(:last-child) { display: none; }
    .page-btn { 
        width: 48%; 
        height: 40px; 
        border-radius: 6px !important; 
        margin-left: 0 !important; 
        justify-content: center;
        gap: 5px;
    }
    .btn-text-mobile { display: inline; font-weight: 500; }
}

/* Small Mobile Phones (iPhone SE, Galaxy Mini, etc) */
@media (max-width: 380px) {
    .nav-l { gap: 10px; }
    .logo { font-size: 18px; }
    .thread { padding: 15px; } 
    .u-txt h4 { font-size: 12px; }
    .promo-stats { font-size: 12px; }
    .btn-promo { width: 100%; }
    .footer-links { gap: 10px; }
    .hero-btns { grid-template-columns: 1fr; }
}




  .buy-gradient {
    background: linear-gradient(90deg, #0fb2a1, #eb5070, #0fb2a1);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientMove 3s linear infinite;
  }

  @keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }