/* CSS Variables for Minimalist Clean Dark Theme */
:root {
    --bg-main: #07090e;
    --bg-card: rgba(15, 19, 32, 0.85);
    --bg-header: rgba(9, 12, 22, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.45);
    
    --color-primary: #38bdf8;
    --color-secondary: #a855f7;
    --color-cyan: #06b6d4;
    --color-green: #10b981;
    --color-red: #f43f5e;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #070914;
    
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}



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

/* Custom Global Scrollbar - Deep Space Theme */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 132, 252, 0.6) rgba(6, 8, 18, 0.6);
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(6, 8, 18, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c084fc 0%, #38bdf8 100%);
    border-radius: 4px;
    transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #38bdf8 0%, #c084fc 100%);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 18% 18%, rgba(168, 85, 247, 0.15) 0%, transparent 48%),
        radial-gradient(circle at 82% 82%, rgba(56, 189, 248, 0.13) 0%, transparent 48%),
        radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.07) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    touch-action: pan-x pan-y;
}

/* Header & Navigation */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-weight: 300;
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.btn-admin {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid var(--color-primary);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-admin:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section - Minimalist Clean Dark */
.hero {
    text-align: center;
    margin-bottom: 45px;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 28px auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Hero Search Bar Wrapper */
.hero-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin-bottom: 24px;
    z-index: 5;
}

.hero-search-wrapper input {
    width: 100%;
    background: rgba(15, 19, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 15px 130px 15px 52px !important;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.hero-search-wrapper input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3), 0 8px 30px rgba(0, 0, 0, 0.5);
    background: rgba(15, 19, 32, 0.95);
}

.hero-search-wrapper .search-hint {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
    letter-spacing: 0.3px;
}

.hero-search-wrapper .search-icon-hero {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
}

/* Category Filter Tags */
.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.tag-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 7px 18px;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tag-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tag-btn.active {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

/* Grid Layout for Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.tool-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 26px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
    background-color: rgba(18, 23, 38, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.12);
}

.tool-content {
    position: relative;
    z-index: 1;
}

.tool-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(3deg);
}

.tool-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.tool-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
    position: relative;
    z-index: 1;
}

.tool-views {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-use {
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.tool-card:hover .btn-use {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

/* Tool detail workspace styles */
.tool-workspace {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-top: 24px;
}

.workspace-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 20px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

.workspace-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workspace-panel label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

textarea, input[type="text"], input[type="password"], input[type="email"], select {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-main);
    font-family: 'Fira Code', monospace, sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.btn-container {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    box-shadow: var(--glow-shadow);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-1px);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* Tool specific layout updates */
.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

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

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

/* Toast alert notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #1a153b;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    padding: 16px 24px;
    color: var(--text-main);
    box-shadow: var(--glow-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Admin Dashboard CSS */
.admin-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 12px;
    height: fit-content;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.admin-menu-item a {
    color: #94a3b8;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-menu-item.active a {
    background-color: rgba(32, 168, 216, 0.15);
    color: #38bdf8;
    border-left: 3px solid #20a8d8;
}

.admin-content {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Admin Table styling */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

.stats-table th, .stats-table td {
    padding: 16px 20px;
    text-align: left;
}

.stats-table th {
    background-color: rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.stats-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

/* Switch toggle style */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Alerts and errors styles */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-green);
    color: #34d399;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-red);
    color: #f87171;
}

/* Login container styles */
.login-container {
    max-width: 420px;
    margin: 60px auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto;
}
.footer-shotgun-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}
.footer-shotgun-img {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.footer-shotgun-img:hover {
    transform: scale(1.15) translateY(-2px) rotate(-3deg);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.8));
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Hamburger Menu & Drawer Sidebar (Thanh Tab Bar 3 Gạch)
   ========================================================================== */

/* Align left of the header containing Hamburger + Logo */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Badge overlay logo for admin area */
.admin-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    -webkit-text-fill-color: #fff;
    display: inline-block;
    vertical-align: middle;
}

/* Hamburger button 3 horizontal lines */
.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
    z-index: 101;
    transition: var(--transition-smooth);
}

.hamburger-btn .bar {
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.hamburger-btn:hover .bar {
    background-color: var(--color-primary);
}

.hamburger-btn:hover .bar:nth-child(2) {
    width: 80%;
}

/* Sidebar Blur Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 8, 22, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s linear;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Sidebar Drawer - Sliding Glassmorphic Panel */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(15, 12, 30, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-color);
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s linear;
}

.sidebar-drawer.active {
    transform: translateX(320px);
    visibility: visible;
}

/* Sidebar Header branding */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close-btn:hover {
    color: var(--color-red);
    transform: rotate(90deg);
}

/* Search input container and stylings */
.sidebar-search-container {
    position: relative;
    padding: 16px 24px 8px 24px;
}

.sidebar-search-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 38px 10px 14px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.sidebar-search-container input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-search-container .search-icon {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Navigation inside the drawer */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 80px 24px;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 12px;
    padding-left: 4px;
}

.sidebar-tools-list, .sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-tool-item a, .sidebar-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.sidebar-tool-item a:hover, .sidebar-link-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.02);
    padding-left: 18px; /* Micro animation of expanding */
}

.sidebar-tool-item.active a, .sidebar-link-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(236, 72, 153, 0.18) 100%);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
    font-weight: 600;
}

.sidebar-tool-icon, .sidebar-link-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    transition: var(--transition-smooth);
}

.sidebar-tool-item a:hover .sidebar-tool-icon {
    transform: scale(1.2);
}

.sidebar-no-tools {
    padding: 12px 14px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

.sidebar-separator {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.text-danger {
    color: var(--color-red) !important;
}
.text-danger:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.1) !important;
}

/* ==========================================================================
   CSS Styles for Phase 2 Utility Tools
   ========================================================================== */

/* 1. Diff Checker Workspace Styles */
.diff-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}
.diff-line {
    display: flex;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
}
.diff-line-num {
    color: var(--text-muted);
    min-width: 30px;
    user-select: none;
    border-right: 1px solid var(--border-color);
    margin-right: 10px;
    padding-right: 5px;
    text-align: right;
}
.diff-line-content {
    flex: 1;
}
.diff-added {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-left: 3px solid var(--color-green);
    color: #a7f3d0;
}
.diff-deleted {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-left: 3px solid var(--color-red);
    color: #fca5a5;
}
.diff-unchanged {
    color: var(--text-main);
}
.diff-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* 2. Regex Match Highlighter Styles */
.regex-matched-text {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: #fff;
}
.regex-match-mark {
    background: rgba(6, 182, 212, 0.35);
    border-bottom: 2px solid var(--color-cyan);
    color: #fff;
    border-radius: 2px;
    font-weight: 500;
}
.regex-groups-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}
.regex-group-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
}

/* 3. Color Picker & Palette Styles */
.color-preview-large {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    color: #fff;
}
.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 15px;
}
.swatch-item {
    height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.swatch-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.swatch-hex {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px;
    border-radius: 4px;
    font-weight: 600;
}
.color-sliders-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.slider-row label {
    min-width: 60px;
    font-size: 0.85rem;
    margin: 0;
}
.slider-row input[type="range"] {
    flex: 1;
    cursor: pointer;
    accent-color: var(--color-primary);
}
.slider-row span {
    min-width: 35px;
    text-align: right;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* ==========================================================================
   CSS Styles for Phase 3 Utility Tools
   ========================================================================== */

/* 1. VietQR Frame & Mockup Card Styles */
.vietqr-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.vietqr-card {
    width: 100%;
    max-width: 330px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 3px solid #005baa;
    padding: 16px;
    color: #0b0816;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.vietqr-header-banner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed rgba(0, 91, 170, 0.2);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.vietqr-header-banner .vietqr-logo-placeholder {
    font-size: 1.1rem;
    font-weight: 800;
    color: #005baa;
    letter-spacing: 0.5px;
}

.vietqr-header-banner .vietqr-logo-placeholder span {
    color: #ea1d25;
}

.vietqr-title-tag {
    background: #005baa;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.vietqr-qr-frame {
    width: 250px;
    height: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.vietqr-qr-img {
    width: 236px;
    height: 236px;
    display: block;
}

.vietqr-qr-sticker {
    position: absolute;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 2px;
}

.vietqr-qr-sticker img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.vietqr-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    width: 100%;
}

.vietqr-footer span {
    color: #005baa;
    font-weight: 800;
    font-size: 1rem;
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

.vietqr-frame-select-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.vietqr-frame-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: var(--transition-smooth);
}

.vietqr-frame-option.active {
    border-color: var(--color-primary);
    background: rgba(168, 85, 247, 0.1);
    color: #fff;
}

/* 2. 2FA Token Card Styles */
.twofa-token-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.twofa-token-box.active-pulse {
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.twofa-code-display {
    font-family: 'Fira Code', monospace;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 4px;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.twofa-timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.twofa-progress-svg {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
}

.twofa-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.twofa-progress-bar {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 4;
    stroke-dasharray: 63; /* 2 * PI * r = 2 * 3.14 * 10 = ~63 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

/* 3. Notepad Canvas, Themes, Typography */
.notepad-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.notepad-canvas {
    width: 100%;
    background: #100b21;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition-smooth);
    outline: none;
}

.notepad-canvas:focus {
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

/* Notepad light theme */
.notepad-theme-light {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Notepad sepia theme */
.notepad-theme-sepia {
    background: #fdf6e3 !important;
    color: #5c4326 !important;
    border-color: #e6d8b3 !important;
}

/* Notepad fonts */
.notepad-font-sans {
    font-family: var(--font-sans) !important;
}

.notepad-font-mono {
    font-family: 'Fira Code', monospace !important;
    font-size: 0.95rem !important;
}

.notepad-font-serif {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 1.12rem !important;
}

/* ==========================================================================
   CSS Styles for Lottery Simulator (Quay số)
   ========================================================================== */
.lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.lottery-table th, .lottery-table td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
}

.lottery-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-cyan);
    font-weight: 700;
    width: 20%;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.lottery-table td {
    color: #fff;
}

.lottery-num-cell {
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    color: var(--color-cyan);
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.2);
}

.lottery-num-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.lottery-special-row {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
}

.lottery-special-row .lottery-num-cell {
    color: #ef4444 !important;
    font-size: 1.8rem !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}

/* Loto Board */
.loto-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .loto-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

.loto-row {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loto-head {
    color: var(--color-cyan);
    font-weight: 800;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    border-right: 1px solid var(--border-color);
    padding-right: 10px;
}

.loto-tails {
    font-family: 'Fira Code', monospace;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1.5px;
    flex: 1;
    text-align: right;
    padding-left: 10px;
}

.lottery-flashing {
    animation: flashingNumber 0.08s infinite alternate;
}

@keyframes flashingNumber {
    0% {
        color: var(--color-cyan);
        transform: scale(0.98);
        text-shadow: 0 0 4px rgba(6, 182, 212, 0.1);
    }
    100% {
        color: var(--color-primary);
        transform: scale(1.02);
        text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    }
}

/* Responsive Diff Inputs Grid */
.diff-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .diff-input-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile optimizations for Lottery Table & Result Cells */
@media (max-width: 576px) {
    .lottery-num-cell {
        font-size: 1rem !important;
        min-width: 52px !important;
        letter-spacing: 1px !important;
    }
    .lottery-special-row .lottery-num-cell {
        font-size: 1.25rem !important;
    }
    .lottery-table th, .lottery-table td {
        padding: 10px 4px !important;
        font-size: 0.75rem !important;
    }
    .lottery-table th {
        width: 25% !important;
    }
    .lottery-num-group {
        gap: 6px 10px !important;
    }
    
    /* Notepad toolbar wrap */
    .notepad-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Custom Responsive layout classes */
.flex-mobile-wrap {
    display: flex;
    gap: 10px;
}

.grid-dt-btn {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.grid-4col-mobile-2col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 576px) {
    .flex-mobile-wrap {
        flex-direction: column !important;
    }
    
    .grid-dt-btn {
        grid-template-columns: 1fr !important;
    }
    
    .grid-4col-mobile-2col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Glassmorphic Background Glow Spheres */
.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: floatSpheres 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -10%;
    left: -10%;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: var(--color-cyan);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: var(--color-secondary);
    top: 30%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes floatSpheres {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.1);
    }
}

/* ==========================================================================
   Responsive & Mobile Customizations (Tối ưu hóa giao diện di động)
   ========================================================================== */

/* Thiết bị Tablet trở xuống (<= 768px) */
@media (max-width: 768px) {
    /* Hiện các liên kết tĩnh trong header trên Mobile */
    .nav-links {
        display: flex !important;
        gap: 12px;
    }
    .nav-link {
        font-size: 0.9rem;
    }
    /* Ẩn tên hiển thị trên màn hình siêu nhỏ để tránh tràn giao diện */
    @media (max-width: 480px) {
        .nav-links {
            gap: 8px;
        }
        .nav-profile-name {
            display: none !important;
        }
    }
    
    /* Rút gọn Sidebar Drawer trên thiết bị di động */
    .sidebar-drawer {
        width: 280px;
        left: -280px;
    }
    
    .sidebar-drawer.active {
        transform: translateX(280px);
    }
    
    /* Thu gọn đệm chính để tăng diện tích hiển thị */
    main {
        padding: 24px 16px;
    }
    
    /* Lưới các tiện ích thẻ co giãn tốt hơn */
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    /* Thiết kế thẻ tiện ích thon gọn hơn */
    .tool-card {
        padding: 20px;
    }
    
    .tool-icon {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .tool-name {
        font-size: 1.15rem;
    }
    
    .tool-desc {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .tool-footer {
        padding-top: 12px;
    }
    
    /* Tối ưu hóa vùng workspace chi tiết của công cụ */
    .tool-workspace {
        padding: 20px;
        margin-top: 16px;
    }
    
    .workspace-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    /* Đè size inline của các tiêu đề */
    .workspace-header h2 {
        font-size: 1.4rem !important;
    }
    
    .workspace-header span {
        font-size: 2rem !important;
    }
    
    /* Hỗ trợ cuộn ngang cho bảng để tránh tràn layout trang web */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin-top: 12px;
    }
    
    .stats-table th, .stats-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    /* Sidebar quản trị */
    .admin-content {
        padding: 20px;
    }
    
    /* Grid thống kê Admin co giãn 1 cột trên mobile */
    .stats-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* Thiết bị Mobile trở xuống (<= 576px) */
@media (max-width: 576px) {
    /* Thu nhỏ kích thước tiêu đề chính */
    .hero {
        margin-bottom: 24px;
    }
    
    .hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 8px;
    }
    
    /* Cấu hình ô tìm kiếm di động */
    .hero-search-wrapper {
        margin-bottom: 16px;
        padding: 0 8px;
    }
    
    /* Ẩn phím tắt gợi ý "/" không cần thiết trên điện thoại */
    .hero-search-wrapper .search-hint {
        display: none !important;
    }
    
    /* Giảm padding-right từ 140px xuống còn 20px vì đã ẩn hint */
    .hero-search-wrapper input {
        padding: 12px 20px 12px 52px !important;
        font-size: 0.95rem;
    }
    
    .hero-search-wrapper .search-icon-hero {
        font-size: 1.1rem;
        left: 24px;
    }
    
    /* Danh mục filter dạng vuốt ngang cao cấp (swipeable row) */
    .category-tags {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        width: 100%;
        justify-content: flex-start !important;
        padding: 4px 16px 12px 16px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-tags::-webkit-scrollbar {
        display: none;
    }
    
    .category-tags .tag-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    /* Xếp dọc các nút bấm trong workspace tránh vỡ chữ, tràn khung */
    .btn-container {
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
        margin: 16px 0;
    }
    
    .btn-container .btn {
        width: 100% !important;
        justify-content: center;
        padding: 12px 16px;
    }
    
    /* Tối ưu kích thước 2FA trên mobile */
    .twofa-code-display {
        font-size: 2.2rem !important;
        letter-spacing: 2px !important;
    }
    
    /* Tối ưu kích thước VietQR trên mobile */
    .vietqr-card {
        max-width: 290px !important;
        padding: 12px !important;
    }
    
    .vietqr-qr-frame {
        width: 220px !important;
        height: 220px !important;
    }
    
    .vietqr-qr-img {
        width: 206px !important;
        height: 206px !important;
    }

    /* Ngăn ngừa iOS tự động phóng to khi nhấn vào ô nhập liệu (font size phải từ 16px trở lên) */
    textarea, input[type="text"], input[type="password"], select {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   CSS Styles for Social Hub (Mạng xã hội)
   ========================================================================== */

/* Verified badges styling */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: bold;
    margin-left: 4px;
    vertical-align: middle;
    user-select: none;
    line-height: 1;
}
.verified-badge.badge-blue {
    background-color: #1d9bf0;
    color: #fff;
    border: 1px solid #1d9bf0;
}
.verified-badge.badge-gray {
    background-color: #829aab;
    color: #fff;
    border: 1px solid #829aab;
}
.verified-badge.badge-purple {
    background-color: #a855f7;
    color: #fff;
    border: 1px solid #a855f7;
}
.verified-badge.badge-pink {
    background-color: #ec4899;
    color: #fff;
    border: 1px solid #ec4899;
}
.verified-badge.badge-gold {
    background-color: #eab308;
    color: #fff;
    border: 1px solid #eab308;
}
.verified-badge.badge-cyan {
    background-color: #06b6d4;
    color: #fff;
    border: 1px solid #06b6d4;
}

/* Container & Feed Layout */
.social-feed-container {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* ==========================================================================
   ENHANCED MODERN SOCIAL AUTHENTICATION STYLES
   ========================================================================== */

.social-auth-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* Split Screen Layout for Modern Facebook-Style Auth Page */
.split-auth-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1120px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: center;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .split-auth-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 50px;
        margin: 50px auto;
    }
}

.auth-hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.auth-hero-brand {
    display: none !important;
}

.auth-hero-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.auth-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.18;
    color: #ffffff;
    margin: 0;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .auth-hero-title,
    .auth-hero-desc {
        display: none !important;
    }
}

.gradient-text-pink {
    background: linear-gradient(135deg, #06b6d4 0%, #ec4899 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.auth-hero-artwork-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-top: 10px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease;
}

.auth-hero-artwork-wrapper:hover {
    transform: translateY(-5px);
}

.auth-hero-artwork {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ambient Glowing Orbs */
.auth-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: floatOrb 8s ease-in-out infinite alternate;
}
.auth-ambient-orb.orb-1 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(236, 72, 153, 0) 70%);
    top: -40px;
    left: -40px;
}
.auth-ambient-orb.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    bottom: -30px;
    right: -30px;
    animation-delay: -4s;
}
.auth-ambient-orb.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(168, 85, 247, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -15px) scale(1.08); }
    100% { transform: translate(-10px, 10px) scale(0.95); }
}

/* Auth Card Glass Design */
.social-auth-card {
    position: relative;
    z-index: 1;
    background: rgba(18, 22, 38, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 36px 32px 32px 32px;
    box-shadow: 
        0 24px 60px -12px rgba(0, 0, 0, 0.65),
        0 0 35px 0 rgba(168, 85, 247, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
}

/* Auth Card Header */
.auth-card-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-header-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px auto;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(236, 72, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-auth-card:hover .auth-header-icon {
    transform: scale(1.08) rotate(3deg);
}

.auth-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.4;
}

/* Segmented Tabs Bar */
.social-auth-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 26px;
    position: relative;
    gap: 4px;
}

.social-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-auth-tab:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.social-auth-tab.active {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    font-weight: 700;
}

/* Form Animation */
.auth-form-animated {
    animation: authFormFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Form Groups & Labels */
.social-auth-card .form-group {
    margin-bottom: 20px;
}

.social-auth-card .form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

/* Input Fields with Left Icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.social-auth-card .form-group input[type="text"],
.social-auth-card .form-group input[type="password"],
.social-auth-card .form-group input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 12px 14px 12px 42px !important;
    background-color: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.social-auth-card .form-group input[type="text"]::placeholder,
.social-auth-card .form-group input[type="password"]::placeholder,
.social-auth-card .form-group input[type="email"]::placeholder {
    color: #64748b;
}

.social-auth-card .form-group input[type="text"]:focus,
.social-auth-card .form-group input[type="password"]:focus,
.social-auth-card .form-group input[type="email"]:focus {
    border-color: #a855f7;
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2), 0 0 15px rgba(168, 85, 247, 0.15);
}

.input-with-icon input {
    padding-left: 42px !important;
}

.input-with-icon:focus-within .input-field-icon {
    color: #a855f7;
}

/* Password Toggle Icon Button */
.password-input-container {
    position: relative;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"],
.password-input-container input[type="email"] {
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    color: #ec4899;
    background: rgba(255, 255, 255, 0.06);
}

/* Error state matching requested reference design */
.form-group.has-error label {
    color: #ef4444 !important;
}

.form-group.has-error input[type="text"],
.form-group.has-error input[type="password"],
.form-group.has-error input[type="email"],
.form-group.has-error .password-input-container input {
    border-color: #ef4444 !important;
    color: #ffffff;
    box-shadow: 0 0 0 1.5px #ef4444, 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
    animation: fieldShakeError 0.3s ease-in-out;
}

.field-error-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    animation: fieldFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.field-error-notice .error-circle-icon {
    flex-shrink: 0;
    color: #ef4444;
}

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

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

/* Submit Buttons */
.auth-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn.btn-login {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

.auth-submit-btn.btn-register {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #a855f7 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.auth-submit-btn.btn-login:hover {
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.5);
}

.auth-submit-btn.btn-register:hover {
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.5);
}

.auth-submit-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.auth-submit-btn svg {
    transition: transform 0.2s ease;
}

.auth-submit-btn:hover svg {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .social-auth-card {
        padding: 26px 20px 24px 20px;
        border-radius: 20px;
    }
    .auth-card-title {
        font-size: 1.25rem;
    }
}

/* Create Post Card */
.create-post-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.create-post-card textarea {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    min-height: 80px;
    outline: none;
    transition: var(--transition-smooth);
}
.create-post-card textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(168,85,247,0.15);
}
.create-post-img-input {
    display: flex;
    gap: 10px;
}
.create-post-img-input input {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
}
.create-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Post Cards */
.post-card,
.fb-post-skeleton {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.post-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.05);
}
.post-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.post-author-username {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.post-date svg {
    flex-shrink: 0;
}
.post-options-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}
.post-options-menu-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.post-content-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
}
.post-media-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.2);
}
.post-media-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}
.post-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.post-actions-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-top: -6px;
}
.post-action-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}
.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.post-action-btn.active-like {
    color: var(--text-muted) !important;
}

/* Follow / Unfollow buttons */
.btn-follow-action {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-follow-action:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn-follow-action.unfollow {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-muted);
}
.btn-follow-action.unfollow:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-report-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Comments Section styling */
.post-comments-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}
.comment-input-box {
    display: flex;
    gap: 10px;
    align-items: center;
}
.comment-input-box input {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #fff;
}
.comments-list-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 6px;
}
.comment-item-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 8px 12px;
    flex: 1;
}
.comment-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-text-content {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-top: 2px;
}
.comment-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Comment Replies & Indicator Styling */
.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-action-btn:hover {
    color: var(--color-cyan);
}

.comment-thread-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    position: relative;
}

.comment-replies-list {
    margin-left: 38px;
    margin-top: 6px;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.extra-replies-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.comment-reply-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2px 4px;
}

/* Đường lề cong cong ╰── nối đến nút Xem câu trả lời */
.toggle-replies-wrapper {
    position: relative;
    margin-top: 2px;
    padding-left: 4px;
}

.toggle-replies-wrapper::before {
    content: '';
    position: absolute;
    left: -16px;
    top: -6px;
    width: 14px;
    height: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.22);
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
    border-bottom-left-radius: 8px;
}

.btn-toggle-replies {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-toggle-replies:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-toggle-replies svg {
    transition: transform 0.25s ease;
}

.btn-toggle-replies.expanded svg {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .comment-replies-list {
        margin-left: 22px;
        padding-left: 12px;
    }
    .toggle-replies-wrapper::before {
        left: -12px;
        width: 10px;
    }
}

.reply-indicator-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--color-cyan);
    animation: fieldFadeIn 0.2s ease-out;
}

.reply-indicator-bar .reply-indicator-icon {
    display: flex;
    align-items: center;
}

.reply-indicator-bar .reply-indicator-text {
    flex: 1;
    font-weight: 500;
}

.reply-indicator-bar .reply-cancel-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.reply-indicator-bar .reply-cancel-btn:hover {
    color: #ef4444;
}

/* Social Profile Styling */
.profile-cover-wrapper {
    position: relative;
    border-radius: 16px;
    background-color: #100b21;
    border: 1px solid var(--border-color);
    margin-bottom: 100px;
}
.profile-cover-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}
.profile-avatar-overlay-box {
    position: absolute;
    bottom: -85px;
    left: 40px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.profile-big-avatar {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #080612 !important;
    background: #0f0c20;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.profile-user-names {
    margin-bottom: 12px;
}
.profile-big-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
}
.profile-big-username {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.profile-details-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: -10px;
    margin-bottom: 30px;
}
.profile-stats-counts {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}
.profile-stat-item strong {
    color: var(--color-cyan);
}
.profile-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    line-height: 1.5;
}

/* Verification list layout for Appeals */
.appeals-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.appeal-item-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.appeal-item-content {
    flex: 1;
}
.appeal-item-text {
    font-size: 0.9rem;
    color: var(--text-main);
}
.appeal-item-status-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.appeal-status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.appeal-status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.appeal-status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Modals for Reporting and Profile Editing */
.social-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 8, 22, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.social-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.social-modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: var(--glow-shadow);
    transform: translateY(30px);
    transition: var(--transition-smooth);
}
.social-modal-overlay.active .social-modal-card {
    transform: translateY(0);
}
.social-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}
.social-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.social-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.social-modal-close-btn:hover {
    color: var(--color-red);
}

/* Notification Popup Drawer */
.notification-bell-container {
    position: relative;
    display: inline-block;
}
.notification-bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--color-secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.notification-popover-box {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: rgba(15, 12, 30, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}
.notification-popover-box.active {
    display: flex;
}
.notification-popover-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-mark-all-read {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-mark-all-read:hover {
    color: var(--color-primary);
}
.notification-list {
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
}
.notification-item-row {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}
.notification-item-row:hover {
    background: rgba(255,255,255,0.04);
}
.notification-item-row.unread {
    background: rgba(168, 85, 247, 0.05);
    border-left: 3px solid var(--color-primary);
}
.notification-item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.notification-item-text {
    flex: 1;
    color: var(--text-main);
}
.notification-item-text strong {
    color: #fff;
}
.notification-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.notification-empty-msg {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* Adjustments on mobile for profile overlay banner */
@media (max-width: 576px) {
    .profile-cover-wrapper {
        margin-bottom: 65px;
    }
    .profile-cover-img {
        height: 160px;
    }
    .profile-avatar-overlay-box {
        top: calc(100% - 30px);
        bottom: auto;
        left: 20px;
        right: 20px;
        flex-direction: row;
        align-items: flex-end;
        gap: 15px;
        width: calc(100% - 40px);
    }
    .profile-big-avatar {
        width: 90px;
        height: 90px;
    }
    .avatar-wrapper:has(.profile-big-avatar) {
        width: 90px !important;
        height: 90px !important;
    }
    .profile-big-name {
        font-size: 1.2rem;
    }
    .profile-details-wrapper {
        padding: 0 20px;
        margin-top: 0px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .profile-details-wrapper > div:first-child {
        min-width: 0 !important;
    }
    .profile-details-wrapper > div:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .profile-details-wrapper .btn,
    .profile-details-wrapper .btn-follow-action,
    .profile-details-wrapper .btn-report-profile {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        display: flex !important;
    }
    .profile-action-buttons-group {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .notification-popover-box {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-height: 80vh;
    }
}

/* Custom Tooltip for Verified Badges */
.verified-badge-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    cursor: pointer;
    transform-origin: center center;
}
.verified-badge-container::after {
    content: attr(data-title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(15, 12, 30, 0.95);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
}
.verified-badge-container:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- PREMIUM EFFECTS & ANIMATIONS FOR VERIFIED BADGES --- */

/* General container style overrides for premium visibility */
.verified-badge-container {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.verified-badge-container:hover {
    transform: scale(1.2) translateY(-1px);
    z-index: 10;
}

/* Ensure SVGs inside have center transform origin */
.verified-badge-svg {
    transform-origin: center center;
    display: inline-block;
    vertical-align: middle;
}

/* Keyframes for Glow and Movement animations targeting the SVG */

/* 1. Tích Xanh (Blue) - Gentle glow breathing */
@keyframes glowBlue {
    0%, 100% { filter: drop-shadow(0 0 1px rgba(24, 119, 242, 0.5)); }
    50% { filter: drop-shadow(0 0 5px rgba(24, 119, 242, 0.9)); }
}

/* 2. Tích Xám (Gray) - Subtle glow breathing */
@keyframes glowGray {
    0%, 100% { filter: drop-shadow(0 0 1px rgba(130, 154, 171, 0.3)); }
    50% { filter: drop-shadow(0 0 3px rgba(130, 154, 171, 0.6)); }
}

/* 3. Sáng Tạo (Purple) - Twinkling & subtle rotation */
@keyframes twinklePurple {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 4px rgba(168, 85, 247, 0.3)); 
    }
    50% { 
        transform: scale(1.15) rotate(15deg); 
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 1)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.5)); 
    }
}

/* 4. Gái Xinh (Pink) - Heartbeat pulse */
@keyframes heartbeatPink {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.6)); 
    }
    14% { 
        transform: scale(1.18); 
        filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.95)); 
    }
    28% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.6)); 
    }
    42% { 
        transform: scale(1.18); 
        filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.95)); 
    }
    70% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(236, 72, 153, 0.6)); 
    }
}

/* 5. Siêu Sao (Gold) - Gentle gold neon pulse */
@keyframes glowGold {
    0%, 100% { 
        filter: drop-shadow(0 0 1.5px rgba(234, 179, 8, 0.6)); 
    }
    50% {
        filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.95)) drop-shadow(0 0 10px rgba(234, 179, 8, 0.4));
    }
}

/* 6. Dev Team (Cyan) - Coding pulse scale & neon glow */
@keyframes techPulseCyan {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.6)); 
    }
    50% { 
        transform: scale(1.15); 
        filter: drop-shadow(0 0 7px rgba(6, 182, 212, 1)) drop-shadow(0 0 12px rgba(6, 182, 212, 0.5)); 
    }
}

/* Apply animations to the SVG inside the containers */
.badge-glow-blue .verified-badge-svg {
    animation: glowBlue 3s infinite ease-in-out;
}
.badge-glow-blue:hover .verified-badge-svg {
    filter: drop-shadow(0 0 8px rgba(24, 119, 242, 1)) !important;
}

.badge-glow-gray .verified-badge-svg {
    animation: glowGray 4s infinite ease-in-out;
}

.badge-glow-purple .verified-badge-svg {
    animation: twinklePurple 3s infinite ease-in-out;
}
.badge-glow-purple:hover .verified-badge-svg {
    animation-play-state: paused;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 1)) !important;
    transform: scale(1.3) rotate(30deg) !important;
}

.badge-glow-pink .verified-badge-svg {
    animation: heartbeatPink 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.badge-glow-pink:hover .verified-badge-svg {
    animation: none !important;
    transform: scale(1.3) !important;
    filter: drop-shadow(0 0 12px rgba(236, 72, 153, 1)) !important;
}

.badge-glow-gold .verified-badge-svg {
    animation: glowGold 2.5s infinite ease-in-out;
}
.badge-glow-gold:hover .verified-badge-svg {
    filter: drop-shadow(0 0 12px rgba(234, 179, 8, 1)) !important;
    transform: scale(1.3) !important;
}

.badge-glow-cyan .verified-badge-svg {
    animation: techPulseCyan 2.8s infinite ease-in-out;
}
.badge-glow-cyan:hover .verified-badge-svg {
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 1)) !important;
    transform: scale(1.3) !important;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 12, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-cyan);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}
.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* User Profile Dropdown Menu & Modal */
.user-dropdown-container {
    display: inline-block;
}
.user-dropdown-menu {
    border-color: var(--border-color);
    background: rgba(15, 12, 30, 0.98) !important;
    backdrop-filter: blur(15px);
}
.user-dropdown-menu .dropdown-item {
    cursor: pointer;
}
.user-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--color-cyan) !important;
}
.user-dropdown-menu hr {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Khung ảnh đại diện (avatar frame) cho người dùng có tích xanh */
.avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Xác định kích thước cố định cho wrapper dựa trên lớp ảnh đại diện bên trong */
.avatar-wrapper:has(.post-author-avatar) {
    width: 44px;
    height: 44px;
}
.avatar-wrapper:has(.comment-user-avatar) {
    width: 32px;
    height: 32px;
}
.avatar-wrapper:has(.profile-big-avatar) {
    width: 145px;
    height: 145px;
}
.avatar-wrapper:has(img[style*="width:24px"]) {
    width: 24px;
    height: 24px;
}
.avatar-wrapper:has(img[style*="width:28px"]) {
    width: 28px;
    height: 28px;
}
.avatar-wrapper:has(.pm-msg-avatar),
.avatar-wrapper:has(img[style*="width:32px"]) {
    width: 32px;
    height: 32px;
}
.avatar-wrapper:has(img[style*="width:36px"]) {
    width: 36px;
    height: 36px;
}
.avatar-wrapper:has(.pm-conv-avatar),
.avatar-wrapper:has(img[style*="width:42px"]) {
    width: 42px;
    height: 42px;
}

/* Khung mặc định (Default Avatar Frame): Viền màu đen mỏng viền tròn sang trọng */
.avatar-wrapper:not([class*="frame-"]) img {
    border: 3px solid #080612 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    object-fit: cover !important;
}

/* Khi có khung avatar tùy chọn, thu nhỏ ảnh đại diện bên trong để vừa vặn hoàn hảo trong lòng khung */
.avatar-wrapper[class*="frame-"] img {
    position: absolute !important;
    width: 80% !important;
    height: 80% !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Cấu trúc chung cho tất cả các khung avatar */
.avatar-wrapper.verified-frame::after,
.avatar-wrapper[class*="frame-"]::after {
    content: '';
    position: absolute;
    width: 118%; /* Mặc định cho tích xanh */
    height: 118%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* Tinh chỉnh riêng biệt cho từng loại khung tùy chọn (do kích thước lỗ trống của các ảnh PNG không đồng đều) */

/* 1. Khung Siêu Sao */
.avatar-wrapper.frame-sieusao img {
    width: 84% !important;
    height: 84% !important;
}
.avatar-wrapper.frame-sieusao::after {
    width: 125% !important;
    height: 125% !important;
    top: 58% !important;
}

/* 2. Khung Vua Bóng Đá */
.avatar-wrapper.frame-vuabongda img {
    width: 84% !important;
    height: 84% !important;
}
.avatar-wrapper.frame-vuabongda::after {
    width: 128% !important;
    height: 128% !important;
    top: 51.5% !important;
    left: 50.8% !important;
}

/* 3. Khung Trùm Bán Acc */
.avatar-wrapper.frame-trumbanacc img {
    width: 78% !important;
    height: 78% !important;
}
.avatar-wrapper.frame-trumbanacc::after {
    width: 122% !important;
    height: 122% !important;
    top: 56% !important;
}

/* 4. Khung Bot */
.avatar-wrapper.frame-bot img {
    width: 81% !important;
    height: 81% !important;
}
.avatar-wrapper.frame-bot::after {
    width: 125% !important;
    height: 125% !important;
    top: 59% !important;
}

/* 5. Khung Nữ Hoàng */
.avatar-wrapper.frame-nuhoang img {
    width: 83% !important;
    height: 83% !important;
}
.avatar-wrapper.frame-nuhoang::after {
    width: 125% !important;
    height: 125% !important;
    top: 57% !important;
    left: 51% !important;
}

/* 6. Khung CR7 Vấp Cỏ Hôi Pen */
.avatar-wrapper.frame-cr7 img {
    width: 82% !important;
    height: 82% !important;
}
.avatar-wrapper.frame-cr7::after {
    width: 113% !important;
    height: 113% !important;
    top: 58% !important;
}
/* Đổi đường dẫn ảnh cho từng loại khung tùy chỉnh (Đã được tạo động từ database trong render_avatar_frames_css) */

/* CSS cho ô hiển thị rút gọn (Placeholder) của form tạo bài viết */
.create-post-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.create-post-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.placeholder-text-input {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    flex-grow: 1;
    text-align: left;
    user-select: none;
}

/* Post Meta Details (Stacked: Name on top, Date below) */
.post-meta-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.post-date-dot {
    display: none;
}

/* Comment Author Hover Link effect */
.comment-user-name a {
    transition: color 0.2s ease;
}
.comment-user-name a:hover {
    color: var(--color-cyan) !important;
    text-decoration: underline !important;
}

/* Auto-hide Alert notifications after 3 seconds */
@keyframes autoHideAlert {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
        margin-top: 0;
        margin-bottom: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        border-width: 1px;
    }
    90% {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 200px;
        margin-top: 0;
        margin-bottom: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        border-width: 1px;
    }
    100% {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-width: 0 !important;
        border-top-width: 0 !important;
        border-bottom-width: 0 !important;
        visibility: hidden;
        pointer-events: none;
    }
}

.alert {
    animation: autoHideAlert 3.5s forwards ease-in-out;
    overflow: hidden;
}

/* Layout wrapper for Feed and Chat */
.social-layout-wrapper {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

/* Global Chat Container (Sidebar Slide-in) - Basic Theme Matching */
.global-chat-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45vw; /* PC mở 1 nửa màn hình */
    z-index: 2000;
    background-color: #141026; /* Nền tối đặc, không trong suốt */
    border-left: 1px solid var(--border-color);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-close-window-btn {
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    margin-left: 10px;
    line-height: 1;
}
.chat-close-window-btn:hover {
    color: var(--color-cyan);
}

@media (max-width: 900px) {
    .global-chat-container {
        width: 100vw; /* Mobile chiếm toàn màn hình */
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        height: 100vh;
        height: 100dvh;
        border-left: none;
    }
}

/* Floating Chat Trigger Button - DEPRECATED (MERGED INTO HEADER CHAT ICON) */
.floating-chat-trigger {
    display: none !important;
}
.chat-unread-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ef4444;
    border: 2px solid #0c081a;
    box-shadow: 0 0 8px #ef4444;
}

/* User online/offline status dot indicator on avatar */
.user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #141026; /* matches body/card dark background */
    z-index: 5;
    pointer-events: none; /* click passes through to avatar link */
}
.user-status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.user-status-dot.offline {
    background-color: #6b7280;
}

.global-chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
}
.chat-header-icon {
    font-size: 1.2rem;
}
.chat-header-title {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    flex-grow: 1;
}
.chat-online-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-online-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

/* Chat Messages Area */
.global-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Chat Message Row */
.chat-message-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-message-bubble {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 14px;
    padding: 8px 12px;
    max-width: 85%;
}
.chat-message-row.my-message {
    flex-direction: row-reverse;
}
.chat-message-row.my-message .chat-message-bubble {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.chat-message-row.my-message .chat-message-header {
    justify-content: flex-end;
}
.chat-message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.chat-message-name-link {
    color: #fff;
    text-decoration: none;
}
.chat-message-name-link:hover {
    color: var(--color-cyan) !important;
    text-decoration: underline;
}
.chat-message-time {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-left: 4px;
}
.chat-message-text {
    font-size: 0.85rem;
    color: var(--text-main);
    word-break: break-word;
}
.chat-message-sticker {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    margin-top: 4px;
    display: block;
}

/* Chat Footer / Input Row */
.global-chat-footer {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-action-button {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}
.chat-action-button:hover {
    background: rgba(255,255,255,0.05);
}
#global-chat-text-input {
    flex: 1;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}
#global-chat-text-input:focus {
    border-color: var(--color-primary);
}

/* Stickers / Emojis Popovers */
.chat-stickers-popover, .chat-emojis-popover {
    position: absolute;
    bottom: 70px;
    left: 16px;
    right: 16px;
    background: rgba(28, 25, 45, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
    display: none;
    z-index: 10;
}
.stickers-tab-header, .emojis-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
}

/* Category Tabs inside Stickers Popover */
.stickers-category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    flex-grow: 1;
}
.sticker-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.sticker-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.sticker-tab-btn.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.stickers-tab-title, .emojis-tab-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.stickers-close-btn, .emojis-close-btn {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.stickers-close-btn:hover, .emojis-close-btn:hover {
    color: #fff;
}
.stickers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}
.sticker-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
    padding: 4px;
}
.sticker-item:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.05);
}
.sticker-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.emojis-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 1.3rem;
    text-align: center;
}
.emoji-item {
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s;
}
.emoji-item:hover {
    transform: scale(1.25);
}

/* Styling for background-removed look for Ami Cat stickers */
#stickers-grid-ami .sticker-item {
    background: #ffffff !important;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.chat-message-sticker-container.ami-sticker {
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 0;
    max-width: 120px;
}
.chat-message-sticker-container.ami-sticker img.chat-message-sticker {
    margin: 0 !important;
    background: transparent !important;
}

/* Announcement Marquee Bar with Minimalist Glass and Neon Glow */
.announcement-marquee-bar {
    display: flex;
    align-items: center;
    background: rgba(13, 17, 30, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 16px;
    padding: 10px 18px;
    margin-bottom: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.announcement-marquee-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, #06b6d4, #a855f7);
    border-radius: 16px 0 0 16px;
}
.marquee-icon {
    font-size: 1.2rem;
    margin-right: 14px;
    flex-shrink: 0;
    animation: pulseAnnouncementIcon 1.5s infinite ease-in-out;
}
@keyframes pulseAnnouncementIcon {
    0%, 100% { transform: scale(1); opacity: 0.85; filter: drop-shadow(0 0 2px #38bdf8); }
    50% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px #06b6d4); }
}
.marquee-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

/* Seamless Continuous Marquee Track */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScrollingTrack 35s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-group {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
    flex-shrink: 0;
}
.marquee-item {
    font-weight: 550;
    font-size: 0.92rem;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
@keyframes marqueeScrollingTrack {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes marqueeScrollingTrack {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
    .announcement-marquee-bar {
        padding: 10px 14px;
        margin-bottom: 20px;
        border-radius: 14px;
    }
    .marquee-icon {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    .marquee-content {
        font-size: 0.88rem;
    }
}



/* Chat scroll lock on body */
body.chat-open {
    overflow: hidden !important;
}

/* Password visibility toggle styling */
.password-input-container {
    position: relative;
    width: 100%;
}
.password-input-container input {
    padding-right: 42px !important;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    transition: color 0.2s;
}
.password-toggle-btn:hover {
    color: #ffffff;
}
.password-toggle-btn svg {
    display: block;
}

/* 3-Column Social Layout */
.social-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

.social-sidebar-left,
.social-sidebar-right {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.social-sidebar-left .sidebar-widget,
.social-sidebar-right .sidebar-widget {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .social-layout-grid {
        grid-template-columns: 270px 1fr 270px;
        gap: 32px;
        align-items: start;
    }
    .social-sidebar-left,
    .social-sidebar-right {
        display: block;
        position: sticky;
        top: 85px; /* Stick below the fixed main header */
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    /* Hide scrollbar for sidebars */
    .social-sidebar-left::-webkit-scrollbar,
    .social-sidebar-right::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}

/* Rộng hơn & đẩy 2 cột Sidebar sang 2 bên xa trung tâm hơn trên PC màn hình rộng */
@media (min-width: 1280px) {
    main:has(.social-layout-grid) {
        max-width: 1440px !important;
        padding-left: 36px;
        padding-right: 36px;
    }
    
    .social-layout-grid {
        grid-template-columns: 300px 1fr 300px !important;
        gap: 40px !important;
    }
}

@media (min-width: 1536px) {
    main:has(.social-layout-grid) {
        max-width: 1600px !important;
        padding-left: 48px;
        padding-right: 48px;
    }
    
    .social-layout-grid {
        grid-template-columns: 320px 1fr 320px !important;
        gap: 48px !important;
    }
}

.sidebar-widget {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: left;
}

/* ==========================================================================
   FACEBOOK 2026 PC UI NAVIGATION & FEED STYLES
   ========================================================================== */

.fb-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.fb-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease;
}

.fb-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.fb-sidebar-item-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Facebook Stories Reel Carousel */
.fb-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.fb-story-card {
    position: relative;
    height: 190px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fb-story-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.fb-story-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fb-story-card:hover .fb-story-card-bg {
    transform: scale(1.06);
}

.fb-story-create-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: rgba(18, 14, 34, 0.95);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding-top: 18px;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.fb-story-plus-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    border: 3px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.fb-story-avatar-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.fb-story-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Facebook Create Post Prompt Bar */
.fb-create-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fb-create-post-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.fb-create-post-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.fb-create-post-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 11px 20px;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fb-create-post-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.fb-create-post-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
}

.fb-post-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fb-post-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================================================
   MINIMALIST CLEAN DARK HEADER NAVIGATION BAR (TRANSLUCENT & GLOWING TABS)
   ========================================================================== */
.fb-header-navbar {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: rgba(8, 10, 18, 0.75) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: 62px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}

.fb-header-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LEFT: Logo & Menu Button */
.fb-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 320px;
}

.fb-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fb-header-logo:hover {
    transform: scale(1.06);
}

.btn-sidebar-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    color: #cbd5e1 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
}

.btn-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15) !important;
}

/* CENTER: Nav Tabs with Glowing Active State */
.fb-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 2;
    height: 100%;
}

.fb-nav-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 42px;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 2px;
}

.fb-nav-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
}

.fb-nav-tab.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.fb-nav-tab .fb-nav-indicator {
    display: none;
    position: absolute;
    bottom: -10px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #38bdf8, #a855f7);
    border-radius: 3px;
    box-shadow: 0 0 12px #38bdf8, 0 0 20px #a855f7;
}

.fb-nav-tab.active .fb-nav-indicator {
    display: block;
}

/* RIGHT: Apps Popover & Admin Button */
.fb-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
    max-width: 320px;
}

.fb-circle-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
}

.fb-circle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.3);
    transform: scale(1.05);
}
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    padding: 0;
    outline: none;
}

.fb-circle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.05);
}

.fb-user-avatar-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
}

.fb-user-avatar-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s ease;
}

.fb-user-avatar-btn:hover img {
    border-color: #0866ff;
}

.fb-avatar-chevron {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3a3b3c;
    border: 2px solid #18191a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
}

/* Facebook Authentic User Profile Dropdown Menu */
.fb-user-dropdown-popover {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    width: 350px;
    background: #18191a !important; /* Nền tối đặc 100% không trong suốt */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    z-index: 100000;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95);
}

.fb-dropdown-user-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fb-dropdown-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
}

.fb-dropdown-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.fb-dropdown-user-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.2;
}

.fb-dropdown-user-username {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.fb-dropdown-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-dropdown-profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.fb-dropdown-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.fb-dropdown-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.fb-dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.fb-dropdown-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
}

.fb-dropdown-item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
}

.fb-dropdown-item-arrow {
    color: #94a3b8;
    font-size: 1.1rem;
}

.fb-dropdown-footer {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 10px;
    padding: 6px 8px 0 8px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Facebook Authentic 9-Dots Apps Menu Dropdown Popover */
.fb-apps-menu-popover {
    display: none;
    position: absolute;
    right: 60px;
    top: 52px;
    width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    background: #18191a !important; /* Nền tối đặc 100% không trong suốt */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    z-index: 100000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.fb-apps-menu-header {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-apps-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Left Column: Categories & Tools */
.fb-apps-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fb-apps-search-box {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fb-apps-search-box input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.fb-apps-cat-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.fb-apps-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.fb-apps-item-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.fb-apps-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.fb-apps-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fb-apps-item-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
}

.fb-apps-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

/* Right Column: "Tạo" (Create) Box */
.fb-apps-right-col {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: fit-content;
}

.fb-create-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.fb-create-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    cursor: pointer;
}

.fb-create-item-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.fb-create-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ==========================================================================
   FACEBOOK DESKTOP LEFT SIDEBAR STYLING
   ========================================================================== */
.social-sidebar-left {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.social-sidebar-left::-webkit-scrollbar {
    width: 5px;
}

.social-sidebar-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.fb-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fb-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.fb-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==========================================================================
   AUTHENTIC FACEBOOK POST SKELETON LOADER ANIMATION
   ========================================================================== */
@keyframes skeletonShimmer {
    0% {
        background-position: -300px 0;
    }
    100% {
        background-position: calc(300px + 100%) 0;
    }
}

.fb-post-skeleton {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skeleton-pulse {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.04) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 600px 100%;
    animation: skeletonShimmer 1.4s infinite ease-in-out;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.skeleton-line {
    height: 10px;
    border-radius: 6px;
}

.skeleton-line-title {
    width: 140px;
    height: 12px;
}

.skeleton-line-sub {
    width: 90px;
    height: 10px;
}

.skeleton-body-box {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.skeleton-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-pill {
    width: 60px;
    height: 12px;
    border-radius: 6px;
}

.skeleton-pill-right {
    width: 50px;
}

.fb-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.fb-sidebar-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ==========================================================================
   AUTHENTIC FACEBOOK NOTIFICATIONS POPOVER STYLING
   ========================================================================== */
.notification-popover-box {
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    background: #18191a !important; /* Solid 100% opaque dark background */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 12px;
    z-index: 100000;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95);
    box-sizing: border-box;
}

.notification-popover-box.active {
    display: block;
}

.notification-popover-box::-webkit-scrollbar {
    width: 6px;
}

.notification-popover-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notif-popover-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.notif-popover-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.notif-filter-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.notif-filter-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #e2e8f0;
    transition: background 0.2s ease;
}

.notif-filter-pill.active {
    background: #0866ff;
    color: #ffffff;
}

.notif-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.notif-section-link {
    font-size: 0.82rem;
    color: #0866ff;
    text-decoration: none;
    font-weight: 600;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.notification-item-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.notif-avatar-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.notification-item-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.notif-type-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0866ff;
    color: #ffffff;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #18191a;
}

.notification-item-text {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.35;
}

.notification-item-text strong {
    color: #ffffff;
    font-weight: 700;
}

.notification-item-time {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0866ff;
    margin-top: 3px;
}

.notif-unread-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0866ff;
    flex-shrink: 0;
    box-shadow: 0 0 8px #0866ff;
}

.notif-bottom-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.notif-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-user-header {
    position: relative;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 100%);
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 45px -20px;
}
.sidebar-user-avatar {
    position: absolute;
    bottom: -30px;
    left: 20px;
}
.sidebar-user-avatar img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #141026;
    background-color: #141026;
    object-fit: cover;
}
.sidebar-user-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sidebar-user-username {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 2px 0 12px 0;
}
.sidebar-user-stats {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 10px;
}
.sidebar-stat-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.sidebar-stat-item strong {
    color: #fff;
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}
.sidebar-menu-item a:hover,
.sidebar-menu-item.active a {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.sidebar-menu-item.active a {
    border-left: 3px solid var(--color-cyan);
    border-radius: 0 10px 10px 0;
    padding-left: 11px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.suggestion-item:last-child {
    margin-bottom: 0;
}
.suggestion-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.suggestion-names {
    display: flex;
    flex-direction: column;
}
.suggestion-display-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.suggestion-username {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.btn-follow-mini {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--color-cyan);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-follow-mini:hover {
    background: var(--color-cyan);
    color: #000;
}

.tool-item-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    color: #cbd5e1;
    margin-bottom: 6px;
}
.tool-item-mini:last-child {
    margin-bottom: 0;
}
.tool-item-mini:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}
.tool-icon-mini {
    font-size: 1.2rem;
}
.tool-name-mini {
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.stat-box-mini {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
}
.stat-val-mini {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-cyan);
}
.stat-lbl-mini {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* M590 Premium Display (Homepage Logo replacement) */
.m590-display-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    transition: all 0.4s ease;
}

.m590-center-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
    animation: m590Float 3.5s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.m590-display-wrapper:hover .m590-center-logo {
    transform: scale(1.08) rotate(-5deg);
    filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.7));
}

.m590-click-hint {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.m590-display-wrapper:hover .m590-click-hint {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

@keyframes m590Float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* M590 Stats & Skins Modal */
.m590-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 6, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.m590-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.m590-modal-container {
    background: linear-gradient(135deg, rgba(20, 16, 38, 0.95) 0%, rgba(10, 8, 20, 0.98) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
    border-radius: 24px;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 30px;
    color: #fff;
}

.m590-modal-backdrop.show .m590-modal-container {
    transform: scale(1);
}

.m590-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.m590-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.m590-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .m590-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Showcase Frame */
.m590-showcase-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.m590-showcase-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
    filter: blur(10px);
    z-index: 1;
    transition: background 0.5s ease;
}

.m590-showcase-img {
    height: 110px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.m590-showcase-img.skin-active {
    animation: skinApply 0.5s ease;
}

@keyframes skinApply {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.m590-skin-tier {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Stats view styling */
.m590-stats-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    background: linear-gradient(90deg, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.m590-stats-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.m590-stat-row {
    margin-bottom: 12px;
}

.m590-stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.m590-stat-name {
    color: #cbd5e1;
}

.m590-stat-value {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.m590-stat-mod {
    font-size: 0.75rem;
    font-weight: 700;
}
.m590-stat-mod.plus {
    color: #10b981;
}
.m590-stat-mod.minus {
    color: #ef4444;
}

.m590-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.m590-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 4px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease;
}

/* Skin Selector Right list */
.m590-skins-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 20px;
}

.m590-skins-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m590-skins-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .m590-skins-list {
        grid-template-columns: 1fr;
    }
}

.m590-skin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.m590-skin-card:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.25);
}

.m590-skin-card.active {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.m590-skin-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.m590-skin-attrs {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.m590-attr-tag {
    padding: 1px 5px;
    border-radius: 3px;
}
.m590-attr-tag.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.m590-attr-tag.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ==========================================================================
   PRIVATE DIRECT MESSAGING (CHAT RIÊNG TƯ) WIDGET STYLES
   ========================================================================== */
.pm-widget-container {
    position: fixed;
    top: 60px;
    right: 55px;
    width: 360px;
    height: 560px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 75px);
    background: #18191a !important; /* 100% Solid Opaque Dark Background */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.pm-widget-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.pm-widget-header {
    padding: 12px 14px;
    background: #18191a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    box-sizing: border-box;
}

.pm-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-btn-back, .pm-btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-btn-back:hover, .pm-btn-close:hover {
    color: #fff;
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.4);
}

.pm-header-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.pm-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.pm-view-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Inbox & Search */
.pm-search-box {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-search-box input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}

.pm-search-box input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.pm-search-results-list {
    background: rgba(18, 10, 38, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 160px;
    overflow-y: auto;
}

.pm-search-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.pm-search-user-item:hover {
    background: rgba(168, 85, 247, 0.15);
}

.pm-conversations-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.pm-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-conv-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.pm-conv-item.unread {
    background: rgba(168, 85, 247, 0.08);
}

.pm-conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.pm-conv-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pm-conv-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
}

.pm-conv-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pm-conv-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pm-preview-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.pm-unread-badge {
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Chat Messages Container */
.pm-messages-container {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.pm-msg-row.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.pm-msg-row.partner {
    align-self: flex-start;
}

.pm-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2px;
}

.pm-msg-bubble {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.pm-msg-row.mine .pm-msg-bubble {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.pm-msg-row.partner .pm-msg-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.pm-bubble-media img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 10px;
    margin-top: 4px;
    cursor: pointer;
}

.pm-bubble-sticker img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.pm-msg-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.pm-empty-state, .pm-loading-spinner {
    padding: 30px 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Send Form */
.pm-send-form {
    padding: 10px 12px;
    background: rgba(7, 4, 18, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-send-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.88rem;
    outline: none;
}

.pm-btn-icon {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: transform 0.2s;
}

.pm-btn-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

.pm-btn-send {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.pm-btn-send:hover {
    transform: scale(1.08);
}

.pm-sticker-popover {
    position: absolute;
    bottom: 55px;
    left: 10px;
    background: rgba(18, 10, 38, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.pm-sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pm-sticker-grid img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.pm-sticker-grid img:hover {
    transform: scale(1.15);
}

.pm-attachment-preview {
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.15);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #d8b4fe;
}

/* Global Unread Badge on Topbar */
.pm-unread-global-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.pm-global-conv-item {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(34, 211, 238, 0.12) 100%) !important;
    border-left: 3.5px solid #22d3ee !important;
    margin-bottom: 6px;
    border-radius: 12px;
}

.pm-global-conv-item:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(34, 211, 238, 0.2) 100%) !important;
}

.pm-global-tag {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .pm-widget-container.active {
        display: flex !important;
        position: fixed !important;
        top: 56px !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 420px !important;
        height: auto !important;
        max-height: calc(100vh - 70px) !important;
        margin: 0 auto !important;
        z-index: 999999 !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95) !important;
    }
}

/* ==========================================================================
   UPGRADED PROFILE PAGE STYLES (ANIMATED FRAMES, STATUS BUBBLE, BADGES SHOWCASE)
   ========================================================================== */

/* 1. ANIMATED AVATAR FRAMES KEYFRAMES & CLASSES */
@keyframes frameNeonPulse {
    0%, 100% { box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, inset 0 0 10px #06b6d4; border-color: #22d3ee; }
    50% { box-shadow: 0 0 18px #3b82f6, 0 0 35px #3b82f6, inset 0 0 15px #3b82f6; border-color: #60a5fa; }
}

@keyframes frameFireGlow {
    0%, 100% { box-shadow: 0 0 12px #f97316, 0 0 25px #ef4444, inset 0 0 10px #f97316; border-color: #fb923c; }
    50% { box-shadow: 0 0 22px #eab308, 0 0 40px #f97316, inset 0 0 18px #eab308; border-color: #fde047; }
}

@keyframes frameRainbowRotate {
    0% { filter: hue-rotate(0deg); box-shadow: 0 0 15px #a855f7; border-color: #a855f7; }
    50% { filter: hue-rotate(180deg); box-shadow: 0 0 25px #06b6d4; border-color: #06b6d4; }
    100% { filter: hue-rotate(360deg); box-shadow: 0 0 15px #a855f7; border-color: #a855f7; }
}

@keyframes frameGoldShimmer {
    0%, 100% { box-shadow: 0 0 12px #eab308, 0 0 22px rgba(234, 179, 8, 0.6); border-color: #fde047; }
    50% { box-shadow: 0 0 25px #f59e0b, 0 0 35px rgba(245, 158, 11, 0.8); border-color: #fff; }
}

@keyframes frameCyberHalo {
    0%, 100% { box-shadow: 0 0 15px #3b82f6, 0 0 30px #8b5cf6; border-color: #60a5fa; }
    50% { box-shadow: 0 0 25px #ec4899, 0 0 40px #3b82f6; border-color: #f472b6; }
}

@keyframes frameVipGlow {
    0%, 100% { box-shadow: 0 0 18px #a855f7, 0 0 35px #eab308; border-color: #c084fc; }
    50% { box-shadow: 0 0 30px #ec4899, 0 0 45px #a855f7; border-color: #f472b6; }
}

.avatar-wrapper.frame-neon {
    border-radius: 50%;
    animation: frameNeonPulse 2.5s infinite ease-in-out !important;
}
.avatar-wrapper.frame-fire {
    border-radius: 50%;
    animation: frameFireGlow 2s infinite ease-in-out !important;
}
.avatar-wrapper.frame-rainbow {
    border-radius: 50%;
    animation: frameRainbowRotate 4s infinite linear !important;
}
.avatar-wrapper.frame-gold {
    border-radius: 50%;
    animation: frameGoldShimmer 2.2s infinite ease-in-out !important;
}
.avatar-wrapper.frame-cyber {
    border-radius: 50%;
    animation: frameCyberHalo 3s infinite ease-in-out !important;
}
.avatar-wrapper.frame-vip {
    border-radius: 50%;
    animation: frameVipGlow 2.5s infinite ease-in-out !important;
}

/* 2. DYNAMIC COVER PARTICLES & UNIFIED PROFILE HEADER BAR */
.profile-cover-wrapper {
    position: relative;
    margin-bottom: 0 !important;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.profile-cover-particles {
    position: absolute;
    top: 0; left: 0; right: 0; height: 240px;
    border-radius: 20px 20px 0 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.18) 0%, transparent 40%);
    animation: floatGlow 8s infinite alternate ease-in-out;
}
@keyframes floatGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-10px, 10px); }
}

.profile-header-bar {
    background: rgba(15, 12, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 0 30px 20px 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.profile-header-avatar-group {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.profile-header-avatar {
    margin-top: -55px;
    flex-shrink: 0;
    z-index: 5;
}

.profile-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    gap: 15px;
    flex-wrap: wrap;
}

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

.btn-action-pill {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.35));
    color: #fff;
}
.btn-action-pill.following {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    box-shadow: none;
}
.btn-action-pill.message {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.3));
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}
.btn-action-pill.message:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(99, 102, 241, 0.45));
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}
.btn-action-pill.report {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    box-shadow: none;
}
.btn-action-pill.report:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-edit-profile-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    color: #fff;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25), 0 0 10px rgba(168, 85, 247, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-edit-profile-icon:hover {
    transform: rotate(60deg) scale(1.1);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.45) 0%, rgba(168, 85, 247, 0.45) 100%);
    border-color: #22d3ee;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45), 0 0 20px rgba(168, 85, 247, 0.35);
}

.profile-avatar-overlay-box .profile-big-avatar {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.profile-avatar-overlay-box:hover .profile-big-avatar {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 211, 238, 0.4);
}

/* 3. STATUS EMOJI & STATUS BUBBLE OVER AVATAR */
.profile-status-bubble {
    position: absolute;
    top: -12px;
    right: -10px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
    animation: bounceBubble 3s infinite ease-in-out;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
@keyframes bounceBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 4. BADGES SHOWCASE & CHIPS */
.badges-showcase-card {
    background: rgba(15, 12, 30, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.badge-chip:hover {
    transform: translateY(-2px) scale(1.03);
}
.badge-chip.badge-admin {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}
.badge-chip.badge-verified {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}
.badge-chip.badge-vip {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f0abfc;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}
.badge-chip.badge-topposter {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde047;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}
.badge-chip.badge-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.badge-chip.badge-gray {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(100, 116, 139, 0.25));
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
}
.badge-chip.badge-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}
.badge-chip.badge-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(244, 114, 182, 0.25));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #fbcfe8;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}
.badge-chip.badge-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 179, 8, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}
.badge-chip.badge-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(34, 211, 238, 0.25));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #a5f3fc;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}
.badge-chip.badge-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}
.badge-chip.badge-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.badge-chip.badge-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* 5. REDESIGNED STATS CARDS */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}
.profile-stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.profile-stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(6, 182, 212, 0.15);
}
.profile-stat-card .stat-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.profile-stat-card .stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.profile-stat-card .stat-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES (HEADER, NAVBAR, HERO, CATEGORY TAGS)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Clean Mobile Header Layout */
    .fb-header-navbar {
        padding: 0 10px !important;
        height: 52px !important;
    }
    
    .fb-header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 6px !important;
    }

    /* Hide Left section (Z Logo & Search box) on mobile for a clean header */
    .fb-header-left,
    .fb-header-logo {
        display: none !important;
    }







    /* Center: 4 Navigation Tabs */
    .fb-header-center {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-evenly !important;
        gap: 2px !important;
    }

    .fb-nav-tab {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
    }

    .fb-nav-tab svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Right: Action Buttons (9-dots Menu + Profile/Login) */
    .fb-header-right {
        flex: 0 0 auto !important;
        max-width: none !important;
        gap: 6px !important;
    }

    .fb-circle-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .fb-circle-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .fb-user-avatar-btn img {
        width: 36px !important;
        height: 36px !important;
    }

    /* 2. Popovers (9-dots App Menu, User Profile, Notifications) on Mobile */
    .fb-apps-menu-popover,
    .fb-user-dropdown-popover,
    .notification-popover-box,
    .fb-notifications-popover {
        position: fixed !important;
        top: 56px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        z-index: 100000 !important;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95) !important;
        border-radius: 16px !important;
        padding: 16px !important;
    }


    .fb-apps-menu-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .fb-apps-left-col,
    .fb-apps-right-col {
        width: 100% !important;
    }

    .fb-apps-menu-header {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    /* 3. Announcement Marquee Bar Fixes */
    .announcement-marquee-bar {
        padding: 8px 12px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    .marquee-icon {
        font-size: 1rem !important;
        margin-right: 8px !important;
    }

    .marquee-group {
        gap: 24px !important;
        padding-right: 24px !important;
    }

    .marquee-item {
        font-size: 0.82rem !important;
    }

    /* 4. Hero Section & Category Tags Fixes */
    .hero {
        padding: 24px 12px !important;
    }

    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 0.85rem !important;
        margin-bottom: 18px !important;
    }

    .hero-search-wrapper {
        max-width: 100% !important;
    }

    .search-hint {
        display: none !important; /* Hide keyboard shortcut hint on mobile touch devices */
    }

    #homepage-search {
        padding: 12px 14px 12px 38px !important;
        font-size: 0.88rem !important;
    }

    .search-icon-hero {
        left: 12px !important;
        font-size: 0.9rem !important;
    }

    /* Smooth Horizontal Scroll for Category Tag Buttons */
    .category-tags {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 4px 10px 4px !important;
        max-width: 100% !important;
        scrollbar-width: none !important;
    }

    .category-tags::-webkit-scrollbar {
        display: none !important;
    }

    .tag-btn {
        flex-shrink: 0 !important;
        font-size: 0.82rem !important;
        padding: 8px 14px !important;
        border-radius: 20px !important;
    }

    /* 5. Tools Grid Layout Fixes */
    .tools-container {
        padding: 0 12px !important;
    }

    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .tool-card {
        padding: 16px !important;
    }

    .tool-name {
        font-size: 1.05rem !important;
    }

    /* 6. Profile Page Mobile Responsive Fixes - EXACT MATCH to user screenshot */
    .profile-header-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 16px !important;
        gap: 14px !important;
        border-radius: 0 0 16px 16px !important;
    }

    .profile-header-avatar-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .profile-header-avatar {
        margin-top: -36px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        align-self: center !important;
    }

    .profile-header-avatar .profile-big-avatar {
        width: 72px !important;
        height: 72px !important;
    }

    .profile-header-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .profile-user-names {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .profile-big-name {
        justify-content: flex-start !important;
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .profile-big-username {
        text-align: left !important;
        font-size: 0.82rem !important;
        color: #94a3b8 !important;
    }

    .profile-header-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 2px !important;
    }

    .profile-header-actions .btn-action-pill {
        flex: 1 !important;
        justify-content: center !important;
        padding: 9px 10px !important;
        font-size: 0.82rem !important;
        text-align: center !important;
        border-radius: 12px !important;
    }

    .btn-edit-profile-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }

    .profile-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .profile-stat-card {
        padding: 10px 4px !important;
        text-align: center !important;
    }

    .profile-stat-card .stat-icon {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }

    .profile-stat-card .stat-value {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
    }

    .profile-stat-card .stat-label {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }

    .badges-showcase-card {
        padding: 14px !important;
    }

    .badges-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .badge-chip {
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem !important;
    }
}

/* ==========================================================================
   MOBILE NATIVE APP STANDALONE EXPERIENCE STYLES
   ========================================================================== */
html, body {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    overscroll-behavior-y: none;
    touch-action: pan-x pan-y !important;
    -webkit-text-size-adjust: 100% !important;
}

img, video, audio {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

@media (max-width: 768px) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        user-select: none;
        -webkit-user-select: none;
    }

    input, textarea, [contenteditable="true"] {
        user-select: text !important;
        -webkit-user-select: text !important;
    }

    /* Native Mobile Touch Feedback Micro-animations */
    button:active,
    .fb-circle-btn:active,
    .fb-nav-tab:active,
    .tool-card:active,
    .fb-sidebar-item:active,
    .btn:active,
    .btn-action-pill:active {
        transform: scale(0.96) !important;
        transition: transform 0.08s ease-in-out !important;
    }
}

/* ==========================================================================
   ZM PRO 2.5 VIBRANT APP ANNOUNCEMENT & SHOWCASE BANNER
   ========================================================================== */
@keyframes zmGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes zmPulseGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.35), 0 0 50px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 45px rgba(6, 182, 212, 0.6), 0 0 80px rgba(236, 72, 153, 0.35);
    }
}

@keyframes zmFloatEffect {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes zmPulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Announcement Card Container */
.zm-showcase-wrapper {
    margin: 18px auto 32px auto;
    max-width: 980px;
    position: relative;
    z-index: 10;
}

.zm-showcase-card {
    position: relative;
    background: rgba(13, 17, 28, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 24px;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: zmPulseGlow 4s infinite ease-in-out;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.zm-showcase-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-2px);
}

/* Animated Neon Border Sweep */
.zm-card-neon-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #a855f7, #ec4899, #f59e0b, #06b6d4);
    background-size: 400% 400%;
    animation: zmGradientFlow 6s ease infinite;
    border-radius: 26px;
    z-index: -1;
    opacity: 0.7;
}

.zm-card-neon-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #090d16;
    border-radius: 23px;
    z-index: -1;
}

/* Ambient Radial Glows inside Card */
.zm-card-glow-1 {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.zm-card-glow-2 {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.zm-showcase-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Row: Chip Badge & Live Pulse */
.zm-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.zm-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(236, 72, 153, 0.45);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
}

.zm-badge-sparkle {
    font-size: 1rem;
    animation: zmFloatEffect 2s infinite ease-in-out;
}

.zm-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 5px 12px;
    border-radius: 50px;
}

.zm-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: zmPulseRing 2s infinite ease-in-out;
}

/* Main Body Row: App Icon + Content */
.zm-showcase-main {
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (max-width: 768px) {
    .zm-showcase-main {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
}

.zm-icon-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zm-icon-halo {
    position: absolute;
    inset: -10px;
    border-radius: 28px;
    background: linear-gradient(135deg, #06b6d4, #a855f7, #ec4899);
    filter: blur(14px);
    opacity: 0.75;
    animation: zmGradientFlow 4s ease infinite;
}

.zm-icon-img {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    animation: zmFloatEffect 3.5s infinite ease-in-out;
}

.zm-content-box {
    flex: 1;
    min-width: 0;
}

.zm-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.zm-gradient-headline {
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: zmGradientFlow 5s ease infinite;
}

.zm-desc {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 14px 0;
}

/* Feature Tags Grid */
.zm-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .zm-chips-grid {
        justify-content: center;
    }
}

.zm-chip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: all 0.2s ease;
}

.zm-chip-item:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    transform: translateY(-1px);
}

/* Actions Row: Buttons */
.zm-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

@media (max-width: 768px) {
    .zm-actions-row {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
}

.btn-zm-primary-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 35%, #8b5cf6 70%, #ec4899 100%);
    background-size: 300% 300%;
    animation: zmGradientFlow 4s ease infinite;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.45), 0 0 35px rgba(236, 72, 153, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-zm-primary-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(6, 182, 212, 0.65), 0 0 50px rgba(236, 72, 153, 0.5);
    color: #ffffff !important;
}

.btn-zm-primary-cta .cta-arrow {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.btn-zm-primary-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.btn-zm-secondary-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-zm-secondary-dl:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

/* Footer Metrics Strip */
.zm-metrics-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: 2px;
    font-size: 0.84rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 10px;
}

.zm-metric-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zm-metric-val {
    font-weight: 700;
    color: #38bdf8;
}

/* ==========================================================================
   FLOATING INTERACTIVE TOAST POPUP (BOTTOM RIGHT)
   ========================================================================== */
.zm-floating-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 360px;
    width: calc(100vw - 48px);
    background: rgba(13, 17, 28, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(140%);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.zm-floating-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.zm-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zm-toast-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f472b6;
    background: rgba(244, 114, 182, 0.15);
    border: 1px solid rgba(244, 114, 182, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
}

.zm-toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.zm-toast-close:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.zm-toast-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.zm-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.zm-toast-text {
    flex: 1;
    min-width: 0;
}

.zm-toast-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.zm-toast-desc {
    font-size: 0.76rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.zm-toast-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    transition: all 0.25s ease;
}

.zm-toast-btn:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
    transform: translateY(-1px);
}




