:root {
  --pickla-pink-100:  #fdb2de;
  --pickla-blue-100:  #4d57b1;
  --pickla-red-100:   #df2b44;
  --pickla-green-100: #07bdb1;
  --pickla-orange-100:#ffc59a;
  --pickla-yellow-100:#faed8f;

  --pickla-pink-75:   #fdbce3;
  --pickla-pink-50:   #fdcde9;
  --pickla-pink-25:   #fde3f2;

  --pickla-blue-75:   #6971c0;
  --pickla-blue-50:   #8e95d4;
  --pickla-blue-25:   #bcbfe7;

  --pickla-red-75:    #e25b6a;
  --pickla-red-50:    #e98a92;
  --pickla-red-25:    #f2c2c4;

  --pickla-green-75:  #2fcabe;
  --pickla-green-50:  #64dad3;
  --pickla-green-25:  #a7ece9;

  --pickla-orange-75: #ffd1ab;
  --pickla-orange-50: #ffe0c3;
  --pickla-orange-25: #fff0e3;

  --pickla-yellow-75: #fbedaa;
  --pickla-yellow-50: #fdf1c9;
  --pickla-yellow-25: #fef9e8;

  --pickla-primary: var(--pickla-blue-100);
  --pickla-success: var(--pickla-green-100);
  --pickla-danger:  var(--pickla-red-100);
  --pickla-warning: var(--pickla-orange-100);
  --pickla-info:    var(--pickla-pink-100);

   --slicer-radius: .5rem;
  --slicer-blue: #4852a3;
  --slicer-blue-dark: #23264a;
  --slicer-highlight: #fff;
  
  /* Status bar blur variables */
  --status-bar-blur: none;
  --status-bar-bg: transparent;
}
html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #4857b3 0%, #4ebaa5 100%);
  min-height: 100vh;
}


/* ==== Slicer Toggle ==== */

.slicer-outer {
  background: var(--slicer-blue);
  padding: 5px;
  border-radius: var(--slicer-radius);
  margin-bottom: 22px;
  box-shadow: 0 1px 8px #0001;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.slicer-wrap {
  display: flex;
  position: relative;
  background: var(--slicer-blue);
  border-radius: var(--slicer-radius);
  height: 34px;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.slicer-radio { display: none; }

.slicer-label {
  flex: 1;
  padding: 5px 0 5px 0;
  text-align: center;
  font-size: .95rem;
  color: #d2d3ee;
  cursor: pointer;
  border-radius: var(--slicer-radius);
  font-weight: 400;
  position: relative;
  z-index: 2;
  user-select: none;
  letter-spacing: .01em;
  transition: color 0.14s;
}

.slicer-radio:checked + .slicer-label {
  color: #23264a;
  font-weight: 500;
}

.slicer-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: calc(50% - 4px); height: 30px;
  background: #fff;
  border-radius: var(--slicer-radius);
  z-index: 1;
  transition: left 0.22s cubic-bezier(.7,0,.2,1);
  box-shadow: 0 1px 6px #0001;
}

#slicer-redeem:checked ~ .slicer-slider { 
  left: calc(50% - 2px) !important; 
}

.wallet-ledger-row { border-bottom: 1px solid #333857; }
.wallet-ledger-row.no-border { border-bottom: none !important; }
.ledger-secondary-text.small { font-size: 0.85rem; }

/* ==== Base Dashboard ==== */
body.wallet-dashboard, html.wallet-dashboard {
  min-height: 100vh;
  background: linear-gradient(160deg, #4d57b1 0%, #24284b 100%);
  color: white;
  font-family: 'Helvetica Neue', sans-serif;
  padding-bottom: 80px;
  margin: 0;
}

/* ==== Top Bar ==== */
.wallet-topbar {
  background-color: var(--status-bar-bg);
  backdrop-filter: var(--status-bar-blur);
  -webkit-backdrop-filter: var(--status-bar-blur);
  height: 100px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.wallet-avatar {
  width: 44px;
  height: 44px;
  background: #3c3c3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  user-select: none;
}

/* ==== Token Summary ==== */
.wallet-token-plain {
  margin-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}


.wallet-token-amount {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.wallet-token-sek {
  font-size: 1.1rem;
  color: #fff;
}

/* ==== Page Layout ==== */
.wallet-body {
  min-height: 100vh;
  padding-bottom: 80px; /* Leave space for the navbar */
  /* Remove max-width here, let .container handle that */
  background: transparent; /* Inherit gradient from body */
  overflow-y: auto;
}

/* ==== Navigation Bar ==== */
.wallet-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 110px; /* ⬆️ Increased for iPhone safe area */
  background-color: rgba(0, 0, 0, 1.0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid #000;
  padding: 0;
  margin: 0;
}

/* Hide navigation on member form pages */
.member-form-page .wallet-nav {
  display: none;
}

.wallet-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #aaa;
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-10px); /* ⬆️ Lift content up */
}

.wallet-nav-item i {
  font-size: 28px;
  margin-bottom: 2px;
}

.wallet-nav-item small {
  font-size: 11px;
}

.wallet-nav-item.active,
.wallet-nav-item:hover {
  color: #fff;
  font-weight: 500;
}


/* ==== Ledger / Transactions Box ==== */
.wallet-ledger-wrapper {
  background-color: #1E2338;
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem auto;       /* Auto-center horizontally */
  width: 100%;             /* Full width of parent */
  max-width: 440px;        /* Limit to 600px */
  box-sizing: border-box;  /* Respect padding inside width */
}



/* Header Link */
.ledger-header a {
  font-size: 0.85rem;
  color: #ccc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Ledger Row Layout */

.wallet-ledger-row {
  border-bottom: 1px solid #444; /* adjust this grey to match settings */
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wallet-ledger-row.no-border {
  border-bottom: none;
}

.wallet-address-tiny {
  font-size: 10px;
  color: #bbb;
  word-break: break-all;
}


/* Ledger Row Columns */
.ledger-icon {
  font-size: 20px;
  color: #aaa;
  margin-top: 3px;
  width: 24px;
}

.ledger-primary-text {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.ledger-secondary-text {
  color: #bbb;
  font-size: 12px;
  margin-top: 2px;
}

/* Ledger Container for 5 rows */
.ledger-cards-container {
  background-color: rgba(49, 56, 119, 0.8);
  border-radius: 16px;
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==== Bootstrap Overrides ==== */
.bg-primary, .btn-primary, .badge-primary, .alert-primary, .border-primary {
  background-color: var(--pickla-blue-100) !important;
  border-color: var(--pickla-blue-100) !important;
  color: white !important;
}

.text-primary { color: var(--pickla-blue-100) !important; }

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--pickla-blue-75) !important;
  border-color: var(--pickla-blue-75) !important;
}

.btn-success, .bg-success {
  background-color: var(--pickla-green-100) !important;
  border-color: var(--pickla-green-100) !important;
  color: white !important;
}

.text-success { color: var(--pickla-green-100) !important; }

.btn-danger, .bg-danger {
  background-color: var(--pickla-red-100) !important;
  border-color: var(--pickla-red-100) !important;
  color: white !important;
}

.text-danger { color: var(--pickla-red-100) !important; }

.btn-warning, .bg-warning {
  background-color: var(--pickla-orange-100) !important;
  border-color: var(--pickla-orange-100) !important;
  color: black !important;
}

.text-warning { color: var(--pickla-orange-100) !important; }

.btn-info, .bg-info {
  background-color: var(--pickla-pink-100) !important;
  border-color: var(--pickla-pink-100) !important;
  color: black !important;
}

.text-info { color: var(--pickla-pink-100) !important; }

.bg-light {
  background-color: var(--pickla-yellow-25) !important;
  color: black !important;
}

.bg-dark {
  background-color: black !important;
  color: white !important;
}

.text-light { color: white !important; }
.text-dark { color: black !important; }

.form-control:focus,
.form-select:focus {
  border-color: var(--pickla-blue-75);
  box-shadow: 0 0 0 0.2rem rgba(77, 87, 177, 0.25);
}
.wallet-view-toggle a {
  text-decoration: none;
  color: white;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.wallet-view-toggle a.opacity-100 {
  opacity: 1;
}

.wallet-view-toggle a:hover {
  opacity: 0.8;
}

.border-bottom {
  border-color: #444 !important; /* override Bootstrap light border */
}

.wallet-ledger-row {
  border-bottom: none;
}
.wallet-ledger-row.border-bottom {
  border-bottom: 1px solid #aaa; /* or your divider color */
}

.wallet-ledger-row {
  border-bottom: 1px solid #333857;
}
.wallet-ledger-row.no-border {
  border-bottom: none !important;
}
.tx-amount-green {
  color: var(--pickla-green-100);
  font-weight: 600;
}
.tx-amount-red {
  color: var(--pickla-red-100);
  font-weight: 600;
}

.fop-index-logo {
  max-width: 300px;
  width: 100%;
  display: block;
  margin: 0 auto 2.5rem auto; /* More space below logo */
}
.fop-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(2.5px);
  color: #fff;
  margin-bottom: 1.4rem;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  transition: box-shadow 0.2s;
}
.fop-card h5 {
  font-weight: 700;
}
.fop-actions .btn {
  min-width: 140px;
  border-radius: 1.6rem;
  font-weight: 500;
}
.fop-card .bi {
  font-size: 1.5rem;
  opacity: 0.86;
  margin-bottom: 0.5rem;
}
@media (max-width: 480px) {
  .fop-card { padding: 1.1rem 0.7rem; }
}
.fop-card .form-control {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 1.2px solid #dbe2fa;
  border-radius: 0.8rem;
  font-size: 1rem;
  box-shadow: none;
  backdrop-filter: blur(2.5px);
  transition: border-color 0.18s, background 0.18s;
}

.fop-card .form-control::placeholder {
  color: #e8ecf8;
  opacity: 1;
}

.fop-card .form-control:focus {
  background: rgba(255,255,255,0.38);
  color: #21317c;
  border-color: #4d57b1;
  box-shadow: 0 0 0 0.09rem #4d57b155;
  outline: none;
}
.my-logo-spacing {

  display: block;
  max-width: 300px;
  width: 100%;
}

.back-home-link {
      color: #fff !important;
      text-decoration: none;
      font-size: 1.08rem;
      font-weight: 500;
      opacity: 0.96;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      margin-bottom: 1.5rem;
      transition: color 0.18s;
    }
.back-home-link:hover { color: #b8c8fc !important; }
.login-forgot-link { color: #fff !important; text-decoration: underline; }
.login-powered-by { color: #fff !important; opacity: 0.75; }
@media (max-width: 600px) {
  .back-home-link { font-size: 0.99rem; margin-bottom: 1.1rem;}
}
.btn-wallet-blue {
  background: #4d57b1;
  border-color: #4d57b1;
  color: #fff;
}
.btn-wallet-blue:hover,
.btn-wallet-blue:focus {
  background: #394093;
  border-color: #394093;
  color: #fff;
}
.fop-main-container {
  min-height: 110vh;  /* Or try 115vh, 120vh for more */
  padding-bottom: 4rem; /* Add more if needed */
}
html, body {

  height: auto;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
body {
  background: linear-gradient(135deg, #4857b3 0%, #4ebaa5 100%);
  min-height: 100vh;
  min-height: 100dvh; /* Mobile Safari support */
}
.fop-index-logo {
  margin-top: 30px;
  margin-bottom: 30px;
  width: 120px;
  max-width: 75vw;
  display: block;
}
.fop-container-main {
  min-height: 100vh;
  max-width: 440px;
  padding-bottom: 3.5rem;
  /* Ensures background follows container height */
}
.fop-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(2.5px);
  color: #fff;
  margin-bottom: 1.4rem;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  flex: 1 1 0;
  min-height: 350px;
  height: 100%;
}
.fop-card--autoheight {
  min-height: unset !important;
  height: auto !important;
  width: 440px !important;
  max-width: 100%;
}
.fop-card-btn-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.fop-actions .btn {
  min-width: 140px;
}
.fop-bottom-text {
  color: #fff;
  opacity: 0.7;
  margin-bottom: 50px;
  margin-top: 1rem;
}
.logo-padding-vertical {
  padding-top: 80px;
  padding-bottom: 50px;
}
.fop-main-responsive-container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (max-width: 1024px) {
  .fop-main-responsive-container {
    max-width: 100vw;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.fop-join-btn {
  border-radius: 1.6rem !important;
  font-weight: 500;
}
.fop-card .fop-join-btn {
  margin-top: auto;
}
.fop-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 767px) {
  .fop-cards-grid {
    flex-direction: column;
    gap: 1rem;
    padding: 0 15px;
  }
  .fop-card {
    width: 100%;
    margin-right: 0;
    height: auto;
    min-height: auto;
  }
  
  .fop-card h5 {
    font-size: 1.4rem !important;
    text-align: center !important;
    margin-bottom: 0.75rem !important;
  }
  
  .fop-card .mb-2 {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    min-height: auto !important;
  }
  
  .fop-card .mb-2.text-start {
    text-align: left !important;
  }
  
  .fop-card .bi {
    font-size: 2.2rem !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
  }
  
  .fop-card-btn-bottom {
    margin-top: 1rem !important;
  }
  
  .fop-card .fop-join-btn {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  /* Image cards same size as other cards */
  .fop-card.fop-card-image-only {
    width: 100% !important;
    min-height: 338px !important;
    padding: 1rem 0.8rem !important;
    margin: 0 auto !important;
  }
}
@media (min-width: 768px) {
  .fop-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
    min-width: 300px;
    margin: 0;
    height: 100%;
  }
  .fop-card.fop-card--autoheight {
    height: auto !important;
    flex: 0 0 auto !important;
    min-width: 440px !important;
    width: 440px !important;
  }
}
.fop-card .btn i {
  margin-bottom: 0 !important;
}
.fop-card .mb-2 {
  min-height: 64px;
}

/* === ADMIN THEME OVERRIDES === */
.admin-dashboard, .admin-dashboard body {
  background: linear-gradient(180deg, #1e1e1e 0%, #2d2d30 100%) !important;
  color: #fff !important;
}
.admin-nav {
  background: rgba(30, 30, 30, 0.95) !important;
  border-top: 1px solid #3c3c3c !important;
}
.admin-nav .wallet-nav-item {
  color: #fff !important;
}
.admin-nav .wallet-nav-item.active {
  background: #3c3c3c !important;
  color: #fff !important;
  border-radius: 1.5rem;
}
.admin-card {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border-radius: 1.2rem;
  padding: 15px 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .admin-card {
    padding: 15px 20px !important;
  }
  
  /* Adjust container padding on mobile for admin dashboard */
  .admin-dashboard .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
  
  /* Adjust grid gap on mobile for admin dashboard */
  .admin-dashboard.dashboard-page .row.g-3 {
    --bs-gutter-x: 20px !important;
    --bs-gutter-y: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Remove column padding on mobile for admin dashboard */
  .admin-dashboard .col-12,
  .admin-dashboard .col-sm-6,
  .admin-dashboard .col-lg-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Remove any remaining gaps from wallet-body */
  .admin-dashboard .wallet-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Force edge-to-edge on mobile for admin dashboard */
  .admin-dashboard {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .admin-dashboard body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Adjust container padding on mobile for admin dashboard */
  .admin-dashboard .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Make text content bigger on mobile for admin dashboard */
  .admin-dashboard .admin-card .fw-bold {
    font-size: 2.5rem !important;
  }
  
  .admin-dashboard .admin-card .display-4 {
    font-size: 5rem !important;
  }
  
  .admin-dashboard .admin-card .text-white-50 {
    font-size: 1.5rem !important;
  }
  
  /* Dashboard stats padding on mobile - override admin-card padding */
  .admin-dashboard.dashboard-page .admin-card.admin-stat-square {
    padding: 18px !important;
  }
  
  /* Make dashboard cards 2-column layout on mobile */
  @media (max-width: 768px) {
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square {
      padding: 12px 16px !important;
      min-height: auto !important;
      height: auto !important;
      aspect-ratio: auto !important;
      width: 100% !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
    }
    
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square .fw-bold {
      font-size: 0.9rem !important;
      margin-bottom: 2px !important;
      text-align: left !important;
    }
    
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square .display-4 {
      font-size: 1.4rem !important;
      line-height: 1.1 !important;
      margin-bottom: 0 !important;
      text-align: right !important;
    }
    
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square .text-white-50 {
      font-size: 0.7rem !important;
      margin-bottom: 0 !important;
      text-align: left !important;
    }
    
    /* 2-column layout: left side (title + description), right side (value) */
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      text-align: left !important;
    }
    
    /* Left column container: title and description stacked */
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square .dashboard-left-content {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      flex: 1 !important;
      text-align: left !important;
    }
    
    /* Right column: value */
    .admin-dashboard.dashboard-page .admin-card.admin-stat-square .display-4 {
      flex-shrink: 0 !important;
      margin-left: 10px !important;
      text-align: right !important;
    }
  }
  
  /* Reset font sizes for member list to prevent dashboard styles from affecting it */
  .admin-members-list-wrapper .admin-card .fw-bold {
    font-size: 1.1rem !important;
  }
  
  .admin-members-list-wrapper .admin-card .text-white-50 {
    font-size: 0.875rem !important;
  }
  
  /* Full screen member list on mobile */
  .admin-members-list-wrapper {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 1.3rem 1.3rem 0 0 !important;
  }
  
  .admin-members-list-wrapper.row {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .admin-members-list-wrapper .admin-card {
    border-radius: 0 !important;
  }
  
  /* Full screen community list on mobile */
  .admin-communities-list-wrapper {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 1.3rem 1.3rem 0 0 !important;
  }
  
  .admin-communities-list-wrapper.row {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 1.3rem 1.3rem 0 0 !important;
    background: rgba(45, 45, 48, 0.92) !important;
  }
  
  .admin-communities-list-wrapper .admin-card {
    border-radius: 0 !important;
  }
  
  /* Dashboard container padding - only for dashboard page */
  .admin-dashboard.dashboard-page .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Remove all container padding for members page */
  .admin-dashboard.members-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Remove all container padding for communities page */
  .admin-dashboard.communities-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Remove all container padding for transactions page */
  .admin-dashboard.transactions-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Remove any remaining gaps for members page */
  .admin-dashboard.members-page .wallet-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-dashboard.communities-page .wallet-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.admin-dashboard.transactions-page .wallet-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
  
  .admin-dashboard.members-page .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .admin-dashboard.members-page .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Remove any remaining gaps */
  .admin-dashboard .wallet-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Force full width on mobile */
  .admin-dashboard .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .admin-dashboard .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Member form full width on mobile */
  .member-form-page .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .member-form-page .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .member-form-page .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .member-form-page form {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 15px !important;
  }
  
  /* Community form full width on mobile */
  .community-form-page .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .community-form-page .row.g-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .community-form-page .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .community-form-page form {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 15px !important;
  }
}
.admin-btn-primary {
  background: #3c3c3c !important;
  border-color: #5a5a5a !important;
  color: #fff !important;
}
.admin-btn-primary:hover {
  background: #5a5a5a !important;
  color: #fff !important;
}

/* Admin stat square: fixed 1:1 aspect ratio, responsive */
.admin-stat-square {
  aspect-ratio: 1 / 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
@supports not (aspect-ratio: 1 / 1) {
  .admin-stat-square {
    position: relative;
    width: 100%;
    padding-top: 100%; /* fallback for 1:1 */
  }
  .admin-stat-square > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
.admin-avatar {
  width: 44px;
  height: 44px;
  background: #3c3c3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  user-select: none;
}
.admin-members-list-wrapper {
  background: rgba(45, 45, 48, 0.92);
  border-radius: 1.3rem;
  box-shadow: 0 4px 24px #0003;
  padding: 0;
  margin-top: 2.2rem;
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Center the container on screen */
.admin-members-list-wrapper.row {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 600px !important;
}

/* Add dividing lines between member list items */
.admin-members-list-wrapper .col-12 .admin-card {
  position: relative;
  padding-bottom: 1rem !important;
  --show-divider: none;
}

.admin-members-list-wrapper .col-12 .admin-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  display: var(--show-divider);
}

/* Default state - show dividers for all except last */
.admin-members-list-wrapper .col-12:not(:last-child) .admin-card {
  --show-divider: block;
}

.admin-members-list-wrapper .col-12:last-child .admin-card {
  padding-bottom: 0.75rem !important;
  --show-divider: none;
}

/* Make member list rows match the wrapper background */
.admin-members-list-wrapper .admin-card {
  background: rgba(45, 45, 48, 0.92) !important;
  border: none !important;
}

/* === COMMUNITIES LIST STYLES === */
.admin-communities-list-wrapper.row {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 600px !important;
  background: rgba(45, 45, 48, 0.92) !important;
  border-radius: 1.3rem !important;
}

/* Add dividing lines between community list items */
.admin-communities-list-wrapper .col-12 .admin-card {
  position: relative;
  padding-bottom: 1rem !important;
  --show-divider: none;
}

.admin-communities-list-wrapper .col-12 .admin-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  display: var(--show-divider);
}

/* Default state - show dividers for all except last */
.admin-communities-list-wrapper .col-12:not(:last-child) .admin-card {
  --show-divider: block;
}

.admin-communities-list-wrapper .col-12:last-child .admin-card {
  padding-bottom: 0.75rem !important;
  --show-divider: none;
}

/* Make community list rows match the wrapper background */
.admin-communities-list-wrapper .admin-card {
  background: rgba(45, 45, 48, 0.92) !important;
  border: none !important;
}



/* Reset font sizes for community list to prevent dashboard styles from affecting it */
.admin-communities-list-wrapper .admin-card .fw-bold {
  font-size: 1rem !important;
}

.admin-communities-list-wrapper .admin-card .text-white-50 {
  font-size: 0.875rem !important;
}

/* Mobile styles for communities page */
@media (max-width: 768px) {
  .admin-communities-list-wrapper {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 1.3rem 1.3rem 0 0 !important;
  }
  
  .admin-communities-list-wrapper .admin-card .fw-bold {
    font-size: 1.1rem !important;
  }
  
  .admin-communities-list-wrapper .admin-card .text-white-50 {
    font-size: 0.875rem !important;
  }
  
  .admin-communities-list-wrapper .admin-card .small {
    font-size: 0.8rem !important;
  }
}



/* === MEMBER FORM STYLES === */
/* Common container styling for view and edit modes */
.view-mode,
.member-form-edit {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.3rem;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  display: block;
}

/* Read mode - remove borders, more grey text */
.view-mode .form-control:read-only,
.view-mode .form-control:disabled,
.view-mode select:disabled {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: not-allowed;
}

.view-mode .form-check-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.view-mode .form-label {
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 500;
}

/* Edit mode - white background, black text */
.member-form-edit .form-control,
.member-form-edit select,
.admin-card form .form-control,
.admin-card form select {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background-color: #fff !important;
  color: #000 !important;
}

.member-form-edit .form-control:focus,
.member-form-edit select:focus,
.admin-card form .form-control:focus,
.admin-card form select:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: #fff !important;
  color: #000 !important;
}

/* Edit mode notification - outside container */
.edit-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 167, 69, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  animation: fadeInOut 3s ease-in-out;
}

/* Save notification */
.save-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 167, 69, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  10% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
.admin-filter-input {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff3 !important;
  box-shadow: none !important;
}

/* Add spacing after search form in transactions */
.admin-transactions-list-wrapper form {
  margin-bottom: 1.5rem;
}

/* Ensure search form section has same background */
.admin-transactions-list-wrapper .px-3.pt-3.pb-2 {
  background: rgba(45, 45, 48, 0.92);
}

/* Override admin-filter-input for forms in admin cards */
.admin-card form .admin-filter-input,
.admin-dashboard .admin-card form .admin-filter-input,
body.admin-dashboard .admin-card form .admin-filter-input {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.admin-card form .admin-filter-input:focus,
.admin-dashboard .admin-card form .admin-filter-input:focus,
body.admin-dashboard .admin-card form .admin-filter-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: #fff !important;
  color: #000 !important;
}

/* Admin Transactions Page Styles */
.admin-transactions-list-wrapper {
  background: rgba(45, 45, 48, 0.92);
  border-radius: 1.3rem;
  box-shadow: 0 4px 24px #0003;
  padding: 0;
  margin-top: 2.2rem;
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Mobile styles for transactions page */
@media (max-width: 768px) {
  .admin-transactions-list-wrapper {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 1.3rem 1.3rem 0 0 !important;
  }
  
  .admin-transactions-list-wrapper .admin-card .fw-bold {
    font-size: 1.1rem !important;
  }
  
  .admin-transactions-list-wrapper .admin-card .text-white-50 {
    font-size: 0.875rem !important;
  }
  
  .admin-transactions-list-wrapper .admin-card .small {
    font-size: 0.8rem !important;
  }
  
  .admin-view-toggle .small {
    font-size: 0.8rem !important;
  }
  
  .admin-view-toggle .fs-4 {
    font-size: 1.2rem !important;
  }
}

/* Center the container on screen */
.admin-transactions-list-wrapper.row {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 600px !important;
}

.admin-transactions-list-wrapper .admin-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  border-radius: 0;
}

.admin-transactions-list-wrapper .admin-card:last-child {
  border-bottom: none;
}

.transaction-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
}

/* Transaction amount colors */
.tx-amount-green {
  color: #28a745 !important;
}

.tx-amount-red {
  color: #dc3545 !important;
}

/* Admin view toggle */
.admin-view-toggle {
  margin-bottom: 1.5rem;
  background: rgba(45, 45, 48, 0.92);
}

.admin-view-toggle a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.admin-view-toggle a:hover {
  opacity: 0.8 !important;
}

/* Slicer styles (for approval section) */
.slicer-outer {
  background: var(--slicer-blue);
  padding: 5px;
  border-radius: var(--slicer-radius);
  margin-bottom: 22px;
  box-shadow: 0 1px 8px #0001;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.slicer-wrap {
  display: flex;
  position: relative;
  background: var(--slicer-blue);
  border-radius: var(--slicer-radius);
  height: 34px;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.slicer-radio { 
  display: none; 
}

.slicer-label {
  flex: 1;
  padding: 5px 0 5px 0;
  text-align: center;
  font-size: .95rem;
  color: #d2d3ee;
  cursor: pointer;
  border-radius: var(--slicer-radius);
  font-weight: 400;
  position: relative;
  z-index: 2;
  user-select: none;
  letter-spacing: .01em;
  transition: color 0.14s;
}

.slicer-radio:checked + .slicer-label {
  color: #23264a;
  font-weight: 500;
}

.slicer-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: calc(50% - 4px); height: 30px;
  background: #fff;
  border-radius: var(--slicer-radius);
  z-index: 1;
  transition: left 0.22s cubic-bezier(.7,0,.2,1);
  box-shadow: 0 1px 6px #0001;
}

/* Remove conflicting rule that might interfere with redemption slider */
/* .slicer-radio:nth-child(3):checked ~ .slicer-slider {
  transform: translateX(100%);
} */

/* Admin-specific slicer styles */
.admin-slicer-outer {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.admin-slicer-wrap {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 4px;
  max-width: 300px;
  margin: 0 auto;
}

.admin-slicer-radio {
  display: none;
}

.admin-slicer-label {
  flex: 1;
  text-align: center;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}

.admin-slicer-radio:checked + .admin-slicer-label {
  color: #000 !important;
  background: #fff !important;
  font-weight: 600;
}

/* More specific override for admin slider text */
.admin-slicer-outer .admin-slicer-wrap .admin-slicer-radio:checked + .admin-slicer-label {
  color: #000 !important;
  background: #fff !important;
}

/* Even more specific with body context */
body .admin-slicer-outer .admin-slicer-wrap .admin-slicer-radio:checked + .admin-slicer-label {
  color: #000 !important;
  background: #fff !important;
}

/* Change text color when selected (white slider is over it) */
.admin-slicer-radio:checked + .admin-slicer-label {
  color: #000 !important;
  background: transparent !important;
  font-weight: 600;
}

.admin-slicer-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: #fff;
  border-radius: 20px;
  transition: left 0.3s ease;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-slicer-radio:nth-child(3):checked ~ .admin-slicer-slider {
  left: calc(50% + 2px);
}
.admin-filter-input::placeholder {
  color: #fff8 !important;
  opacity: 1;
}

/* ==== Wallet Notifications ==== */
.wallet-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 167, 69, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  animation: fadeInOut 3s ease-in-out;
}

.wallet-notification.error {
  background: rgba(220, 53, 69, 0.9);
}

.wallet-notification.warning {
  background: rgba(255, 193, 7, 0.9);
}

.wallet-notification.info {
  background: rgba(13, 202, 240, 0.9);
}

/* ==== FOP Bottom Action Bar ==== */
.fop-bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  z-index: 1000;
}

            .fop-action-link {
              display: flex;
              flex-direction: column;
              align-items: center;
              text-decoration: none;
              color: rgba(255, 255, 255, 0.7);
              font-size: 0.85rem;
              font-weight: 500;
              transition: all 0.2s ease;
              padding: 8px 12px;
              border-radius: 8px;
              width: 100px;
            }

.fop-action-link:hover {
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.fop-action-link i {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.fop-action-link span {
  font-size: 0.75rem;
  text-align: center;
}

/* Mobile optimizations for action bar */
@media (max-width: 768px) {
              .fop-bottom-action-bar {
              padding: 20px 0;
            }
  
              .fop-action-link {
              font-size: 0.8rem;
              padding: 8px 10px;
              width: 90px;
            }
  
              .fop-action-link i {
              font-size: 1.4rem;
              margin-bottom: 4px;
              margin-top: -2px;
            }
  
  .fop-action-link span {
    font-size: 0.7rem;
  }
}

/* ==== TOP ACTION BAR STYLES ==== */
.fop-top-action-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: transparent;
  transition: background 0.3s ease;
}

.fop-top-action-bar.scrolled {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
}

/* ==== RESPONSIVE CONTENT PADDING ==== */
.fop-main-responsive-container {
  padding-top: 100px; /* Mobile default */
}

@media (min-width: 768px) {
  .fop-main-responsive-container {
    padding-top: 200px; /* Desktop */
  }
}

.fop-logo-container {
  display: flex;
  align-items: center;
}

.fop-top-logo {
  height: 35px;
  transition: transform 0.2s ease;
}

.fop-top-logo:hover {
  transform: scale(1.05);
}

/* ==== HAMBURGER BUTTON ==== */
.fop-hamburger-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fop-hamburger-btn:hover {
  color: var(--pickla-blue-100);
  transform: scale(1.1);
}

/* ==== MOBILE MENU ==== */
.fop-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #4857b3 0%, #4ebaa5 100%) !important;
  background-color: #4857b3 !important;
  z-index: 9999;
  transform: translateX(100%);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  --status-bar-blur: none !important;
  --status-bar-bg: #4857b3 !important;
}

/* Force mobile menu to always have solid background regardless of scroll state */
.fop-mobile-menu,
.fop-mobile-menu.active,
.fop-mobile-menu-header,
.fop-mobile-menu-content {
  background: linear-gradient(135deg, #4857b3 0%, #4ebaa5 100%) !important;
  background-color: #4857b3 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  --status-bar-blur: none !important;
  --status-bar-bg: #4857b3 !important;
}

.fop-mobile-menu.active {
  transform: translateX(0);
}

.fop-mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
}

.fop-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fop-close-btn:hover {
  color: var(--pickla-red-100);
  transform: scale(1.1);
}

.fop-mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
}

.fop-mobile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 15px 25px;
  border-radius: 12px;
  min-width: 200px;
  text-align: center;
}

.fop-mobile-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.fop-mobile-link-primary {
  background: var(--pickla-blue-100);
  color: white;
}

.fop-mobile-link-primary:hover {
  background: var(--pickla-blue-75);
  color: white;
}

.fop-mobile-link i {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.fop-mobile-link span {
  font-size: 1rem;
}

/* ==== CARD IMAGE STYLES ==== */
.card-image-container {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pickla-blue-25), var(--pickla-green-25));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image:hover {
  transform: scale(1.05);
}

.card-fallback-icon {
  font-size: 3rem;
  color: var(--pickla-blue-100);
  opacity: 0.7;
}

/* ==== IMAGE ONLY CARDS ==== */
.fop-card-image-only {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.fop-card-image-only:hover {
  transform: scale(1.02);
}

/* Responsive adjustments for navbar */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    margin-top: 10px;
    padding: 15px;
  }
  
  .navbar-nav .btn-primary {
    margin-top: 10px;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .card-image-container {
    height: 100px;
  }
  
  .card-fallback-icon {
    font-size: 2.5rem;
  }
  
  .fop-cards-grid {
    padding: 0 10px;
    gap: 0.8rem;
  }
  
  .fop-card {
    padding: 1rem 0.8rem !important;
  }
  
  .fop-card h5 {
    font-size: 1.3rem !important;
  }
  
  .fop-card .mb-2 {
    font-size: 0.95rem !important;
  }
  
  .fop-card .mb-2.text-start {
    text-align: left !important;
  }
  
  .fop-card .bi {
    font-size: 2rem !important;
  }
  
  .fop-card .fop-join-btn {
    font-size: 0.95rem !important;
    padding: 0.6rem 1.2rem !important;
  }
  
  /* Image cards same size as other cards */
  .fop-card.fop-card-image-only {
    width: 100% !important;
    min-height: 338px !important;
    padding: 1rem 0.8rem !important;
    margin: 0 auto !important;
  }
}