* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #2ecc71;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-shell {
  position: relative;
  width: 100%;         /* mobile: full width */
  height: 100%;        /* mobile: full height */
  background: #27ae60;
  display: flex;
  flex-direction: column; /* column layout: header + content */
  overflow: hidden;
}

/* Title */
.app-title {
  font-size: 18px;
  margin: 0;
}

/* Main content */
.app-main {
  flex: 1;                 /* fill remaining space */
  overflow-y: auto;         /* scrollable */
  padding: 1rem;
  background: #2d3436;
  color: #fff;
}

/* ✅ Desktop view (tablet and up) */
@media (min-width: 768px) {
  .app-shell {
    width: 420px;     /* fixed width like mobile preview */
    height: 90vh;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
}

/* Header with left-aligned menu icon */
.app-header {
  flex-shrink: 0;               /* wag lumiit */
  display: flex;
  justify-content: space-between;
  align-items: center;
  #padding: 10px;
  background: #636e72;
  color: #fff;
}
.app-header img {
  max-width: 150px;   /* auto-resize logo on small screens */
  height: auto;
  object-fit: contain;
}

/* Logo */
.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Right buttons in header */
.header-right {
  display: flex;
  gap: 0.5rem;
   margin-right: 1rem;
}


.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Sidebar inside shell */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background-color: #2d3436;
  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: #202020;
  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, #f1c40f, #f39c12); }
.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;
}


/* 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-left: 1rem;
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #636e72;
  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;
}

/* 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: #636e72;
    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: #d0ad21;
    font-weight: 600;
    color: white;
    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: #d0ad21;
	border: 1px solid white;
    color: white;
}

.category-list a.active {
    background: #f1c40f;
	border: 1px solid #ddd;
    color: white;
}

.game-grid {
    flex: 0 0 70%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px; /* lahat ng row may pantay na taas */
    gap: 15px;
	padding-right: 30px;
}

.game-card {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* para sakto at hindi distorted */
}

.game-name {
    margin-top: 5px;
    padding: 6px 12px;
    #background: #198754;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.game-card:hover {
    transform: scale(1.05);
}

.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: #636e72;
  color: 636e72;
  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: #636e72;
}

.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: #2d3436 !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: #636e72;
  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: #2d3436; }
.vip-badge.green { background-color: #2d3436; }
.vip-badge.purple { background-color: #2d3436; }

.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: #2d3436;
  font-weight: bold;
  font-size: 14px;
}

.vip-row {
  background-color: #b2bec3;
  margin-top: 5px;
  border-radius: 6px;
  font-size: 13px;
}

.vip-row.active {
  outline: 2px solid #2d3436;
}

.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);
}


    .card {
	  background-color: #1e1e1e;
	  border-radius: 12px;
	  padding: 15px;
	  margin-bottom: 12px;
	  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
	  position: relative; /* para ma-absolute position yung badge */
	}

    /* Top row: ID + status */
    .top-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
    }

    .transaction-id {
      color: #aaa;
	  font-weight: bold;
    }

    .status {
      font-size: 13px;
      font-weight: bold;
      padding: 2px 8px;
      border-radius: 5px;
    }

    .success {
      background-color: rgba(76, 175, 80, 0.15);
      color: #4caf50;
    }

    .failed {
      background-color: rgba(244, 67, 54, 0.15);
      color: #f44336;
    }

    /* Bottom row: Date left, Amount right */
    .bottom-row {
      display: flex;
      justify-content: space-between;
      margin-top: 6px;
      font-size: 13px;
    }

    .date-time {
      color: #888;
    }

    .amount {
      font-size: 15px;
      font-weight: bold;
    }

    .positive {
      color: #4caf50;
    }

    .negative {
      color: #f44336;
    }
	
	.game-badge {
  position: absolute;
  top: 0px;
  left: 0px;
  background: #27ae60;
  color: #ecf0f1;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap; /* para hindi mag-break line */
  width: auto; /* lapad base lang sa text */
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 15px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  color: #ecf0f1;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

.tab:hover {
  color: #000;
}

.tab.active {
  color: #ecf0f1;
  border-bottom: 3px solid #007bff;
  font-weight: bold;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 10px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #e0e0e0;
}

.tab-btn.active {
  background: #2ecc71;  /* Active color (blue) */
  color: #fff;
  font-weight: bold;
}

#confirmDialogOverlay {
    /* Overlay background: dark semi-transparent */
    background: rgba(0, 0, 0, 0.7);
    /* Tiyakin na ang font ay standard para madaling basahin */
    font-family: sans-serif; 
}

#confirmDialog {
    /* Cardview Design: White background, rounded corners, shadow */
    background: #fff;
    padding: 30px 20px 20px;
    border-radius: 12px; 
    text-align: center;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#confirmDialog p {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

#confirmDialog > div {
    display: flex; 
    justify-content: space-around;
}

#confirmDialog button {
    /* Basic Button Styles */
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    flex-grow: 1;
}

#cancelGameBtn {
    background: #e0e0e0; /* Gray/Light background */
    color: #555;
    margin-right: 10px;
}

#confirmGameBtn {
    /* Confirm Button: Gumamit ng primary color ninyo (#2ecc71) */
    background: black; 
    color: white;
}
