/**
 * nk77.css - Core stylesheet for nk77.cfd gaming website
 * All classes use prefix "uibf-" for namespace isolation
 * Color palette: #0F0F23 | #ADD8E6 | #DEE2E6 | #880E4F | #AFEEEE
 */

/* CSS Variables */
:root {
  --uibf-primary: #ADD8E6;
  --uibf-bg: #0F0F23;
  --uibf-bg-light: #1a1a3e;
  --uibf-bg-card: #161638;
  --uibf-text: #DEE2E6;
  --uibf-text-muted: #9ca3af;
  --uibf-accent: #880E4F;
  --uibf-accent-light: #a83271;
  --uibf-highlight: #AFEEEE;
  --uibf-border: #2a2a5a;
  --uibf-success: #10b981;
  --uibf-warning: #f59e0b;
  --uibf-font-size-base: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--uibf-font-size-base); scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--uibf-bg);
  color: var(--uibf-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Container & Layout */
.uibf-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.uibf-wrapper { padding: 1rem 0; }
.uibf-section { padding: 2rem 0; border-bottom: 1px solid var(--uibf-border); }
.uibf-section:last-child { border-bottom: none; }

/* Typography */
.uibf-h1 { font-size: 2.2rem; font-weight: 700; color: var(--uibf-primary); line-height: 1.3; margin-bottom: 1rem; }
.uibf-h2 { font-size: 1.8rem; font-weight: 600; color: var(--uibf-primary); line-height: 1.3; margin-bottom: 0.8rem; }
.uibf-h3 { font-size: 1.5rem; font-weight: 600; color: var(--uibf-highlight); line-height: 1.4; margin-bottom: 0.6rem; }
.uibf-p { font-size: 1.4rem; line-height: 1.5; color: var(--uibf-text); margin-bottom: 0.8rem; }
.uibf-text-muted { color: var(--uibf-text-muted); }
.uibf-text-accent { color: var(--uibf-accent-light); }
.uibf-text-highlight { color: var(--uibf-highlight); }

/* Links */
a { color: var(--uibf-primary); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--uibf-highlight); }
.uibf-internal-link { color: var(--uibf-highlight); text-decoration: underline; text-underline-offset: 2px; }
.uibf-internal-link:hover { color: var(--uibf-primary); }

/* Header */
.uibf-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #0F0F23 0%, #161638 100%);
  border-bottom: 1px solid var(--uibf-border);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.uibf-header-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.uibf-header-logo img { width: 28px; height: 28px; border-radius: 6px; }
.uibf-header-logo span { font-size: 1.6rem; font-weight: 700; color: var(--uibf-primary); }
.uibf-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.uibf-header-menu-btn {
  background: none; border: none; color: var(--uibf-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Buttons */
.uibf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: 6px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; min-height: 36px;
}
.uibf-btn-register {
  background: linear-gradient(135deg, var(--uibf-accent) 0%, var(--uibf-accent-light) 100%);
  color: #fff;
}
.uibf-btn-register:hover { opacity: 0.9; transform: scale(1.02); }
.uibf-btn-login {
  background: transparent; color: var(--uibf-primary);
  border: 1px solid var(--uibf-primary);
}
.uibf-btn-login:hover { background: rgba(173, 216, 230, 0.1); }
.uibf-btn-promo {
  background: linear-gradient(135deg, var(--uibf-accent) 0%, #c2185b 100%);
  color: #fff; padding: 1rem 2rem; font-size: 1.4rem; border-radius: 8px;
  width: 100%; text-align: center;
}
.uibf-btn-promo:hover { opacity: 0.9; transform: scale(1.02); }

/* Mobile Menu Overlay */
.uibf-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}

/* Mobile Side Menu */
.uibf-mobile-menu {
  position: fixed; top: 0; left: 0; width: 75%; max-width: 300px;
  height: 100%; background: var(--uibf-bg); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
  border-right: 1px solid var(--uibf-border);
}
.uibf-mobile-menu-title { font-size: 1.8rem; font-weight: 700; color: var(--uibf-primary); margin-bottom: 2rem; }
.uibf-mobile-menu a {
  display: block; padding: 0.8rem 0; font-size: 1.4rem;
  color: var(--uibf-text); border-bottom: 1px solid var(--uibf-border);
}
.uibf-mobile-menu a:hover { color: var(--uibf-primary); }

/* Banner Carousel */
.uibf-carousel { position: relative; overflow: hidden; border-radius: 8px; margin-top: 56px; }
.uibf-slide { display: none; width: 100%; transition: opacity 0.5s; cursor: pointer; }
.uibf-slide img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }

/* Game Grid */
.uibf-game-section { margin-bottom: 2rem; }
.uibf-game-section-title {
  font-size: 1.6rem; font-weight: 600; color: var(--uibf-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--uibf-accent);
}
.uibf-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem; margin-bottom: 1rem;
}
.uibf-game-item {
  text-align: center; cursor: pointer; padding: 0.4rem;
  border-radius: 8px; background: var(--uibf-bg-card);
  transition: transform 0.2s; border: 1px solid transparent;
}
.uibf-game-item:hover { transform: scale(1.03); border-color: var(--uibf-border); }
.uibf-game-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; margin-bottom: 0.3rem; }
.uibf-game-item span { font-size: 1.1rem; color: var(--uibf-text-muted); display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cards */
.uibf-card {
  background: var(--uibf-bg-card); border: 1px solid var(--uibf-border);
  border-radius: 10px; padding: 1.2rem; margin-bottom: 1rem;
}
.uibf-card-title { font-size: 1.5rem; font-weight: 600; color: var(--uibf-primary); margin-bottom: 0.8rem; }

/* Info List */
.uibf-info-list { list-style: none; padding: 0; }
.uibf-info-list li {
  padding: 0.6rem 0; border-bottom: 1px solid var(--uibf-border);
  font-size: 1.3rem; color: var(--uibf-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.uibf-info-list li:last-child { border-bottom: none; }

/* RTP Table */
.uibf-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.uibf-rtp-table th { background: var(--uibf-bg-light); color: var(--uibf-primary); padding: 0.6rem; text-align: left; }
.uibf-rtp-table td { padding: 0.6rem; border-bottom: 1px solid var(--uibf-border); }

/* Winners Display */
.uibf-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid var(--uibf-border);
  font-size: 1.2rem;
}
.uibf-winner-name { color: var(--uibf-highlight); font-weight: 600; }
.uibf-winner-amount { color: var(--uibf-success); font-weight: 700; }

/* Testimonials */
.uibf-testimonial {
  background: var(--uibf-bg-light); border-radius: 8px;
  padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--uibf-accent);
}
.uibf-testimonial-text { font-size: 1.3rem; font-style: italic; margin-bottom: 0.4rem; }
.uibf-testimonial-author { font-size: 1.1rem; color: var(--uibf-text-muted); }

/* Payment Icons */
.uibf-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; padding: 1rem 0;
}
.uibf-payment-item {
  background: var(--uibf-bg-light); border-radius: 8px;
  padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--uibf-text);
  border: 1px solid var(--uibf-border);
}

/* Footer */
.uibf-footer {
  background: var(--uibf-bg-light); padding: 2rem 1.2rem;
  border-top: 1px solid var(--uibf-border);
}
.uibf-footer-brand { font-size: 1.3rem; color: var(--uibf-text-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.uibf-footer-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.uibf-footer-btn {
  background: linear-gradient(135deg, var(--uibf-accent) 0%, var(--uibf-accent-light) 100%);
  color: #fff; padding: 0.5rem 1rem; border-radius: 6px;
  font-size: 1.2rem; cursor: pointer; border: none;
}
.uibf-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.uibf-footer-links a { font-size: 1.2rem; color: var(--uibf-text-muted); }
.uibf-footer-links a:hover { color: var(--uibf-primary); }
.uibf-footer-copy { font-size: 1.1rem; color: var(--uibf-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid var(--uibf-border); }

/* Bottom Navigation */
.uibf-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #161638 0%, #0F0F23 100%);
  border-top: 1px solid var(--uibf-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.3rem;
}
.uibf-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--uibf-text-muted); font-size: 1rem; cursor: pointer;
  min-width: 60px; min-height: 54px; padding: 0.3rem;
  transition: color 0.2s, transform 0.2s;
}
.uibf-bottom-nav-btn:hover { color: var(--uibf-primary); transform: scale(1.05); }
.uibf-bottom-nav-btn .uibf-nav-icon { font-size: 2.2rem; margin-bottom: 0.1rem; line-height: 1; }
.uibf-bottom-nav-btn .uibf-nav-label { font-size: 1rem; line-height: 1.2; }
.uibf-bottom-nav-active { color: var(--uibf-highlight) !important; }

/* Mobile Bottom Padding */
main { padding-bottom: 80px; }

/* CTA Section */
.uibf-cta {
  background: linear-gradient(135deg, var(--uibf-accent) 0%, #ad1457 100%);
  border-radius: 10px; padding: 1.5rem; text-align: center; margin: 1.5rem 0;
}
.uibf-cta-title { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.uibf-cta-text { font-size: 1.3rem; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }

/* Feature Grid */
.uibf-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.uibf-feature-item {
  background: var(--uibf-bg-card); border-radius: 8px; padding: 1rem;
  text-align: center; border: 1px solid var(--uibf-border);
}
.uibf-feature-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.uibf-feature-title { font-size: 1.2rem; font-weight: 600; color: var(--uibf-primary); }
.uibf-feature-desc { font-size: 1.1rem; color: var(--uibf-text-muted); margin-top: 0.3rem; }

/* Achievement Badge */
.uibf-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--uibf-bg-light); border: 1px solid var(--uibf-accent);
  border-radius: 20px; padding: 0.3rem 0.8rem; font-size: 1.1rem;
  color: var(--uibf-highlight); margin: 0.2rem;
}

/* Responsive */
@media (min-width: 769px) {
  .uibf-bottom-nav { display: none; }
  .uibf-header-menu-btn { display: none; }
  body { max-width: 430px; }
}
@media (max-width: 768px) {
  .uibf-bottom-nav { display: flex; }
  main { padding-bottom: 80px; }
}
