* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f6fa;
  --sidebar: #111827;
  --sidebar-light: #1f2937;
  --primary: #635bff;
  --primary-dark: #5148e5;
  --text: #172033;
  --muted: #7b8498;
  --border: #e7e9ef;
  --white: #ffffff;
  --green: #19a974;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;
}

body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: flex;
}

/* SIDEBAR */

.sidebar {
  width: 250px;
  background: var(--sidebar);
  color: white;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 30px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  font-size: 20px;
  font-weight: 800;
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
}

.brand-subtitle {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  border: 0;
  background: transparent;
  color: #9ca3af;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.nav-item span {
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: var(--sidebar-light);
  color: white;
}

.nav-item.active {
  background: var(--primary);
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
}

.plan-card {
  background: #1b2435;
  border: 1px solid #293449;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 15px;
}

.plan-label {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.plan-title {
  font-weight: 700;
  margin-top: 5px;
}

.plan-text {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 5px;
}

.upgrade-button {
  border: 0;
  width: 100%;
  background: white;
  color: #111827;
  border-radius: 7px;
  padding: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
}

.user-card {
  border-top: 1px solid #293449;
  padding: 16px 4px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card strong {
  font-size: 13px;
}

.user-card span {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* MAIN */

.main {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.topbar {
  height: 84px;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  color: #9aa2b1;
  font-size: 12px;
}

.breadcrumb span {
  color: #5d6678;
}

.topbar h1 {
  margin: 5px 0 0;
  font-size: 23px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.connection-status {
  font-size: 12px;
  color: #596274;
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.notification-button {
  border: 1px solid var(--border);
  background: white;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.content {
  padding: 30px 34px 50px;
  max-width: 1500px;
}

.section {
  display: none;
}

.active-section {
  display: block;
}

/* GENERAL */

.welcome,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.welcome h2,
.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.welcome p,
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 650;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 22px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.stat-icon.purple {
  background: #eeeafd;
}

.stat-icon.blue {
  background: #e9f2ff;
}

.stat-icon.green {
  background: #e7f8f1;
}

.stat-icon.orange {
  background: #fff5df;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.stat-card strong {
  display: inline-block;
  font-size: 24px;
  margin-right: 5px;
}

.stat-card small {
  color: #9ca3af;
  font-size: 11px;
}

/* PANELS */

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 21px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header h3,
.panel h3 {
  margin: 0;
  font-size: 16px;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 17px;
}

/* RESERVATIONS */

.reservation-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f5;
}

.reservation-item:last-child {
  border-bottom: 0;
}

.reservation-info strong {
  display: block;
  font-size: 13px;
}

.reservation-info span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.reservation-date {
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
}

/* TABLE */

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.status,
.status-badge {
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.status.confirmed,
.status-badge.success {
  color: #087a50;
  background: #e4f7ef;
}

.status.pending,
.status-badge.warning {
  color: #9a6500;
  background: #fff4d8;
}

.status-badge.danger {
  color: #b42318;
  background: #feeceb;
}

/* PROPERTIES */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.property-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}

.property-image {
  height: 160px;
  background:
    linear-gradient(
      135deg,
      #e9e5ff,
      #f5f2ff
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}

.property-body {
  padding: 17px;
}

.property-body h3 {
  margin: 0;
}

.property-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.property-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}

.property-status.active {
  background: #e4f7ef;
  color: #087a50;
}

.property-status.inactive {
  background: #f3f4f6;
  color: #6b7280;
}

.property-location {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.property-meta {
  display: flex;
  gap: 12px;
  color: #596274;
  font-size: 12px;
  margin-top: 14px;
}

.property-footer {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.property-price {
  font-weight: 700;
}

.property-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-properties {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    #ffffff,
    #fafaff
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-properties h3 {
  margin: 10px 0 0;
}

.empty-properties p {
  color: var(--muted);
  margin: 8px 0 18px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eeeafd;
  font-size: 26px;
}

/* BUTTONS */

.secondary-button,
.small-button,
.danger-button {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 650;
}

.secondary-button:hover,
.small-button:hover {
  border-color: #cbcfe0;
  background: #fafafa;
}

.small-button,
.secondary-button.small,
.danger-button.small {
  font-size: 12px;
  padding: 7px 10px;
}

.danger-button {
  color: #b42318;
  border-color: #f4c7c3;
}

.danger-button:hover {
  background: #fff5f4;
}

/* PROPERTY MODAL */

.property-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.property-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.property-modal-content {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  overflow-y: auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .22);
}

.property-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
}

.property-modal-header h2 {
  margin: 0;
  font-size: 21px;
}

.property-modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-close {
  border: 0;
  background: #f4f5f8;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 22px;
  line-height: 1;
}

#property-form {
  padding: 24px 26px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  min-width: 0;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  color: var(--text);
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .1);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.check-option {
  display: flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 11px;
  background: #fafbfe;
  font-weight: 500 !important;
  margin: 0 !important;
}

.check-option input {
  width: auto !important;
  margin: 0 !important;
}

.property-details-section {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.property-details-section h3 {
  margin: 8px 0 14px;
  font-size: 15px;
}

.property-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 26px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  position: sticky;
  bottom: 0;
  background: white;
}

/* CHAT REAL */

.assistant-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
}

.assistant-info {
  align-self: start;
}

.assistant-avatar {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #eeeafd;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.assistant-info h3 {
  margin-top: 16px;
}

.assistant-info p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  font-size: 12px;
  color: #596274;
}

.assistant-chat {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  min-height: 420px;
}

.message {
  display: flex;
  margin-bottom: 13px;
}

.message.assistant-message {
  justify-content: flex-start;
}

.message.user-message {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 72%;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f1f2f6;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.user-message .message-bubble {
  background: var(--primary);
  color: white;
}

.chat-input {
  border-top: 1px solid var(--border);
  padding: 13px;
  display: flex;
  gap: 8px;
  background: white;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  outline: none;
}

.chat-input input:focus {
  border-color: var(--primary);
}

.chat-input button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 0 17px;
  font-weight: 700;
}

/* CALENDAR */

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-month-title {
  min-width: 220px;
  text-align: center;
  font-size: 16px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.calendar-weekdays {
  margin-bottom: 7px;
}

.calendar-weekdays > div {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
}

.calendar-day {
  min-height: 105px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 9px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.calendar-day:hover {
  border-color: #c9c6ff;
  box-shadow: 0 4px 14px rgba(99, 91, 255, .08);
  transform: translateY(-1px);
}

.calendar-day-empty {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.calendar-day-today {
  border: 2px solid var(--primary);
}

.calendar-day-reserved {
  background: #faf9ff;
}

.calendar-day-blocked {
  background: #fffaf0;
}

.calendar-day-number {
  font-size: 12px;
  font-weight: 750;
}

.calendar-day-events {
  display: grid;
  gap: 5px;
}

.calendar-event {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
}

.calendar-event.reservation {
  color: #574ee7;
  background: #eeeafd;
}

.calendar-event.block {
  color: #9a6500;
  background: #fff4d8;
}

/* SETTINGS */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row strong {
  font-size: 13px;
}

.setting-row span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.setting-row button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 650;
}

.switch {
  position: relative;
  width: 43px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #d6d9e2;
  border-radius: 999px;
  transition: .18s ease;
}

.switch span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: .18s ease;
}

.switch input:checked + span {
  background: var(--primary);
}

.switch input:checked + span::before {
  transform: translateX(19px);
}

.pricing-options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pricing-options > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfe;
}

.pricing-options span {
  color: var(--muted);
  font-size: 12px;
}

/* PREMIUM EMPTY STATES / TEAM */

.sp-empty {
  min-height: 180px;
  padding: 32px 24px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fafaff
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.sp-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eeeafd;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}

.sp-empty strong {
  font-size: 15px;
}

.sp-empty span {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sp-empty button {
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.sp-empty-chat {
  min-height: 100%;
  border: 0;
  background: transparent;
}

.dashboard-grid-single {
  grid-template-columns: 1fr;
}

.team-list {
  display: grid;
  gap: 2px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.team-row:last-child {
  border-bottom: 0;
}

.team-copy strong,
.team-copy span {
  display: block;
}

.team-copy strong {
  font-size: 13px;
}

.team-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f0efff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

/* TOAST */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20000;
  max-width: 390px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #111827;
  color: white;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* AUTH */

.auth-hidden {
  visibility: hidden;
}

#staypilot-login {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background:
    radial-gradient(
      circle at top left,
      rgba(99, 91, 255, .12),
      transparent 38%
    ),
    #f7f8fc;
  overflow: auto;
}

.sp-auth-shell {
  min-height: 100vh;
  padding: 42px;
  display: flex;
  flex-direction: column;
}

.sp-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
}

.sp-auth-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-weight: 850;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(99, 91, 255, .18);
}

.sp-auth-brand strong,
.sp-auth-brand span {
  display: block;
}

.sp-auth-brand strong {
  font-size: 17px;
}

.sp-auth-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.sp-auth-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 80px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.sp-auth-copy {
  max-width: 620px;
}

.sp-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eeeafd;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.sp-auth-copy h1 {
  margin: 20px 0 16px;
  max-width: 640px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.sp-auth-copy p {
  margin: 0;
  max-width: 580px;
  color: #667085;
  font-size: 17px;
  line-height: 1.7;
}

.sp-auth-benefits {
  display: grid;
  gap: 11px;
  margin-top: 28px;
  color: #475467;
  font-size: 13px;
}

.sp-auth-card {
  background: white;
  border: 1px solid #e8eaf0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}

.sp-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f5f8;
  border-radius: 10px;
  padding: 4px;
}

.sp-auth-tabs button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.sp-auth-tabs button.active {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .07);
}

.sp-auth-heading {
  margin: 26px 0 20px;
}

.sp-auth-heading h2 {
  margin: 0;
  font-size: 22px;
}

.sp-auth-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sp-auth-field {
  display: block;
  margin-bottom: 15px;
}

.sp-auth-field span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.sp-auth-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 13px;
  outline: none;
}

.sp-auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .1);
}

.sp-auth-error {
  min-height: 20px;
  margin: 2px 0 8px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.sp-auth-submit {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 12px 14px;
  background: var(--primary);
  color: white;
  font-weight: 750;
}

.sp-auth-submit:hover {
  background: var(--primary-dark);
}

.sp-auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.sp-auth-security {
  margin: 16px 0 0;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .sp-auth-grid {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .app {
    display: block;
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .sidebar-bottom {
    display: none;
  }

  .navigation {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
  }

  .brand {
    padding-bottom: 18px;
  }

  .topbar {
    height: auto;
    padding: 18px 20px;
  }

  .content {
    padding: 22px 20px 40px;
  }

  .dashboard-grid,
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .assistant-chat {
    min-height: 500px;
  }

  .sp-auth-shell {
    padding: 26px;
  }

  .sp-auth-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sp-auth-copy {
    max-width: 760px;
  }

  .sp-auth-copy h1 {
    font-size: 42px;
  }

  .sp-auth-card {
    max-width: 560px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .stats-grid,
  .property-grid,
  .form-grid,
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .welcome,
  .section-heading,
  .property-footer,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .property-modal {
    padding: 0;
  }

  .property-modal-content {
    max-height: 100vh;
    border-radius: 0;
    min-height: 100vh;
  }

  .property-modal-header {
    padding: 18px;
  }

  #property-form {
    padding: 18px 18px 0;
  }

  .property-modal-footer {
    padding: 16px 18px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    min-height: 78px;
    padding: 6px;
  }

  .calendar-event {
    font-size: 8px;
    padding: 3px 5px;
  }

  .message-bubble {
    max-width: 88%;
  }

  .sp-auth-shell {
    padding: 20px;
  }

  .sp-auth-brand {
    margin-bottom: 32px;
  }

  .sp-auth-copy h1 {
    font-size: 34px;
  }

  .sp-auth-copy p {
    font-size: 15px;
  }

  .sp-auth-card {
    padding: 20px;
    border-radius: 14px;
  }
}

.property-channels { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; color:#6b7280; font-size:12px; }
.property-channels span { background:#f6f7fb; border:1px solid #e8eaf0; border-radius:999px; padding:5px 8px; }
.channels-layout { display:grid; gap:16px; }
.channel-card { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.channel-card h3,.channel-events h3 { margin:0 0 7px; }
.channel-card p { margin:0; color:#667085; max-width:650px; }
.channel-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.channel-event-list { display:grid; gap:9px; }
.channel-event { display:grid; grid-template-columns:minmax(120px, .7fr) minmax(120px, .8fr) 2fr; gap:12px; padding:12px 0; border-bottom:1px solid #edf0f5; color:#667085; }
.channel-event:last-child { border-bottom:0; }
@media (max-width: 680px) { .channel-card { align-items:flex-start; flex-direction:column; } .channel-actions { justify-content:flex-start; } .channel-event { grid-template-columns:1fr; gap:4px; } }
.billing-summary,.billing-actions,.billing-plans { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; align-items:center; }
.billing-summary span { color:#667085; }
.billing-plan { display:grid; gap:4px; min-width:145px; padding:12px; border:1px solid #e8eaf0; border-radius:12px; color:#667085; }
.billing-plan.selected { border-color:#5b5ce2; background:#f5f5ff; color:#25255e; }
.property-photo-manager{margin:20px 0;padding:18px;border:1px solid #e7e8f2;border-radius:16px;background:#fafaff}.property-photo-manager h3{margin:0}.property-photo-manager p{margin:5px 0 14px;color:#667085}.photo-upload-control{display:inline-flex;padding:10px 14px;background:#292a65;color:#fff;border-radius:10px;cursor:pointer}.photo-upload-control input{position:absolute;width:1px;height:1px;opacity:0}.property-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:14px}.property-photo{position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#e9ebf5}.property-photo img{width:100%;height:100%;object-fit:cover}.property-photo button,.property-photo span{position:absolute;right:6px;top:6px;border:0;border-radius:8px;padding:5px;background:#fff;color:#25255e}.property-photo span{left:6px;right:auto}.photo-empty{grid-column:1/-1;padding:20px;color:#667085;text-align:center;border:1px dashed #cfd3e6;border-radius:12px}@media(max-width:768px){.property-modal-content{max-height:100vh;border-radius:0}.property-photo-grid{grid-template-columns:repeat(2,1fr)}}
