.header, .footer {
        width: 100%; 
    }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f0f0;
  overflow-x: hidden;
}
.main, .container {
  max-width: 480px;
  margin: 40px auto 0 auto;
  background: #fff;
  padding: 0 10px 30px;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.main, .container, .header {
  box-sizing: border-box;
}
.header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #4CAF50;
  color: #fff;
  padding: 22px 18px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  min-height: 64px;
}
.header .title {
  font-size: 20px;
  font-weight: bold;
}
.header .title img {
  max-width: 100%;
  height: auto;
  display: block;
}
.header .icons {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header .icons i {
  font-size: 20px;
  cursor: pointer;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background: #222 !important;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border-radius: 10px;
  width: 210px;
  z-index: 99999 !important;
  padding: 10px 0;
  opacity: 1 !important;
  pointer-events: auto;
  width: auto;
  min-width: 180px;
  max-width: 90vw;
  right: 0;
  left: auto;
  transform: none;
  padding: 6px 0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #222 !important;
  color: #fff;
  z-index: 99999;
  position: absolute;
  top: 100%;
}
.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  padding: 10px 22px;
  font-size: 1rem;
}
.dropdown-content a:last-child {
  border-bottom: none;
}
.dropdown-content a:hover {
  background-color: #4CAF50;
}
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 18px 0 14px 0;
  font-size: 15px;
  color: #fff;
  border-top: none;
  background: linear-gradient(90deg, #32CD32 0%, #1E90FF 25%, #8A2BE2 50%, #FF4500 75%, #FFD700 100%);
  border-radius: 0 0 18px 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
/* Login/Register Form Styles */
.form-box, .login-box, .register-box {
  width: 100%;
  max-width: 400px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
input, select, button {
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}
button, input[type="submit"] {
  background: #4CAF50;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, input[type="submit"]:hover {
  background: #388e3c;
}
label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: center;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.menu-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 10px 0 6px 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(50,205,50,0.07);
  min-height: 60px;
}
.menu-grid a:hover {
  background: #e0ffe0;
  color: #1E90FF;
}
.menu-grid i {
  font-size: 22px;
  margin-bottom: 5px;
  display: block;
}
.menu-grid a, .menu-grid a:visited, .menu-grid a:active {
  color: #333;
  text-decoration: none;
}
.package-container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 32px 28px 28px 28px;
  margin: 36px auto 0 auto;
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.package-title {
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 28px;
  color: #fff;
  text-align: left;
  width: 100%;
  background: linear-gradient(90deg, #32CD32 0%, #1E90FF 25%, #8A2BE2 50%, #FF4500 75%, #FFD700 100%);
  padding: 14px 0 14px 24px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  justify-items: center;
  align-items: stretch;
  width: 100%;
}
.plan {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(50,205,50,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 18px 12px 14px 12px;
  width: 100%;
  max-width: 130px;
  min-width: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.18s, transform 0.18s;
  border: none;
  text-align: center;
}
.plan h3, .plan .price, .plan p, .plan a {
  text-align: center;
}
.plan:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(50,205,50,0.18), 0 2px 12px rgba(0,0,0,0.08);
}
.plan h3 {
  font-size: 1.05em;
  font-weight: bold;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #32CD32 0%, #1E90FF 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.plan.green { border-top: 4px solid #32CD32; }
.plan.blue { border-top: 4px solid #1E90FF; }
.plan.purple { border-top: 4px solid #8A2BE2; }
.plan.red { border-top: 4px solid #FF4500; }
.plan.gold { border-top: 4px solid #FFD700; }
.plan .price { font-size: 1em; color: #555; margin-top: 2px; font-weight: bold; }
.plan p { margin: 0 0 8px 0; font-size: 0.97rem; color: #333; }
.plan a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}
.plan.green a { background: #32CD32; color: #fff; }
.plan.blue a { background: #1E90FF; color: #fff; }
.plan.purple a { background: #8A2BE2; color: #fff; }
.plan.red a { background: #FF4500; color: #fff; }
.plan.gold a { background: #FFD700; color: #333; }
.login-box {
  width: 100%;
  max-width: 400px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.login-form, .login-form input, .login-form button {
  width: 100%;
  box-sizing: border-box;
}
.wallet-box {
  display: flex;
  justify-content: space-around;
  background: #e0ffe0;
  border-radius: 10px;
  padding: 15px 5px;
  margin: 20px 0;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(50,205,50,0.07);
  gap: 8px;
}
.wallet-box div {
  flex: 1;
}
.wallet-box i {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
  color: #333;
}
.plan-balance-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  justify-content: center;
}
.plan-balance-box {
  background: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(50,205,50,0.07);
  padding: 16px 18px 12px 18px;
  min-width: 120px;
  max-width: 150px;
  flex: 1 1 120px;
  text-align: center;
  position: relative;
  border: 1.5px solid #e0e0e0;
  margin-bottom: 0;
}
.referral-link {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(50,205,50,0.07);
  padding: 6px 8px;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
}
.referral-link span {
  flex: 1 1 0;
  font-size: 0.97rem;
  color: #333;
  white-space: nowrap;
  overflow-x: auto;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 4px 0;
}
.copy-btn {
  background: #009688;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 60px;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 600;
  transition: background 0.18s;
  white-space: nowrap;
}
.copy-btn:hover {
  background: #00796B;
}
.profile-container {
  max-width: 480px;
  margin: 32px auto 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(60,60,120,0.12);
  padding: 35px 24px 40px 24px;
  margin-bottom: 0;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}
.profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1976d2;
  box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}
.username {
  font-size: 2em;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 6px;
}
.user-id {
  color: #888;
  font-size: 1em;
  margin-bottom: 4px;
}
.profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  background: none;
  box-shadow: none;
}
.profile-table th, .profile-table td {
  border: none;
  background: #f5faff;
  padding: 16px 20px;
  font-size: 1.08em;
  box-shadow: 0 2px 8px rgba(25,118,210,0.07);
}
.profile-table th {
  background: linear-gradient(90deg, #32CD32 0%, #43e97b 100%);
  color: #fff;
  width: 180px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 10px 0 0 10px;
  text-align: left;
}
.profile-table td {
  background: #f5faff;
  color: #222;
  border-radius: 0 10px 10px 0;
  text-align: left;
}
.back-link {
  display: inline-block;
  margin-top: 30px;
  color: #fff;
  background: #1976d2;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.08em;
  transition: background 0.2s;
}
.back-link:hover { background: #125ea7; }
.register-box { 
       margin:0px auto!important;
        padding: 0px!important;
    }
    .register-box form{   
         width: 93%!important; 
    }
@media (max-width: 900px) {
  .main, .container, .form-box, .login-box, .register-box {
    max-width: 98vw;
    padding: 0 2vw 20px;
  }
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .main {
    border-radius: 18px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 0 8px 30px 8px;
  }
  .header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
  }
  .header .title img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .package-container {
    padding: 12px 2vw;
  }
  .plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-items: center;
    align-items: stretch;
    width: 100%;
  }
  .plan {
    width: 100%;
    max-width: 130px;
    min-width: 0;
  }
  .header .icons .fa-bars {
    display: inline-block !important;
  }
  .dropdown-content {
    position: fixed;
    right: 8px;
    left: auto;
    top: 64px;
    width: auto;
    min-width: 160px;
    max-width: 92vw;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    background: #222 !important;
    color: #fff;
    z-index: 99999;
    padding: 6px 0;
  }
  .header, .footer {
    font-size: 13px;
        padding: 13px 19px;
        border-radius: 0px 0px 20px 20px;
  }
  form {
    gap: 10px;
  }
  input, select, button {
    font-size: 0.98rem;
    padding: 10px 8px;
  }
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .menu-grid a {
    font-size: 13px;
    padding: 8px 0 4px 0;
    min-height: 48px;
  }
  .menu-grid i {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .login-box {
    max-width: 98vw;
    padding: 0 2vw 20px 2vw;
    margin: 24px auto 0 auto;
  }
  .wallet-box {
    flex-direction: row !important;
    overflow-x: auto;
    gap: 8px;
  }
  .wallet-box div {
    min-width: 110px;
    flex: 1 0 110px;
  }
  .plan-balance-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-items: stretch;
  }
  .plan-balance-box {
    width: 78%;
    max-width: none;
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(50,205,50,0.07);
    background: #fff;
  }
  .plan-balance-box:last-child {
    margin-bottom: 0;
  }
  .team-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 10px;
  }
  .team-controls input[type="text"], .team-controls select {
    flex: 1 1 0;
    min-width: 0;
    font-size: 1em;
  }
  .team-filter-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
  }
  .team-filter-row button {
    width: 100%;
    margin-top: 0;
  }
  .referral-link {
    flex-direction: row;
    padding: 4px 4px;
    gap: 6px;
  }
  .copy-btn {
    padding: 7px 12px;
    font-size: 0.98rem;
  }
}
@media (max-width: 700px) {
  .profile-container { padding: 10px; }
  .profile-header { flex-direction: column; gap: 10px; }
  .profile-pic { width: 80px; height: 80px; }
  .username { font-size: 1.3em; }
  .profile-table th, .profile-table td { font-size: 0.98em; }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
} 