/* Naisu Store - global styles (variables, header, footer, shared responsive) */
*{
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}
:root {
  --bg: #191a1b;
  --bg-soft: #1c1d1f;
  --border: #111;
  --text: #aaa;
  --text-soft: #a1a6b1;
  --primary: #f5b613;
  --header-h: 127px;
  --subnav-h: 58px;
  --nav-top: 8px;
}
body::-webkit-scrollbar {
  width: 0px;
}

body {
  margin: 0;
  background: #121212;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}

/* ================= HEADER WRAPPER ================= */
.header {
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(25,26,27,0.7);
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px 0 18px;
  column-gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: bold;
  font-size: 20px;
}

.logo img {
  height: 34px;
}

.search {
  position: relative;
  width: 100%;
  max-width: 1750px;
}

.search input {
  font-size: 14px;
  height: 44px;
  width: 100%;
  padding: 10px 14px 10px 44px;
  border-radius: 50px;
  border: 1px solid var(--text-soft);
  background: rgba(25,26,27,0.7);
  color: white;
}

.search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245,182,19,0.3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
}

.menu-separator {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.header-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.avatar-wrapper {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.avatar {
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--primary);
  color: black;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  box-sizing: border-box;
}

.header-bottom a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  padding-bottom: 8px;
  transition: color .3s ease;
}

.header-bottom a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width .3s ease;
}

.header-bottom a:hover::after,
.header-bottom a.active::after {
  width: 100%;
  box-shadow: 0 0 8px rgba(245, 182, 19, 0.6);
}

.header-bottom a:hover,
.header-bottom a.active {
  color: var(--primary);
}

.mobile-menu,
.mobile-search {
  display: none;
}

.mobile-search-panel {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(25,26,27,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  z-index: 9998;
}

.mobile-search-panel.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-search-box {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.mobile-search-box input {
  width: 100%;
  height: 48px;
  padding: 12px 14px 12px 44px;
  border-radius: 50px;
  border: 1px solid var(--text-soft);
  background: var(--bg-soft);
  color: var(--text);
}

.mobile-search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
}

/* ================= DROPDOWN ================= */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0px;
  margin-top: 4px;
  width: 180px;
  background: #1c1d1f;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 6px 0;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 99999;
}

.user-dropdown.show {
  opacity: 1;
  transform: translateY(-10px);
  pointer-events: auto;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.user-dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #f5b613;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  font-size: 13px;
  position: relative;
  transition: 0.2s;
}

.auth-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* ================= CONTAINER UTAMA ================= */
.container-flash,
.section-header,
.game-section,
.news-section,
.footer-container {
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* ================= FOOTER ================= */
.footer { color: #ccc; padding: 40px 60px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container { display: flex; justify-content: space-between; gap: 40px; }
.footer-left { flex: 1; display: flex; flex-direction: column; gap: 25px; }
.footer-cols { display: flex; gap: 50px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: #aaa; text-decoration: none; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: #f5b613; }
.footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-logo { height: 32px; }
.footer-copy p { font-size: 12px; color: #777; }
.footer-right { width: 260px; display: flex; flex-direction: column; gap: 15px; }
.footer-badge { background: linear-gradient(135deg, #1a1b1f, #111216); border-radius: 16px; padding: 20px; font-weight: 600; color: #ddd; }
.footer-dev p { font-size: 12px; color: #aaa; }
.footer-dev strong { display: block; margin-top: 1px; color: #fff; }
.footer-dev span { font-size: 11px; color: #666; display: block; margin-top: 5px; }

/* ================= RESPONSIVE (GLOBAL) ================= */
@media (min-width: 757px) {
  .menu-logo { display: none; }
  .menu-separator { display: none !important; }
  .header { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; }
  .header-top { padding: 18px 0; }
  .header-bottom { padding: 10px 0; }
  :root { --nav-top: calc(var(--header-h) + 8px); }
  body { padding-top: var(--nav-top); }
}

@media (max-width: 756px) {
  .mobile-menu, .mobile-search { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3) !important; background: rgba(28,29,31,0.6); color: white; }
  .search { display: none; }
  .logo { justify-self: center; }
  .logo img { height: 40px; }
  .header-bottom { position: fixed; top: 0; left: -280px; width: 240px; height: 100vh; background: linear-gradient(180deg,#141415,#0f0f10); padding: 20px 16px; flex-direction: column; align-items: flex-start; gap: 14px; transition: left .35s ease; z-index: 9999; }
  .menu-logo { width: 100%; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 12px; }
  .menu-logo img { height: 40px; }
  .header-bottom a { width: 100%; padding-left: 16px; }
  .header-bottom a::after { display: none; }
  .header-bottom.show { left: 0; }
  body.menu-open { overflow: hidden; }
  .header { position: relative; z-index: 9999; }
  .footer { padding: 30px 0; }
  .footer-container { flex-direction: column; gap: 30px; }
  .footer-cols { flex-wrap: wrap; gap: 24px 40px; }
  .footer-right { width: 100%; }
  .footer-left, .footer-right { display: contents; }
  .footer-cols { order: 1; }
  .footer-dev { order: 2; }
  .footer-badge { order: 3; }
  .footer-bottom { order: 4; }
  .auth-btn { width: 34px; height: 34px; padding: 0; gap: 0; justify-content: center; color: #fff; border: 2px solid rgba(255,255,255,0.3); background: rgba(28,29,31,0.6); }
  .auth-btn > span { display: none; }
}