
body {
   margin: 0;
  background: #0f0f0f;
  color: #fff;
  max-width: 480px;
  margin: auto;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  padding-bottom: 80px;
}
.app-container {
  max-width: 420px;
  margin: auto;
  padding: 20px;
  min-height: 100vh;
}

.splash-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#splashScreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: black;
  z-index: 9999;
  overflow: hidden;
}

#splashScreen video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 🔥 ye magic line hai */
}
.splash-exit video {
  transform: scale(1.2);
  filter: blur(8px);
  opacity: 0;
}
/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: #FFC107;
}

.auth-wrapper {
  height: 100vh;
  background: #0F0F0F;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 90%;
  max-width: 380px;
  background: #1C1C1C;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
}

.auth-card input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
}

.primary-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(90deg, #FFC107, #FF9800);
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.hidden {
  display: none;
}
/* home page  */

/* ===== Page Fade Animation ===== */
.fade-page {
  opacity: 0;
  transform: translateY(15px);
  animation: pageFade 0.8s ease forwards;
}

@keyframes pageFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0d0d0d;
  color: #fff;
  max-width: 480px;
  margin: auto;
  position: relative;
  padding-bottom: 90px;
}

/* ===== Header ===== */
header {
  padding: 20px;
}

header h2 {
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(45deg, #ffb400, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#userLocation {
  font-size: 12px;
  color: #aaa;
  margin-top: 5px;
}

/* ===== Hero Section ===== */
.hero-video {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 20px;
  margin: 15px 20px;
  box-shadow: 0 0 30px rgba(255,180,0,0.15);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(55%);
}

.hero-overlay {
  position: absolute;
  bottom: 25px;
  left: 20px;
  right: 20px;
}

.hero-overlay h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-overlay p {
  font-size: 13px;
  color: #ddd;
}

.hero-overlay button {
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(45deg, #ffb400, #ff8c00);
  border: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.hero-overlay button:hover {
  transform: scale(1.05);
}

/* ===== Section ===== */
section {
  padding: 15px 20px;
}

section h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

/* ===== Services Grid ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
}

.card:hover {
  background: linear-gradient(45deg, #ffb400, #ff8c00);
  color: #000;
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(255,180,0,0.3);
}

/* ===== Barber Cards ===== */
#barberList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.barber-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  padding: 15px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.barber-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255,180,0,0.2);
}

.barber-card h4 {
  font-size: 15px;
}

.barber-card p {
  font-size: 12px;
  color: #bbb;
}

.book-btn {
  background: linear-gradient(45deg, #ffb400, #ff8c00);
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.book-btn:hover {
  transform: scale(1.1);
}


.search-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  color: #ffb400;
  margin: 20px 0;
}

/* Spinner Circle */
.loader {
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 180, 0, 0.3);
  border-top: 3px solid #ffb400;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #222;
  z-index: 1000;
}
.nav-item {
  text-decoration: none;
  color: #888;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease;
}

.nav-item span {
  font-size: 20px;
}

.nav-item.active {
  color: #ffb400;
}

.nav-item:hover {
  color: #ffb400;
  transform: translateY(-3px);
}

/* ===== Popup ===== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: #1c1c1c;
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  width: 90%;
  max-width: 320px;
}

.popup-content h3 {
  color: #ff4d4d;
  margin-bottom: 10px;
}

.popup-content button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
}

.close-btn {
  background: #333;
  color: white;
}

.hidden {
  display: none;
}

/* ===== Services Page ===== */
.services-container {
  padding: 20px;
  padding-bottom: 90px;
}

.page-title {
  text-align: center;
  margin-bottom: 15px;
}

.category-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.toggle-btn {
  padding: 8px 15px;
  border: none;
  margin: 0 5px;
  border-radius: 20px;
  background: #1c1c1c;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-btn.active {
  background: #ffcc00;
  color: black;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.service-card {
  background: #1c1c1c;
  border-radius: 14px;
  padding: 12px;
  animation: fadeSlide 0.3s ease;
}

.service-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.service-card h3 {
  margin: 8px 0 5px;
}

.service-card p {
  font-size: 13px;
  color: #aaa;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.price-row button {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: #ffcc00;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  padding: 10px 20px;
  border-radius: 25px;
  color: white;
}

.hidden {
  display: none;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card.selected {
  border: 2px solid #ffc107;
  background: rgba(255, 193, 7, 0.1);
  transform: scale(1.02);
}

/* ===========================
   BOOKING BAR PREMIUM STYLE
=========================== */

.booking-bar {
  position: fixed;
  bottom: 70px; /* bottom nav ke upar */
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 480px;
  background: linear-gradient(135deg, #1c1c1c, #111);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

.booking-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-total p {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

.booking-total h3 {
  margin: 0;
  font-size: 18px;
  color: #FFD700;
}

#bookBtn {
  background: linear-gradient(135deg, #FFD700, #ffb700);
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#bookBtn:hover {
  transform: scale(1.05);
}

.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 30px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* ===========================
   BOOKING MODAL STYLE
   ==========================*/
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 92%;
  max-width: 420px;
  background: linear-gradient(145deg, #1f1f1f, #121212);
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  animation: popUp 0.25s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  color: #FFD700;
  font-size: 20px;
}

.modal-close {
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  z-index: 20;
  position: relative;
  pointer-events: auto;
}

.modal-close:hover {
  color: #d4cb17;
  transform: scale(1.1);
}

#modalBody button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(135deg, #FFD700, #ffb700);
  color: black;
  transition: 0.2s;
}

#modalBody button:hover {
  transform: scale(1.03);
}

@keyframes popUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#bookingModal {
  display: none;
}

#bookingModal.active {
  display: flex;
}

/* Option Cards */
.option-card {
  background: #1f1f1f;
  padding: 18px;
  border-radius: 14px;
  margin: 12px 0;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid #333;
}

.option-card:hover {
  transform: scale(1.03);
  border-color: #FFD700;
}

.option-card h4 {
  margin: 0;
  color: #FFD700;
}

.option-card p {
  font-size: 13px;
  color: #aaa;
}

/* Self Booking Card */
.self-card {
  background: #1c1c1c;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #333;
}

.self-card p {
  margin: 8px 0;
  color: #ddd;
}

/* Floating Form */
.form-group {
  position: relative;
  margin-bottom: 18px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: white;
  outline: none;
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #aaa;
  font-size: 13px;
  transition: 0.2s;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label {
  top: -8px;
  left: 10px;
  font-size: 11px;
  background: #1c1c1c;
  padding: 0 5px;
  color: #FFD700;
}

/* Confirm Button */
.confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FFD700, #ffb700);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.confirm-btn:hover {
  transform: scale(1.03);
}

/* ===========================
   SEARCHING POPUP STYLE
   ========================== */
.search-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;   /* IMPORTANT */
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.search-popup.active {
  display: flex;
}

.search-card {
  background: #1c1c1c;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  width: 85%;
  max-width: 350px;
}

.search-card h3 {
  color: #FFD700;
}

#searchTimer {
  font-size: 40px;
  margin: 20px 0;
}

.search-card button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
}

/* Animated Timer */  
#searchTimer {
  font-size: 42px;
  margin: 20px 0;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Premium Form Styling */

.premium-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #1c1c1c;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #888;
  font-size: 13px;
  transition: 0.3s;
  pointer-events: none;
  background: #1c1c1c;
  padding: 0 4px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 8px;
  font-size: 11px;
  color: #FFD700;
}

.premium-btn {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg,#FFD700,#FFA500);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.premium-btn:hover {
  transform: translateY(-2px);
}

#searchTimer {
  font-size: 28px;
  font-weight: 600;
  margin: 15px 0;
}

#searchTimer:contains("No Barber") {
  color: #ff4d4d;
}

.accepted-popup,
.otp-popup,
.rating-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.accepted-popup.active,
.otp-popup.active,
.rating-popup.active {
  display: flex;
}

.accepted-card,
.otp-card,
.rating-card {
  background: #111;
  padding: 25px;
  border-radius: 16px;
  width: 300px;
  text-align: center;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #00ff99;
  border-radius: 50%;
  animation: pulse 1s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Schedule Form */
.schedule-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.schedule-label {
  font-size: 14px;
  color: #f5c518;
  margin-bottom: 6px;
  font-weight: 500;
}

.schedule-input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.schedule-input:focus {
  border-color: #f5c518;
}
                                        /* BOOKINGS CSS STARTS HERE  */

.booking-container {
  padding: 20px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 15px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: #222;
  color: white;
}

.filter-btn.active {
  background: #f5c518;
  color: black;
}

.booking-card {
  background: linear-gradient(145deg, #111, #1a1a1a);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: 0.3s ease;
}

.booking-card:hover {
  transform: translateY(-4px);
}

.booking-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.amount {
  font-size: 18px;
  font-weight: bold;
  color: #f5c518;
}

.booking-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #ccc;
}

.booking-info span {
  color: #999;
  font-weight: 500;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.status-badge.completed {
  background: rgba(0, 200, 83, 0.2);
  color: #00c853;
}

.status-badge.cancelled {
  background: rgba(255, 61, 0, 0.2);
  color: #ff3d00;
}

.status-badge.pending {
  background: rgba(255, 179, 0, 0.2);
  color: #ffb300;
}

.status-badge.scheduled {
  background: rgba(41, 121, 255, 0.2);
  color: #2979ff;
}

.details-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: #f5c518;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.details-btn:hover {
  background: #ffd633;
}

/* Initial hidden state */
.booking-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.5s ease forwards;
}

/* Stagger animation */
.booking-card:nth-child(1) { animation-delay: 0.05s; }
.booking-card:nth-child(2) { animation-delay: 0.1s; }
.booking-card:nth-child(3) { animation-delay: 0.15s; }
.booking-card:nth-child(4) { animation-delay: 0.2s; }
.booking-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* view booking detisl sscetion */
/* Overlay */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 9999;
}

.detail-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Modal */
.detail-modal {
  width: 90%;
  max-width: 380px;
  background: #111;
  border-radius: 16px;
  padding: 20px;
  transform: scale(0.8);
  transition: 0.3s ease;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.detail-overlay.active .detail-modal {
  transform: scale(1);
}

/* Header */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Animated Close Button */
.close-btn {
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
}

.close-btn span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #f5c518;
  top: 50%;
  left: 0;
  transform-origin: center;
  transition: 0.3s;
}

.close-btn span:first-child {
  transform: rotate(45deg);
}

.close-btn span:last-child {
  transform: rotate(-45deg);
}

.close-btn:hover span {
  background: red;
  transform: rotate(180deg);
}

/* Body */
.detail-body p {
  margin: 8px 0;
  font-size: 14px;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.detail-card {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 14px;
  margin-top: 10px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.status-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.amount {
  font-size: 18px;
  font-weight: 700;
  color: #f5c518;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
}

.detail-row span {
  color: #aaa;
}

.booking-header {
  padding: 20px 16px 10px 16px;
}

.header-text h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-subline {
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: #1c1c1c;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active {
  background: #f5c518;
  color: black;
  font-weight: 600;
}

.filter-btn:hover {
  background: #333;
}

                                                            /* PROFILE SECTION CSS*/

.profile-container {
  padding: 20px;
}

.profile-heading {
  font-size: 22px;
  margin-bottom: 20px;
}

.profile-card {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid #f5c518;
  object-fit: cover;
}

.menu-list {
  margin-top: 20px;
}

.menu-item {
  padding: 15px 0;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.logout-btn {
  margin-top: 30px;
  width: 100%;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 10px;
  cursor: pointer;
}





/* ===== PROFILE DETAILS PAGE ===== */
.top-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  cursor: pointer;
}

.back-arrow {
  font-size: 20px;
  cursor: pointer;
}

.details-container {
  max-width: 420px;
  margin: auto;
  padding: 20px;
  color: white;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.details-header span {
  font-size: 22px;
  cursor: pointer;
  color: #FFD700;
  transition: 0.3s;
}

.details-header span:hover {
  transform: translateX(-3px);
}

.details-header h2 {
  font-size: 22px;
  font-weight: 600;
}

/* Card */

.details-card {
  background: linear-gradient(145deg, #111, #1c1c1c);
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Avatar */

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD700;
  display: block;
  margin: 0 auto 15px;
  transition: 0.3s;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

/* Change Photo Button */

.details-card button:first-of-type {
  display: block;
  margin: 10px auto 25px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #FFD700;
  background: transparent;
  color: #FFD700;
  cursor: pointer;
  transition: 0.3s;
}

.details-card button:first-of-type:hover {
  background: #FFD700;
  color: black;
}

/* Labels */

.details-card label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-top: 12px;
}

/* Text Fields */

.details-card p {
  margin: 4px 0 10px;
  font-weight: 500;
  color: white;
}

.details-card input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: white;
  outline: none;
  margin-top: 5px;
  transition: 0.3s;
}

.details-card input:focus {
  border-color: #FFD700;
}

/* Save Button */

.details-card button:last-of-type {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #FFD700;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.details-card button:last-of-type:hover {
  background: #ffcc00;
  transform: translateY(-2px);
}


/* aal other files for profile tab */

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5px;
  border-bottom: 1px solid #222;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.menu-item:hover {
  background: #111;
  padding-left: 10px;
}

textarea {
  width: 100%;
  height: 80px;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px;
  color: white;
  margin-top: 10px;
  outline: none;
}

textarea:focus {
  border-color: #FFD700;
}

button {
  cursor: pointer;
}


/* ===== REFER & EARN PAGE ===== */
.refer-container {
  padding: 20px;
  color: white;
}

.refer-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.refer-card {
  background: #111;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #222;
}

.refer-card h1 {
  color: #FFD700;
}

.coin-note {
  color: #aaa;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.stats h3 {
  font-size: 24px;
  color: #FFD700;
}

.refer-card button {
  background: #FFD700;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
}

.refer-image-section {
  margin-top: 30px;
  text-align: center;
}

.refer-image-section img {
  max-width: 100%;
  border-radius: 15px;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  padding: 12px 20px;
  border-radius: 20px;
  opacity: 0;
  transition: 0.4s;
}

#toast.show {
  opacity: 1;
}


/* ===== Rewards PAGE ===== */
.rewards-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Background Image */
.rewards-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("..assests/images/reward.jpeg") center/cover no-repeat;
  z-index: -2;
}

/* Dark Overlay */
.rewards-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65); /* transparency control */
  z-index: -1;
}
/* Header */
.rewards-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.rewards-header h2 {
  font-size: 22px;
}

/* Center Section */
.rewards-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card */
.rewards-card {
  background: #111;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #222;
  text-align: center;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 0 20px rgba(255,215,0,0.1);
}

.rewards-card h3 {
  margin-bottom: 15px;
}

.learn-link {
  color: #FFD700;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.learn-link:hover {
  text-decoration: underline;
}
/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

/* Active State */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Box */
.modal-box {
  background: linear-gradient(145deg,#111,#1c1c1c);
  padding: 30px;
  border-radius: 20px;
  width: 85%;
  max-width: 340px;
  text-align: center;
  border: 1px solid #222;
  box-shadow: 0 0 30px rgba(255,215,0,0.2);
  transform: scale(0.8);
  transition: 0.3s ease;
}

/* Animate */
.modal-overlay.active .modal-box {
  transform: scale(1);
}

/* Close */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #FFD700;
}

/* Button */
.refer-btn {
  margin-top: 20px;
  background: linear-gradient(45deg,#FFD700,#ffcc00);
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.refer-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(255,215,0,0.6);
}

/* Notification page css */

.notification-container {
  min-height: 100vh;
  padding: 20px;
  color: white;
  background: #000;
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  cursor: pointer;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification-card {
  background: #111;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid #222;
  cursor: pointer;
  transition: 0.3s;
}

.notification-card.unread {
  border-left: 4px solid #FFD700;
}

.notification-card:hover {
  transform: translateY(-3px);
}

.notification-card h4 {
  margin-bottom: 5px;
}

.notification-time {
  font-size: 12px;
  color: #aaa;
}

.empty-state {
  text-align: center;
  margin-top: 100px;
  color: #777;
  display: none;
}