/* ============================================
   MeowMap — app.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

:root {
  --orange:      #FF7A45;
  --orange-dark: #D4600A;
  --orange-light:#FFF3EB;
  --cream:       #FFF8F2;
  --cream2:      #FDF0E6;
  --border:      #F0E8DE;
  --border2:     #E5D8CC;
  --text-dark:   #2D2D2D;
  --text-mid:    #666666;
  --text-light:  #AAAAAA;
  --green:       #43A047;
  --green-bg:    #E8F5E9;
  --red:         #E53935;
  --red-bg:      #FFEBEE;
  --blue:        #1E88E5;
  --blue-bg:     #E3F2FD;
  --yellow-bg:   #FFF8E1;
  --yellow:      #F9A825;
  --purple:      #8E24AA;
  --purple-bg:   #F3E5F5;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
}

html, body {
  height: 100%;
  font-family: 'Nunito', sans-serif;
  background: #DEDCD8;
  color: var(--text-dark);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ---- SHELL ---- */
#app-outer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0;
}

@media (min-width: 480px) {
  #app-outer { padding: 24px 0; }
}

#app {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 480px) {
  #app {
    min-height: calc(100vh - 48px);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.22);
  }
}

/* ---- STATUS BAR ---- */
#status-bar {
  height: 44px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
  z-index: 10;
}
.app-brand { font-size: 14px; font-weight: 800; }

/* ---- SCREEN ---- */
.screen {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ---- BOTTOM NAV ---- */
#bottom-nav {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 12px);
  flex-shrink: 0;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text-light);
  transition: color .2s;
}
.nav-item.active { color: var(--orange); }
.nav-icon { font-size: 20px; line-height: 1; }
.nav-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.nav-add .nav-icon {
  background: var(--orange);
  border-radius: 14px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-top: -10px;
  box-shadow: 0 4px 16px rgba(255,122,69,.4);
}
.nav-add { color: var(--orange); }

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 16px 20px 10px;
  background: var(--cream);
  flex-shrink: 0;
}
.page-title   { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.page-subtitle{ font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ---- MAP ---- */
#map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
}
#map-loading {
  position: absolute; inset: 0;
  background: rgba(255,248,242,.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.loader-inner { text-align: center; }
.paw-loader { font-size: 40px; animation: paw-bounce .8s ease-in-out infinite alternate; }
@keyframes paw-bounce { from{transform:translateY(0)} to{transform:translateY(-12px)} }
#map-loading p { font-size: 13px; color: var(--text-mid); margin-top: 10px; font-weight: 600; }

#map-search-bar {
  position: absolute;
  top: 10px; left: 12px; right: 12px;
  background: #fff;
  border-radius: 20px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 500;
}
#map-search-bar .search-icon { font-size: 16px; }
#map-search-input {
  flex: 1; border: none; outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; color: var(--text-dark);
  background: transparent;
}
#map-search-input::placeholder { color: var(--text-light); }
#map-search-clear { background: none; border: none; font-size: 14px; color: var(--text-light); cursor: pointer; padding: 0 4px; }

#filter-pills {
  position: absolute;
  top: 60px; left: 12px; right: 12px;
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  z-index: 500;
}
#filter-pills::-webkit-scrollbar { display: none; }

.pill {
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: var(--text-mid);
  transition: all .15s;
}
.pill.active { background: var(--orange); border-color: var(--orange); color: #fff; }

#locate-btn {
  position: absolute;
  right: 14px; bottom: 80px;
  background: #fff;
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 500;
}
#map-fab {
  position: absolute;
  right: 16px; bottom: 20px;
  background: var(--orange);
  color: #fff; text-decoration: none;
  border-radius: 50%; width: 54px; height: 54px;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(255,122,69,.5);
  z-index: 500;
}

/* Cat markers on Leaflet */
.cat-marker-icon {
  background: #fff;
  border: 2.5px solid var(--orange);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.cat-marker-icon.need-help { border-color: var(--red); }
.cat-marker-icon.steril    { border-color: var(--green); }
.cat-marker-icon.adopted   { border-color: var(--purple); }

/* ---- BOTTOM SHEET ---- */
.bottom-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  z-index: 600;
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.bottom-sheet.hidden { transform: translateY(100%); }
.sheet-drag-handle {
  width: 36px; height: 4px;
  background: #E0E0E0; border-radius: 2px;
  margin: 12px auto 10px;
}
.sheet-inner { padding: 0 16px 16px; }
.sheet-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
#sheet-photo-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
  background: var(--orange-light);
}
#sheet-photo { width: 100%; height: 100%; object-fit: cover; }
.sheet-cat-name  { font-size: 18px; font-weight: 800; }
.sheet-cat-meta  { font-size: 12px; color: var(--text-mid); margin-top: 2px; }
.sheet-cat-seen  { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.sheet-actions {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.sheet-actions::-webkit-scrollbar { display: none; }

/* ---- ACTIVITY LIST ---- */
.activity-list { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.act-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.act-cat-photo-wrap { position: relative; flex-shrink: 0; }
.act-cat-photo, .act-cat-photo-placeholder {
  width: 48px; height: 48px; border-radius: 12px;
  object-fit: cover; display: block;
  background: var(--orange-light);
}
.act-cat-photo-placeholder {
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.act-type-badge {
  position: absolute; bottom: -4px; right: -4px;
  background: #fff; border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.act-body { flex: 1; min-width: 0; }
.act-title { font-size: 13px; font-weight: 700; }
.cat-link  { color: var(--orange); text-decoration: none; }
.act-verb  { color: var(--text-mid); font-weight: 400; }
.act-notes { font-size: 12px; color: var(--text-mid); margin-top: 3px; }
.act-meta  { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.act-time  { font-size: 11px; color: var(--text-light); flex-shrink: 0; }

/* ---- FORMS ---- */
.form-group     { margin-bottom: 16px; }
.form-label     { display: block; font-size: 12px; font-weight: 700; color: var(--text-mid); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.form-label .req{ color: var(--red); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: #FFFAF6;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus   { border-color: var(--orange); }
.form-textarea      { resize: none; }
.form-hint          { font-size: 11px; color: var(--text-light); margin-top: 6px; }
.char-count         { font-size: 11px; color: var(--text-light); text-align: right; margin-top: 4px; }
.checkbox-label     { display: flex; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #F5F5F5;
  border: 1.5px solid #EEE;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  color: var(--text-mid);
  transition: all .15s;
}
.chip.selected, .chip:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 14px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  transition: background .15s, transform .1s;
}
.btn-primary:hover  { background: var(--orange-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-full           { display: block; width: 100%; }

.btn-outline {
  display: inline-block;
  background: #fff; color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: 14px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
}
.btn-outline:hover { background: var(--orange-light); }

.act-btn {
  background: var(--orange-light);
  border: 1.5px solid #FFD0A0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  color: var(--orange-dark);
  font-family: 'Nunito', sans-serif;
  text-decoration: none; display: inline-block;
  transition: background .15s;
}
.act-btn:hover { background: #FFE8D6; }

.step-btn-row { display: flex; gap: 10px; margin-top: 8px; }
.step-btn-row .btn-outline,
.step-btn-row .btn-primary { flex: 1; padding: 12px; }

/* ---- ADD STEPS ---- */
.add-step      { padding: 0 16px 8px; }
.add-content   { flex: 1; overflow-y: auto; }
.step-indicator{
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 16px 20px 4px;
}
.step-item     { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step-circle   {
  width: 28px; height: 28px; border-radius: 50%;
  background: #E0E0E0; color: #999;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  transition: all .2s;
}
.step-item.active .step-circle { background: var(--orange); color: #fff; }
.step-item.done  .step-circle  { background: var(--green);  color: #fff; }
.step-label { font-size: 10px; font-weight: 700; color: var(--text-light); text-transform: uppercase; }
.step-item.active .step-label  { color: var(--orange); }
.step-line  { flex: 1; height: 2px; background: #E0E0E0; margin: 0 4px; margin-bottom: 14px; }

.upload-area {
  border: 2.5px dashed #FFD0B0;
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: #FFFAF6;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.upload-area:hover { border-color: var(--orange); }
.upload-icon  { font-size: 40px; margin-bottom: 10px; }
.upload-title { font-size: 16px; font-weight: 800; color: var(--orange-dark); margin-bottom: 4px; }
.upload-sub   { font-size: 12px; color: var(--text-light); }

#add-map { border: 2px solid var(--border); border-radius: var(--radius-md); }

.success-icon  { font-size: 64px; margin-bottom: 16px; }
.success-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.success-text  { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }
.text-center   { text-align: center; }
.success-text + .btn-primary { display: block; margin-bottom: 10px; }

/* ---- CAT CARDS ---- */
.cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.cat-card:hover { background: var(--cream); }
.cat-card-photo { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--orange-light); flex-shrink: 0; }
.cat-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-body  { flex: 1; min-width: 0; }
.cat-card-name  { font-size: 15px; font-weight: 800; }
.cat-card-meta  { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.cat-card-badges{ display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.cat-card-stats { text-align: right; }
.stat-mini      { font-size: 12px; font-weight: 700; color: var(--orange); }
.stat-mini span { font-size: 10px; font-weight: 400; color: var(--text-light); }

/* ---- TABS ---- */
.tab-bar { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; padding: 0 16px; border-bottom: 1px solid var(--border); }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  background: none; border: none;
  padding: 10px 14px; font-size: 12px; font-weight: 700;
  color: var(--text-light); cursor: pointer;
  font-family: 'Nunito', sans-serif;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-content { flex: 1; overflow-y: auto; padding: 12px 16px; }
.tab-content.hidden { display: none; }

/* ---- CAT PROFILE PAGE ---- */
.screen-cat { overflow-y: auto; }
.cat-hero {
  height: 260px;
  background: var(--orange-light) center/cover no-repeat;
  position: relative; flex-shrink: 0;
}
.back-btn {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.9); color: var(--text-dark);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
}
.hero-photo-count {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.5); color: #fff;
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 700;
}
.photo-strip { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; background: #fff; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 2px solid transparent; cursor: pointer; }
.photo-thumb.active { border-color: var(--orange); }

.cat-profile-body { padding: 0 16px; background: var(--cream); }
.cat-profile-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 0; }
.cat-profile-name { font-size: 24px; font-weight: 800; }
.cat-profile-meta { font-size: 13px; color: var(--text-mid); margin-top: 4px; }
.badge-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.follow-btn {
  background: var(--orange-light); color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius-md); padding: 8px 16px;
  font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.follow-btn.following { background: var(--orange); color: #fff; }

.stats-row-4 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; background: #fff;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 16px;
}
.stat-box {
  text-align: center; padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.stat-box:last-child { border-right: none; }
.stat-num { font-size: 20px; font-weight: 800; color: var(--orange); }
.stat-lbl { font-size: 10px; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.action-buttons {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 16px; margin-bottom: 4px;
}
.action-buttons::-webkit-scrollbar { display: none; }
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 20px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
  transition: background .15s;
}
.action-btn span { font-size: 11px; font-weight: 700; color: var(--text-mid); }
.action-btn:hover { background: var(--orange-light); border-color: var(--orange); }

.info-section { margin-bottom: 20px; }
.section-title { font-size: 13px; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.info-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.info-table td:first-child { color: var(--text-light); width: 45%; }
.info-table td:last-child  { font-weight: 700; text-align: right; }

.timeline { position: relative; }
.timeline-item { display: flex; gap: 12px; margin-bottom: 14px; }
.timeline-icon { width: 36px; height: 36px; border-radius: 12px; background: var(--orange-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.timeline-body { flex: 1; }
.timeline-title { font-size: 13px; font-weight: 700; }
.timeline-notes { font-size: 12px; color: var(--text-mid); margin-top: 2px; }
.timeline-meta  { font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.badge-green  { background: var(--green-bg);  color: #1B5E20; }
.badge-red    { background: var(--red-bg);    color: #B71C1C; }
.badge-blue   { background: var(--blue-bg);   color: #0D47A1; }
.badge-yellow { background: var(--yellow-bg); color: #E65100; }
.badge-purple { background: var(--purple-bg); color: #4A148C; }
.badge-gray   { background: #F5F5F5;          color: #424242; }

/* ---- PROFILE ---- */
.screen-profile { overflow-y: auto; }
.profile-hero {
  background: var(--orange);
  padding: 28px 20px 48px;
  text-align: center;
}
.profile-avatar-wrap {
  position: relative; display: inline-block;
  margin-bottom: 12px;
}
.profile-avatar-img, .profile-avatar-initials {
  width: 80px; height: 80px; border-radius: 24px;
  object-fit: cover;
}
.profile-avatar-initials {
  background: rgba(255,255,255,.3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
}
.avatar-edit-btn {
  position: absolute; bottom: -4px; right: -4px;
  background: #fff; border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.profile-name { font-size: 22px; font-weight: 800; color: #fff; }
.profile-sub  { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 4px; }

.stats-card-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; background: #fff;
  border-radius: var(--radius-md); margin: -22px 16px 0;
  box-shadow: var(--shadow-md); overflow: hidden;
  position: relative; z-index: 2;
}
.stat-card {
  text-align: center; padding: 14px 6px;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }

.profile-section { padding: 20px 16px 4px; }
.badge-list  { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-pill  {
  background: var(--orange-light); border: 1.5px solid #FFD0A0;
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; color: var(--orange-dark);
}

.bio-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; cursor: pointer; }
.placeholder-text { color: var(--text-light); font-style: italic; }

.menu-list { margin-top: 12px; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; cursor: pointer;
}
.menu-item:last-child  { border-bottom: none; }
.menu-icon-wrap {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.menu-label  { font-size: 14px; font-weight: 700; flex: 1; }
.menu-arrow  { color: var(--text-light); font-size: 18px; font-weight: 700; }

/* ---- AUTH ---- */
.screen-auth { overflow-y: auto; align-items: stretch; padding: 0 24px; }
.auth-logo   { text-align: center; padding: 40px 0 24px; }
.auth-logo-icon { font-size: 56px; margin-bottom: 8px; }
.auth-title  { font-size: 28px; font-weight: 800; color: var(--text-dark); }
.auth-sub    { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.auth-tabs   { display: flex; background: #F5F5F5; border-radius: var(--radius-md); padding: 4px; margin-bottom: 20px; }
.auth-tab    {
  flex: 1; padding: 10px; text-align: center;
  border: none; background: none; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Nunito', sans-serif; color: var(--text-mid);
  transition: all .2s;
}
.auth-tab.active { background: #fff; color: var(--orange); box-shadow: var(--shadow-sm); }
.auth-guest-link {
  display: block; text-align: center;
  color: var(--text-light); font-size: 13px; font-weight: 600;
  text-decoration: none; margin: 20px 0 32px;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end;
  z-index: 9999;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff; width: 100%; max-width: 430px; margin: 0 auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
}
.modal-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.modal-btns   { display: flex; gap: 10px; margin-top: 14px; }
.modal-btns .btn-outline, .modal-btns .btn-primary { flex: 1; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--text-dark); color: #fff;
  border-radius: 20px; padding: 10px 20px;
  font-size: 13px; font-weight: 700;
  z-index: 9999; white-space: nowrap;
  animation: toast-in .2s ease;
}
.toast.error { background: var(--red); }
.toast.hidden { display: none; }
@keyframes toast-in { from{opacity:0;transform:translateX(-50%) translateY(8px)} to{opacity:1;transform:translateX(-50%)} }

/* ---- EMPTY & ALERTS ---- */
.empty-state {
  text-align: center; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-icon { font-size: 48px; }
.empty-state p  { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.empty-text     { font-size: 13px; color: var(--text-light); font-style: italic; padding: 8px 0; }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid #FFCDD2; }

/* ---- GUEST PROFILE ---- */
.guest-profile {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; padding: 48px 32px; text-align: center;
}
.guest-icon { font-size: 64px; }
.guest-profile h2 { font-size: 22px; font-weight: 800; }
.guest-profile p  { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ---- SKELETON ---- */
.sheet-skeleton { display: flex; gap: 14px; padding: 8px 16px 16px; }
.skel-photo { width: 64px; height: 64px; background: #F0E8DE; border-radius: var(--radius-sm); animation: skel .9s ease infinite alternate; flex-shrink:0; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.skel-line  { height: 14px; background: #F0E8DE; border-radius: 6px; animation: skel .9s ease infinite alternate; }
.w80 { width: 80%; } .w50 { width: 50%; }
@keyframes skel { from{opacity:.5} to{opacity:1} }

/* ---- UTILS ---- */
.hidden { display: none !important; }
a { color: inherit; }
img { display: block; }
