/* ═══════════════════════════════════════════════════════════════
   SIDEBAR-PINK.CSS — PODK888 Pink Theme v3
   All colors consumed from CSS variables — zero hard-coded hex
═══════════════════════════════════════════════════════════════ */
/* ─── CSS Variables (overridden by <style> in header_login.php) ─── */:root {
  --pk-bg:             #0d0010;
  --pk-header-bg:      linear-gradient(90deg,#c90066,#e91e8c,#c90066);
  --pk-sidebar-bg:     #1a0028;
  --pk-bottom-bg:      #0d0010;
  --pk-bottom-active:  #e91e8c;
  --pk-accent:         #e91e8c;
  --pk-accent2:        #ff4db2;
  --pk-gold:           #f6c844;
  --pk-text:           #ffffff;
  --pk-text-muted:     rgba(255,255,255,.6);
  --pk-border:         rgba(233,30,140,.3);
  --pk-card-bg:        rgba(255,255,255,.05);
  --pk-hdr-h:          52px;
  --pk-nav-h:          65px;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Global ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
*{box-sizing:border-box}

body, #main__content, #pkHomeWrap {
  background: #2a2a2a !important;
  color: var(--pk-text) !important;
  font-family: 'Prompt','Noto Sans Thai',Tahoma,sans-serif;
}

/* Kill old theme wrappers */
.bd-example-theme8,.theme8,.container.noindex,
.header-theme8,.x-menu-provider,.fixed-bottom,
.footer-menu-img-theme8,.footer-menu-span-theme8,
.app-footer {
  display: none !important;
}
.pk-inner-header-stub { display:none; }
.pk-wallet-card       { display:none !important; }
main.w-full.no-scrollbar { overflow: visible !important; height: auto !important; }

.pk-header {
  position: fixed;
  top:0;
  left:0;
  right:0;
  z-index: 1000;
  height: var(--pk-hdr-h);
  background: var(--pk-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  overflow: visible; /* allow logo to float below */
}
.pk-header-left,
.pk-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 7;
  min-width: 0;
}
.pk-header-right { justify-content: flex-end; }
.pk-header-center {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  height: 100%;
  padding-bottom: 0;
}
/* Logo floats down below header bottom ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â like podk888 */
.pk-header-logo {
  height: 68px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  position: relative;
  top: 10px; /* push below header edge */
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
}

/* Hamburger */
.pk-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  flex-shrink: 0;
}
.pk-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .28s;
}
.pk-hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.pk-hamburger.open span:nth-child(2){opacity:0; transform:scaleX(0)}
.pk-hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Balance chips ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â pill style like reference */
.pk-bal-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  padding: 4px 12px 4px 5px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  min-width: 80px;
  max-width: 130px;
}
.pk-bal-chip .pk-ico {
  font-size: 18px; flex-shrink: 0;
}
.pk-bal-chip2 {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  max-width: 130px;
}
.pk-coin-ico { font-size:18px; flex-shrink:0; }
.pk-refresh {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: transform .4s;
  display: inline-flex;
  align-items: center;
}
.pk-refresh:active { transform: rotate(360deg); }

/* Coin/icon images inside header chips */
.pk-ico-img {
  width: 24px; height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
/* Contact / 24hr button */
.pk-24btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none !important;
}
.pk-24btn span {
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.5px;
}
.pk-contact-ico {
  width: 24px; height: 24px;
  object-fit: contain;
  display: block;
}

.pk-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.pk-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ SIDEBAR v2 (Grid Design) ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
/* ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ Hamburger Menu Drawer (id=pkMenuDrawer, NOT conflicting with game nav #pkSidebar) ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ÃƒÂ¢Ã¢â‚¬ÂÃ¢â€šÂ¬ */
#pkMenuDrawer,
.pk-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  right: auto !important;
  z-index: 1100 !important;
  width: 320px !important;
  max-width: 92vw !important;
  min-width: 0 !important;
  background: linear-gradient(180deg,#4b4b4b,#202020);
  transform: translateX(-100%) !important;
  transition: transform .3s cubic-bezier(.4,0,.2,1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  gap: 0 !important;
  border-right: none !important;
  box-shadow: 4px 0 32px rgba(0,0,0,.5) !important;
}
#pkMenuDrawer.open,
.pk-sidebar.open { transform: translateX(0) !important; }

.pk-sb2-close {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.pk-sb2-close:hover { background: rgba(255,255,255,.3); }

/* Scrollable body */
.pk-sb2-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 62px 12px 20px;
  -webkit-overflow-scrolling: touch;
}
.pk-sb2-scroll::-webkit-scrollbar { width: 3px; }
.pk-sb2-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }

.pk-sb2-profile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
}
.pk-sb2-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.6);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-sb2-avatar img { width:100%; height:100%; object-fit:cover; }
.pk-sb2-info { flex: 1; min-width: 0; }
.pk-sb2-uname {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  word-break: break-all;
}
.pk-sb2-copy {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.pk-sb2-copy:hover { background: rgba(255,255,255,.35); }
.pk-sb2-stats { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.pk-sb2-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}
.pk-sb2-stat-val {
  color: #fff;
  font-weight: 700;
}

.pk-sb2-section-label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 14px 4px 8px;
  letter-spacing: .3px;
}

.pk-sb2-grid {
  display: grid;
  gap: 4px;
}
.pk-sb2-grid-3 {grid-template-columns: repeat(3, 1fr);}
.pk-sb2-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pk-sb2-grid-1 { grid-template-columns: 1fr; }

.pk-sb2-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(180deg,#4b4b4b,#202020);
  border-radius: 16px;
  padding: 14px 6px 12px;
  text-decoration: none !important;
  color: #222 !important;
  cursor: pointer;
  border: none;
  font-family: 'Prompt','Noto Sans Thai',sans-serif;
  transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: #000000;
  min-height: 80px;
}
.pk-sb2-item:hover, .pk-sb2-item:active {
  background: #fff !important;
  transform: scale(.97);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

/* Wide item (full row) */
.pk-sb2-item-wide {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  min-height: 54px;
}

.pk-sb2-item-logout {
  background: rgba(255,220,220,.92) !important;
}
.pk-sb2-item-logout .pk-sb2-item-lbl { color: #c00 !important; }

/* Icon inside card */
.pk-sb2-item-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(233,30,140,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  overflow: hidden;
}
.pk-sb2-item-ico img {
  width: 32px; height: 32px;
  object-fit: contain;
}

/* Wide items: smaller icon */
.pk-sb2-item-wide .pk-sb2-item-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
}
.pk-sb2-item-wide .pk-sb2-item-ico img {
  width: 26px; height: 26px;
}

/* Label */
.pk-sb2-item-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}
.pk-sb2-item-wide .pk-sb2-item-lbl {
  font-size: 13px;
  color: #ffffff;
}

/* Keep old classes so nothing breaks if referenced elsewhere */
.pk-sidebar-item { display:none!important; }
.pk-sidebar-head { display:none!important; }
.pk-sidebar-body { display:none!important; }

#pkHomeWrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--pk-bg);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  position: relative;
}
.pk-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(233,30,140,.08);
  border-bottom: 1px solid rgba(233,30,140,.18);
  padding: 5px 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.pk-marquee-icon { flex-shrink: 0; font-size: 13px; }
.pk-marquee-text {
  display: flex;
  white-space: nowrap;
  animation: pkMarq 22s linear infinite;
  width: max-content;
}
.pk-marquee-text span {
  padding-right: 60px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
@keyframes pkMarq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

