:root {
  --coral: #e64c66;
  --light-grey: #92a1a9;
  --gray: #f8f8f8;
  --border: #e5e5e5;
  --radius: 6px;
}

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

body {
  min-height: 100vh;
  display: flex;
  font-family: Nunito, system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, #3a1a22 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, #1a2430 0%, transparent 45%),
    #121417;
  color: #f3f4f6;
}

button,
input {
  font: inherit;
}

img {
  display: block;
}

.sidebar {
  width: 280px;
  padding: 36px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-logo {
  width: 140px;
  height: auto;
}

.sidebar-note {
  color: #a8b0b8;
  font-size: 13px;
  line-height: 1.5;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.nav-btn {
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d7dce1;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.15s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(230, 76, 102, 0.16);
  border-color: rgba(230, 76, 102, 0.55);
  color: #fff;
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px;
}

.phone {
  width: 375px;
  height: 780px;
  border-radius: 42px;
  background: #0b0d10;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #0b0d10;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  position: relative;
  color: #222;
}

.screen-root {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.splash {
  height: 100%;
  background: #000;
  display: grid;
  place-items: center;
}

.splash img {
  width: 70%;
}

.login {
  height: 100%;
  background: var(--coral);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.login-header {
  flex: 1;
  display: grid;
  place-items: center;
}

.login-logo {
  width: 70%;
}

.login-form {
  flex: 2;
}

.login-form h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-form input {
  width: 100%;
  height: 45px;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: var(--coral);
  color: #fff;
  padding: 0 15px;
  margin-bottom: 20px;
  outline: none;
}

.password-wrap {
  position: relative;
}

.password-wrap .eye {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
}

.btn-outline {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 15px;
  border: 1px solid #fff;
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
}

.forgot {
  display: block;
  text-align: center;
  color: #f2a5b2;
  text-decoration: none;
}

.login-footer {
  flex: 0.45;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 18px;
  gap: 4px;
}

.login-footer span {
  text-decoration: underline;
}

.find {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.map-bg {
  position: absolute;
  inset: 0 0 64px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.82)),
    url('images/map.jpg') center / cover;
  z-index: 0;
}

.find-top,
.find-actions {
  position: relative;
  z-index: 1;
}

.find-top {
  flex: 2;
  display: grid;
  place-items: center;
  padding: 30px;
}

.find-top img {
  width: 180px;
  margin-top: 40px;
}

.find-actions {
  flex: 3;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(80, 90, 100, 0.18);
  color: var(--light-grey);
  font-size: 18px;
  cursor: pointer;
}

.search-card img {
  width: 22px;
  height: 22px;
}

.btn-coral {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: var(--coral);
  color: #fff;
  font-size: 18px;
  padding: 12px;
  cursor: pointer;
}

.tabbar {
  margin-top: auto;
  height: 64px;
  border-top: 1px solid var(--border);
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 2;
}

.tab {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--light-grey);
  font-size: 11px;
  cursor: pointer;
}

.tab img {
  width: 22px;
  height: 22px;
  opacity: 0.55;
  filter: grayscale(1);
}

.tab.active {
  color: var(--coral);
}

.tab.active img {
  opacity: 1;
  filter: none;
}

.topbar {
  background: var(--gray);
  border-bottom: 1px solid #e7e7e7;
  padding: 48px 15px 15px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  flex-shrink: 0;
}

.topbar img {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.topbar h2 {
  text-align: center;
  color: #3d3c42;
  font-size: 20px;
}

.topbar-spacer {
  width: 28px;
}

.scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.offer-list {
  padding: 15px;
}

.offer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
}

.offer-card img {
  width: 102px;
  height: 102px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.offer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.offer-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.offer-place {
  font-size: 16px;
  color: #333;
}

.offer-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.offer-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
}

.offer-time img {
  width: 16px;
  height: 16px;
}

.offer-slots {
  color: var(--coral);
  font-size: 16px;
  white-space: nowrap;
}

.offer-status {
  margin-top: auto;
  font-size: 16px;
  color: #92a1a9;
  text-transform: capitalize;
}

.popular {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.popular-body {
  flex: 1;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.popular-card {
  flex: 1;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 15px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.popular-card img.hero {
  width: 100%;
  flex: 2;
  object-fit: cover;
  border-radius: 5px;
  min-height: 220px;
}

.popular-card .offer-title {
  margin-top: 14px;
  font-size: 22px;
}

.popular-dots {
  display: flex;
  gap: 4px;
  margin: 14px 0 18px;
}

.popular-dots span {
  flex: 1;
  height: 3px;
  background: #d3d9dd;
}

.popular-dots span.active {
  background: var(--coral);
}

.details {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.details-hero {
  width: 100%;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.details-body {
  padding: 15px 15px 30px;
}

.details-body .offer-title {
  font-size: 24px;
}

.details-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  color: #707375;
  font-size: 14px;
}

.details-address img,
.details-meta img,
.link-row img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.details-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
  font-size: 14px;
}

.details-meta .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-desc {
  font-size: 14px;
  line-height: 1.45;
}

.details-valid {
  font-size: 14px;
  margin-top: 15px;
}

.accept-btn {
  width: 100%;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px;
  margin: 40px 0 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.accept-btn.inactive {
  background: #fff;
  color: #92a1a9;
  border: 1px solid #92a1a9;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  cursor: pointer;
}

.code {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.code-body {
  padding: 20px 15px 30px;
  text-align: center;
}

.code-qr {
  width: 220px;
  height: 220px;
  margin: 10px auto 16px;
  object-fit: contain;
  background: #fff;
}

.code-id {
  color: #707375;
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.code-body .offer-title {
  text-align: left;
  font-size: 24px;
}

.code-body .offer-place,
.code-body .details-address,
.code-body .details-valid {
  text-align: left;
}

.settings-scroll {
  flex: 1;
  overflow: auto;
  padding-bottom: 20px;
}

.settings-row {
  width: 100%;
  margin-top: 25px;
  background: var(--gray);
  border: none;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #222;
  cursor: pointer;
}

.settings-row.center {
  justify-content: center;
}

.settings-row .muted {
  color: var(--light-grey);
}

.settings-label {
  padding: 25px 15px 0;
  font-size: 18px;
}

.radius {
  padding: 18px 20px 8px;
}

.radius-track {
  height: 4px;
  background: #e5e5e5;
  border-radius: 999px;
  position: relative;
}

.radius-fill {
  width: 28%;
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
}

.radius-thumb {
  position: absolute;
  top: 50%;
  left: 28%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  transform: translate(-50%, -50%);
}

.radius-labels {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--light-grey);
  font-size: 13px;
}

.settings-logo {
  display: flex;
  justify-content: center;
  padding: 45px 0;
}

.settings-logo img {
  width: 120px;
}

.search-results .section-title {
  padding: 8px 15px 4px;
  font-size: 14px;
  color: var(--light-grey);
}

@media (max-width: 860px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .phone {
    width: min(375px, 92vw);
    height: min(780px, 78vh);
  }
}
