:root {
  --accent: #2d9cdb;
  --accent-light: #e3f4ff;
  --danger: #eb5757;
  --success: #27ae60;
  --radius-card: 14px;
}

body.theme-dark {
  --bg-app: #0b1221;
  --bg-card: #111827;
  --bg-header: #0f172a;
  --bg-nav: #0f172a;
  --border-soft: #1f2937;
  --text-primary: #e5e7eb;
  --text-secondary: #94a3b8;
  --chip-bg: #111827;
  --surface: #111827;
  --card-fav-bg: rgba(255, 255, 255, 0.08);
  --card-fav-color: #e5e7eb;
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

body.theme-light {
  --bg-app: #f7f7f7;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-nav: #ffffff;
  --border-soft: #e0e0e0;
  --text-primary: #222222;
  --text-secondary: #757575;
  --chip-bg: #ffffff;
  --surface: #ffffff;
  --card-fav-bg: rgba(255, 255, 255, 0.9);
  --card-fav-color: #111827;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body {
  background: var(--bg-app);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Limitando a largura para parecer um app mobile */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}

header.app-header {
  background: var(--bg-header);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.avatar {
  width: clamp(32px, 7vw, 48px);
  height: clamp(32px, 7vw, 48px);
  border-radius: 50%;
  background-color: transparent;
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.app-title {
  font-weight: 1000;
  font-size: 18px;
  color: var(--accent);
}

.header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-dropdown {
  position: absolute;
  top: 60px;
  left: 12px;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  z-index: 30;
}

.menu-dropdown.hidden {
  display: none;
}

.menu-item {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-item:disabled {
  opacity: 0.6;
  cursor: default;
}

.menu-item-status-icon {
  display: none;
  color: #16a34a;
  font-size: 14px;
}

.menu-item-status-icon.is-visible {
  display: inline-flex;
}

.menu-item-danger {
  border-color: rgba(235, 87, 87, 0.4);
  color: #ffb4b4;
}

.menu-item.is-hidden {
  display: none;
}

.menu-switch {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border-soft);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.menu-switch.is-on {
  background: var(--accent);
  border-color: var(--accent);
}

.menu-switch.is-on::after {
  transform: translate(18px, -50%);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.header-user-avatar.has-image img {
  display: block;
}

.header-user-avatar.has-image .header-user-initial {
  display: none;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.icon-button:active {
  transform: scale(0.96);
}

.profile-edit {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

main.app-main {
  flex: 1;
  padding: 12px 12px 72px; /* espaço pra barra inferior */
  overflow-y: auto;
}

.screen {
  display: none;
  animation: fadeIn 0.18s ease-out;
}

.screen.active {
  display: block;
}

.login-screen.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 12px;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 48px);
}

body.login-mode header.app-header {
  display: none;
}

body.login-mode main.app-main {
  padding: 24px 16px;
}

body.login-mode .app-container {
  justify-content: center;
}

.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 12px;
}

.login-logo {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-title {
  font-size: 30px;
  font-weight: 1000;
  color: var(--accent);
}

.login-title-italic {
  font-style: italic;
}

.login-title-accent {
  color: #7c2ddb;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 260px;
}

.login-card {
  padding: 16px;
  width: min(360px, 100%);
  background: #ffffff;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.login-form .form-group {
  width: 100%;
  max-width: 360px;
}

.login-error {
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
}

.login-google-button {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.login-google-button.is-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.login-google-custom {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid #1a73e8;
  background: #1a73e8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.login-google-custom:disabled {
  opacity: 0.6;
  cursor: default;
}

.login-google-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.login-google-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.login-submit,
.login-secondary {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

#screen-account.screen {
  display: none;
}

#screen-account.screen.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 60px;
}

#screen-account .monetize-card {
  margin-bottom: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Secções e componentes comuns */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 4px 8px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 4px 8px;
}

.section-title-row .section-title {
  margin: 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 4px 8px;
}

/* Carrossel horizontal */
.horizontal-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

#screen-explore .horizontal-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#screen-explore .horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
  background: var(--chip-bg);
  cursor: pointer;
  color: var(--text-primary);
}

.chip.chip-active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.detail-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 4px 8px;
}

.detail-topbar-title {
  font-weight: 700;
  font-size: 15px;
}

.detail-back {
  padding: 8px 10px;
  border-radius: 10px;
}

.detail-hero {
  height: 200px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  overflow: hidden;
  position: relative;
}


#dojo-detail-hero {
  margin-top: 0;
}

.detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 0;
  pointer-events: none;
}

#dojo-detail-name {
  font-size: 25px;
  color: var(--accent);
}

#dojo-detail-tag {
  padding-left: 0;
}

.card-distance {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.detail-areas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.detail-area-item {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.detail-area-thumb {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.detail-area-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.detail-area-title {
  font-weight: 700;
  font-size: 14px;
}

.detail-area-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-area-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.detail-area-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.detail-area-edit-btn {
  position: absolute;
  top: 6px;
  right: 44px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.detail-area-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.detail-area-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  resize: vertical;
}

.detail-area-save-btn {
  margin-top: 8px;
  width: 100%;
}

.detail-area-actions {
  margin-top: 6px;
}

.detail-area-actions .detail-area-reserve {
  width: 100%;
}

.detail-area-reserve-wrap {
  position: relative;
}

.detail-area-reserve-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  cursor: not-allowed;
}

.warning-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.warning-modal-btn {
  width: 100%;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  overflow-y: auto;
  z-index: 50;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  width: min(90%, 360px);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  z-index: 1;
  min-height: 120px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}

.modal-body {
  min-height: 60px;
}

.toast {
  position: fixed;
  right: 18px;
  top: 18px;
  transform: translateY(-10px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
  max-width: min(90vw, 420px);
  text-align: center;
  white-space: pre-line;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: #0b1220;
}

.toast.toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
}

.photo-modal-content {
  width: min(96vw, 860px);
  padding: 12px;
  max-height: 90vh;
}

.photo-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.photo-modal-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface);
  display: block;
}

.pix-modal-content {
  width: min(94vw, 640px);
  padding: 18px;
  max-height: 90vh;
}

.pix-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  align-items: flex-start;
}

.pix-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.pix-modal-title {
  font-size: 20px;
  font-weight: 700;
}

.pix-modal-status {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.pix-modal-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.pix-modal-image {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 100%;
}

.pix-reservation-card {
  width: 100%;
  height: 78px;
}

.pix-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  text-align: center;
}

.pix-modal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.pix-modal-row strong,
.pix-modal-row span#pix-modal-id,
.pix-modal-row span#pix-modal-status-text {
  font-size: 15px;
  color: var(--text);
}

.pix-modal-qr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.pix-modal-img {
  width: auto;
  height: 100%;
  max-width: 120px;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface);
  display: block;
}

.pix-copy-btn {
  white-space: nowrap;
}

.pix-copy-field {
  width: 100%;
  min-height: 0;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: var(--surface);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text);
  resize: none;
}

.pix-copy-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.pix-modal-copy-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.pix-copy-stack #pix-modal-card-meta {
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.15);
  color: #7f1d1d;
  width: 100%;
}

#pix-modal-card-submeta {
  font-size: 16px;
}

.pix-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.pix-meta-time {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

@media (max-width: 640px) {
  .photo-modal-content {
    width: 94vw;
    padding: 10px;
    max-height: 85vh;
  }

  .photo-modal-img {
    max-height: 60vh;
  }

  .pix-modal-content {
    width: 94vw;
    padding: 10px;
    max-height: 85vh;
  }

  .pix-modal-img {
    max-height: 60vh;
  }

  .pix-modal-amount {
    font-size: 20px;
  }
}

.modal-area {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.modal-area-thumb {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-soft);
}

.modal-area-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.modal-area-title {
  font-size: 15px;
  font-weight: 700;
}

.modal-area-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-area-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}

.modal-area-price.note {
  text-align: left;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  margin: 10px 0 8px;
}

.schedule-calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}

.schedule-calendar th,
.schedule-calendar td {
  padding: 0;
}

.calendar-month {
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.calendar-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-month-label {
  flex: 1;
  text-align: center;
}

.calendar-month-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.calendar-month-btn:active {
  transform: scale(0.96);
}

.calendar-weekday {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.calendar-day {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 8px 6px;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  touch-action: manipulation;
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  background: #222;
  color: #9a9a9a;
  border-color: #555;
}

.calendar-day.disabled {
  cursor: not-allowed;
  opacity: 0.85;
  background: #222;
  color: #9a9a9a;
  border-color: #555;
}

.calendar-day.disabled.active {
  border-color: var(--accent);
}

.calendar-day.has-reservation {
  border-color: var(--success);
  background: rgba(39, 174, 96, 0.18);
}

.calendar-day.has-closure {
  background: rgba(120, 124, 132, 0.35);
  border-color: rgba(120, 124, 132, 0.6);
}

.dojo-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dojo-hours-table th,
.dojo-hours-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-soft);
}

.dojo-hours-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.calendar-day.past-reservation,
.calendar-day:disabled.has-reservation,
.calendar-day.disabled.has-reservation {
  background: #222;
  color: #9a9a9a;
  border-color: var(--success);
  opacity: 0.85;
}

.calendar-day.active {
  border-color: var(--accent);
  border-width: 2px;
}

.calendar-day.today {
  background: rgba(242, 201, 76, 0.22);
  border-color: #f2c94c;
  color: var(--text-primary);
  font-weight: 600;
}

.calendar-day.today.active {
  border-color: var(--accent);
}

body.theme-dark .calendar-day.active {
  border-color: var(--accent);
}

body.theme-dark .calendar-day.today.active {
  border-color: var(--accent);
}

body.theme-light .calendar-day.today.active {
  border-color: var(--accent);
}

.calendar-day.has-reservation.active {
  border-color: var(--accent);
  font-weight: 400;
}

body.theme-dark .calendar-day.has-reservation.active {
  background: rgba(39, 174, 96, 0.18);
}

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

.schedule-slots-empty {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.schedule-slots-empty.disabled {
  opacity: 0.7;
}

.schedule-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 12px;
}

.schedule-slot-item.disabled {
  background: #1a1f2a;
  border-color: var(--border-soft);
  opacity: 0.7;
}

.schedule-slot-item.disabled .schedule-slot-status {
  color: var(--text-secondary);
}

.schedule-slot-time {
  font-weight: 600;
  display: block;
}

.schedule-slot-status {
  font-weight: 600;
}

.schedule-slot-status.free {
  color: var(--success);
}

.schedule-slot-status.reserved {
  color: var(--danger);
}

.schedule-slot-status.pending {
  color: #f2c94c;
}

.schedule-slot-status.local {
  color: #2563eb;
}

.schedule-slot-status.closed {
  color: var(--text-secondary);
}

.schedule-slot-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 8px;
}

.schedule-slot-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-rules-card {
  margin-bottom: 12px;
}

.schedule-rules-card .card-title {
  text-align: center;
}

.schedule-rules-text {
  white-space: pre-line;
  margin-top: 6px;
}

.schedule-rules-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.schedule-rules-check input {
  width: 16px;
  height: 16px;
}

.schedule-slot-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-slot-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d9cdb, #bb6bd9);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

.schedule-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.schedule-user-avatar-wrapper {
  margin: 0 auto;
  width: min(180px, 70vw);
  height: min(180px, 70vw);
}

.schedule-user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
  font-size: 44px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.schedule-user-avatar-wrapper .profile-school-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.schedule-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.schedule-user-extra .rank-belt,
.schedule-user-extra .profile-school {
  margin-top: 10px;
}

.schedule-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-user-name {
  font-size: 16px;
  font-weight: 700;
}

.schedule-user-phone,
.schedule-user-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.schedule-user-count {
  font-size: 12px;
  color: var(--text-primary);
  background: rgba(39, 174, 96, 0.16);
}

.schedule-user-count-first {
  background: rgba(242, 201, 76, 0.2);
  color: #f2c94c;
  font-weight: 600;
}

.modal-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 12px 0;
}

.modal-list .list-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.modal-list .list-content-title {
  font-size: 12px;
  font-weight: 600;
}

.modal-list .list-content-sub {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}


.card-list-hero {
  height: 170px;
}

.detail-logo {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--chip-bg);
  border: 2px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-hero > .detail-logo {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  margin: 10px 0;
  z-index: 2;
}

.logo-wrapper {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 100px;
  height: 100px;
  z-index: 2;
  transform: translateY(-50%);
  margin: 10px 0;
}

.logo-wrapper .detail-logo {
  position: absolute;
  inset: 0;
}

.logo-edit-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, #0e2720, #0b1e19);
  color: #d7ebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.banner-edit-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, #0e2720, #0b1e19);
  color: #d7ebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.detail-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-photos .photo-add-btn {
  flex-shrink: 0;
  align-self: center;
  font-size: 18px;
}

.area-add-btn {
  display: block;
  margin: 6px auto 10px;
  font-size: 18px;
}

.detail-photo-empty {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--text-secondary);
  font-size: 12px;
}

.detail-photo-thumb {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--chip-bg);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.detail-photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.detail-schedule-row {
  padding: 0;
}

#dojo-detail-schedule {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-booking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-field label {
  font-size: 12px;
  color: var(--text-secondary);
}

.schedule-select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
}

.schedule-select:focus {
  outline: none;
  border-color: var(--accent);
}

.schedule-select option.reserved-slot:disabled {
  background: rgba(39, 174, 96, 0.18);
  color: var(--text-primary);
}

.schedule-select option.schedule-option {
  display: flex;
  justify-content: space-between;
}

.schedule-select option.reserved-slot:disabled,
.schedule-select option.reserved-slot-other:disabled,
.schedule-select option.reserved-slot-user:disabled {
  justify-content: space-between;
}

.schedule-select option.reserved-slot-user:disabled {
  background: rgba(39, 174, 96, 0.18);
  color: var(--text-primary);
}

.schedule-select option.reserved-slot-other:disabled {
  background: #2f2f2f;
  color: #9a9a9a;
}

.reservation-item {
  align-items: center;
}

.reservation-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--chip-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  align-self: center;
}

#home-reservations-list .reservation-logo {
  width: 45px;
  height: 45px;
  font-size: 12px;
}

.reservation-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 100%;
}

.reservation-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.reservation-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.reservation-date-highlight {
  color: var(--accent);
  font-weight: 700;
}

.reservation-date-line {
  font-size: 16px;
}

.reservation-time-highlight {
  color: var(--success);
  font-weight: 700;
}

.reservation-badge-row {
  margin-top: 4px;
  display: flex;
  justify-content: center;
}

.reservation-thumb {
  width: 72px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--chip-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
  align-self: center;
}

.pix-reservation-card .reservation-thumb {
  margin-left: 0;
}

.pix-reservation-card .reservation-content {
  align-self: stretch;
  justify-content: center;
}

.pix-reservation-card {
  align-items: center;
}

.finance-table {
  width: 100%;
  margin: 10px 0;
}

.finance-table .finance-value {
  text-align: right;
}

.finance-toggle-row {
  cursor: pointer;
}

.finance-toggle-icon {
  display: inline-block;
  width: 12px;
  margin-right: 6px;
}

.finance-total-value {
  color: var(--accent);
  font-weight: 700;
}

.finance-open-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
}

.finance-open-item:first-child {
  border-top: none;
}

.finance-open-value {
  text-align: right;
}

.finance-detail-list {
  padding-top: 6px;
  display: none;
}

.finance-detail-list.is-visible {
  display: block;
}

.finance-detail-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
}

.finance-detail-item:first-child {
  border-top: none;
}

.finance-detail-datetime {
  grid-column: 1 / -1;
  font-size: 11px;
}

.finance-detail-value {
  text-align: right;
}

.finance-chart {
  margin-top: 10px;
}

.finance-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.finance-chart-bg {
  fill: var(--surface);
  stroke: var(--border-soft);
  stroke-width: 1;
}

.finance-chart-axis {
  stroke: var(--border-soft);
  stroke-width: 1;
}

.finance-chart-line {
  fill: none;
  stroke-width: 2;
}

.finance-chart-line-received {
  stroke: var(--success);
}

.finance-chart-line-open {
  stroke: #2d9cdb;
}

.finance-chart-point {
  fill: var(--accent);
}

.finance-chart-point-received {
  fill: var(--success);
}

.finance-chart-point-open {
  fill: #2d9cdb;
}

.finance-chart-label {
  fill: var(--text-secondary);
  font-size: 10px;
}

.finance-open-status {
  grid-column: 1 / -1;
  font-size: 11px;
}

#home-reservations-list .reservation-thumb {
  width: 48px;
  height: 36px;
  font-size: 12px;
  margin-left: 8px;
}

#home-reservations-list .reservation-content,
#home-reservations-list .reservation-content * {
  font-size: 12px;
  color: var(--text-secondary);
}

.schedule-actions {
  display: flex;
}

.schedule-actions .schedule-submit {
  width: 100%;
}

.card-actions {
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

#business-schedule-save-btn {
  background: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.6);
}

.detail-schedule-row {
  display: grid;
  grid-template-columns: 72px repeat(7, 1fr);
  gap: 8px;
  align-items: center;
  background: transparent;
}

#dojo-detail-schedule .detail-schedule-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

#dojo-detail-schedule .detail-schedule-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.04);
}

.detail-schedule-day {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.detail-schedule-hours {
  color: var(--text-primary);
  font-size: 12px;
  text-align: center;
}

.detail-schedule-hour-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.detail-hour-slot {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 6px 4px;
  background: var(--surface);
}

.detail-hour-slot.available {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--chip-bg);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

/* Cards de tatame/acad. */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 10px;
  margin: 6px 0;
  box-shadow: var(--shadow-soft);
}

.card > .card-title + div,
.card > .card-title-row + div,
.card > .card-title-row + button + div {
  padding-top: 10px;
}

.card-stats {
  margin: 12px 0;
}

.card-image {
  width: 100%;
  border-radius: 12px;
  height: 150px;
  background: linear-gradient(135deg, #cfd9df, #e2ebf0);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-image.has-media {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--card-fav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--card-fav-color);
  z-index: 2;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.carousel-dots span.active {
  width: 10px;
  background: #fff;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 11px;
  margin: 0;
}

.theme-light .card-tag {
  background: #edf2f7;
  color: #1f2a37;
}

.card-tag-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 4px 0 6px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.card-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.card-inline-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}

.card-inline-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-inline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.has-medal {
  position: relative;
  overflow: hidden;
}

.medal-gold {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 35px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.medal-silver {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 35px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.medal-bronze {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 35px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  z-index: 2;
}

.theme-dark .business-theme {
  color: #d7ebe5;
  --bg-app: #0c1d18;
  --bg-card: #0b1916;
  --surface: #0b1916;
  --bg-header: #0e2720;
  --bg-nav: #0e2720;
  --border-soft: #16332c;
  --text-primary: #d7ebe5;
  --text-secondary: #829f95;
  --chip-bg: #0b1916;
}

.theme-light .business-theme {
  color: #0f2b25;
  --bg-app: #e6f2ec;
  --bg-card: #f7fdf8;
  --surface: #f7fdf8;
  --bg-header: #d7ece2;
  --bg-nav: #d7ece2;
  --border-soft: #b6d5c6;
  --text-primary: #0f2b25;
  --text-secondary: #4a6d62;
  --chip-bg: #f2fbf5;
}

.theme-dark.business-mode {
  --bg-app: #0c1d18;
  --bg-card: #0b1916;
  --surface: #0b1916;
  --bg-header: #0e2720;
  --bg-nav: #0e2720;
  --border-soft: #16332c;
  --text-primary: #d7ebe5;
  --text-secondary: #829f95;
  --chip-bg: #0b1916;
}

.theme-light.business-mode {
  --bg-app: #e6f2ec;
  --bg-card: #f7fdf8;
  --surface: #f7fdf8;
  --bg-header: #d7ece2;
  --bg-nav: #d7ece2;
  --border-soft: #b6d5c6;
  --text-primary: #0f2b25;
  --text-secondary: #4a6d62;
  --chip-bg: #f2fbf5;
}

.business-theme .section-title {
  color: var(--text-primary);
}

.business-theme .section-subtitle {
  color: var(--text-secondary);
}

#business-dojo-rules {
  white-space: pre-line;
  padding-top: 10px;
}

#dojo-detail-rules {
  white-space: pre-line;
}

.card-title {
  font-weight: 600;
  font-size: 15px;
}

.card-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}


.business-edit-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, #0e2720, #0b1e19);
  color: #d7ebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.business-address-card {
  position: relative;
}

.business-address-card #business-address-edit-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 2;
}

.business-rules-card {
  position: relative;
}

.business-rules-card #business-rules-edit-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 2;
}

#business-dojo-address {
  padding: 10px 0 0;
  margin-bottom: 0;
}

#business-dojo-description {
  margin-top: 10px;
  position: relative;
  padding-right: 44px;
  min-height: 34px;
  display: flex;
  align-items: center;
}

#business-dojo-description .business-edit-btn {
  position: absolute;
  top: -4px;
  right: 0;
  z-index: 2;
}


.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.home-search-card {
  cursor: pointer;
  margin-bottom: 10px;
}

.home-search-card .search-bar {
  margin: 8px 0 0;
}

.home-search-card:focus-within,
.home-search-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stat-item {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.rank-label {
  font-size: 13px;
  font-weight: 700;
}

.rank-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Barra de busca */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
  margin: 8px 4px 12px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  flex: 1;
  color: var(--text-primary);
}

.search-icon {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Botão primário */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary.btn-large {
  padding: 10px 16px;
  font-size: 14px;
  min-height: 44px;
}

.business-theme .btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-soft);
}

.btn-secondary:disabled {
  background: #1a1f2a;
  border-color: var(--border-soft);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-secondary.schedule-disable-period-btn:not(:disabled) {
  background: #6b7280;
  color: #ffffff;
  border-color: #5b616d;
}

/* Lista simples (reservas, mensagens, etc.) */
.list {
  margin-top: 8px;
}

.explore-more {
  display: flex;
  justify-content: center;
  margin: 12px 0 4px;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.link-button:disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
}

.list.is-hidden {
  display: none;
}

.list-item {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}

.list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d9cdb, #56ccf2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.list-content-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.list-content-title-thin {
  font-weight: 400;
}

.list-content-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.hub-contact-item {
  align-items: center;
  gap: 12px;
  position: relative;
  padding-right: 44px;
}

.hub-contact-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--chip-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.hub-contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-contact-content .profile-name-row {
  min-height: 0;
}

.hub-contact-content .hub-contact-name {
  font-size: 15px;
  font-weight: 600;
}

.hub-contact-content .profile-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.hub-contact-content .profile-rank {
  width: 100%;
  min-height: 0;
}

.hub-contact-content .profile-rank .rank-belt {
  width: 100%;
}

.hub-contact-content .card-meta {
  margin-bottom: 0;
}

.hub-contact-invite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--chip-bg);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.hub-contact-invite-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.hub-contact-status {
  position: absolute;
  top: 8px;
  right: 8px;
  transform: none;
}

.hub-contact-accept-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--chip-bg);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hub-contact-accept-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.badge-paid {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #16a34a;
}

.badge-warning {
  background: rgba(242, 201, 76, 0.15);
  color: #f2c94c;
}

.badge-info {
  background: rgba(45, 156, 219, 0.15);
  border: 1px solid rgba(45, 156, 219, 0.45);
  color: #1d4ed8;
}

.badge-danger {
  background: rgba(235, 87, 87, 0.08);
  color: var(--danger);
}

/* Perfil */
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 4px;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  margin: 6px 0;
  flex-direction: column;
  align-items: stretch;
  min-height: 120px;
  display: flex;
}

.profile-hero-banner {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.profile-hero-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  min-height: 120px;
}

.profile-avatar .logo-edit-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  top: auto;
  transform: none;
  z-index: 3;
}

.profile-hero .profile-avatar {
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

.profile-hero-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0;
  position: relative;
}

#screen-hub .profile-hero-body {
  align-items: stretch;
}

#screen-hub .profile-hero-text {
  align-self: stretch;
  justify-content: flex-end;
}

.profile-name-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding-right: 0;
  min-height: 36px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  flex: 0 0 112px;
  background: linear-gradient(135deg, #2d9cdb, #bb6bd9);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  position: relative;
  overflow: visible;
}

.profile-avatar.has-image .profile-avatar-text {
  opacity: 0;
}

.profile-avatar.has-image {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  width: 100%;
}

.profile-badges {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  margin: 0;
}

.profile-details-card .profile-badges {
  align-items: flex-start;
  margin-bottom: 6px;
}

.profile-badges .pill {
  font-size: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}

.profile-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-school {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-contact-school {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-school-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.profile-avatar .profile-school-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.profile-rank {
  display: flex;
  align-items: center;
  min-height: 16px;
}

.rank-belt {
  display: flex;
  align-items: stretch;
  height: 15px;
  border-radius: 0 3px 3px 0;
  overflow: hidden;
  width: 100%;
}

.rank-belt-body,
.rank-belt-tip {
  background: var(--belt-color);
}

.rank-belt-body {
  width: 65px;
  flex: 1 1 auto;
}

.rank-belt-black {
  width: 48px;
  background: #000000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 8px;
  position: relative;
}

.rank-belt-black-marked .rank-belt-black {
  width: 64px;
}

.rank-belt-black-red .rank-belt-black {
  background: #a11b1b;
}

.rank-belt-black-marked .rank-belt-black::before,
.rank-belt-black-marked .rank-belt-black::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
}

.rank-belt-black-marked .rank-belt-black::before {
  left: 0;
}

.rank-belt-black-marked .rank-belt-black::after {
  right: 0;
}

.rank-belt-grade {
  width: 4px;
  height: 100%;
  background: #ffffff;
}

.rank-belt-tip {
  width: 10px;
}

.profile-section-card {
  border-radius: var(--radius-card);
  padding: 10px;
  margin: 12px 4px 12px;
  font-size: 13px;
}

.asaas-status-card {
  background: var(--bg-card);
}

.asaas-status-card .btn-secondary {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
}

.profile-section-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.status-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.status-table td:last-child {
  text-align: right;
  color: var(--text-primary);
}

.status-table tr:last-child td {
  border-bottom: none;
}

/* Formulário de conta */
.account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-avatar-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

.account-avatar-wrapper {
  position: relative;
  width: min(130px, 100%);
  height: min(130px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  margin: 0;
}

.account-avatar-large {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  font-size: 44px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
}

.account-avatar-edit-icon {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.account-avatar-text {
  color: var(--text-primary);
}

.account-save-bar {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 24px));
  padding: 0 12px 8px;
  z-index: 21;
}

#screen-account .account-save-bar .btn-primary {
  width: 100%;
}

#screen-account-business .account-save-bar .btn-primary {
  width: 100%;
}

#disable-period-modal #disable-period-submit {
  max-width: 100%;
  width: 100%;
}

#preferences-save-btn {
  opacity: 1;
}

#preferences-save-btn:disabled {
  opacity: 1;
}


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

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1 1 160px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
}

.form-group select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
}

.form-group textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  resize: none;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--text-primary);
  transition: background-color 9999s ease-in-out 0s;
}

.form-group input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.form-group textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.form-group input[readonly] {
  background: #0e2720;
  color: #9aa3a9;
}

.theme-light #screen-account-business .form-group input[readonly] {
  background: #f5faf7;
  color: #8ba197;
  border-color: #e1ece6;
}

.schedule-days-card,
.schedule-calendar-card {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-days-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.schedule-day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schedule-switch {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border-soft);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.schedule-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform 0.2s ease, background 0.2s ease;
}

.schedule-day input:checked + .schedule-switch {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.6);
}

.schedule-day input:checked + .schedule-switch::after {
  transform: translateX(18px);
  background: #10b981;
}

.schedule-intervals {
  margin: 2px 0 8px;
  padding-left: 4px;
  display: grid;
  gap: 8px;
}

.schedule-interval-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.schedule-interval-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
}

.schedule-interval-sep {
  font-size: 12px;
  color: var(--text-secondary);
}

.schedule-interval-add {
  justify-self: start;
  border-radius: 999px;
  border: 1px dashed var(--border-soft);
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}


.form-group input.is-invalid {
  border-color: var(--danger);
}

.form-group input.is-invalid:focus {
  outline: 2px solid var(--danger);
}

.account-asaas-status {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
}

.monetize-card {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

#back-to-profile {
  display: block;
  width: 100%;
  margin: 10px auto;
  text-align: center;
  background: #0b1221;
  color: #d7ebe5;
  border: 1px solid var(--border-soft);
  padding: 10px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.theme-light #back-to-profile {
  background: #e9f2ed;
  color: #0f2b25;
  border-color: #c6ddd1;
}

.theme-light #screen-account-business input:disabled,
.theme-light #screen-account-business textarea:disabled,
.theme-light #screen-account-business select:disabled {
  background: #f5faf7;
  color: #8ba197;
  border-color: #e1ece6;
  opacity: 1;
}

.btn-monetize {
  background: linear-gradient(135deg, #0e2720, #0b1e19);
  color: #d7ebe5;
  font-weight: 700;
  border: 1px solid #16332c;
  width: 100%;
}

.theme-light #screen-account .btn-monetize {
  background: linear-gradient(135deg, #e7f3ec, #d6ede1);
  color: #0f2b25;
  border-color: #b2d2c2;
}

/* Barra de navegação inferior */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-nav);
  border-top: 1px solid var(--border-soft);
  border-top-style: solid;
  border-image: none;
  display: flex;
  justify-content: space-around;
  padding: 9px 0 12px;
  z-index: 20;
}

.bottom-nav.hidden {
  display: none;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 0;
}

.nav-item.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.nav-item-icon {
  font-size: 18px;
}

.nav-item.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-item.active .nav-item-icon {
  transform: translateY(-1px);
}

.theme-dark .bottom-nav-orange {
  background: linear-gradient(135deg, #0e2720, #0b1e19);
  border-top: 1px solid #16332c;
  border-top-style: solid;
  border-image: none;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
}

.theme-light .bottom-nav-orange {
  background: linear-gradient(135deg, #cfe6db, #c0dccf);
  border-top: 1px solid #b2d2c2;
  border-top-style: solid;
  border-image: none;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
}

.theme-dark .bottom-nav-orange .nav-item {
  color: #d7ebe5;
}

.theme-dark .bottom-nav-orange .nav-item.active {
  color: #7cc7b1;
}

.theme-light .bottom-nav-orange .nav-item {
  color: #0f2b25;
}

.theme-light .bottom-nav-orange .nav-item.active {
  color: #0b6b5c;
}

/* Scrollbar simples em desktops */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}
