/* ==========================================================================
   GIALAIER — PHỐ NÚI PLEIKU TRẺ TRUNG & NĂNG ĐỘNG
   Phong cách hiện đại, tươi sáng, kết nối nhịp sống giới trẻ Phố Núi Pleiku 81
   Biển Hồ xanh biếc, Núi Hàm Rồng, Hàng thông trăm tuổi & Hoa Dã Quỳ rực rỡ
   ========================================================================== */

:root {
    /* Fresh Pleiku Mountain Town Palette */
    --pleiku-green: #10b981;
    --pleiku-green-dark: #059669;
    --pleiku-green-light: #ecfdf5;
    --pleiku-green-glow: rgba(16, 185, 129, 0.25);

    --sky-cyan: #06b6d4;
    --sky-cyan-dark: #0284c7;
    --sky-cyan-light: #f0f9ff;

    --sun-gold: #f59e0b;
    --sun-gold-light: #fef3c7;
    --sun-gold-dark: #d97706;

    --bazan-orange: #f97316;
    --bazan-light: #fff7ed;

    --berry-rose: #f43f5e;
    --berry-light: #fff1f2;

    /* Canvas & Surfaces */
    --canvas-bg: #f8fafc;
    --card-surface: #ffffff;
    --card-border: #e2e8f0;
    --card-border-subtle: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Radii & Shadows */
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-dock: 0 20px 45px -8px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body.pleiku-theme,
body {
    font-family: var(--font-body);
    background-color: var(--canvas-bg);
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 15px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(245, 158, 11, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   YOUTHFUL PLEIKU TOPBAR
   ========================================================================== */
.pleiku-topbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pleiku-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.brand-gl-mark {
    width: 44px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.gl-mark-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.pleiku-brand:hover .brand-gl-mark {
    transform: scale(1.12) rotate(-3deg);
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
    letter-spacing: 0.1px;
}

/* Modern Search Pill */
.pleiku-search-pill {
    flex: 1;
    min-width: 0;
    max-width: 480px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0 16px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pleiku-search-pill:focus-within {
    background: #ffffff;
    border-color: var(--pleiku-green);
    box-shadow: 0 0 0 3px var(--pleiku-green-glow);
}

.pleiku-search-pill .search-ico {
    color: var(--text-muted);
    font-size: 20px;
    flex-shrink: 0;
}

.pleiku-search-pill input {
    flex: 1;
    min-width: 0;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-primary);
    border: none;
    outline: none;
}

.pleiku-search-pill input::placeholder {
    color: var(--text-faint);
}

.btn-clear-search {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-kbd {
    font-size: 10.5px;
    font-weight: 700;
    background: #e2e8f0;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Topbar Actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    height: 40px;
}

.btn-create-post-vibrant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    flex-shrink: 0;
}

.btn-create-post-vibrant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-install-app-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.btn-install-app-pill:hover {
    background: #f8fafc;
    border-color: var(--pleiku-green);
    color: var(--pleiku-green-dark);
}

/* ==========================================================================
   KHOẢNH KHẮC PHỐ NÚI (PLEIKU STORIES BAR)
   ========================================================================== */
.pleiku-stories-bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding: 14px 0 12px 0;
    overflow: hidden;
}

.stories-scroll-track {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-scroll-track::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    width: 76px;
    transition: transform 0.2s ease;
}

.story-item:hover {
    transform: translateY(-2px);
}

.story-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f59e0b, #ec4899, #8b5cf6, #06b6d4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.story-item:hover .story-avatar-wrap {
    transform: scale(1.05);
}

.story-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    display: block;
}

.add-story-wrap {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pleiku-green);
}

.add-story-wrap .material-icons-round {
    font-size: 28px;
}

.story-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Story Gradient Variations */
.gradient-lake { background: linear-gradient(45deg, #0284c7, #06b6d4, #10b981); }
.gradient-coffee { background: linear-gradient(45deg, #b45309, #d97706, #f59e0b); }
.gradient-sun { background: linear-gradient(45deg, #f97316, #f59e0b, #fbbf24); }
.gradient-flower { background: linear-gradient(45deg, #f59e0b, #eab308, #84cc16); }
.gradient-pine { background: linear-gradient(45deg, #047857, #10b981, #34d399); }
.gradient-beef { background: linear-gradient(45deg, #dc2626, #ea580c, #f97316); }
.gradient-cloud { background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4); }

/* ==========================================================================
   MAIN PLEIKU CONTAINER & HERO GRID
   ========================================================================== */
.pleiku-main,
.bento-main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 20px 120px 20px;
}

.pleiku-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-card {
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Hero Greeting Card */
.hero-greeting-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 40%, #f0f9ff 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.greeting-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pleiku-green-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

.greeting-headline {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.greeting-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 620px;
}

.greeting-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 11px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-primary);
}

/* Hero Weather Card */
.hero-weather-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.weather-place {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #0369a1;
    display: block;
}

.weather-alt-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.sun-cloud-emoji {
    font-size: 32px;
}

.weather-temp-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.temp-val {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.temp-deg {
    font-size: 26px;
    font-weight: 700;
    color: #0284c7;
}

.temp-badge-cool {
    margin-left: 8px;
    background: #ffffff;
    color: #0284c7;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.weather-vibe-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
}

.weather-fun-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fun-chip {
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.chip-fresh {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
}

.weather-tip-strip {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
}

/* ==========================================================================
   DISTRICT CAPSULES BAR (17 HUYỆN THỊ GIA LAI)
   ========================================================================== */
.district-orbit-wrapper {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.orbit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.orbit-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.orbit-label .material-icons-round {
    font-size: 17px;
    color: var(--pleiku-green);
}

.btn-reset-filter {
    font-size: 12px;
    color: var(--pleiku-green-dark);
    font-weight: 700;
}

.btn-reset-filter:hover {
    text-decoration: underline;
}

.district-capsules-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.district-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.district-capsule:hover {
    background: #ffffff;
    border-color: var(--pleiku-green);
    color: var(--pleiku-green-dark);
    transform: translateY(-1px);
}

.district-capsule.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: var(--pleiku-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.district-capsule .capsule-code {
    font-weight: 700;
    font-size: 12px;
}

/* ==========================================================================
   FEED & SUB-FILTERS
   ========================================================================== */
.feed-header-bar {
    margin-bottom: 18px;
}

.sub-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chip {
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.filter-chip:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

/* Social Posts Stream */
.bento-posts-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bento-post-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bento-post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-gem {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.author-meta h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-verified {
    font-size: 16px;
    color: #0284c7;
}

.author-sub {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
}

.category-glass-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.post-body-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 14px;
}

.post-hashtag-pill {
    color: #0284c7;
    font-weight: 700;
    cursor: pointer;
}

.post-hashtag-pill:hover {
    text-decoration: underline;
}

.post-media-stage {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    max-height: 380px;
    background: #f1f5f9;
}

.post-media-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-media-stage:hover img {
    transform: scale(1.02);
}

.post-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border-subtle);
    margin-bottom: 12px;
}

.post-interact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bento-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.bento-action-btn:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.bento-action-btn.liked {
    color: var(--berry-rose);
    background: var(--berry-light);
    border-color: #fecdd3;
    animation: heartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.bento-action-btn .material-icons-round {
    font-size: 18px;
}

/* Comments */
.bento-comment-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    padding: 3px 6px 3px 14px;
    margin-bottom: 10px;
}

.bento-comment-form input {
    flex: 1;
    background: transparent;
    font-size: 13px;
    color: var(--text-primary);
}

.btn-bento-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pleiku-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comments-stream-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-bubble-bento {
    background: #f8fafc;
    border: 1px solid var(--card-border-subtle);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
}

.comment-bubble-bento strong {
    color: var(--pleiku-green-dark);
    margin-right: 6px;
}

/* ==========================================================================
   VIEW 2: CHỢ PLEIKU (MARKETPLACE)
   ========================================================================== */
.market-bento-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.market-hero-left h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.market-hero-left p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.market-category-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

.cat-pill {
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.cat-pill:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.cat-pill.active {
    background: var(--pleiku-green);
    border-color: var(--pleiku-green);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.bento-market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-product-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bento-product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-stage {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f1f5f9;
}

.product-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stage-badge-district {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.stage-badge-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    color: var(--pleiku-green-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-details {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title-bento {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-pill {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--pleiku-green-dark);
    margin-bottom: 8px;
}

.product-sub-info {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border-subtle);
    padding-top: 10px;
    margin-bottom: 12px;
}

.btn-open-market-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--pleiku-green-dark);
    transition: all 0.15s ease;
}

.btn-open-market-item:hover {
    background: var(--pleiku-green);
    color: #ffffff;
}

/* ==========================================================================
   VIEW 3: KHÁM PHÁ ĐẠI NGÀN (EXPLORE)
   ========================================================================== */
.explore-hero-bento {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    padding: 26px 30px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.explore-hero-bento h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.explore-hero-bento p {
    font-size: 14px;
    color: var(--text-secondary);
}

.bento-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-explore-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bento-explore-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.explore-frame {
    height: 180px;
    width: 100%;
    background: #f1f5f9;
}

.explore-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-inner {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.explore-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 6px;
}

.explore-inner h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
}

.explore-inner p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-cta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pleiku-green-dark);
    margin-top: auto;
}

/* ==========================================================================
   VIEW 4: CHỦ ĐỀ & HASHTAGS
   ========================================================================== */
.tags-board-tile {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 26px 30px;
    box-shadow: var(--shadow-card);
}

.tags-board-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.bento-tags-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.bento-tag-gem {
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    color: #0284c7;
    font-size: 13.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.15s ease;
}

.bento-tag-gem:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-1px);
}

/* ==========================================================================
   FLOATING DYNAMIC ISLAND DOCK
   ========================================================================== */
.dynamic-island-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    box-shadow: var(--shadow-dock);
    backdrop-filter: blur(16px);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: all 0.18s ease;
}

.dock-item:hover {
    color: var(--text-primary);
}

.dock-item.active {
    color: var(--pleiku-green-dark);
    background: #ecfdf5;
}

.dock-item .material-icons-round {
    font-size: 21px;
}

.dock-pill-dot {
    position: absolute;
    top: 6px;
    right: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bazan-orange);
}

.dock-center-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 4px;
}

.dock-center-action:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
}

/* ==========================================================================
   MODALS & FORMS
   ========================================================================== */
.bento-modal {
    border: none;
    border-radius: var(--radius-xl);
    background: transparent;
    padding: 0;
    max-width: 580px;
    width: 90%;
    margin: auto;
}

.bento-modal::backdrop {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
}

.bento-modal-box {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 28px 30px;
    box-shadow: var(--shadow-hover);
    color: var(--text-primary);
}

.modal-large {
    max-width: 680px;
}

.bento-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--card-border);
}

.bento-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.btn-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.btn-modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.bento-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.composer-meta-pills {
    display: flex;
    gap: 10px;
}

.capsule-select,
.bento-input,
.bento-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.18s ease;
}

.capsule-select:focus,
.bento-input:focus,
.bento-textarea:focus {
    border-color: var(--pleiku-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--pleiku-green-glow);
}

.bento-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bento-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.bento-form-group label .req {
    color: var(--bazan-orange);
}

.bento-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-input-pill-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
}

.form-input-pill-wrap input {
    flex: 1;
    background: transparent;
    font-size: 13.5px;
    color: var(--text-primary);
}

.bento-preview-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-height: 200px;
}

.bento-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-del-img {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.btn-attach-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-attach-pill:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-submit-liquid,
.btn-bento-primary {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.18s ease;
}

.btn-submit-liquid:hover,
.btn-bento-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Product Detail Modal */
.product-modal-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prod-hero-photo {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.prod-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-tag-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
}

.badge-tag-pill.loc {
    color: var(--pleiku-green-dark);
    background: #ecfdf5;
}

.badge-tag-pill.cat {
    color: #0284c7;
    background: #f0f9ff;
}

.prod-modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.prod-price-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 18px;
}

.prod-price-big {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--pleiku-green-dark);
}

.prod-desc-box {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.prod-seller-capsule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    font-size: 13.5px;
}

.prod-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-act-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-act-zalo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0068ff;
    color: #ffffff;
    padding: 12px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

/* Toast */
.bento-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.bento-toast.hidden,
.hidden {
    display: none !important;
}

.hidden-input {
    display: none;
}

/* Guide cards in install modal */
.install-guide-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13px;
}

.guide-card strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.install-brand-mark {
    width: 64px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.install-gl-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.w-full { width: 100%; }

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP & MOBILE)
   ========================================================================== */
@media (max-width: 960px) {
    .pleiku-hero-grid {
        grid-template-columns: 1fr;
    }

    .greeting-headline {
        font-size: 26px;
    }

    .bento-market-grid,
    .bento-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar-inner {
        padding: 8px 12px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .pleiku-brand {
        gap: 6px;
        flex-shrink: 0;
    }

    .brand-title {
        font-size: 20px;
        letter-spacing: -0.5px;
    }

    .brand-sub {
        display: none;
    }

    .pleiku-search-pill {
        min-width: 0;
        max-width: none;
        height: 36px;
        padding: 0 10px;
        gap: 6px;
    }

    .pleiku-search-pill .search-ico {
        font-size: 18px;
    }

    .pleiku-search-pill input {
        min-width: 0;
        font-size: 12.5px;
    }

    .search-kbd {
        display: none;
    }

    .topbar-actions {
        gap: 6px;
        flex-shrink: 0;
        height: 36px;
    }

    /* Hide install app button on mobile topbar to avoid crowding and overflow */
    .btn-install-app-pill {
        display: none !important;
    }

    .btn-create-post-vibrant {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }

    .btn-create-post-vibrant span:not(.material-icons-round) {
        display: none;
    }

    .btn-create-post-vibrant .material-icons-round {
        font-size: 20px;
    }

    .topbar-user-area {
        height: 36px;
        flex-shrink: 0;
    }

    .btn-fb-connect-top {
        height: 36px;
        padding: 0 10px;
        gap: 5px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .user-fb-chip {
        height: 36px;
        padding: 0 10px 0 4px;
        gap: 6px;
        flex-shrink: 0;
        box-sizing: border-box;
        max-width: 110px;
    }

    .user-fb-chip-avatar-wrap {
        width: 28px;
        height: 28px;
    }

    .user-fb-chip-avatar {
        width: 28px;
        height: 28px;
    }

    .user-fb-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    .user-fb-chip-name {
        font-size: 12.5px;
    }

    .user-fb-chip-name .name-full {
        display: none;
    }

    .user-fb-chip-name .name-short {
        display: inline-block;
        max-width: 50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 700;
    }

    .user-fb-chip-badge {
        display: none;
    }

    .pleiku-main {
        padding: 16px 12px 100px 12px;
    }

    .greeting-headline {
        font-size: 22px;
    }

    .bento-posts-masonry {
        grid-template-columns: 1fr;
    }

    .bento-market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-stage {
        height: 135px;
    }

    .product-details {
        padding: 10px 12px;
    }

    .product-title-bento {
        font-size: 13px;
    }

    .product-price-pill {
        font-size: 15px;
    }

    .bento-explore-grid {
        grid-template-columns: 1fr;
    }

    .dynamic-island-dock {
        width: calc(100% - 24px);
        max-width: 380px;
        bottom: 14px;
        padding: 5px 8px;
        justify-content: space-between;
    }

    .dock-item {
        padding: 4px 6px;
        font-size: 10px;
    }

    .bento-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .topbar-inner {
        padding: 8px 8px;
        gap: 6px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-gl-mark {
        width: 32px;
        height: 32px;
    }

    .btn-create-post-vibrant {
        width: 34px;
        height: 34px;
    }

    .user-fb-chip {
        height: 34px;
        padding: 0 8px 0 3px;
        gap: 5px;
        max-width: 95px;
    }

    .user-fb-chip-name .name-short {
        max-width: 42px;
        font-size: 11.5px;
    }

    .btn-fb-connect-top {
        height: 34px;
        padding: 0 8px;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   FACEBOOK AUTHENTICATION & VERIFIED BADGES
   ========================================================================== */

.topbar-user-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 40px;
}

.btn-fb-connect-top {
    background: #1877F2;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    height: 40px;
    padding: 0 16px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.35);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.btn-fb-connect-top:hover {
    background: #0866FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.45);
}

.user-fb-chip {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-pill);
    height: 40px;
    padding: 0 12px 0 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    flex-shrink: 0;
}

.user-fb-chip:hover {
    transform: translateY(-1px);
    border-color: #1877F2;
    background: #f0f7ff;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.16);
}

.user-fb-chip-avatar-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-fb-chip-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-fb-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.user-fb-chip-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.user-fb-chip-name .name-short {
    display: none;
}

.user-fb-chip-name .name-full {
    display: inline-block;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-fb-chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1px;
}

/* Facebook Auth Modal */
.fb-auth-modal-box {
    max-width: 520px;
}

.fb-modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #1877F2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.fb-trust-guarantee {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin: 16px 0;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.trust-pill span.material-icons-round {
    font-size: 18px;
}

.btn-facebook-auth-primary {
    width: 100%;
    background: #1877F2;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.btn-facebook-auth-primary:hover {
    background: #0866FF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

.btn-facebook-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.fb-auth-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

.fb-config-toggle-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.btn-toggle-fb-appid {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.btn-toggle-fb-appid:hover {
    color: #1877F2;
    background: #f1f5f9;
}

.fb-advanced-accordion {
    border-top: 1px solid #e2e8f0;
    margin-top: 18px;
    padding-top: 6px;
}

.fb-sdk-note {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}

.fb-sdk-note a {
    color: #1877F2;
    text-decoration: underline;
    font-weight: 600;
}

.fb-appid-config-panel {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    margin-top: 8px;
}

.fb-appid-input-wrap {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn-save-appid {
    background: #1877F2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-save-appid:hover {
    background: #0866FF;
}

.auth-divider-line {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 14px 0;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.auth-divider-line::before,
.auth-divider-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider-line span {
    padding: 0 10px;
}

/* Post Composer Facebook Identity Banner */
.fb-identity-banner {
    margin-bottom: 14px;
}

.fb-identity-banner-box {
    background: #f0fdf4;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-identity-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-identity-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fb-identity-meta strong {
    font-size: 13.5px;
    color: var(--text-primary);
}

.fb-identity-meta small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.fb-identity-meta small a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.fb-verified-pill {
    background: #eff6ff;
    color: #1877F2;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-pill);
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
}

/* Post Cards Facebook Badges & Buttons */
.badge-fb-micro {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    margin-left: 4px;
}

.fb-txt-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #1877F2;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
}

.author-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bento-action-btn.fb-action-btn {
    color: #1877F2;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    text-decoration: none;
}

.bento-action-btn.fb-action-btn:hover {
    background: #dbeafe;
    color: #0866FF;
}

/* User Profile Modal */
.user-profile-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.user-profile-avatar-big {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-profile-card h4 {
    font-size: 17px;
    margin: 0;
    color: var(--text-primary);
}

.badge-fb-verified-big {
    background: #1877F2;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.user-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.stat-lbl {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

.user-profile-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #334155;
}

.meta-row span.material-icons-round {
    font-size: 18px;
}

.meta-row a {
    color: #1877F2;
    font-weight: 700;
    text-decoration: none;
}

.meta-row a:hover {
    text-decoration: underline;
}

.user-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.btn-switch-account {
    flex: 1;
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-switch-account:hover {
    background: #e2e8f0;
}

.btn-logout-fb {
    flex: 1;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 11px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout-fb:hover {
    background: #fecaca;
}

/* ==========================================================================
   FINAL RESPONSIVE OVERRIDES (ENSURES SPECIFICITY FOR MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
    .topbar-inner {
        padding: 8px 12px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .pleiku-brand {
        gap: 6px;
        flex-shrink: 0;
    }

    .brand-title {
        font-size: 20px;
        letter-spacing: -0.5px;
    }

    .brand-sub {
        display: none;
    }

    .pleiku-search-pill {
        min-width: 0;
        max-width: none;
        height: 36px;
        padding: 0 10px;
        gap: 6px;
    }

    .pleiku-search-pill .search-ico {
        font-size: 18px;
    }

    .pleiku-search-pill input {
        min-width: 0;
        font-size: 12.5px;
    }

    .search-kbd {
        display: none;
    }

    .topbar-actions {
        gap: 6px;
        flex-shrink: 0;
        height: 36px;
    }

    /* Hide install app button on mobile topbar to prevent crowding & overflow */
    .btn-install-app-pill {
        display: none !important;
    }

    .btn-create-post-vibrant {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }

    .btn-create-post-vibrant span:not(.material-icons-round) {
        display: none;
    }

    .btn-create-post-vibrant .material-icons-round {
        font-size: 20px;
    }

    .topbar-user-area {
        height: 36px;
        flex-shrink: 0;
    }

    .btn-fb-connect-top {
        height: 36px;
        padding: 0 10px;
        gap: 5px;
        font-size: 12px;
        flex-shrink: 0;
        border-radius: var(--radius-pill);
    }

    .btn-fb-connect-top .fb-btn-text {
        display: inline !important;
        font-size: 12px;
    }

    .user-fb-chip {
        height: 36px;
        padding: 0 10px 0 4px;
        gap: 6px;
        flex-shrink: 0;
        box-sizing: border-box;
        max-width: 105px;
    }

    .user-fb-chip-avatar-wrap {
        width: 28px;
        height: 28px;
    }

    .user-fb-chip-avatar {
        width: 28px;
        height: 28px;
    }

    .user-fb-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    .user-fb-chip-name {
        font-size: 12.5px;
    }

    .user-fb-chip-name .name-full {
        display: none !important;
    }

    .user-fb-chip-name .name-short {
        display: inline-block !important;
        max-width: 50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 700;
    }

    .user-fb-chip-badge {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .topbar-inner {
        padding: 8px 8px;
        gap: 6px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-gl-mark {
        width: 30px;
        height: 30px;
    }

    .btn-create-post-vibrant {
        width: 34px;
        height: 34px;
    }

    .user-fb-chip {
        height: 34px;
        padding: 0 8px 0 3px;
        gap: 5px;
        max-width: 90px;
    }

    .user-fb-chip-name .name-short {
        max-width: 40px;
        font-size: 11.5px;
    }

    .btn-fb-connect-top {
        height: 34px;
        padding: 0 8px;
        font-size: 11px;
    }
}

/* ==========================================================================
   ADMIN DASHBOARD & EMERGENCY BROADCAST SYSTEM (GIALAIER ROOT 81)
   ========================================================================== */

/* Topbar Admin Access Button */
.btn-admin-access-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-admin-access-pill .material-icons-round {
    font-size: 18px;
    color: #059669;
    transition: transform 0.2s ease;
}

.btn-admin-access-pill:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.btn-admin-access-pill:hover .material-icons-round {
    color: #34d399;
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .btn-admin-access-pill {
        padding: 0 10px;
        height: 36px;
    }
    .btn-admin-access-pill .admin-label {
        display: none;
    }
}

/* Global Emergency & Announcement Broadcast Banner */
.global-broadcast-banner {
    width: 100%;
    max-width: 1320px;
    margin: 8px auto 0 auto;
    padding: 0 16px;
    animation: slideDownBroadcast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 90;
}

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

.broadcast-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.global-broadcast-banner.danger .broadcast-banner-inner {
    background: linear-gradient(90deg, #fff1f2 0%, #ffffff 100%);
    border-color: #fecdd3;
    border-left: 5px solid #e11d48;
}

.global-broadcast-banner.warning .broadcast-banner-inner {
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fde68a;
    border-left: 5px solid #d97706;
}

.global-broadcast-banner.info .broadcast-banner-inner {
    background: linear-gradient(90deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #a7f3d0;
    border-left: 5px solid #059669;
}

.broadcast-tag-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.broadcast-tag-wrap.danger {
    background: #e11d48;
    color: #ffffff;
    animation: pulseBadge 2s infinite;
}

.broadcast-tag-wrap.warning {
    background: #d97706;
    color: #ffffff;
}

.broadcast-tag-wrap.info {
    background: #059669;
    color: #ffffff;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
    }
}

.broadcast-tag-wrap .material-icons-round {
    font-size: 15px;
}

.broadcast-message-marquee {
    flex: 1;
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.broadcast-action-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: underline;
    flex-shrink: 0;
}

.btn-broadcast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-broadcast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

/* Global Footer */
.pleiku-global-footer {
    width: 100%;
    margin-top: 48px;
    padding: 32px 16px 80px 16px;
    border-top: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.footer-wrap {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-gl-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-side strong {
    font-size: 15px;
    color: var(--text-primary);
    display: block;
}

.footer-brand-side p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-footer-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid var(--card-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-footer-admin:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Pinned Post Badge on Bento Feed */
.pinned-post-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #fef3c7, #fffbeb);
    color: #92400e;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-left: 3px solid #f59e0b;
}

.pinned-post-banner .material-icons-round {
    font-size: 16px;
    color: #d97706;
}

/* Admin PIN Modal */
.admin-pin-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.admin-pin-badge-icon .material-icons-round {
    font-size: 34px;
}

.pin-input-container {
    margin: 16px auto;
    max-width: 240px;
}

.pin-input-container input {
    width: 100%;
    height: 54px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 8px;
    border-radius: 16px;
    border: 2px solid var(--card-border);
    background: #f8fafc;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pin-input-container input:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.admin-pin-error-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #e11d48;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
    animation: pinShake 0.4s ease;
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.admin-pin-hint-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px dashed #a7f3d0;
    border-radius: 12px;
    font-size: 12.5px;
    color: #065f46;
    text-align: left;
    margin-top: 14px;
}

.btn-submit-admin-pin {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    transition: all 0.2s ease;
}

.btn-submit-admin-pin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}

/* Full Admin Dashboard Modal */
.modal-admin-fullscreen {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 1120px;
    width: 95vw;
}

.modal-admin-fullscreen::backdrop {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
}

.admin-dashboard-modal-box {
    background: #f8fafc;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.admin-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    flex-shrink: 0;
}

.admin-dash-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-avatar-shield {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-avatar-shield .material-icons-round {
    font-size: 28px;
}

.admin-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-title-row h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.admin-role-badge {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: #0f172a;
    color: #34d399;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.admin-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-admin-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-admin-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Admin Tabs Navigation */
.admin-tab-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
    overflow-x: auto;
    flex-shrink: 0;
}

.admin-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.admin-nav-item .material-icons-round {
    font-size: 18px;
}

.admin-nav-item:hover {
    color: var(--text-primary);
    background: #f1f5f9;
}

.admin-nav-item.active {
    color: #ffffff;
    background: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.admin-tab-count {
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
}

.admin-nav-item.active .admin-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.admin-broadcast-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.admin-broadcast-status-dot.active {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

/* Admin Content Body */
.admin-tab-content-container {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.admin-tab-pane {
    display: none;
    animation: fadeInPane 0.25s ease;
}

.admin-tab-pane.active {
    display: block;
}

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

/* Stat Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.admin-stat-card.card-emerald::before { background: #059669; }
.admin-stat-card.card-amber::before { background: #d97706; }
.admin-stat-card.card-blue::before { background: #0284c7; }
.admin-stat-card.card-purple::before { background: #7c3aed; }

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-icon {
    font-size: 24px;
    color: var(--text-muted);
}

.stat-trend {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    color: var(--text-secondary);
}

.stat-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-lbl {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-sub-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Infrastructure Box */
.admin-infra-box {
    margin-top: 24px;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--card-border);
}

.admin-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.infra-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.infra-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.infra-dot.active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.infra-info {
    flex: 1;
}

.infra-info strong {
    font-size: 13px;
    display: block;
    color: var(--text-primary);
}

.infra-info span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.infra-badge-online {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
}

/* Shortcuts Grid */
.admin-shortcuts-box {
    margin-top: 24px;
}

.admin-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.btn-shortcut {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: #cbd5e1;
}

.btn-shortcut .material-icons-round {
    font-size: 28px;
    flex-shrink: 0;
}

.btn-shortcut strong {
    font-size: 13.5px;
    color: var(--text-primary);
    display: block;
}

.btn-shortcut span:not(.material-icons-round) {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Action Bar in Posts/Market tabs */
.admin-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-admin-filter {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.btn-admin-filter.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: #059669;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: all 0.2s ease;
}

.btn-admin-primary:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-admin-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

/* Admin Item Row (Posts & Market lists) */
.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.admin-item-row:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.admin-item-row.is-hidden {
    opacity: 0.6;
    background: #f8fafc;
}

.admin-item-row.is-pinned {
    border-left: 4px solid #f59e0b;
    background: #fffdf5;
}

.admin-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.admin-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

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

.admin-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.admin-item-author {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
}

.admin-badge-pin {
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: #fef3c7;
    color: #b45309;
    font-size: 10.5px;
    font-weight: 800;
}

.admin-badge-hidden {
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: #fee2e2;
    color: #b91c1c;
    font-size: 10.5px;
    font-weight: 800;
}

.admin-badge-sold {
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
}

.admin-badge-featured {
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: #fef08a;
    color: #854d0e;
    font-size: 10.5px;
    font-weight: 800;
}

.admin-item-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.admin-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-item-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.btn-item-action:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.btn-item-action.pin.active {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.btn-item-action.delete:hover {
    background: #fee2e2;
    color: #e11d48;
    border-color: #fecdd3;
}

/* Admin Composer Box */
.admin-composer-wrap {
    margin-bottom: 24px;
    animation: slideDownComposer 0.25s ease;
}

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

.admin-composer-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    border: 2px solid #a7f3d0;
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.15);
}

.composer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.composer-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.btn-composer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.btn-composer-close:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.admin-form-group {
    margin-bottom: 14px;
}

.admin-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.admin-input, .admin-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #f8fafc;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.admin-input:focus, .admin-textarea:focus {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.admin-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .admin-form-grid-2, .admin-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.admin-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #059669;
}

.composer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border-subtle);
}

/* Broadcast Settings Card */
.admin-broadcast-settings-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.broadcast-settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border-subtle);
}

.broadcast-icon-stage {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff1f2;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
}

.broadcast-icon-stage .material-icons-round {
    font-size: 30px;
}

.broadcast-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-top: 18px;
}

/* Toggle Switch */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .slider-toggle {
    background-color: #059669;
}

.switch-toggle input:checked + .slider-toggle:before {
    transform: translateX(22px);
}

.broadcast-preview-card {
    margin-top: 20px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.preview-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

/* Settings Grid */
.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-card-setting {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.admin-card-setting.card-span-2 {
    grid-column: 1 / -1;
}

.admin-card-setting h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-card-setting p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 10px;
}

.btn-admin-action-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.backup-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.btn-backup-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-backup-item:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-backup-item .material-icons-round {
    font-size: 32px;
    flex-shrink: 0;
}

.btn-backup-item.btn-export .material-icons-round { color: #0284c7; }
.btn-backup-item.btn-import .material-icons-round { color: #059669; }
.btn-backup-item.btn-reset .material-icons-round { color: #e11d48; }

.btn-backup-item strong {
    font-size: 13.5px;
    color: var(--text-primary);
    display: block;
}

.btn-backup-item span:not(.material-icons-round) {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* ==========================================================================
   SUPPRESS NETLIFY BADGE & COLLABORATIVE DRAWER
   Triệt để loại bỏ logo 'Powered by Netlify' che màn hình
   ========================================================================== */
#nl-badge-frame,
iframe#nl-badge-frame,
iframe[id*="nl-badge"],
iframe[title*="Powered by Netlify"],
iframe[title*="Netlify"],
[data-netlify-drawer],
#netlify-drawer,
.netlify-drawer,
.netlify-badge,
div[class*="netlify-drawer"],
div[class*="feedback-drawer"],
body > iframe[src*="netlify"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    bottom: -9999px !important;
    z-index: -999999 !important;
}

/* ==========================================================================
   IN-PAGE IMAGE LIGHTBOX MODAL (Xem ảnh trực tiếp không mở tab mới)
   ========================================================================== */
dialog.modal-lightbox-overlay {
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 999999;
}

dialog.modal-lightbox-overlay:not([open]) {
    display: none !important;
}

.lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    cursor: zoom-out;
}

.btn-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.btn-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.08);
}

.btn-lightbox-close .material-icons-round {
    font-size: 28px;
}

.lightbox-img-wrapper {
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

.lightbox-full-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
    animation: zoomInLightbox 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes zoomInLightbox {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-caption {
    margin-top: 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.75);
    padding: 8px 20px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.post-media-stage img,
.prod-hero-photo,
.product-stage img {
    cursor: zoom-in;
}



