/* =========================================================
   ОрендаПро — Design System
   Джерело: /DESIGN.md
   ========================================================= */

:root {
  /* Accent */
  --color-accent:        #FF5B27;
  --color-accent-hover:  #E84E1E;
  --color-accent-light:  #FFF0EB;
  --color-accent-text:   #CC3D0F;

  /* Neutral */
  --color-white:        #FFFFFF;
  --color-bg-page:      #F2F4F8;
  --color-bg-subtle:    #EEF0F5;
  --color-border:       #E4E7EE;
  --color-border-focus: #C8CDD8;

  /* Text */
  --color-text-primary:   #0F1923;
  --color-text-secondary: #5A6478;
  --color-text-hint:      #9AA0B0;

  /* Nav (dark) */
  --color-nav-bg:          #1A2332;
  --color-nav-text:        #9AA5B8;
  --color-nav-active-bg:   #FF5B27;
  --color-nav-active-text: #FFFFFF;

  /* Status */
  --color-success-bg:   #E8F7F0;
  --color-success-text: #1A7A4A;
  --color-success-dot:  #22C063;
  --color-warning-bg:   #FFF6E5;
  --color-warning-text: #9A6500;
  --color-warning-dot:  #F5A623;
  --color-danger-bg:    #FFECEB;
  --color-danger-text:  #CC2A1F;
  --color-danger-dot:   #FF4136;
  --color-info-bg:      #E8F0FF;
  --color-info-text:    #2B5CC4;

  /* Tags */
  --color-tag-purple-bg:   #EDE8FF;
  --color-tag-purple-text: #5B3FCC;
  --color-tag-blue-bg:     #E3EEFF;
  --color-tag-blue-text:   #1E4DB0;
  --color-tag-green-bg:    #E5F7EF;
  --color-tag-green-text:  #1A7A4A;
  --color-tag-orange-bg:   #FFF0EB;
  --color-tag-orange-text: #CC3D0F;

  /* Radius */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(15,25,35,0.06);
  --shadow-sm:  0 2px 8px rgba(15,25,35,0.08);
  --shadow-md:  0 6px 20px rgba(15,25,35,0.10);
  --shadow-lg:  0 12px 32px rgba(15,25,35,0.12);
  --shadow-accent: 0 8px 24px rgba(255,91,39,0.35);

  /* Type */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  36px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: linear-gradient(180deg, #F0F3FA 0%, #F5F7FC 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--color-text-primary); font-weight: 700; line-height: 1.2; }
p { margin: 0; }
input, textarea, select { font-family: inherit; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--color-accent);
  color: white;
  padding: 14px 28px;
  font-size: 15px;
  min-height: 52px;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 10px 28px rgba(255,91,39,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border);
  padding: 13px 28px;
  font-size: 15px;
  min-height: 52px;
}
.btn-secondary:hover {
  border-color: var(--color-border-focus);
  background: var(--color-bg-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 10px 16px;
  font-size: 14px;
  min-height: auto;
}
.btn-ghost:hover { background: var(--color-accent-light); }

.btn-dark {
  background: var(--color-nav-bg);
  color: white;
  padding: 14px 28px;
  font-size: 15px;
  min-height: 52px;
}
.btn-dark:hover { background: #243048; }

.btn-sm  { padding: 8px 18px;  font-size: 13px; min-height: 38px; }
.btn-md  { padding: 12px 24px; font-size: 14px; min-height: 46px; }
.btn-lg  { padding: 16px 36px; font-size: 16px; min-height: 56px; }
.btn-full { width: 100%; }

.icon-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: white;
  border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 150ms;
}
.icon-btn:hover { background: var(--color-bg-subtle); color: var(--color-text-primary); }
.icon-btn-accent { background: var(--color-accent); color: white; border-color: var(--color-accent); box-shadow: var(--shadow-accent); }
.icon-btn-accent:hover { background: var(--color-accent-hover); color: white; }

/* ===========================================================
   CARDS
   =========================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  border: 1px solid rgba(228,231,238,0.6);
}
.card-sm { border-radius: var(--radius-lg); padding: 16px; }
.card-interactive { transition: all 200ms; cursor: pointer; }
.card-interactive:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ===========================================================
   BADGES & TAGS
   =========================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success-text); }
.badge-success::before { background: var(--color-success-dot); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.badge-warning::before { background: var(--color-warning-dot); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger-text); }
.badge-danger::before  { background: var(--color-danger-dot); }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info-text); }
.badge-info::before    { background: var(--color-info-text); }
.badge-on-photo { background: rgba(255,255,255,0.95); color: var(--color-text-primary); backdrop-filter: blur(8px); }
.badge-on-photo::before { background: var(--color-success-dot); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-purple { background: var(--color-tag-purple-bg); color: var(--color-tag-purple-text); }
.tag-blue   { background: var(--color-tag-blue-bg);   color: var(--color-tag-blue-text); }
.tag-green  { background: var(--color-tag-green-bg);  color: var(--color-tag-green-text); }
.tag-orange { background: var(--color-tag-orange-bg); color: var(--color-tag-orange-text); }

.tag svg { width: 12px; height: 12px; }

/* ===========================================================
   AVATARS
   =========================================================== */
.avatar {
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--color-accent-light);
  color: var(--color-accent);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 28px; height: 28px; font-size: 10px; }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 15px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }

/* ===========================================================
   FILTER CHIPS (горизонтальний рядок)
   =========================================================== */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  margin: 0 -4px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: white;
  border: 1.5px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 150ms;
}
.chip:hover { border-color: var(--color-border-focus); }
.chip.active {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: white;
}

/* ===========================================================
   SEARCH BAR
   =========================================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  transition: all 150ms;
}
.search-bar:focus-within {
  background: white;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.search-bar svg {
  width: 18px; height: 18px;
  color: var(--color-text-hint);
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-text-primary);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--color-text-hint); }
.search-bar__btn {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,91,39,0.3);
  cursor: pointer;
  white-space: nowrap;
}
.search-bar__btn:hover { background: var(--color-accent-hover); }

/* Compact version (just icon button) */
.search-bar-compact .search-bar__btn {
  width: 36px; height: 36px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===========================================================
   FORM
   =========================================================== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  background: var(--color-bg-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: all 150ms;
  min-height: 52px;
  font-family: inherit;
}
.form-textarea { min-height: 96px; resize: vertical; }
.form-input::placeholder { color: var(--color-text-hint); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: white;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255,91,39,0.12);
}

/* ===========================================================
   BOTTOM NAV (mobile)
   =========================================================== */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 10px 12px;
  background: var(--color-nav-bg);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(15,25,35,0.2);
}
.bottom-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-nav-text);
  transition: all 200ms;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
}
.bottom-nav__item svg { width: 20px; height: 20px; flex-shrink: 0; }
.bottom-nav__item.active {
  background: var(--color-nav-active-bg);
  color: var(--color-nav-active-text);
  box-shadow: 0 4px 16px rgba(255,91,39,0.4);
}
.bottom-nav__item:not(.active) span { display: none; }
.bottom-nav__item.active span { display: inline; }

/* ===========================================================
   PROPERTY CARD (full)
   =========================================================== */
.property-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 200ms;
}
.property-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.property-card__photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD4B8, #FF8C66);
}
.property-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.property-card__photo .badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
.property-card__photo .like {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.property-card__body { padding: 16px; }
.property-card__title { font-size: 15px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; }
.property-card__meta { font-size: 12px; color: var(--color-text-hint); margin-bottom: 12px; }
.property-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.property-card__tenant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
}
.property-card__tenant .tenant-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.property-card__tenant .tenant-sub {
  font-size: 11px;
  color: var(--color-text-hint);
}
.property-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-bg-subtle);
}
.property-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.property-card__price strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.property-card__price span {
  font-size: 12px;
  color: var(--color-text-hint);
}

/* compact (mini list) */
.property-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 150ms;
  cursor: pointer;
}
.property-mini:hover { box-shadow: var(--shadow-sm); }
.property-mini__photo {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FFD4B8, #FF8C66);
  flex-shrink: 0;
  overflow: hidden;
}
.property-mini__photo img { width: 100%; height: 100%; object-fit: cover; }
.property-mini__info { flex: 1; min-width: 0; }
.property-mini__title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-mini__sub { font-size: 12px; color: var(--color-text-hint); margin-top: 2px; }
.property-mini__match {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===========================================================
   STAT CARD
   =========================================================== */
.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(228,231,238,0.6);
}
.stat-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--color-accent);
}
.stat-card__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label { font-size: 13px; color: var(--color-text-secondary); }
.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
.stat-card__trend--up   { color: var(--color-success-text); }
.stat-card__trend--down { color: var(--color-danger-text); }

/* ===========================================================
   PAYMENT ROW
   =========================================================== */
.payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.payment-row:last-child { border-bottom: none; }
.payment-row__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}
.payment-row__info { flex: 1; min-width: 0; }
.payment-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payment-row__sub { font-size: 12px; color: var(--color-text-hint); margin-top: 2px; }
.payment-row__amount { font-size: 15px; font-weight: 700; color: var(--color-text-primary); white-space: nowrap; }
.payment-row__amount--income  { color: var(--color-success-text); }
.payment-row__amount--expense { color: var(--color-danger-text); }

/* ===========================================================
   PAGE PARTS
   =========================================================== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.section-title a {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-hint);
}

/* ===========================================================
   PHONE MOCKUP (для index showcase)
   =========================================================== */
.phones-stage {
  background: linear-gradient(180deg, #B5BBC7 0%, #A0A6B3 100%);
  padding: 80px 40px;
  border-radius: 32px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.phone {
  width: 320px;
  height: 660px;
  background: var(--color-bg-page);
  border-radius: 44px;
  padding: 12px;
  border: 8px solid #1A2332;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.phone--tall { height: 700px; }
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #1A2332;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  flex-shrink: 0;
}
.phone__statusbar .icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone__screen {
  flex: 1;
  background: var(--color-bg-page);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone__screen.has-photo-top { padding-top: 0; }

/* Inside-phone reusable: scrollable content + sticky bottom nav */
.phone-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
}
.phone-content::-webkit-scrollbar { display: none; }
.phone-content--no-pad { padding: 0; }

.phone-bottom-nav {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
}

/* Header inside phone */
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.phone-header__welcome { font-size: 12px; color: var(--color-text-hint); margin-bottom: 2px; }
.phone-header__name { font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
.phone-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Property hero image (used in detail screen) */
.property-hero {
  position: relative;
  height: 320px;
  background: linear-gradient(135deg, #FFD4B8 0%, #FF8C66 50%, #C44A1F 100%);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.property-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,35,0.2) 0%, transparent 30%, transparent 60%, rgba(15,25,35,0.55) 100%);
}
.property-hero img { width: 100%; height: 100%; object-fit: cover; }
.property-hero__topbar {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.property-hero__topbar .icon-btn { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border: none; }
.property-hero__title-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  z-index: 2;
  white-space: nowrap;
}

/* Quick filter card */
.quick-filter {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-filter__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.quick-filter__label { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.quick-filter__value { font-size: 11px; color: var(--color-text-hint); }

/* Suggestion list (search) */
.suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 150ms;
}
.suggestion:hover { box-shadow: var(--shadow-sm); }
.suggestion svg {
  width: 18px; height: 18px;
  color: var(--color-text-hint);
  flex-shrink: 0;
}
.suggestion span { font-size: 14px; color: var(--color-text-primary); flex: 1; }

/* Showcase page grid */
.showcase-page { padding: 60px 0 100px; }
.showcase-page__header { text-align: center; max-width: 740px; margin: 0 auto 24px; }
.showcase-page__eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent-text);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.showcase-page__header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.showcase-page__header p {
  font-size: 17px;
  color: var(--color-text-secondary);
}

/* Component swatches block */
.swatches { display: grid; gap: 32px; max-width: 1100px; margin: 60px auto 0; padding: 0 32px; }
.swatch-block { background: white; border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-sm); }
.swatch-block h3 { font-size: 17px; margin-bottom: 6px; }
.swatch-block p.muted { font-size: 13px; color: var(--color-text-hint); margin-bottom: 20px; }
.swatch-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.color-swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-hint);
}
.color-swatch__chip {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
}

/* ===========================================================
   FORM — input with icon left / suffix right
   =========================================================== */
.form-input-wrap { position: relative; }
.form-input-wrap .form-input { padding-left: 46px; }
.form-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-hint);
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.form-input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--color-text-hint);
  pointer-events: none;
}

/* ===========================================================
   SKELETON LOADING
   =========================================================== */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #EEF0F5 25%, #E4E7EF 50%, #EEF0F5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); }
.skeleton-card { height: 200px; border-radius: var(--radius-xl); }
.skeleton-row { height: 56px; border-radius: var(--radius-md); margin-bottom: 8px; }

/* ===========================================================
   MODAL / BOTTOM SHEET
   =========================================================== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,35,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 0 24px calc(32px + env(safe-area-inset-bottom));
  z-index: 201;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-sheet.is-open {
  transform: translateY(0);
}
.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 12px auto 24px;
}
.bottom-sheet__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}
.bottom-sheet__actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-bg-subtle);
}

@media (min-width: 768px) {
  .bottom-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    border-radius: var(--radius-xl);
    width: 480px;
    max-width: calc(100vw - 48px);
    padding: 32px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms;
  }
  .bottom-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .bottom-sheet__handle { display: none; }
}

/* ===========================================================
   AUTH SHELL
   =========================================================== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  background: var(--color-bg-page);
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,91,39,0.18) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.auth-shell::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,63,204,0.12) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}
.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: 0 30px 80px -20px rgba(15,25,35,0.18), 0 0 0 1px rgba(228,231,238,0.6);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.auth-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-accent);
}
.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-primary);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-hint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.auth-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 150ms;
  text-decoration: none;
  min-height: 48px;
}
.auth-social__btn:hover {
  border-color: var(--color-border-focus);
  background: var(--color-bg-subtle);
}
.auth-social__btn svg { width: 18px; height: 18px; }
.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.auth-footer a {
  color: var(--color-accent);
  font-weight: 700;
}
.auth-footer a:hover { color: var(--color-accent-hover); }

/* Side image panel for desktop */
.auth-side {
  display: none;
  flex: 1;
  background: linear-gradient(135deg, #1A2332 0%, #243048 60%, #2D3E5A 100%);
  position: relative;
  padding: 60px;
  align-items: flex-end;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.auth-side::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,91,39,0.4) 0%, transparent 60%);
  filter: blur(60px);
}
.auth-side__quote {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 460px;
}
.auth-side__quote .stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.auth-side__quote .text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: white;
}
.auth-side__quote .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-side__quote .author .avatar {
  background: linear-gradient(135deg, #FFD4B8, #FF8C66);
  color: white;
}
.auth-side__quote .author-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.auth-side__quote .author-role {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.auth-side__top {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .auth-side { display: flex; }
}

/* Form helper for auth */
.form-input-group { position: relative; }
.form-input-group .form-input { padding-right: 50px; }
.form-input-group__toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-hint);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}
.form-input-group__toggle:hover { color: var(--color-text-primary); }

/* Role selection cards */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.role-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 150ms;
  position: relative;
}
.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-card:hover { border-color: var(--color-accent-light); background: rgba(255,240,235,0.4); }
.role-card:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}
.role-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.role-card:has(input:checked) .role-card__icon {
  background: var(--color-accent);
  color: white;
}
.role-card__title { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.role-card__sub { font-size: 12px; color: var(--color-text-hint); }

/* Helpers */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.text-muted { color: var(--color-text-secondary); }
.text-hint { color: var(--color-text-hint); }
.text-sm { font-size: 13px; }
.font-bold { font-weight: 700; }