/* ============================================
   AIGCHub — 15-Second Video Showcase
   Design language cloned from AIMC (dark futuristic)
   ============================================ */

:root {
  --bg-primary: #08080F;
  --bg-secondary: #0E0E1A;
  --bg-card: #12121F;
  --bg-card-hover: #1A1A2E;
  --bg-elevated: #1A1A2E;
  --bg-input: #1A1A2E;
  --border-color: #1E1E35;
  --border-light: #2A2A45;
  --text-primary: #F0F0F5;
  --text-secondary: #8888A0;
  --text-tertiary: #606078;
  --accent-cyan: #00D4FF;
  --accent-purple: #7B2FF7;
  --accent-pink: #FF3B9E;
  --accent-green: #22C55E;
  --accent-gold: #ffb020;
  --accent-gradient: linear-gradient(135deg, #00D4FF, #7B2FF7);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
  --glow-purple: 0 0 20px rgba(123, 47, 247, 0.15);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans SC', 'Noto Sans TC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { color: #33dcff; }

.hidden { display: none !important; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  z-index: 50;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--border-color);
}
.brand-icon { display: flex; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: 1px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar-nav { padding: 14px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.18s ease;
}
.nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.nav-item.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}
.nav-icon { color: var(--text-tertiary); }
.nav-item.active .nav-icon { color: var(--accent-cyan); }
.sidebar-nav-utility { margin-top: auto; border-top: 1px solid var(--border-color); padding-top: 12px; }
.sidebar-footer { padding: 12px 4px 4px; }

/* ---------- Mobile Header ---------- */
.mobile-header {
  display: none;
  position: sticky; top: 0; z-index: 40;
  align-items: center; gap: 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
}
.hamburger {
  background: none; border: none; color: var(--text-primary);
  cursor: pointer; display: flex;
}
.mobile-brand { font-family: var(--font-display); font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mobile-lang { margin-left: auto; }

/* ---------- Layout ---------- */
.main-content {
  margin-left: 240px;
  padding: 28px 36px 80px;
  max-width: 1300px;
}
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--glow-purple);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(123,47,247,.3); color:#fff; }
.btn-ghost { background: var(--bg-card-hover); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-success { background: linear-gradient(135deg, #22C55E, #16a34a); color: #fff; }
.btn-danger { background: rgba(239,68,68,.12); color: #ef4444; border: 1px solid rgba(239,68,68,.4); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 40px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,212,255,.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(123,47,247,.2), transparent 50%),
    var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
  overflow: hidden;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.hero-title span { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { color: var(--text-secondary); max-width: 560px; margin-bottom: 22px; font-size: 15px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { margin-bottom: 40px; }
.section-narrow { max-width: 720px; margin: 0 auto 40px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.section-sub { color: var(--text-secondary); font-size: 14px; }

/* ---------- Category Chips ---------- */
.category-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent-cyan); color: var(--text-primary); }
.chip.active {
  border-color: var(--accent-cyan);
  color: #fff;
  background: rgba(0,212,255,.1);
  box-shadow: var(--glow-cyan);
}
.chip .chip-count { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }

/* ---------- Video Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: var(--border-light); }
.video-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.video-thumb-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,8,15,.55) 0%, rgba(8,8,15,0) 42%);
}
.video-cat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.video-tag {
  font-size: 10.5px; line-height: 1; color: var(--text-secondary);
  background: var(--bg-card-hover); border: 1px solid var(--border-color);
  padding: 3px 8px; border-radius: var(--radius-full); letter-spacing: .2px;
}
.video-card-client {
  display: flex; align-items: center; gap: 5px;
  color: var(--text-tertiary); font-size: 12px; margin-top: 7px;
}
.video-card-client .client-ico { opacity: .7; flex: none; }
.video-card-poster {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.video-card-poster img, .video-card-poster video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card-poster .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,15,.35);
  opacity: 0; transition: opacity .2s ease;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: var(--glow-purple);
}
.duration-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8,8,15,.8);
  border: 1px solid var(--border-light);
  color: var(--accent-cyan);
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.category-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(8,8,15,.75);
  color: var(--text-primary);
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.video-card-body { padding: 13px 15px 15px; }
.video-card-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; line-height: 1.35; }
.video-card-meta { color: var(--text-tertiary); font-size: 12px; display: flex; justify-content: space-between; }

/* ---------- Video Detail ---------- */
.video-detail { max-width: 860px; margin: 0 auto; }
.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: var(--glow-cyan);
  margin-bottom: 20px;
}
.video-player video { width: 100%; height: 100%; border-radius: var(--radius-lg); }
.video-detail-body { padding: 4px 2px; }
.video-detail-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.video-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; }
.video-detail-meta .badge { color: var(--accent-cyan); font-family: var(--font-mono); }
.video-detail-desc { color: var(--text-secondary); margin-bottom: 20px; }
.video-detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.related-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 14px; }

/* ---------- Order Form ---------- */
.order-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color .18s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}
.form-error { color: #ef4444; font-size: 13px; margin-bottom: 12px; }
.success-panel {
  background: var(--bg-card);
  border: 1px solid rgba(34,197,94,.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 16px;
  text-align: center;
}
.success-panel h3 { color: var(--accent-green); margin-bottom: 10px; }
.success-panel p { color: var(--text-secondary); margin-bottom: 12px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }

/* ---------- About ---------- */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}
.about-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.about-card p { color: var(--text-secondary); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.process-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff;
  font-weight: 700; font-family: var(--font-mono);
  margin-bottom: 8px;
}
.process-step p { color: var(--text-secondary); font-size: 13px; }

/* ---------- Admin ---------- */
.admin-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px; margin-bottom: 20px;
}
.admin-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.admin-tab:hover { color: var(--text-primary); border-color: var(--border-light); }
.admin-tab.active { color: #fff; border-color: var(--accent-cyan); background: rgba(0,212,255,.1); }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px;
}
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stat-card .stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card .stat-label { color: var(--text-tertiary); font-size: 12px; margin-top: 4px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; padding: 10px 12px;
  color: var(--text-tertiary); font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-card-hover); }
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase;
}
.status-new { background: rgba(0,212,255,.12); color: var(--accent-cyan); }
.status-quoted { background: rgba(123,47,247,.15); color: #a78bfa; }
.status-ordered { background: rgba(59,130,246,.15); color: #60a5fa; }
.status-paid { background: rgba(34,197,94,.13); color: var(--accent-green); }
.status-delivered { background: rgba(255,176,32,.13); color: var(--accent-gold); }
.status-cancelled { background: rgba(239,68,68,.13); color: #ef4444; }
select.status-select {
  background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-primary); border-radius: var(--radius-sm);
  padding: 5px 8px; font-size: 12px;
}
.admin-actions { display: flex; gap: 8px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .form-field { margin-bottom: 0; }
.inline-form input, .inline-form select, .inline-form textarea { padding: 8px 10px; font-size: 13px; }
.msg-thread { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 380px; overflow-y: auto; }

/* ---------- Chat Widget ---------- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent-gradient);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(123,47,247,.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:hover { transform: scale(1.06); box-shadow: 0 8px 30px rgba(123,47,247,.5); }
.chat-panel {
  position: fixed; bottom: 92px; right: 24px; z-index: 100;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.chat-head-info { display: flex; align-items: center; gap: 10px; }
.chat-head-avatar { font-size: 22px; }
.chat-head-info strong { font-size: 14px; }
.chat-head-status { display: block; color: var(--accent-green); font-size: 11px; }
.chat-close { background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 16px; }
.chat-close:hover { color: var(--text-primary); }
.chat-body {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.ch-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px; line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.ch-msg.bot { background: var(--bg-elevated); border: 1px solid var(--border-color); align-self: flex-start; border-bottom-left-radius: 4px; }
.ch-msg.user { background: var(--accent-gradient); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border-color); }
.chat-quick-btn {
  text-align: left; background: var(--bg-secondary);
  border: 1px solid var(--border-color); color: var(--text-secondary);
  border-radius: var(--radius-sm); padding: 7px 11px; font-size: 12px; cursor: pointer;
  transition: all .15s ease;
}
.chat-quick-btn:hover { border-color: var(--accent-cyan); color: var(--text-primary); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.chat-input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary);
  padding: 10px 13px; font-size: 13.5px; font-family: var(--font-body);
}
.chat-input:focus { outline: none; border-color: var(--accent-cyan); }
.chat-send {
  width: 42px; border-radius: var(--radius-sm);
  background: var(--accent-gradient); border: none; color: #fff; cursor: pointer; font-size: 15px;
}
.chat-order-btn {
  align-self: flex-start; margin-top: 2px;
  background: var(--accent-gradient); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 9px 15px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ---------- Misc ---------- */
.loading-spinner {
  width: 40px; height: 40px; margin: 30px auto;
  border: 3px solid var(--border-color); border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; color: var(--text-tertiary); padding: 40px 0; }
.lang-switch { display: flex; gap: 6px; }
.lang-btn {
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-tertiary); border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; padding: 5px 10px; cursor: pointer;
  transition: all .15s ease;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active { color: #fff; border-color: var(--accent-cyan); background: rgba(0,212,255,.1); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; padding: 20px 18px 90px; }
  .hero { padding: 30px 22px; }
  .hero-title { font-size: 24px; }
}

/* ============================================
   Personal Features UI — Discover / Community /
   Library / Profile / Liked / Notifications
   ============================================ */

/* ---------- Nav badge (notifications bell) ---------- */
.nav-item { position: relative; }
.nav-badge {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #FF4D6D, #FF3B9E);
  color: #fff; font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(255, 59, 158, .5);
}
.nav-badge.hidden { display: none; }

/* ---------- Video cards (current markup) ---------- */
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-duration {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(8,8,15,.8); border: 1px solid var(--border-light);
  color: var(--accent-cyan); font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; border-radius: var(--radius-sm); backdrop-filter: blur(4px);
}
.video-featured {
  position: absolute; top: 8px; left: 10px; z-index: 2;
  color: var(--accent-gold); font-size: 15px; text-shadow: 0 0 8px rgba(255,176,32,.6);
}
.video-play {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,15,.35); opacity: 0; transition: opacity .2s ease;
}
.video-card:hover .video-play { opacity: 1; }
.like-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(8,8,15,.75); border: 1px solid var(--border-light);
  color: #fff; border-radius: var(--radius-full);
  padding: 4px 10px; font-size: 11px; cursor: pointer;
  backdrop-filter: blur(4px); transition: all .15s ease;
}
.like-btn:hover { border-color: #FF4D6D; }
.like-btn.liked { background: rgba(255,77,109,.2); border-color: #FF4D6D; color: #FF4D6D; }
.like-count { font-family: var(--font-mono); font-size: 11px; line-height: 1; }
.video-card-client { display: flex; align-items: center; gap: 5px; color: var(--text-tertiary); font-size: 12px; margin-top: 7px; }
.video-card-client .client-ico { opacity: .7; flex: none; }
.video-card-meta .plays { color: var(--accent-cyan); font-family: var(--font-mono); }

/* ---------- Video detail (current markup) ---------- */
.video-detail-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; margin-top: 18px; }
.video-player-wrap { min-width: 0; }
.video-detail-info { display: flex; flex-direction: column; gap: 10px; }
.video-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-heart {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card-hover); border: 1px solid var(--border-light);
  color: var(--text-primary); border-radius: var(--radius-md);
  padding: 11px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s ease;
}
.btn-heart:hover { border-color: #FF4D6D; }
.btn-heart.liked { background: rgba(255,77,109,.15); border-color: #FF4D6D; color: #FF4D6D; box-shadow: 0 0 14px rgba(255,77,109,.25); }
.video-detail-client { color: var(--text-secondary); font-size: 14px; }
.video-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 300; max-width: 90vw;
  background: var(--bg-elevated); border: 1px solid var(--accent-cyan);
  color: var(--text-primary); border-radius: var(--radius-md);
  padding: 12px 22px; font-size: 14px; box-shadow: var(--shadow-elevated);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- Discover ---------- */
.discover-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.discover-search {
  width: 100%; max-width: 460px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-primary); border-radius: var(--radius-md);
  padding: 12px 16px; font-size: 14px; font-family: var(--font-body);
}
.discover-search:focus { outline: none; border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.discover-section { margin-bottom: 30px; }

/* ---------- Community ---------- */
.community-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.community-main { min-width: 0; }
.community-side { position: sticky; top: 20px; }
.wall-form h3 { font-family: var(--font-display); font-size: 15px; margin-bottom: 12px; }
.wall-list { display: flex; flex-direction: column; gap: 12px; }
.wall-post {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 16px;
}
.wall-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wall-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-gradient); color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.wall-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.wall-name { font-weight: 700; font-size: 14px; }
.wall-company { color: var(--text-tertiary); font-size: 12px; }
.wall-country { color: var(--accent-cyan); font-size: 11px; border: 1px solid rgba(0,212,255,.3); border-radius: var(--radius-full); padding: 2px 8px; }
.wall-date { color: var(--text-tertiary); font-size: 11px; white-space: nowrap; }
.wall-msg { color: var(--text-secondary); font-size: 14px; }
.wall-video { margin-top: 8px; }

/* ---------- Generic card + chips ---------- */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; }
.chip.chip-active { border-color: var(--accent-cyan); color: #fff; background: rgba(0,212,255,.1); box-shadow: var(--glow-cyan); }
.chip.chip-small { padding: 6px 12px; font-size: 12px; }

/* ---------- Library ---------- */
.lib-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; flex-wrap: wrap; }
.lib-tab {
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.lib-tab:hover { color: var(--text-primary); border-color: var(--border-light); }
.lib-tab.active { color: #fff; border-color: var(--accent-cyan); background: rgba(0,212,255,.1); }
.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 10px 14px; transition: all .15s ease;
}
.lib-row:hover { border-color: var(--border-light); background: var(--bg-card-hover); transform: translateX(2px); }
.lib-thumb { width: 96px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--bg-secondary); }
.lib-row-body { min-width: 0; flex: 1; }
.lib-row-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row-meta { color: var(--text-tertiary); font-size: 12px; }

/* ---------- Order tracking (Library → My Inquiries) ---------- */
.order-track-list { display: flex; flex-direction: column; gap: 12px; }
.order-track-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 16px 18px; }
.order-track-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.order-no { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--accent-cyan); }
.order-track-meta { color: var(--text-tertiary); font-size: 12px; margin-bottom: 8px; }
.order-track-msg { color: var(--text-secondary); font-size: 13px; border-left: 2px solid var(--border-light); padding-left: 10px; }

/* ---------- Profile ---------- */
.profile-card { margin-bottom: 20px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff; font-weight: 800; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--glow-purple);
}
.profile-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.profile-sub { color: var(--text-tertiary); font-size: 13px; word-break: break-all; }
.profile-stats h3 { font-family: var(--font-display); font-size: 15px; margin-bottom: 12px; }

/* ---------- Notifications ---------- */
.notif-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.notif-header .section-title { margin-bottom: 0; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.notif-item.unread { border-left: 3px solid var(--accent-cyan); background: rgba(0,212,255,.04); }
.notif-item.read { opacity: .65; }
.notif-icon { font-size: 18px; line-height: 1.3; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 14px; }
.notif-time { color: var(--text-tertiary); font-size: 11px; margin-top: 3px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan); box-shadow: var(--glow-cyan); margin-top: 6px; flex-shrink: 0; }
.notif-footer { margin-top: 16px; text-align: center; }

/* ---------- Empty hint ---------- */
.empty-hint { text-align: center; padding: 40px 20px; color: var(--text-tertiary); }
.empty-icon { font-size: 36px; margin-bottom: 10px; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text-secondary); margin-bottom: 4px; }
.empty-sub { font-size: 13px; }

/* ---------- Admin (missing components) ---------- */
.btn-small { padding: 7px 14px; font-size: 13px; }
.link { color: var(--accent-cyan); cursor: pointer; }
.admin-block { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.admin-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-block-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.admin-note { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px; margin-top: 12px; }
.admin-note p { color: var(--text-secondary); font-size: 14px; }
.status-log { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.status-log-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.kv-grid label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-tertiary); margin-bottom: 3px; }
.kv-grid > div { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; word-break: break-word; }
.source-badge { display: inline-block; padding: 2px 9px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; background: rgba(123,47,247,.15); color: #a78bfa; }
.source-chat { background: rgba(0,212,255,.12); color: var(--accent-cyan); }
.source-form { background: rgba(34,197,94,.13); color: var(--accent-green); }
.source-whatsapp { background: rgba(34,197,94,.13); color: var(--accent-green); }
.admin-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); display: block; background: var(--bg-secondary); }
.status-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.status-bar-row { display: flex; align-items: center; gap: 10px; }
.status-bar-track { flex: 1; height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: 4px; }
.status-bar-fill.status-new { background: var(--accent-cyan); }
.status-bar-fill.status-quoted { background: #a78bfa; }
.status-bar-fill.status-ordered { background: #60a5fa; }
.status-bar-fill.status-paid { background: var(--accent-green); }
.status-bar-fill.status-delivered { background: var(--accent-gold); }
.status-bar-num { font-family: var(--font-mono); font-size: 12px; width: 26px; text-align: right; }
.chat-transcript { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 380px; overflow-y: auto; }
.tr-line { display: flex; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; }
.tr-user { background: rgba(0,212,255,.06); }
.tr-bot { background: var(--bg-secondary); }
.tr-role { flex-shrink: 0; }
.tr-text { flex: 1; word-break: break-word; }
.tr-meta { flex-shrink: 0; }
.ch-offer { margin-top: 2px; display: flex; flex-direction: column; gap: 6px; align-self: flex-start; }
.ch-offer-note { color: var(--text-tertiary); font-size: 12px; }
.modal-mask { position: fixed; inset: 0; background: rgba(8,8,15,.7); z-index: 250; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-elevated); }
.modal h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.faq-editor { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.faq-rule { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-side { position: static; }
  .video-detail-head { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

/* ---------- Discover v2 ---------- */
.discover-toolbar { flex-direction: row; align-items: center; flex-wrap: wrap; }
.discover-sort {
  flex: 0 0 auto;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.discover-sort:focus { outline: none; border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.section-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px 10px;
}
.view-all { font-family: var(--font-mono); font-size: 13px; text-decoration: none; }
.view-all:hover { text-decoration: underline; }

.discover-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.spotlight-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
  transition: transform .5s ease;
}
.discover-spotlight:hover .spotlight-bg { transform: scale(1.02); }
.spotlight-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,15,0.1) 0%, rgba(8,8,15,0.85) 85%);
}
.spotlight-body { position: relative; padding: 28px; width: 100%; max-width: 640px; }
.spotlight-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.spotlight-title { font-family: var(--font-display); font-size: 26px; margin: 8px 0 10px; color: #fff; }
.spotlight-meta { display: flex; gap: 16px; align-items: center; color: var(--text-secondary); font-family: var(--font-mono); font-size: 13px; flex-wrap: wrap; }
.spotlight-stat { color: var(--accent-pink); }
.spotlight-client { color: var(--text-secondary); }
.spotlight-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Community v2 ---------- */
.community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 28px; color: var(--accent-cyan); }
.stat-label { font-size: 13px; color: var(--text-tertiary); }

.wall-post { position: relative; }
.wall-featured {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(123,47,247,0.10));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}
.wall-featured-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.wall-featured .wall-msg { font-size: 17px; line-height: 1.6; margin-bottom: 14px; color: var(--text-primary); }
.wall-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.industry-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px 10px;
  text-decoration: none;
  cursor: pointer;
}
.industry-tag:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ---------- Library v2 ---------- */
.lib-tab { position: relative; }
.tab-count {
  display: inline-block;
  min-width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  background: rgba(0,212,255,0.15);
  color: var(--accent-cyan);
  border-radius: 20px;
  padding: 1px 6px;
  margin-left: 4px;
}
.lib-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lib-count { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }

.order-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 14px 0 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 64px;
  position: relative;
  text-align: center;
}
.tl-step::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-color);
}
.tl-step:first-child::before { display: none; }
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 2px solid var(--border-light);
  z-index: 1;
  margin-bottom: 6px;
}
.tl-step.done::before { background: var(--accent-cyan); }
.tl-step.done .tl-dot { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.tl-step.current::before { background: var(--accent-cyan); }
.tl-step.current .tl-dot {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 4px rgba(255,80,160,0.15);
}
.tl-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); }
.tl-step.done .tl-label, .tl-step.current .tl-label { color: var(--text-primary); }
.order-timeline.tl-cancelled {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ff6b6b;
  gap: 8px;
  align-items: center;
}
.tl-flag { font-size: 14px; }

@media (max-width: 600px) {
  .community-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .stat-num { font-size: 22px; }
  .discover-toolbar { flex-direction: column; align-items: stretch; }
}
