/* css/style.css */
:root {
  --bg: #0a0a12;
  --bg2: #0f0f1e;
  --card: #12121f;
  --card2: #18182e;
  --p: #7c3aed;
  --p2: #9d5cf0;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --gold: #f59e0b;
  --t1: #f0f0ff;
  --t2: #9090b8;
  --t3: #50506a;
  --border: rgba(124,58,237,0.15);
  --border2: rgba(124,58,237,0.4);
  --r: 10px;
  --r2: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font1: 'Orbitron', monospace;
  --font2: 'Exo 2', sans-serif;
  --tr: all 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font2);
  background: var(--bg);
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(124,58,237,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(6,182,212,.05) 0%, transparent 55%);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--p); border-radius: 3px; }
::selection { background: rgba(124,58,237,.3); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes bounce { 0%,80%,100% { transform:scale(.8); opacity:.5; } 40% { transform:scale(1.2); opacity:1; } }

.fu { animation: fadeUp .5s ease both; }

/* LAYOUT */
#app { display:flex; flex-direction:column; min-height:100vh; }
main { flex:1; padding-top:64px; }

/* NAVBAR */
nav {
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:64px; padding:0 20px;
  display:flex; align-items:center; justify-content:space-between;
  transition:var(--tr); border-bottom:1px solid transparent;
}
nav.scrolled {
  background:rgba(10,10,18,.96);
  backdrop-filter:blur(20px);
  border-bottom-color:var(--border);
}
.nav-logo {
  display:flex; align-items:center; gap:8px;
  font-family:var(--font1); font-size:.95rem; font-weight:900;
  letter-spacing:.1em; color:var(--t1); cursor:pointer;
}
.nav-logo em { font-size:1.3rem; font-style:normal; }
.nav-logo span { color:var(--p); }
.nav-links { display:flex; gap:4px; }
.nav-link {
  padding:7px 13px; border-radius:var(--r);
  color:var(--t2); font-size:.82rem; font-weight:600;
  cursor:pointer; border:none; background:none;
  font-family:var(--font2); transition:var(--tr);
}
.nav-link:hover { color:var(--t1); background:rgba(124,58,237,.15); }
.nav-right { display:flex; align-items:center; gap:10px; }
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.hline { display:block; width:22px; height:2px; background:var(--t1); border-radius:2px; transition:var(--tr); }
.mob-menu {
  display:none; position:fixed; top:64px; left:0; right:0;
  background:rgba(10,10,18,.98); backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  padding:12px 16px 20px; z-index:199;
  flex-direction:column; gap:4px; animation:fadeIn .2s ease;
}
.mob-menu.open { display:flex; }
.mob-link {
  padding:12px 16px; border-radius:var(--r);
  color:var(--t2); font-size:.9rem; font-weight:600;
  cursor:pointer; border:none; background:none;
  font-family:var(--font2); text-align:left; transition:var(--tr);
}
.mob-link:hover { color:var(--t1); background:rgba(124,58,237,.12); }

/* BUTTONS */
.btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 18px; border-radius:var(--r);
  font-family:var(--font2); font-size:.85rem; font-weight:700;
  cursor:pointer; border:none; transition:var(--tr); white-space:nowrap;
}
.btn-primary { background:linear-gradient(135deg,var(--p),var(--p2)); color:#fff; box-shadow:0 4px 14px rgba(124,58,237,.35); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 22px rgba(124,58,237,.55); }
.btn-ghost { background:transparent; color:var(--t2); border:1px solid var(--border); }
.btn-ghost:hover { border-color:var(--p); color:var(--t1); background:rgba(124,58,237,.1); }
.btn-danger { background:var(--red); color:#fff; }
.btn-danger:hover { background:#dc2626; }
.btn-sm { padding:6px 13px; font-size:.78rem; }

/* USER AVATAR */
.av-wrap { position:relative; }
.av-btn {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.05); border:1px solid var(--border);
  border-radius:30px; padding:5px 12px 5px 5px;
  cursor:pointer; color:var(--t1); font-family:var(--font2);
  font-size:.85rem; font-weight:600; transition:var(--tr);
}
.av-btn:hover { border-color:var(--p); }
.av-img { width:28px; height:28px; border-radius:50%; border:2px solid var(--p); }
.av-drop {
  position:absolute; top:calc(100% + 8px); right:0; min-width:190px;
  background:var(--card); border:1px solid var(--border2);
  border-radius:var(--r2); padding:8px;
  box-shadow:var(--shadow); animation:fadeUp .2s ease;
}
.av-item {
  display:flex; align-items:center; gap:8px;
  width:100%; padding:9px 12px; border-radius:var(--r);
  color:var(--t2); font-size:.85rem; font-weight:600;
  cursor:pointer; border:none; background:none;
  font-family:var(--font2); text-align:left; transition:var(--tr);
}
.av-item:hover { background:rgba(255,255,255,.06); color:var(--t1); }
.av-item.red:hover { background:rgba(239,68,68,.1); color:var(--red); }
.av-head { padding:8px 12px 10px; border-bottom:1px solid var(--border); margin-bottom:6px; }
.av-email { font-size:.74rem; color:var(--t3); margin-bottom:4px; }

/* BADGES */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 9px; border-radius:20px;
  font-size:.7rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
}
.b-apk { background:rgba(124,58,237,.2); color:#a78bfa; border:1px solid rgba(124,58,237,.3); }
.b-games { background:rgba(6,182,212,.2); color:#67e8f9; border:1px solid rgba(6,182,212,.3); }
.b-script { background:rgba(16,185,129,.2); color:#6ee7b7; border:1px solid rgba(16,185,129,.3); }
.b-tutorials { background:rgba(245,158,11,.2); color:#fde68a; border:1px solid rgba(245,158,11,.3); }
.b-admin { background:rgba(239,68,68,.2); color:#fca5a5; border:1px solid rgba(239,68,68,.3); }

/* CARD */
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--r2); overflow:hidden; transition:var(--tr); }
.card:hover { border-color:var(--border2); transform:translateY(-4px); box-shadow:0 12px 40px rgba(124,58,237,.2); }

/* INPUTS */
.inp, .txta, .sel {
  width:100%; padding:11px 15px;
  background:rgba(255,255,255,.05); border:1px solid var(--border);
  border-radius:var(--r); color:var(--t1);
  font-family:var(--font2); font-size:.9rem; outline:none; transition:var(--tr);
}
.inp:focus, .txta:focus, .sel:focus { border-color:var(--p); background:rgba(124,58,237,.07); box-shadow:0 0 0 3px rgba(124,58,237,.15); }
.txta { resize:vertical; min-height:90px; }
.sel option { background:var(--card); }
.lbl { display:block; font-size:.78rem; font-weight:700; color:var(--t2); margin-bottom:6px; letter-spacing:.06em; text-transform:uppercase; }
.fg { margin-bottom:18px; }

/* SPINNER */
.spin { width:38px; height:38px; border:3px solid rgba(124,58,237,.2); border-top-color:var(--p); border-radius:50%; animation:spin .8s linear infinite; margin:0 auto; }

/* TOAST */
#toasts { position:fixed; top:80px; right:16px; z-index:9999; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.toast { background:var(--card2); border:1px solid var(--border); border-radius:var(--r); padding:12px 18px; font-size:.88rem; font-weight:600; color:var(--t1); box-shadow:var(--shadow); animation:fadeUp .3s ease; max-width:300px; }
.toast.ok { border-left:3px solid var(--green); }
.toast.err { border-left:3px solid var(--red); }

/* WATERMARK */
#wm { position:fixed; bottom:18px; right:14px; font-family:var(--font1); font-size:.55rem; font-weight:900; color:rgba(124,58,237,.22); letter-spacing:.2em; writing-mode:vertical-rl; transform:rotate(180deg); pointer-events:none; z-index:9998; }

/* HERO */
#hero { min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:80px 20px 60px; position:relative; overflow:hidden; }
.hero-bg { position:absolute; inset:0; z-index:0; }
.orb { position:absolute; border-radius:50%; filter:blur(90px); opacity:.35; animation:float 8s ease-in-out infinite; }
.orb1 { width:600px; height:600px; background:radial-gradient(circle,rgba(124,58,237,.5),transparent); top:-200px; left:-150px; }
.orb2 { width:500px; height:500px; background:radial-gradient(circle,rgba(6,182,212,.4),transparent); bottom:-150px; right:-100px; animation-delay:-4s; }
.grid-bg { position:absolute; inset:0; background-image:linear-gradient(rgba(124,58,237,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(124,58,237,.04) 1px,transparent 1px); background-size:48px 48px; }
.hero-inner { position:relative; z-index:1; max-width:780px; }
.hero-pill { display:inline-flex; align-items:center; gap:8px; padding:5px 16px; border-radius:30px; background:rgba(124,58,237,.12); border:1px solid rgba(124,58,237,.35); font-size:.78rem; font-weight:700; color:#a78bfa; letter-spacing:.06em; margin-bottom:24px; animation:fadeUp .5s ease both; }
.hero-title { font-family:var(--font1); font-size:clamp(2.8rem,11vw,6.5rem); font-weight:900; letter-spacing:.08em; line-height:1; color:var(--t1); margin-bottom:14px; text-shadow:0 0 60px rgba(124,58,237,.5); animation:fadeUp .5s .1s ease both; }
.hero-title b { color:var(--p); }
.hero-sub { font-family:var(--font1); font-size:clamp(.7rem,2.5vw,.88rem); letter-spacing:.35em; color:var(--cyan); text-transform:uppercase; margin-bottom:20px; animation:fadeUp .5s .15s ease both; }
.hero-desc { font-size:1rem; color:var(--t2); line-height:1.85; max-width:540px; margin:0 auto 32px; animation:fadeUp .5s .2s ease both; }
.hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:44px; animation:fadeUp .5s .25s ease both; }
.hero-btns .btn { padding:13px 28px; font-size:.95rem; }
.hero-stats { display:flex; align-items:center; gap:28px; justify-content:center; animation:fadeUp .5s .3s ease both; }
.stat-n { display:block; font-family:var(--font1); font-size:1.5rem; font-weight:900; color:var(--p); }
.stat-l { font-size:.72rem; color:var(--t3); }
.stat-div { width:1px; height:36px; background:var(--border); }

/* SECTIONS */
.sec { padding:70px 0; }
.sec-dark { background:rgba(0,0,0,.25); }
.container { max-width:1380px; margin:0 auto; padding:0 20px; }
.sec-head { margin-bottom:36px; }
.sec-title { font-family:var(--font1); font-size:1.4rem; font-weight:700; margin-bottom:6px; }
.sec-sub { color:var(--t3); font-size:.88rem; }

/* CATEGORY CARDS */
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.cat-card { display:flex; align-items:center; gap:14px; padding:18px; background:var(--card); border:1px solid var(--border); border-radius:var(--r2); cursor:pointer; transition:var(--tr); }
.cat-card:hover { border-color:var(--border2); transform:translateY(-4px); }
.cat-ico { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; }
.cat-name { font-weight:700; font-size:.9rem; margin-bottom:2px; }
.cat-desc { font-size:.75rem; color:var(--t3); }
.cat-arr { margin-left:auto; color:var(--t3); font-size:1rem; transition:var(--tr); }
.cat-card:hover .cat-arr { color:var(--p); transform:translateX(4px); }

/* POST CARDS */
.posts-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:22px; }
.pcard { display:flex; flex-direction:column; cursor:pointer; animation:fadeUp .5s ease both; opacity:0; }
.pcard-img { position:relative; aspect-ratio:16/9; overflow:hidden; }
.pcard-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.pcard:hover .pcard-img img { transform:scale(1.06); }
.pcard-ph { width:100%; height:100%; background:linear-gradient(135deg,rgba(124,58,237,.25),rgba(6,182,212,.12)); display:flex; align-items:center; justify-content:center; font-size:2.8rem; }
.img-ov { position:absolute; inset:0; background:linear-gradient(to top,rgba(10,10,18,.85) 0%,transparent 60%); }
.img-badge { position:absolute; top:10px; left:10px; }
.feat-badge { position:absolute; top:10px; right:10px; background:rgba(245,158,11,.9); color:#fff; font-size:.68rem; font-weight:800; padding:3px 9px; border-radius:20px; }
.pcard-body { padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; gap:8px; }
.pcard-title { font-family:var(--font1); font-size:.85rem; font-weight:700; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pcard-desc { font-size:.82rem; color:var(--t2); line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
.pcard-foot { display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
.pcard-date { font-size:.73rem; color:var(--t3); }
.pcard-actions { display:flex; align-items:center; gap:8px; }
.share-ico { background:none; border:none; font-size:.9rem; cursor:pointer; opacity:.5; transition:var(--tr); padding:3px; }
.share-ico:hover { opacity:1; transform:scale(1.2); }

/* EMPTY STATE */
.empty { text-align:center; padding:80px 20px; color:var(--t3); }
.empty-ico { font-size:4rem; display:block; margin-bottom:16px; }
.empty h3 { font-size:1.2rem; color:var(--t2); margin-bottom:8px; }

/* POST DETAIL */
.detail-hero { position:relative; height:48vh; min-height:280px; overflow:hidden; }
.detail-hero img { width:100%; height:100%; object-fit:cover; }
.detail-hero-ph { width:100%; height:100%; background:linear-gradient(135deg,rgba(124,58,237,.35),rgba(6,182,212,.2)); display:flex; align-items:center; justify-content:center; font-size:6rem; }
.detail-hero-ov { position:absolute; inset:0; background:linear-gradient(to top,rgba(10,10,18,1) 0%,rgba(10,10,18,.25) 60%,transparent); }
.detail-hero-info { position:absolute; bottom:0; left:0; right:0; padding:32px 24px; }
.detail-title { font-family:var(--font1); font-size:clamp(1.2rem,4vw,2rem); font-weight:900; line-height:1.3; max-width:720px; margin-top:10px; }
.detail-body { max-width:1380px; margin:0 auto; padding:36px 20px 80px; display:grid; grid-template-columns:1fr 280px; gap:36px; align-items:start; }
.detail-desc { color:var(--t2); line-height:1.9; font-size:.95rem; white-space:pre-wrap; }
.dl-btn { display:flex; align-items:center; gap:16px; padding:18px 22px; margin:28px 0 14px; background:linear-gradient(135deg,rgba(124,58,237,.25),rgba(6,182,212,.12)); border:1px solid var(--border2); border-radius:var(--r2); text-decoration:none; color:var(--t1); transition:var(--tr); }
.dl-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(124,58,237,.3); }
.dl-ico { font-size:2rem; }
.dl-lbl { font-family:var(--font1); font-size:.85rem; font-weight:700; letter-spacing:.05em; }
.dl-sub { font-size:.73rem; color:var(--t3); margin-top:2px; }
.dl-arr { margin-left:auto; color:var(--p); font-size:1.2rem; }
.share-btn2 { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:11px; background:transparent; border:1px dashed var(--border); border-radius:var(--r); color:var(--t2); cursor:pointer; font-family:var(--font2); font-size:.85rem; font-weight:600; transition:var(--tr); }
.share-btn2:hover { border-color:var(--cyan); color:var(--cyan); }
.sidebar-card { background:var(--card); border:1px solid var(--border); border-radius:var(--r2); padding:18px; margin-bottom:14px; }
.s-title { font-family:var(--font1); font-size:.78rem; margin-bottom:14px; letter-spacing:.06em; }
.s-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:.8rem; }
.s-row .key { color:var(--t3); }
.s-note { font-size:.78rem; color:var(--t3); line-height:1.7; }
.admin-bar { display:flex; align-items:center; gap:10px; padding:12px 16px; background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.2); border-radius:var(--r); margin-bottom:24px; flex-wrap:wrap; }
.admin-bar-lbl { font-size:.82rem; color:#fca5a5; font-weight:700; flex:1; }

/* CATEGORY PAGE */
.cat-hero { position:relative; padding:100px 20px 50px; text-align:center; overflow:hidden; }
.cat-hero-ico { font-size:4rem; display:block; margin-bottom:14px; animation:float 4s ease-in-out infinite; }
.cat-hero-title { font-family:var(--font1); font-size:clamp(1.8rem,7vw,3.2rem); font-weight:900; margin-bottom:10px; }
.cat-hero-desc { color:var(--t2); font-size:.95rem; margin-bottom:14px; }
.cat-count { display:inline-block; padding:4px 14px; background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:20px; font-size:.75rem; color:var(--t3); }
.search-wrap { position:relative; margin-bottom:32px; }
.search-x { position:absolute; right:14px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--t3); cursor:pointer; font-size:.9rem; }

/* AUTH */
.auth-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:80px 20px 40px; position:relative; }
.auth-card { background:var(--card); border:1px solid var(--border); border-radius:var(--r2); padding:36px; width:100%; max-width:420px; animation:fadeUp .4s ease; position:relative; z-index:1; }
.auth-logo2 { text-align:center; margin-bottom:24px; }
.auth-logo2 .logo-t { font-family:var(--font1); font-size:1.1rem; font-weight:900; letter-spacing:.08em; }
.auth-logo2 .logo-t b { color:var(--p); }
.auth-title2 { font-family:var(--font1); font-size:1.2rem; text-align:center; margin-bottom:6px; }
.auth-sub2 { text-align:center; color:var(--t3); font-size:.82rem; margin-bottom:24px; }
.divider { display:flex; align-items:center; gap:10px; color:var(--t3); font-size:.78rem; margin:18px 0; }
.divider::before,.divider::after { content:''; flex:1; height:1px; background:var(--border); }
.g-btn { width:100%; padding:11px; background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:var(--r); color:var(--t1); font-family:var(--font2); font-size:.9rem; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:var(--tr); }
.g-btn:hover { background:rgba(255,255,255,.1); }
.err-msg { background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.25); border-radius:var(--r); padding:9px 13px; font-size:.82rem; color:#fca5a5; margin-bottom:14px; }
.auth-foot { text-align:center; font-size:.82rem; color:var(--t3); margin-top:18px; }
.auth-foot a { color:var(--p); cursor:pointer; font-weight:700; }

/* ADMIN */
.admin-page { max-width:960px; margin:0 auto; padding:90px 20px 80px; }
.admin-h1 { font-family:var(--font1); font-size:1.6rem; font-weight:900; margin-bottom:4px; }
.admin-s { color:var(--t3); font-size:.85rem; }
.tabs { display:flex; gap:2px; border-bottom:1px solid var(--border); margin-bottom:24px; }
.tab { padding:11px 18px; background:none; border:none; border-bottom:2px solid transparent; color:var(--t3); font-family:var(--font2); font-size:.85rem; font-weight:700; cursor:pointer; transition:var(--tr); margin-bottom:-1px; }
.tab:hover { color:var(--t1); }
.tab.on { color:var(--p); border-bottom-color:var(--p); }
.form-card { background:var(--card); border:1px solid var(--border); border-radius:var(--r2); padding:28px; }
.form-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.check-row { display:flex; align-items:center; gap:10px; cursor:pointer; font-size:.88rem; color:var(--t2); }
.check-row input { width:17px; height:17px; accent-color:var(--p); cursor:pointer; }
.post-row { display:flex; align-items:center; gap:14px; padding:14px; background:var(--card); border:1px solid var(--border); border-radius:var(--r2); transition:var(--tr); margin-bottom:10px; }
.post-row:hover { border-color:var(--border2); }
.pr-img { width:65px; height:46px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.pr-title { font-weight:700; font-size:.85rem; margin-bottom:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pr-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.pr-actions { display:flex; gap:7px; flex-shrink:0; }

/* UPLOAD */
.drop-zone { border:2px dashed var(--border); border-radius:var(--r); padding:28px; text-align:center; cursor:pointer; transition:var(--tr); }
.drop-zone:hover { border-color:var(--p); background:rgba(124,58,237,.05); }
.drop-ico { font-size:2.2rem; display:block; margin-bottom:8px; }
.drop-txt { font-size:.85rem; color:var(--t2); font-weight:600; }
.drop-hint { font-size:.73rem; color:var(--t3); margin-top:4px; }
.preview-wrap { position:relative; border-radius:var(--r); overflow:hidden; border:1px solid var(--border); aspect-ratio:16/9; }
.preview-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.rm-img { position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:50%; background:rgba(239,68,68,.85); border:none; color:#fff; cursor:pointer; font-size:.75rem; display:flex; align-items:center; justify-content:center; }
.prog-ov { position:absolute; inset:0; background:rgba(0,0,0,.7); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
.prog-bar { width:75%; height:5px; background:rgba(255,255,255,.1); border-radius:3px; overflow:hidden; }
.prog-fill { height:100%; background:linear-gradient(90deg,var(--p),var(--cyan)); transition:width .2s; }

/* COMMENTS */
.comments-sec { margin-top:36px; }
.comments-title { font-family:var(--font1); font-size:.95rem; margin-bottom:20px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.new-cmt { display:flex; gap:10px; margin-bottom:22px; }
.cmt-av { width:36px; height:36px; border-radius:50%; border:2px solid var(--p); flex-shrink:0; }
.cmt-inp-wrap { flex:1; }
.cmt-list { display:flex; flex-direction:column; gap:10px; }
.cmt { display:flex; gap:10px; padding:14px; background:rgba(255,255,255,.02); border:1px solid var(--border); border-radius:var(--r); }
.cmt.pinned { border-color:rgba(245,158,11,.4); background:rgba(245,158,11,.04); }
.cmt.reply { margin-left:40px; background:rgba(0,0,0,.2); }
.pin-tag { font-size:.65rem; font-weight:800; color:var(--gold); margin-bottom:6px; }
.cmt-av-sm { width:32px; height:32px; border-radius:50%; border:1px solid var(--border); flex-shrink:0; }
.cmt-body { flex:1; min-width:0; }
.cmt-name { font-weight:700; font-size:.82rem; margin-right:8px; }
.cmt-date { font-size:.7rem; color:var(--t3); }
.cmt-text { font-size:.85rem; color:var(--t2); line-height:1.6; margin:6px 0 9px; }
.cmt-acts { display:flex; gap:6px; flex-wrap:wrap; }
.cact { display:flex; align-items:center; gap:4px; padding:3px 9px; border-radius:20px; border:1px solid transparent; background:rgba(255,255,255,.04); color:var(--t3); font-size:.72rem; font-family:var(--font2); cursor:pointer; font-weight:700; transition:var(--tr); }
.cact:hover { background:rgba(255,255,255,.08); color:var(--t1); }
.cact.liked { background:rgba(239,68,68,.1); color:#f87171; border-color:rgba(239,68,68,.2); }
.cact.adm { color:var(--gold); }
.cact.adm:hover { background:rgba(245,158,11,.1); }
.cact.del { color:var(--red); }
.cact.del:hover { background:rgba(239,68,68,.1); }
.reply-form { margin-top:10px; display:flex; flex-direction:column; gap:7px; }
.login-prompt { text-align:center; padding:16px; background:rgba(255,255,255,.02); border-radius:var(--r); color:var(--t3); font-size:.85rem; }

/* AI CHAT */
.ai-fab { position:fixed; bottom:22px; left:22px; z-index:998; width:54px; height:54px; border-radius:50%; background:linear-gradient(135deg,var(--p),var(--cyan)); border:none; cursor:pointer; font-size:1.4rem; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 20px rgba(124,58,237,.45); transition:var(--tr); animation:float 3s ease-in-out infinite; }
.ai-fab:hover { transform:scale(1.12) !important; animation:none; }
.ai-win { position:fixed; bottom:86px; left:22px; width:320px; height:440px; background:var(--card); border:1px solid var(--border); border-radius:var(--r2); flex-direction:column; z-index:997; box-shadow:0 20px 60px rgba(0,0,0,.5); animation:fadeUp .3s ease; overflow:hidden; }
.ai-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; background:linear-gradient(135deg,rgba(124,58,237,.22),rgba(6,182,212,.1)); border-bottom:1px solid var(--border); }
.ai-head-l { display:flex; align-items:center; gap:9px; }
.ai-ico { font-size:1.5rem; }
.ai-name { font-family:var(--font1); font-size:.78rem; font-weight:700; }
.ai-status { font-size:.67rem; color:var(--green); }
.ai-msgs { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.ai-msg { display:flex; align-items:flex-start; gap:7px; }
.ai-msg.u { flex-direction:row-reverse; }
.ai-bubble { max-width:85%; padding:9px 13px; border-radius:14px; font-size:.82rem; line-height:1.6; }
.ai-msg.a .ai-bubble { background:rgba(124,58,237,.15); border:1px solid rgba(124,58,237,.2); border-radius:4px 14px 14px 14px; }
.ai-msg.u .ai-bubble { background:linear-gradient(135deg,var(--p),var(--p2)); color:#fff; border-radius:14px 4px 14px 14px; }
.typing-dots { display:flex; gap:5px; align-items:center; padding:12px; }
.typing-dots span { width:7px; height:7px; background:var(--p); border-radius:50%; animation:bounce 1.4s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay:.2s; }
.typing-dots span:nth-child(3) { animation-delay:.4s; }
.ai-inp-row { display:flex; gap:7px; padding:10px 14px; border-top:1px solid var(--border); }
.ai-inp { flex:1; background:rgba(255,255,255,.05); border:1px solid var(--border); border-radius:18px; padding:8px 13px; color:var(--t1); font-family:var(--font2); font-size:.82rem; resize:none; outline:none; transition:var(--tr); }
.ai-inp:focus { border-color:var(--p); }
.ai-send { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--p),var(--p2)); border:none; color:#fff; cursor:pointer; font-size:.9rem; display:flex; align-items:center; justify-content:center; transition:var(--tr); flex-shrink:0; }
.ai-send:hover:not(:disabled) { transform:scale(1.1); }
.ai-send:disabled { opacity:.4; cursor:not-allowed; }

/* FOOTER */
footer { background:var(--bg2); border-top:1px solid var(--border); padding:50px 0 28px; }
.foot-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; margin-bottom:36px; }
.foot-logo { display:flex; align-items:center; gap:8px; font-family:var(--font1); font-size:.95rem; font-weight:900; letter-spacing:.08em; margin-bottom:12px; }
.foot-logo b { color:var(--p); }
.foot-desc { font-size:.82rem; color:var(--t3); line-height:1.8; max-width:300px; margin-bottom:14px; }
.foot-wm { font-family:var(--font1); font-size:.62rem; color:rgba(124,58,237,.35); letter-spacing:.14em; }
.foot-h { font-family:var(--font1); font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:14px; color:var(--t1); }
.foot-a { display:block; color:var(--t3); font-size:.82rem; padding:4px 0; cursor:pointer; transition:var(--tr); }
.foot-a:hover { color:var(--p); transform:translateX(4px); }
.foot-bottom { padding-top:24px; border-top:1px solid var(--border); text-align:center; }
.foot-copy { font-size:.78rem; color:var(--t3); }

/* RESPONSIVE */
@media (max-width:900px) {
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .detail-body { grid-template-columns:1fr; }
  .foot-grid { grid-template-columns:1fr; gap:24px; }
  .form-grid2 { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .auth-btns { display:none; }
  .ai-win { width:calc(100vw - 44px); }
  .posts-grid { grid-template-columns:1fr; }
}

/* ═══════════════════════════════════════════
   RAINBOW — Colores que cambian en todas las tonalidades
   ═══════════════════════════════════════════ */
@keyframes rainbow {
  0%   { --p:#ff0080; --p2:#ff4da6; --border:rgba(255,0,128,.2); --border2:rgba(255,0,128,.5); }
  12%  { --p:#ff4000; --p2:#ff6633; --border:rgba(255,64,0,.2); --border2:rgba(255,64,0,.5); }
  25%  { --p:#ffaa00; --p2:#ffc233; --border:rgba(255,170,0,.2); --border2:rgba(255,170,0,.5); }
  37%  { --p:#00dd44; --p2:#33e86a; --border:rgba(0,221,68,.2); --border2:rgba(0,221,68,.5); }
  50%  { --p:#00ccff; --p2:#33d9ff; --border:rgba(0,204,255,.2); --border2:rgba(0,204,255,.5); }
  62%  { --p:#0066ff; --p2:#3385ff; --border:rgba(0,102,255,.2); --border2:rgba(0,102,255,.5); }
  75%  { --p:#8800ff; --p2:#aa33ff; --border:rgba(136,0,255,.2); --border2:rgba(136,0,255,.5); }
  87%  { --p:#ff00cc; --p2:#ff33d9; --border:rgba(255,0,204,.2); --border2:rgba(255,0,204,.5); }
  100% { --p:#ff0080; --p2:#ff4da6; --border:rgba(255,0,128,.2); --border2:rgba(255,0,128,.5); }
}

@keyframes rainbowText {
  0%   { color: #ff0080; }
  12%  { color: #ff4000; }
  25%  { color: #ffaa00; }
  37%  { color: #00dd44; }
  50%  { color: #00ccff; }
  62%  { color: #0066ff; }
  75%  { color: #8800ff; }
  87%  { color: #ff00cc; }
  100% { color: #ff0080; }
}

@keyframes rainbowBg {
  0%   { background: linear-gradient(135deg, #ff0080, #ff4da6); }
  12%  { background: linear-gradient(135deg, #ff4000, #ff6633); }
  25%  { background: linear-gradient(135deg, #ffaa00, #ffc233); }
  37%  { background: linear-gradient(135deg, #00dd44, #33e86a); }
  50%  { background: linear-gradient(135deg, #00ccff, #33d9ff); }
  62%  { background: linear-gradient(135deg, #0066ff, #3385ff); }
  75%  { background: linear-gradient(135deg, #8800ff, #aa33ff); }
  87%  { background: linear-gradient(135deg, #ff00cc, #ff33d9); }
  100% { background: linear-gradient(135deg, #ff0080, #ff4da6); }
}

@keyframes rainbowBorder {
  0%   { border-color: #ff0080; box-shadow: 0 0 16px rgba(255,0,128,.4); }
  25%  { border-color: #ffaa00; box-shadow: 0 0 16px rgba(255,170,0,.4); }
  50%  { border-color: #00ccff; box-shadow: 0 0 16px rgba(0,204,255,.4); }
  75%  { border-color: #8800ff; box-shadow: 0 0 16px rgba(136,0,255,.4); }
  100% { border-color: #ff0080; box-shadow: 0 0 16px rgba(255,0,128,.4); }
}

@keyframes rainbowGlow {
  0%,100% { text-shadow: 0 0 20px #ff0080, 0 0 40px #ff0080; }
  25%      { text-shadow: 0 0 20px #ffaa00, 0 0 40px #ffaa00; }
  50%      { text-shadow: 0 0 20px #00ccff, 0 0 40px #00ccff; }
  75%      { text-shadow: 0 0 20px #8800ff, 0 0 40px #8800ff; }
}

/* Aplicar rainbow a elementos clave */
.nav-logo span {
  animation: rainbowText 4s linear infinite;
}
.nav-logo em {
  animation: rainbowText 4s linear infinite;
  animation-delay: .5s;
}
.hero-title b {
  animation: rainbowText 4s linear infinite;
  animation-delay: .3s;
}
.btn-primary {
  animation: rainbowBg 4s linear infinite;
  border: none !important;
}
.ai-fab {
  animation: rainbowBg 4s linear infinite, float 3s ease-in-out infinite;
}
.ai-send {
  animation: rainbowBg 4s linear infinite;
}
.badge.b-apk    { animation: rainbowText 4s linear infinite; }
.badge.b-games  { animation: rainbowText 4s linear infinite; animation-delay:.5s; }
.badge.b-script { animation: rainbowText 4s linear infinite; animation-delay:1s; }
.badge.b-tutorials { animation: rainbowText 4s linear infinite; animation-delay:1.5s; }
.hero-pill {
  animation: rainbowBorder 4s linear infinite;
  border: 1px solid;
}
.wm { animation: rainbowText 4s linear infinite; }

/* ═══════════════════════════════════════════
   NOTIFICACIONES — Botón campana
   ═══════════════════════════════════════════ */
.notif-fab {
  position: fixed;
  bottom: 88px;
  left: 22px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: var(--tr);
  animation: rainbowBorder 4s linear infinite;
}
.notif-fab:hover { transform: scale(1.1); }
.notif-fab.notif-on {
  animation: rainbowBg 4s linear infinite;
  border: none;
}

/* ═══════════════════════════════════════════
   COMPARTIR — Botón mejorado
   ═══════════════════════════════════════════ */
.share-btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  margin: 14px 0;
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--t2);
  font-size: .85rem;
  font-family: var(--font2);
  cursor: pointer;
  transition: var(--tr);
  animation: rainbowBorder 4s linear infinite;
}
.share-btn2:hover {
  color: var(--t1);
  background: rgba(255,255,255,.08);
}

/* ═══════════════════════════════════
   REDES SOCIALES
   ═══════════════════════════════════ */
.social-links { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.social-btn {
  display:flex; align-items:center; gap:7px;
  padding:8px 14px; border-radius:20px;
  font-size:.78rem; font-weight:700;
  text-decoration:none; transition:var(--tr);
  border:1px solid transparent;
}
.social-btn:hover { transform:translateY(-2px); opacity:.9; }
.social-btn.youtube  { background:rgba(255,0,0,.15); color:#ff4444; border-color:rgba(255,0,0,.25); }
.social-btn.tiktok   { background:rgba(255,255,255,.08); color:#f0f0ff; border-color:rgba(255,255,255,.15); }
.social-btn.telegram { background:rgba(0,136,204,.15); color:#29b6f6; border-color:rgba(0,136,204,.25); }
.social-btn.discord  { background:rgba(88,101,242,.15); color:#7289da; border-color:rgba(88,101,242,.25); }

/* ═══════════════════════════════════
   OK MESSAGE
   ═══════════════════════════════════ */
.ok-msg {
  background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.3);
  color:var(--green); padding:10px 14px; border-radius:var(--r);
  font-size:.83rem; margin-bottom:14px;
}

/* ═══════════════════════════════════
   PERFIL PÚBLICO
   ═══════════════════════════════════ */
.prof-pub-card { background:var(--c2); border-radius:var(--r2); overflow:hidden; border:1px solid var(--bord); }
.prof-pub-banner { height:100px; background:linear-gradient(135deg,var(--p) 0%,var(--a) 100%); opacity:.6; }
.prof-pub-body { padding:0 20px 20px; }
.prof-pub-av-wrap { margin-top:-45px; margin-bottom:12px; }
.prof-pub-av { width:90px; height:90px; border-radius:50%; border:4px solid var(--c2); object-fit:cover; display:block; }
.prof-pub-name { font-family:var(--font1); font-size:1.1rem; font-weight:700; color:var(--t1); margin-bottom:4px; }
.prof-pub-bio { font-size:.83rem; color:var(--t2); margin:8px 0; line-height:1.5; }
.prof-pub-stats { display:flex; gap:20px; margin:12px 0; }
.pstat { display:flex; flex-direction:column; align-items:center; }
.pstat-n { font-family:var(--font1); font-size:1.1rem; font-weight:700; color:var(--p); }
.pstat-l { font-size:.7rem; color:var(--t3); }
.prof-pub-actions { margin-top:12px; }
.prof-pub-info { position:relative; }

/* ═══════════════════════════════════
   HERO BUTTONS WRAP
   ═══════════════════════════════════ */
.hero-btns { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }

/* ═══════════════════════════════════
   LIKE BUTTON
   ═══════════════════════════════════ */
.like-btn {
  display:flex; align-items:center; gap:4px;
  background:none; border:none; cursor:pointer;
  font-size:.78rem; color:var(--t3); padding:4px 8px;
  border-radius:20px; transition:var(--tr);
}
.like-btn:hover { background:rgba(239,68,68,.1); color:#ef4444; }
.like-btn.liked { color:#ef4444; background:rgba(239,68,68,.1); }
.like-btn.liked::before { content:''; }

/* ═══════════════════════════════════
   ADMIN JR BADGE + LANG SELECTOR
   ═══════════════════════════════════ */
.b-adminjr { background: rgba(245,158,11,.18); color: #f59e0b; border: 1px solid rgba(245,158,11,.35); }
#lang-nav { gap: 4px; align-items: center; }
