* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  background: #f4f6fb;
  color: #222;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #0d6efd;
  color: #fff;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}


/* ===== CARD ===== */
.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

h1, h2, h3 {
  margin-top: 0;
}

/* ===== BUTTONS ===== */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #0d6efd;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: #0b5ed7;
}

/* ===== INPUTS ===== */
input, select {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* ===== STATS ===== */
.stat {
  font-size: 34px;
  font-weight: bold;
  color: #0d6efd;
}

/* ===== TABLE ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 14px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

/* ===== BADGE ===== */
.badge {
  padding: 6px 14px;
  background: #28a745;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 50px;
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .navbar div {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .navbar a {
    margin: 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 14px;
  }

  /* Container */
  .container {
    padding: 10px;
    margin: 15px auto;
  }

  /* Grid → stack */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .card {
    padding: 18px;
  }

  /* Buttons */
  button {
    padding: 16px;
    font-size: 16px;
  }

  /* Inputs */
  input, select {
    font-size: 16px;
  }

  /* Tables */
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Stats */
  .stat {
    font-size: 28px;
  }

  /* Footer */
  .footer {
    font-size: 14px;
  }
}
.table::-webkit-scrollbar {
  height: 6px;
}

.table::-webkit-scrollbar-thumb {
  background: #0d6efd;
  border-radius: 10px;
}
/* =========================
   HEADER
========================= */
.site-header {
  background: linear-gradient(120deg, #0d6efd, #6610f2);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.header-container {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.site-logo {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
}

.logo-sub {
  font-size: 12px;
  opacity: 0.9;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.15);
}

/* Button style link */
.nav-btn {
  background: #fff;
  color: #0d6efd !important;
  font-weight: 600;
}

.nav-btn:hover {
  background: #f1f1f1;
}

/* =========================
   MOBILE HEADER
========================= */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo-text {
    font-size: 18px;
  }
}


/* ===== MOBILE ADJUSTMENT ===== */
@media (max-width: 768px) {
  .logo {
    font-size: 18px;
    gap: 8px;
  }

  .logo img {
    height: 32px;      /* mobile size */
  }

  .logo .dot {
    font-size: 12px;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background-image:
    linear-gradient(120deg, rgba(13,110,253,0.85), rgba(102,16,242,0.85)),
    url('../images/money-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  max-width: 900px;
  margin: auto;
}

.hero-section h1 {
  font-size: 44px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-btn {
  max-width: 220px;
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  background: #fff;
  color: #0d6efd;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.hero-btn:hover {
  background: #f1f1f1;
}

/* ===== MOBILE HERO ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 90px 15px;
  }

  .hero-section h1 {
    font-size: 30px;
  }

  .hero-section p {
    font-size: 16px;
  }
}
.hero-section {
  animation: bgMove 20s linear infinite;
}

@keyframes bgMove {
  0% { background-position: center top; }
  100% { background-position: center bottom; }
}

/* ===== PACKAGE GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* ===== PACKAGE CARD ===== */
.package-box {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TOP */
.package-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.package-top img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
}

.package-top h3 {
  font-size: 20px;
  margin: 0;
}

/* INFO */
.package-info-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.info-item small {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

.icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.icon.blue { background: #3b82f6; }
.icon.red { background: #ef4444; }
.icon.green { background: #22c55e; }

/* BOTTOM */
.package-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
}

.package-bottom button {
  background: #60a5fa;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.package-bottom button:hover {
  background: #3b82f6;
}

.disabled-btn {
  background: #9ca3af;
  cursor: not-allowed;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .package-info-row {
    flex-direction: column;
    gap: 10px;
  }

  .package-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }

  .navbar div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .navbar a {
    margin: 0;
    padding: 8px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 14px;
  }

  /* Logo */
  .logo {
    font-size: 18px;
    gap: 8px;
  }

  .logo img {
    height: 32px;
  }

  /* Container */
  .container {
    padding: 10px;
    margin: 15px auto;
  }

  /* Hero */
  .hero-section {
    padding: 80px 15px;
  }

  .hero-section h1 {
    font-size: 26px;
  }

  .hero-section p {
    font-size: 15px;
  }

  .hero-btn {
    width: 100%;
    max-width: 260px;
  }

  /* Cards */
  .card {
    padding: 18px;
  }

  /* Package cards */
  .package-info-row {
    flex-direction: column;
    gap: 10px;
  }

  .package-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  /* Tables */
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Footer */
  .footer {
    font-size: 14px;
  }
}

.card, .package-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .package-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===== LOGIN PAGE ===== */
.login-card {
  max-width: 500px;
  margin: auto;
}

/* Error text */
.error-text {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Auth link */
.auth-link {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

  .login-card {
    padding: 20px;
    margin-top: 30px;
  }

  .login-card h2 {
    font-size: 22px;
    text-align: center;
  }

  input, button {
    font-size: 16px;
    padding: 16px;
  }

  button {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .login-card {
    margin-top: 20px;
  }

  .login-card h2 {
    font-size: 20px;
  }
}

/* ===== REGISTER PAGE ===== */
.register-card {
  max-width: 500px;
  margin: auto;
}

/* Error message */
.error-text {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Auth link */
.auth-link {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

  .register-card {
    padding: 20px;
    margin-top: 30px;
  }

  .register-card h2 {
    font-size: 22px;
    text-align: center;
  }

  input, button {
    font-size: 16px;
    padding: 16px;
  }

  button {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .register-card {
    margin-top: 20px;
  }

  .register-card h2 {
    font-size: 20px;
  }
}

/* =========================
   MINI DASHBOARD
========================= */
.dashboard-mini {
  margin-top: 20px;
}

/* Top grid */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Cards */
.mini-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* Card colors */
.mini-card.balance { border-left: 4px solid #2563eb; }
.mini-card.package { border-left: 4px solid #22c55e; }
.mini-card.ads     { border-left: 4px solid #f59e0b; }
.mini-card.referral{ margin-top: 15px; }

/* Text */
.mini-label {
  font-size: 12px;
  color: #6b7280;
}

.mini-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

/* Referral input */
.mini-card input {
  margin-top: 6px;
  font-size: 13px;
  padding: 10px;
}

/* Quick actions */
.mini-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.mini-actions a {
  background: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}

.mini-actions a:hover {
  background: #0b5ed7;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .mini-value {
    font-size: 20px;
  }

  .mini-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= ISO SECTION ================= */
.iso-section {
  background: #ffffff;
  padding: 70px 20px;
  text-align: center;
}

.iso-container {
  max-width: 900px;
  margin: auto;
}

.iso-badge-big {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(120deg,#0d6efd,#6610f2);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.iso-section h2 {
  font-size: 30px;
  margin-bottom: 15px;
}

.iso-text {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
}

.iso-points {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .iso-section h2 {
    font-size: 24px;
  }

  .iso-text {
    font-size: 15px;
  }

  .iso-badge-big {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }
}
/* ================= ISO IMAGE ================= */
.iso-image {
  width: 110px;
  height: auto;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .iso-image {
    width: 90px;
  }
}
