/* ============================================================
   LINK SNS - Glassmorphism Redesign (Simple Version)
   Based on: Threads / Bluesky / Discord fusion
   Light mode base with glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;800;900&display=swap');

/* REDESIGN: CSS Variables */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #e8ecf4;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-input: rgba(255, 255, 255, 0.5);
    --bg-hover: rgba(255, 255, 255, 0.5);
    --text: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.6);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(99,102,241,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(99,102,241,0.16);
    --shadow-card: 0 4px 12px rgba(0,0,0,0.05), 0 12px 32px rgba(99,102,241,0.12), 0 0 0 1px rgba(255,255,255,0.6);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(30px);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* REDESIGN: Background with mesh gradient */
body {
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", -apple-system, sans-serif;
    background: linear-gradient(135deg, #d8dff0 0%, #d0d8ea 50%, #d5ddee 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* REDESIGN: Subtle accent mesh overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(99,102,241,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(236,72,153,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TOP TAB BAR === */
/* REDESIGN: Glassmorphism header */
.top-tab-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: stretch;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 10px 30px rgba(99,102,241,0.12);
}

.top-tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    color: var(--text-muted);
    font-size: calc(var(--ufs, 14px) - 1px);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color var(--transition);
}
.top-tab-item:hover { color: var(--text); text-decoration: none; }
.top-tab-item.active { color: var(--accent-hover); }
.top-tab-item.active::after {
    position: absolute;
    content: "";
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px 3px 0 0;
}
.top-tab-item i { font-size: 16px; }

/* === LAYOUT === */
/* REDESIGN: Percentage-based floating island layout */
.app-layout { display: flex; min-height: 100vh; padding-top: 54px; position: relative; z-index: 1; }

/* REDESIGN: Floating glassmorphism sidebar (percentage width) */
.sidebar {
    width: 15%;
    min-width: 180px;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: fixed;
    top: 70px; left: 1%; bottom: 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.sidebar-logo {
    padding: 20px;
    font-size: 24px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.5px;
}

.sidebar-nav { padding: 12px 0; flex: 1; overflow: visible; clip-path: none; }

/* REDESIGN: Nav items with hover animation */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    color: var(--text-muted);
    font-size: calc(var(--ufs, 14px) + 1px);
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    margin: 3px 10px;
    border-radius: var(--radius-sm);
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    text-decoration: none;
    transform: translateX(2px);
}

/* REDESIGN: Active nav - bar separate from button */
.nav-item.active {
    color: #fff;
    background: linear-gradient(to right, #312e81 0%, #3730a3 30%, #4338ca 60%, #4f46e5 85%, #6366f1 100%);
    font-weight: 700;
    box-shadow:
        0 4px 12px rgba(99,102,241,0.35),
        0 8px 24px rgba(139,92,246,0.2),
        inset 0 1px 1px rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    transform: scale(1.02);
    margin-left: 20px;
}
.nav-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: #312e81;
    border-radius: 3px;
}

.nav-item .nav-icon { font-size: 20px; display: flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; height: 36px; }
.nav-badge {
    background: var(--danger); color: #fff;
    font-size: calc(var(--ufs, 14px) - 3px); font-weight: 700;
    padding: 1px 7px; border-radius: 10px;
    min-width: 20px; text-align: center;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-handle { font-size: 12px; color: var(--text-dim); }

/* REDESIGN: Percentage-based main content */
.main-content { flex: 1; margin-left: calc(15% + 2%); margin-right: calc(15% + 2%); min-height: 100vh; }
.content-area { max-width: 100%; margin: 0 auto; padding: 24px 2%; }
.content-wide { max-width: 100%; margin: 0 auto; padding: 24px 2%; }

/* REDESIGN: 2-column feed grid */
#postsFeed, .posts-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === PAGE HEADER === */
.page-header { padding: 20px 0 16px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 20px; }
.page-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

/* === CARDS === */
/* REDESIGN: Glassmorphism cards */
.card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* === BUTTONS === */
/* REDESIGN: Gradient buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: var(--radius-xs);
    font-size: var(--ufs, 14px); font-weight: 600; cursor: pointer;
    transition: all var(--transition); text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 40%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.85); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.5); }
.btn-sm { padding: 6px 14px; font-size: calc(var(--ufs, 14px) - 1px); }
.btn-lg { padding: 14px 28px; font-size: calc(var(--ufs, 14px) + 2px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: calc(var(--ufs, 14px) - 1px); font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
/* REDESIGN: Glass input fields */
.form-input {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-xs); color: var(--text);
    font-size: var(--ufs, 14px); font-family: inherit; outline: none;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    background: rgba(255,255,255,0.7);
}
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* === AVATAR === */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-input); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg-input); }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg-input); }
.avatar-xl { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-input); }

/* === ALERT === */
.alert { padding: 12px 16px; border-radius: var(--radius-xs); margin-bottom: 16px; font-size: var(--ufs, 14px); backdrop-filter: blur(10px); }
.alert-error { background: rgba(254,242,242,0.8); color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: rgba(240,253,244,0.8); color: #16a34a; border: 1px solid #bbf7d0; }

/* === POST CARD === */
/* REDESIGN: Elevated glass post cards */
.post-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.post-card:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.6);
}

.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-user-info { flex: 1; }
.post-user-name { font-weight: 600; font-size: var(--ufs, 14px); }
.post-user-name a { color: var(--text); }
.post-time { font-size: calc(var(--ufs, 14px) - 2px); color: var(--text-dim); }
.post-content { font-size: calc(var(--ufs, 14px) + 1px); line-height: 1.7; margin-bottom: 12px; word-break: break-word; }
.post-content .hashtag { color: var(--accent-hover); }
.post-images { margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.post-images img { width: 100%; max-height: 400px; object-fit: cover; display: block; cursor: pointer; transition: opacity 0.2s; }
.post-images.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.post-images.grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.post-images.grid-4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }

/* REDESIGN: Interactive action buttons */
.post-actions { display: flex; gap: 4px; border-top: 1px solid var(--border-subtle); padding-top: 10px; }
.post-action-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border: none; background: transparent;
    color: var(--text-dim); font-size: calc(var(--ufs, 14px) - 1px); cursor: pointer;
    border-radius: var(--radius-xs); transition: all var(--transition);
}
.post-action-btn:hover {
    background: rgba(99,102,241,0.08);
    color: var(--accent);
    transform: scale(1.05);
}
.post-action-btn.liked { color: var(--danger); }
.post-action-btn.liked:hover {
    background: rgba(220,38,38,0.08);
    color: var(--danger);
}
.post-action-btn .count { font-weight: 600; }

/* === COMPOSER === */
/* REDESIGN: Elevated glass composer */
.composer {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.composer-top { display: flex; gap: 10px; }
/* REDESIGN: Subtly raised textarea */
.composer textarea {
    flex: 1;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    font-size: calc(var(--ufs, 14px) + 1px);
    resize: none; outline: none; min-height: 60px;
    font-family: inherit; line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    transition: all var(--transition);
}
.composer textarea:focus {
    border-color: var(--accent);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03), 0 0 0 3px rgba(99,102,241,0.1);
}
.composer textarea::placeholder { color: var(--text-dim); }
.composer-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle);
}
.composer-tools { display: flex; gap: 4px; }
.composer-tool-btn {
    background: rgba(255,255,255,0.4); border: 1px solid rgba(0,0,0,0.05); color: var(--text-dim);
    font-size: 18px; padding: 10px 12px; cursor: pointer; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all var(--transition);
}
.composer-tool-btn:hover {
    background: rgba(99,102,241,0.08); color: var(--accent);
}

/* === MOBILE NAV === */
.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border);
    z-index: 100; display: none;
    padding: env(safe-area-inset-bottom, 0);
}
.mobile-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px; font-size: 10px; color: var(--text-dim); text-decoration: none;
    transition: color var(--transition); position: relative;
}
.mobile-nav-item .nav-icon { font-size: 24px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.mobile-nav-item.active { color: var(--accent-hover); }
.mobile-nav-item .nav-badge { position: absolute; top: 0; right: 4px; font-size: 10px; padding: 0 5px; min-width: 16px; }
.mobile-nav-item .nav-icon-img { width: 24px; height: 24px; }

/* === RIGHT SIDEBAR === */
/* REDESIGN: Percentage-based floating right sidebar */
.right-sidebar {
    width: 15%;
    min-width: 180px;
    max-width: 280px;
    position: fixed;
    top: 70px; right: 1%; bottom: 16px;
    padding: 20px 12px;
    overflow-y: auto;
    z-index: 50;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.right-sidebar-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.right-sidebar-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.04), 0 8px 24px rgba(99,102,241,0.08);
}
.right-sidebar-nav a:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06), 0 12px 32px rgba(99,102,241,0.14);
    background: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.right-sidebar-nav a span {
    display: block !important;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.right-sidebar-nav a .rs-icon {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .right-sidebar { display: none; }
    .main-content { margin-right: 0; }
    #postsFeed, .posts-feed { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; margin-right: 0; }
    #postsFeed, .posts-feed { grid-template-columns: 1fr; }
    .top-tab-bar { display: none; }
    .mobile-nav { display: block; }
    .app-layout { padding-top: 0; padding-bottom: 64px; }
    .content-area { padding: 16px 12px; }
}
@media (max-width: 480px) {
    .post-card { padding: 12px 14px; }
    .composer { padding: 12px; }
    .page-header h1 { font-size: 20px; }
}

/* === ANIMATIONS === */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* REDESIGN: Post cards animate in */
.post-card { animation: fadeInUp 0.4s ease both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === FAB === */
.fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    background: var(--accent-gradient);
    color: #fff; font-size: 26px;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 200;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
    transition: all var(--transition);
}
.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(99,102,241,0.5);
}
@media (max-width: 768px) {
    .fab { bottom: 80px; right: 16px; width: 56px; height: 56px; font-size: 24px; }
}

/* === DARK MODE === */
html[data-theme="dark"] {
    --bg: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-input: rgba(15, 23, 42, 0.6);
    --bg-hover: rgba(30, 41, 59, 0.5);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-secondary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #818cf8, #a78bfa);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-hover: 0 2px 4px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
}
html[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
html[data-theme="dark"] body::before {
    background:
        radial-gradient(ellipse at 10% 20%, rgba(99,102,241,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.06) 0%, transparent 50%);
}
html[data-theme="dark"] .sidebar {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .right-sidebar {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .top-tab-bar {
    background: rgba(15, 23, 42, 0.85);
}
html[data-theme="dark"] .mobile-nav {
    background: rgba(15, 23, 42, 0.85);
}
html[data-theme="dark"] img { opacity: 0.95; }
html[data-theme="dark"] .alert-error { background: rgba(69,26,26,0.8); color: #fca5a5; border-color: #7f1d1d; }
html[data-theme="dark"] .alert-success { background: rgba(20,83,45,0.8); color: #86efac; border-color: #166534; }

/* REDESIGN: Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.4); }

html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(129,140,248,0.2); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(129,140,248,0.4); }

/* === LOADING === */
.loading-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* @supports fallback */
@supports not (backdrop-filter: blur(1px)) {
    .sidebar { background: #fff; }
    .top-tab-bar { background: #fff; }
    .mobile-nav { background: #fff; }
    .card, .post-card, .composer { background: #fff; }
    html[data-theme="dark"] .sidebar { background: #1e293b; }
    html[data-theme="dark"] .top-tab-bar { background: #0f172a; }
    html[data-theme="dark"] .card, html[data-theme="dark"] .post-card, html[data-theme="dark"] .composer { background: #1e293b; }
}

/* REDESIGN: Right sidebar - match production ace-tool-menu style */
.right-sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    gap: 0 !important;
}
.right-sidebar-nav a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    aspect-ratio: unset !important;
    text-decoration: none !important;
    color: var(--text) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}
.right-sidebar-nav a:hover {
    background: rgba(255,255,255,0.5) !important;
    transform: none !important;
}
.right-sidebar-nav a img {
    width: 36px !important;
    height: auto !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}



/* REDESIGN: Right sidebar - force transparent items */
#rightSidebarTool a,
#rightSidebarTool a:link,
#rightSidebarTool a:visited,
.right-sidebar-nav a[style] {
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}
#rightSidebarTool a:hover {
    background: rgba(99,102,241,0.1) !important;
}
.right-sidebar {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* REDESIGN: Hide description text in right sidebar tool menu */
#rightSidebarTool a span {
    display: none !important;
}

