* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 32, 139, 0.24), transparent 32%),
    radial-gradient(circle at 85% 75%, rgba(120, 20, 90, 0.18), transparent 35%),
    #050506;
}


.platform-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  text-align: center;
  color: #ff78b7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 2px;
}

.platform-business-name {
  display: block;
  position: static;
  width: 100%;
  margin-top: 16px;
  text-align: center;
  color: #f5dce8;
  font-size: 13px;
  letter-spacing: 5px;
}


.app-shell {
  width: min(92%, 650px);
  margin: 95px auto 50px;
}

.join-card,
.loyalty-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(255, 102, 176, 0.28);
  border-radius: 32px;
  background: rgba(18, 14, 19, 0.94);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 45px rgba(255, 44, 145, 0.08);
}

.join-card::before,
.loyalty-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  top: -120px;
  right: -90px;
  border-radius: 50%;
  background: rgba(255, 39, 139, 0.11);
  filter: blur(20px);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: #ff79b8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 62px);
  line-height: 0.98;
  letter-spacing: -2px;
}

h2 {
  margin: 5px 0 12px;
  font-size: 36px;
}

.intro,
.loyalty-card p {
  color: #cfc6cc;
  font-size: 18px;
  line-height: 1.55;
}

.intro {
  margin: 0 0 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  outline: none;
  background: #171419;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
}

input::placeholder {
  color: #8d858c;
}

input:focus {
  border-color: #ff4fa3;
  box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.12);
}

button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.primary-button {
  margin-top: 14px;
  padding: 18px;
  color: #090609;
  background: linear-gradient(135deg, #ff72ba, #f42d92);
  box-shadow: 0 10px 28px rgba(244, 45, 146, 0.25);
}

.staff-button {
  margin-top: 14px;
  padding: 17px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #211c21;
}

.primary-button:hover,
.staff-button:hover {
  transform: translateY(-1px);
}

#message {
  margin: 18px 0 0;
  color: #ff9bc9;
  text-align: center;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.loyalty-card {
  margin-top: 20px;
}

.hearts {
  margin: 28px 0;
  color: #ff4fa3;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 5px;
}

.reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0;
  padding: 22px;
  border: 1px solid rgba(255, 105, 180, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.reward strong {
  font-size: 18px;
}

.reward span {
  color: #ff78b7;
  font-size: 18px;
  font-weight: 800;
}

#stampCount {
  margin-top: 25px;
  text-align: center;
}

@media (max-width: 600px) {
  body::before {
    padding-top: 35px;
    font-size: 48px;
  }

  body::after {
    top: 92px;
    font-size: 10px;
    letter-spacing: 3px;
  }

  .app-shell {
    width: calc(100% - 30px);
    margin-top: 78px;
  }

  .join-card,
  .loyalty-card {
    padding: 27px 22px;
    border-radius: 26px;
  }

  h1 {
    font-size: 45px;
  }

  .intro {
    font-size: 17px;
  }

  .hearts {
    font-size: 29px;
    letter-spacing: 3px;
  }
}


/* STAFF DASHBOARD */

.staff-dashboard {
  max-width: 760px;
  margin: 32px auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 45, 145, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.staff-dashboard.hidden {
  display: none;
}

.staff-dashboard h2 {
  margin: 8px 0;
  font-size: 28px;
}

.staff-dashboard p {
  margin-bottom: 22px;
  opacity: 0.75;
}

#customerSearch {
  width: 100%;
  padding: 15px 18px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font: inherit;
  outline: none;
}

#customerSearch:focus {
  border-color: #ff2d91;
}

#customerSearch::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#customerList {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.customer-row {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-row strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.customer-row small {
  opacity: 0.65;
}

.customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.customer-actions button {
  flex: 1;
  min-width: 120px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.add-stamp-button {
  background: #ff2d91;
  color: white;
}

.redeem-button {
  background: #d6ad60;
  color: #111;
}

.customer-history {
  margin-top: 28px;
  text-align: left;
}

.customer-history h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.history-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.history-item:last-child {
  border-bottom: none;
}

.history-item strong {
  display: block;
  font-size: 0.95rem;
}

.history-item small {
  display: block;
  margin-top: 5px;
  opacity: 0.65;
  font-size: 0.8rem;
}

/* CUSTOMER LOYALTY DASHBOARD */

.customer-home {
  width: 100%;
}

.customer-welcome {
  margin-bottom: 24px;
}

.customer-welcome .eyebrow {
  margin-bottom: 14px;
}

.welcome-small {
  margin: 0 0 2px !important;
  color: #aaa0a7 !important;
  font-size: 14px !important;
}

.customer-welcome h2 {
  margin: 0;
  font-size: clamp(28px, 7vw, 40px);
}


/* DIGITAL LOYALTY CARD */

.digital-loyalty-card {
  position: relative;
  overflow: hidden;
  margin: 22px 0;
  padding: 26px 24px;
  border: 1px solid rgba(255, 120, 183, 0.35);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 92, 166, 0.24),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #25151f,
      #120e12 60%,
      #1c1018
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.digital-loyalty-card::after {
  content: "SC";
  position: absolute;
  right: 20px;
  bottom: -12px;
  color: rgba(255, 120, 183, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 90px;
  pointer-events: none;
}

.card-shine {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -100px;
  left: -70px;
  border-radius: 50%;
  background: rgba(255, 72, 158, 0.13);
  filter: blur(20px);
  pointer-events: none;
}

.card-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f9dce9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card-sparkle {
  font-size: 20px;
}

.digital-loyalty-card .hearts {
  position: relative;
  z-index: 1;
  margin: 26px 0 16px;
  color: #ff5ca8;
  font-size: clamp(27px, 7vw, 36px);
  line-height: 1.55;
  letter-spacing: 4px;
  text-align: center;
}

.digital-loyalty-card .card-progress {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  color: #f7e8ef !important;
  font-size: 14px !important;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}


/* NEXT REWARD */

.next-reward-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 105, 180, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.next-reward-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 79, 163, 0.12);
  font-size: 22px;
}

.next-reward-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.next-reward-text small {
  color: #968d93;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.next-reward-text strong {
  color: #ffffff;
  font-size: 16px;
}

.reward-arrow {
  color: #ff78b7;
  font-size: 30px;
}


/* REWARD MILESTONES */

.reward-milestones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.milestone-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 18px;
}

.milestone-reward .milestone-icon {
  margin-bottom: 4px;
  font-size: 20px;
}

.milestone-reward strong {
  font-size: 14px;
}

.milestone-reward > span:last-child {
  color: #ff78b7;
  font-size: 17px;
  font-weight: 800;
}


/* CUSTOMER NAVIGATION */

.customer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 30px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(9, 7, 9, 0.85);
}

.customer-nav .nav-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 10px 4px;
  border-radius: 15px;
  background: transparent;
  color: #817980;
  font-size: 18px;
}

.customer-nav .nav-item small {
  font-size: 10px;
  font-weight: 700;
}

.customer-nav .nav-item.active {
  background: rgba(255, 79, 163, 0.11);
  color: #ff78b7;
}


/* MOBILE CUSTOMER DASHBOARD */

@media (max-width: 600px) {
  .digital-loyalty-card {
    padding: 23px 17px;
  }

  .digital-loyalty-card .hearts {
    letter-spacing: 2px;
  }

  .reward-milestones {
    gap: 9px;
  }

  .milestone-reward {
    padding: 15px 12px;
  }

  .customer-nav {
    margin-top: 24px;
  }
}
/* CUSTOMER REWARDS PAGE */

.customer-page {
  width: 100%;
}

.customer-page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.customer-page-header .eyebrow {
  margin-bottom: 8px;
}

.customer-page-header h2 {
  margin: 0 0 6px;
  font-size: 32px;
}

.customer-page-header p {
  margin: 0;
  color: #9d949a;
  font-size: 15px;
}

.page-back-button {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: #ff78b7;
  font-size: 24px;
}


/* REWARD CARDS */

.customer-reward-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(255, 79, 163, 0.13),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.025);
}

.reward-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.reward-big-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 79, 163, 0.11);
  font-size: 26px;
}

.reward-status-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #aaa1a7;
  font-size: 12px;
  font-weight: 800;
}

.customer-reward-card > small {
  color: #a89fa5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.customer-reward-card h3 {
  margin: 8px 0 10px;
  color: #ff69ad;
  font-size: 32px;
}

.customer-reward-card > p {
  margin: 0;
  color: #aaa1a7;
  font-size: 14px;
  line-height: 1.5;
}


/* REWARD STATES */

.customer-reward-card.unlocked {
  border-color: rgba(255, 105, 180, 0.5);
  box-shadow: 0 0 35px rgba(255, 45, 145, 0.08);
}

.customer-reward-card.unlocked .reward-status-badge {
  border-color: rgba(255, 105, 180, 0.3);
  background: rgba(255, 79, 163, 0.12);
  color: #ff8bc1;
}

.customer-reward-card.redeemed {
  opacity: 0.75;
}

.customer-reward-card.redeemed .reward-status-badge {
  color: #e8d9e0;
}


/* REWARDS INFO NOTE */

.rewards-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 17px;
  border-radius: 18px;
  background: rgba(255, 79, 163, 0.06);
}

.rewards-note > span {
  font-size: 20px;
}

.rewards-note p {
  margin: 0;
  color: #a99fa5;
  font-size: 13px;
  line-height: 1.45;
}


/* MOBILE REWARDS PAGE */

@media (max-width: 600px) {
  .customer-page-header h2 {
    font-size: 28px;
  }

  .customer-reward-card {
    padding: 21px 18px;
  }

  .customer-reward-card h3 {
    font-size: 29px;
  }
}



/* Circular business logo */
#platformLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  padding: 0;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

#platformLogo img {
  display: block;
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Business logo cropping editor */
.logo-cropper {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 120, 183, 0.3);
  border-radius: 22px;
  background: #211720;
  text-align: center;
}

.logo-cropper h3 {
  color: #ff78b7;
  margin-bottom: 8px;
}

.logo-cropper p {
  color: #d6c6d0;
  font-size: 14px;
}

.logo-crop-frame {
  position: relative;
  width: 240px;
  height: 240px;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #ff78b7;
  background: #100c12;
  touch-action: none;
  cursor: grab;
}

.logo-crop-frame img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
}

#logoZoom {
  width: 100%;
  accent-color: #ff78b7;
}
/* Pretty login and signup switch */

#authSwitchText {
  margin-top: 22px;
  text-align: center;
  color: #d6cbd3;
  font-size: 14px;
  line-height: 1.8;
}

#authSwitchButton {
  display: inline;
  width: auto;
  min-width: 0;
  margin: 0 0 0 5px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #ff55ad;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#authSwitchButton:hover {
  color: #ff8dca;
}
/* Cute, compact Show Password checkbox */

label[for="showPassword"] {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 12px 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: #d6cbd3;
  cursor: pointer;
}

#showPassword {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #ff55ad;
  border-radius: 5px;
  background: #211720;
  box-shadow: none;
  cursor: pointer;
}

#showPassword:checked {
  background: #ff55ad;
  border-color: #ff55ad;
}

#showPassword:checked::after {
  content: "✓";
  display: block;
  color: #160d15;
  font-size: 13px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

#showPassword:focus-visible {
  outline: 2px solid #ff8dca;
  outline-offset: 3px;
}
/* SHERNZZ LOYALTY — Password recovery buttons */

#forgotPasswordButton {
  display: block;
  width: fit-content;
  min-width: 0;
  margin: 4px 0 20px auto;
  padding: 4px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #ff70b9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

#backToLoginButton {
  display: block;
  width: fit-content;
  min-width: 0;
  margin: 22px auto 0;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #ff70b9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

#forgotPasswordButton:hover,
#backToLoginButton:hover {
  color: #ffaad5;
}

/* Keep hidden recovery buttons hidden */
#forgotPasswordButton.hidden,
#backToLoginButton.hidden {
  display: none;
}
/* Account Home Sign Out Button */

#accountHome {
  position: relative;
}

.account-signout-button {
  display: block;
  width: fit-content;
  min-width: 0;
  margin: 12px 0 18px auto;
  padding: 9px 15px;
  background: rgba(255, 85, 173, 0.08);
  border: 1px solid rgba(255, 85, 173, 0.45);
  border-radius: 12px;
  box-shadow: none;
  color: #ff70b9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-signout-button:hover {
  background: rgba(255, 85, 173, 0.18);
  border-color: #ff70b9;
}

.account-signout-button:active {
  transform: scale(0.97);
}
/* Hide the old standalone Staff dashboard button */
#staffButton {
  display: none !important;
}
/* SHERNZZ LOYALTY — Super Admin Button */

#superAdminButton {
  display: block;
  width: fit-content;
  min-width: 0;
  margin: 12px 0 22px;
  padding: 11px 18px;

  background: linear-gradient(135deg, #ff79c6, #ee3298);
  border: 1px solid #ff8dce;
  border-radius: 12px;

  color: #1d0b17;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(255, 65, 160, 0.2);

  cursor: pointer;
  transition: all 0.2s ease;
}

#superAdminButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 65, 160, 0.35);
}

/* Keep button hidden until admin status is verified */
#superAdminButton.hidden {
  display: none !important;
}
/* SUPER ADMIN FREE ACCESS FORM */

#adminExemptionControls {
  margin-top: 20px;
  width: 100%;
}

#adminExemptionControls h4 {
  margin-bottom: 20px;
}

#adminExemptionControls label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 14px;
}

#adminExemptionControls select,
#adminExemptionControls input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #c99bb8;
  border-radius: 12px;
  background: #fff;
  color: #222;
  font-size: 16px;
  margin-bottom: 12px;
}

#saveExemptionButton {
  width: 100%;
  margin-top: 18px;
}

#exemptionMessage {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}
