@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── VARIABLES ─────────────────────────────── */
:root {
  --bg: #0a0a0f;
  --bg2: #13131a;
  --bg3: #1c1c26;
  --surface: #1e1e2e;
  --surface2: #252538;
  --accent: #7c6aff;
  --accent2: #a78bfa;
  --accent-glow: rgba(124, 106, 255, 0.25);
  --text: #f0f0ff;
  --text2: #9090b8;
  --text3: #5a5a7a;
  --danger: #ff5370;
  --success: #50fa7b;
  --warning: #ffb86c;
  --troll: #ff6b6b;
  --sfx: #ffd93d;
  --filter: #6bcb77;
  --sticker: #4d96ff;
  --music: #c77dff;
  --other: #747bff;
  --nav-h: 72px;
  --header-h: 60px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f2f2fa;
  --bg2: #e8e8f5;
  --bg3: #ddddf0;
  --surface: #ffffff;
  --surface2: #efefff;
  --text: #12121f;
  --text2: #50507a;
  --text3: #9090b8;
  --accent-glow: rgba(124, 106, 255, 0.15);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--transition), color var(--transition);
}

img { display: block; width: 100%; object-fit: cover; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; color: inherit; }
input, textarea { font-family: var(--font); outline: none; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }

/* ─── PAGES ──────────────────────────────────── */
.page { display: none; flex-direction: column; min-height: 100dvh; }
.page.active { display: flex; }

/* ─── SPLASH SCREEN ──────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  animation: splashOut 0.5s ease 2.2s forwards;
}

#splash .splash-logo {
  width: 90px; height: 90px; border-radius: 24px;
  object-fit: cover;
  animation: splashPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
  box-shadow: 0 0 60px var(--accent-glow);
}

#splash .splash-title {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeUp 0.5s ease 0.7s both;
}

#splash .splash-sub {
  font-size: 0.85rem; color: var(--text3); letter-spacing: 0.1em;
  animation: fadeUp 0.5s ease 0.9s both;
}

#splash .splash-loader {
  width: 160px; height: 3px;
  background: var(--surface2); border-radius: 99px; overflow: hidden;
  animation: fadeUp 0.5s ease 1.1s both;
}

#splash .splash-loader-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  animation: loadBar 1.8s ease 1.1s forwards;
}

@keyframes splashPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }
@keyframes splashOut { to { opacity: 0; pointer-events: none; } }
@keyframes fadeUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── AUTH PAGE ──────────────────────────────── */
#auth-page {
  align-items: center; justify-content: center;
  padding: 32px 24px; gap: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,106,255,0.12) 0%, transparent 70%);
}

.auth-logo {
  width: 80px; height: 80px; border-radius: 22px;
  object-fit: cover; margin-bottom: 20px;
  box-shadow: 0 8px 40px var(--accent-glow);
  animation: fadeUp 0.6s ease both;
}

.auth-title {
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px; animation: fadeUp 0.6s ease 0.1s both;
}

.auth-tagline {
  font-size: 0.95rem; color: var(--text2); text-align: center;
  line-height: 1.6; margin-bottom: 48px; max-width: 280px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.auth-features {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 320px; margin-bottom: 40px;
  animation: fadeUp 0.6s ease 0.3s both;
}

.auth-feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface);
}

.auth-feature-icon { font-size: 1.4rem; }
.auth-feature-text { font-size: 0.88rem; color: var(--text2); line-height: 1.4; }
.auth-feature-text strong { color: var(--text); display: block; font-size: 0.92rem; margin-bottom: 2px; }

.btn-google {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-size: 1rem; font-weight: 600;
  box-shadow: 0 8px 32px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.6s ease 0.4s both;
  width: 100%; max-width: 320px; justify-content: center;
}

.btn-google:active { transform: scale(0.97); }

.google-icon {
  width: 22px; height: 22px; flex-shrink: 0;
}

.auth-note {
  font-size: 0.78rem; color: var(--text3); margin-top: 16px;
  text-align: center; max-width: 260px; line-height: 1.6;
  animation: fadeUp 0.6s ease 0.5s both;
}

/* ─── MAIN HEADER ────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.header-title { font-size: 1.1rem; font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}
.icon-btn:active { transform: scale(0.92); background: var(--surface2); }

.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; background: var(--surface);
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ─── BOTTOM NAV ─────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  padding: 10px 0; position: relative;
  transition: transform var(--transition);
}
.nav-item:active { transform: scale(0.9); }

.nav-icon { font-size: 1.4rem; transition: transform var(--transition); }
.nav-label { font-size: 0.68rem; font-weight: 500; color: var(--text3); transition: color var(--transition); }

.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-item.active .nav-label { color: var(--accent); font-weight: 600; }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* ─── SCROLL CONTENT ─────────────────────────── */
.scroll-content {
  flex: 1; overflow-y: auto;
  padding: 16px 16px calc(var(--nav-h) + 16px);
  -webkit-overflow-scrolling: touch;
}

/* ─── HOME PAGE ──────────────────────────────── */
.home-greeting { margin-bottom: 20px; }
.home-greeting h2 { font-size: 1.5rem; font-weight: 700; }
.home-greeting p { font-size: 0.88rem; color: var(--text2); margin-top: 4px; }

.storage-card {
  background: linear-gradient(135deg, var(--accent) 0%, #5b4cff 100%);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.storage-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.storage-title { font-size: 0.8rem; opacity: 0.8; margin-bottom: 6px; font-weight: 500; }
.storage-amount { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.storage-bar { height: 6px; background: rgba(255,255,255,0.2); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.storage-bar-fill { height: 100%; background: rgba(255,255,255,0.9); border-radius: 99px; transition: width 1s ease; }
.storage-info { display: flex; justify-content: space-between; font-size: 0.78rem; opacity: 0.8; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title { font-size: 1rem; font-weight: 700; }
.section-link { font-size: 0.82rem; color: var(--accent); font-weight: 500; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 24px;
}

.stat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 16px;
}
.stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-bottom: 2px; }
.stat-label { font-size: 0.78rem; color: var(--text2); }

.quick-cats {
  display: flex; gap: 10px; overflow-x: auto; margin-bottom: 24px;
  padding-bottom: 4px; scrollbar-width: none;
}
.quick-cats::-webkit-scrollbar { display: none; }

.quick-cat {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 16px 20px;
  border-radius: var(--radius); background: var(--surface);
  transition: transform var(--transition);
  min-width: 80px;
}
.quick-cat:active { transform: scale(0.94); }
.quick-cat-icon { font-size: 1.8rem; }
.quick-cat-name { font-size: 0.72rem; font-weight: 600; color: var(--text2); white-space: nowrap; }
.quick-cat-count {
  font-size: 0.68rem; padding: 2px 8px; border-radius: 99px;
  background: var(--surface2); color: var(--text3); font-family: var(--mono);
}

/* ─── CATEGORY CHIPS ─────────────────────────── */
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px;
  padding-bottom: 4px; scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--text2);
  background: var(--surface);
  transition: all var(--transition);
}
.cat-chip.active {
  background: var(--accent); color: white;
}
.cat-chip:active { transform: scale(0.95); }

/* ─── ASSET GRID ─────────────────────────────── */
.asset-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.asset-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform var(--transition);
  animation: fadeUp 0.3s ease both;
}
.asset-card:active { transform: scale(0.97); }

.asset-thumb {
  width: 100%; aspect-ratio: 1;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-thumb-icon { font-size: 2.5rem; }

.asset-type-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 99px;
  font-size: 0.65rem; font-weight: 700;
  backdrop-filter: blur(10px);
}

.asset-fav-btn {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: transform var(--transition);
}
.asset-fav-btn:active { transform: scale(0.85); }

.asset-info { padding: 10px 12px 12px; }
.asset-name {
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.asset-meta { font-size: 0.72rem; color: var(--text3); font-family: var(--mono); }

.asset-actions {
  display: flex; gap: 6px; padding: 0 12px 12px;
}

.asset-action-btn {
  flex: 1; padding: 8px; border-radius: var(--radius-xs);
  background: var(--surface2); font-size: 0.75rem; font-weight: 600;
  color: var(--text2); text-align: center;
  transition: background var(--transition);
}
.asset-action-btn:active { background: var(--accent); color: white; }
.asset-action-btn.primary { background: var(--accent); color: white; }

/* ─── SEARCH BAR ─────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 100px;
  padding: 12px 18px; margin-bottom: 16px;
}
.search-bar input {
  flex: 1; font-size: 0.92rem; background: none;
}
.search-bar input::placeholder { color: var(--text3); }
.search-icon { font-size: 1rem; color: var(--text3); flex-shrink: 0; }

/* ─── UPLOAD FAB ─────────────────────────────── */
.fab {
  position: fixed; right: 20px; bottom: calc(var(--nav-h) + 16px); z-index: 99;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab:active { transform: scale(0.92); }

/* ─── BOTTOM SHEET ───────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: none; opacity: 0; transition: opacity var(--transition);
}
.sheet-overlay.open { display: flex; align-items: flex-end; }
.sheet-overlay.visible { opacity: 1; }

.sheet {
  width: 100%; background: var(--bg2); border-radius: 24px 24px 0 0;
  padding: 12px 20px 32px; max-height: 85dvh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sheet.up { transform: translateY(0); }

.sheet-handle {
  width: 36px; height: 4px; border-radius: 99px;
  background: var(--surface2); margin: 0 auto 20px;
}

.sheet-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

/* ─── UPLOAD AREA ────────────────────────────── */
.upload-zone {
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px 20px; text-align: center; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.upload-zone-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-zone-text { font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }
.upload-zone-sub { font-size: 0.8rem; color: var(--text2); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.upload-cat-select {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px;
}

.upload-cat-btn {
  padding: 12px 8px; border-radius: var(--radius-sm);
  background: var(--surface); text-align: center;
  font-size: 0.78rem; font-weight: 600; color: var(--text2);
  transition: all var(--transition);
}
.upload-cat-btn.selected { background: var(--accent); color: white; }
.upload-cat-btn:active { transform: scale(0.96); }
.upload-cat-btn .ucat-icon { font-size: 1.4rem; margin-bottom: 4px; }

.upload-progress {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; display: none;
}
.upload-progress.show { display: block; }
.upload-progress-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.upload-progress-bar { height: 4px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.upload-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px; width: 0; transition: width 0.3s ease;
}

.btn-primary {
  width: 100%; padding: 16px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white; font-size: 1rem; font-weight: 700;
  text-align: center; transition: transform var(--transition), opacity var(--transition);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; }

/* ─── PROFILE PAGE ───────────────────────────── */
.profile-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 24px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 70%);
  border-radius: var(--radius); margin-bottom: 20px;
}

.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  margin-bottom: 14px; border: 3px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 0.85rem; color: var(--text2); }

.settings-section { margin-bottom: 24px; }
.settings-section-title { font-size: 0.75rem; font-weight: 700; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; padding: 0 4px; }

.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--surface); border-radius: var(--radius-sm);
  margin-bottom: 8px; transition: background var(--transition);
}
.settings-item:active { background: var(--surface2); }
.settings-item-left { display: flex; align-items: center; gap: 14px; }
.settings-item-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.settings-item-text { font-size: 0.92rem; font-weight: 500; }
.settings-item-sub { font-size: 0.78rem; color: var(--text2); margin-top: 2px; }
.settings-item-right { color: var(--text3); font-size: 0.9rem; }

/* ─── TOGGLE SWITCH ──────────────────────────── */
.toggle {
  width: 48px; height: 26px; border-radius: 99px;
  background: var(--surface2); position: relative; transition: background var(--transition);
  flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: white;
  transition: transform var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.toggle.on::after { transform: translateX(22px); }

/* ─── ABOUT CARD ─────────────────────────────── */
.about-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; margin-bottom: 16px;
}
.about-dev-photo {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 12px; border: 2px solid var(--accent);
}
.about-dev-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-app-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.about-version { font-size: 0.78rem; color: var(--text3); font-family: var(--mono); margin-bottom: 16px; }
.about-dev-label { font-size: 0.75rem; color: var(--text3); margin-bottom: 4px; }
.about-dev-name { font-size: 0.95rem; font-weight: 700; color: var(--accent); }
.about-divider { height: 1px; background: var(--surface2); margin: 16px 0; }
.about-desc { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }

/* ─── ASSET VIEWER ───────────────────────────── */
.viewer-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.95);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
}
.viewer-overlay.open { display: flex; }

.viewer-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + env(safe-area-inset-top));
}
.viewer-title { font-size: 0.92rem; font-weight: 600; }

.viewer-content { max-width: 90%; max-height: 70%; display: flex; align-items: center; justify-content: center; }
.viewer-content img { max-width: 100%; max-height: 70dvh; object-fit: contain; border-radius: var(--radius-sm); }
.viewer-content audio { width: 280px; }
.viewer-content video { max-width: 100%; max-height: 70dvh; border-radius: var(--radius-sm); }

.viewer-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; gap: 12px;
}

/* ─── TOAST ──────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 500; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}

.toast {
  padding: 12px 20px; border-radius: 100px;
  background: var(--surface); color: var(--text);
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  white-space: nowrap;
}
.toast.success { background: var(--success); color: #0a2e1a; }
.toast.error { background: var(--danger); color: white; }

@keyframes toastIn { from { transform: translateY(-20px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; gap: 12px; text-align: center;
}
.empty-icon { font-size: 3.5rem; opacity: 0.4; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--text2); }
.empty-sub { font-size: 0.85rem; color: var(--text3); line-height: 1.6; }

/* ─── SKELETON ───────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── SORT BAR ───────────────────────────────── */
.sort-bar {
  display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto;
  scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }
.sort-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; color: var(--text3);
  background: var(--surface); transition: all var(--transition);
}
.sort-btn.active { color: var(--accent); }

/* ─── CONTEXT MENU ───────────────────────────── */
.ctx-menu {
  position: fixed; z-index: 400;
  background: var(--surface2); border-radius: var(--radius-sm);
  overflow: hidden; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: none;
}
.ctx-menu.open { display: block; }
.ctx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; font-size: 0.88rem; font-weight: 500;
  transition: background var(--transition);
}
.ctx-item:active { background: var(--surface); }
.ctx-item.danger { color: var(--danger); }
.ctx-icon { font-size: 1rem; width: 18px; text-align: center; }

/* ─── FAVORITES INDICATOR ────────────────────── */
.fav-star { color: #ffd93d; }

/* ─── RIPPLE ─────────────────────────────────── */
.ripple-container { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(124, 106, 255, 0.3);
  transform: scale(0); animation: rippleAnim 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ─── PULL REFRESH INDICATOR ─────────────────── */
.pull-indicator {
  text-align: center; padding: 12px; font-size: 0.82rem;
  color: var(--text3); opacity: 0; transition: opacity 0.2s;
}
.pull-indicator.show { opacity: 1; }

/* ─── TYPE COLORS ────────────────────────────── */
.type-troll { background: rgba(255,107,107,0.15); color: var(--troll); }
.type-sfx { background: rgba(255,217,61,0.15); color: var(--sfx); }
.type-filter { background: rgba(107,203,119,0.15); color: var(--filter); }
.type-sticker { background: rgba(77,150,255,0.15); color: var(--sticker); }
.type-music { background: rgba(199,125,255,0.15); color: var(--music); }
.type-other { background: rgba(116,123,255,0.15); color: var(--other); }
