
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    
}

/* Centered banner for subscription page */
.subscription-alert {
  max-width: 600px;         /* constrain width */
  margin: 0 auto 1.5rem;    /* center + space below */
  text-align: center;       /* center text */
  padding: 1rem 1.25rem;     /* comfy padding */
  border-radius: 8px;       /* rounded corners */
  font-weight: 500;
}

.sub-info {
  display: flex;
  flex-direction: column;
  align-items: center;           /* center children horizontally */
}

/* If you don’t already have these variants, define them: */
.alert--success.subscription-alert {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert--error.subscription-alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  text-align: center;
}

/* ensure the alert itself stays centered if it has a max-width */
.subscription-alert {
  margin-left: auto;
  margin-right: auto;
}



/* PWA INSTAPP POPUP */
/* Floating install button */
/* 1. Define the shake keyframes */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80%      { transform: translateX(4px); }
}

/* 2. Attach it to your floating button */
.install-fab {
  /* existing rules... */
  position: fixed;
  bottom: calc(56px + 24px);
  right: 24px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 2000;
  transition: transform .2s ease;

  /* new: shake forever */
  animation: shake 1.5s infinite ease-in-out;
}

.install-fab i {
  margin-right: 8px;
  font-size: 1.2rem;
}

/* Hidden by default */
.install-fab.hide {
  display: none;
}
/* Hover effect */
.install-fab:hover {
  transform: translateY(-2px);
}

/* Modal base */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}
.modal-overlay.active {
  display: flex;
}
.modal-container {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  padding: 1rem;
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}


/*CUSTOM POPUP FOR WANAWAKE*/
/* Overlay */
#delayedPopup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;             /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

/* When active */
#delayedPopup.active {
  display: flex;
}

/* Modal box */
#delayedPopup .modal-container {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 360px;
  padding: 1.5rem;
  position: relative;
  text-align: center;
}

/* Close “×” */
#delayedPopup .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Heading & text */
#delayedPopup h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}
#delayedPopup p {
  margin: 0.75rem 0 1.5rem;
  font-size: 1rem;
  color: #555;
}

/* Buttons */
#delayedPopup .modal-actions {
  display: flex;
  gap: 0.75rem;
}
#delayedPopup .btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
#delayedPopup .btn--primary {
  background: #007bff;
  color: #fff;
}
#delayedPopup .btn--secondary {
  background: #28a745;
  color: #fff;
}
#delayedPopup .btn:hover {
  opacity: 0.9;
}





/* ─── Mobile-Friendly Overrides ─── */

/* Fluid images and videos */
img, video {
  max-width: 100%;
  height: auto;
}



/* Global container padding on small screens */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  /* Header/nav */
  header .container {
    flex-direction: row;
    justify-content: space-between;
  }
  .hamburger { display: flex; }
  header nav {
    display: none;
    width: 100%;
  }
  header nav.active {
    display: flex;
    flex-direction: column;
  }
  header nav a {
    padding: 10px 0;
  }

  /* Single-column grids */
  .users-grid,
  .profile-view__grid,
  .dashboard__grid,
  .packages-grid,
  .posts-grid {
    grid-template-columns: 1fr !important;
  }
  
  

  

  /* Action buttons stack */
  .user-actions,
  .profile-view__actions {
    gap: 0.5rem;
  }
}

/* Extra tweaks for very small screens */
@media (max-width: 480px) {
  /* Header font sizes */
  header h1 a {
    font-size: 20px;
  }
  header nav a {
    font-size: 14px;
  }

  /* User-card header */
  .user-info h3 {
    font-size: 1rem;
  }
  .user-meta {
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .video-wrapper {
  max-width: 100%;          /* never exceed container width */
  aspect-ratio: 1080 / 1350;/* maintain 4:5 ratio if supported */
  /* for browsers without aspect-ratio: */
  /* padding-bottom: 125%; */
  position: relative;
}


  /* Buttons and links */
  .action-btn,
  .whatsapp-btn,
  .profile-view__btn {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  /* Profile view text */
  .profile-view__username {
    font-size: 1rem;
  }
  .profile-view__detail-item {
    font-size: 0.85rem;
  }
}



/* Sticky Header styling with hamburger */
header {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

header h1 a {
    text-decoration: none;
    color: #e91e63;
    font-size: 24px;
    font-weight: bold;
}



header nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

header nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #e91e63;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 0px;
}



/* Bottom nav only on small screens */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }
  .bottom-nav a {
    flex-grow: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }
  .bottom-nav a i {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }
}

/* Hide on larger screens */
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

/* Add some bottom padding to main content so it's not covered */
main.container {
  padding-bottom: 70px; /* >= bottom-nav height + some breathing room */
}



/* Homepage Header */
.homepage__header {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.homepage__heading {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #333;
}
.homepage__subheading {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: #000;
  padding-bottom: 1rem; /* adds 1rem of space below */
}

.homepage__btn,
.homepage__btn--primary,
.homepage__btn--secondary {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  text-decoration: none;
}
.homepage__btn--primary { background: #e91e63; color: #fff; }
.homepage__btn--secondary { background: #555; color: #fff; }
/* End of Homepage Header */


/*SEARCH FORM*/
/* Full-width search form directly under heading */
.hp-search-form {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2rem;
}
.hp-search-input {
  
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
}
.hp-search-btn {
  flex: 1;
  padding: 0 1rem;
  background: #e91e63;
  color: #fff;
  border: 1px solid #e91e63;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}




/* Login and Register Form Styling */
form {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

form .form-group {
    margin-bottom: 20px;
    position: relative;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

form input[type="text"],
form input[type="password"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

form .form-group::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #aaa;
}


form textarea {
    resize: vertical;
    min-height: 80px;
    padding-left: 40px;
}

form .error {
    display: block;
    color: #e91e63;
    font-size: 13px;
    margin-top: 5px;
}

form button,
.btn {
    width: 100%;
    padding: 12px;
    background-color: #e91e63;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.lgbtn {
    width: 100%;
    padding: 12px;
    background-color: #e91e63;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 20px;
}

form button:hover,
.btn:hover {
    background-color: #c2185b;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-link a {
    color: #e91e63;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.lg{
    text-align: center;
    margin-bottom: 20px;
}


/* Section Title */
.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}



/* User Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}


/* ─── CARD CONTAINER ─── */
.user-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER (username + address+view) ─── */
.user-info {
  padding: 0.8rem;
}

.user-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Ensure username stays left-aligned on mobile */
@media (max-width: 480px) {
  .user-info h3 {
    text-align: left;
  }
}


/* container for address + view-link */
.user-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;       /* space between address and link */
}

/* address styling */
.user-address {
  font-size: 0.875rem;
  color: #666;
  display: inline-flex;
  align-items: center;
}
.user-address i {
  margin-right: 0.25rem;
  color: #999;
}

/* view-profile link styling */
.user-view {
  font-size: 0.875rem;
  font-weight: 500;
  color: #007bff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.user-view i {
  margin-right: 0.25rem;
}

/* hover state */
.user-view:hover {
  text-decoration: underline;
}


/* ─── IMAGE ─── */
.user-image {
  width: 100%;
  position: relative;
  padding-bottom: 100%;  /* square */
  overflow: hidden;
}
.user-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CALL & WHATSAPP BUTTONS ─── */
.user-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  justify-content: center;
}

/* base button */
.user-actions .action-btn {
  flex: 1;               /* grow to fill */
  min-width: 0;          /* prevent overflow */
  text-align: center;    /* keep the label centered */
  border-radius: 4px;
  font-size: 1rem;
  /* top/bottom 0.75rem, left/right 0.75rem */
  padding: 0.45rem 0.45rem;
  font-weight: 500;
}
.user-actions .whatsapp-btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  /* top/bottom 0.75rem, left/right 0.75rem */
  padding: 0.45rem 0.45rem;
}


/* Call */
.call-btn {
  background: #e91e63;
  color: #fff;
}
.call-btn:hover {
  background: #218838;
}

/* WhatsApp */
.whatsapp-btn {
  background: #e91e63;
  color: #fff;
}
.whatsapp-btn:hover {
  background: #1DA851;
}



/* VIEW USERS PROFILE  */

/* CSS */
.profile-view {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Inter', sans-serif;
  color: #333;
  text-align: center;
}
.profile-view__container {
  background: #ffffff;
    padding:30px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.profile-view__container--info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.profile-view__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e91e63;
}
.profile-view__username {
  font-size: 1.75rem;
  margin: 0;
}
.profile-view__meta {
  display: flex;
  gap: 2rem;
}
.profile-view__detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}
.profile-view__actions {
  display: flex;
  gap: 1rem;
}
.profile-view__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s, transform 0.1s;
}
.profile-view__btn--call { background: #e91e63; }
.profile-view__btn--call:hover { background: #218838; transform: translateY(-1px); }
.profile-view__btn--whatsapp { background: #e91e63; }
.profile-view__btn--whatsapp:hover { background: #1DA851; transform: translateY(-1px); }

.profile-view__container--posts {
  text-align: center;
}
.profile-view__posts-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.profile-view__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  justify-items: center;
}
.profile-view__post-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.profile-view__post-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-view__no-posts {
  text-align: center;
  color: #777;
  font-size: 1rem;
}
.profile-view__no-posts i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .profile-view__meta { flex-direction: column; gap: 1rem; }
  .profile-view__actions { justify-content: center; }
}




/* Footer Styling */
footer {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

footer .container {
    text-align: center;
    font-size: 14px;
    color: #666;
}


/* Responsive tweaks */
@media (max-width: 768px) {
    .homepage-header {
        padding: 20px 10px;
    }

    .auth-buttons .btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .hamburger {
        display: flex;
    }

    header nav {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    header nav.active {
        display: flex;
    }

    header nav a {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    

    

    .action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
     header h1 a {
        font-size: 20px;
    }

    header nav a {
        font-size: 14px;
    }
}





/* Alert messages */
.alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}


/*PAYMENT IN ADMIN*/
:root {
  --clr-primary:   #e91e63;
  --clr-success:   #28a745;
  --clr-error:     #dc3545;
  --clr-warning:   #ffc107;
  --clr-info:      #17a2b8;
  --clr-light:     #f8f9fa;
  --clr-dark:      #343a40;
  --clr-text:      #333;
  --ff-base:       'Inter', sans-serif;
  --fs-base:       1rem;
  --transition:    0.2s ease;
}

.payments {
  font-family: var(--ff-base);
  color: var(--clr-text);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.payments__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--clr-light);
  padding-bottom: 0.5rem;
}

.payments__alerts .alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert--success { background: var(--clr-success); color: #fff; }
.alert--error   { background: var(--clr-error  ); color: #fff; }

.payments__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.payments__tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: var(--clr-light);
  border: none;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 4px 4px 0 0;
}
.payments__tab-btn:hover {
  background: #e2e6ea;
}
.payments__tab-btn--active {
  background: #fff;
  border-bottom: 2px solid var(--clr-primary);
  color: var(--clr-primary);
}

.payments__content {
  display: none;
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--clr-light);
  border-top: none;
  border-radius: 0 4px 4px 4px;
}
.payments__content--active {
  display: block;
}

.payments__subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.payments__empty {
  font-style: italic;
  color: #666;
}

.payments__table-wrapper {
  overflow-x: auto;
}

.payments__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.payments__table th,
.payments__table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-light);
}
.payments__table thead {
  background: var(--clr-light);
}
.payments__table tbody tr:hover {
  background: #f1f1f1;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.badge--pending  { background: #ffc107; color: #212529; }
.badge--approved { background: #28a745; color: #fff; }
.badge--rejected { background: #dc3545; color: #fff; }

.payments__actions .btn {
  display: inline-block;
  margin-right: 0.5rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: var(--fs-base);
  transition: background var(--transition);
  color: #fff;
}
.btn--success { background: var(--clr-success); }
.btn--error   { background: var(--clr-error  ); }
.btn--warning { background: var(--clr-warning); color: var(--clr-dark); }
.btn--info    { background: var(--clr-info   ); }

.btn--success:hover { background: #218838; }
.btn--error:hover   { background: #c82333; }
.btn--warning:hover { background: #e0a800; }
.btn--info:hover    { background: #138496; }

.payments__no-action {
  color: #999;
  font-size: 0.85rem;
}

/* Recent Visitors Section */
.visitors-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Section Title */
.visitors-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #333;
}

/* Visitors Table */
.visitors-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

/* Table Head */
.visitors-table th {
  background: #f7f7f7;
  color: #555;
  font-weight: 600;
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

/* Table Cells */
.visitors-table td {
  padding: 0.65rem;
  border: 1px solid #eee;
  color: #444;
  font-size: 0.9rem;
}

/* Zebra striping */
.visitors-table tr:nth-child(even) td {
  background: #fafafa;
}

/* Responsive: scroll horizontally on small screens */
@media (max-width: 600px) {
  .visitors-table {
    display: block;
  }
  .visitors-table thead {
    display: none;
  }
  .visitors-table tr {
    display: block;
    margin-bottom: 0.75rem;
  }
  .visitors-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid #eee;
  }
  .visitors-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}




/*ADMIN MANAGE PACKAGE*/

.packages {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: var(--ff-base);
  color: var(--clr-text);
}
.packages__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--clr-light);
  padding-bottom: 0.25rem;
}
.packages__alerts .alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.alert--success { background: var(--clr-success); color: #fff; }
.alert--error   { background: var(--clr-error  ); color: #fff; }
.packages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .packages__grid {
    grid-template-columns: 1fr;
  }
}
.packages__subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
/* ─── Add New Package Form Styling ─── */
.packages__form-group {
  margin-bottom: 1.25rem;
}

.packages__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #343a40;
}

.packages__input,
.packages__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #212529;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.packages__input:focus,
.packages__textarea:focus {
  border-color: #e91e63;
  box-shadow: 0 0 0 0.15rem rgba(233,30,99,0.25);
  outline: none;
}

.packages__textarea {
  min-height: 100px;
  resize: vertical;
}

.packages__btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #e91e63;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.packages__btn:hover {
  background-color: #d81b60;
  transform: translateY(-1px);
}

/* Responsive: full width on small screens */
@media (max-width: 600px) {
  .packages__form-section {
    padding: 1rem;
  }
  .packages__btn {
    width: 100%;
    text-align: center;
  }
}



/* ─── Existing Packages Section ─── */
.packages__list-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 2rem;
}

/* Table wrapper gets a subtle frame */
.packages__table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

/* Improve table look */
.packages__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;     /* space between rows */
}
.packages__table thead th {
  background: transparent;
  color: #555;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: none;
}
.packages__table tbody tr {
  background: var(--clr-light);
  transition: background 0.2s;
}
.packages__table tbody tr:hover {
  background: #ffffff;
}
.packages__table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border: none;
}

/* Zebra striping via nth-child */
.packages__table tbody tr:nth-child(odd) {
  background: #fdfdfd;
}

/* Status badge tweaks */
.badge {
  padding: 0.35em 0.65em;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.badge--success { background: #28a74533; color: #28a745; }
.badge--muted   { background: #6c757d33; color: #6c757d; }

/* Action buttons: consistent size + hover states */
.packages__actions .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 20px;
  margin-bottom: 0.25rem;
  display: inline-block;
  transition: transform 0.1s;
}
.packages__actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Make table responsive: stack cells on small screens */
@media (max-width: 600px) {
  .packages__table thead { display: none; }
  .packages__table, 
  .packages__table tbody, 
  .packages__table tr, 
  .packages__table td {
    display: block;
    width: 100%;
  }
  .packages__table tr {
    margin-bottom: 1rem;
  }
  .packages__table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .packages__table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: calc(50% - 2rem);
    text-align: left;
    font-weight: 600;
    color: #444;
  }
}

.badge--success { background: var(--clr-success); color: #fff; }
.badge--muted   { background: var(--clr-muted);   color: #fff; }
.packages__actions .btn {
  margin-right: 0.5rem;
  text-decoration: none;
  font-size: var(--fs-base);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn--success { background: var(--clr-success); color: #fff; }
.btn--warning { background: var(--clr-warning); color: var(--clr-dark); }
.btn--error   { background: var(--clr-error);   color: #fff; }



/*----USER PROFILE PAGE---*/
.profile-section {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.profile-info {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-picture {
    margin-bottom: 20px;
    text-align: center;
}

.profile-picture img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 5px solid #ff6b6b;
}

.profile-details p {
    margin-bottom: 10px;
}

.posts-section {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.post-item {
    position: relative;
}

.post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.delete-post {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.delete-post:hover {
    background-color: #c82333;
}

.upload-form {
    margin-bottom: 20px;
}
/* Hide the native file selector button */
input[type="file"] {
  /* make the entire input fill its container */
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0.5rem auto 1rem;
  padding: 0;
  border: none;
  cursor: pointer;
}

/* Style the “Choose file” button itself */
input[type="file"]::-webkit-file-upload-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #0056b3;
}

/* Firefox */
input[type="file"]::-moz-file-upload-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s ease;
}

input[type="file"]::-moz-file-upload-button:hover {
  background-color: #0056b3;
}

/* Edge */
input[type="file"]::-ms-browse {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s ease;
}
input[type="file"]::-ms-browse:hover {
  background-color: #0056b3;
}





/*USER subscription and package*/
.subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.subscription-container .subtitle {
    text-align: center;
    color: #777;
    font-size: 16px;
    margin-bottom: 30px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.package-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-header {
    padding: 20px;
    background: #e91e63;
    color: white;
    text-align: center;
}

.package-header h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.package-price {
    font-size: 24px;
    font-weight: bold;
}


.package-price .duration {
    display: block;
    font-size: 14px;
    font-weight: normal;
}

.package-features {
    padding: 20px;
    font-size: 14px;
    color: #555;
    flex-grow: 1;
}

.package-features ul {
    list-style: none;
    padding-left: 0;
}

.package-features ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.package-features ul li:nth-child(1)::before {
    content: '\f2bd'; /* fa-user */
    color: #2196f3;
}

.package-features ul li:nth-child(2)::before {
    content: '\f03e'; /* fa-image */
    color: #9c27b0;
}

.package-features ul li:nth-child(3)::before {
    content: '\f095'; /* fa-phone */
    color: #4caf50;
}

.package-features ul li:nth-child(4)::before {
    content: '\f005'; /* fa-star */
    color: #ffc107;
}

.package-features ul li:nth-child(5)::before {
    content: '\f0f3'; /* fa-bell */
    color: #ff5722;
}

.package-features ul li::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
}

.package-form {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

.subscribe-btn {
    background: #e91e63;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.subscribe-btn span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 4px;
    color: #000;
}

.subscribe-btn:hover {
    background: #1ebe57;
    transform: scale(1.03);
}

.payment-info {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.payment-info h3 {
    color: #e91e63;
    margin-bottom: 15px;
    text-align: center;
}

.payment-info ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.payment-info strong {
    color: #c2185b;
}



/* CSS: add to your stylesheet */
.admin-users {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Inter', sans-serif;
}
.admin-users__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}
.admin-users__container {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.admin-users__form {
  display: flex;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}
.admin-users__form-input {
  
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}
.admin-users__form-btn {
  padding: 0 1rem;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
}
.admin-users__table-wrapper {
  overflow-x: auto;
}
.admin-users__table {
  width: 100%;
  border-collapse: collapse;
}
.admin-users__table th,
.admin-users__table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.admin-users__table th {
  background: #f9f9f9;
}
.admin-users__status {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  color: #fff;
}
.admin-users__status--active { background: #28a745; }
.admin-users__status--inactive { background: #dc3545; }
.admin-users__actions .btn {
  margin-right: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
}
.btn--success { background: #28a745; }
.btn--warning { background: #ffc107; color: #333; }
.btn--danger  { background: #dc3545; }
.admin-users__actions .btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* Admin styles */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
    margin-top: 20px;
    color: #222;
}

.dashboard {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}
.dashboard__header {
  text-align: center;
  margin-bottom: 2rem;
}
.dashboard__title {
  font-size: 2.5rem;
  margin: 0;
  color: #333;
}
.alert {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
}
.alert--success { background: #e6ffed; color: #2d8a3f; }

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.stat-card__icon {
  font-size: 2.5rem;
  color: #e91e63;
}
.stat-card__label {
  font-size: 1rem;
  color: #777;
  margin: 0;
}
.stat-card__value {
  font-size: 1.75rem;
  margin: 0;
  color: #333;
}
.stat-card--revenue .stat-card__icon,
.stat-card--revenue .stat-card__value {
  color: #28a745;
}

.admin-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.admin-action-btn {
  background: #e91e63;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}
.admin-action-btn:hover {
  background: #d81b60;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .admin-actions {
    flex-direction: column;
  }
  .admin-action-btn {
    width: 100%;
    text-align: center;
  }
}


.alert.success {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
    padding: 10px 20px;
    color: #155724;
    margin: 20px auto;
    width: fit-content;
    border-radius: 5px;
}

.alert.error {
    display: table;           /* tables shrink to contents by default */
    margin: 20px auto;        /* and center with auto margins */
    background-color: #d4edda;
    border-left: 5px solid #28a745;
    padding: 10px 20px;
    color: #155724;
    margin: 20px auto;
    width: fit-content;
    border-radius: 5px;
}



.users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.users-table th, .users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.users-table th {
    background-color: #ff6b6b;
    color: white;
}

.users-table tr:hover {
    background-color: #f9f9f9;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn.success {
    background-color: #28a745;
}

.btn.success:hover {
    background-color: #218838;
}

/* Responsive styles */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
    }
    
    .users-table {
        display: block;
        overflow-x: auto;
    }
    

/>