:root {
  --bg: #0b0707;
  --glow: #3d1619;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --card-top: rgba(66, 26, 29, 0.92);
  --card-bottom: rgba(22, 12, 13, 0.96);
  --border: rgba(255, 255, 255, 0.07);
  --text: #f6eeee;
  --muted: #a8979a;
  --gold: #f2b84b;
  --gold-soft: rgba(242, 184, 75, 0.14);
  --danger: #ff6b6b;
  --radius: 24px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 520px at 50% -8%, var(--glow) 0%, transparent 65%), var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.material-symbols-rounded { font-size: 22px; line-height: 1; user-select: none; }

.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; perspective: 1200px; }
.login-card {
  width: 100%; max-width: 380px; padding: 36px 28px; border-radius: 28px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transform-origin: 50% 0;
  animation: card-unfold 0.8s var(--ease-out) 1.35s backwards;
}
.login-card > * { animation: rise 0.5s var(--ease-out) backwards; }
.login-card > :nth-child(1) { animation-delay: 1.75s; }
.login-card > :nth-child(2) { animation-delay: 1.85s; }
.login-card > :nth-child(3) { animation-delay: 1.95s; }
.login-brand { display: flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 600; font-size: 22px; margin-bottom: 26px; }
.login-title { margin: 0 0 24px; font-size: 28px; font-weight: 600; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 14px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s; }
.field:focus-within { border-color: rgba(242, 184, 75, 0.6); background: var(--surface-strong); box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.08); transform: translateY(-1px); }
.field .material-symbols-rounded { color: var(--muted); font-size: 20px; transition: color 0.2s; }
.field:focus-within > .material-symbols-rounded { color: var(--gold); }
.field-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 14px 0; font-size: 15px; }
.field-input::placeholder { color: rgba(168, 151, 154, 0.7); }
.eye-button { padding: 4px; }
.form-error { margin: 2px 0 0; color: var(--danger); font-size: 14px; animation: shake 0.4s ease; }
.btn-primary { margin-top: 12px; min-height: 50px; border: none; border-radius: 999px; padding: 14px; background: var(--gold); color: #1d1011; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 184, 75, 0.25); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }
.btn-dots { display: inline-flex; gap: 6px; }
.btn-dots span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot-bounce 0.9s ease-in-out infinite; }
.btn-dots span:nth-child(2) { animation-delay: 0.12s; }
.btn-dots span:nth-child(3) { animation-delay: 0.24s; }

.login-intro { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; animation: intro-out 0.35s ease 1.5s both; }
.intro-ring { position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(242, 184, 75, 0.5); opacity: 0; animation: ring 0.9s var(--ease-out) 0.45s both; }

.logo { --size: 34px; position: relative; display: inline-block; flex-shrink: 0; width: var(--size); height: calc(var(--size) * 0.82); font-size: var(--size); }
.logo-lg { --size: 64px; }
.logo-xl { --size: 120px; }
.bubble { position: absolute; display: flex; align-items: center; justify-content: center; gap: 0.07em; border-radius: 0.24em; }
.bubble::after { content: ""; position: absolute; bottom: -0.12em; width: 0.2em; height: 0.2em; background: inherit; }
.bubble-a { left: 0; top: 0; width: 0.72em; height: 0.52em; background: var(--gold); z-index: 1; }
.bubble-a::after { left: 0.12em; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble-b { right: 0; bottom: 0.1em; width: 0.64em; height: 0.46em; background: #f6eeee; }
.bubble-b::after { right: 0.1em; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.bubble-dot { width: 0.07em; height: 0.07em; border-radius: 50%; background: #1d1011; }

.logo-split .bubble { animation-duration: 1.45s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.55, 0, 0.45, 1); }
.logo-split .bubble-a { animation-name: split-a; }
.logo-split .bubble-b { animation-name: split-b; }
.logo-split .bubble-dot { animation: dot-bounce 0.6s ease-in-out 0.15s 2; }
.logo-split .bubble-dot:nth-child(2) { animation-delay: 0.25s; }
.logo-split .bubble-dot:nth-child(3) { animation-delay: 0.35s; }
.logo-drop .bubble-a { animation: drop-in 0.6s var(--bounce) 1.8s backwards; }
.logo-drop .bubble-b { animation: drop-in 0.6s var(--bounce) 1.92s backwards; }

.logo-loading .bubble-a { animation: float-a 1.4s ease-in-out infinite; }
.logo-loading .bubble-b { animation: float-b 1.4s ease-in-out infinite; }
.logo-loading .bubble-dot { animation: dot-bounce 0.9s ease-in-out infinite; }
.logo-loading .bubble-dot:nth-child(2) { animation-delay: 0.12s; }
.logo-loading .bubble-dot:nth-child(3) { animation-delay: 0.24s; }

.screen-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-strong); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }

.top-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px; overflow: hidden; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.top-progress::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, transparent, var(--gold)); box-shadow: 0 0 10px var(--gold); animation: progress 1.1s ease-in-out infinite; }
.top-progress.active { opacity: 1; }

.loading-screen { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: rgba(11, 7, 7, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.loading-screen.visible { opacity: 1; visibility: visible; }
.loading-screen .logo { transform: scale(0.8); transition: transform 0.4s var(--bounce); }
.loading-screen.visible .logo { transform: scale(1); }
.loading-label { font-size: 15px; color: var(--muted); letter-spacing: 0.02em; }
.loading-label:not(:empty)::after { content: "..."; display: inline-block; overflow: hidden; vertical-align: bottom; width: 0; animation: ellipsis 1.2s steps(4) infinite; }

.app-shell { max-width: 640px; margin: 0 auto; min-height: 100vh; padding: 0 16px 120px; }

.app-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 16px; }
.header-user { display: flex; align-items: center; gap: 12px; padding: 0; border: none; background: none; text-align: left; min-width: 0; }
.header-user-text { display: flex; flex-direction: column; min-width: 0; }
.header-name { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-handle { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; gap: 10px; }
.round-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s; }
.round-button:hover { background: var(--surface-strong); }
.round-button .material-symbols-rounded { font-size: 20px; }

.app-content { display: flex; flex-direction: column; gap: 18px; }

.bottom-nav {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  width: min(420px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(24, 14, 15, 0.78); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.nav-button { position: relative; width: 44px; height: 44px; border-radius: 50%; border: none; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s, background 0.15s; }
.nav-button:hover { color: var(--text); }
.nav-button.active { color: var(--text); background: var(--surface-strong); }
.nav-create { width: 48px; height: 48px; border-radius: 50%; border: none; background: #fff; color: #140b0c; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15); }
.nav-create .material-symbols-rounded { font-size: 26px; }
.nav-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #1d1011; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.avatar-md { width: 46px; height: 46px; font-size: 16px; }
.avatar-lg { width: 92px; height: 92px; font-size: 30px; border-radius: 26px; }
.avatar-initials { display: flex; align-items: center; justify-content: center; background: #3a2224; color: var(--gold); font-weight: 600; }

.card { background: linear-gradient(180deg, var(--card-top), var(--card-bottom)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.empty-state { text-align: center; color: var(--muted); padding: 44px 20px; }
.empty-state .material-symbols-rounded { font-size: 42px; color: var(--gold); opacity: 0.8; }
.empty-state h2 { margin: 12px 0 4px; color: var(--text); font-size: 18px; font-weight: 600; }
.empty-state p { margin: 0; font-size: 14px; }

@media (min-width: 900px) {
  .app-header { padding-top: 28px; }
}
.section-title { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.muted { margin: 0; color: var(--muted); }

.chip-group { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; }
.chip.active { background: var(--gold-soft); border-color: rgba(242, 184, 75, 0.5); color: var(--gold); }

.post-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.post-card-media { aspect-ratio: 4 / 5; max-height: 640px; background: #1a0f10; border: 1px solid var(--border); box-shadow: var(--shadow); }
.post-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-overlay-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.post-overlay-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, transparent, rgba(12, 6, 7, 0.92) 55%); }
.author-pill { display: flex; align-items: center; gap: 10px; max-width: 75%; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(20, 12, 13, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.author-pill-text, .post-header-text { display: flex; flex-direction: column; min-width: 0; }
.post-header-text { flex: 1; }
.author-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.author-meta { font-size: 12px; color: var(--muted); }
.space-tag { flex-shrink: 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--gold); background: rgba(20, 12, 13, 0.45); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-text { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hashtag { color: var(--gold); }
.post-stats { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.post-card-media .post-stats { margin-top: 0; }
.stat-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: none; background: none; font-size: 14px; }
.stat-button .material-symbols-rounded { font-size: 21px; transition: transform 0.15s; }
.stat-button:active .material-symbols-rounded { transform: scale(0.85); }
.stat-button.liked .material-symbols-rounded { color: #ff5a6e; font-variation-settings: "FILL" 1; }
.shared-post { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.shared-post-author { margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.post-video { width: 100%; margin-top: 12px; border-radius: 16px; background: #000; }
.media-count { position: absolute; right: 14px; top: 62px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(12, 6, 7, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.media-count .material-symbols-rounded { font-size: 15px; }

.load-more { align-self: center; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.load-more:disabled { opacity: 0.6; cursor: default; }
.loading-card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; }
.error-card p { margin-bottom: 16px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 40; animation: toast-in 0.4s var(--bounce) backwards; padding: 10px 18px; border-radius: 999px; background: #2a1719; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; cursor: pointer; }

.composer { display: flex; flex-direction: column; gap: 14px; }
.composer-label { font-size: 13px; color: var(--muted); }
.composer-input { width: 100%; min-height: 180px; resize: vertical; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; line-height: 1.5; outline: none; }
.composer-input:focus { border-color: rgba(242, 184, 75, 0.6); }
.composer-input::placeholder { color: rgba(168, 151, 154, 0.7); }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.char-count { font-size: 13px; color: var(--muted); }
.char-count.warn { color: var(--gold); }
.composer-actions { display: flex; gap: 10px; }
.btn-gold { border: none; border-radius: 999px; padding: 10px 22px; background: var(--gold); color: #1d1011; font-weight: 600; }
.btn-gold:disabled { opacity: 0.5; cursor: default; }
.btn-ghost { border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; background: var(--surface); }
.detail-header { display: flex; align-items: center; gap: 12px; }
.detail-header .section-title { margin: 0; }
.round-button.small { width: 34px; height: 34px; flex-shrink: 0; }
.round-button.small .material-symbols-rounded { font-size: 18px; }
.overlay-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.comments-card { display: flex; flex-direction: column; gap: 18px; }
.comment { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble { padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: var(--surface); border: 1px solid var(--border); }
.comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.comment-bubble .post-text { font-size: 14px; }
.comment-actions { display: flex; gap: 16px; margin: 6px 0 0 4px; }
.comment-action { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: none; background: none; color: var(--muted); font-size: 13px; }
.comment-action:hover { color: var(--text); }
.comment-action .material-symbols-rounded { font-size: 17px; }
.comment-action.liked { color: #ff5a6e; }
.comment-action.liked .material-symbols-rounded { font-variation-settings: "FILL" 1; }
.comment-replies { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--border); }

.comment-composer { position: sticky; bottom: 92px; z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 24px; background: rgba(24, 14, 15, 0.88); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.replying-to { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 13px; color: var(--gold); }
.link-button { display: inline-flex; padding: 0; border: none; background: none; color: var(--muted); }
.link-button .material-symbols-rounded { font-size: 18px; }
.comment-input-row { display: flex; align-items: center; gap: 8px; }
.comment-input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); outline: none; font-size: 14px; }
.comment-input:focus { border-color: rgba(242, 184, 75, 0.6); }
.comment-input::placeholder { color: rgba(168, 151, 154, 0.7); }
.send-button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--gold); color: #1d1011; display: inline-flex; align-items: center; justify-content: center; }
.send-button:disabled { opacity: 0.4; cursor: default; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.search-bar:focus-within { border-color: rgba(242, 184, 75, 0.6); background: var(--surface-strong); }
.search-bar > .material-symbols-rounded { color: var(--muted); }
.search-input { flex: 1; min-width: 0; padding: 14px 0; border: none; outline: none; background: transparent; font-size: 15px; }
.search-input::placeholder { color: rgba(168, 151, 154, 0.7); }
.search-input::-webkit-search-cancel-button { display: none; }
.result-post { cursor: pointer; transition: border-color 0.15s; }
.result-post:hover { border-color: rgba(242, 184, 75, 0.35); }
.result-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.result-meta .material-symbols-rounded { font-size: 17px; }
.result-meta span + .material-symbols-rounded { margin-left: 10px; }
.people-list { display: flex; flex-direction: column; padding: 8px; }
.person-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: none; border-radius: 16px; background: none; text-align: left; }
.person-row:hover { background: var(--surface); }
.person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-row > .material-symbols-rounded { color: var(--muted); }
.profile-card { display: flex; flex-direction: column; gap: 18px; }
.profile-top { display: flex; align-items: center; gap: 16px; }
.profile-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.profile-name { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.2; }
.role-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(242, 184, 75, 0.35); }
.badge-strip { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.badge-strip img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; background: var(--surface); }
.badge-more { font-size: 12px; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 14px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-value { font-size: 20px; font-weight: 600; }
.stat-label { font-size: 12px; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.post-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; padding: 0; border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--card-top), var(--card-bottom)); text-align: left; }
.post-tile:hover { border-color: rgba(242, 184, 75, 0.35); }
.post-tile-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-tile-text { position: absolute; top: 0; left: 0; right: 0; padding: 12px; font-size: 12px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; }
.post-tile-stats { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; background: rgba(12, 6, 7, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.post-tile-stats .material-symbols-rounded { font-size: 14px; }

.badge-list { display: flex; flex-direction: column; gap: 14px; }
.badge-row { display: flex; align-items: center; gap: 12px; }
.badge-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; object-fit: cover; background: var(--surface); }

@media (max-width: 420px) {
  .account-row .status-pill { display: none; }
  .post-grid { gap: 6px; }
  .profile-name { font-size: 19px; }
}
.mark-all { margin-left: auto; gap: 6px; font-size: 13px; color: var(--gold); }
.mark-all:disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.notification-list { display: flex; flex-direction: column; padding: 6px; }
.notification { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 18px; cursor: pointer; transition: background 0.15s; }
.notification:hover { background: var(--surface); }
.notification.unread { background: rgba(242, 184, 75, 0.06); }
.notification-avatar { position: relative; flex-shrink: 0; }
.type-icon { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: #1d1011; border: 2px solid #1a0f10; }
.type-icon .material-symbols-rounded { font-size: 13px; font-variation-settings: "FILL" 1; }
.notification-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notification-text { margin: 0; font-size: 14px; line-height: 1.4; }
.notification-text .strong { font-weight: 600; }
.notification-preview { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; margin-top: 8px; flex-shrink: 0; border-radius: 50%; background: var(--gold); }
.notification .link-button { opacity: 0; transition: opacity 0.15s; }
.notification:hover .link-button { opacity: 1; }
.notification .badge-icon { width: 46px; height: 46px; }
@media (hover: none) { .notification .link-button { opacity: 1; } }

.skeleton-card { display: flex; flex-direction: column; gap: 12px; }
.skeleton-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-avatar { width: 46px; height: 46px; border-radius: 50%; }
.skeleton-line { height: 12px; }
.w-25 { width: 25%; }
.w-40 { width: 40%; }
.w-70 { width: 70%; }
.w-90 { width: 90%; }

.app-header { animation: slide-down 0.5s var(--ease-out) backwards; }
.bottom-nav { animation: nav-in 0.6s var(--bounce) 0.1s backwards; }
.app-content > :not(.toast) { animation: rise 0.45s var(--ease-out) backwards; }
.app-content > :nth-child(2) { animation-delay: 0.05s; }
.app-content > :nth-child(3) { animation-delay: 0.1s; }
.app-content > :nth-child(4) { animation-delay: 0.15s; }
.app-content > :nth-child(5) { animation-delay: 0.2s; }
.app-content > :nth-child(6) { animation-delay: 0.25s; }
.app-content > :nth-child(n + 7) { animation-delay: 0.3s; }

.notification-list > *, .people-list > *, .comments-card > *, .badge-list > *, .post-grid > *, .comment-replies > * { animation: rise 0.4s var(--ease-out) backwards; }
.notification-list > :nth-child(2), .people-list > :nth-child(2), .comments-card > :nth-child(2), .badge-list > :nth-child(2), .post-grid > :nth-child(2) { animation-delay: 0.04s; }
.notification-list > :nth-child(3), .people-list > :nth-child(3), .comments-card > :nth-child(3), .badge-list > :nth-child(3), .post-grid > :nth-child(3) { animation-delay: 0.08s; }
.notification-list > :nth-child(4), .people-list > :nth-child(4), .comments-card > :nth-child(4), .badge-list > :nth-child(4), .post-grid > :nth-child(4) { animation-delay: 0.12s; }
.notification-list > :nth-child(5), .people-list > :nth-child(5), .comments-card > :nth-child(5), .badge-list > :nth-child(5), .post-grid > :nth-child(5) { animation-delay: 0.16s; }
.notification-list > :nth-child(n + 6), .people-list > :nth-child(n + 6), .comments-card > :nth-child(n + 6), .badge-list > :nth-child(n + 6), .post-grid > :nth-child(n + 6) { animation-delay: 0.2s; }

.card, .post-card { transition: transform 0.25s var(--ease-out), border-color 0.2s, box-shadow 0.25s; }
.post-card:hover, .result-post:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
.post-cover, .post-tile-image { transition: transform 0.6s var(--ease-out); }
.post-card-media:hover .post-cover, .post-tile:hover .post-tile-image { transform: scale(1.04); }
.post-tile { transition: transform 0.2s var(--ease-out), border-color 0.2s; }
.post-tile:active { transform: scale(0.97); }
.stat-button.liked .material-symbols-rounded, .comment-action.liked .material-symbols-rounded { animation: heart-pop 0.45s var(--bounce); }
.stat-button:hover .material-symbols-rounded { transform: scale(1.1); }

.nav-button { transition: color 0.2s, background 0.25s, transform 0.15s; }
.nav-button .material-symbols-rounded { transition: transform 0.25s var(--bounce); }
.nav-button.active .material-symbols-rounded { transform: scale(1.1); font-variation-settings: "FILL" 1; }
.nav-button:active { transform: scale(0.9); }
.nav-create { transition: transform 0.3s var(--bounce), box-shadow 0.2s; }
.nav-create:hover { transform: rotate(90deg) scale(1.06); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25); }
.nav-create:active { transform: scale(0.92); }
.nav-badge { animation: pop 0.4s var(--bounce); }

.chip { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
.chip:hover { color: var(--text); }
.chip:active { transform: scale(0.95); }
.btn-gold, .btn-ghost, .load-more, .round-button, .send-button, .person-row, .comment-action, .link-button { transition: transform 0.15s, opacity 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s; }
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(242, 184, 75, 0.22); }
.btn-gold:active:not(:disabled), .btn-ghost:active, .load-more:active, .round-button:active { transform: scale(0.95); }
.btn-ghost:hover, .load-more:hover { background: var(--surface-strong); }
.send-button:hover:not(:disabled) { transform: rotate(-14deg) scale(1.06); }
.person-row:hover > .material-symbols-rounded { transform: translateX(3px); }
.person-row > .material-symbols-rounded { transition: transform 0.2s; }
.composer-input { transition: border-color 0.2s, box-shadow 0.2s; }
.composer-input:focus { box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.08); }
.comment-input { transition: border-color 0.2s; }
.replying-to { animation: rise 0.25s var(--ease-out); }
.unread-dot { animation: pulse 1.8s ease-out infinite; }
.empty-state .material-symbols-rounded { display: inline-block; animation: float 3s ease-in-out infinite; }
.error-card .material-symbols-rounded { animation: shake 0.5s ease 0.2s; }
.avatar-lg { animation: pop 0.5s var(--bounce) 0.1s backwards; }
.notification { transition: background 0.2s, transform 0.2s; }
.notification:active { transform: scale(0.99); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top-bar, .side-nav, .right-rail, .feed-composer { display: none; }

.search-icon { display: inline-flex; color: var(--muted); transition: color 0.2s; }
.search-bar:focus-within .search-icon { color: var(--gold); }
.search-bar.searching .search-icon { color: var(--gold); animation: lupa-bob 0.7s ease-in-out infinite; }
.search-clear { animation: pop 0.25s var(--bounce); }
.results-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; }
.results-title { font-weight: 600; font-size: 15px; }
.see-all { font-size: 13px; color: var(--gold); }
.single-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spinner.small { width: 22px; height: 22px; border-width: 2px; }

.media-pickers { display: flex; flex-wrap: wrap; gap: 8px; }
.media-picker { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s; }
.media-picker .material-symbols-rounded { font-size: 19px; color: var(--gold); }
.media-picker:hover { color: var(--text); background: var(--surface-strong); }
.media-picker:active { transform: scale(0.96); }
.media-picker.disabled { opacity: 0.45; pointer-events: none; }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.attachment { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #1a0f10; border: 1px solid var(--border); animation: pop 0.35s var(--bounce); }
.attachment-media { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.3s, opacity 0.3s; }
.attachment.uploading .attachment-media { filter: blur(2px); opacity: 0.6; }
.attachment-progress { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.attachment-kind { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(12, 6, 7, 0.7); font-size: 11px; font-weight: 700; }
.attachment-kind .material-symbols-rounded { font-size: 16px; }
.attachment-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(12, 6, 7, 0.75); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s, background 0.15s; }
.attachment-remove:hover { background: var(--danger); transform: scale(1.08); }
.attachment-remove .material-symbols-rounded { font-size: 16px; }

.profile-hero { padding: 0; overflow: hidden; }
.profile-cover { position: relative; height: 150px; overflow: hidden; background: linear-gradient(135deg, #5a2328 0%, #2a1416 55%, #160c0d 100%); }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(62, 25, 28, 0.92)); }
.cover-orb { position: absolute; border-radius: 50%; filter: blur(36px); opacity: 0.75; animation: drift 14s ease-in-out infinite alternate; }
.orb-a { width: 240px; height: 240px; left: -40px; top: -90px; background: rgba(242, 184, 75, 0.55); }
.orb-b { width: 280px; height: 280px; right: -60px; top: -60px; background: rgba(255, 90, 110, 0.35); animation-delay: -6s; }
.profile-bar { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px; margin-top: -52px; }
.profile-avatar { padding: 5px; border-radius: 32px; background: #1f1112; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.profile-avatar .avatar-lg { width: 104px; height: 104px; font-size: 34px; border-radius: 28px; }
.profile-action { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.profile-action .material-symbols-rounded { font-size: 19px; }
.profile-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 6px; }
.profile-hero .profile-name { font-size: 24px; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item .material-symbols-rounded { font-size: 18px; }
.profile-counts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.count b { color: var(--text); font-weight: 600; }
.profile-tabs { display: flex; margin-top: 10px; border-top: 1px solid var(--border); }
.profile-tab { position: relative; flex: 1; padding: 15px 10px; border: none; background: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.profile-tab::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: translateX(-50%); transition: width 0.3s var(--ease-out); }
.profile-tab:hover { color: var(--text); background: var(--surface); }
.profile-tab.active { color: var(--text); font-weight: 600; }
.profile-tab.active::after { width: 56px; }
.profile-empty-action { align-self: center; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.badge-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; text-align: center; }
.badge-card .badge-icon { width: 56px; height: 56px; margin-bottom: 4px; }
.badge-date { font-size: 12px; color: var(--gold); }
.badge-grid > * { animation: rise 0.4s var(--ease-out) backwards; }

@media (max-width: 420px) {
  .account-row .status-pill { display: none; }
  .profile-cover { height: 120px; }
  .profile-avatar .avatar-lg { width: 86px; height: 86px; font-size: 28px; }
  .profile-bar { margin-top: -44px; padding: 0 16px; }
  .profile-body { padding: 12px 16px 4px; }
}

.share-label { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.share-label .material-symbols-rounded { font-size: 17px; color: var(--gold); }
.shared-post { display: flex; flex-direction: column; gap: 8px; }
.shared-post.clickable { cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.shared-post.clickable:hover { border-color: rgba(242, 184, 75, 0.35); background: var(--surface-strong); }
.shared-post.unavailable { flex-direction: row; align-items: center; color: var(--muted); font-size: 14px; }
.shared-head { display: flex; align-items: center; gap: 10px; }
.stat-button.share .material-symbols-rounded { transition: transform 0.35s var(--bounce); }
.stat-button.share:hover .material-symbols-rounded { transform: rotate(180deg); }

.media-gallery { display: grid; gap: 4px; margin-top: 12px; border-radius: 18px; overflow: hidden; }
.media-gallery.compact { margin-top: 4px; border-radius: 12px; }
.media-gallery.count-2 { grid-template-columns: 1fr 1fr; }
.media-gallery.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.media-gallery.count-3 .gallery-item:first-child { grid-row: span 2; }
.media-gallery.count-4 { grid-template-columns: 1fr 1fr; }
.gallery-item { position: relative; min-height: 0; background: #1a0f10; }
.gallery-media { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.media-gallery.count-1 .gallery-media { max-height: 560px; object-fit: contain; background: #000; }
.media-gallery:not(.count-1) .gallery-item { aspect-ratio: 1; }
.media-gallery.count-3 .gallery-item:first-child { aspect-ratio: auto; }
.media-gallery.compact .gallery-media { max-height: 280px; }
.gif-tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(12, 6, 7, 0.75); }
.gallery-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; background: rgba(12, 6, 7, 0.6); pointer-events: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 55; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(8, 4, 5, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 0.2s ease; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: sheet-up 0.3s var(--ease-out); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head .section-title { margin: 0; }
.share-input { min-height: 96px; }
.modal-actions, .composer-actions.end { justify-content: flex-end; }

.admin-head { display: flex; align-items: center; gap: 14px; }
.admin-head .section-title { margin: 0; }
.admin-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: var(--gold-soft); color: var(--gold); }
.admin-icon .material-symbols-rounded { font-size: 26px; }
.admin-card { display: flex; flex-direction: column; gap: 14px; }
.admin-card-toggle, .admin-card-title { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: none; background: none; text-align: left; }
.admin-card-toggle .material-symbols-rounded, .admin-card-title .material-symbols-rounded { color: var(--gold); }
.chevron { margin-left: auto; display: inline-flex; transition: transform 0.25s var(--ease-out); }
.chevron .material-symbols-rounded { color: var(--muted); }
.chevron.open { transform: rotate(180deg); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field .field-input { padding: 12px 0; }
.form-field input[type="date"] { color-scheme: dark; }
.field.invalid { border-color: rgba(255, 107, 107, 0.6); }
.field-error { font-size: 12px; color: var(--danger); }
.chip-group.wrap { flex-wrap: wrap; overflow: visible; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .material-symbols-rounded { font-size: 17px; }
.admin-hint { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--muted); }
.admin-hint .material-symbols-rounded { font-size: 18px; color: var(--gold); }
.muted.center { text-align: center; padding: 18px 0; }
.account-list { display: flex; flex-direction: column; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); transition: opacity 0.2s, background 0.15s; }
.account-row:last-child { border-bottom: none; }
.account-row:hover { background: var(--surface); }
.account-row.inactive { opacity: 0.55; }
.account-actions { display: flex; gap: 6px; }
.status-pill { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.status-pill.on { color: #7fd99a; background: rgba(127, 217, 154, 0.1); border-color: rgba(127, 217, 154, 0.3); }
.status-pill.off { color: var(--muted); }
.account-list > * { animation: rise 0.35s var(--ease-out) backwards; }

.credential-card { display: flex; flex-direction: column; gap: 14px; border-color: rgba(242, 184, 75, 0.45); box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.08), var(--shadow); animation: pop 0.4s var(--bounce); }
.credential-head { display: flex; align-items: center; gap: 12px; }
.credential-head > div { display: flex; flex-direction: column; }
.credential-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--gold); color: #1d1011; }
.credential-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); }
.credential-label { font-size: 13px; color: var(--muted); }
.credential-value { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 16px; letter-spacing: 0.04em; user-select: all; }
.credential-value.big { font-size: 26px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); font-variant-ligatures: none; }
.credential-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; }
.copy-button .material-symbols-rounded { font-size: 18px; }
.copy-button.copied { color: #7fd99a; border-color: rgba(127, 217, 154, 0.4); }
.credential-note { display: flex; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.credential-note .material-symbols-rounded { font-size: 18px; color: var(--gold); }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .modal-backdrop { align-items: center; }
}

@media (min-width: 1024px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, var(--glow) 0%, transparent 60%), var(--bg); background-attachment: fixed; }
  .app-shell { max-width: 1280px; padding: 0 24px 40px; }
  .app-header, .bottom-nav { display: none; }
  .top-bar { position: sticky; top: 0; z-index: 35; display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; align-items: center; gap: 24px; margin: 0 -24px; padding: 14px 24px; background: rgba(11, 7, 7, 0.78); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: slide-down 0.45s var(--ease-out) backwards; }
  .top-brand { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: none; background: none; color: var(--gold); font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }
  .top-user { justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: background 0.2s; }
  .top-user:hover { background: var(--surface-strong); }
  .top-user-name { font-weight: 600; font-size: 14px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-user .material-symbols-rounded { color: var(--muted); font-size: 20px; }

  .quick-search { position: relative; width: 100%; max-width: 560px; justify-self: center; }
  .quick-search .search-bar { position: relative; z-index: 2; background: var(--surface-strong); }
  .quick-search .search-input { padding: 11px 0; font-size: 14px; }
  .quick-search-backdrop { position: fixed; inset: 0; z-index: 1; }
  .quick-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 3; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border-radius: 20px; background: linear-gradient(180deg, rgba(48, 20, 22, 0.98), rgba(20, 11, 12, 0.98)); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); transform-origin: 50% 0; animation: panel-in 0.2s var(--ease-out); }
  .quick-label { display: block; padding: 10px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .quick-panel .person-row { padding: 8px 10px; }
  .quick-panel .person-row > .material-symbols-rounded { font-size: 18px; }
  .quick-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px; color: var(--muted); font-size: 14px; }
  .quick-all { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 12px 10px; border: none; border-top: 1px solid var(--border); border-radius: 0 0 14px 14px; background: none; color: var(--gold); font-size: 14px; text-align: left; transition: background 0.15s; }
  .quick-all:hover { background: var(--surface); }

  .app-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-top: 24px; }
  .app-content { min-width: 0; max-width: 680px; width: 100%; justify-self: center; }

  .side-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; animation: rise 0.45s var(--ease-out) backwards; }
  .side-menu { display: flex; flex-direction: column; gap: 4px; }
  .side-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: none; border-radius: 16px; background: none; color: var(--muted); font-size: 16px; text-align: left; transition: background 0.2s, color 0.2s; }
  .side-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--gold); transform: translateY(-50%); transition: height 0.25s var(--ease-out); }
  .side-item:hover { color: var(--text); background: var(--surface); }
  .side-item.active { color: var(--text); background: var(--gold-soft); font-weight: 600; }
  .side-item.active::before { height: 60%; }
  .side-item.active .material-symbols-rounded { color: var(--gold); font-variation-settings: "FILL" 1; }
  .side-icon { position: relative; display: inline-flex; }
  .side-icon .nav-badge { top: -8px; right: -12px; }
  .side-item .material-symbols-rounded { transition: transform 0.2s var(--bounce); }
  .side-item:hover .material-symbols-rounded { transform: scale(1.12); }
  .side-publish { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 13px; border: none; border-radius: 16px; background: var(--gold); color: #1d1011; font-weight: 600; font-size: 15px; transition: transform 0.15s, box-shadow 0.2s; }
  .side-publish:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 184, 75, 0.25); }
  .side-publish:active { transform: scale(0.98); }
  .side-logout { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 14px; transition: color 0.2s, background 0.2s; }
  .side-logout:hover { color: var(--text); background: var(--surface-strong); }

  .right-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; animation: rise 0.45s var(--ease-out) 0.08s backwards; }
  .rail-profile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 20px 20px; overflow: hidden; text-align: center; }
  .rail-cover { align-self: stretch; height: 92px; margin: 0 -20px; background: radial-gradient(120% 140% at 0% 0%, rgba(242, 184, 75, 0.55), transparent 55%), radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 110, 0.4), transparent 55%), linear-gradient(135deg, #4a1d21, #1a0f10); }
  .rail-avatar { margin-top: -46px; padding: 4px; border-radius: 30px; background: #1a0f10; }
  .rail-avatar .avatar-lg { width: 84px; height: 84px; }
  .rail-name { font-size: 18px; font-weight: 600; }
  .rail-publish { align-self: stretch; margin-top: 8px; padding: 12px; }
  .rail-list { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
  .rail-title { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .rail-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; font-size: 14px; }
  .rail-row .material-symbols-rounded { font-size: 20px; color: var(--gold); }
  .rail-action { width: 100%; border: none; background: none; text-align: left; transition: background 0.15s; }
  .rail-action span:nth-child(2) { flex: 1; }
  .rail-action .material-symbols-rounded:last-child { color: var(--muted); transition: transform 0.2s; }
  .rail-action:hover { background: var(--surface); }
  .rail-action:hover .material-symbols-rounded:last-child { transform: translateX(3px); }

  .feed-composer { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
  .feed-composer-input { width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-align: left; font-size: 15px; transition: background 0.2s, border-color 0.2s; }
  .feed-composer-input:hover { background: var(--surface-strong); border-color: rgba(242, 184, 75, 0.35); }
  .feed-composer-actions { display: flex; align-items: center; gap: 8px; }
  .feed-composer-actions .btn-gold { margin-left: auto; }
  .composer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: none; border-radius: 12px; background: none; color: var(--muted); font-size: 14px; transition: background 0.15s, color 0.15s; }
  .composer-chip .material-symbols-rounded { color: var(--gold); font-size: 20px; }
  .composer-chip:hover { background: var(--surface); color: var(--text); }

  .comment-composer { bottom: 20px; }
  .toast { bottom: 32px; }
  .post-card-media { max-height: 720px; }
  .profile-cover { height: 200px; }
  .profile-bar { margin-top: -64px; padding: 0 28px; }
  .profile-avatar .avatar-lg { width: 128px; height: 128px; font-size: 42px; border-radius: 34px; }
  .profile-body { padding: 16px 28px 8px; }
  .profile-hero .profile-name { font-size: 28px; }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .top-bar, .app-body { grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 18px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(30px, 18px); } }
@keyframes lupa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, 120%); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 184, 75, 0.6); } 100% { box-shadow: 0 0 0 8px rgba(242, 184, 75, 0); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes progress { from { left: -40%; } to { left: 100%; } }
@keyframes ellipsis { to { width: 1.2em; } }
@keyframes dot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.6; } 40% { transform: translateY(-60%); opacity: 1; } }
@keyframes float-a { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-0.04em, -0.06em) rotate(-5deg); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(0.04em, 0.05em) rotate(5deg); } }
@keyframes split-a {
  0% { opacity: 0; transform: translate(0.1em, 0.08em) scale(0.4); }
  20% { opacity: 1; transform: translate(0, 0) scale(1.08); }
  34% { transform: translate(0, 0) scale(1); }
  52% { transform: translate(-0.32em, -0.14em) rotate(-14deg); }
  100% { opacity: 0.4; transform: translate(-0.6em, 110vh) rotate(-70deg); }
}
@keyframes split-b {
  0% { opacity: 0; transform: translate(-0.1em, -0.08em) scale(0.4); }
  20% { opacity: 1; transform: translate(0, 0) scale(1.08); }
  34% { transform: translate(0, 0) scale(1); }
  52% { transform: translate(0.32em, 0.12em) rotate(14deg); }
  100% { opacity: 0.4; transform: translate(0.6em, 110vh) rotate(65deg); }
}
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-140px) rotate(-20deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes card-unfold {
  0% { opacity: 0; transform: rotateX(-75deg) translateY(30px) scale(0.92); clip-path: inset(0 0 100% 0 round 28px); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; clip-path: inset(-60px -60px -80px -60px round 28px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
