* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --black: #000000;
  --bg-1: #42005E;
  --bg-2: #9a6ce0;
  --bg-3: #7595ef;
  --bg-4: #87dfff;

  --pink: #ff57c7;
  --pink-dark: #ff1fa9;
  --purple: #8b54db;
  --purple-dark: #652cae;
  --cyan: #57efff;
  --cyan-soft: #aefaff;
  --blue-soft: #d9f9ff;
  --yellow: #f0ca1f;

  --stroke-black:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0    3px 0 #000;

  --stroke-purple:
    -2px -2px 0 #6f2eb1,
     2px -2px 0 #6f2eb1,
    -2px  2px 0 #6f2eb1,
     2px  2px 0 #6f2eb1,
     0    3px 0 #6f2eb1;

  --body-font: "Inter", sans-serif;
  --display-font: "Bangers", cursive;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--body-font);
  color: var(--white);
  background: #000;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  outline: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

/* =========================
   LOGIN SCREEN
========================= */

#startScreen {
  background:
    radial-gradient(circle at 50% 18%, rgba(71, 33, 172, 0.22), rgba(71, 33, 172, 0) 24%),
    radial-gradient(circle at 50% 70%, rgba(0, 14, 65, 0.22), rgba(0, 14, 65, 0) 30%),
    linear-gradient(180deg, #04001d 0%, #06002b 35%, #030018 100%);
}

.login-screen {
  min-height: 100vh;
  padding: 28px 18px 34px;
  display: flex;
  justify-content: center;
}

.login-content {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-logo-stage {
  width: 100%;
  max-width: 420px;
  margin-top: 38px;
  margin-bottom: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-main-art {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter:
    drop-shadow(0 0 20px rgba(255,255,255,0.10))
    drop-shadow(0 0 24px rgba(50,232,255,0.10));
}

.login-google-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.g_id_signin {
  display: inline-flex;
  justify-content: center;
}

.g_id_signin > div {
  margin: 0 auto !important;
}

.login-note {
  max-width: 320px;
  margin: 0 auto 26px;
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-footer {
  width: 100%;
  max-width: 380px;
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}

.login-footer-line {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(255,79,200,0.85), rgba(255,125,216,0.96));
}

.login-footer-small {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.86);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.login-footer-brand {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
  color: #ffffff;
}

/* =========================
   BUSINESS SCREEN
========================= */

#businessScreen {
  position: relative;
  min-height: 100vh;
  background: transparent !important;
}

.business-screen-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 26%),
    linear-gradient(180deg, #c56aaa 0%, #b46eda 26%, #7e72e4 58%, #4a68c8 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.business-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 14px 42px;
  min-height: 100vh;
}

/* =========================
   TOP PANEL
========================= */

.hero-card {
  width: 100%;
  border-radius: 38px;
  padding: 18px 14px 16px;
  background:
    radial-gradient(circle at 50% 18%, rgb(224, 145, 197), rgba(225, 185, 255, 1) 40%),
    linear-gradient(180deg, #cda4ea 0%, #d3bbf0 28%, #c7d7f7 72%, #bcf3ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(66, 0, 94, 1),
    0 12px 30px rgba(24, 0, 45, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 12px;
  align-items: start;
}

.hero-left-side {
  min-width: 0;
}

.hero-tapin-art {
  width: 100%;
  max-width: 235px;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.12));
}

.business-logo-art {
  max-width: 250px;
  margin-bottom: 4px;
}

.business-name-text {
  margin: 0 0 6px;
  font-family: var(--display-font);
  font-size: 2.3rem;
  line-height: 0.9;
  color: #ffffff;
  text-shadow:
    var(--stroke-black),
    0 4px 0 #4ae8ff,
    0 8px 14px rgba(0,0,0,0.16);
  transform: skewX(-8deg);
}

.address-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.address-pin {
  font-size: 1rem;
  color: #34136d;
  line-height: 1.1;
  margin-top: 2px;
}

.business-address {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 800;
  color: #2c1d6e;
}

.hero-product-btn {
  min-width: 100%;
  max-width: 230px;
  min-height: 64px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a35ab 0%, #ff93d1 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow:
    0 10px 18px rgba(43, 0, 74, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.hero-right-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.hero-mini-gem-wrap {
  display: flex;
  justify-content: flex-end;
  padding-right: 6px;
}

.hero-mini-gem {
  width: 42px;
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.22))
    drop-shadow(0 0 8px rgba(87,239,255,0.18));
}

.header-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-action-button {
  min-height: 58px;
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(124, 88, 205, 0.96), rgba(255, 203, 234, 0.96));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 16px rgba(34, 0, 65, 0.12);
}

.hero-top-qr-shell {
  width: 100%;
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.hero-top-qr {
  width: 100%;
  border-radius: 8px;
  background: #fff;
}

.hero-verified-image-wrap {
  margin-top: 16px;
}

.hero-verified-image {
  width: 100%;
  border-radius: 24px;
}

/* =========================
   REVIEW CARD
========================= */

.leave-review-wrap {
  margin-top: 16px;
  margin-bottom: 18px;
}

.review-card-wrap {
  position: relative;
  padding-bottom: 28px;
}

.review-art-card {
  width: 100%;
  padding: 14px 14px 16px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(114, 219, 255, 0.96) 0%, rgba(145, 152, 255, 0.94) 32%, rgba(255, 164, 210, 0.94) 100%);
  border: 8px solid #82f1ff;
  box-shadow:
    0 14px 28px rgba(18, 0, 40, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.review-art-inner {
  min-height: 212px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: stretch;
}

.review-left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.review-avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f74e7d, #d92d69);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.review-avatar img,
.feed-avatar img,
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-account-label {
  margin-top: 10px;
  text-align: center;
  font-family: var(--display-font);
  font-size: 0.95rem;
  line-height: 0.88;
  color: #fff;
  text-shadow: var(--stroke-black);
}

.review-right-column {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding-bottom: 34px;
}

.review-name-display {
  margin: 0 0 3px;
  font-size: 1.04rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-shadow: var(--stroke-purple);
}

.review-verified-top {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(255,255,255,0.96);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.review-placeholder {
  min-height: 82px;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.98);
  text-align: left;
  overflow-wrap: anywhere;
}

.review-stars-bottom-right {
  position: absolute;
  right: 4px;
  bottom: 0;
  display: flex;
  gap: 2px;
  font-size: 1.9rem;
  line-height: 1;
}

.review-stars-bottom-right .star,
.feed-stars .star {
  color: rgba(255,255,255,0.22);
}

.review-stars-bottom-right .filled,
.feed-stars .filled {
  color: var(--yellow);
}

.click-here-badge {
  position: absolute;
  left: 8px;
  bottom: 0;
  min-width: 160px;
  min-height: 58px;
  padding: 8px 18px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff139d 0%, #ff68c9 48%, #2ee9ff 100%);
  color: #fff;
  font-family: var(--display-font);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.7px;
  text-shadow: var(--stroke-black);
  box-shadow:
    0 10px 18px rgba(34, 0, 65, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

/* =========================
   REVIEWS TITLE + FEED
========================= */

.recent-title-wrap {
  margin: 10px 0 8px;
  text-align: center;
}

.recent-reviews-display {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2.8rem;
  line-height: 0.9;
  color: #d8ffff;
  text-shadow:
    var(--stroke-purple),
    0 8px 16px rgba(0,0,0,0.14);
}

.reviews-feed-wrap {
  margin-bottom: 20px;
}

.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-review-card {
  width: 100%;
  min-height: 166px;
  border-radius: 28px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(92, 121, 255, 0.96) 0%, rgba(182, 115, 255, 0.94) 52%, rgba(255, 124, 192, 0.94) 100%);
  border-top: 7px solid #ff27c2;
  border-left: 7px solid #ff27c2;
  border-right: 7px solid #29e7ff;
  border-bottom: 7px solid #29e7ff;
}

.feed-review-top {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.feed-avatar {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f4f4, #d9d9d9);
  color: #7b7b7b;
  font-size: 1.45rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feed-name {
  margin-bottom: 4px;
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 0.9;
  color: #fff;
  text-shadow: var(--stroke-purple);
  text-transform: uppercase;
}

.feed-verified {
  margin-bottom: 8px;
  font-family: var(--display-font);
  font-size: 0.92rem;
  line-height: 0.9;
  color: #fff;
  text-shadow: var(--stroke-purple);
}

.feed-stars {
  display: flex;
  gap: 2px;
  font-size: 1.45rem;
  line-height: 1;
}

.feed-text {
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.98);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty-feed-message {
  width: 100%;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.22);
  text-align: center;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
}

/* =========================
   BOTTOM CARD
========================= */

.coupon-wrap {
  margin-top: 8px;
}

.coupon-card {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255,23,193,0.95) 0%, rgba(180,111,255,0.93) 48%, rgba(49,239,255,0.95) 100%);
}

.coupon-qr-shell {
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  padding: 6px;
}

.coupon-qr {
  width: 100%;
  border-radius: 6px;
}

.coupon-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coupon-text {
  width: 100%;
  text-align: center;
  font-family: var(--display-font);
  font-size: 2.1rem;
  line-height: 0.92;
  color: #fff;
  text-shadow:
    var(--stroke-black),
    0 4px 0 rgba(50,232,255,0.95),
    0 8px 16px rgba(0,0,0,0.18);
  transform: skewX(-7deg);
}

.coupon-text span {
  display: inline-block;
  margin-left: 4px;
  color: #ffd4ff;
}

/* =========================
   MODALS
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(19, 0, 34, 0.72);
  backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 410px;
  position: relative;
  border-radius: 28px;
  padding: 24px 18px 20px;
  background:
    linear-gradient(135deg, rgba(255,56,178,0.96) 0%, rgba(146,90,255,0.96) 52%, rgba(36,228,255,0.96) 100%);
  border: 3px solid rgba(255,255,255,0.28);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.modal-title {
  margin: 0 0 8px;
  padding-right: 40px;
  font-family: var(--display-font);
  font-size: 2.1rem;
  line-height: 0.95;
  color: #fff;
  text-shadow: var(--stroke-purple);
}

.modal-subtitle {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.94);
}

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

.form-label {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.96);
  color: #191919;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.star-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.star-pick {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.52);
  font-size: 1.5rem;
  font-weight: 900;
}

.star-pick.active {
  color: var(--yellow);
  background: rgba(255,255,255,0.22);
}

.submit-review-btn,
.primary-btn,
.secondary-btn {
  min-height: 52px;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 900;
}

.submit-review-btn,
.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #ff00a8 0%, #ff5ecb 45%, #00dfff 100%);
}

.secondary-btn {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.18);
}

.google-prompt-actions {
  display: grid;
  gap: 10px;
}

/* =========================
   SMALL SCREENS
========================= */

@media (max-width: 390px) {
  .login-logo-stage {
    margin-top: 28px;
    margin-bottom: 34px;
  }

  .login-main-art {
    max-width: 320px;
  }

  .hero-grid {
    grid-template-columns: 1fr 108px;
    gap: 10px;
  }

  .hero-tapin-art {
    max-width: 210px;
  }

  .business-name-text {
    font-size: 2rem;
  }

  .hero-product-btn {
    font-size: 0.95rem;
    min-height: 58px;
  }

  .header-action-button {
    min-height: 52px;
    font-size: 0.9rem;
  }

  .review-art-inner {
    grid-template-columns: 76px 1fr;
  }

  .review-avatar,
  .feed-avatar {
    width: 60px;
    height: 60px;
  }

  .recent-reviews-display {
    font-size: 2.45rem;
  }

  .coupon-card {
    grid-template-columns: 96px 1fr;
  }

  .coupon-text {
    font-size: 1.9rem;
  }

  .click-here-badge {
    min-width: 142px;
    font-size: 1.45rem;
  }
}
