* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #2ecc71;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-shell {
  position: relative;
  width: 50vh;
  height: 97vh;
  background: #27ae60;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Sidebar inside shell */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background-color: #27ae60;
  color: white;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 10;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar a i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.offer-center {
  padding: 1rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background-color: #2f9252;
  text-align: center;
}

.offer-center h6 {
  font-size: 14px;
  color: #d0f0d0;
  margin-bottom: 0.5rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.offer-box {
  position: relative;
  background-color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.offer-box:hover {
  opacity: 0.9;
}

.offer-box img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.4rem;
}

/* Color backgrounds */
.offer-box.blue { background: linear-gradient(to bottom, #3a9ded, #2672c5); }
.offer-box.purple { background: linear-gradient(to bottom, #b979ff, #6f3bdc); }
.offer-box.red { background: linear-gradient(to bottom, #f7745e, #cc3926); }
.offer-box.orange { background: linear-gradient(to bottom, #fbb150, #f68900); }
.offer-box.yellow { background: linear-gradient(to bottom, #fcd659, #e7a400); }
.offer-box.pink { background: linear-gradient(to bottom, #ef90ff, #be3fda); }

/* Badge Style */
.offer-box .badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: red;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: bold;
  line-height: 1;
}

.sidebar.show {
  transform: translateX(0);
}

/* Overlay (inside shell only) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 9;
}
.overlay.show {
  display: block;
}

/* Header with left-aligned menu icon */
.app-header {
	position: relative;
	display: flex;
	justify-content: space-between; /* para yung right side nasa kanan pa rin */
	align-items: center;
	padding: 10px 10px;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Right buttons */
.header-right {
  display: flex;
  gap: 0.5rem;
}

/* Login/Register buttons */
.btn {
  padding: 6px 12px;
  font-size: 14px;
  background-color: #2ecc71;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}

.btn:hover {
  background-color: #27ae60;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  margin-right: 1rem;
}

.app-title {
  font-size: 18px;
  margin: 0;
}

/* Main and nav still same */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #27ae60;
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2ecc71;
  display: flex;
  justify-content: space-around;
  padding: 5px 0;
  z-index: 99;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: white;
  text-decoration: none;
}

.bottom-nav .nav-item i {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}

.bottom-nav .nav-item.active {
  color: white; /* Green for active item */
}

.bottom-nav .nav-item.active i {
  color: white;
}

.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Modal wrapper (hidden by default) */
.modal {
  display: none;
  position: absolute;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Modal content box */
.modal-content {
  background: #f8f9fa; /* light background */
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 500px; /* adjust this as needed */
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Close button */
.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Modal form inputs */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-content input {
  padding: 0.5rem;
  font-size: 14px;
}

.modal-content button {
  padding: 0.6rem;
  background-color: #2ecc71;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

/* Game Grid */
.game-layout {
    display: flex;
    gap: 15px;
}

.category-list {
    flex: 0 0 30%;  /* fixed 30% */
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.category-list a {
    display: flex;
    flex-direction: column; /* icon sa taas, text sa baba */
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #ddd;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.category-list a img.icon {
    width: 32px;  /* adjust size */
    height: 32px;
    object-fit: contain;
}

.category-list a:hover {
    background: #198754;
    color: white;
}

.category-list a.active {
    background: #198754;
    color: white;
}

.game-grid {
    flex: 0 0 70%; /* right side = 70% */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* always 2 columns */
    gap: 15px;
}

.game-card {
    display: flex;
    justify-content: center;
    align-items: center;
	flex-direction: column; /* stack logo + text */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s ease;
	height: 150px;
	 text-decoration: none;
}

.game-card .game-name {
	width: 100%; 
    display: inline-block;
    padding: 6px 12px;
    background: #198754;       /* green background */
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
	 text-align: center; 
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    max-width: 100%;
	width: 100%;  
    height: auto;
    border-radius: 8px;
    object-fit: contain; /* para di ma-stretch */
}

.btn-group .btn {
  flex: 1;
  font-size: 14px;
  color: white;
}

/* Floating button inside app shell */
.floating-support {
  position: absolute;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  box-shadow: none; /* optional: remove background shadow */
}

.floating-support img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem;
  background-color: #2a9b5d;
  color: white;
  border-radius: 10px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.account-info {
  flex: 1;
  font-size: 14px;
}

.account-info div {
  margin-bottom: 4px;
}

.copy-icon {
  cursor: pointer;
  margin-left: 6px;
  color: #fff;
  transition: color 0.3s;
}

.copy-icon:hover {
  color: #ffc107;
}

.flag-icon {
  margin-left: 8px;
  font-size: 16px;
}

.balance-info {
  text-align: right;
  font-size: 14px;
  line-height: 1.2;
}

.balance-amount {
  font-weight: bold;
  font-size: 16px;
}

.quick-actions {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 12px;
}

.action-box i {
  font-size: 24px;
  margin-bottom: 5px;
  color: white; /* green */
}

.action-box span {
  font-size: 12px;
}

.vip-card {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  font-size: 13px;
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.vip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 14px;
}

.vip-level {
  background-color: #ffc107;
  color: #000;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 13px;
}

.vip-progress {
  display: flex;
  align-items: flex-start;
}

.vip-details {
  flex: 1;
  width: 100%;
}

.vip-promo-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  position: relative;
  cursor: pointer;
}

/* Tooltip on hover */
.progress-bar::after {
  content: attr(title);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.progress-bar:hover::after {
  opacity: 1;
}

.progress-fill {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 1s ease-in-out;
}

.profile-menu a {
  display: flex;
  align-items: center;
  padding: 10px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.profile-menu a i {
  margin-right: 10px;
  font-size: 16px;
  color: white;
}

.profile-menu a:hover {
  background-color: #2ecc71;
}

.profile-footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  font-size: 13px;
  background-color: #2a9b5d;
  color: white;
  border-radius: 0 0 12px 12px;
}

#promoCarousel {
  position: relative;
}

#promoCarousel .carousel-item {
  height: 180px; /* 🔁 adjust as needed */
}

#promoCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* ensures image fills nicely */
  border-radius: 12px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;                 /* adjust vertical position */
  left: 50%;                    /* center horizontally */
  transform: translateX(-50%);  /* true centering */
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  margin: 0;
}

.carousel-indicators [data-bs-target] {
  background-color: #4caf50 !important; /* Green */
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  border: none !important;
  opacity: 0.7 !important;
}

.carousel-indicators .active {
  opacity: 1 !important;
}

/* Event Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  padding: 1rem;
}

/* Event Card Style */
.event-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: scale(1.02);
}

.event-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.vip-section {
  background-color: #2ecc71;
  color: white;
  padding: 15px;
  border-radius: 12px;
  font-family: sans-serif;
}

.current-level {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.current-level .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-badge {
  background-color: #4caf50;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  color: white;
  font-size: 12px;
}

.vip-badge.red { background-color: #d32f2f; }
.vip-badge.green { background-color: #27ae60; }
.vip-badge.purple { background-color: #8e24aa; }

.vip-table {
  margin-top: 15px;
}

.vip-table-header,
.vip-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr;
  padding: 10px;
  align-items: center;
}

.vip-table-header {
  background: #27ae60;
  font-weight: bold;
  font-size: 14px;
}

.vip-row {
  background-color: #27ae60;
  margin-top: 5px;
  border-radius: 6px;
  font-size: 13px;
}

.vip-row.active {
  outline: 2px solid white;
}

.vip-progress-bar {
  width: 100%;
  height: 6px;
  background: #ccc;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 3px;
}

.vip-fill {
  height: 100%;
  background: #4caf50;
  border-radius: 4px;
}

.mission-section {
  background: #2f8f2f;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-family: sans-serif;
}
.section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}
.current-pa {
  background: #247624;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.pa-info, .pa-reward {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.pa-bar {
  background: #444;
  height: 10px;
  border-radius: 5px;
  margin: 0.5rem 0;
  overflow: hidden;
}
.pa-fill {
  background: #ffd700;
  height: 100%;
  border-radius: 5px 0 0 5px;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.task-item {
  background: #3ca63c;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.task-name {
  font-size: 1rem;
  flex: 1 1 60%;
}
.task-meta {
  font-size: 0.9rem;
  flex: 1 1 30%;
  text-align: right;
}
.received, .go-btn {
  margin-top: 0.5rem;
  background: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  flex: 1 1 100%;
}
.received {
  background: #ccc;
  color: #666;
  cursor: default;
}

.live-card {
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: sans-serif;
  margin-bottom: 15px;
  width: 100%;
  max-width: unset;
}

.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.team {
  display: flex;
  align-items: center;
}

.team img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

.team .away {
  color: #0d6efd;
}

.score {
  font-weight: bold;
}

.status {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.status .live {
  background: red;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.odds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.odd-box {
  background: #f1f1f1;
  padding: 6px;
  border-radius: 6px;
  flex: 1 1 45%;
  text-align: center;
  font-size: 0.9rem;
}

.more-btn {
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 5px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Facebook */
.social-icons a.facebook {
    background-color: #1877f2;
}

/* Instagram (gradient) */
.social-icons a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Telegram */
.social-icons a.telegram {
    background-color: #0088cc;
}

/* WhatsApp */
.social-icons a.whatsapp {
    background-color: #25d366;
}

/* Hover effects */
.social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}