/* =========================================
   MIKI UNIVERSE — CLEAN CSS (No More Chaos)
   ========================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

/* === RESET === */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}
html { scroll-behavior: smooth; }

/* === ICONS (inline SVG, replaces the old icon-font) === */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
  overflow: visible;
}

/* === BODY === */
body {
  background: #050505;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 120px;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(circle at 50% 8%, rgba(255,255,255,.04), transparent 34%), #050505;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.45) 1.2px, transparent 1.2px);
  background-size: 86px 86px;
  opacity: .14;
  z-index: -1;
}

/* === PARTICLES === */
.particle-bg {
  position: fixed; inset: 0;
  overflow: hidden; pointer-events: none; z-index: -1;
}
.particle-bg span {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  box-shadow: 0 0 18px rgba(255,255,255,.22);
  animation: floatParticle 9s linear infinite;
  opacity: .5;
}
.particle-bg span:nth-child(1){left:10%;top:80%;animation-duration:11s;animation-delay:0s;}
.particle-bg span:nth-child(2){left:22%;top:65%;animation-duration:13s;animation-delay:1s;width:5px;height:5px;}
.particle-bg span:nth-child(3){left:38%;top:88%;animation-duration:10s;animation-delay:2s;}
.particle-bg span:nth-child(4){left:55%;top:72%;animation-duration:12s;animation-delay:.5s;width:4px;height:4px;}
.particle-bg span:nth-child(5){left:70%;top:84%;animation-duration:14s;animation-delay:1.5s;}
.particle-bg span:nth-child(6){left:84%;top:68%;animation-duration:9s;animation-delay:2.5s;width:5px;height:5px;}
.particle-bg span:nth-child(7){left:92%;top:90%;animation-duration:15s;animation-delay:.8s;}
.particle-bg span:nth-child(8){left:48%;top:95%;animation-duration:16s;animation-delay:3s;width:4px;height:4px;}

@keyframes floatParticle {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: .5; }
  100% { transform: translateY(-115vh) scale(.55); opacity: 0; }
}

/* === HEADER === */
header {
  height: 72px; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 0; z-index: 999;
}
.logo-img {
  display: flex; align-items: center;
  text-decoration: none; height: 72px;
}
.logo-img img { height: 44px; width: auto; object-fit: contain; }
nav { display: flex; gap: 20px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
nav a {
  text-decoration: none; color: #aaa;
  font-size: 14px; font-weight: 600; transition: .25s;
}
nav a:hover { color: #fff; }

/* === LANGUAGE BUTTON === */
.lang-btn {
  width: 40px; height: 40px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,12,12,.88);
  color: #ccc; font-size: 17px; cursor: pointer;
  margin-left: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.22); }

.lang-menu {
  position: fixed; top: 76px; right: 22px;
  width: 200px; padding: 9px;
  border-radius: 18px;
  background: rgba(18,18,18,.97);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  z-index: 999999; display: none;
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}
.lang-menu.active { display: block; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 11px;
  border: 0; border-radius: 12px;
  background: transparent; color: #fff;
  font-size: 15px; text-align: left; cursor: pointer; transition: .2s;
}
.lang-menu button:hover { background: rgba(255,255,255,.07); }
.lang-menu span { font-size: 21px; }
.lang-check { margin-left: auto; display: none; font-size: 13px; }
body.lang-id .id-check,
body.lang-en .en-check,
body.lang-ms .ms-check { display: inline-block; }

/* === HERO === */
.hero {
  width: 100%; max-width: 760px;
  margin: 0 auto;
  padding: 22px 28px 32px;
  text-align: center;
}
.hero h1 {
  font-size: 54px; line-height: 1.06;
  font-weight: 700; letter-spacing: -2.4px;
  margin-bottom: 18px;
  animation: fadeUp .8s ease;
}
.hero p {
  max-width: 580px; margin: 0 auto;
  color: #a4a4b2; font-size: 18px; line-height: 1.65;
  animation: fadeUp 1s ease;
}
.buttons {
  margin-top: 38px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  position: relative; z-index: 200; pointer-events: auto;
}
.btn {
  width: min(520px, 100%);
  padding: 18px 24px; border-radius: 18px;
  font-size: 18px; font-weight: 600; color: #f0f0f0;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  text-decoration: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; z-index: 201; pointer-events: auto;
  transition: transform .22s, background .22s, border-color .22s, box-shadow .22s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,.35);
}
.btn:active { transform: scale(.98); }
.hero-action-btn { appearance: none; -webkit-appearance: none; }

/* Page hero for testi */
.page-hero { padding-top: 14px; }
.page-hero h1 { font-size: 48px; letter-spacing: -2px; }

/* === STATUS CARD === */
.status-card {
  width: min(560px, calc(100% - 44px));
  margin: 24px auto 0; padding: 20px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22,22,22,.94), rgba(7,7,7,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 42px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
}
.status-card::before {
  content: "";
  position: absolute; inset: -1px;
  background: radial-gradient(circle at 12% 20%, rgba(255,255,255,.06), transparent 38%);
  pointer-events: none;
}
.status-main { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.status-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #22c963;
  box-shadow: 0 0 0 7px rgba(34,201,99,.13), 0 0 22px rgba(34,201,99,.9);
  animation: statusPulse 1.8s infinite ease-in-out; flex-shrink: 0;
}
.status-card.closed .status-dot,
.status-card.closed .status-dot.closed {
  background: #888;
  box-shadow: 0 0 0 7px rgba(160,160,160,.10), 0 0 14px rgba(180,180,180,.4);
}
.status-main h3 { font-size: 21px; font-weight: 700; margin-bottom: 5px; }
.status-main p { font-size: 15px; color: #a7a7b4; line-height: 1.45; }
.status-meta {
  position: relative; margin-top: 14px;
  display: flex; gap: 9px; flex-wrap: nowrap;
  justify-content: center; align-items: center;
}
.status-meta span,
.status-slot, .status-hours {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #d7d7de; font-size: 13px;
}

@keyframes statusPulse { 0%,100%{transform:scale(1);}50%{transform:scale(.78);} }

/* === BANNER (Customer Royal) === */
.banner {
  width: min(560px, calc(100% - 44px));
  margin: 18px auto 44px; padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.055), transparent 36%),
    linear-gradient(180deg, rgba(18,18,18,.96), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 44px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.035);
  overflow: hidden; position: relative;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .18; pointer-events: none;
}
.banner h2 {
  position: relative; font-size: 27px; line-height: 1.12;
  letter-spacing: -.8px; color: #fff; margin-bottom: 9px;
}
.banner p { position: relative; font-size: 14px; line-height: 1.6; color: #a7a7b4; }

/* === SECTIONS === */
section {
  width: 100%; max-width: 1100px;
  margin: 64px auto; padding: 0 28px;
}
.section-title {
  font-size: 38px; font-weight: 700; text-align: center;
  letter-spacing: -1.4px; margin-bottom: 26px;
}
.section-subtitle {
  max-width: 560px; margin: -14px auto 24px;
  text-align: center; color: #a7a7b4; font-size: 15px; line-height: 1.6;
}
.section-badge {
  display: inline-block; margin-bottom: 10px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08);
  color: #ccc; font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
}

/* === TOP CUSTOMERS === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card {
  text-align: center;
  background: linear-gradient(180deg, rgba(18,18,18,.96), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 24px;
  box-shadow: 0 14px 36px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  animation: fadeUp .8s ease;
  -webkit-tap-highlight-color: transparent;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 48px rgba(0,0,0,.44);
}
.card:active { transform: scale(.985); }
.rank { font-size: 40px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.total { color: #a7a7b4; margin-bottom: 14px; font-size: 14px; }
.tag {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.055); color: #e0e0e0;
  border: 1px solid rgba(255,255,255,.08); font-size: 12px; font-weight: 700;
}

/* === SERVICE CARDS === */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.service {
  background: linear-gradient(180deg, rgba(18,18,18,.96), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 24px;
  transition: transform .22s, border-color .22s; animation: fadeUp .8s ease;
  -webkit-tap-highlight-color: transparent;
}
.service:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.16); }
.service:active { transform: scale(.985); }
.service h3 { color: #fff; font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.service p { line-height: 1.6; color: #aaa; font-size: 14px; }

/* === PREVIEW CC SLIDER === */
.preview-section {
  width: 100%; max-width: 1100px;
  margin: 64px auto; padding: 0 28px;
}
.preview-cc-card {
  width: 100%; max-width: 760px; margin: 0 auto; padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22,22,22,.94), rgba(7,7,7,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
  transition: border-color .22s;
  -webkit-tap-highlight-color: transparent;
}
.preview-cc-card:hover { border-color: rgba(255,255,255,.16); }
.preview-cc-slider {
  position: relative; width: 100%; aspect-ratio: 16/10;
  border-radius: 22px; overflow: hidden;
  background: #111; border: 1px solid rgba(255,255,255,.10);
  user-select: none;
}
.preview-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.preview-after-wrap {
  position: absolute; inset: 0; width: 100%; overflow: hidden;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.preview-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: rgba(255,255,255,.9);
  box-shadow: 10px 0 30px rgba(255,255,255,.12), -2px 0 8px rgba(255,255,255,.2);
  z-index: 4; pointer-events: none; will-change: left;
}
.preview-label {
  position: absolute; top: 14px; padding: 7px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  background: rgba(0,0,0,.58); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); color: #fff; z-index: 3;
}
.preview-label-left { left: 14px; }
.preview-label-right { right: 14px; background: rgba(255,255,255,.92); color: #000; }
.preview-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #000;
  display: grid; place-items: center; z-index: 5;
  box-shadow: 0 0 0 8px rgba(255,255,255,.10), 0 14px 34px rgba(0,0,0,.45);
  pointer-events: none; will-change: left;
}
.preview-handle .icon { font-size: 17px; color: #000; }
.preview-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; z-index: 6; touch-action: none;
}

/* === WHY ORDER === */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.trust-card {
  padding: 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(20,20,20,.96), rgba(8,8,8,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
  transition: transform .22s, border-color .22s;
  -webkit-tap-highlight-color: transparent;
}
.trust-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.16); }
.trust-card:active { transform: scale(.985); }
.trust-card .icon-box {
  width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff; margin-bottom: 16px;
}
.trust-card .icon-box .icon { font-size: 20px; }
.trust-card h3 { font-size: 19px; margin-bottom: 9px; font-weight: 700; }
.trust-card p { color: #a7a7b4; font-size: 14px; line-height: 1.6; }

/* === RECENT TIKTOK === */
.recent-mini-card {
  width: min(560px, calc(100% - 44px)); margin: 0 auto;
  padding: 14px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(22,22,22,.94), rgba(7,7,7,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
  display: grid; grid-template-columns: 114px minmax(0,1fr);
  gap: 14px; align-items: center; overflow: hidden;
  transition: border-color .22s;
  -webkit-tap-highlight-color: transparent;
}
.recent-mini-card:hover { border-color: rgba(255,255,255,.16); }
.recent-thumb {
  position: relative; width: 114px; aspect-ratio: 3/4;
  border-radius: 17px; overflow: hidden; display: block;
  background: #111; border: 1px solid rgba(255,255,255,.10); text-decoration: none;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.play-badge {
  position: absolute; inset: auto 8px 8px auto;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.play-badge .icon { font-size: 14px; }
.recent-content { min-width: 0; overflow: hidden; }
.recent-pill {
  display: inline-flex; padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
  color: #ddd; font-size: 10px; font-weight: 700; margin-bottom: 7px;
}
.recent-content h3 { font-size: 18px; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 5px; }
.recent-content p {
  color: #a7a7b4; font-size: 12px; line-height: 1.45; margin-bottom: 11px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px; margin-bottom: 11px; width: 100%;
}
.recent-stats span {
  min-width: 0; padding: 7px 4px; border-radius: 11px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: #fff; overflow: hidden;
}
.recent-stats .icon { flex-shrink: 0; font-size: 10px; color: #fff; }
.recent-stats b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.recent-watch {
  width: 100%; height: 41px; border-radius: 14px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08);
  color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  overflow: hidden; white-space: nowrap;
  transition: background .22s, transform .22s;
}
.recent-watch:hover { background: rgba(255,255,255,.085); transform: translateY(-2px); }
.recent-watch span { overflow: hidden; text-overflow: ellipsis; }

/* === SOCIAL SECTION === */
.nevency-social { max-width: 1100px; margin: 70px auto 110px; padding: 0 20px; }
.nevency-social-head { text-align: center; margin-bottom: 24px; }
.linkhub-grid {
  width: 100%; max-width: 540px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 13px;
}
.linkhub-card {
  padding: 20px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(16,16,16,.96), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 35px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
  color: #fff; text-decoration: none;
  display: flex; align-items: flex-start; gap: 16px;
  transition: transform .22s, border-color .22s;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.linkhub-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.14); }
.linkhub-icon {
  width: 52px; height: 52px; min-width: 52px; border-radius: 17px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
}
.linkhub-icon .icon { font-size: 22px; color: #fff; }
.linkhub-content { flex: 1; }
.linkhub-content > span {
  display: block; font-size: 10px; letter-spacing: 3px;
  color: #8d8d95; margin-bottom: 6px; font-weight: 700;
}
.linkhub-content h3 { font-size: 23px; line-height: 1.1; margin-bottom: 6px; letter-spacing: -.8px; }
.linkhub-content p { font-size: 13px; line-height: 1.5; color: #a3a3ad; margin-bottom: 13px; }
.linkhub-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.linkhub-buttons a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  color: #f0f0f0; font-size: 12px; text-decoration: none;
  cursor: pointer; pointer-events: auto;
  transition: background .2s, transform .2s;
}
.linkhub-buttons a:hover { background: rgba(255,255,255,.10); transform: translateY(-1px); }
.linkhub-buttons a:active { transform: scale(.97); }

/* === FOOTER === */
footer { text-align: center; padding: 40px 22px 20px; color: #555; font-size: 14px; }

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 38px); max-width: 620px; height: 64px;
  background: linear-gradient(180deg, rgba(24,24,24,.88), rgba(8,8,8,.94));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 32px;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 99999;
  box-shadow: 0 18px 55px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.045);
}
.nav-item {
  width: 20%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font-size: 11px; font-weight: 500;
  color: #a7a7b4; background: transparent; border: 0; cursor: pointer;
  border-radius: 0; transition: color .25s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item .icon { font-size: 19px; line-height: 1; color: inherit; }
.nav-item span { display: block; color: inherit; }
.nav-item:hover { color: #d0d0d0; }
.nav-item.active { color: #fff; }
.nav-item.active .icon { text-shadow: 0 0 14px rgba(255,255,255,.18); }
.nav-item.active span { font-weight: 700; }
.nav-item:active { transform: scale(.94); }
.home {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #e9e9e9);
  color: #000; display: grid; place-items: center;
  text-decoration: none; margin-top: -32px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 9px rgba(255,255,255,.08), 0 16px 35px rgba(0,0,0,.55);
  transition: transform .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.home .icon { font-size: 22px; color: #000; }
.home:hover { transform: translateY(-2px) scale(1.04); }
.home:active { transform: scale(.95); }

/* === POPUP === */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 22px; z-index: 999999;
}
.popup-overlay.active { display: flex; }
.popup-box {
  width: 100%; max-width: 480px; padding: 28px 28px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(22,22,22,.97), rgba(7,7,7,.99));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 70px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.035);
  position: relative;
}
.popup-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 16px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.popup-close:hover { background: rgba(255,255,255,.14); }
.popup-box h2 { font-size: 25px; margin-bottom: 8px; }
.popup-box p { font-size: 14px; line-height: 1.6; color: #a7a7b4; margin-bottom: 4px; padding-right: 24px; }
.clean-more-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.clean-more-card {
  display: flex; align-items: center; gap: 15px;
  padding: 17px; border-radius: 22px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.03);
  color: #fff; text-decoration: none;
  transition: transform .22s, background .22s, border-color .22s;
  -webkit-tap-highlight-color: transparent;
}
.clean-more-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.065); }
.clean-more-card:active { transform: scale(.98); }
.clean-more-card .icon-box {
  width: 50px; height: 50px; min-width: 50px; border-radius: 17px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  color: #fff;
}
.clean-more-card .icon-box .icon { font-size: 20px; }
.clean-more-card h3 { color: #fff; font-size: 20px; margin-bottom: 3px; }
.clean-more-card span { color: #a7a7b4; font-size: 13px; line-height: 1.4; }
.clean-more-card div { min-width: 0; }

/* === MIKI AI CHAT === */
.miki-ai-bubble {
  position: fixed; right: 18px; bottom: 96px;
  height: 42px; padding: 0 14px; border-radius: 22px;
  background: rgba(12,12,12,.90); color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  z-index: 99998; backdrop-filter: blur(14px);
  transition: transform .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.miki-ai-bubble .icon { font-size: 18px; color: #fff; }
.miki-ai-bubble span { color: #fff; }
.miki-ai-bubble:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); }

.miki-ai-panel {
  position: fixed; left: 50%; bottom: 96px;
  transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 600px;
  height: min(600px, 72vh); border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 100%, rgba(255,255,255,.04), transparent 42%),
    rgba(9,9,9,.97);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0,0,0,.75);
  z-index: 999999; display: none;
  overflow: hidden; flex-direction: column;
}
.miki-ai-panel.active { display: flex; }

.miki-ai-header {
  height: 68px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.miki-ai-title { display: flex; align-items: center; gap: 11px; }
.miki-ai-title .icon { font-size: 21px; color: #fff; }
.miki-ai-title strong { font-size: 18px; color: #fff; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
  color: #fff; font-size: 11px; font-weight: 800;
}
.verified-badge .icon { font-size: 10px; color: #fff; }
.miki-ai-header-actions { display: flex; gap: 8px; }
.miki-ai-header-actions button {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.07); color: #fff;
  font-size: 15px; cursor: pointer; transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.miki-ai-header-actions button:hover { background: rgba(255,255,255,.13); }

/* Messages container */
.miki-ai-messages { flex: 1; padding: 18px; overflow-y: auto; }

/* Question buttons (V67 style) */
.miki-ai-question {
  width: 100%; text-align: left;
  padding: 13px 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 14px; cursor: pointer;
  margin-bottom: 9px; display: block;
  transition: background .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.miki-ai-question:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.miki-ai-question:active { transform: scale(.98); }

/* Message bubbles */
.miki-ai-msg {
  padding: 12px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.55; margin-bottom: 11px;
  max-width: 90%; width: fit-content;
}
.miki-ai-msg.bot {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); color: #ddd;
}
.miki-ai-msg.user {
  background: rgba(255,255,255,.10); color: #fff;
  margin-left: auto; font-weight: 600;
}

/* Typing indicator */
.miki-ai-typing {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 15px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  width: fit-content; margin-bottom: 11px;
}
.miki-ai-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  animation: typingPulse 1.2s infinite ease-in-out;
}
.miki-ai-typing span:nth-child(2) { animation-delay: .2s; }
.miki-ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingPulse { 0%,100%{opacity:.3;transform:scale(.8);}50%{opacity:1;transform:scale(1);} }

.miki-ai-wa {
  height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.055); border-top: 1px solid rgba(255,255,255,.08);
  color: #fff; text-decoration: none; font-size: 16px; font-weight: 700;
  flex-shrink: 0; transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.miki-ai-wa .icon { font-size: 20px; }
.miki-ai-wa:hover { background: rgba(255,255,255,.085); }

/* === TESTI PAGE === */
.testi-hero-clean { padding-bottom: 14px; }
.single-testi-section {
  width: 100%; max-width: 960px;
  margin: 22px auto 120px; padding: 0 22px;
}
.single-testi-grid { display: flex; flex-direction: column; gap: 15px; }
.single-testi-card {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 18px; align-items: center;
  padding: 18px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(18,18,18,.96), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 35px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .22s, border-color .22s;
  -webkit-tap-highlight-color: transparent;
}
.single-testi-card:hover { border-color: rgba(255,255,255,.16); transform: translateY(-2px); }
.single-testi-card:active { transform: scale(.987); }
.single-testi-media {
  width: 150px; aspect-ratio: 3/4;
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); background: #0e0e0e;
}
.single-testi-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-testi-content { min-width: 0; }
.single-testi-top {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.single-testi-type {
  font-size: 10px; letter-spacing: 2.5px; font-weight: 800; color: #999aa3;
}
.success-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(34,197,94,.12); color: #22c55e;
  border: 1px solid rgba(34,197,94,.26); font-size: 11px; font-weight: 800;
}
.success-badge .icon { color: #22c55e; font-size: 10px; }
.single-testi-content h2 {
  font-size: 23px; line-height: 1.12; letter-spacing: -.8px;
  margin-bottom: 8px; color: #fff;
}
.single-testi-content p { color: #a7a7b4; font-size: 13px; line-height: 1.55; margin-bottom: 13px; }
.single-testi-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.single-testi-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
  color: #d8d8df; font-size: 12px;
}
.single-testi-meta .icon { color: #fff; }

/* === ANIMATIONS === */
@keyframes fadeUp { from{opacity:0;transform:translateY(30px);}to{opacity:1;transform:translateY(0);} }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  header { padding: 0 18px; }
  .logo-img img { height: 38px; }
  nav { display: none; }

  .hero { padding: 14px 22px 26px; }
  .hero h1 { font-size: 42px; letter-spacing: -2px; }
  .hero p { font-size: 16px; }
  .buttons { margin-top: 30px; gap: 13px; }
  .btn { width: calc(100vw - 64px); padding: 17px 18px; font-size: 17px; border-radius: 16px; }

  .status-card { width: calc(100% - 44px); padding: 18px; border-radius: 23px; margin-top: 20px; }
  .status-main h3 { font-size: 18px; }
  .status-main p { font-size: 13.5px; }
  .status-meta { gap: 8px; }

  .banner { width: calc(100% - 44px); margin: 14px auto 36px; padding: 20px; border-radius: 22px; }
  .banner h2 { font-size: 23px; }

  section { padding: 0 20px; margin: 52px auto; }
  .section-title { font-size: 30px; }

  .preview-section { padding: 0 20px; margin: 52px auto; }
  .preview-cc-card { padding: 12px; border-radius: 22px; }
  .preview-cc-slider { aspect-ratio: 9/14; border-radius: 18px; }
  .preview-handle { width: 44px; height: 44px; }

  .recent-mini-card { width: calc(100% - 38px); grid-template-columns: 94px minmax(0,1fr); gap: 11px; padding: 12px; border-radius: 21px; }
  .recent-thumb { width: 94px; border-radius: 15px; }
  .recent-content h3 { font-size: 16px; }

  .nevency-social { padding: 0 16px; margin: 52px auto 100px; }
  .linkhub-card { padding: 17px; border-radius: 22px; gap: 13px; }
  .linkhub-content h3 { font-size: 20px; }

  .bottom-nav { width: calc(100% - 40px); height: 62px; border-radius: 31px; bottom: 14px; }
  .nav-item { font-size: 11px; }
  .nav-item .icon { font-size: 18px; }
  .home { width: 55px; height: 55px; margin-top: -29px; }

  .miki-ai-bubble { right: 16px; bottom: 90px; height: 40px; padding: 0 12px; font-size: 13px; }
  .miki-ai-bubble .icon { font-size: 16px; }
  .miki-ai-panel { bottom: 90px; width: calc(100% - 26px); height: min(580px, 70vh); border-radius: 24px; }

  .popup-box { border-radius: 26px; padding: 24px 22px; }
  .clean-more-card { padding: 15px; border-radius: 20px; }

  .single-testi-section { padding: 0 18px; margin-top: 18px; }
  .single-testi-card { grid-template-columns: 88px 1fr; gap: 12px; padding: 13px; border-radius: 22px; }
  .single-testi-media { width: 88px; border-radius: 15px; }
  .single-testi-content h2 { font-size: 18px; }
  .single-testi-content p { font-size: 12px; }
  .single-testi-type { font-size: 9px; letter-spacing: 1.8px; }

  .lang-menu { top: 74px; right: 18px; }
}

/* ============================================================
   AUTH / PROFILE / ADMIN — login, akun, dan database per-user
   ============================================================ */
.account-btn .icon { font-size: 19px; }
.account-btn.has-avatar { padding: 0; overflow: hidden; }
.account-btn-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  display: block;
}

.auth-box, .profile-box, .admin-box { text-align: left; }

.auth-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 18px 0 16px; padding: 4px;
  background: rgba(255,255,255,.04); border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.auth-tab {
  padding: 9px 4px; border-radius: 11px; border: none; cursor: pointer;
  background: transparent; color: #9a9aa6; font-size: 12.5px; font-weight: 700;
  transition: background .2s, color .2s;
}
.auth-tab.active { background: rgba(255,255,255,.12); color: #fff; }

.auth-panel { display: none; flex-direction: column; gap: 12px; }
.auth-panel.active { display: flex; }

.auth-subtabs { display: flex; gap: 8px; margin-bottom: 6px; }
.auth-subtab {
  flex: 1; padding: 9px; border-radius: 11px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: #a7a7b4; font-size: 13px; font-weight: 700; cursor: pointer;
}
.auth-subtab.active { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.18); }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12px; color: #9a9aa6; font-weight: 700; }
.auth-field input {
  width: 100%; padding: 13px 14px; border-radius: 13px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  color: #fff; font-size: 14.5px; outline: none;
}
.auth-field input:focus { border-color: rgba(255,255,255,.3); }
.auth-field input::placeholder { color: #6f6f78; }

.auth-hint { font-size: 12.5px; color: #8a8a94; line-height: 1.5; padding-right: 0; margin: 0; }
.auth-error {
  font-size: 12.5px; color: #ff6b6b; margin: 0; min-height: 0;
}
.auth-error:empty { display: none; }

.auth-google-btn, .auth-guest-btn, .auth-submit-btn {
  width: 100%; padding: 14px; font-size: 15px;
}

/* ---- profile modal ---- */
.profile-avatar-wrap {
  width: 92px; height: 92px; margin: 4px auto 14px; position: relative;
}
.profile-avatar, .profile-avatar-fallback {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; display: block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.profile-avatar-fallback { font-size: 92px; padding: 18px; box-sizing: border-box; color: #777; }
.profile-avatar-edit {
  position: absolute; right: -2px; bottom: -2px;
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #0c0c0c;
  background: #fff; color: #000; display: grid; place-items: center; cursor: pointer;
}
.profile-avatar-edit .icon { font-size: 14px; }

.profile-title-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: fit-content; margin: 0 auto 10px; padding: 6px 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .3px;
  color: #2b1c00;
  background: linear-gradient(135deg, #ffe27a, #f6b93b);
  box-shadow: 0 6px 16px rgba(246,185,59,.28);
}
.profile-title-badge .icon { font-size: 13px; }

.profile-name {
  text-align: center; font-size: 22px; margin-bottom: 4px;
}
.profile-name-input {
  width: 100%; text-align: center; font-size: 19px; font-weight: 800;
  padding: 10px 14px; border-radius: 13px; margin-bottom: 4px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.profile-meta {
  text-align: center; font-size: 13px; color: #8a8a94; margin-bottom: 10px; padding-right: 0;
}
.profile-role-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: fit-content; margin: 0 auto 10px; padding: 5px 12px;
  border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.profile-role-badge .icon { font-size: 11px; }

.profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.profile-edit-btn, .profile-save-btn, .profile-admin-btn, .profile-logout-btn {
  width: 100%; padding: 13px; font-size: 14.5px;
}
.profile-logout-btn { background: rgba(255,80,80,.08); border-color: rgba(255,80,80,.18); color: #ff8a8a; }

/* ---- admin modal ---- */
.admin-result { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.admin-result-user { display: flex; align-items: center; gap: 12px; }
.admin-result-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.admin-result-name { font-weight: 800; font-size: 15px; color: #fff; }
.admin-result-email { font-size: 12.5px; color: #8a8a94; }
.admin-search-btn, .admin-save-btn { width: 100%; padding: 13px; font-size: 14.5px; margin-top: 4px; }
.admin-role-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 6px;
}
#adminRoleStatus { font-size: 13px; color: #a7a7b4; font-weight: 700; }
.admin-role-btn { width: auto; padding: 9px 16px; font-size: 13px; }

@media (max-width: 480px) {
  .auth-tabs { grid-template-columns: repeat(2, 1fr); }
  .profile-avatar-wrap { width: 80px; height: 80px; }
  .profile-avatar, .profile-avatar-fallback { width: 80px; height: 80px; }
  .profile-avatar-fallback { font-size: 80px; }
}


/* ============================================================
   DESKTOP / LAYAR LEBAR — rapihin elemen yang didesain mobile-app-style
   ============================================================ */
.desktop-only-link { display: none; }

@media (min-width: 901px) {
  /* bottom-nav ala app HP nggak natural di desktop, nav atas udah cukup */
  .bottom-nav { display: none; }

  /* nggak perlu reserve jarak buat bottom-nav lagi */
  body { padding-bottom: 40px; }

  /* chat bubble turun ke posisi standar pojok kanan bawah (sebelumnya
     digeser naik buat ngasih jarak ke bottom-nav) */
  .miki-ai-bubble { bottom: 24px; }

  /* begitu bottom-nav (yang ada tombol "More") disembunyikan, link
     Testi/Preset/dll dipindah ke nav atas biar tetap bisa diakses */
  .desktop-only-link { display: inline; }
}

/* nav atas dipaksa PRESISI di tengah header pakai grid 3 kolom simetris,
   nggak ngandelin space-between yang gampang miring kalau logo & tombol
   kanan beda lebar */
@media (min-width: 601px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 16px;
  }
  header .logo-img { justify-self: start; }
  header nav { justify-self: center; }
  header .header-actions { justify-self: end; }
}

/* ============================================================
   PRESET & KONTEN — composer admin + feed publik
   ============================================================ */
.preset-composer {
  width: 100%; max-width: 640px; margin: 0 auto 18px; padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22,22,22,.96), rgba(7,7,7,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 35px rgba(0,0,0,.42);
}
.preset-composer h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; margin-bottom: 14px; color: #fff;
}
.preset-composer h3 .icon { font-size: 16px; color: #f6b93b; }

.preset-caption-input {
  width: 100%; padding: 13px 14px; border-radius: 15px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  color: #fff; font-size: 14px; outline: none; resize: vertical;
  font-family: inherit; margin-bottom: 12px;
}
.preset-caption-input:focus { border-color: rgba(255,255,255,.3); }
.preset-caption-input::placeholder { color: #6f6f78; }

.preset-photo-area {
  width: 100%; min-height: 110px; border-radius: 16px;
  border: 1.5px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.025);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; margin-bottom: 12px;
}
.preset-photo-area img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
#presetPhotoHint {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #8a8a94; font-size: 12.5px; padding: 18px;
}
#presetPhotoHint .icon { font-size: 24px; color: #6f6f78; }

.preset-submit-btn { width: 100%; padding: 13px; font-size: 14.5px; }

/* --- feed publik --- */
.preset-feed-section {
  width: 100%; max-width: 640px; margin: 0 auto 120px; padding: 0 22px;
}
.preset-feed-list { display: flex; flex-direction: column; gap: 14px; }
.preset-feed-empty {
  text-align: center; color: #8a8a94; font-size: 13.5px; padding: 40px 0;
}

.preset-card {
  padding: 18px 20px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(18,18,18,.96), rgba(5,5,5,.99));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.38);
  position: relative;
}
.preset-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.preset-card-head img, .preset-author-fallback {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.preset-author-fallback { display: grid; place-items: center; color: #777; }
.preset-author-fallback .icon { font-size: 20px; }
.preset-author-name { font-weight: 700; font-size: 14px; color: #fff; }
.preset-card-date { font-size: 11.5px; color: #8a8a94; margin-top: 1px; }

.preset-card-caption {
  font-size: 14px; line-height: 1.6; color: #d4d4dc;
  white-space: pre-wrap; word-break: break-word; margin: 0 0 12px;
}
.preset-card-caption a { color: #7fb8ff; text-decoration: underline; }
.preset-card-caption:last-child { margin-bottom: 0; }

.preset-card-photo {
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.07);
}
.preset-card-photo img { width: 100%; display: block; }
.preset-card-photo:last-child { margin-bottom: 0; }

.preset-admin-btns { margin-left: auto; display: flex; gap: 8px; }
.preset-edit-btn-icon, .preset-delete-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.preset-edit-btn-icon {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #ccc;
}
.preset-delete-btn {
  background: rgba(255,80,80,.10); border: 1px solid rgba(255,80,80,.2); color: #ff8a8a;
}
.preset-edit-btn-icon .icon, .preset-delete-btn .icon { font-size: 13px; }

.preset-edit-area { display: none; margin-bottom: 12px; }
.preset-card.editing .preset-view-area { display: none; }
.preset-card.editing .preset-edit-area { display: block; }

.preset-edit-input {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 13.5px; outline: none; resize: vertical;
  font-family: inherit; margin-bottom: 8px;
}
.preset-edit-input:focus { border-color: rgba(255,255,255,.3); }
.preset-edit-actions { display: flex; gap: 10px; }
.preset-edit-cancel-btn, .preset-edit-save-btn {
  flex: 1; padding: 11px; font-size: 13.5px;
}
.preset-edit-cancel-btn { background: rgba(255,255,255,.04); }

@media (max-width: 480px) {
  .preset-composer { border-radius: 20px; padding: 16px 18px; }
}

/* ============================================================
   HD IMAGE PAGE — /hdimage
   ============================================================ */
.hdpage-section {
  width: 100%; max-width: 560px; margin: 0 auto 120px; padding: 0 22px;
}

/* --- login gate --- */
.hdpage-gate {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 36px 16px 8px; gap: 8px;
}
.hdpage-gate .icon { font-size: 42px; color: #6f6f78; }
.hdpage-gate h3 { font-size: 19px; color: #fff; margin: 0; }
.hdpage-gate p { font-size: 13.5px; color: #a7a7b4; margin: 0 0 10px; line-height: 1.5; }
.hdpage-login-btn { width: 100%; padding: 13px; font-size: 14.5px; }

/* --- upload area --- */
.hdpage-upload-area {
  width: 100%; min-height: 200px; border-radius: 22px;
  border: 1.5px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.025);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; margin-bottom: 16px;
}
.hdpage-upload-area img { width: 100%; display: block; }
#hdUploadHint {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #8a8a94; font-size: 13px; padding: 30px;
}
#hdUploadHint .icon { font-size: 32px; color: #6f6f78; }

/* --- server picker --- */
.hdpage-server-label { font-size: 12.5px; color: #a7a7b4; margin-bottom: 10px; }
.hdpage-server-btns { display: flex; gap: 10px; margin-bottom: 14px; }
.hdpage-server-btn {
  flex: 1; padding: 12px 8px; font-size: 13.5px; width: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hdpage-server-btn .icon { font-size: 13px; color: #f6b93b; }
.hdpage-server-btn:disabled { opacity: .45; cursor: not-allowed; }

/* --- status (loading) --- */
.hdpage-status {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px; font-size: 13.5px; color: #d4d4dc;
}
.hdpage-spinner {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  animation: hdSpin .7s linear infinite;
}
@keyframes hdSpin { to { transform: rotate(360deg); } }

/* --- result --- */
.hdpage-result {
  display: flex; flex-direction: column; gap: 12px; margin-top: 14px;
}
.hdpage-result-label { font-size: 12.5px; color: #a7a7b4; margin: 0; }
.hdpage-result img {
  width: 100%; border-radius: 18px; border: 1px solid rgba(255,255,255,.08);
  display: block;
}
.hdpage-download-btn, .hdpage-retry-btn { width: 100%; padding: 13px; font-size: 14.5px; }
.hdpage-retry-btn {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10);
}

@media (max-width: 480px) {
  .hdpage-server-btns { flex-direction: column; }
}
