* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif; /* Clean font, as before */
}

html, body {
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #7f90e3, #f7e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  color: #333;
}

/* ================= MOBILE CONTAINER ================= */
.mobile-container {
  background: #fff;
  border-radius: 0px;
  box-shadow: 0 0 40px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Reset and base styling remain same above this */

/* ========================= TOP HEADER ========================= */
.header-section {
  width: 100%;
  background: linear-gradient(180deg, #D480F3 0%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  padding-bottom: 60px; /* Extra bottom padding for spacing on smaller screens */
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 10;
  height: 60px;
  /* box-shadow removed to eliminate line */
}

.top-header h2 {
  font-weight: 700;
  font-size: 20px;
  color: #222;
  margin: 0;
  flex: 1;
  text-align: center;
  letter-spacing: 0.5px;
}

.back-arrow-btn {
  position: relative;
  color: #000;
  font-size: 38px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  cursor: pointer;
}

.back-arrow-btn:hover {
  color: #ffffff;
}

/* Header icons container */
.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icons i {
  font-size: 18px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-icons i:hover {
  color: #8e2de2;
}

/* ========================= PROFILE SECTION ========================= */
.profile-section {
  text-align: center;
  margin: 80px 0 10px 0;
}

.profile-section img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.profile-section h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}


/* ================= MENU ================= */
.menu-list {
  width: 96%;
  margin: 14px auto 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(0,0,0,0.08);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid #efefef;
  background: #fff;
  cursor: pointer;
  gap: 14px;
  transition: background 0.18s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover {
  background: #f6f3fa;
}
.menu-item i {
  font-size: 18px;
  color: #222;
}
.menu-item span {
  flex: 1;
  margin-left: 12px;
  font-size: 16px;
  color: #222;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.menu-item .arrow {
  color: #aaa;
  font-size: 18px;
}

/* ========================= BOTTOM NAV (FIXED) ========================= */
.bottom-nav {
  position: fixed;
  bottom: 0;                 /* Stick to very bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;               /* Full width for mobile responsiveness */
  max-width: 480px;          /* Limit max width on larger screens */
  background: #fff;
  border-radius: 24px 24px 0 0; /* Rounded top corners only */
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.15); /* Shadow above nav */
  z-index: 200;
}

.bottom-nav a {
  color: #555;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.bottom-nav i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: #8e2de2;
}

/* ========================= LANGUAGE BUTTON ========================= */
.lang-btn {
  position: relative;
  overflow: hidden; /* ensures wave stays inside button */
  background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.4px;
  transition: all 0.35s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.lang-btn:hover {
  background: linear-gradient(135deg, #3F0853 0%, #B72BEB 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
  transform: translateY(-2px) scale(1.05);
  border-color: transparent;
}

.lang-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;          /* start outside a bit */
  width: 30%;           /* smaller wave */
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.lang-btn:hover::before {
  left: 110%;           /* moves across button, stays inside due to overflow:hidden */
}

/* Responsive: font and spacing adjust for small screens */
@media (max-width: 480px) {
  .mobile-container {
    max-width: 100vw;
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
  }
  .menu-list {
    width: 98%;
    border-radius: 11px;
  }
  .menu-item {
    padding: 15px 10px;
    font-size: 14px;
  }
  .profile-section img {
    width: 80px;
    height: 80px;
  }
  .profile-section h3 {
    font-size: 18px;
  }
    .back-arrow-btn {       /* smaller on small screens */
    padding: 4px 10px;
    left: 10px;             /* slightly closer to edge */
  }
  .top-header h2 {
    padding-left: 20px;     /* add left padding to heading to prevent overlap */
  }
  .bottom-nav {
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: none !important;
    border-radius: 0;      /* no rounding */
  }
  .bottom-nav a {
    transform: none !important;
  }
   .header-section {
    padding: 18x;
    padding-bottom: 40px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
}



/* Ensuring content scales nicely */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}