/* ==========================================================================
   petique.adme — Modern Pastel Adopt Me Homes & Pets Marketplace Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Pastel & Vibrant Accents */
  --primary-pink: #8B5CF6;
  --primary-pink-light: #F3EEFF;
  --primary-pink-hover: #7C3AED;
  --primary-pink-glow: rgba(139, 92, 246, 0.4);

  --pastel-blue: #38BDF8;
  --pastel-blue-light: #EEF6FF;
  --pastel-blue-dark: #0EA5E9;
  --pastel-blue-glow: rgba(56, 189, 248, 0.35);

  --pastel-mint: #55EFC4;
  --pastel-mint-light: #E8FAF4;
  --pastel-mint-dark: #00B894;

  --pastel-lavender: #D8B4E2;
  --pastel-lavender-light: #F7EEFA;
  --pastel-purple: #9B5DE5;

  --pastel-yellow: #FCD34D;
  --pastel-yellow-light: #FFF9E6;
  --pastel-orange: #FF7675;

  /* Rarity Colors (Adopt Me Official Palette) */
  --rarity-legendary: #F6AD55;
  --rarity-legendary-bg: #FFFAF0;
  --rarity-legendary-border: #FBD38D;

  --rarity-ultrarare: #9B5DE5;
  --rarity-ultrarare-bg: #F8F0FC;
  --rarity-ultrarare-border: #D6BCFA;

  --rarity-rare: #38BDF8;
  --rarity-rare-bg: #F0F9FF;
  --rarity-rare-border: #BAE6FD;

  --rarity-potion: #EC4899;
  --rarity-potion-bg: #FDF2F8;
  --rarity-potion-border: #FBCFE8;

  /* Neutrals & Surfaces */
  --bg-page: #F7F5FF;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-subtle: #F6F8FC;
  --border-light: rgba(226, 232, 240, 0.8);
  --border-hover: rgba(139, 92, 246, 0.4);

  /* Typography Colors */
  --text-main: #2E1F5E;
  --text-secondary: #6B6290;
  --text-muted: #A0AEC0;
  --text-light: #FFFFFF;

  /* Status Indicators */
  --color-success: #00B894;
  --color-success-bg: #E6FAF4;
  --color-success-glow: rgba(0, 184, 148, 0.35);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(149, 157, 165, 0.12);
  --shadow-lg: 0 16px 40px rgba(149, 157, 165, 0.16);
  --shadow-pink: 0 8px 25px rgba(139, 92, 246, 0.30);
  --shadow-mint: 0 8px 25px rgba(0, 184, 148, 0.28);

  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Layout */
  --header-height: 76px;
  --max-width: 1280px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo-brand, .hero-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* --- Decorative Pastel Background Blobs --- */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.65;
  pointer-events: none;
  animation: floatBackground 20s infinite alternate ease-in-out;
}

.bg-shape-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.6) 0%, rgba(255, 240, 245, 0) 70%);
  top: -100px;
  left: -100px;
}

.bg-shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.45) 0%, rgba(238, 246, 255, 0) 70%);
  top: 30%;
  right: -150px;
  animation-delay: -5s;
}

.bg-shape-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.28) 0%, rgba(248, 250, 253, 0) 70%);
  bottom: -50px;
  left: 20%;
  animation-delay: -10s;
}

@keyframes floatBackground {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(40px) scale(1.08); }
  100% { transform: translateY(-30px) scale(0.95); }
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Fixed Header --- */
.main-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 235, 245, 0.8);
  z-index: 100;
  transition: var(--transition);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.logo-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-pink), #C4B5FD);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.35rem;
  box-shadow: var(--shadow-pink);
  transform: rotate(-4deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon-wrapper {
  transform: rotate(6deg) scale(1.06);
}

.logo-brand {
  font-size: 1.5rem;
  color: var(--text-main);
  line-height: 1.1;
  display: block;
}

.logo-dot {
  color: var(--primary-pink);
}

.logo-ext {
  color: var(--pastel-blue-dark);
  font-size: 1.35rem;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: block;
}

/* Header Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  background: #F1F4F9;
  padding: 6px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-tab .tab-icon {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab.active {
  background: white;
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.nav-tab.active[data-tab="houses"] .tab-icon {
  transform: scale(1.15);
  color: var(--pastel-mint-dark);
}

.nav-tab.active[data-tab="pets"] .tab-icon {
  transform: scale(1.15);
  color: var(--primary-pink);
}

.nav-tab.active[data-tab="custom-order"] .tab-icon {
  transform: scale(1.15);
  color: var(--pastel-purple);
}

.nav-tab.active[data-tab="profile"] .tab-icon {
  transform: scale(1.15);
  color: var(--pastel-blue-dark);
}

.tab-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--pastel-mint-light);
  color: var(--pastel-mint-dark);
}

.tab-badge.hot {
  background: var(--primary-pink-light);
  color: var(--primary-pink);
}

.tab-badge.wiki {
  background: #EBF8FF;
  color: #3182CE;
}

/* Responsive Labels for Navigation and Header Controls */
.label-full, .publish-btn-full {
  display: inline;
}

.label-short, .publish-btn-short {
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-auth-wrapper {
  position: relative;
}

.user-pill-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--border-light);
  padding: 4px 14px 4px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.user-pill-preview:hover {
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-pink);
  transform: translateY(-1px);
}

.user-pill-preview.active {
  border-color: var(--primary-pink);
  background: #FFF9FB;
  box-shadow: var(--shadow-pink);
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-pink-light);
}

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

.user-name-mini {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-pill-arrow {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.user-pill-preview.active .user-pill-arrow {
  transform: rotate(180deg);
  color: var(--primary-pink);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1.5px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 16px 40px rgba(149, 157, 165, 0.18), 0 4px 16px rgba(139, 92, 246, 0.15);
  padding: 14px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
}

.dropdown-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-pink-light);
  flex-shrink: 0;
}

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

.online-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-success);
  border: 2px solid white;
}

.dropdown-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

#dropdownUserName {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dropdownRobloxNick {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--pastel-lavender-light);
  color: var(--pastel-purple);
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 3px;
  align-self: flex-start;
}

.dropdown-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 6px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.dropdown-item:hover {
  background: #F8FAFD;
  color: var(--text-main);
  transform: translateX(3px);
}

.dropdown-item i {
  font-size: 0.95rem;
  color: var(--pastel-blue-dark);
  width: 18px;
  text-align: center;
}

.dropdown-logout-btn {
  color: #E53E3E;
}

.dropdown-logout-btn:hover {
  background: #FFF5F5;
  color: #C53030;
}

.dropdown-logout-btn i {
  color: #E53E3E;
}

/* Guest buttons */
.guest-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Main Layout & Sections Transitions --- */
.main-content {
  padding: 32px 0 64px;
  min-height: calc(100vh - var(--header-height));
}

.app-section {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.app-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: sectionFadeIn 0.35s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Reusable Hero & Titles --- */
.houses-hero, .pets-hero, .custom-order-hero {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-pink-light);
  color: var(--primary-pink);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pastel-green-badge {
  background: var(--pastel-mint-light);
  color: var(--pastel-mint-dark);
  border-color: rgba(0, 184, 148, 0.3);
}

.pastel-pink-badge {
  background: #F3EEFF;
  color: var(--primary-pink);
  border-color: rgba(139, 92, 246, 0.3);
}

.hero-title {
  font-size: 2.3rem;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
}
.win-tag { background: var(--color-success-bg); color: var(--color-success); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), #7C3AED);
  color: white;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 117, 151, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #F8FAFD;
  color: var(--text-main);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HOUSE MARKET STYLES
   ========================================================================== */

/* Filters Toolbar */
.houses-filter-toolbar, .pets-filter-toolbar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.house-search-box, .pets-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.house-search-box i, .pets-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.house-search-box input, .pets-search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #F8FAFD;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.house-search-box input:focus, .pets-search-box input:focus {
  background: white;
  border-color: var(--pastel-mint-dark);
  box-shadow: 0 0 0 4px var(--pastel-mint-light);
}

.house-category-tabs, .pet-rarity-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.house-filter-chip, .pet-filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: #F1F5F9;
  color: var(--text-secondary);
  transition: var(--transition);
}

.house-filter-chip:hover, .pet-filter-chip:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.house-filter-chip.active {
  background: var(--pastel-mint-dark);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.3);
}

.pet-filter-chip.active {
  background: var(--primary-pink);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.house-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.house-sort-wrapper label {
  color: var(--text-muted);
  font-size: 1rem;
}

.custom-select {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.custom-select:focus {
  border-color: var(--pastel-mint-dark);
}

/* Houses Grid */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}

/* Individual House Card */
.house-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.house-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 184, 148, 0.35);
}

/* House Card Image / Visual Banner */
.house-thumbnail {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.house-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.house-tag-top {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.house-favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--pastel-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.house-favorite-btn:hover {
  transform: scale(1.15);
  background: white;
  color: #d63031;
}

.house-wanted-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.house-wanted-tag i {
  color: var(--pastel-mint-dark);
  font-size: 0.95rem;
}

.house-builder-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* House Content Body */
.house-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.house-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.house-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
  flex: 1;
}

.house-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.house-feat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.house-feat-pill i {
  color: var(--pastel-mint-dark);
}

.house-actions-row {
  display: flex;
  gap: 10px;
}

.btn-offer-house {
  flex: 1;
  background: linear-gradient(135deg, var(--pastel-mint-dark), #55EFC4);
  color: white;
  box-shadow: 0 6px 18px rgba(0, 184, 148, 0.3);
}

.btn-offer-house:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 184, 148, 0.4);
}

/* ==========================================================================
   2. LIVE PET TRADES HUB STYLES
   ========================================================================== */
.trades-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: white;
  padding: 32px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.trades-hero-content {
  max-width: 680px;
}

.trades-hero-action {
  flex-shrink: 0;
}

.trades-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.trades-search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.trades-search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.trades-search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.trades-search-box input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.trades-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trade-filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: white;
  border: 1.5px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.trade-filter-chip:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

.trade-filter-chip.active {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.trades-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trades Grid */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 24px;
}

/* Trade Card */
.trade-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

.trade-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Card Header */
.trade-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink-light);
  object-fit: cover;
  background: #F3EEFF;
}

.trade-user-meta {
  display: flex;
  flex-direction: column;
}

.trade-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trade-user-roblox {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.trade-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-time-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trade-rating-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #FFF9E6;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Visual Trade Box */
/* ==========================================================================
   ADOPT ME IN-GAME STYLE TRADE WINDOW (ACCORDING TO SCREENSHOT)
   ========================================================================== */
.am-trade-window {
  background: #FFFFFF;
  border: 4px solid #8B5CF6;
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  box-sizing: border-box;
}

.trade-card:hover .am-trade-window {
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.22);
}

.am-trade-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  width: 100%;
}

.am-player-tag {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8B5CF6;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
}

.am-trade-body-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.am-trade-grid-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

.am-grid-sublabel {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00B894;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.am-grid-sublabel.seeking {
  color: #8B5CF6;
}

/* Adopt Me Trade Grid (18 slots max, 3 columns x 6 rows, 3 rows visible with smooth scroll) */
.am-trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 52px;
  gap: 3px;
  background: #8B5CF6;
  padding: 3px;
  border-radius: 8px;
  width: 178px;
  height: 170px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #FFFFFF rgba(255, 255, 255, 0.35);
  scroll-behavior: smooth;
}

.am-trade-grid::-webkit-scrollbar {
  width: 5px;
}

.am-trade-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 3px 0;
}

.am-trade-grid::-webkit-scrollbar-thumb {
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.am-trade-grid::-webkit-scrollbar-thumb:hover {
  background: #FFF0F6;
}

/* Slots Individual Cells */
.am-slot {
  background: #FFB3CB;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.18s ease;
  user-select: none;
  min-height: 52px;
  height: 52px;
}

.am-slot.empty {
  background: #FFB3CB;
}

.am-slot.filled {
  background: #FFF0F6;
  cursor: pointer;
}

.am-slot.filled:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  background: #FFFFFF;
}

.am-slot-pet-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
}

.am-slot:hover .am-slot-pet-img {
  transform: scale(1.1);
}

.am-slot-badge-row {
  position: absolute;
  bottom: 2px;
  left: 1px;
  right: 1px;
  display: flex;
  justify-content: center;
  gap: 2px;
  z-index: 2;
}

.am-badge {
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1;
}

.am-badge.fr { background: linear-gradient(135deg, #06B6D4 50%, #EF4444 50%); color: white; }
.am-badge.f { background: #06B6D4; color: white; } /* Fly: Turquoise / Cyan */
.am-badge.r { background: #EF4444; color: white; } /* Ride: Red */
.am-badge.n { background: #84CC16; color: white; font-weight: 800; } /* Neon: Lime Green */
.am-badge.m { background: linear-gradient(135deg, #EC4899, #8B5CF6); color: white; } /* Mega: Rainbow */
.am-badge.house { background: #8B5CF6; color: white; }

/* The Iconic Adopt Me Green Plus Slot */
.am-slot.add-slot {
  background: #FFB3CB;
  cursor: pointer;
}

.am-plus-icon-btn {
  width: 32px;
  height: 32px;
  background: #27AE60;
  border-radius: 6px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 3px 0 #1E824C;
  transition: transform 0.15s ease, background 0.15s ease;
}

.am-slot.add-slot:hover .am-plus-icon-btn {
  transform: scale(1.1);
  background: #2ECC71;
}

/* Center Section */
.am-trade-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  width: 48px;
}

.am-trade-word {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #8B5CF6;
  letter-spacing: 1px;
}

.am-trade-arrows-icon {
  width: 36px;
  height: 36px;
  color: #8B5CF6;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.am-trade-window:hover .am-trade-arrows-icon {
  transform: rotate(180deg);
}

/* Bottom In-Game Decline / Accept Buttons (Exact Adopt Me 3D Style) */
.am-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.am-btn {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  min-width: 105px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.am-btn-decline {
  background: #E53935;
  box-shadow: 0 4px 0 #B71C1C;
}

.am-btn-decline:hover {
  background: #D32F2F;
  transform: translateY(1px);
  box-shadow: 0 3px 0 #B71C1C;
}

.am-btn-decline:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #B71C1C;
}

.am-btn-accept {
  background: #27AE60;
  box-shadow: 0 4px 0 #1E824C;
}

.am-btn-accept:hover {
  background: #2ECC71;
  transform: translateY(1px);
  box-shadow: 0 3px 0 #1E824C;
}

.am-btn-accept:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #1E824C;
}

/* Requirement Banner Under Trade Window */
.trade-requirement-banner {
  background: #FFF5F8;
  border: 1.5px dashed rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #2D3748;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.trade-requirement-banner i {
  color: #8B5CF6;
  margin-top: 3px;
}

/* Trader Note Box */
.trade-note-box {
  background: #FFFDF9;
  border-left: 3px solid var(--pastel-orange);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #78350F;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.trade-note-box i {
  color: var(--pastel-orange);
  margin-top: 2px;
}

/* Card Actions Footer */
.trade-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-contact-trade {
  flex: 1;
  background: linear-gradient(135deg, #8B5CF6 0%, #FF5CA2 100%);
  color: white;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-contact-trade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.btn-trade-fav {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: white;
  border: 1.5px solid var(--border-light);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-trade-fav:hover, .btn-trade-fav.active {
  color: #8B5CF6;
  border-color: #8B5CF6;
  background: #FFF5F7;
}


/* ==========================================================================
   INCOMING TRADES IN PROFILE (WITH ADOPT ME 3x3 WINDOW AND ACCEPT / DECLINE)
   ========================================================================== */
.incoming-trades-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.incoming-trade-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-light);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

.incoming-trade-card:hover {
  box-shadow: var(--shadow-md);
}

.incoming-trade-card.accepted {
  border-color: #27AE60;
  background: #F8FFF9;
}

.incoming-trade-card.declined {
  opacity: 0.5;
  border-color: #E2E8F0;
  background: #F9FAFB;
}

.incoming-trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.incoming-trade-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.incoming-trade-status {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.incoming-trade-status.pending {
  background: #FFF9E6;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.incoming-trade-status.accepted {
  background: #E8F8F0;
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.incoming-trade-status.declined {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.trade-resolution-box {
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.trade-resolution-box.accepted {
  background: #E8F8F0;
  border: 1.5px solid #A7F3D0;
  color: #065F46;
}

.trade-resolution-box.declined {
  background: #FEE2E2;
  border: 1.5px solid #FECACA;
  color: #991B1B;
}

.badge-roblox-handle {
  background: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-roblox-sm {
  background: #10B981;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-copy-roblox-sm:hover {
  background: #059669;
}

/* ==========================================================================
   CREATE & CONTACT TRADE MODALS
   ========================================================================== */
.create-trade-dialog {
  max-width: 760px;
}

.trade-form-section {
  background: #FAFBFD;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.trade-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.trade-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-pink);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trade-step-title {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trade-step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pet-search-bar-wrap {
  position: relative;
  margin-bottom: 10px;
}

.pet-search-bar-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #A0AEC0;
  font-size: 0.95rem;
  pointer-events: none;
}

.pet-search-input {
  padding-left: 38px !important;
  font-size: 0.88rem !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--border-light) !important;
  background: white !important;
  height: 40px !important;
  width: 100% !important;
  transition: var(--transition);
}

/* ==========================================================================
   TRADE MODAL CATEGORY FILTER BUTTONS (PETS, PET WEAR, TOYS, ETC.)
   ========================================================================== */
.trade-category-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.trade-category-filter-row::-webkit-scrollbar {
  height: 4px;
}

.trade-category-filter-row::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}

.trade-cat-btn {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.trade-cat-btn i {
  font-size: 0.85rem;
  color: #94A3B8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.trade-cat-btn:hover {
  background: #FFF5F7;
  border-color: rgba(139, 92, 246, 0.4);
  color: #8B5CF6;
  transform: translateY(-1px);
}

.trade-cat-btn:hover i {
  color: #8B5CF6;
  transform: scale(1.15);
}

.trade-cat-btn.active {
  background: linear-gradient(135deg, #8B5CF6, #FF4B99);
  border-color: #8B5CF6;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(139, 92, 246, 0.35);
  transform: scale(1.02);
}

.trade-cat-btn.active i {
  color: #FFFFFF;
}

.trade-pet-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  max-height: 190px;
  overflow-y: auto;
  padding: 6px;
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  margin-bottom: 12px;
}

.trade-pet-select-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: #F8FAFD;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.trade-pet-select-item:hover {
  background: #FFF5F7;
  border-color: rgba(139, 92, 246, 0.4);
}

.trade-pet-select-item.selected {
  background: #F3EEFF;
  border-color: var(--primary-pink);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.trade-select-pet-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 4px;
}

.trade-select-pet-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-modifiers-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trade-modifiers-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.modifier-chips-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PER-PET MODIFIER MANAGER (INDIVIDUAL FLY / RIDE / NEON / MEGA CONTROLS)
   ========================================================================== */
.selected-pets-manager-wrap {
  margin-top: 14px;
  background: #FAFBFD;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
}

.selected-pets-manager-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.selected-pets-manager-count {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.8rem;
  color: var(--primary-pink);
  font-weight: 700;
  background: #F3EEFF;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.selected-pets-manager-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.empty-pets-manager-hint {
  text-align: center;
  padding: 14px 10px;
  font-size: 0.82rem;
  color: #A0AEC0;
  font-style: italic;
}

.pet-manager-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 7px 10px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pet-manager-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.pet-manager-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pet-manager-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.pet-manager-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pet-manager-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.pet-manager-active-badges {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.pet-manager-modifiers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pet-mod-btn {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFD;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pet-mod-btn:hover {
  transform: translateY(-1px);
}

/* Mod Fly (F) - Turquoise */
.pet-mod-btn.mod-f.active {
  background: #06B6D4;
  border-color: #0891B2;
  color: white;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.45);
}

/* Mod Ride (R) - Red */
.pet-mod-btn.mod-r.active {
  background: #EF4444;
  border-color: #DC2626;
  color: white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
}

/* Mod Neon (N) - Lime Green */
.pet-mod-btn.mod-n.active {
  background: #84CC16;
  border-color: #65A30D;
  color: white;
  box-shadow: 0 2px 6px rgba(132, 204, 22, 0.45);
}

/* Mod Mega (M) - Rainbow */
.pet-mod-btn.mod-m.active {
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  border-color: #DB2777;
  color: white;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4);
}

.pet-manager-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: white;
  color: #A0AEC0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.pet-manager-remove-btn:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #DC2626;
}

.item-category-tag-pill {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  padding: 4px 10px;
  background: #F1F5F9;
  color: #64748B;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

.modifier-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.modifier-check-chip input {
  display: none;
}

.modifier-check-chip.active {
  background: #F3EEFF;
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.quick-seeking-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.seeking-suggest-chip,
.pub-seeking-suggest-chip {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.seeking-suggest-chip:hover,
.pub-seeking-suggest-chip:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  background: #FFF5F7;
}

/* Contact Trader Modal / Make an Offer & Chat */
.contact-trade-dialog {
  max-width: 740px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
}

.modal-subtabs-bar {
  display: flex;
  background: #F8FAFC;
  border-bottom: 1.5px solid #E2E8F0;
  padding: 0 16px;
  gap: 6px;
}

.modal-subtab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modal-subtab-btn:hover {
  color: var(--primary-pink);
}

.modal-subtab-btn.active {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
  background: #FFF5F7;
}

.chat-count-badge {
  background: var(--primary-pink);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.contact-trade-modal-body {
  overflow-y: auto;
  max-height: calc(90vh - 130px);
  padding: 16px 20px;
}

.modal-subtab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-target-trade-preview {
  background: #FAFBFD;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 14px;
}

.modal-target-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-target-trader-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-target-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink);
  background: #F3EEFF;
  object-fit: cover;
}

.modal-target-names {
  display: flex;
  flex-direction: column;
}

.modal-target-uname {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-target-roblox {
  font-size: 0.8rem;
  color: #64748B;
}

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

.modal-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #2D3748;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-selected-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-pink);
  background: #F3EEFF;
  padding: 2px 10px;
  border-radius: 12px;
}

/* Chat Stream Styles */
.chat-trader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFBFD;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-stream-container {
  min-height: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty-hint {
  margin: auto;
  text-align: center;
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 24px 10px;
}

.chat-message-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-message-row.sent {
  flex-direction: row-reverse;
}

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

.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble.sent {
  background: linear-gradient(135deg, #8B5CF6, #FF459E);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 8px rgba(139, 92, 246, 0.2);
}

.chat-bubble.received {
  background: #ffffff;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-bubble-time {
  font-size: 0.68rem;
  margin-top: 4px;
  opacity: 0.8;
  text-align: right;
}

.chat-offer-card {
  max-width: 85%;
  background: #FFFFFF;
  border: 2px solid #FFD1E3;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.08);
}

.chat-offer-card.sent {
  align-self: flex-end;
}

.chat-offer-card.received {
  align-self: flex-start;
}

.chat-offer-badge-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-pink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-offer-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.chat-offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F3EEFF;
  border: 1px solid #FFC0D9;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1E293B;
}

.chat-offer-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.chat-offer-note {
  font-size: 0.8rem;
  color: #4A5568;
  background: #FAFBFD;
  border-left: 3px solid var(--primary-pink);
  padding: 5px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-field {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input-field:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.chat-send-btn {
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-send-btn:hover {
  background: var(--primary-pink-dark);
  transform: scale(1.05);
}

.chat-roblox-hint {
  font-size: 0.78rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.chat-bottom-bar-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-close-chat-bottom {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #E11D48;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.btn-close-chat-bottom:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
  transform: translateY(-1px);
}

.btn-close-active-chat {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #E11D48;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-close-active-chat:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
}

/* Chat with Trader button in profile */
.btn-chat-with-trader {
  background: #F3EEFF;
  border: 1.5px solid #FFB2D2;
  color: var(--primary-pink);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-chat-with-trader:hover {
  background: var(--primary-pink);
  color: #ffffff;
  border-color: var(--primary-pink);
}

.contact-trade-body {
  text-align: center;
  padding: 10px 0;
}

.contact-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--primary-pink-light);
  position: relative;
}

.contact-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.contact-user-name {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-roblox-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1.5px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 14px 0;
}

.btn-copy-roblox {
  background: var(--primary-pink);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-copy-roblox:hover {
  background: var(--primary-pink-dark);
}

@media (max-width: 768px) {
  .trades-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .trades-grid {
    grid-template-columns: 1fr;
  }
  .trade-visual-box {
    flex-direction: column;
    align-items: stretch;
  }
  .trade-exchange-icon {
    align-self: center;
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   3. CUSTOM BUILD ORDER SECTION STYLES
   ========================================================================== */
.order-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.custom-input, .form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #F8FAFD;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.custom-input:focus, .form-control:focus, .custom-textarea:focus {
  background: white;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 4px var(--primary-pink-light);
}

.custom-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #F8FAFD;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  resize: vertical;
}

/* ==========================================================================
   CUSTOM STUDIO: INTERIOR STYLE DROPDOWN
   ========================================================================== */
.custom-select-dropdown {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
}

.custom-select-trigger:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.custom-select-dropdown.open .custom-select-trigger {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.select-trigger-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-trigger-icon {
  font-size: 1.3rem;
}

.select-trigger-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.select-trigger-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.select-arrow {
  color: #A0AEC0;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.custom-select-dropdown.open .select-arrow {
  transform: rotate(180deg);
  color: var(--primary-pink);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
  display: none;
  animation: fadeInDown 0.2s ease forwards;
}

.custom-select-dropdown.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-select-option:hover {
  background: #FFF5F7;
}

.custom-select-option.active {
  background: #F3EEFF;
}

.option-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.option-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.option-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.option-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.option-check {
  color: var(--primary-pink);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.custom-select-option.active .option-check {
  opacity: 1;
}

/* ==========================================================================
   CUSTOM STUDIO: GLITCH HOUSE SWITCH
   ========================================================================== */
.glitch-toggle-container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #F8FAFD;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  height: 52px;
}

.glitch-toggle-container:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.glitch-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.glitch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 26px;
}

.glitch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glitch-switch input:checked + .glitch-slider {
  background: linear-gradient(135deg, #8B5CF6, #FF4B99);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.glitch-switch input:checked + .glitch-slider:before {
  transform: translateX(20px);
}

.glitch-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.glitch-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.glitch-subtitle {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CUSTOM STUDIO: OFFER SECTION
   ========================================================================== */
.custom-order-offer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

/* Checkbox tags group */
.checkbox-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: #F8FAFD;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-tag input {
  display: none;
}

.checkbox-tag.active {
  background: var(--pastel-mint-light);
  border-color: var(--pastel-mint-dark);
  color: var(--pastel-mint-dark);
}

.order-form-submit-row {
  margin-top: 28px;
  text-align: center;
}

/* ==========================================================================
   4. PROFILE SECTION STYLES
   ========================================================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
}

.profile-cover-banner {
  height: 120px;
  background: linear-gradient(135deg, #C4B5FD, #D8B4E2, #A0E7E5);
}

.profile-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: -50px auto 14px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  background: var(--primary-pink-light);
}

.online-status-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--color-success);
  border: 2px solid white;
  border-radius: 50%;
}

.profile-info-body {
  padding: 0 24px 24px;
}

.profile-nickname {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-roblox-tag {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-roblox-tag span {
  color: var(--pastel-blue-dark);
  font-weight: 700;
}

.profile-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.trader-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.trader-badge.verified {
  background: var(--pastel-blue-light);
  color: var(--pastel-blue-dark);
}

.trader-badge.builder {
  background: var(--pastel-mint-light);
  color: var(--pastel-mint-dark);
}

.trader-badge.trusted {
  background: var(--primary-pink-light);
  color: var(--primary-pink);
}

.profile-rating-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stars {
  color: #F6AD55;
  font-size: 0.95rem;
}

.rating-score {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.reviews-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.stat-box {
  background: #F8FAFD;
  padding: 10px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.stat-num {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Profile Main Content Tabs */
.profile-tabs-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.sub-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.sub-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.sub-tab:hover {
  background: #F8FAFD;
  color: var(--text-main);
}

.sub-tab.active {
  background: var(--pastel-lavender-light);
  color: var(--pastel-purple);
}

.sub-tab-pane {
  display: none;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.sub-tab-pane.active {
  display: block;
  animation: sectionFadeIn 0.3s forwards;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* My Listed Trades in Profile */
.my-trades-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.my-trade-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.sent-offer-card {
  background: #F8FAFD;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.sent-offer-card:hover {
  background: white;
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-sm);
}

/* --- Active Trade Chats in Profile --- */
.active-chats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-chat-card {
  background: #F8FAFD;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

.active-chat-card:hover {
  background: #FFFFFF;
  border-color: var(--primary-pink);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

.active-chat-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.active-chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.active-chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink);
  background: #F3EEFF;
  object-fit: cover;
  display: block;
}

.active-chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #94A3B8;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.active-chat-online-dot.online {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.active-chat-online-dot.offline {
  background: #94A3B8;
  box-shadow: none;
}

.active-chat-status-text {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.active-chat-status-text.online {
  background: #ECFDF5;
  color: #059669;
}

.active-chat-status-text.offline {
  background: #F1F5F9;
  color: #64748B;
}

.active-chat-content {
  min-width: 0;
  flex: 1;
}

.active-chat-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.active-chat-partner-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #1A202C;
}

.active-chat-partner-roblox {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 600;
}

.active-chat-tag-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.active-chat-tag-pill.owner-tag {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.active-chat-tag-pill.participant-tag {
  background: #E0E7FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

.active-chat-trade-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: #F3EEFF;
  color: var(--primary-pink);
  border: 1px solid #FECDD3;
  margin-bottom: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-chat-snippet {
  font-size: 0.86rem;
  color: #4A5568;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
  line-height: 1.4;
}

.active-chat-snippet i {
  margin-right: 5px;
  opacity: 0.8;
}

.active-chat-time {
  font-size: 0.74rem;
  color: #A0AEC0;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.active-chat-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.btn-open-active-chat {
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
  transition: var(--transition);
}

.btn-open-active-chat:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

@media (max-width: 640px) {
  .active-chat-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .active-chat-actions {
    width: 100%;
    align-items: stretch;
  }
  .btn-open-active-chat {
    width: 100%;
    justify-content: center;
  }
}

/* --- Unread Trade Chat Badges (Red Exclamation Mark) --- */
@keyframes chatExclamationPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.chat-unread-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF !important;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
  animation: chatExclamationPulse 1.8s infinite ease-in-out;
  letter-spacing: 0.5px;
  vertical-align: middle;
  border: 1.5px solid #FFFFFF;
}

.chat-unread-alert-badge i {
  font-size: 0.7rem;
}

.header-unread-exclamation {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF !important;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  animation: chatExclamationPulse 1.8s infinite ease-in-out;
  line-height: 1;
  z-index: 5;
}

.dropdown-item .chat-unread-alert-badge {
  margin-left: auto;
  padding: 2px 7px;
  font-size: 0.72rem;
}

.sub-tab .chat-unread-alert-badge {
  margin-left: 5px;
  padding: 2px 6px;
  font-size: 0.72rem;
}

.modal-subtab-btn .chat-unread-alert-badge {
  margin-left: 5px;
  padding: 2px 6px;
  font-size: 0.72rem;
}

.active-chat-card.has-unread {
  border-color: #FCA5A5;
  background: #FFFDFD;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
}

.active-chat-card.has-unread:hover {
  border-color: #EF4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.16);
}

.active-chat-header-row .chat-unread-alert-badge {
  margin-left: 2px;
}

.modal-header-unread-badge {
  margin-left: 6px;
  font-size: 0.72rem;
}


/* ==========================================================================
   MODAL WINDOWS & QUICK PET PICKER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-dialog.modal-lg {
  max-width: 650px;
}

.modal-overlay.show .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  color: var(--text-main);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--pastel-orange);
  color: white;
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: #F8FAFD;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Quick offer pet picker in modal with photo thumbnails */
.quick-offer-pet-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
}

.picker-pet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #F8FAFD;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.picker-pet-pill:hover {
  border-color: var(--primary-pink);
  background: white;
}

.picker-pet-pill.selected {
  background: var(--primary-pink-light);
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.picker-pet-mini-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ==========================================================================
   AUTHENTICATION MODAL STYLES
   ========================================================================== */
.auth-modal-dialog {
  max-width: 460px;
  border-radius: 26px;
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 35px rgba(139, 92, 246, 0.15);
}

.auth-modal-header {
  padding: 22px 24px 14px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-pink), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.35rem;
  box-shadow: var(--shadow-pink);
  transform: rotate(-3deg);
}

.auth-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.auth-tabs-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F1F5F9;
  margin: 0 24px 16px;
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.auth-switch-tab {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.auth-switch-tab:hover {
  color: var(--text-main);
}

.auth-switch-tab.active {
  background: white;
  color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-modal-body {
  padding: 0 24px 20px;
}

.auth-form-pane {
  display: none;
}

.auth-form-pane.active {
  display: block;
  animation: sectionFadeIn 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input {
  padding-left: 42px !important;
  padding-right: 42px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.password-toggle-btn:hover {
  color: var(--primary-pink);
  background: var(--primary-pink-light);
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.form-help-link {
  font-size: 0.78rem;
  color: var(--pastel-blue-dark);
  font-weight: 700;
  transition: var(--transition);
}

.form-help-link:hover {
  color: var(--primary-pink);
  text-decoration: underline;
}

.auth-checkbox-row {
  margin: 12px 0 16px;
}

.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auth-remember-label input {
  accent-color: var(--primary-pink);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.auth-submit-btn {
  margin-top: 4px;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 16px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E2E8F0;
  z-index: 1;
}

.auth-divider span {
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Register Live Avatar */
.register-avatar-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #FFF5F7, #F0F9FF);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(167, 139, 250, 0.35);
  margin-bottom: 16px;
}

.reg-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

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

.reg-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-pink);
  color: white;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}

.reg-avatar-info {
  display: flex;
  flex-direction: column;
}

.reg-avatar-info span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.reg-avatar-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.auth-role-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-chip-option {
  border: 1.5px solid var(--border-light);
  background: #F8FAFD;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.role-chip-option input {
  display: none;
}

.role-chip-option span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
}

.role-chip-option:hover {
  background: white;
  border-color: var(--primary-pink);
}

.role-chip-option.active {
  background: white;
  border-color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.role-chip-option.active span {
  color: var(--primary-pink);
}

.auth-modal-footer {
  background: #FAFBFD;
  padding: 14px 24px;
  text-align: center;
  border-top: 1px solid #F1F5F9;
  justify-content: center;
}

.auth-footer-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-footer-text a {
  color: var(--primary-pink);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--primary-pink);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
  border-left-color: var(--pastel-mint-dark);
}

.toast.toast-info {
  border-left-color: var(--pastel-blue-dark);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablets & Small Laptops (under 1024px) */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

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

  .pets-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .container {
    padding: 0 14px;
  }

  .main-header {
    padding: 8px 0 8px;
  }

  /* Compact two-row grid header on mobile */
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 10px;
    padding: 0 14px;
  }

  .logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: start;
    gap: 8px;
    min-width: 0;
  }

  .logo-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 11px;
    flex-shrink: 0;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-brand {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .logo-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.4px;
    white-space: nowrap;
  }

  .header-actions {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  #headerPublishHouseBtn {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  .guest-auth-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .guest-auth-buttons .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .user-pill-preview {
    padding: 3px 10px 3px 3px;
    gap: 6px;
  }

  .user-avatar-mini {
    width: 28px;
    height: 28px;
  }

  .user-name-mini {
    font-size: 0.8rem;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Full-width seamless navigation tabs without cutoff or scrollbars */
  .nav-tabs {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1F4F9;
    padding: 4px;
    border-radius: var(--radius-full);
    gap: 4px;
    margin: 0;
    overflow: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 0;
    text-align: center;
  }

  .nav-tab .tab-icon {
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .nav-tab.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .nav-tab .tab-badge {
    display: none !important;
  }

  /* Toggle responsive labels */
  .label-full, .publish-btn-full {
    display: none;
  }

  .label-short, .publish-btn-short {
    display: inline;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.92rem;
  }

  .houses-filter-toolbar,
  .trades-filter-toolbar,
  .commissions-filter-bar,
  .pets-filter-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 14px 12px;
    gap: 12px;
    border-radius: var(--radius-md);
  }

  .house-search-box,
  .trades-search-box,
  .commissions-search-box,
  .pets-search-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .house-category-tabs,
  .trades-category-tabs,
  .commissions-category-tabs,
  .pet-rarity-filter-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 8px !important;
    padding: 2px 2px 8px 2px !important;
    margin: 0 !important;
    cursor: grab;
  }

  .house-category-tabs::-webkit-scrollbar,
  .trades-category-tabs::-webkit-scrollbar,
  .commissions-category-tabs::-webkit-scrollbar,
  .pet-rarity-filter-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .house-filter-chip,
  .trade-filter-chip,
  .commission-filter-chip,
  .pet-filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 15px !important;
    font-size: 0.84rem !important;
    border-radius: var(--radius-full) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
  }

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

  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .pets-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .trades-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .user-dropdown-menu {
    right: 0;
    max-width: calc(100vw - 32px);
    width: 290px;
  }

  .auth-modal-dialog {
    max-width: 100%;
    margin: 12px;
  }
}

/* Medium & Mobile Screens (under 640px) */
@media (max-width: 640px) {
  .my-trades-list {
    grid-template-columns: 1fr;
  }

  .am-trade-window {
    padding: 10px 8px 10px;
    border-width: 3.5px;
    border-radius: 14px;
  }

  .am-trade-body-row {
    gap: 6px;
  }

  .am-player-tag {
    font-size: 0.82rem;
    max-width: 48%;
  }

  .am-grid-sublabel {
    font-size: 0.68rem;
  }

  .am-trade-grid {
    width: 142px;
    height: 142px;
    grid-auto-rows: 44px;
    gap: 2px;
    padding: 2px;
  }

  .am-slot {
    min-height: 44px;
    height: 44px;
  }

  .am-slot-pet-img {
    width: 32px;
    height: 32px;
  }

  .am-plus-icon-btn {
    width: 22px;
    height: 22px;
    font-size: 1rem;
    box-shadow: 0 2px 0 #1E824C;
  }

  .am-badge {
    font-size: 0.48rem;
    padding: 0 2px;
  }

  .am-trade-center {
    width: 34px;
  }

  .am-trade-word {
    font-size: 0.72rem;
  }

  .am-trade-arrows-icon {
    width: 26px;
    height: 26px;
    font-size: 1.05rem;
  }

  .am-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    min-width: 80px;
  }
}

/* Small Phones (under 440px) */
@media (max-width: 440px) {
  .logo-subtitle {
    display: none;
  }

  .header-container {
    padding: 0 10px;
    gap: 6px 8px;
  }

  .logo-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 9px;
  }

  .logo-brand {
    font-size: 1.15rem;
  }

  #headerPublishHouseBtn {
    padding: 5px 9px;
    font-size: 0.75rem;
  }

  .user-pill-preview {
    padding: 2px 8px 2px 2px;
  }

  .user-name-mini {
    max-width: 60px;
    font-size: 0.75rem;
  }

  .nav-tab {
    padding: 6px 2px;
    font-size: 0.72rem;
    gap: 3px;
  }

  .nav-tab .tab-icon {
    font-size: 0.8rem;
  }

  .am-trade-window {
    padding: 8px 5px 8px;
    border-width: 2.5px;
    border-radius: 12px;
  }

  .am-trade-body-row {
    gap: 4px;
  }

  .am-player-tag {
    font-size: 0.74rem;
  }

  .am-grid-sublabel {
    font-size: 0.6rem;
  }

  .am-trade-grid {
    width: 114px;
    height: 114px;
    grid-auto-rows: 35px;
    gap: 2px;
    padding: 2px;
  }

  .am-slot {
    min-height: 35px;
    height: 35px;
  }

  .am-slot-pet-img {
    width: 25px;
    height: 25px;
  }

  .am-badge {
    font-size: 0.42rem;
    padding: 0 1px;
  }

  .am-trade-center {
    width: 28px;
  }

  .am-trade-word {
    font-size: 0.62rem;
  }

  .am-trade-arrows-icon {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   SITE FOOTER & CONTACT STYLES
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8FA 100%);
  border-top: 1.5px solid #F1F5F9;
  padding: 60px 0 32px;
  margin-top: 80px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 380px;
}

.footer-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.community-pill i {
  color: var(--primary-pink);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 1.2rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer-col-title i {
  color: var(--primary-pink);
}

.footer-contact-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border: 1.5px solid #F1F5F9;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.footer-contact-item:hover {
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-icon.email {
  background: #F3EEFF;
  color: var(--primary-pink);
}

.contact-icon.discord {
  background: #F0F4FF;
  color: #5865F2;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.contact-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-contact-item:hover .contact-arrow {
  color: var(--primary-pink);
  transform: translate(2px, -2px);
}

.copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFD;
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.footer-contact-item:hover .copy-badge {
  background: var(--primary-pink-light);
  color: var(--primary-pink);
  border-color: rgba(167, 139, 250, 0.5);
}

.footer-disclaimer-box {
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  border-left: 4px solid var(--primary-pink);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.disclaimer-header i {
  color: var(--primary-pink);
}

.disclaimer-text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary-pink);
}

@media (max-width: 860px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   HOUSE PHOTO UPLOADER & IMAGE COMPRESSION
   ========================================================================== */
.house-upload-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  background: #F8FAFD;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.house-upload-dropzone:hover,
.house-upload-dropzone.drag-over {
  border-color: var(--primary-pink);
  background: #FFF5F9;
}

.house-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  pointer-events: none;
}

.house-upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F3EEFF;
  color: var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.house-upload-dropzone:hover .house-upload-icon-circle {
  transform: scale(1.08);
}

.house-upload-main-text {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.house-upload-sub-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.house-uploaded-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.house-uploaded-item {
  position: relative;
  width: 110px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  background: #000;
}

.house-uploaded-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.house-uploaded-item-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.house-uploaded-item-remove:hover {
  background: #EF4444;
}

.house-uploaded-item-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #38BDF8;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.house-uploaded-cover-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary-pink);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.house-uploaded-add-slot {
  width: 110px;
  height: 80px;
  border: 1.5px dashed #CBD5E1;
  border-radius: 12px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  gap: 3px;
}

.house-uploaded-add-slot:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  background: #FFF5F9;
}

.house-upload-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 0.76rem;
}

.house-upload-size-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #059669;
  font-weight: 600;
}

/* ==========================================================================
   GOOGLE AUTH & EMAIL OTP VERIFICATION STYLES
   ========================================================================== */
.social-auth-container {
  margin-bottom: 8px;
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 10px 20px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-google-auth:hover {
  background: #F8FAFD;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn-google-auth svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.auth-divider span {
  padding: 0 12px;
}

/* Email Verification Pane */
.verify-email-header {
  text-align: center;
  padding: 6px 0 14px;
}

.verify-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #F3EEFF;
  color: var(--primary-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.verify-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.verify-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.verify-subtitle strong {
  color: var(--primary-pink);
  font-weight: 700;
}

.verify-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}

.otp-input {
  width: 46px;
  height: 54px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: #F8FAFD;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
}

.otp-input:focus {
  border-color: var(--primary-pink);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.otp-input.error {
  border-color: #EF4444;
  background: #FEF2F2;
  animation: shakeOtp 0.3s ease;
}

@keyframes shakeOtp {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.verify-status-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #166534;
  text-align: center;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}

.verify-status-box i {
  color: #16A34A;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.verify-resend-row,
.verify-back-row {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--primary-pink);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.btn-text-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Google Picker Dialog */
.google-picker-dialog {
  max-width: 440px;
}

.google-picker-header {
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 14px;
}

.google-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   EDIT PROFILE MODAL STYLES
   ========================================================================== */
.edit-profile-dialog {
  max-width: 520px;
  border-radius: 24px;
}

.edit-profile-body {
  padding: 20px 24px;
}

.edit-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F8FAFD;
  border: 1.5px dashed rgba(167, 139, 250, 0.7);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.edit-avatar-preview-wrap {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-pink);
  box-shadow: var(--shadow-pink);
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-avatar-controls {
  flex: 1;
}

.edit-avatar-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.edit-avatar-input-row .custom-input {
  flex: 1;
  height: 40px;
  font-size: 0.88rem;
  padding: 8px 12px;
}

.edit-input-hint {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

.label-with-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================================================
   CUSTOM STUDIO: SUB-TABS & ACTIVE COMMISSIONS BOARD
   ========================================================================= */

.custom-studio-tabs-bar {
  display: inline-flex;
  gap: 8px;
  background: white;
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  margin: 18px auto 0;
}

.studio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.studio-tab-btn:hover {
  color: var(--text-main);
  background: #FFF5F7;
}

.studio-tab-btn.active {
  background: var(--primary-pink);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.studio-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

.studio-tab-btn:not(.active) .studio-tab-badge {
  background: #F3EEFF;
  color: var(--primary-pink);
}

.custom-studio-view-pane {
  animation: fadeInPane 0.24s ease;
}

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

.studio-request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.studio-request-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Commissions Toolbar */
.commissions-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: white;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.commissions-search-box {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.commissions-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.9rem;
}

.commissions-search-box input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.commissions-search-box input:focus {
  border-color: var(--primary-pink);
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.commissions-category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.commission-filter-chip {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
  background: white;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.commission-filter-chip:hover {
  background: #FFF5F7;
  color: var(--primary-pink);
  border-color: #FECDD3;
}

.commission-filter-chip.active {
  background: #F3EEFF;
  color: var(--primary-pink);
  border-color: var(--primary-pink);
  font-weight: 700;
}

/* Commissions Grid */
.commissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

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

/* Commission Card */
.commission-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.commission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: #FCE7F3;
}

.commission-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.commission-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.commission-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F3EEFF;
  border: 2px solid #FFE4E6;
  object-fit: cover;
}

.commission-user-meta {
  display: flex;
  flex-direction: column;
}

.commission-user-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.commission-user-roblox {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

.commission-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.commission-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulseCommissionDot 2s infinite ease-in-out;
}

@keyframes pulseCommissionDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.commission-body {
  margin-bottom: 16px;
}

.commission-house-info {
  margin-bottom: 12px;
}

.commission-house-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.commission-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.commission-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.commission-tag.glitch-tag {
  background: #F5F3FF;
  color: #7C3AED;
  border-color: #DDD6FE;
}

.commission-tag.house-type-tag {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

.commission-notes-box {
  background: #FAF5FF;
  border: 1px solid #F3E8FF;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #581C87;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.commission-notes-box i {
  color: #A855F7;
  margin-top: 2px;
  font-size: 0.85rem;
}

.commission-reward-section {
  background: #FFF5F7;
  border: 1px solid #FFE4E6;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.commission-reward-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-pink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.commission-pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.commission-pet-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #FECDD3;
}

.commission-pet-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.commission-pet-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.commission-pet-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commission-pet-mods {
  display: flex;
  gap: 2px;
  margin-top: 1px;
}

.commission-pet-mod-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 4px;
  line-height: 14px;
}

.mod-f { background: #3B82F6; color: white; }
.mod-r { background: #10B981; color: white; }
.mod-fr { background: #8B5CF6; color: white; }
.mod-n { background: #F59E0B; color: white; }
.mod-m { background: #EC4899; color: white; }

.commission-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.btn-contact-commission {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-pink);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-contact-commission:hover {
  background: #E85A88;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-contact-commission.own-commission {
  background: #94A3B8;
  color: white;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-cancel-commission {
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #FECDD3;
  background: #F3EEFF;
  color: #E11D48;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-cancel-commission:hover {
  background: #FFE4E6;
}

.btn-delete-listing {
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid #FECDD3;
  background: #F3EEFF;
  color: #E11D48;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-delete-listing:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
  transform: translateY(-1px);
}

.btn-delete-listing-sm {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid #FECDD3;
  background: #F3EEFF;
  color: #E11D48;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-delete-listing-sm:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #BE123C;
}

/* ==========================================================================
   HOUSE MARKET PHOTO COLLAGES, PROPOSE TRADE GALLERY & LIGHTBOX VIEWER
   ========================================================================== */

/* House Card Image Collage */
.house-collage-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  cursor: pointer;
  overflow: hidden;
}

.house-collage-single {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.house-thumbnail:hover .house-collage-single {
  transform: scale(1.04);
}

.house-collage-2 {
  display: flex;
  gap: 2px;
  background: #0F172A;
}

.house-collage-2 .collage-main {
  flex: 0 0 62%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, filter 0.2s ease;
}

.house-collage-2 .collage-sub {
  flex: 0 0 38%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, filter 0.2s ease;
}

.house-collage-multi {
  display: flex;
  gap: 2px;
  background: #0F172A;
}

.house-collage-multi .collage-main {
  flex: 0 0 62%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.3s ease, filter 0.2s ease;
}

.house-collage-multi .collage-subs-col {
  flex: 0 0 38%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.house-collage-multi .collage-sub-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.2s ease;
}

.house-collage-multi .collage-sub-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  color: #FFFFFF;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease;
}

.house-collage-container .collage-main:hover,
.house-collage-container .collage-sub:hover,
.house-collage-container .collage-sub-item:hover {
  filter: brightness(1.08);
}

.house-thumbnail .house-gradient-overlay {
  z-index: 1;
  pointer-events: none;
}

.house-thumbnail .house-tag-top,
.house-thumbnail .house-favorite-btn,
.house-thumbnail .house-wanted-tag,
.house-thumbnail .house-builder-tag {
  z-index: 2;
}

/* Photo count badge on house card */
.house-photo-count-badge {
  position: absolute;
  top: 14px;
  right: 56px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Propose Trade Modal Summary & Photos Strip */
.house-offer-summary-box {
  background: #F8FAFD;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.house-offer-summary-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.house-offer-main-preview {
  width: 100px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #E2E8F0;
}

.house-offer-main-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.house-offer-main-preview:hover img {
  transform: scale(1.08);
}

.offer-photo-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.house-offer-main-preview:hover .offer-photo-zoom-hint,
.house-offer-photo-card:hover .offer-photo-zoom-hint {
  opacity: 1;
}

.house-offer-info {
  flex: 1;
  min-width: 0;
}

.house-offer-title {
  font-size: 1.15rem;
  color: #1E293B;
  font-weight: 700;
  margin-bottom: 4px;
}

.house-offer-cat-pill {
  background: #F3EEFF;
  color: var(--primary-pink);
  border: 1px solid #FECDD3;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.house-offer-meta {
  font-size: 0.85rem;
  color: #64748B;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.house-offer-desc {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 6px;
  line-height: 1.4;
}

.house-offer-gallery-wrap {
  border-top: 1px dashed #E2E8F0;
  padding-top: 12px;
}

.house-offer-gallery-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.house-offer-gallery-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: #94A3B8;
}

.house-offer-gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.house-offer-photo-card {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.house-offer-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.house-offer-photo-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-pink);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.offer-photo-cover-tag {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Lightbox Modal */
.house-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.house-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.house-lightbox-content {
  position: relative;
  z-index: 100001;
  width: 94vw;
  max-width: 980px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #1E293B;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  animation: lightboxPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.house-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.house-lightbox-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.house-lightbox-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
}

.house-lightbox-counter {
  background: rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
}

.house-lightbox-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.house-lightbox-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: scale(1.08);
}

.house-lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 400px;
  max-height: calc(88vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  overflow: hidden;
  background: #0B1120;
}

.house-lightbox-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.house-lightbox-main-img {
  max-width: 100%;
  max-height: calc(88vh - 190px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}

.house-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.house-lightbox-nav-btn.prev {
  left: 20px;
}

.house-lightbox-nav-btn.next {
  right: 20px;
}

.house-lightbox-nav-btn:hover {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.house-lightbox-footer {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

.house-lightbox-thumbs-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 4px;
  scrollbar-width: thin;
}

.house-lightbox-thumb-item {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.house-lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.house-lightbox-thumb-item:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.house-lightbox-thumb-item.active {
  opacity: 1;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .house-lightbox-content {
    width: 98vw;
    border-radius: 16px;
  }
  .house-lightbox-stage {
    min-height: 280px;
    padding: 10px;
  }
  .house-lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .house-lightbox-nav-btn.prev {
    left: 8px;
  }
  .house-lightbox-nav-btn.next {
    right: 8px;
  }
  .house-lightbox-thumb-item {
    width: 52px;
    height: 40px;
  }
}

/* ==========================================================================
   PUBLIC USER PROFILE MODAL & INTERACTIVE NICKNAME STYLES
   ========================================================================== */

.clickable-user-nickname {
  cursor: pointer !important;
  transition: color 0.18s ease, text-decoration 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.clickable-user-nickname:hover {
  color: var(--primary-pink) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--primary-pink) !important;
  text-underline-offset: 3px !important;
  opacity: 0.95;
}

.house-builder-tag.clickable-user-nickname:hover {
  background: #F3EEFF !important;
  color: var(--primary-pink) !important;
  border-color: #FECDD3 !important;
  transform: translateY(-1px);
}

.am-player-tag.clickable-user-nickname:hover {
  color: var(--primary-pink) !important;
  border-color: var(--primary-pink) !important;
  background: #FFF5F8 !important;
}

.commission-user-name.clickable-user-nickname:hover {
  color: var(--primary-pink) !important;
}

#publicUserProfileModal.modal-overlay {
  z-index: 1100;
}

.public-profile-dialog {
  max-width: 860px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.public-profile-header-banner {
  height: 96px;
  background: linear-gradient(135deg, #FF69B4 0%, #FFA07A 50%, #B19CD9 100%);
  position: relative;
  flex-shrink: 0;
}

.public-profile-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.public-profile-close-btn:hover {
  background: white;
  color: var(--primary-pink);
  transform: rotate(90deg);
}

.public-profile-card-top {
  padding: 0 24px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  margin-top: -46px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.public-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.public-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #F3EEFF;
  object-fit: cover;
  display: block;
}

.public-profile-online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid white;
  background: #94A3B8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.public-profile-online-badge.online {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.public-profile-online-badge.offline {
  background: #94A3B8;
  box-shadow: none;
}

.public-profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  line-height: 1.2;
}

.public-profile-status-pill.online {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.public-profile-status-pill.offline {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.public-profile-status-pill i {
  font-size: 0.5rem;
}

.chat-trader-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1;
}

.chat-trader-status-pill.online {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.chat-trader-status-pill.offline {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.chat-trader-status-pill i {
  font-size: 0.5rem;
}

.admin-user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.2;
  margin-left: 4px;
}

.admin-user-status-pill.online {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.admin-user-status-pill.offline {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #CBD5E1;
}

.admin-user-status-pill i {
  font-size: 0.48rem;
}

.trade-user-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.trade-user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid white;
  transition: background-color 0.25s ease;
}

.trade-user-status-dot.online {
  background: #10B981;
}

.trade-user-status-dot.offline {
  background: #CBD5E1;
}

.public-profile-identity {
  flex: 1;
  min-width: 220px;
}

.public-profile-names-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.public-profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
  line-height: 1.2;
}

.public-profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #F3EEFF;
  color: var(--primary-pink);
  border: 1px solid #FECDD3;
}

.public-profile-roblox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 0.88rem;
  color: #64748B;
}

.public-profile-roblox-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-profile-roblox-tag b {
  color: #1E293B;
}

.public-profile-trust-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.public-profile-rating-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 6px 12px;
  border-radius: 12px;
}

.public-profile-rating-box .stars {
  color: #F59E0B;
  font-size: 0.82rem;
  display: flex;
  gap: 2px;
}

.public-profile-rating-box .rating-score {
  font-weight: 800;
  font-size: 0.88rem;
  color: #78350F;
}

.public-profile-rating-box .reviews-count {
  font-size: 0.78rem;
  color: #92400E;
}

.public-profile-bio-box {
  margin: 0 24px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.public-profile-bio-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.public-profile-bio-text {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.48;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.public-profile-tabs-bar {
  display: flex;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1.5px solid #E2E8F0;
  padding: 0 20px;
  gap: 6px;
  flex-shrink: 0;
  overflow-x: auto;
}

.public-profile-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.public-profile-tab-btn:hover {
  color: var(--primary-pink);
}

.public-profile-tab-btn.active {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
  background: #FFF5F7;
}

.public-profile-tab-btn .profile-tab-count {
  font-size: 0.8rem;
  opacity: 0.85;
}

.public-profile-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-height: 280px;
  background: #FAFBFD;
}

.public-profile-pane {
  display: block;
}

.public-profile-trades-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.public-profile-houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.public-profile-commissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.profile-empty-state {
  text-align: center;
  padding: 48px 20px;
  background: white;
  border-radius: 18px;
  border: 2px dashed #E2E8F0;
  grid-column: 1 / -1;
}

.profile-empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F3EEFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-pink);
  margin-bottom: 12px;
}

.profile-empty-state-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 6px;
}

.profile-empty-state-desc {
  font-size: 0.88rem;
  color: #64748B;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .public-profile-dialog {
    max-height: 94vh;
  }
  .public-profile-card-top {
    padding: 0 16px 12px;
    gap: 12px;
  }
  .public-profile-avatar {
    width: 68px;
    height: 68px;
  }
  .public-profile-bio-box {
    margin: 0 16px 12px;
  }
  .public-profile-tabs-bar {
    padding: 0 10px;
  }
  .public-profile-tab-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .public-profile-content-body {
    padding: 16px;
  }
  .public-profile-houses-grid,
  .public-profile-commissions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADMIN CONTROL PANEL & MODERATION STYLES (STRICT 0 CYRILLIC)
   ========================================================================== */
.admin-passkey-dialog {
  max-width: 460px;
  width: 92%;
  border-radius: 24px;
}

.admin-dashboard-dialog {
  max-width: 1080px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
}

.admin-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-shield-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8A2BE2, #6C5CE7);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.3);
  flex-shrink: 0;
}

.admin-shield-icon-badge.pulsing {
  animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  }
}

.admin-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #EDE9FE;
  color: #7C3AED;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-live-badge i {
  font-size: 0.55rem;
  color: #10B981;
}

.admin-modal-sub {
  font-size: 0.8rem;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.admin-auth-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  color: #475569;
}

.admin-auth-notice i {
  color: #8A2BE2;
  font-size: 1.1rem;
  margin-top: 2px;
}

.admin-auth-notice strong {
  color: #1E293B;
  display: block;
  margin-bottom: 2px;
}

.admin-auth-notice p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-stats-summary-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

@media (max-width: 1200px) {
  .admin-stats-summary-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-stats-summary-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 16px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .admin-stats-summary-bar {
    grid-template-columns: 1fr;
  }
}

button.admin-stat-card,
.admin-stat-card {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  width: 100%;
}

.admin-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-stat-icon.users {
  background: #EDE9FE;
  color: #7C3AED;
}

.admin-stat-icon.trades {
  background: #FEF3C7;
  color: #D97706;
}

.admin-stat-icon.houses {
  background: #E0F2FE;
  color: #0284C7;
}

.admin-stat-icon.comms {
  background: #FCE7F3;
  color: #DB2777;
}

.admin-stat-data {
  display: flex;
  flex-direction: column;
}

.admin-stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E293B;
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.admin-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 12px 24px 0;
  border-bottom: 2px solid #F1F5F9;
  background: #FFFFFF;
  overflow-x: auto;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748B;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: #8A2BE2;
}

.admin-tab-btn.active {
  color: #8A2BE2;
  border-bottom-color: #8A2BE2;
}

.admin-dashboard-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 380px;
  max-height: calc(88vh - 220px);
}

.admin-filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.admin-search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.9rem;
  pointer-events: none;
}

.admin-search-input {
  padding-left: 38px !important;
  width: 100%;
  border-radius: 12px;
  height: 42px;
  font-size: 0.88rem;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
}

.admin-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-filter-pill:hover {
  border-color: #8A2BE2;
  color: #8A2BE2;
}

.admin-filter-pill.active {
  background: #8A2BE2;
  color: #FFFFFF;
  border-color: #8A2BE2;
}

.admin-pane-actions {
  display: flex;
  align-items: center;
}

.admin-moderation-hint {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.admin-user-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.admin-user-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.admin-user-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #F1F5F9;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-user-card-meta {
  flex: 1;
  min-width: 0;
}

.admin-user-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.admin-user-card-roblox {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
}

.admin-user-card-email {
  font-size: 0.78rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.admin-user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 4px;
}

.admin-user-role-badge.admin {
  background: #EDE9FE;
  color: #7C3AED;
}

.admin-user-role-badge.builder {
  background: #E0F2FE;
  color: #0284C7;
}

.admin-user-role-badge.trader {
  background: #FEF3C7;
  color: #D97706;
}

.admin-user-role-badge.collector {
  background: #FCE7F3;
  color: #DB2777;
}

.admin-user-stats-row {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  justify-content: space-around;
}

.admin-user-bio-snippet {
  font-size: 0.82rem;
  color: #64748B;
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.admin-user-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.admin-moderation-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-mod-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.admin-mod-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.admin-mod-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.admin-mod-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.admin-mod-info {
  min-width: 0;
  flex: 1;
}

.admin-mod-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-mod-author {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
  cursor: pointer;
}

.admin-mod-details {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 3px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-mod-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-admin-del {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #EF4444;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-del:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-admin-inspect {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-admin-inspect:hover {
  background: #EDE9FE;
  color: #7C3AED;
  border-color: #DDD6FE;
}

.btn-admin-card-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FEF2F2;
  color: #EF4444;
  border: 1.5px solid #FECACA;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-admin-card-delete:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
  .admin-stats-summary-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 16px;
  }
  .admin-dashboard-body {
    padding: 16px;
  }
  .admin-users-grid {
    grid-template-columns: 1fr;
  }
  .admin-mod-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-mod-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Administrative entry point default visibility */
#footerAdminLink,
#dropdownAdminBtn {
  display: none;
}

#footerAdminLink {
  align-items: center;
  gap: 6px;
  color: #8A2BE2 !important;
  font-weight: 700 !important;
  background: rgba(138, 43, 226, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(138, 43, 226, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}

#footerAdminLink:hover {
  background: rgba(138, 43, 226, 0.16);
  color: #7B1FA2 !important;
  border-color: #8A2BE2;
  transform: translateY(-1px);
}

#dropdownAdminBtn {
  color: #8A2BE2 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   REPORT SYSTEM STYLES (PET TRADES, HOUSES & USER PROFILES)
   ========================================================================== */

.btn-report-listing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #94A3B8;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-report-listing:hover {
  background: #FFF1F2;
  color: #F43F5E;
  border-color: #FECDD3;
  transform: scale(1.06);
}

.btn-report-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #FECDD3;
  background: #FFF1F2;
  color: #E11D48;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-report-profile:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  transform: translateY(-1px);
}

.report-dialog {
  max-width: 520px;
  border-radius: 24px;
  background: #FFFFFF;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.report-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-flag-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FFE4E6;
  color: #E11D48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.report-modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.report-target-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  margin: 16px 0;
}

.report-target-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F1F5F9;
  color: var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.report-target-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 8px;
  background: #EDE9FE;
  color: #7C3AED;
  margin-bottom: 4px;
}

.report-target-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.report-target-user {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
}

.report-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.report-reason-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.report-reason-label:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.report-reason-label.selected {
  border-color: #F43F5E;
  background: #FFF1F2;
  color: #BE123C;
}

.report-reason-label.highlight-cloned {
  border-color: #E11D48;
  background: #FFF1F2;
  font-weight: 800;
}

.report-reason-label input[type="radio"] {
  accent-color: #E11D48;
  transform: scale(1.15);
  margin: 0;
}

.report-textarea {
  width: 100%;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.88rem;
  resize: vertical;
}

.report-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Admin Reports Moderation */
.admin-stat-icon.reports {
  background: #FFE4E6;
  color: #E11D48;
}

.admin-report-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.admin-report-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}

.admin-report-card.status-resolved {
  opacity: 0.7;
  border-left: 4px solid #10B981;
}

.admin-report-card.status-pending {
  border-left: 4px solid #F43F5E;
}

.admin-report-card.status-dismissed {
  opacity: 0.6;
  border-left: 4px solid #94A3B8;
}

.admin-report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-report-target-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-report-type-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.admin-report-type-badge.house {
  background: #EDE9FE;
  color: #7C3AED;
}

.admin-report-type-badge.trade {
  background: #FEF3C7;
  color: #B45309;
}

.admin-report-type-badge.user {
  background: #E0E7FF;
  color: #4338CA;
}

.admin-report-reason-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #FFE4E6;
  color: #E11D48;
}

.admin-report-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}

.admin-report-status-badge.pending {
  background: #FEE2E2;
  color: #DC2626;
}

.admin-report-status-badge.resolved {
  background: #D1FAE5;
  color: #059669;
}

.admin-report-status-badge.dismissed {
  background: #F1F5F9;
  color: #64748B;
}

.admin-report-details-quote {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #334155;
  border-left: 3px solid #CBD5E1;
  font-style: italic;
}

.admin-report-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-report-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Clickable Admin Stat Cards */
.admin-stat-card {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  border-color: #CBD5E1;
}

.admin-stat-card:active {
  transform: translateY(-1px) scale(0.99);
}

.admin-stat-card:focus-visible {
  outline: 2px solid #8A2BE2;
  outline-offset: 2px;
}

.admin-stat-indicator {
  margin-left: auto;
  font-size: 0.8rem;
  color: #94A3B8;
  opacity: 0.45;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-stat-card:hover .admin-stat-indicator {
  opacity: 1;
  color: #64748B;
  transform: translateX(2px);
}

/* Active stat card states corresponding to active tabs */
.admin-stat-card.active {
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.admin-stat-card[data-admin-tab="users"].active {
  border-color: #8B5CF6;
  background: #FAF5FF;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.15);
}
.admin-stat-card[data-admin-tab="users"].active .admin-stat-indicator {
  color: #7C3AED;
  opacity: 1;
}

.admin-stat-card[data-admin-tab="trades"].active {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}
.admin-stat-card[data-admin-tab="trades"].active .admin-stat-indicator {
  color: #D97706;
  opacity: 1;
}

.admin-stat-card[data-admin-tab="houses"].active {
  border-color: #0284C7;
  background: #F0F9FF;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
}
.admin-stat-card[data-admin-tab="houses"].active .admin-stat-indicator {
  color: #0284C7;
  opacity: 1;
}

.admin-stat-card[data-admin-tab="commissions"].active {
  border-color: #DB2777;
  background: #FDF2F8;
  box-shadow: 0 6px 18px rgba(219, 39, 119, 0.15);
}
.admin-stat-card[data-admin-tab="commissions"].active .admin-stat-indicator {
  color: #DB2777;
  opacity: 1;
}

.admin-stat-card[data-admin-tab="reports"].active {
  border-color: #E11D48;
  background: #FFF1F2;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.15);
}
.admin-stat-card[data-admin-tab="reports"].active .admin-stat-indicator {
  color: #E11D48;
  opacity: 1;
}

/* Admin Lockout Notice */
.admin-lockout-notice {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   CLICKABLE ACTIVE REPORTS QUEUE WIDGET
   ========================================================================== */

.admin-active-reports-widget {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  border-radius: 20px;
  padding: 16px 20px;
  margin: 0 0 20px 0;
  transition: all 0.2s ease;
}

.admin-active-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-active-reports-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #9F1239;
  font-weight: 700;
}

.active-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E11D48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: reportPulse 1.8s infinite;
}

@keyframes reportPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.admin-active-reports-hint {
  font-size: 0.76rem;
  font-weight: 500;
  color: #BE123C;
  opacity: 0.85;
  margin-left: 6px;
}

.btn-link-all-reports {
  background: #FFFFFF;
  border: 1px solid #FDA4AF;
  color: #BE123C;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-link-all-reports:hover {
  background: #FFE4E6;
  color: #9F1239;
  transform: translateX(2px);
}

.admin-active-reports-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-active-report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid #FFE4E6;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.04);
}

.admin-active-report-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.12);
  border-color: #FDA4AF;
}

.active-report-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.active-report-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.active-report-icon.house {
  background: #EDE9FE;
  color: #7C3AED;
}

.active-report-icon.trade {
  background: #FEF3C7;
  color: #B45309;
}

.active-report-icon.user {
  background: #E0E7FF;
  color: #4338CA;
}

.active-report-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.active-report-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-report-target-title {
  font-weight: 800;
  color: #1E293B;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.active-report-user-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 8px;
}

.active-report-reason-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.active-report-reason-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFE4E6;
  color: #E11D48;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.active-report-reason-pill.cloned {
  background: #E11D48;
  color: #FFFFFF;
}

.active-report-time {
  color: #94A3B8;
  font-weight: 600;
}

.active-report-snippet {
  color: #475569;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.active-report-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .admin-active-report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .active-report-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .active-report-snippet {
    max-width: 100%;
  }
}

/* ==========================================================================
   SEO KNOWLEDGE & COMMUNITY OVERVIEW SECTION
   ========================================================================== */

.seo-knowledge-section {
  padding: 30px 0 60px;
}

.seo-knowledge-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid var(--border-color, #E2E8F0);
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.seo-knowledge-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 32px;
}

.seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EDE9FE;
  color: #7C3AED;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.seo-title {
  font-family: var(--font-display, 'Fredoka', sans-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark, #1E293B);
  margin-bottom: 10px;
  line-height: 1.25;
}

.seo-subtitle {
  color: var(--text-muted, #64748B);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .seo-features-grid {
    grid-template-columns: 1fr;
  }
}

.seo-feature-item {
  background: #F8FAFC;
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.seo-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EDE9FE;
  color: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.seo-feature-item:nth-child(2) .seo-feature-icon {
  background: #FEF3C7;
  color: #D97706;
}

.seo-feature-item:nth-child(3) .seo-feature-icon {
  background: #FCE7F3;
  color: #DB2777;
}

.seo-feature-item h3 {
  font-family: var(--font-display, 'Fredoka', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark, #1E293B);
  margin-bottom: 8px;
}

.seo-feature-item p {
  color: var(--text-muted, #64748B);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   DONATION & BUY ME A COFFEE SUPPORT SYSTEM STYLES
   ========================================================================== */

/* Header Donate Button */
.btn-donate-header {
  background: linear-gradient(135deg, rgba(255, 221, 0, 0.16), rgba(255, 178, 0, 0.22));
  color: #B38600;
  border: 1.5px solid rgba(255, 221, 0, 0.45);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.86rem;
  transition: var(--transition);
  user-select: none;
}

.btn-donate-header:hover {
  background: linear-gradient(135deg, #FFDD00, #FFC400);
  color: #1A1A1A;
  border-color: #E6B800;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 200, 0, 0.35);
}

.btn-donate-header:hover i {
  animation: coffeeSteam 0.8s infinite ease-in-out;
}

@keyframes coffeeSteam {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.18); }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

/* User Dropdown Donate Item */
.dropdown-donate-btn {
  color: #B38600 !important;
  font-weight: 700;
}

.dropdown-donate-btn:hover {
  background: #FFFDF0 !important;
  color: #8A6700 !important;
}

/* Footer Donate Item */
.contact-icon.donate, .contact-icon.bmc {
  background: #FFF9E6;
  color: #B38600;
}

.footer-donate-item:hover {
  border-color: #FFDD00;
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.22);
}

/* Donation Modal Dialog */
.donation-dialog {
  max-width: 490px;
  width: 92%;
  border-radius: 28px;
  background: #FFFFFF;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(255, 221, 0, 0.2);
  border: 1.5px solid rgba(255, 221, 0, 0.3);
  padding: 0;
  overflow: hidden;
}

.donation-dialog .modal-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-icon.bmc-header-icon {
  background: rgba(255, 221, 0, 0.2);
  color: #B38600;
}

.donation-modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.donation-body {
  padding: 20px 24px 26px;
}

.donation-hero-banner {
  background: linear-gradient(135deg, #FFFDF0, #FFF9E6);
  border: 1.5px dashed rgba(255, 200, 0, 0.45);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.donation-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(255, 200, 0, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: #B38600;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(255, 200, 0, 0.15);
}

.donation-hero-banner h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.donation-hero-banner p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.donation-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.donation-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.donation-preset-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 6px;
  background: #F8FAFD;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.preset-coffee-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.preset-coffee-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.preset-coffee-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #B38600;
}

.donation-preset-pill .preset-badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 200, 0, 0.2);
  color: #B38600;
}

.donation-preset-pill:hover {
  background: #FFFDF0;
  border-color: #FFDD00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 221, 0, 0.22);
}

.donation-preset-pill.active {
  background: linear-gradient(135deg, #FFFDF0, #FFF9D6);
  border-color: #FFDD00;
  box-shadow: 0 6px 18px rgba(255, 221, 0, 0.28);
}

.donation-preset-pill.active .preset-badge {
  background: #B38600;
  color: #FFFFFF;
}

.donation-action-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-bmc-checkout {
  width: 100%;
  padding: 14px 20px;
  background: #FFDD00;
  color: #000000;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 221, 0, 0.35);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid #F0CE00;
  box-sizing: border-box;
}

.btn-bmc-checkout:hover {
  background: #FFE533;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 221, 0, 0.45);
}

.btn-bmc-checkout i {
  font-size: 1.25rem;
  color: #000000;
}

.btn-paypal-checkout {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0070BA, #003087);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 112, 186, 0.3);
  transition: var(--transition);
  cursor: pointer;
}

.donation-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.donation-secure-note i {
  color: #00B894;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #headerDonateBtn {
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }
}

@media (max-width: 480px) {
  #headerDonateBtn .donate-btn-text {
    display: none;
  }
  #headerDonateBtn {
    padding: 6px 9px;
  }
  .donation-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}






/* ==========================================================================
   BRAND REFRESH: Petique logo theme (violet / indigo / sky / gold)
   ========================================================================== */
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(46, 31, 94, 0.28));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
  transform: rotate(-5deg) scale(1.08);
}

.logo-brand {
  background: linear-gradient(90deg, #2E1F5E 0%, #6D28D9 55%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.logo-dot {
  color: #FCD34D;
  -webkit-text-fill-color: #F59E0B;
}

.logo-ext {
  -webkit-text-fill-color: #0EA5E9;
}

.main-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 4px 20px rgba(46, 31, 94, 0.05);
}

.main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8 0%, #8B5CF6 50%, #F9A8D4 100%);
  opacity: 0.85;
  pointer-events: none;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(46, 31, 94, 0.25));
}

.auth-modal-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 4px 12px rgba(46, 31, 94, 0.25));
}

@media (max-width: 768px) {
  .logo-img {
    width: 44px;
    height: 44px;
  }
}


/* ==========================================================================
   DECORATIVE DETAILS: floating icons, sparkles, shine, scrollbar
   ========================================================================== */

/* Floating background icons (paws, stars, hearts, houses) */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-decor span {
  position: absolute;
  color: #8B5CF6;
  opacity: 0.10;
  animation: decorFloat 14s ease-in-out infinite;
}

.bg-decor span:nth-child(1)  { top: 14%; left: 4%;  font-size: 2.2rem; transform: rotate(-18deg); }
.bg-decor span:nth-child(2)  { top: 62%; left: 7%;  font-size: 1.4rem; color: #F59E0B; opacity: 0.22; animation-delay: -3s; }
.bg-decor span:nth-child(3)  { top: 82%; left: 26%; font-size: 1.9rem; color: #38BDF8; animation-delay: -6s; }
.bg-decor span:nth-child(4)  { top: 22%; right: 6%; font-size: 2.4rem; transform: rotate(14deg); animation-delay: -2s; }
.bg-decor span:nth-child(5)  { top: 48%; right: 3%; font-size: 1.3rem; color: #F472B6; opacity: 0.18; animation-delay: -8s; }
.bg-decor span:nth-child(6)  { top: 76%; right: 14%; font-size: 1.6rem; color: #F59E0B; opacity: 0.22; animation-delay: -5s; }
.bg-decor span:nth-child(7)  { top: 36%; left: 18%; font-size: 1rem;  color: #F59E0B; opacity: 0.25; animation-delay: -10s; }
.bg-decor span:nth-child(8)  { top: 8%;  right: 28%; font-size: 1.1rem; color: #38BDF8; opacity: 0.18; animation-delay: -4s; }

@keyframes decorFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -22px; rotate: 8deg; }
}

/* Hero title: gradient ending + twinkling sparkles */
.hero-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #2E1F5E 0%, #2E1F5E 45%, #7C3AED 80%, #0EA5E9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 28px;
}

.hero-title::before,
.hero-title::after {
  content: "\2726";
  position: absolute;
  -webkit-text-fill-color: #FBBF24;
  color: #FBBF24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
  animation: twinkle 2.6s ease-in-out infinite;
}

.hero-title::before { left: 0;  top: -4px; font-size: 1.1rem; }
.hero-title::after  { right: 0; bottom: 2px; font-size: 0.85rem; animation-delay: -1.3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.15) rotate(20deg); }
}

/* Wavy underline under hero title */
.hero-desc::before {
  content: "";
  display: block;
  width: 120px;
  height: 10px;
  margin: 0 auto 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%2338BDF8'/%3E%3Cstop offset='.5' stop-color='%238B5CF6'/%3E%3Cstop offset='1' stop-color='%23F472B6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 5 Q 12 0 22 5 T 42 5 T 62 5 T 82 5 T 102 5 T 118 5' fill='none' stroke='url(%23g)' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

/* Hero badge shimmer */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: badgeShimmer 3.8s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}

/* Primary button shine sweep */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

/* Cards: gradient glow border + corner sparkle on hover */
.house-card,
.trade-card {
  position: relative;
}

.house-card:hover,
.trade-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.16), 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.house-card::after,
.trade-card::after {
  content: "\2726";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1rem;
  color: #FBBF24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 3;
}

.house-card:hover::after,
.trade-card:hover::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Logo gentle idle bob */
.logo-img {
  animation: logoBob 4s ease-in-out infinite;
}

@keyframes logoBob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}

/* Footer: wavy top edge with paw trail */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F0FF 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='18' viewBox='0 0 80 18'%3E%3Cpath d='M0 18 Q 20 0 40 9 T 80 9 V18 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") repeat-x bottom;
  pointer-events: none;
}

.footer-paw-trail {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
  color: #C4B5FD;
  font-size: 0.95rem;
}

.footer-paw-trail i:nth-child(odd)  { transform: rotate(-20deg) translateY(4px); }
.footer-paw-trail i:nth-child(even) { transform: rotate(15deg) translateY(-4px); }
.footer-paw-trail i:nth-child(3)    { color: #FBBF24; }
.footer-paw-trail i:nth-child(5)    { color: #7DD3FC; }

/* Click sparkle burst */
.click-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  line-height: 1;
  animation: sparkFly 0.75s ease-out forwards;
}

@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--rot)); }
}

/* Custom scrollbar & selection */
::selection {
  background: rgba(139, 92, 246, 0.25);
  color: #2E1F5E;
}

html {
  scrollbar-color: #A78BFA #F3EEFF;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #F3EEFF;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #A78BFA, #7C3AED);
  border-radius: 10px;
  border: 2px solid #F3EEFF;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8B5CF6, #6D28D9);
}

@media (max-width: 768px) {
  .bg-decor span:nth-child(n+5) { display: none; }
  .hero-title { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-decor span,
  .hero-title::before,
  .hero-title::after,
  .hero-badge::after,
  .logo-img {
    animation: none;
  }
}
