/* =====================================================
   gatinho virtual — Orkut-Replica Stylesheet (Cat Edition)
   Faithful recreation of classic Orkut (2005–2008)
   with cat-themed color palette
   ===================================================== */

/* --- CSS Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  background-color: #e8dff0;
  color: #333;
  min-height: 100vh;
}

a {
  color: #7b3fa0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #5a2d78;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Top Navigation Bar --- */
.navbar {
  background: linear-gradient(135deg, #7b3fa0 0%, #a855c9 50%, #c77ddd 100%);
  padding: 0;
  border-bottom: 3px solid #5a2d78;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-logo .logo-text {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.navbar-logo .logo-emoji {
  font-size: 20px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0e0ff;
  font-size: 11px;
  font-weight: bold;
}

.notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #f0e0ff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.notification-bell:hover,
.notification-bell:focus-visible,
.notification-menu.is-open .notification-bell {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}

.notification-bell.has-unread {
  border-color: rgba(255, 255, 255, 0.45);
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d3225f;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #d6408f;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  width: min(320px, 88vw);
  border: 1px solid #d8c7e8;
  border-radius: 6px;
  background: #fff;
  color: #333;
  box-shadow: 0 12px 28px rgba(70, 43, 103, 0.22);
}

.notification-menu.is-open .notification-dropdown {
  display: block;
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eadff3;
}

.notification-dropdown-title {
  color: #5f2d87;
  font-size: 12px;
  font-weight: bold;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.notification-action-form {
  margin: 0;
}

.notification-action-btn {
  border: 1px solid #d8c7e8;
  border-radius: 4px;
  background: #fff;
  color: #5f2d87;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  line-height: 1.2;
  padding: 3px 6px;
}

.notification-action-btn:hover,
.notification-action-btn:focus-visible {
  background: #f0e4f8;
  color: #2f0f4a;
  outline: none;
}

.notification-empty {
  padding: 10px;
  color: #777;
  font-size: 12px;
}

.notification-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 6px;
  align-items: start;
  padding: 9px 10px;
  border-bottom: 1px solid #f0e9f6;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.notification-list li:last-child .notification-item {
  border-bottom: 0;
}

.notification-item:hover,
.notification-item:focus-visible {
  background: #f6f1fb;
  color: #3d155f;
  outline: none;
}

.notification-item.is-unread {
  background: #fff7fb;
  color: #3d155f;
  font-weight: normal;
}

.notification-item.is-unread:hover,
.notification-item.is-unread:focus-visible {
  background: #f0e4f8;
  color: #2f0f4a;
}

.notification-item.is-read {
  grid-template-columns: 1fr;
  color: #555;
  font-weight: normal;
}

.notification-item.is-read:hover,
.notification-item.is-read:focus-visible {
  color: #3d155f;
}

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: #d3225f;
}

.notification-message {
  min-width: 0;
}

.navbar-links a,
.navbar-session-actions a {
  color: #f0e0ff;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background 0.2s;
}

.navbar-links a:hover,
.navbar-session-actions a:hover,
.navbar-link-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #fff;
}

.navbar-links a.active,
.navbar-session-actions a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  gap: 4px;
}

.lang-toggle a {
  padding: 2px 6px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  color: #f0e0ff;
}

.lang-toggle a.current-lang {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: bold;
}

/* --- Main Content Container --- */
.container {
  max-width: 960px;
  margin: 12px auto;
  padding: 0 10px;
}

/* --- Orkut-style Boxes/Panels --- */
.orkut-box {
  background: #fff;
  border: 1px solid #c4b0d4;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}

.orkut-box-header {
  background: linear-gradient(180deg, #d9c4ee 0%, #c9aede 100%);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #4a1a6b;
  border-bottom: 1px solid #b89fd0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orkut-box-header .header-icon {
  margin-right: 5px;
}

.orkut-box-body {
  padding: 10px;
}

/* --- Homepage Layout --- */
.home-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Welcome Box --- */
.welcome-box {
  text-align: center;
  padding: 16px;
}

.welcome-box h1 {
  font-size: 18px;
  color: #5a2d78;
  margin-bottom: 4px;
}

.welcome-box p {
  font-size: 11px;
  color: #777;
}

/* --- Stats Box --- */
.stats-list {
  list-style: none;
}

.stats-list li {
  padding: 4px 0;
  border-bottom: 1px dotted #e0d0ee;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-value {
  font-weight: bold;
  color: #7b3fa0;
}

/* --- Cat Grid --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cat-card {
  background: #fff;
  border: 1px solid #d4c4e4;
  border-radius: 5px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}

.cat-card:hover {
  box-shadow: 0 3px 10px rgba(123, 63, 160, 0.2);
  transform: translateY(-2px);
}

.cat-card .cat-avatar {
  width: 90px;
  height: 90px;
  display: block;
  border-radius: 5px;
  object-fit: cover;
  border: 2px solid #d9c4ee;
  margin-bottom: 6px;
}

.cat-card .cat-name {
  font-size: 11px;
  font-weight: bold;
  color: #5a2d78;
  display: block;
  margin-bottom: 2px;
}

.cat-card .cat-breed {
  display: block;
  font-size: 10px;
  color: #999;
}

.cat-card .cat-view-link {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #7b3fa0;
  border: 1px solid #d4c4e4;
  padding: 2px 8px;
  border-radius: 3px;
  transition: background 0.2s;
}

.cat-card .cat-view-link:hover {
  background: #f0e0ff;
  text-decoration: none;
}

/* --- New Cat Alert --- */
.new-cat-alert {
  background: #fff3d4;
  border: 1px solid #f0d080;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  color: #b8860b;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

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

/* --- Profile Page Layout --- */
.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* --- Profile Photo Box --- */
.profile-photo-box {
  text-align: center;
  padding: 12px;
}

.profile-photo-box .profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 5px;
  object-fit: cover;
  border: 3px solid #d9c4ee;
  margin-bottom: 8px;
}

.profile-photo-box .profile-name {
  font-size: 16px;
  font-weight: bold;
  color: #5a2d78;
  display: block;
}

.profile-photo-box .profile-breed {
  font-size: 11px;
  color: #999;
  display: block;
  margin-top: 2px;
}

/* --- Profile Info Table --- */
.profile-info-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-info-table tr {
  border-bottom: 1px dotted #e0d0ee;
}

.profile-info-table tr:last-child {
  border-bottom: none;
}

.profile-info-table td {
  padding: 5px 8px;
  font-size: 11px;
  vertical-align: top;
}

.profile-info-table .label {
  font-weight: bold;
  color: #5a2d78;
  width: 120px;
}

.profile-info-table .value {
  color: #333;
}

/* --- About Me Box --- */
.about-me-text {
  font-size: 12px;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  padding: 4px 0;
}

/* --- Adoption Card --- */
.adoption-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adoption-status-pill {
  display: inline-block;
  align-self: flex-start;
  background: #fff0f7;
  color: #a12a68;
  border: 1px solid #f0bad4;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.adoption-status-pill.adopted {
  background: #eef8ef;
  color: #2e7b45;
  border-color: #c9e8d0;
}

.adoption-message {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
}

.adoption-cta-button {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, #d94f93, #a23dd8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(162, 61, 216, 0.18);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.adoption-cta-button:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.adoption-page {
  max-width: 680px;
  margin: 0 auto;
}

.adoption-placeholder {
  text-align: center;
  padding: 24px 32px 28px;
}

.adoption-avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #d9c4ee;
  margin-bottom: 12px;
}

.adoption-placeholder h1 {
  font-size: 22px;
  color: #5a2d78;
  margin-bottom: 10px;
}

.adoption-copy {
  max-width: 560px;
  margin: 14px auto 0;
}

.adoption-copy .adoption-message {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.adoption-action-panel {
  max-width: 460px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid #eadcf3;
}

.adoption-note {
  margin: 0 auto 14px;
  max-width: 420px;
  font-size: 11px;
  line-height: 1.6;
  color: #777;
}

/* --- Personality Traits --- */
.trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trait-tag {
  background: linear-gradient(135deg, #f0e0ff, #e0d0f0);
  border: 1px solid #d4c4e4;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 10px;
  color: #5a2d78;
}

.archetype-wrap {
  margin-top: 8px;
}

.archetype-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7b3fa0, #a855c9);
  color: #fff;
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
}

/* --- Friends Grid --- */
.friends-view-all {
  font-size: 10px;
  color: #ed2590;
  text-decoration: none;
}

.friends-empty-state {
  font-size: 11px;
  color: #666;
  text-align: center;
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.friend-thumbnail {
  display: block;
  text-align: center;
  text-decoration: none;
}

.friend-thumbnail:hover {
  text-decoration: none;
}

.friend-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.friend-name {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;
  color: #ed2590;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Profile Tabs (future: scraps, testimonials, etc.) --- */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #d9c4ee;
  min-width: 0;
}

.profile-tab {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #7b3fa0;
  border: 1px solid #d4c4e4;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #f5eefc;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-tab:hover {
  background: #e0d0f0;
}

.profile-tab.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -2px;
  color: #5a2d78;
}

.profile-tab-panel {
  padding: 10px;
  font-size: 11px;
  color: #666;
  min-height: 60px;
}

.scraps-section {
  margin-bottom: 16px;
}

.scraps-empty-state {
  padding: 16px 8px;
  margin: 0;
  border: 1px dashed #d4c4e4;
  border-radius: 10px;
  background: #faf6fd;
  text-align: center;
  color: #7b3fa0;
  font-size: 11px;
}

.scraps-list {
  display: grid;
  gap: 10px;
}

.scrap-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid #e1d4ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf8ff 100%);
  box-shadow: 0 2px 8px rgba(90, 45, 120, 0.08);
}

.scrap-sender-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.scrap-sender-avatar {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto;
  border: 1px solid #d4c4e4;
  background: #f7effc;
}

.scrap-sender-name {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: bold;
  color: #ed2590;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scrap-body {
  min-width: 0;
}

.scrap-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #4a3b57;
  word-break: break-word;
}

.scrap-date {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: #9170aa;
}

.testimonials-section {
  margin-bottom: 16px;
}

.testimonials-empty-state {
  padding: 16px 8px;
  margin: 0;
  border: 1px dashed #d4c4e4;
  border-radius: 10px;
  background: #faf6fd;
  text-align: center;
  color: #7b3fa0;
  font-size: 11px;
}

.testimonials-list {
  display: grid;
  gap: 10px;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid #d4c090;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf5 0%, #fef9ec 100%);
  box-shadow: 0 2px 8px rgba(160, 120, 40, 0.1);
}

.testimonial-sender-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.testimonial-sender-avatar {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto;
  border: 1px solid #d4c090;
  background: #fef9ec;
}

.testimonial-sender-name {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: bold;
  color: #b8860b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testimonial-body {
  min-width: 0;
}

.testimonial-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #4a3b57;
  word-break: break-word;
}

.testimonial-date {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: #9170aa;
}

.photos-preview-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #5a2d78;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.photo-gallery-link {
  display: block;
  text-decoration: none;
}

.photo-gallery-link:hover {
  text-decoration: none;
}

.photo-gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #d4c4e4;
  border-radius: 8px;
  background: #f8f3fc;
  box-shadow: 0 1px 4px rgba(90, 45, 120, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery-link:hover .photo-gallery-image {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(90, 45, 120, 0.22);
}

body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 9, 37, 0.78);
  backdrop-filter: blur(2px);
}

.photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.photo-lightbox-frame {
  background: linear-gradient(180deg, #fff 0%, #f7effc 100%);
  border: 1px solid #d4c4e4;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 48px rgba(34, 10, 52, 0.35);
}

.photo-lightbox-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  background: #f3eaf9;
}

.photo-lightbox-caption {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  color: #5a2d78;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  border: 1px solid #d4c4e4;
  background: linear-gradient(180deg, #fff 0%, #ecdaf8 100%);
  color: #5a2d78;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(34, 10, 52, 0.18);
}

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
  background: linear-gradient(180deg, #fff 0%, #e0c6f2 100%);
}

.photo-lightbox-close {
  position: absolute;
  top: -12px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.photo-lightbox-nav {
  width: 44px;
  height: 72px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.photo-lightbox-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 720px) {
  .photo-lightbox-dialog {
    width: min(94vw, 520px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .photo-lightbox-frame {
    order: 1;
    padding: 12px;
  }

  .photo-lightbox-prev,
  .photo-lightbox-next {
    order: 2;
    width: 100%;
    height: 42px;
  }

  .photo-lightbox-close {
    top: -10px;
    right: 0;
  }
}

/* --- Back Link --- */
.back-link {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  color: #7b3fa0;
}

.back-link:hover {
  color: #5a2d78;
}

/* --- Footer --- */
.footer {
  max-width: 960px;
  margin: 20px auto;
  padding: 10px;
  text-align: center;
  font-size: 10px;
  color: #999;
  border-top: 1px dotted #d4c4e4;
}

.footer a {
  color: #7b3fa0;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 13px;
}

.empty-state .empty-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

/* --- Badges (Orkut Comportamento) --- */
.badges-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dotted #e0d0ee;
}

.badge-row:last-child {
  border-bottom: none;
}

.badge-label {
  font-size: 11px;
  font-weight: bold;
  color: #5a2d78;
  min-width: 75px;
}

.badge-icons {
  display: flex;
  gap: 2px;
}

.badge-icon {
  font-size: 14px;
  transition: opacity 0.2s;
}

.badge-icon.filled {
  opacity: 1;
}

.badge-icon.empty {
  opacity: 0.2;
  filter: grayscale(1);
}

/* --- Recent Arrivals --- */
.recent-arrivals-list {
  list-style: none;
}

.recent-arrivals-list li {
  border-bottom: 1px dotted #e0d0ee;
}

.recent-arrivals-list li:last-child {
  border-bottom: none;
}

.recent-arrival-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  text-decoration: none;
  transition: background 0.15s;
  border-radius: 3px;
}

.recent-arrival-item:hover {
  background: #f5eefc;
  text-decoration: none;
}

.recent-arrival-avatar {
  width: 35px;
  height: 35px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d9c4ee;
}

.recent-arrival-info {
  display: flex;
  flex-direction: column;
}

.recent-arrival-name {
  font-size: 11px;
  font-weight: bold;
  color: #5a2d78;
}

.recent-arrival-breed {
  font-size: 10px;
  color: #999;
}

/* --- 404 Not Found Page --- */
.not-found-page {
  max-width: 500px;
  margin: 40px auto;
}

.not-found-content {
  text-align: center;
  padding: 40px 20px;
}

.not-found-emoji {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.not-found-content h1 {
  font-size: 20px;
  color: #5a2d78;
  margin-bottom: 10px;
}

.not-found-content p {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.not-found-btn {
  display: inline-block;
  background: linear-gradient(135deg, #7b3fa0, #a855c9);
  color: #fff;
  padding: 8px 24px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s;
}

.not-found-btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

/* --- Communities (Profile Tab) --- */
.communities-section {
  margin-bottom: 16px;
}

.communities-empty-state {
  padding: 16px 8px;
  margin: 0;
  border: 1px dashed #d4c4e4;
  border-radius: 10px;
  background: #faf6fd;
  text-align: center;
  color: #7b3fa0;
  font-size: 11px;
}

.communities-list {
  display: grid;
  gap: 8px;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #c4d4c0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fdf5 0%, #eef8ec 100%);
  box-shadow: 0 2px 8px rgba(60, 120, 45, 0.08);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.community-card:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 120, 45, 0.15);
}

.community-card-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.community-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #b6ccb1;
  flex-shrink: 0;
  background: #fff;
}

.community-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.community-card-name {
  font-size: 12px;
  font-weight: bold;
  color: #2e6b3a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-card-members {
  font-size: 10px;
  color: #6a9a6e;
}

/* --- Community Page --- */
.community-page-layout {
  max-width: 720px;
  margin: 0 auto;
}

.community-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.community-page-emoji {
  font-size: 48px;
  flex-shrink: 0;
}

.community-page-avatar {
  width: 74px;
  height: 74px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #b6ccb1;
  flex-shrink: 0;
  background: #fff;
}

.community-page-header-info {
  min-width: 0;
}

.community-page-name {
  font-size: 18px;
  font-weight: bold;
  color: #2e6b3a;
  margin: 0 0 6px;
  line-height: 1.3;
}

.community-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.community-page-category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3a8f4e, #58b86a);
  color: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.community-page-date {
  font-size: 10px;
  color: #888;
}

.community-page-description {
  font-size: 12px;
  line-height: 1.6;
  color: #444;
  padding: 4px 0;
  margin: 0;
}

.community-page-founder {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 0;
}

.community-page-founder:hover {
  text-decoration: none;
}

.community-page-founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #c4d4c0;
}

.community-page-founder-name {
  font-size: 13px;
  font-weight: bold;
  color: #2e6b3a;
}

.community-page-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}

.community-page-members-empty {
  font-size: 11px;
  color: #666;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .home-layout,
  .profile-layout {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .profile-layout > *,
  .profile-main > *,
  .profile-sidebar > * {
    min-width: 0;
    max-width: 100%;
  }

  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .navbar-inner {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo logo"
      "search session"
      "links links";
    gap: 6px 8px;
    justify-content: center;
  }

  .navbar-logo {
    grid-area: logo;
    justify-self: center;
  }

  .navbar-search-wrap {
    grid-area: search;
    justify-self: center;
    max-width: 100%;
  }

  .navbar-session-actions {
    grid-area: session;
    justify-self: center;
    gap: 4px;
    white-space: nowrap;
  }

  .navbar-links {
    grid-area: links;
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    width: 100%;
    overflow: visible;
    scrollbar-width: none;
  }

  .navbar-links::-webkit-scrollbar {
    display: none;
  }

  .navbar-links a,
  .navbar-session-actions a {
    padding: 4px 6px;
    white-space: nowrap;
  }

  .navbar-link-btn {
    padding: 4px 6px;
    white-space: nowrap;
  }

  .notification-menu {
    position: static;
  }

  .notification-dropdown {
    top: calc(100% + 8px);
    right: auto;
    left: 50%;
    width: min(320px, calc(100vw - 20px));
    transform: translateX(-50%);
  }

  .search-input {
    width: min(178px, 100%);
  }

  .community-page-header {
    flex-direction: column;
    text-align: center;
  }

  .community-page-meta {
    justify-content: center;
  }
}

/* ==========================================
   Events
   ========================================== */

.event-page-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.event-page-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-page-emoji {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.event-page-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-page-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #3d2b6b;
  margin: 0;
}

.event-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-page-date {
  font-size: 0.82rem;
  color: #666;
}

.event-page-description {
  color: #333;
  line-height: 1.55;
  margin: 0;
}

.event-page-community-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #3d2b6b;
  font-weight: 600;
}

.event-page-community-link:hover {
  text-decoration: underline;
}

.event-page-community-emoji {
  font-size: 1.4rem;
}

.event-page-organizer {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #3d2b6b;
}

.event-page-organizer:hover .event-page-organizer-name {
  text-decoration: underline;
}

.event-page-organizer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.event-page-organizer-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Status badges */
.event-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-status-badge.upcoming {
  background: #e8e0f7;
  color: #5b3fa6;
}

.event-status-badge.ongoing {
  background: #d4edda;
  color: #1a6b36;
}

.event-status-badge.past {
  background: #e9ecef;
  color: #6c757d;
}

/* RSVP columns */
.event-rsvp-columns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.event-rsvp-column {
  flex: 1;
  min-width: 160px;
}

.event-rsvp-column-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0d9f0;
}

.going-title { color: #1a6b36; }
.maybe-title { color: #856404; }
.not-going-title { color: #842029; }

/* Event list items (community page + profile tab) */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8f5ff;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}

.event-list-item:hover {
  background: #ede8fa;
}

.event-list-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.event-list-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.event-list-title {
  font-weight: 600;
  color: #3d2b6b;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #666;
}

.event-list-community {
  font-size: 0.78rem;
  color: #666;
}

.event-list-date {
  font-size: 0.78rem;
  color: #888;
}

.event-list-going {
  font-size: 0.78rem;
  color: #5b3fa6;
  font-weight: 600;
}

.events-empty-state {
  padding: 16px 8px;
  margin: 0;
  border: 1px dashed #d4c4e4;
  border-radius: 10px;
  background: #faf6fd;
  text-align: center;
  color: #7b3fa0;
  font-size: 11px;
}

/* RSVP status pills on profile events tab */
.rsvp-status-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.rsvp-going { background: #d4edda; color: #1a6b36; }
.rsvp-maybe { background: #fff3cd; color: #856404; }
.rsvp-not-going { background: #f8d7da; color: #842029; }

/* ===== ROUND 8: Search, Explore & Suggestions ===== */

/* Navbar search form */
.navbar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-search {
  display: flex;
  align-items: center;
}

.search-input {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  font-family: inherit;
  font-size: 11px;
  width: 160px;
  outline: none;
  color: #fff;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.search-input::placeholder {
  color: #f0e0ff;
  opacity: 1;
  text-align: center;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Live dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 200;
  border-radius: 2px;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  border-bottom: 1px solid #f0f0f0;
}

.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: #f5f8ff; }

.search-dropdown-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.search-dropdown-emoji {
  width: 28px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-dropdown-name {
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-sub {
  font-size: 0.75rem;
  color: #888;
  flex-shrink: 0;
}

/* Search results page */
.page-title {
  font-size: 1.1rem;
  color: #335580;
  margin: 10px 0 12px;
}

.search-results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 80px;
  text-align: center;
  gap: 4px;
}

.search-result-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.82rem;
  word-break: break-word;
}

.search-result-sub {
  font-size: 0.74rem;
  color: #888;
}

.search-community-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-community-item {
  border-bottom: 1px solid #f0f0f0;
}

.search-community-item:last-child { border-bottom: none; }

.search-community-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  text-decoration: none;
  color: #333;
  font-size: 0.88rem;
}

.search-community-link:hover { background: #f5f8ff; }

.search-community-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d0d0d0;
  flex-shrink: 0;
  background: #fff;
}

.search-dropdown-community-avatar {
  border-radius: 4px;
}

/* Explore page */
.explore-category-section {
  margin-bottom: 16px;
}

.explore-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.explore-category-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: #335580;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.explore-see-all {
  font-size: 0.78rem;
  color: #6699cc;
  text-decoration: none;
}

.explore-see-all:hover { text-decoration: underline; }

.explore-community-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explore-community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #333;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 10px;
  width: 110px;
  gap: 3px;
}

.explore-community-card:hover { background: #eef3fb; border-color: #b0c4de; }

.explore-community-avatar {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d0d0d0;
  background: #fff;
}

.explore-community-name {
  font-weight: 600;
  font-size: 0.80rem;
  word-break: break-word;
}

.explore-community-count {
  font-size: 0.72rem;
  color: #888;
}

/* Explore cats grid */
.explore-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.explore-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 72px;
  text-align: center;
  gap: 4px;
}

.explore-cat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.explore-cat-name {
  font-size: 0.78rem;
  font-weight: 600;
  word-break: break-word;
}

/* Explore events */
.explore-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.explore-event-item {
  border-bottom: 1px solid #f0f0f0;
}

.explore-event-item:last-child { border-bottom: none; }

.explore-event-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  text-decoration: none;
  color: #333;
  font-size: 0.88rem;
}

.explore-event-link:hover { background: #f5f8ff; }

.explore-event-title {
  font-weight: 600;
  flex: 1;
}

.explore-event-community {
  font-size: 0.80rem;
  color: #666;
}

.explore-event-community a {
  color: #4477aa;
  text-decoration: none;
}

.explore-event-community a:hover { text-decoration: underline; }

.explore-event-status {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.event-status-upcoming { background: #d4edda; color: #1a6b36; }
.event-status-ongoing  { background: #fff3cd; color: #856404; }
.event-status-past     { background: #f0f0f0; color: #888; }

/* Suggestions */
.suggestions-box {
  margin-top: 14px;
}

.suggestions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.suggestions-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 72px;
  text-align: center;
  gap: 4px;
}

.suggestions-cat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.suggestions-cat-name {
  font-size: 0.78rem;
  font-weight: 600;
  word-break: break-word;
}

.empty-msg {
  color: #888;
  font-size: 0.88rem;
  margin: 0;
}

/* ============ Round 9 — Tutor / Auth / Family ============ */

.auth-wrap {
  max-width: 480px;
  margin: 40px auto;
}

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

.auth-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 4px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form input[type="file"],
.auth-form textarea,
.auth-form select {
  padding: 6px 8px;
  border: 1px solid #a5b5cc;
  border-radius: 3px;
  font-family: inherit;
}

.auth-submit {
  background: #6e86c3;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 3px;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-submit.danger {
  background: #c35d5d;
}

.auth-submit.inline-cta {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.auth-error-banner {
  background: #ffe5e5;
  border: 1px solid #c94747;
  padding: 8px;
  border-radius: 3px;
  color: #8b1b1b;
}

.auth-success-banner {
  background: #e5ffe5;
  border: 1px solid #4ba347;
  padding: 8px;
  border-radius: 3px;
  color: #1b6b1b;
  margin-bottom: 8px;
}

.auth-meta {
  margin-top: 10px;
  font-size: 0.85rem;
}

.auth-intro {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.family-box .orkut-box-header { background: #d7c9f0; }

.family-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.family-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 3px solid #c3b0e6;
  margin: 0;
  display: inline-block;
  flex-shrink: 0;
}

.family-description {
  margin: 0;
  text-align: left;
}

@media (max-width: 640px) {
  .family-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.family-description-input {
  min-height: 120px;
  resize: vertical;
}

.family-description-input.is-over-limit {
  border-color: #c94747;
  background: #fff7f7;
}

.family-description-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  margin-top: -4px;
}

.family-character-counter {
  color: #667;
}

.family-character-counter.is-over-limit,
.family-description-error {
  color: #9b1f1f;
  font-weight: bold;
}

.tutor-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .tutor-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.tutor-title {
  text-align: center;
  margin: 16px 0;
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #d0d6e0;
  flex-wrap: wrap;
}

.slot-occupancy-pill {
  background: #e8ecf4;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subscription-section + .subscription-section {
  margin-top: 14px;
}

.subscription-section-title {
  color: #4b206f;
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 8px;
}

.subscription-history-section {
  margin-top: 16px;
}

.subscription-list {
  margin: 0;
}

.subscription-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.subscription-plan-name {
  color: #333;
  font-size: 0.88rem;
  font-weight: normal;
}

.subscription-profile-badge {
  background: #eef2fb;
  border: 1px solid #c9d4ee;
  border-radius: 10px;
  color: #42527e;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 1px 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.subscription-profile-badge.is-linked {
  background: #f2e8fb;
  border-color: #d6bdea;
  color: #5a267a;
}

.subscription-profile-badge.is-available {
  background: #e9f6ef;
  border-color: #b9dec8;
  color: #2f6848;
}

.subscription-profile-badge.is-removed {
  background: #fff1f5;
  border-color: #e6b8c9;
  color: #8a3154;
}

.subscription-profile-badge.is-none {
  background: #f2f2f4;
  border-color: #d4d4dc;
  color: #5f5f6b;
}

.subscription-expiry,
.account-delete-email {
  color: #667;
  font-size: 0.85rem;
}

.account-delete-email {
  margin: 0 0 8px;
}

.subscription-cancel-form,
.subscription-manage-form {
  margin: 0;
}

.subscription-cancel-button,
.subscription-manage-button {
  padding: 5px 9px;
  font-size: 0.8rem;
}

.subscription-manage-form {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.mock-banner {
  background: #fff4cc;
  border: 1px solid #e0c95c;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.my-cats-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.auth-submit.inline-cta {
  margin-bottom: 0;
}

.checkout-status-card {
  max-width: 560px;
  margin: 2rem auto;
}

.checkout-status-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.checkout-status-message {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.checkout-status-action {
  min-width: 220px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.tutor-cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tutor-cat-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.tutor-cat-image-link {
  display: block;
}

.tutor-cat-image-link.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.tutor-cat-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid #a5b5cc;
  border-radius: 4px;
  display: block;
}

.tutor-cat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  align-self: center;
  text-align: left;
}

.tutor-cat-name,
.tutor-cat-name a {
  color: #7b3fa0;
  font-size: 11px;
  line-height: 1.05;
  text-decoration: none;
}

.tutor-cat-type {
  color: #444;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: bold;
}

.tutor-cat-action-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #7b3fa0;
  font-size: 11px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.tutor-cat-action-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tutor-cat-remove-link {
  color: #9a3f61;
}

.tutor-remove-dialog {
  position: fixed;
  inset: 0;
  width: min(320px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100vh - 32px);
  margin: auto;
  max-width: 320px;
  border: 1px solid #c7a7d8;
  border-radius: 6px;
  padding: 0;
  overflow: auto;
}

.tutor-remove-dialog::backdrop {
  background: rgba(40, 24, 54, 0.28);
}

.tutor-remove-dialog-body {
  padding: 14px;
}

.tutor-remove-dialog-body p {
  margin: 8px 0 12px;
  color: #444;
  font-size: 12px;
}

.tutor-remove-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tutor-cat-action-button.is-danger {
  border-color: #d4a6b4;
  color: #8a3150;
}

.tutor-cat-expiry {
  color: #666;
  font-size: 11px;
  line-height: 1.3;
}

.tutor-cat-expiry-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tutor-cat-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tutor-cat-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid #c8b3dd;
  border-radius: 4px;
  background: #f6effb;
  color: #633482;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}

.tutor-cat-status-badge.is-expired,
.tutor-cat-status-badge.is-moderated {
  border-color: #d4a6b4;
  background: #fff0f3;
  color: #8a3150;
}

.tutor-cat-inline-form {
  margin: 0;
  display: inline-flex;
}

.tutor-cat-action-button {
  border: 1px solid #b999d6;
  border-radius: 4px;
  background: #fff;
  color: #7b3fa0;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.2;
  padding: 2px 7px;
  cursor: pointer;
}

.tutor-cat-action-button:hover {
  background: #f4eafb;
}

@media (max-width: 560px) {
  .tutor-cat-card {
    grid-template-columns: 84px auto;
    gap: 8px;
  }

  .tutor-cat-image {
    width: 84px;
    height: 84px;
  }
}

.tutor-list {
  list-style: none;
  padding: 0;
}

.tutor-section {
  margin-top: 24px;
}

.tutor-section-header {
  margin: 0 0 10px;
  border: 1px solid #b89fd0;
}

.tutor-list li {
  border-bottom: 1px dashed #d0d6e0;
  padding: 6px 0;
  font-size: 0.9rem;
}

.tutor-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tutor-list-content {
  min-width: 0;
}

.tutor-list-head,
.tutor-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tutor-list-name {
  font-size: 1rem;
  color: #333;
}

.tutor-list-meta {
  color: #667;
  font-size: 0.82rem;
  margin-top: 2px;
}

.tutor-list-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: #9aa5b8;
}

.tutor-list-relationship {
  margin: 4px 0 0;
  color: #333;
  line-height: 1.35;
}

.primary-badge {
  background: #c3d4f0;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  margin-left: 4px;
}

.inline-form {
  display: inline-block;
  margin: 0;
  flex-shrink: 0;
}

.inline-form button {
  background: #fff;
  border: 1px solid #a5b5cc;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
}

.danger-box .orkut-box-header {
  background: #f4c9c9;
}

.navbar-logout-form {
  display: inline;
}

.navbar-link-btn {
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 4px 8px;
  transition: background 0.2s;
}

.photo-uploader {
  border: 2px dashed #a5b5cc;
  padding: 10px;
  text-align: center;
}

.photo-thumb-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-thumb-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.photo-thumb-remove-form {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
}

.photo-thumb-remove-button {
  border: 1px solid #8f6db3;
  background: rgba(255, 255, 255, 0.95);
  color: #6b3e91;
  width: 22px;
  height: 22px;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #a5b5cc;
}

.auth-form input[type="file"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.muted {
  color: #888;
  font-size: 0.85rem;
}

.adoption-cta-form {
  display: inline-block;
}

/* ===== Plans page ===== */

.plans-page-title {
  text-align: center;
  margin: 16px 0 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

@media (max-width: 680px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card .orkut-box-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-header-adocao {
  background: #c9d9f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-header-tutor {
  background: #d7c9f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  color: #555;
  border-radius: 10px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan-badge-anual {
  background: #fff;
  color: #7b4f9e;
}

.plan-price {
  margin: 12px 0 10px;
}

.plan-price-value {
  font-size: 1.45rem;
  color: #2c3e6b;
}

.plan-price-cycle {
  font-size: 0.82rem;
  color: #777;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #444;
}

.plan-features li {
  padding: 3px 0;
}

.plan-cta {
  margin-top: auto;
  padding-top: 12px;
}

.plans-manage-link {
  text-align: center;
  margin: 4px 0 16px;
  font-size: 0.85rem;
}

/* ===== Donation counter ===== */

.donation-section {
  margin-top: 16px;
}

.donation-header {
  background: #f0e9c9;
}

.donation-intro {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

.donation-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

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

@media (max-width: 360px) {
  .donation-counters {
    grid-template-columns: 1fr;
  }
}

.donation-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fdf8ee;
  border: 1px solid #e8dfc0;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
}

.donation-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.donation-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e6b;
  line-height: 1.1;
}

.donation-unit {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-left: 2px;
}

.donation-label {
  font-size: 0.78rem;
  color: #666;
  margin-top: 4px;
}

.donation-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.donation-instagram {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #7b4f9e;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.15s;
}

.donation-instagram:hover {
  color: #5a2e7e;
  text-decoration: underline;
}

/* ===== Gatômetro ===== */

.gatometro-section {
  background: #fdf4f8;
  border: 1px solid #e8c8d8;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.gatometro-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gatometro-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #7b4f9e;
}

.gatometro-label {
  font-size: 0.82rem;
  color: #888;
}

.gatometro-goal-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 12px;
}

.gatometro-bar-wrap {
  position: relative;
  background: #e8dde8;
  border-radius: 999px;
  height: 22px;
  overflow: hidden;
  margin-bottom: 4px;
}

.gatometro-bar {
  height: 100%;
  background: linear-gradient(90deg, #c084e0 0%, #e88fc0 100%);
  border-radius: 999px;
  transition: width 0.8s ease;
  min-width: 0;
}

.gatometro-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  pointer-events: none;
}

.gatometro-cats {
  text-align: left;
  font-size: 1.1rem;
  margin-top: 2px;
  /* cat walks along the bar */
}

.gatometro-cat-walk {
  display: inline-block;
  /* position matches bar width set server-side via JS below */
}

/* ===== end plans page ===== */

.adoption-cta-form button {
  font: inherit;
  cursor: pointer;
}

.admin-panel .auth-form {
  margin-bottom: 18px;
}

.admin-tools-toolbar {
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-tool-form {
  margin: 0;
}

.admin-tool-form .auth-submit.inline-cta {
  height: 100%;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #d8b6ed;
  margin: 14px 0;
}

.admin-tabs a {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid #d8b6ed;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f7eefc;
  color: #5f2c82;
  font-weight: 700;
  text-decoration: none;
}

.admin-tabs a.active {
  background: #fff;
  color: #3d165f;
  position: relative;
  top: 1px;
}

.admin-moderation-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d8b6ed;
  background: #f7eefc;
  color: #5f2c82;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-moderation-badge.restricted,
.admin-moderation-badge.review_pending {
  border-color: #f0b15d;
  background: #fff5df;
  color: #7a4b00;
}

.admin-moderation-badge.suspended {
  border-color: #e29aa5;
  background: #ffe9ed;
  color: #8a2332;
}

.admin-moderation-badge.clear {
  border-color: #bfe3c4;
  background: #edfff1;
  color: #2f6f3a;
}

.admin-tutor-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.admin-tutor-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8b6ed;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.admin-tutor-main {
  display: grid;
  gap: 4px;
}

.admin-tutor-main small {
  color: #666;
}

.admin-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.admin-inline-form input[type="text"] {
  min-width: 220px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-cat-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-cat-summary p {
  margin: 0 0 4px;
}

.admin-cat-actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.admin-cat-actions .auth-submit.inline-cta {
  min-width: 180px;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-cat-list {
  margin-top: 14px;
}

@media (max-width: 680px) {
  .admin-cat-detail-header {
    flex-direction: column;
    gap: 10px;
  }

  .admin-cat-actions,
  .admin-cat-actions .auth-submit.inline-cta {
    width: 100%;
  }

  .admin-tutor-row,
  .admin-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-inline-form input[type="text"] {
    min-width: 0;
    width: 100%;
  }
}

.moderation-notices {
  margin-bottom: 16px;
}

.moderation-notice {
  border: 1px solid #e6c8dc;
  background: #fff7fb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.moderation-notice p {
  margin: 6px 0 0;
}
