/* ============================================================
   ph365 log in - design-5d38.css
   Mobile-first VIP casino design (max-width: 430px baseline)
   Prefix: w5d38-
   ============================================================ */

:root {
  --w5d38-bg: #0C0C0C;
  --w5d38-bg-soft: #161616;
  --w5d38-bg-card: #1c1c1c;
  --w5d38-bg-elev: #232323;
  --w5d38-text: #F4A460;
  --w5d38-text-soft: #E8D5B8;
  --w5d38-muted: #9a8775;
  --w5d38-teal: #40E0D0;
  --w5d38-teal-soft: #B2DFDB;
  --w5d38-accent: #BF360C;
  --w5d38-gold: #F4A460;
  --w5d38-border: rgba(244, 164, 96, 0.18);
  --w5d38-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --w5d38-radius: 14px;
  --w5d38-radius-lg: 22px;
}

/* Font root: 62.5% => 1rem = 10px */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #1a1a1a 0%, var(--w5d38-bg) 60%);
  color: var(--w5d38-text-soft);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--w5d38-teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--w5d38-gold); }
img { max-width: 100%; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.w5d38-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.98) 0%, rgba(12,12,12,0.92) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w5d38-border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}
.w5d38-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
}
.w5d38-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.w5d38-brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--w5d38-accent), var(--w5d38-gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(191, 54, 12, 0.5);
  flex-shrink: 0;
}
.w5d38-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.w5d38-brand-title {
  font-size: 1.7rem; font-weight: 800; color: var(--w5d38-gold);
  letter-spacing: 0.3px; white-space: nowrap;
}
.w5d38-brand-sub { font-size: 1.05rem; color: var(--w5d38-teal); white-space: nowrap; }

.w5d38-header-actions { display: flex; align-items: center; gap: 8px; }
.w5d38-menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--w5d38-bg-elev); border: 1px solid var(--w5d38-border);
  color: var(--w5d38-text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 2rem;
}

.w5d38-btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.w5d38-btn:active { transform: scale(0.96); }
.w5d38-btn-login {
  background: transparent;
  color: var(--w5d38-teal-soft);
  border: 1.5px solid var(--w5d38-teal);
}
.w5d38-btn-login:hover { background: rgba(64,224,208,0.12); }
.w5d38-btn-register {
  background: linear-gradient(135deg, var(--w5d38-accent) 0%, var(--w5d38-gold) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(191,54,12,0.45);
}
.w5d38-btn-register:hover { box-shadow: 0 8px 22px rgba(244,164,96,0.55); }

/* ============================================================
   MOBILE MENU (slide-in)
   ============================================================ */
.w5d38-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.w5d38-menu-overlay.w5d38-open { opacity: 1; pointer-events: auto; }
.w5d38-mobile-menu {
  position: fixed; top: 0; right: -85%; right: clamp(-320px, -85%, -260px);
  width: 280px; max-width: 80%; height: 100vh; z-index: 9999;
  background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%);
  border-left: 1px solid var(--w5d38-border);
  padding: 22px 18px;
  overflow-y: auto;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
.w5d38-mobile-menu.w5d38-open { right: 0; }
.w5d38-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.w5d38-menu-head h3 { color: var(--w5d38-gold); font-size: 1.8rem; }
.w5d38-menu-close {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--w5d38-bg-elev); border: 1px solid var(--w5d38-border);
  color: var(--w5d38-text); font-size: 1.8rem; cursor: pointer;
}
.w5d38-menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  color: var(--w5d38-text-soft); font-size: 1.45rem; font-weight: 600;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.w5d38-menu-link:hover { background: rgba(244,164,96,0.08); border-color: var(--w5d38-border); color: var(--w5d38-gold); }
.w5d38-menu-link i { width: 22px; text-align: center; color: var(--w5d38-teal); }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.w5d38-main { max-width: 430px; margin: 0 auto; padding: 0 12px; }
main { padding-bottom: 90px; }
.w5d38-section { padding: 26px 0; }
.w5d38-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.w5d38-section-title h1,
.w5d38-section-title h2 {
  font-size: 1.9rem; font-weight: 800; color: var(--w5d38-gold);
  display: flex; align-items: center; gap: 8px;
}
.w5d38-section-title h1 i,
.w5d38-section-title h2 i { color: var(--w5d38-accent); font-size: 2.2rem; }
.w5d38-section-title a { font-size: 1.25rem; font-weight: 600; }

/* ============================================================
   HERO / CAROUSEL
   ============================================================ */
.w5d38-hero {
  position: relative;
  border-radius: var(--w5d38-radius-lg);
  overflow: hidden;
  margin: 14px 0 4px;
  box-shadow: var(--w5d38-shadow);
}
.w5d38-carousel { position: relative; }
.w5d38-slides { display: flex; scroll-snap-type: x mandatory; overflow-x: auto; scrollbar-width: none; }
.w5d38-slides::-webkit-scrollbar { display: none; }
.w5d38-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  position: relative; min-height: 220px;
}
.w5d38-slide img { width: 100%; height: 240px; object-fit: cover; }
.w5d38-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0.1) 30%, rgba(12,12,12,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 16px;
}
.w5d38-slide-tag {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--w5d38-accent), var(--w5d38-gold));
  color: #fff; padding: 4px 12px; border-radius: 999px;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
}
.w5d38-slide-title { color: #fff; font-size: 2.1rem; font-weight: 800; margin-bottom: 4px; }
.w5d38-slide-text { color: var(--w5d38-text-soft); font-size: 1.3rem; margin-bottom: 12px; }
.w5d38-slide-cta {
  align-self: flex-start;
  background: var(--w5d38-teal); color: #0C0C0C;
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 1.3rem;
}
.w5d38-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 4px;
}
.w5d38-carousel-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(244,164,96,0.3);
}
.w5d38-carousel-dots span.w5d38-active { background: var(--w5d38-gold); width: 18px; border-radius: 4px; }

/* ============================================================
   PROMO STRIP
   ============================================================ */
.w5d38-promo-strip {
  background: linear-gradient(135deg, rgba(191,54,12,0.18), rgba(244,164,96,0.12));
  border: 1px solid var(--w5d38-border);
  border-radius: var(--w5d38-radius);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 4px;
}
.w5d38-promo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--w5d38-accent), var(--w5d38-gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.2rem; flex-shrink: 0;
}
.w5d38-promo-text { flex: 1; min-width: 0; }
.w5d38-promo-text strong { color: var(--w5d38-gold); font-size: 1.45rem; display: block; }
.w5d38-promo-text span { color: var(--w5d38-text-soft); font-size: 1.2rem; }

/* ============================================================
   CATEGORY FILTER PILLS
   ============================================================ */
.w5d38-filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px;
  scrollbar-width: none;
}
.w5d38-filter-bar::-webkit-scrollbar { display: none; }
.w5d38-filter-pill {
  flex-shrink: 0;
  background: var(--w5d38-bg-card);
  border: 1px solid var(--w5d38-border);
  color: var(--w5d38-text-soft);
  padding: 7px 14px; border-radius: 999px;
  font-size: 1.25rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s ease;
}
.w5d38-filter-pill.w5d38-active,
.w5d38-filter-pill:hover {
  background: linear-gradient(135deg, var(--w5d38-accent), var(--w5d38-gold));
  color: #fff; border-color: transparent;
}

/* ============================================================
   GAME GRID + CARDS
   ============================================================ */
.w5d38-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w5d38-game-card {
  background: var(--w5d38-bg-card);
  border: 1px solid var(--w5d38-border);
  border-radius: var(--w5d38-radius);
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.w5d38-game-card:active { transform: scale(0.97); }
.w5d38-game-thumb {
  position: relative; aspect-ratio: 1 / 1; background: #0a0a0a;
}
.w5d38-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w5d38-game-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--w5d38-accent); color: #fff;
  padding: 2px 8px; border-radius: 6px;
  font-size: 1rem; font-weight: 700;
}
.w5d38-game-badge.w5d38-hot { background: linear-gradient(135deg, #FF4D4D, var(--w5d38-accent)); }
.w5d38-game-badge.w5d38-vip { background: linear-gradient(135deg, var(--w5d38-gold), #FFD700); color: #0C0C0C; }
.w5d38-game-body {
  padding: 8px 10px 10px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.w5d38-game-name {
  font-size: 1.2rem; font-weight: 700; color: var(--w5d38-text-soft);
  line-height: 1.25; min-height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.w5d38-game-play {
  background: linear-gradient(135deg, var(--w5d38-teal), #2bb8ad);
  color: #0C0C0C; text-align: center;
  padding: 6px 0; border-radius: 8px;
  font-size: 1.15rem; font-weight: 700;
}
.w5d38-game-card:hover .w5d38-game-play {
  background: linear-gradient(135deg, var(--w5d38-gold), var(--w5d38-accent));
  color: #fff;
}

/* ============================================================
   FEATURED / HIGHLIGHT BLOCKS
   ============================================================ */
.w5d38-feature {
  background: linear-gradient(135deg, #1a1a1a 0%, #161616 100%);
  border: 1px solid var(--w5d38-border);
  border-radius: var(--w5d38-radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.w5d38-feature::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,224,208,0.18), transparent 70%);
}
.w5d38-feature-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.w5d38-feature-head i { color: var(--w5d38-teal); font-size: 2.4rem; }
.w5d38-feature-head h3 { color: var(--w5d38-gold); font-size: 1.7rem; font-weight: 800; }
.w5d38-feature p { color: var(--w5d38-text-soft); font-size: 1.32rem; margin-bottom: 10px; }
.w5d38-feature-links { display: flex; flex-wrap: wrap; gap: 8px; }
.w5d38-feature-links a {
  background: rgba(64,224,208,0.1);
  border: 1px solid var(--w5d38-border);
  color: var(--w5d38-teal-soft);
  padding: 6px 12px; border-radius: 8px;
  font-size: 1.2rem; font-weight: 600;
}
.w5d38-feature-links a:hover { background: var(--w5d38-teal); color: #0C0C0C; }

/* ============================================================
   SEO LONGTEXT / FAQ / CONTENT
   ============================================================ */
.w5d38-content-block {
  background: var(--w5d38-bg-soft);
  border: 1px solid var(--w5d38-border);
  border-radius: var(--w5d38-radius-lg);
  padding: 20px 18px;
  margin-bottom: 14px;
}
.w5d38-content-block h2 {
  color: var(--w5d38-gold); font-size: 1.9rem; font-weight: 800;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.w5d38-content-block h2 i { color: var(--w5d38-accent); }
.w5d38-content-block h3 {
  color: var(--w5d38-teal); font-size: 1.55rem; font-weight: 700;
  margin: 14px 0 6px;
}
.w5d38-content-block p {
  color: var(--w5d38-text-soft); font-size: 1.35rem; margin-bottom: 10px;
}
.w5d38-content-block ul { padding-left: 20px; margin-bottom: 10px; }
.w5d38-content-block li { color: var(--w5d38-text-soft); font-size: 1.32rem; margin-bottom: 5px; }
.w5d38-content-block strong { color: var(--w5d38-gold); }
.w5d38-content-block a { color: var(--w5d38-teal); font-weight: 600; }

.w5d38-faq-item {
  border-bottom: 1px solid var(--w5d38-border);
  padding: 12px 0;
}
.w5d38-faq-item:last-child { border-bottom: none; }
.w5d38-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--w5d38-gold); font-size: 1.4rem;
  cursor: pointer; gap: 10px;
}
.w5d38-faq-q .w5d38-faq-icon { color: var(--w5d38-teal); font-size: 1.6rem; transition: transform .25s; }
.w5d38-faq-item.w5d38-open .w5d38-faq-icon { transform: rotate(45deg); }
.w5d38-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--w5d38-text-soft); font-size: 1.3rem;
}
.w5d38-faq-item.w5d38-open .w5d38-faq-a { max-height: 400px; padding-top: 10px; }

/* Inline promo text link */
.w5d38-promo-link {
  color: var(--w5d38-gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.w5d38-promo-link:hover { color: var(--w5d38-accent); }

/* CTA banner */
.w5d38-cta-banner {
  background: linear-gradient(135deg, var(--w5d38-accent) 0%, #8a2806 100%);
  border-radius: var(--w5d38-radius-lg);
  padding: 22px 18px; text-align: center;
  margin: 18px 0;
  box-shadow: 0 10px 24px rgba(191,54,12,0.35);
}
.w5d38-cta-banner h3 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.w5d38-cta-banner p { color: #fde6d4; font-size: 1.3rem; margin-bottom: 14px; }
.w5d38-cta-banner .w5d38-btn {
  background: #fff; color: var(--w5d38-accent);
  padding: 12px 28px; font-size: 1.5rem;
}

/* Stats row */
.w5d38-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 14px 0;
}
.w5d38-stat {
  background: var(--w5d38-bg-card);
  border: 1px solid var(--w5d38-border);
  border-radius: var(--w5d38-radius);
  padding: 12px 6px; text-align: center;
}
.w5d38-stat-num { color: var(--w5d38-teal); font-size: 1.9rem; font-weight: 800; }
.w5d38-stat-label { color: var(--w5d38-muted); font-size: 1.1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.w5d38-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--w5d38-border);
  padding: 26px 14px 20px;
  margin-top: 20px;
}
.w5d38-footer-inner { max-width: 430px; margin: 0 auto; }
.w5d38-footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.w5d38-footer-brand .w5d38-brand-logo { width: 34px; height: 34px; font-size: 1.4rem; }
.w5d38-footer-brand span { color: var(--w5d38-gold); font-size: 1.6rem; font-weight: 800; }
.w5d38-footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.w5d38-footer-col h4 {
  color: var(--w5d38-teal); font-size: 1.35rem; font-weight: 700; margin-bottom: 8px;
}
.w5d38-footer-col a {
  display: block; color: var(--w5d38-text-soft);
  font-size: 1.2rem; padding: 4px 0;
}
.w5d38-footer-col a:hover { color: var(--w5d38-gold); }
.w5d38-footer-pay {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.w5d38-footer-pay span {
  background: var(--w5d38-bg-card); border: 1px solid var(--w5d38-border);
  color: var(--w5d38-text-soft);
  padding: 4px 10px; border-radius: 6px; font-size: 1.1rem;
}
.w5d38-footer-bottom {
  border-top: 1px solid var(--w5d38-border);
  padding-top: 12px; text-align: center;
  color: var(--w5d38-muted); font-size: 1.15rem;
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.w5d38-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 62px; z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(8,8,8,0.98));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--w5d38-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.w5d38-bottom-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  color: var(--w5d38-muted); font-family: inherit;
  padding: 4px 2px;
  transition: color .2s ease;
}
.w5d38-bottom-btn i { font-size: 22px; }
.w5d38-bottom-btn .material-icons,
.w5d38-bottom-btn .bi { font-size: 22px; }
.w5d38-bottom-btn span { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }
.w5d38-bottom-btn:hover { color: var(--w5d38-text); }
.w5d38-bottom-btn.w5d38-active { color: var(--w5d38-gold); }
.w5d38-bottom-btn.w5d38-promo {
  color: var(--w5d38-teal);
}
.w5d38-bottom-btn.w5d38-promo i {
  background: linear-gradient(135deg, var(--w5d38-accent), var(--w5d38-gold));
  color: #fff; width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(191,54,12,0.5);
  border: 3px solid #0C0C0C;
}

/* ============================================================
   RESPONSIVE / DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  body { background: #0C0C0C; }
  .w5d38-header-inner,
  .w5d38-main,
  .w5d38-footer-inner { max-width: 760px; }
  .w5d38-game-grid { grid-template-columns: repeat(5, 1fr); }
  .w5d38-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .w5d38-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
}
@media (min-width: 769px) {
  .w5d38-bottom-nav { display: none; }
}
