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

:root{
  --bg-deep:#050d16;
  --bg-surface:#0c1c2c;
  --bg-panel:#102438;
  --accent-cyan:#3ad6ff;
  --accent-teal:#12a8a0;
  --text-foam:#e8f4f8;
  --text-muted:#7a97a8;
  --border-glow: rgba(58,214,255,0.18);
}

*{box-sizing:border-box; margin:0; padding:0;}
html,body{height:100%;}
body{
  font-family:'Manrope',sans-serif;
  background: radial-gradient(ellipse at top, #0a1c2e 0%, #050d16 55%, #030810 100%);
  color:var(--text-foam);
  min-height:100vh;
  overflow-x:hidden;
  position:relative;
}
h1,h2,h3,.brand-name{font-family:'Space Grotesk',sans-serif;}
.mono{font-family:'JetBrains Mono',monospace;}
button{font-family:inherit; cursor:pointer;}
a{color:inherit;}
::selection{background:var(--accent-cyan); color:#00131c;}

#bubbles{position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden;}
.bubble{
  position:absolute; bottom:-40px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(58,214,255,0.35), rgba(58,214,255,0.02));
  animation:rise linear infinite;
}
@keyframes rise{ to{ transform:translateY(-110vh) translateX(var(--drift,0px)); opacity:0; } }

.glass{
  background:linear-gradient(160deg, rgba(16,36,56,0.75), rgba(8,20,32,0.65));
  border:1px solid var(--border-glow);
  backdrop-filter:blur(14px);
  border-radius:18px;
}

/* AUTH PAGES */
.auth-body{ display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
.auth-wrap{ width:100%; display:flex; align-items:center; justify-content:center; position:relative; z-index:1; }
.auth-card{ width:100%; max-width:380px; padding:36px 32px; text-align:center; }
.auth-logo{font-size:26px; font-weight:700; letter-spacing:.02em; margin-bottom:4px;
  background:linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
  -webkit-background-clip:text; background-clip:text; color:transparent;}
.auth-tag{color:var(--text-muted); font-size:13px; margin-bottom:26px;}
.field{ text-align:left; margin-bottom:16px; }
.field label{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--text-muted); margin-bottom:6px;}
.field input, .field textarea{
  width:100%; padding:12px 14px; border-radius:10px;
  background:rgba(3,10,18,0.6); border:1px solid rgba(58,214,255,0.15);
  color:var(--text-foam); font-size:14px; outline:none; font-family:inherit;
  transition:border-color .2s;
}
.field input:disabled{ opacity:.55; cursor:not-allowed; }
.field textarea{ resize:vertical; min-height:70px; }
.field input:focus, .field textarea:focus{ border-color:var(--accent-cyan); }
.btn-primary{
  width:100%; padding:13px; border-radius:10px; border:none;
  background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
  color:#00131c; font-weight:700; font-size:14px; letter-spacing:.02em;
  margin-top:10px; transition:transform .15s, box-shadow .15s;
}
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 8px 24px rgba(58,214,255,.25); }
.auth-switch{ margin-top:18px; font-size:13px; color:var(--text-muted); }
.auth-switch a{ color:var(--accent-cyan); text-decoration:none; font-weight:600; }
.auth-error{
  background:rgba(255,90,90,0.1); border:1px solid rgba(255,90,90,0.35);
  color:#ff9d9d; font-size:12.5px; padding:9px 12px; border-radius:8px;
  margin-bottom:16px; text-align:left;
}
.auth-note{ font-size:11px; color:var(--text-muted); margin-top:20px; line-height:1.5; }

/* APP SHELL */
header.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px clamp(16px,4vw,48px);
  position:sticky; top:0; z-index:20;
  background:rgba(5,13,22,0.72); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(58,214,255,0.1);
}
.brand-wrap{display:flex; align-items:center; gap:10px;}
.brand-mark{
  width:34px; height:34px; border-radius:9px;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  display:flex; align-items:center; justify-content:center;
  font-weight:700; color:#00131c; font-size:15px;
}
.brand-name{font-size:18px; font-weight:700; letter-spacing:.01em;}
.brand-name span{color:var(--accent-cyan);}
.topbar-right{display:flex; align-items:center; gap:12px;}
.btn-ghost{
  padding:9px 16px; border-radius:100px; border:1px solid rgba(58,214,255,0.25);
  background:transparent; color:var(--text-foam); font-size:13px; font-weight:600;
  text-decoration:none; transition:all .15s;
}
.btn-ghost:hover{ border-color:var(--accent-cyan); background:rgba(58,214,255,0.08); }
.btn-upload{
  padding:10px 20px; border-radius:100px; border:none; text-decoration:none;
  background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
  color:#00131c; font-weight:700; font-size:13px;
}
.admin-badge{
  padding:6px 12px; border-radius:100px; font-size:11.5px; font-weight:700;
  background:rgba(255,138,92,0.15); border:1px solid rgba(255,138,92,0.4); color:#ffab7a;
  letter-spacing:.03em; white-space:nowrap;
}

.hero{ padding:56px clamp(16px,4vw,48px) 30px; text-align:center; position:relative; z-index:1; }
.hero-eyebrow{ font-size:11px; letter-spacing:.25em; text-transform:uppercase; color:var(--accent-teal); margin-bottom:14px; font-weight:600; }
.hero h1{ font-size:clamp(28px,4.5vw,46px); font-weight:700; line-height:1.15; margin-bottom:14px; }
.hero h1 em{font-style:normal; color:var(--accent-cyan);}
.hero p{color:var(--text-muted); font-size:15px; max-width:520px; margin:0 auto;}
.stats-row{ display:flex; justify-content:center; gap:36px; margin-top:30px; flex-wrap:wrap; }
.stat{ text-align:center; }
.stat b{ display:block; font-size:22px; font-family:'Space Grotesk'; color:var(--accent-cyan); }
.stat span{ font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.1em; }

.filter-row{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; padding:0 20px 34px; position:relative; z-index:1; }
.filter-pill{
  padding:8px 16px; border-radius:100px; font-size:12.5px; font-weight:600;
  border:1px solid rgba(58,214,255,0.18); background:rgba(255,255,255,0.02);
  color:var(--text-muted); text-decoration:none; transition:all .15s;
}
.filter-pill.active, .filter-pill:hover{ border-color:var(--accent-cyan); color:var(--text-foam); background:rgba(58,214,255,0.1); }

.feed-tabs{
  max-width:400px; margin:0 auto 20px; padding:0 20px; display:flex; gap:8px; justify-content:center;
  position:relative; z-index:1;
}
.feed-tab{
  flex:1; text-align:center; padding:10px 12px; border-radius:100px; font-size:12.5px; font-weight:700;
  text-decoration:none; color:var(--text-muted); border:1px solid rgba(58,214,255,0.16);
  display:flex; align-items:center; justify-content:center; gap:6px; transition:all .15s;
}
.feed-tab.active{ background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan)); color:#00131c; border-color:transparent; }
.feed-tab:not(.active):hover{ border-color:var(--accent-cyan); color:var(--text-foam); }
.feed-tab-trending{ flex:0 0 auto; padding:10px 16px; }

.trend-rank-badge{
  position:absolute; top:10px; left:10px; z-index:3; font-size:12px; font-weight:800;
  padding:4px 10px; border-radius:100px; background:linear-gradient(90deg, #ff8a5c, #ff5c7a); color:#1a0d05;
}

/* ---------- AI CHAT ---------- */
.ai-chat-page{ max-width:640px; margin:0 auto; padding:24px clamp(16px,4vw,48px) 130px; position:relative; z-index:1; }
.ai-chat-header{
  display:flex; align-items:center; gap:12px; margin-bottom:22px; padding-bottom:18px;
  border-bottom:1px solid rgba(58,214,255,0.12);
}
.ai-bot-avatar{
  width:42px; height:42px; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan)); color:#00131c;
}
.ai-chat-title{ font-size:15px; font-weight:700; }
.ai-chat-subtitle{ font-size:11.5px; color:var(--text-muted); }
.ai-chat-messages{ display:flex; flex-direction:column; gap:14px; min-height:200px; }
.ai-chat-empty{
  display:flex; flex-direction:column; align-items:center; gap:12px; padding:70px 20px;
  color:var(--text-muted); text-align:center; font-size:13px;
}
.ai-msg{ display:flex; gap:10px; align-items:flex-end; }
.ai-msg-user{ flex-direction:row-reverse; }
.ai-msg-avatar{
  width:26px; height:26px; border-radius:8px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan)); color:#00131c;
}
.ai-msg-bubble{
  max-width:76%; padding:10px 14px; border-radius:16px; font-size:13.5px; line-height:1.55; word-break:break-word;
}
.ai-msg-user .ai-msg-bubble{
  background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan)); color:#00131c; border-bottom-right-radius:4px;
}
.ai-msg-assistant .ai-msg-bubble{
  background:rgba(255,255,255,0.06); color:var(--text-foam); border-bottom-left-radius:4px;
}
.ai-msg-typing .ai-msg-bubble{ display:flex; gap:4px; padding:13px 16px; }
.ai-msg-typing .ai-dot{
  width:6px; height:6px; border-radius:50%; background:var(--text-muted); animation:ai-typing 1.2s infinite ease-in-out;
}
.ai-msg-typing .ai-dot:nth-child(2){ animation-delay:.15s; }
.ai-msg-typing .ai-dot:nth-child(3){ animation-delay:.3s; }
@keyframes ai-typing{ 0%,60%,100%{ opacity:.3; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }

main{ max-width:1180px; margin:0 auto; padding:0 clamp(16px,4vw,48px) 60px; position:relative; z-index:1; }

#grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:18px; }
.card{ overflow:hidden; display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; position:relative; }
.card:hover{ transform:translateY(-3px); box-shadow:0 14px 36px rgba(0,0,0,.35); }
.card-pinned{ border-color:rgba(255,138,92,0.5); }
.pin-badge{
  position:absolute; top:10px; right:10px; z-index:3; font-size:15px;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.card-media{ width:100%; aspect-ratio:4/3; background:#03101a; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; text-decoration:none; color:inherit; }
.card-media img, .card-media video{ width:100%; height:100%; object-fit:cover; }
.audio-tile{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; background:linear-gradient(160deg, rgba(18,168,160,0.15), rgba(58,214,255,0.05));
}
.audio-tile .play-btn{ width:46px; height:46px; border-radius:50%; border:none; background:var(--accent-cyan); color:#00131c; font-size:16px; display:flex; align-items:center; justify-content:center; }
.type-badge{
  position:absolute; top:10px; left:10px; font-size:10px; padding:4px 9px; border-radius:100px;
  background:rgba(0,0,0,0.55); color:var(--accent-cyan); text-transform:uppercase; letter-spacing:.08em; font-weight:600; z-index:2;
}
.more-files-badge{
  position:absolute; bottom:10px; right:10px; font-size:10.5px; font-weight:700; padding:4px 9px;
  border-radius:100px; background:rgba(0,0,0,0.65); color:var(--text-foam); z-index:2;
}
.card-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-desc{ font-size:13.5px; color:var(--text-foam); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:8px; gap:8px; }
.card-uploader{ font-size:11.5px; color:var(--text-muted); }
.card-uploader b{ color:var(--accent-teal); }
.card-actions{ display:flex; gap:6px; align-items:center; }
.icon-btn{ width:28px; height:28px; border-radius:8px; border:none; background:rgba(255,255,255,0.06); color:var(--text-muted); font-size:13px; display:flex; align-items:center; justify-content:center; }
.icon-btn:hover{ background:rgba(255,255,255,0.12); }
.icon-btn.danger:hover{ background:rgba(255,90,90,0.15); color:#ff8a8a; }
.icon-btn.active-pin{ background:rgba(255,138,92,0.2); color:#ffab7a; }

.empty-state{ grid-column:1/-1; text-align:center; padding:70px 20px; color:var(--text-muted); }
.empty-state .big{ font-size:15px; color:var(--text-foam); margin-bottom:6px; font-weight:600; }

/* UPLOAD PAGE */
.upload-page-wrap{ display:flex; align-items:flex-start; justify-content:center; padding:50px 20px; position:relative; z-index:1; }
.modal-card{ width:100%; max-width:440px; padding:28px; }
.modal-head{ margin-bottom:20px; }
.modal-head h3{ font-size:17px; }
.add-files-hint{ font-size:12.5px; color:var(--text-muted); margin:-8px 0 18px; }
.add-files-hint b{ color:var(--accent-cyan); }
.dropzone{
  display:block; border:1.5px dashed rgba(58,214,255,0.3); border-radius:12px;
  padding:24px; text-align:center; cursor:pointer; margin-bottom:16px;
  transition:border-color .2s, background .2s;
}
.dropzone:hover{ border-color:var(--accent-cyan); background:rgba(58,214,255,0.04); }
.dropzone.has-file{ border-color:var(--accent-teal); }
.dropzone-icon{ font-size:24px; margin-bottom:8px; }
.dropzone small{ display:block; color:var(--text-muted); font-size:11.5px; margin-top:4px; }
.file-list{ display:flex; flex-direction:column; gap:6px; margin:-4px 0 16px; }
.file-list:empty{ margin:0; }
.file-list-item{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:8px 12px; border-radius:8px; background:rgba(58,214,255,0.06);
  font-size:12px; color:var(--text-foam);
}
.file-list-item .fl-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-list-item .fl-size{ color:var(--text-muted); flex-shrink:0; }

/* MUSIC PLAYER */
#player{ position:fixed; bottom:20px; right:20px; z-index:40; width:280px; padding:14px 16px; }
#player.collapsed .player-body{ display:none; }
.player-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.player-title{ display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.player-disc{ width:30px; height:30px; border-radius:50%; flex-shrink:0; background:conic-gradient(var(--accent-cyan), var(--accent-teal), var(--accent-cyan)); display:flex; align-items:center; justify-content:center; }
.player-disc.spinning{ animation:spin 3s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.player-disc-dot{ width:8px; height:8px; border-radius:50%; background:#050d16; }
.player-track-info{ min-width:0; }
.player-track-name{ font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-track-artist{ font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-toggle-btn{ background:none; border:none; color:var(--text-muted); font-size:14px; padding:4px; }
.player-body{ margin-top:12px; }
.player-controls{ display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:10px; }
.player-controls button{ background:none; border:none; color:var(--text-foam); font-size:16px; }
.player-play{ width:38px; height:38px; border-radius:50%; background:var(--accent-cyan) !important; color:#00131c !important; display:flex; align-items:center; justify-content:center; font-size:14px !important; }
.player-queue{ max-height:130px; overflow-y:auto; display:flex; flex-direction:column; gap:4px; }
.queue-item{ display:flex; justify-content:space-between; gap:8px; padding:6px 8px; border-radius:8px; font-size:11.5px; color:var(--text-muted); cursor:pointer; }
.queue-item span:first-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.queue-item:hover, .queue-item.active{ background:rgba(58,214,255,0.1); color:var(--text-foam); }
.player-empty{ font-size:11.5px; color:var(--text-muted); text-align:center; padding:10px 0; }

/* TOAST */
.toast{
  position:fixed; top:20px; left:50%; transform:translateX(-50%);
  z-index:90; padding:12px 20px; border-radius:10px; font-size:13px; font-weight:600;
  transition:opacity .3s;
}
.toast.success{ background:rgba(18,168,160,0.95); color:#fff; }
.toast.error{ background:rgba(220,80,80,0.95); color:#fff; }

/* ---------- AVATAR ---------- */
.avatar-sm{
  width:26px; height:26px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:#00131c;
}
.avatar-sm img{ width:100%; height:100%; object-fit:cover; }
.avatar-sm span{ line-height:1; }

/* ---------- HAMBURGER MENU ---------- */
.account-menu{ position:relative; }
.menu-trigger{
  width:40px; height:40px; border-radius:12px; border:1px solid var(--border-glow);
  background:rgba(255,255,255,0.03); display:flex; align-items:center; justify-content:center;
  transition:border-color .15s, background .15s;
}
.menu-trigger:hover{ border-color:var(--accent-cyan); background:rgba(58,214,255,0.08); }
.menu-lines{ display:flex; flex-direction:column; gap:4px; width:18px; }
.menu-lines span{ display:block; height:2px; width:100%; background:var(--text-foam); border-radius:2px; transition:transform .2s, opacity .2s; }
.account-menu.open .menu-lines span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.account-menu.open .menu-lines span:nth-child(2){ opacity:0; }
.account-menu.open .menu-lines span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.account-dropdown{
  position:absolute; top:calc(100% + 10px); right:0; min-width:220px;
  padding:10px; display:none; flex-direction:column; gap:3px; z-index:30;
}
.account-menu.open .account-dropdown{ display:flex; }
.dropdown-user{ display:flex; align-items:center; gap:10px; padding:8px 10px 12px; }
.dropdown-user b{ font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dropdown-divider{ height:1px; background:rgba(58,214,255,0.14); margin:0 6px 6px; }
.account-dropdown a{
  display:block; padding:11px 12px; border-radius:10px; text-decoration:none;
  color:var(--text-foam); font-size:13.5px; font-weight:600;
}
.account-dropdown a:hover{ background:rgba(58,214,255,0.1); }
.account-dropdown a.dropdown-admin-active{ color:#ffab7a; }
.account-dropdown a.dropdown-admin-active:hover{ background:rgba(255,138,92,0.12); }

/* ---------- GENERIC FILE TILE (grid card) ---------- */
.file-tile{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; background:linear-gradient(160deg, rgba(255,138,92,0.1), rgba(58,214,255,0.05));
}
.file-tile-icon{ font-size:38px; }
.file-tile-ext{ font-size:11px; color:var(--text-muted); text-transform:uppercase; }

.card-desc-link{ text-decoration:none; color:inherit; }
.comment-count-btn{ width:auto; padding:0 8px; font-size:11.5px; gap:4px; text-decoration:none; }

/* ---------- POST DETAIL PAGE ---------- */
.post-page{ max-width:720px; margin:0 auto; padding:30px clamp(16px,4vw,48px) 130px; position:relative; z-index:1; }
.post-detail{ overflow:hidden; margin-bottom:26px; position:relative; }
.post-pinned-tag{
  position:absolute; top:14px; left:14px; z-index:3; font-size:11.5px; font-weight:700;
  padding:5px 11px; border-radius:100px; background:rgba(255,138,92,0.85); color:#1a0d05;
}
.post-attachments{ display:flex; flex-direction:column; }
.post-attachments.multi .attachment-item{ border-bottom:1px solid rgba(58,214,255,0.1); }
.post-attachments.multi .attachment-item:last-child{ border-bottom:none; }
.attachment-media{ width:100%; max-height:480px; background:#03101a; display:flex; align-items:center; justify-content:center; }
.attachment-media img, .attachment-media video{ width:100%; max-height:480px; object-fit:contain; }
.post-audio-tile, .post-file-tile{
  width:100%; padding:36px 20px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  background:linear-gradient(160deg, rgba(18,168,160,0.12), rgba(58,214,255,0.05));
}
.post-file-icon{ font-size:46px; }
.post-file-name{ font-size:14px; font-weight:600; text-align:center; word-break:break-all; }
.post-file-size{ font-size:12px; color:var(--text-muted); }
.attachment-footer{
  display:flex; align-items:center; gap:10px; padding:10px 16px; font-size:11.5px; color:var(--text-muted);
}
.attachment-name{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attachment-download{
  flex-shrink:0; padding:6px 14px; border-radius:100px; text-decoration:none; font-weight:700; font-size:11.5px;
  background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan)); color:#00131c;
}
.post-body{ padding:18px 22px 22px; }
.post-desc{ font-size:15px; line-height:1.6; margin-bottom:16px; }
.post-meta{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-muted); flex-wrap:wrap; }
.post-meta b{ color:var(--accent-teal); }
.post-meta-actions{ margin-left:auto; display:flex; gap:6px; }

/* ---------- COMMENTS (gaya chat, mirip Discord) ---------- */
.comments-title{ font-size:16px; margin-bottom:16px; }
.comment-list{ display:flex; flex-direction:column; gap:16px; }
.comment-item{ display:flex; gap:12px; }
.comment-avatar{
  width:36px; height:36px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#00131c;
}
.comment-avatar img{ width:100%; height:100%; object-fit:cover; }
.comment-bubble{ flex:1; min-width:0; }
.comment-head{ display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:4px; }
.comment-head b{ color:var(--text-foam); }
.comment-time{ color:var(--text-muted); font-size:11px; }
.comment-del-form{ margin-left:auto; }
.comment-text{
  font-size:13.5px; line-height:1.5; color:var(--text-foam); word-break:break-word;
  background:rgba(255,255,255,0.04); display:inline-block; padding:9px 13px; border-radius:4px 14px 14px 14px;
}
.mention-link{ color:var(--accent-cyan); font-weight:700; text-decoration:none; }
.mention-link:hover{ text-decoration:underline; }

/* Composer nempel di bawah layar -- gaya Discord */
.comment-composer{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  max-width:720px; margin:0 auto 16px; left:0; right:0;
  display:flex; align-items:flex-end; gap:10px; padding:10px 12px;
  border-radius:18px;
}
.comment-composer textarea{
  flex:1; resize:none; max-height:120px; min-height:24px; padding:9px 4px;
  background:transparent; border:none; color:var(--text-foam); font-size:14px;
  font-family:inherit; outline:none; line-height:1.4;
}
.composer-send-btn{
  width:38px; height:38px; border-radius:50%; border:none; flex-shrink:0;
  background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan)); color:#00131c;
  font-size:15px; display:flex; align-items:center; justify-content:center;
}

/* ---------- SETTINGS ---------- */
.settings-card{ max-width:420px; }
.avatar-picker{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:26px; }
.avatar-preview{
  position:relative; width:84px; height:84px; border-radius:50%; overflow:hidden; cursor:pointer;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  display:flex; align-items:center; justify-content:center; font-size:32px; font-weight:700; color:#00131c;
  border:2px solid var(--border-glow);
}
.avatar-preview img{ width:100%; height:100%; object-fit:cover; }
.avatar-edit-badge{
  position:absolute; bottom:0; right:0; width:26px; height:26px; border-radius:50%;
  background:var(--bg-deep); border:2px solid var(--bg-surface); display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--accent-cyan);
}
.avatar-hint{ font-size:11px; color:var(--text-muted); }
.settings-divider{
  display:flex; align-items:center; gap:10px; margin:32px 0 22px;
  font-size:10.5px; letter-spacing:.15em; text-transform:uppercase; color:var(--text-muted);
}
.settings-divider::before, .settings-divider::after{ content:''; flex:1; height:1px; background:rgba(58,214,255,0.16); }

/* ---------- ICONS ---------- */
.icon{ display:inline-block; vertical-align:middle; flex-shrink:0; }
.icon-btn, .btn-primary, .btn-ghost, .btn-upload, .filter-pill,
.comment-submit-btn, .composer-send-btn,
.attachment-download, .auth-switch a, .admin-badge{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
}
.account-dropdown a{ display:flex !important; align-items:center; gap:10px; }
.dropzone-icon{ display:flex; align-items:center; justify-content:center; margin-bottom:8px; color:var(--accent-cyan); }
.post-file-icon{ display:flex; align-items:center; justify-content:center; color:var(--accent-cyan); }
.file-tile-icon{ display:flex; align-items:center; justify-content:center; color:var(--accent-cyan); }
.icon-btn svg{ width:14px; height:14px; }
.auth-logo svg{ color:var(--accent-cyan); vertical-align:-4px; }

@media (max-width:520px){
  #player{ width:calc(100% - 40px); left:20px; right:20px; }
  .stats-row{ gap:20px; }
  .comment-composer{ margin:0; border-radius:18px 18px 0 0; }
  .post-page{ padding-bottom:120px; }
}

/* ---------- SEARCH & SORT ---------- */
.search-sort-row{
  max-width:640px; margin:0 auto; padding:0 20px 18px;
  display:flex; gap:10px; position:relative; z-index:1;
}
.search-form{ flex:1; }
.search-input-wrap{
  display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:100px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(58,214,255,0.16);
  color:var(--text-muted);
}
.search-input-wrap:focus-within{ border-color:var(--accent-cyan); }
.search-input-wrap input{
  flex:1; background:none; border:none; outline:none; color:var(--text-foam); font-size:13.5px; font-family:inherit;
}
.search-input-wrap input::placeholder{ color:var(--text-muted); }
.search-clear{ display:flex; color:var(--text-muted); flex-shrink:0; }
.search-clear:hover{ color:var(--accent-cyan); }
.sort-select{
  padding:10px 14px; border-radius:100px; background:rgba(255,255,255,0.03);
  border:1px solid rgba(58,214,255,0.16); color:var(--text-foam); font-size:13px; font-family:inherit;
  outline:none; flex-shrink:0;
}
.sort-select:focus{ border-color:var(--accent-cyan); }
@media (max-width:560px){
  .search-sort-row{ flex-direction:column; }
  .sort-select{ width:100%; }
}

/* ---------- REACTIONS (like) ---------- */
.reaction-form{ display:inline-block; }
.reaction-btn{ gap:5px; padding:0 9px; width:auto; color:var(--text-muted); }
.reaction-btn svg{ transition:transform .15s; }
.reaction-btn.liked{ color:#ff5c7a; }
.reaction-btn.liked svg{ transform:scale(1.1); }
.reaction-btn:active svg{ transform:scale(1.3); }
.reaction-count{ font-size:11.5px; font-weight:600; }
.comment-like-btn{
  display:inline-flex; align-items:center; gap:4px; margin-top:6px; padding:2px 0;
  background:none; border:none; color:var(--text-muted); font-size:11px; font-weight:600;
}
.comment-like-btn.liked{ color:#ff5c7a; }
.comment-reaction-form{ display:block; }

/* ---------- DOWNLOAD COUNT ---------- */
.attachment-dl-count{
  display:inline-flex; align-items:center; gap:4px; color:var(--text-muted); font-size:11px; flex-shrink:0;
}

/* ---------- ADMIN DASHBOARD ---------- */
.dashboard-page{ max-width:800px; margin:0 auto; padding:30px clamp(16px,4vw,48px) 60px; position:relative; z-index:1; }
.dashboard-title{ display:flex; align-items:center; gap:10px; font-size:22px; margin-bottom:24px; }
.dash-stats-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:14px; margin-bottom:36px; }
.dash-stat-card{ padding:18px; display:flex; flex-direction:column; gap:8px; }
.dash-stat-icon{ color:var(--accent-cyan); }
.dash-stat-card b{ font-size:22px; font-family:'Space Grotesk'; }
.dash-stat-card span{ font-size:11.5px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.dash-section-title{ font-size:16px; margin-bottom:14px; }
.user-table-wrap{ padding:8px; }
.user-row{ display:flex; align-items:center; gap:12px; padding:12px; border-radius:12px; }
.user-row:hover{ background:rgba(255,255,255,0.03); }
.user-row-info{ flex:1; min-width:0; }
.user-row-name{ font-size:13.5px; font-weight:600; }
.user-row-username{ color:var(--text-muted); font-weight:400; font-size:11.5px; }
.user-row-meta{ font-size:11px; color:var(--text-muted); margin-top:2px; }
.ban-status{ font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:100px; background:rgba(255,90,90,0.15); color:#ff8a8a; white-space:nowrap; }
.user-row-self{ font-size:11px; color:var(--text-muted); font-style:italic; padding:0 6px; }

/* ---------- OTP / VERIFIKASI EMAIL ---------- */
.otp-icon{
  width:52px; height:52px; border-radius:50%; margin:0 auto 14px;
  background:rgba(58,214,255,0.12); color:var(--accent-cyan);
  display:flex; align-items:center; justify-content:center;
}
.otp-input{
  text-align:center; font-size:26px; font-weight:700; letter-spacing:10px;
  font-family:'JetBrains Mono',monospace; padding-left:20px;
}
.otp-resend-btn{ width:100%; }
.auth-info{
  background:rgba(58,214,255,0.1); border:1px solid rgba(58,214,255,0.35);
  color:var(--accent-cyan); font-size:12.5px; padding:9px 12px; border-radius:8px;
  margin-bottom:16px; text-align:left;
}

/* ---------- BALAS KOMENTAR (nested replies) ---------- */
.comment-actions-row{ display:flex; align-items:center; gap:14px; margin-top:6px; }
.comment-reply-toggle{
  background:none; border:none; color:var(--text-muted); font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.03em; padding:2px 0;
}
.comment-reply-toggle:hover{ color:var(--accent-cyan); }
.reply-form{ display:flex; align-items:flex-end; gap:8px; margin-top:10px; }
.reply-textarea{
  flex:1; resize:none; max-height:100px; min-height:34px; padding:8px 12px; border-radius:14px;
  background:rgba(3,10,18,0.6); border:1px solid rgba(58,214,255,0.15); color:var(--text-foam);
  font-size:13px; font-family:inherit; outline:none; line-height:1.4;
}
.reply-textarea:focus{ border-color:var(--accent-cyan); }
.reply-send-btn{ width:32px; height:32px; flex-shrink:0; }
.reply-send-btn svg{ width:13px; height:13px; }
.view-replies-toggle{
  display:flex; align-items:center; gap:6px; background:none; border:none;
  color:var(--accent-cyan); font-size:11.5px; font-weight:700; margin-top:10px; padding:4px 0;
}
.view-replies-toggle svg{ transition:transform .2s; }
.view-replies-toggle.expanded svg{ transform:rotate(180deg); }
.replies-list{
  flex-direction:column; gap:16px; margin-top:14px; padding-left:20px;
  border-left:2px solid rgba(58,214,255,0.12); margin-left:15px;
}
.reply-item{ display:flex; gap:10px; }
.comment-avatar-sm{ width:28px; height:28px; font-size:11px; }

/* ---------- NOTIFICATIONS ---------- */
.notif-bell{ position:relative; display:flex; }
.notif-badge{
  position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 4px;
  border-radius:100px; background:#ff5c7a; color:#fff; font-size:9.5px; font-weight:800;
  display:flex; align-items:center; justify-content:center; line-height:1;
}
.notif-page{ max-width:640px; margin:0 auto; padding:30px clamp(16px,4vw,48px) 60px; position:relative; z-index:1; }
.notif-list{ display:flex; flex-direction:column; gap:10px; }
.notif-item{
  display:flex; gap:12px; padding:14px; text-decoration:none; color:inherit;
  position:relative; transition:transform .15s;
}
.notif-item:hover{ transform:translateX(2px); }
.notif-item.unread{ border-color:rgba(58,214,255,0.4); background:linear-gradient(160deg, rgba(58,214,255,0.08), rgba(8,20,32,0.65)); }
.notif-avatar{
  position:relative; width:38px; height:38px; border-radius:50%; overflow:hidden; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#00131c;
}
.notif-avatar img{ width:100%; height:100%; object-fit:cover; }
.notif-type-badge{
  position:absolute; bottom:-2px; right:-2px; width:18px; height:18px; border-radius:50%;
  background:#ff5c7a; color:#fff; display:flex; align-items:center; justify-content:center;
  border:2px solid var(--bg-deep);
}
.notif-body{ flex:1; min-width:0; }
.notif-text{ font-size:13.5px; line-height:1.4; }
.notif-post-label{ font-size:11.5px; color:var(--text-muted); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notif-time{ font-size:11px; color:var(--text-muted); margin-top:4px; }
.notif-dot{ position:absolute; top:14px; right:14px; width:8px; height:8px; border-radius:50%; background:var(--accent-cyan); }

/* ---------- PUBLIC PROFILE (gaya Instagram) ---------- */
.ig-profile{ max-width:520px; margin:0 auto; padding:28px 20px 6px; position:relative; z-index:1; }
.ig-profile-top{ display:flex; align-items:center; gap:22px; margin-bottom:18px; }
.ig-avatar-ring{
  flex-shrink:0; width:88px; height:88px; border-radius:50%; padding:3px;
  background:conic-gradient(from 200deg, var(--accent-cyan), var(--accent-teal), #ff8a5c, var(--accent-cyan));
}
.ig-avatar{
  width:100%; height:100%; border-radius:50%; overflow:hidden; box-sizing:border-box;
  border:3px solid var(--bg-deep); background:linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:700; color:#00131c;
}
.ig-avatar img{ width:100%; height:100%; object-fit:cover; }
.ig-stats-row{ flex:1; display:flex; justify-content:space-around; }
.ig-stat{ text-align:center; }
.ig-stat b{ display:block; font-size:18px; font-family:'Space Grotesk'; }
.ig-stat span{ font-size:11px; color:var(--text-muted); }
.ig-profile-info{ text-align:left; }
.ig-profile-name{ font-size:15px; font-weight:700; }
.ig-profile-username{ font-size:12.5px; color:var(--text-muted); margin-top:2px; }
.ig-profile-bio{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); margin-top:8px; }
.follow-form{ margin-top:14px; }
.follow-btn{
  width:100%; padding:9px; border-radius:10px; border:none; cursor:pointer;
  background:linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
  color:#00131c; font-weight:700; font-size:13.5px; transition:transform .15s, background .15s;
}
.follow-btn:hover{ transform:translateY(-1px); }
.follow-btn.following{
  background:rgba(255,255,255,0.06); color:var(--text-foam); border:1px solid rgba(58,214,255,0.2);
}
.ig-grid-tab{
  max-width:520px; margin:18px auto 0; padding:0 20px; display:flex; justify-content:center;
  border-top:1px solid rgba(58,214,255,0.14); position:relative; z-index:1;
}
.ig-grid-tab-active{
  display:flex; align-items:center; gap:7px; padding:12px 4px; font-size:11.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.06em; color:var(--accent-cyan); border-top:2px solid var(--accent-cyan); margin-top:-1px;
}
.profile-you-tag{ font-size:12px; color:var(--text-muted); font-weight:400; }
.uploader-link{ text-decoration:none; }
.uploader-link:hover b{ color:var(--accent-cyan); }

/* Grid postingan 3 kolom, thumbnail persegi -- gaya Instagram */
.ig-post-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:3px;
  max-width:600px; margin:0 auto; padding:3px 3px 50px; position:relative; z-index:1;
}
.ig-post-thumb{
  position:relative; aspect-ratio:1/1; overflow:hidden; display:block; text-decoration:none;
  background:#0c1c2c;
}
.ig-post-thumb img, .ig-post-thumb video{ width:100%; height:100%; object-fit:cover; }
.ig-thumb-icon{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--accent-cyan);
  background:linear-gradient(160deg, rgba(18,168,160,0.15), rgba(58,214,255,0.05));
}
.ig-thumb-badge{
  position:absolute; top:6px; right:6px; z-index:2; color:#fff;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.7));
}

/* ---------- REPORT ---------- */
.report-panel{ max-width:720px; margin:0 auto 24px; padding:18px 22px; position:relative; z-index:1; }
.report-panel-label{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; margin-bottom:10px; color:#ffab7a; }
.report-panel textarea{
  width:100%; padding:10px 12px; border-radius:10px; resize:vertical; min-height:60px;
  background:rgba(3,10,18,0.6); border:1px solid rgba(58,214,255,0.15); color:var(--text-foam);
  font-size:13px; font-family:inherit; outline:none;
}
.report-panel textarea:focus{ border-color:var(--accent-cyan); }
.report-submit-btn{ width:auto; padding:9px 20px; margin-top:10px; }

.dash-stat-alert{ border-color:rgba(255,90,90,0.4); }
.dash-stat-alert .dash-stat-icon{ color:#ff8a8a; }
.report-row{ display:flex; gap:12px; align-items:flex-start; padding:14px 12px; border-radius:12px; }
.report-row:hover{ background:rgba(255,255,255,0.03); }
.report-row-body{ flex:1; min-width:0; }
.report-row-head{ display:flex; align-items:center; gap:10px; margin-bottom:6px; flex-wrap:wrap; }
.report-row-post{ display:inline-flex; align-items:center; gap:5px; color:var(--accent-cyan); text-decoration:none; font-size:12px; }
.report-row-time{ font-size:11px; color:var(--text-muted); }
.report-row-reason{ font-size:13px; line-height:1.5; margin-bottom:6px; }
.report-row-reporter{ font-size:11.5px; color:var(--text-muted); }
.report-row-reporter b{ color:var(--accent-teal); }
.report-row-actions{ display:flex; gap:6px; flex-shrink:0; }
