/* =============================================================
   phtaya login app apk - layout-2e7f.css
   Mobile-first (max-width: 430px). All custom classes use uie7- prefix.
   Palette: #0000CD | #C9C9FF | #00BFFF | #333333 | #EEEEEE | #0000FF
   ============================================================= */

:root {
  --uie7-blue: #0000CD;
  --uie7-blue-bright: #0000FF;
  --uie7-cyan: #00BFFF;
  --uie7-lavender: #C9C9FF;
  --uie7-dark: #333333;
  --uie7-light: #EEEEEE;
  --uie7-bg: #0a0a3d;
  --uie7-bg-soft: #12125a;
  --uie7-card: #1a1a4d;
  --uie7-card-2: #20206a;
  --uie7-text: #f5f5ff;
  --uie7-muted: #b8b8e0;
  --uie7-gold: #ffd24a;
  --uie7-success: #2ecc71;
  --uie7-danger: #ff5b6e;
  --uie7-radius: 14px;
  --uie7-shadow: 0 6px 22px rgba(0, 0, 60, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1b1b6b 0%, var(--uie7-bg) 55%, #050524 100%);
  color: var(--uie7-text);
  line-height: 1.6;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--uie7-cyan); text-decoration: none; }
a:hover { color: var(--uie7-lavender); }
img { max-width: 100%; display: block; }

.uie7-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }

/* ---------- Header ---------- */
.uie7-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--uie7-blue) 0%, var(--uie7-blue-bright) 100%);
  border-bottom: 2px solid var(--uie7-cyan);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.uie7-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  max-width: 430px;
  margin: 0 auto;
}
.uie7-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.uie7-brand-logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--uie7-cyan);
  display: flex; align-items: center; justify-content: center;
  color: var(--uie7-blue-bright);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.7);
}
.uie7-brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uie7-brand-name span { color: var(--uie7-gold); }

.uie7-header-actions { display: flex; align-items: center; gap: 6px; }
.uie7-icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.uie7-icon-btn:hover { background: rgba(255, 255, 255, 0.3); }

.uie7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 30px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  color: #fff;
  min-height: 36px;
}
.uie7-btn:active { transform: scale(0.96); }
.uie7-btn-login {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--uie7-lavender);
}
.uie7-btn-register {
  background: linear-gradient(135deg, var(--uie7-gold) 0%, #ff9d2e 100%);
  color: var(--uie7-dark);
  box-shadow: 0 4px 14px rgba(255, 210, 74, 0.45);
}
.uie7-btn-primary {
  background: linear-gradient(135deg, var(--uie7-cyan) 0%, var(--uie7-blue-bright) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 191, 255, 0.5);
}

/* ---------- Mobile slide menu ---------- */
.uie7-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  z-index: 9998;
}
.uie7-menu-overlay.uie7-visible { opacity: 1; visibility: visible; }
.uie7-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: linear-gradient(180deg, #14145c 0%, #0a0a3d 100%);
  border-right: 2px solid var(--uie7-cyan);
  transform: translateX(-105%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 20px 16px;
  overflow-y: auto;
}
.uie7-mobile-menu.uie7-open { transform: translateX(0); }
.uie7-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.uie7-menu-head h3 { color: var(--uie7-gold); font-size: 1.7rem; }
.uie7-menu-close {
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}
.uie7-menu-section-title {
  color: var(--uie7-cyan);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.uie7-menu-list { list-style: none; }
.uie7-menu-list li { margin-bottom: 6px; }
.uie7-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--uie7-text);
  font-size: 1.4rem;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.uie7-menu-list a:hover { background: rgba(0, 191, 255, 0.18); color: #fff; }
.uie7-menu-list a i { width: 22px; text-align: center; color: var(--uie7-cyan); }

.uie7-menu-cta {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ---------- Hero / Carousel ---------- */
.uie7-hero {
  margin: 14px 0;
}
.uie7-hero-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 14px 12px;
  -webkit-overflow-scrolling: touch;
}
.uie7-hero-track::-webkit-scrollbar { display: none; }
.uie7-hero-slide {
  flex: 0 0 92%;
  scroll-snap-align: center;
  border-radius: var(--uie7-radius);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  background: linear-gradient(135deg, var(--uie7-blue) 0%, var(--uie7-cyan) 100%);
  box-shadow: var(--uie7-shadow);
  border: 1px solid rgba(201, 201, 255, 0.25);
}
.uie7-hero-slide .uie7-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.uie7-hero-content {
  position: relative;
  padding: 18px 16px;
  z-index: 2;
}
.uie7-hero-tag {
  display: inline-block;
  background: var(--uie7-gold);
  color: var(--uie7-dark);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.uie7-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.uie7-hero-desc {
  font-size: 1.3rem;
  color: var(--uie7-light);
  margin-bottom: 12px;
}
.uie7-hero-actions { display: flex; gap: 8px; }

/* ---------- Section heading ---------- */
.uie7-section {
  margin: 22px 0;
  padding: 0 14px;
}
.uie7-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.uie7-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.uie7-section-title i { color: var(--uie7-cyan); }
.uie7-section-link { font-size: 1.2rem; color: var(--uie7-cyan); font-weight: 600; }

/* ---------- Marquee bar ---------- */
.uie7-marquee {
  background: var(--uie7-card);
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 14px 14px;
  overflow: hidden;
  display: flex; align-items: center; gap: 10px;
}
.uie7-marquee i { color: var(--uie7-gold); }
.uie7-marquee-text {
  font-size: 1.2rem;
  color: var(--uie7-lavender);
  white-space: nowrap;
  animation: uie7scroll 22s linear infinite;
}
@keyframes uie7scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ---------- Tab bar ---------- */
.uie7-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 14px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.uie7-tabs::-webkit-scrollbar { display: none; }
.uie7-tab-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--uie7-card);
  color: var(--uie7-muted);
  border: 1px solid transparent;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.uie7-tab-btn.uie7-active {
  background: linear-gradient(135deg, var(--uie7-cyan), var(--uie7-blue-bright));
  color: #fff;
  border-color: var(--uie7-lavender);
  box-shadow: 0 3px 10px rgba(0, 191, 255, 0.4);
}

/* ---------- Game grid & cards ---------- */
.uie7-tab-panel { display: none; }
.uie7-tab-panel.uie7-active { display: block; animation: uie7fade 0.3s ease; }
@keyframes uie7fade { from { opacity: 0; } to { opacity: 1; } }

.uie7-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.uie7-game-card {
  background: var(--uie7-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 201, 255, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.uie7-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 191, 255, 0.3);
  border-color: var(--uie7-cyan);
}
.uie7-game-thumb {
  aspect-ratio: 1 / 1;
  background: #0d0d3a;
  position: relative;
  overflow: hidden;
}
.uie7-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uie7-game-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--uie7-danger);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.uie7-game-badge.uie7-hot { background: var(--uie7-gold); color: var(--uie7-dark); }
.uie7-game-name {
  padding: 6px 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--uie7-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uie7-game-play {
  display: block;
  text-align: center;
  padding: 6px;
  background: linear-gradient(135deg, var(--uie7-cyan), var(--uie7-blue-bright));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Horizontal lobby row */
.uie7-lobby-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 14px 12px;
  -webkit-overflow-scrolling: touch;
}
.uie7-lobby-row::-webkit-scrollbar { display: none; }
.uie7-lobby-row .uie7-game-card { flex: 0 0 120px; }

/* ---------- Featured cards ---------- */
.uie7-feature-card {
  background: linear-gradient(135deg, var(--uie7-card) 0%, var(--uie7-card-2) 100%);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: var(--uie7-radius);
  padding: 14px;
  margin: 0 14px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.uie7-feature-thumb {
  width: 80px; height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--uie7-cyan);
}
.uie7-feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uie7-feature-body { flex: 1; min-width: 0; }
.uie7-feature-title { font-size: 1.45rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.uie7-feature-meta { font-size: 1.15rem; color: var(--uie7-lavender); margin-bottom: 6px; }
.uie7-feature-body .uie7-btn { padding: 6px 14px; font-size: 1.15rem; }

/* ---------- Promo banner ---------- */
.uie7-promo-banner {
  background: linear-gradient(135deg, var(--uie7-blue-bright), var(--uie7-cyan));
  border-radius: var(--uie7-radius);
  padding: 18px 14px;
  margin: 16px 14px;
  text-align: center;
  border: 1px solid var(--uie7-lavender);
  box-shadow: var(--uie7-shadow);
}
.uie7-promo-banner h3 { color: var(--uie7-gold); font-size: 1.9rem; margin-bottom: 6px; }
.uie7-promo-banner p { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }

/* ---------- SEO content ---------- */
.uie7-content {
  background: rgba(20, 20, 60, 0.6);
  border-radius: var(--uie7-radius);
  padding: 16px 14px;
  margin: 16px 14px;
  border: 1px solid rgba(201, 201, 255, 0.15);
}
.uie7-content h2 {
  color: var(--uie7-cyan);
  font-size: 1.8rem;
  margin: 14px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 191, 255, 0.4);
}
.uie7-content h2:first-child { margin-top: 0; }
.uie7-content h3 { color: var(--uie7-gold); font-size: 1.45rem; margin: 12px 0 6px; }
.uie7-content p { color: var(--uie7-text); font-size: 1.35rem; margin-bottom: 10px; }
.uie7-content ul, .uie7-content ol { margin: 0 0 12px 20px; }
.uie7-content li { font-size: 1.3rem; margin-bottom: 6px; color: var(--uie7-light); }
.uie7-content strong { color: var(--uie7-gold); }
.uie7-content a { color: var(--uie7-cyan); text-decoration: underline; }

/* ---------- FAQ ---------- */
.uie7-faq-item {
  background: var(--uie7-card);
  border: 1px solid rgba(201, 201, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.uie7-faq-q {
  padding: 12px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.uie7-faq-q i { color: var(--uie7-cyan); transition: transform 0.2s; }
.uie7-faq-item.uie7-open .uie7-faq-q i { transform: rotate(180deg); }
.uie7-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: var(--uie7-light);
  font-size: 1.25rem;
}
.uie7-faq-item.uie7-open .uie7-faq-a {
  max-height: 600px;
  padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.uie7-footer {
  background: linear-gradient(180deg, #0a0a3d 0%, #050524 100%);
  border-top: 2px solid var(--uie7-cyan);
  padding: 22px 14px 30px;
  margin-top: 20px;
}
.uie7-footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.uie7-footer-brand .uie7-brand-logo { width: 40px; height: 40px; font-size: 1.7rem; }
.uie7-footer-brand h4 { color: #fff; font-size: 1.5rem; }
.uie7-footer-brand h4 span { color: var(--uie7-gold); }
.uie7-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.uie7-footer-col h5 {
  color: var(--uie7-cyan);
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.uie7-footer-col ul { list-style: none; }
.uie7-footer-col li { margin-bottom: 6px; }
.uie7-footer-col a {
  color: var(--uie7-muted);
  font-size: 1.2rem;
}
.uie7-footer-col a:hover { color: var(--uie7-cyan); }
.uie7-footer-bottom {
  border-top: 1px solid rgba(201, 201, 255, 0.15);
  padding-top: 12px;
  text-align: center;
  color: var(--uie7-muted);
  font-size: 1.15rem;
}
.uie7-footer-disclaimer {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--uie7-muted);
  line-height: 1.5;
}

/* ---------- Mobile bottom nav ---------- */
.uie7-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #14145c 0%, #050524 100%);
  border-top: 2px solid var(--uie7-cyan);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}
.uie7-bottom-nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--uie7-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.uie7-bottom-nav-btn i,
.uie7-bottom-nav-btn .material-symbols-outlined {
  font-size: 22px;
}
.uie7-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
}
.uie7-bottom-nav-btn.uie7-current,
.uie7-bottom-nav-btn:hover {
  color: var(--uie7-cyan);
}
.uie7-bottom-nav-btn.uie7-promo {
  color: var(--uie7-gold);
}
.uie7-bottom-nav-btn.uie7-promo span { color: var(--uie7-gold); }
.uie7-bottom-nav-btn.uie7-center {
  position: relative;
  top: -16px;
  background: linear-gradient(135deg, var(--uie7-gold), #ff9d2e);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid #fff;
  color: var(--uie7-dark);
  box-shadow: 0 4px 14px rgba(255, 210, 74, 0.6);
}
.uie7-bottom-nav-btn.uie7-center i { font-size: 24px; }
.uie7-bottom-nav-btn.uie7-center span { font-size: 0.9rem; }

/* ---------- Back to top ---------- */
.uie7-to-top {
  position: fixed;
  bottom: 76px;
  right: 16px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--uie7-cyan), var(--uie7-blue-bright));
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.uie7-to-top.uie7-visible { opacity: 1; visibility: visible; }

/* ---------- Misc ---------- */
.uie7-no-scroll { overflow: hidden; }
.uie7-text-center { text-align: center; }
.uie7-mt-10 { margin-top: 10px; }
.uie7-mb-10 { margin-bottom: 10px; }

.uie7-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px;
  margin: 14px 0;
}
.uie7-stat-card {
  background: var(--uie7-card);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid rgba(0, 191, 255, 0.2);
}
.uie7-stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--uie7-gold);
}
.uie7-stat-label {
  font-size: 1.05rem;
  color: var(--uie7-muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .uie7-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .uie7-game-grid { grid-template-columns: repeat(2, 1fr); }
  .uie7-footer-cols { grid-template-columns: 1fr; }
}
