:root {
  --bg: #000;
  --surface: #0a0a0c;
  --surface-2: #141418;
  --surface-3: #1c1c22;
  --surface-hi: #24242b;
  --border: #22222a;
  --border-soft: #17171d;
  --text: #ffffff;
  --text-dim: #8a8a92;
  --text-muted: #555560;
  --accent: #ffffff;
  --success: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: 96px;
}

.screen { display: none; }
.screen.active { display: block; }

/* ===== Icons ===== */
.ico {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-lg { width: 28px; height: 28px; }
.ico-xl { width: 54px; height: 54px; stroke-width: 1.2; }

/* ===== Auth (banner top + form bottom) ===== */
.auth {
  min-height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
}

.auth-banner {
  position: relative;
  width: 100%;
  height: 44vh;
  min-height: 240px;
  max-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.banner-img {
  position: absolute;
  inset: 0;
  background:
    url('/images/login%20ponto.jpeg') center/cover no-repeat,
    #0a0a0a;
  filter: grayscale(0.35) brightness(0.85) contrast(1.02);
  z-index: -2;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.20) 65%, #000 100%);
  z-index: -1;
}
.banner-logo {
  display: block;
  max-width: 78%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}

.auth-form-area {
  flex: 1;
  background: #000;
  padding: 26px 22px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: -0.005em;
  color: #fff;
}
.title-divider {
  display: block;
  width: 70px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  margin: 6px auto 12px;
}

.input-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(38, 38, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 0.15s, background 0.15s;
}
.input-field:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(48, 48, 48, 0.96);
}
.input-field > .ico {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
}
.input-field .input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 0;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  font-family: inherit;
}
.input-field .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.pwd-toggle {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pwd-toggle .ico { width: 18px; height: 18px; }

.btn-primary {
  background: #fff;
  color: #0a0a0a;
  border: 0;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
  transition: transform 0.05s, opacity 0.15s, background 0.15s;
}
.btn-primary:hover { background: #f1f1f1; }
.btn-primary:active { transform: scale(0.99); }

.link-center {
  display: block;
  margin: 14px auto 0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
}
.link-center:hover { text-decoration: underline; }
.auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.link-strong {
  color: #fff;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}
.link-strong:hover { text-decoration: underline; }

.input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: #555; }

.btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: transform 0.05s, opacity 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 10px 14px; font-size: 13px; border-radius: 10px; }
.link {
  color: #fff;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 6px 0;
  text-align: center;
}

/* ===== Header / sections ===== */
.section-pad { padding: 22px 22px 8px; }
.page-title {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.subtitle {
  font-size: 22px;
  font-weight: 800;
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}
.muted { color: var(--text-dim); }

/* ===== Profile ===== */
.profile-hero {
  background: #0d0d0f;
  aspect-ratio: 1 / 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.profile-hero svg.ghost {
  width: 68%;
  height: auto;
  color: #2f2f38;
  filter: blur(1.2px) drop-shadow(0 0 14px rgba(255,255,255,0.04));
  stroke-width: 3;
}
.profile-hero .status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
}
.logout-btn {
  position: absolute;
  top: 58px;
  right: 20px;
  background: #fff;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.logout-btn .ico { width: 20px; height: 20px; stroke-width: 2; }

.profile-info { padding: 18px 22px 8px; }
.profile-info h2 {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex: 0 0 52px;
}
.icon-box .ico { width: 22px; height: 22px; stroke-width: 1.9; }
.info-row .label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
}
.info-row .value {
  font-size: 15px;
  font-weight: 500;
}
.info-row .value strong {
  display: block;
  font-weight: 800;
  margin-top: 2px;
  font-size: 17px;
}

.profile-actions {
  padding: 16px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-actions .btn {
  background: #0c0c0f;
  color: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  font-weight: 800;
  font-size: 16px;
}
.profile-actions .btn .ico { width: 22px; height: 22px; }

/* ===== Bottom nav ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(12, 12, 14, 0.95);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
  z-index: 10;
}
.tabbar button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s;
}
.tabbar button.active { color: var(--text); }
.tabbar .ico { width: 24px; height: 24px; stroke-width: 1.6; }
.tabbar button.active .ico { stroke-width: 2; }

/* ===== Cards (generic) ===== */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 22px 12px;
}
.card .pill {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 500;
}
.card .title {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.card .meta {
  color: var(--text-dim);
  font-size: 14px;
  margin: 2px 0;
}
.card .meta .ico { width: 16px; height: 16px; color: var(--text-dim); }
.card .meta b {
  color: var(--text);
  font-weight: 700;
}
.card .price {
  font-weight: 800;
  color: var(--text);
  font-size: 17px;
}
.card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-chev {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.card.has-chev { position: relative; padding-right: 50px; }

/* ===== Empty state ===== */
.empty {
  background: var(--surface-2);
  border-radius: 16px;
  margin: 10px 22px 0;
  padding: 34px 24px;
  text-align: center;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
}
.empty .ico {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--text);
  display: block;
  stroke-width: 1.6;
}
.empty p { margin: 0; font-size: 14px; line-height: 1.5; }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.tabs button {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
}
.tabs button.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ===== Feed stories ===== */
.stories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 22px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.stories .story {
  text-align: center;
  flex-shrink: 0;
  width: 80px;
}
.stories .av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #333 center/cover no-repeat;
  border: 2px solid var(--surface-3);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.stories .name {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.stories .rating {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.stories .rating .ico { width: 12px; height: 12px; fill: #fff; stroke: #fff; }

/* ===== Feed ===== */
.feed-grid {
  padding: 0 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feed-post {
  background: #0b0b0d;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.feed-post img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.feed-post .overlay {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
}
.feed-post .avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  font-size: 13px;
}
.feed-post .name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.1; }
.feed-post .when { color: rgba(255,255,255,0.75); font-size: 12px; margin-top: 1px; }

/* ===== Schedule ===== */
.schedule-hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.92) 85%),
    url('/images/login%20ponto.jpeg') center/cover no-repeat;
  padding: 44px 24px 34px;
  text-align: center;
  position: relative;
}
.schedule-hero .hero-sign {
  display: inline-block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 14px;
}
.schedule-hero .hero-sign img {
  display: block;
  width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}
.schedule-hero h1 {
  font-size: 28px;
  margin: 14px 0 8px;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.schedule-hero p {
  color: var(--text-dim);
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.45;
  max-width: 320px;
}

.select-row {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 18px;
  margin: 0 22px 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s;
}
.select-row:hover { border-color: var(--border); }
.select-row.filled { color: var(--text); font-weight: 600; }
.select-row .ico { color: var(--text-dim); width: 20px; height: 20px; }
.select-row.filled .ico { color: var(--text); }
.select-row .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-row .chev { margin-left: auto; color: var(--text-dim); }

.cta-wrap { padding: 18px 22px 32px; }
.cta-wrap .btn { width: 100%; font-size: 17px; padding: 18px; }

/* ===== Bottom Sheet ===== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 20;
  animation: fade 0.25s ease;
}
.sheet-backdrop.open { display: block; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: #0a0a0c;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
  animation: slide-up 0.28s cubic-bezier(.22,1,.36,1);
}
@keyframes slide-up { from { transform: translate(-50%, 30px); opacity: 0.6 } to { transform: translate(-50%, 0); opacity: 1 } }

.sheet header {
  padding: 20px 22px 12px;
  text-align: center;
  position: relative;
}
.sheet header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.sheet header .close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet .sheet-body {
  padding: 14px 18px 130px;
  overflow-y: auto;
  flex: 1;
}
.sheet .sheet-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 22px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,1) 35%);
  display: flex;
  gap: 10px;
}
.sheet .sheet-footer .btn { flex: 1; padding: 17px; font-size: 16px; }

/* ===== List items in sheet ===== */
.list-item {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
}
.list-item:hover { background: var(--surface-3); }
.list-item.checked { border-color: #fff; }
.list-item .av {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #444 center/cover no-repeat;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.list-item .av.unit-logo {
  background: #000;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-item .av.unit-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.list-item .body { flex: 1; min-width: 0; }
.list-item .t {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.list-item .s {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}
.list-item .s b { color: var(--text); font-weight: 700; }
.list-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: 0 0 24px;
  transition: all 0.12s;
}
.list-item.checked .check {
  background: #fff;
  border-color: #fff;
  position: relative;
}
.list-item.checked .check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center / 14px 14px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ===== Calendar ===== */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 8px;
  padding: 0 8px;
}
.cal-head button {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-head h4 {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  row-gap: 6px;
  margin-top: 14px;
}
.cal-grid .dow {
  color: var(--text);
  font-weight: 700;
  padding: 10px 0 14px;
  font-size: 13px;
}
.cal-grid .day {
  padding: 12px 0;
  color: var(--text);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  margin: 0 auto;
  width: 40px;
  height: 40px;
}
.cal-grid .day.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}
.cal-grid .day.selected {
  background: #fff;
  color: #000;
  font-weight: 800;
}
.cal-grid .day .dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}
.cal-grid .day.busy .dot { background: var(--danger); }
.cal-grid .day.selected .dot { display: none; }

.period-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.period-row button {
  flex: 1;
  padding: 13px 12px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
}
.period-row button.active {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.time-grid button {
  padding: 12px 0;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
}
.time-grid button.active {
  border-color: #fff;
  background: #fff;
  color: #000;
}
.time-none {
  text-align: center;
  color: var(--text-dim);
  padding: 24px 20px;
}
.time-none .ico {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  display: block;
  stroke-width: 1.5;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #0a0a0c;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  z-index: 100;
  max-width: 90%;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.toast.show { display: block; animation: pop 0.3s ease; }
.toast.err { background: #ef4444; color: #fff; }
@keyframes pop {
  from { transform: translate(-50%, 14px); opacity: 0 }
  to   { transform: translate(-50%, 0); opacity: 1 }
}

/* ===== History / appointments ===== */
.appt-card { margin: 0 22px 12px; }
.status-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-3);
}
.status-chip.scheduled { background: #1d3c5e; color: #8ec5ff; }
.status-chip.completed { background: #1e3d2e; color: #84e1a4; }
.status-chip.canceled  { background: #3d1e1e; color: #ff9191; }

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

/* ============ Payment-channel chooser ============ */
.pay-choice { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; }
.pay-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.pay-summary .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pay-summary .row span { color: var(--muted); }
.pay-summary .row strong { color: var(--text); font-weight: 700; text-align: right; }

.pay-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 4px 8px;
}
.pay-total span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.pay-total strong { color: #fff; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }

.pay-opt {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.06s ease, border-color 0.15s ease, background 0.15s ease;
}
.pay-opt:hover { border-color: #555; background: var(--surface-3); }
.pay-opt:active { transform: scale(0.99); }
.pay-opt:disabled { opacity: 0.55; pointer-events: none; }
.pay-opt.primary { background: #fff; color: #000; border-color: #fff; }
.pay-opt.primary:hover { background: #f1f1f1; }

.pay-opt .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.pay-opt.primary .ic { background: rgba(0,0,0,0.08); }
.pay-opt .ic .ico { width: 22px; height: 22px; }
.pay-opt .lb { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-opt .lb strong { font-size: 16px; font-weight: 800; }
.pay-opt .lb small { font-size: 12px; opacity: 0.75; font-weight: 500; }
.pay-opt .ar { justify-self: end; opacity: 0.6; }
.pay-opt.primary .ar { opacity: 0.4; }

/* ============ Pix payment step ============ */
.pay-pix { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 12px; }
.pay-pix.err { color: #ff9191; text-align: center; padding: 24px 0; }

.pix-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 40px 0; color: var(--muted);
  font-size: 14px;
}
.pix-loading .ico { width: 20px; height: 20px; }

.pix-amount {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 4px;
}
.pix-amount span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.pix-amount strong { color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }

.pix-qr {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.pix-qr svg { width: 100%; height: auto; max-width: 280px; display: block; }

.pix-meta {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
.pix-meta .row { display: flex; justify-content: space-between; gap: 12px; }
.pix-meta .row span { color: var(--muted); }
.pix-meta .row strong { color: var(--text); font-weight: 700; word-break: break-all; text-align: right; }

.pix-copy { display: flex; flex-direction: column; gap: 8px; }
.pix-copy label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.pix-copy textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  resize: none;
  word-break: break-all;
}
.pix-copy textarea:focus { outline: 1px solid #fff; }
.pix-copy .btn.outline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pix-copy .btn.outline .ico { width: 18px; height: 18px; }

.pix-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 4px 0;
}
.pix-hint b { color: var(--text); }

/* ============ Payment notice (advisory before/during Pix) ============ */
.pay-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #cfe1ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.pay-notice .ico { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.pay-notice strong { color: #fff; display: block; margin-bottom: 2px; font-size: 14px; }
.pay-notice p { margin: 0; }
.pay-notice b { color: #fff; }
.pay-notice.warn {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.3);
  color: #fde68a;
}
.pay-notice.ok {
  background: rgba(132, 225, 164, 0.08);
  border-color: rgba(132, 225, 164, 0.3);
  color: #b6f0c8;
}

/* ============ Receipt upload ============ */
.receipt-upload { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 12px; }

.receipt-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 18px;
  background: var(--surface-2);
  border: 1.5px dashed #444;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.receipt-drop:hover { border-color: #fff; background: var(--surface-3); }
.receipt-drop .ico { width: 32px; height: 32px; }
.receipt-drop strong { color: #fff; font-size: 15px; }
.receipt-drop small { font-size: 12px; }

.receipt-preview {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.receipt-preview img {
  width: 100%; max-height: 360px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.receipt-preview .rec-pdf {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.receipt-preview .rec-pdf .ico { width: 28px; height: 28px; color: #ff9191; }
.receipt-preview .rec-pdf strong { display: block; color: #fff; font-size: 14px; word-break: break-all; }
.receipt-preview .rec-pdf small { color: var(--muted); font-size: 12px; }
.receipt-preview .rec-change {
  align-self: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.receipt-preview .rec-change:hover { border-color: #fff; }

/* ============ Card payment form ============ */
.pay-card { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.pay-card .field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 6px;
}
.pay-card .input { width: 100%; }
.pay-card .cd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pay-card.err {
  text-align: center;
  color: #ff9191;
  padding: 24px 0;
}
.pay-card .pix-hint .ico {
  width: 14px; height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ============ Tab alert badges (failed renewal) ============ */
#tabbar button.has-alert {
  position: relative;
}
#tabbar button.has-alert::after {
  content: "";
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--bg);
}

#sub-tabs button.has-badge {
  position: relative;
}
#sub-tabs button.has-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============ Failed-renewal banner ============ */
.renewal-banner {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 22px 14px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  color: #ffd1d1;
  font-size: 14px;
  line-height: 1.5;
}
.renewal-banner .rb-ic .ico { width: 22px; height: 22px; color: #ff6b6b; flex-shrink: 0; margin-top: 2px; }
.renewal-banner strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.renewal-banner p { margin: 0; }
.renewal-banner b { color: #fff; }
.renewal-banner-meta { margin-top: 6px; font-size: 13px; opacity: 0.85; }

/* ============ Profile section + reminder switch ============ */
.profile-section { padding: 0 22px; margin-top: 14px; }

.profile-toggle {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.profile-toggle.disabled { opacity: 0.55; }
.profile-toggle .pt-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
}
.profile-toggle .pt-ic .ico { width: 22px; height: 22px; color: #fff; }
.profile-toggle .pt-body { min-width: 0; }
.profile-toggle .pt-body strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.profile-toggle .pt-body small { display: block; color: var(--text-dim); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }

.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 30px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #2a2a32;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease;
  outline: none;
  flex-shrink: 0;
}
.switch:disabled { cursor: not-allowed; }
.switch .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.switch.on { background: #22c55e; }
.switch.on .thumb { transform: translateX(20px); }

/* ============ Autofill override (kills the light-blue Chrome highlight) ============ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  /* Prevents the brief flash of light-blue while the page paints. */
  transition: background-color 600000s ease 0s, color 600000s ease 0s;
}

/* Inputs that live inside .input-field share the field's surface color, so
   match the inset shadow to that color. */
.input-field input:-webkit-autofill,
.input-field input:-webkit-autofill:hover,
.input-field input:-webkit-autofill:focus,
.input-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(38, 38, 38, 0.92) inset;
}
