/**
 * 999 Angel Number - Main Stylesheet
 * All classes use pg55- prefix for namespace isolation
 * Color palette: #20B2AA | #008B8B | #FF91A4 | #0A0A0A
 */

:root {
  --pg55-primary: #20B2AA;
  --pg55-dark: #008B8B;
  --pg55-accent: #FF91A4;
  --pg55-bg: #0A0A0A;
  --pg55-surface: #111418;
  --pg55-card: #161b22;
  --pg55-text: #e8eaed;
  --pg55-text-dim: #8b949e;
  --pg55-border: #21262d;
  --pg55-radius: 8px;
  --pg55-radius-lg: 16px;
  --pg55-header-h: 56px;
  --pg55-bnav-h: 60px;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg55-bg);
  color: var(--pg55-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pg55-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ===== HEADER ===== */
.pg55-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pg55-header-h);
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-bottom: 1px solid var(--pg55-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.pg55-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg55-primary);
}

.pg55-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg55-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pg55-primary), var(--pg55-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg55-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg55-btn-register {
  background: linear-gradient(135deg, var(--pg55-accent), #e06080);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 36px;
}

.pg55-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255, 145, 164, 0.4);
}

.pg55-btn-login {
  background: transparent;
  color: var(--pg55-primary);
  border: 1.5px solid var(--pg55-primary);
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
}

.pg55-btn-login:hover {
  background: var(--pg55-primary);
  color: var(--pg55-bg);
}

.pg55-menu-toggle {
  background: none;
  border: none;
  color: var(--pg55-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.pg55-mobile-menu {
  position: fixed;
  top: var(--pg55-header-h);
  left: 0;
  right: 0;
  background: var(--pg55-surface);
  border-bottom: 2px solid var(--pg55-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  z-index: 9999;
}

.pg55-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.8rem 0;
}

.pg55-mobile-menu li {
  border-bottom: 1px solid var(--pg55-border);
}

.pg55-mobile-menu a {
  display: block;
  padding: 1rem 1.6rem;
  color: var(--pg55-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s, color 0.2s;
}

.pg55-mobile-menu a:hover {
  background: rgba(32, 178, 170, 0.1);
  color: var(--pg55-primary);
}

/* ===== CAROUSEL ===== */
.pg55-carousel {
  position: relative;
  margin-top: var(--pg55-header-h);
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--pg55-surface);
}

.pg55-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.pg55-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pg55-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg55-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg55-slide-arrow.pg55-arrow-left { left: 8px; }
.pg55-slide-arrow.pg55-arrow-right { right: 8px; }

.pg55-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.pg55-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.pg55-dot-active {
  background: var(--pg55-primary) !important;
  width: 20px;
  border-radius: 4px;
}

/* ===== MAIN CONTENT ===== */
.pg55-main {
  padding: 1.6rem;
  padding-bottom: 2rem;
}

.pg55-section {
  margin-bottom: 2.4rem;
}

.pg55-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg55-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg55-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg55-section-title i {
  font-size: 2rem;
}

/* ===== GAME GRID ===== */
.pg55-game-cat {
  margin-bottom: 2rem;
}

.pg55-cat-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg55-accent);
  margin-bottom: 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--pg55-accent);
  padding-left: 0.8rem;
}

.pg55-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg55-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pg55-game-item:hover {
  transform: translateY(-3px);
}

.pg55-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pg55-radius);
  border: 1px solid var(--pg55-border);
}

.pg55-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--pg55-text-dim);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT BLOCKS ===== */
.pg55-content-block {
  background: var(--pg55-card);
  border-radius: var(--pg55-radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--pg55-border);
}

.pg55-content-block h2 {
  font-size: 1.8rem;
  color: var(--pg55-primary);
  margin: 0 0 1rem 0;
}

.pg55-content-block h3 {
  font-size: 1.5rem;
  color: var(--pg55-accent);
  margin: 1.2rem 0 0.6rem 0;
}

.pg55-content-block p {
  font-size: 1.3rem;
  color: var(--pg55-text);
  line-height: 2rem;
  margin: 0 0 0.8rem 0;
}

.pg55-content-block ul {
  padding-left: 1.6rem;
  margin: 0.4rem 0;
}

.pg55-content-block li {
  font-size: 1.3rem;
  color: var(--pg55-text);
  line-height: 2rem;
  margin-bottom: 0.4rem;
}

/* ===== CTA BUTTONS ===== */
.pg55-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg55-accent), #e06080);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.pg55-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 145, 164, 0.5);
}

.pg55-cta-link {
  color: var(--pg55-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--pg55-primary);
  transition: color 0.2s;
}

.pg55-cta-link:hover {
  color: var(--pg55-accent);
}

/* ===== RTP TABLE ===== */
.pg55-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pg55-rtp-item {
  background: var(--pg55-surface);
  border-radius: var(--pg55-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pg55-border);
}

.pg55-rtp-item .pg55-rtp-name {
  font-size: 1.1rem;
  color: var(--pg55-text-dim);
  margin-bottom: 0.4rem;
}

.pg55-rtp-item .pg55-rtp-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg55-primary);
}

/* ===== WINNER LIST ===== */
.pg55-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--pg55-border);
}

.pg55-winner-item:last-child {
  border-bottom: none;
}

.pg55-winner-name {
  font-size: 1.2rem;
  color: var(--pg55-text);
}

.pg55-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg55-accent);
}

/* ===== PAYMENT ===== */
.pg55-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.8rem 0;
}

.pg55-payment-item {
  background: var(--pg55-surface);
  border: 1px solid var(--pg55-border);
  border-radius: var(--pg55-radius);
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  color: var(--pg55-text);
}

/* ===== TESTIMONIALS ===== */
.pg55-testimonial {
  background: var(--pg55-surface);
  border-radius: var(--pg55-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg55-accent);
}

.pg55-testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--pg55-text-dim);
  margin: 0 0 0.4rem 0;
}

.pg55-testimonial cite {
  font-size: 1.1rem;
  color: var(--pg55-primary);
  font-style: normal;
}

/* ===== FOOTER ===== */
.pg55-footer {
  background: var(--pg55-surface);
  border-top: 1px solid var(--pg55-border);
  padding: 2rem 1.6rem 8rem;
  text-align: center;
}

.pg55-footer-desc {
  font-size: 1.2rem;
  color: var(--pg55-text-dim);
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}

.pg55-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.pg55-footer-links a {
  color: var(--pg55-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--pg55-card);
  border-radius: 4px;
  transition: background 0.2s;
}

.pg55-footer-links a:hover {
  background: rgba(32, 178, 170, 0.15);
}

.pg55-footer-copy {
  font-size: 1.1rem;
  color: var(--pg55-text-dim);
  margin-top: 1rem;
}

.pg55-footer-partners {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pg55-footer-partners span {
  font-size: 1rem;
  color: var(--pg55-text-dim);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--pg55-border);
  border-radius: 4px;
}

/* ===== BOTTOM NAV ===== */
.pg55-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pg55-bnav-h);
  background: linear-gradient(180deg, #0d1117, #080b0e);
  border-top: 1px solid var(--pg55-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.pg55-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--pg55-text-dim);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0;
  gap: 2px;
}

.pg55-bnav-btn:hover,
.pg55-bnav-btn:focus {
  color: var(--pg55-primary);
  transform: scale(1.1);
}

.pg55-bnav-btn i,
.pg55-bnav-btn .material-icons-outlined {
  font-size: 22px;
}

.pg55-bnav-btn span {
  font-size: 1rem;
}

.pg55-bnav-active {
  color: var(--pg55-accent) !important;
}

.pg55-bnav-active i,
.pg55-bnav-active .material-icons-outlined {
  color: var(--pg55-accent);
}

/* ===== MOBILE PADDING ===== */
@media (max-width: 768px) {
  .pg55-main {
    padding-bottom: 80px;
  }
  .pg55-footer {
    padding-bottom: 80px;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .pg55-bnav {
    display: none;
  }
}

/* ===== PROMO LINK STYLE ===== */
.pg55-promo-text {
  color: var(--pg55-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pg55-promo-text:hover {
  color: var(--pg55-primary);
}

/* ===== INTERNAL LINK ===== */
.pg55-internal-link {
  color: var(--pg55-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.pg55-internal-link:hover {
  border-bottom-color: var(--pg55-primary);
}

/* ===== H TAGS ===== */
h1.pg55-h1 {
  font-size: 2rem;
  color: var(--pg55-text);
  margin: 1.2rem 0 1rem;
  line-height: 2.6rem;
}

/* ===== APP DOWNLOAD ===== */
.pg55-app-banner {
  background: linear-gradient(135deg, var(--pg55-dark), var(--pg55-primary));
  border-radius: var(--pg55-radius-lg);
  padding: 1.6rem;
  text-align: center;
  margin-bottom: 1.6rem;
}

.pg55-app-banner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}

.pg55-app-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
