/* ==========================================================================
   CONEXÃO ORKESTRA - APPLE UX DESIGN SYSTEM (LIGHT MODE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=SF+Pro+Display:wght@500;600;700&display=swap');

:root {
  /* Canvas & Base Surface Colors - Apple Pure White Light Theme */
  --apple-bg: #ffffff;
  --apple-canvas: #f5f5f7;
  --apple-surface: #ffffff;
  --apple-surface-elevated: #ffffff;
  --apple-surface-secondary: #f8f6f0;
  --apple-surface-tertiary: #eae5d8;

  /* Typography Colors */
  --apple-text-primary: #1d1d1f;
  --apple-text-secondary: #6e6e73;
  --apple-text-tertiary: #86868b;
  --apple-text-on-accent: #ffffff;

  /* Accent & Tint Palette - Refined Exquisite Gold Palette */
  --apple-gold: #c5a059;
  --apple-gold-hover: #b38d43;
  --apple-gold-tint: rgba(197, 160, 89, 0.1);
  --apple-gold-glow: rgba(197, 160, 89, 0.28);
  --apple-gold-gradient: linear-gradient(135deg, #d4af37 0%, #a67c1e 100%);
  
  /* Alias --apple-blue to --apple-gold so all controls inherit gold */
  --apple-blue: #c5a059;
  --apple-blue-hover: #b38d43;
  --apple-blue-tint: rgba(197, 160, 89, 0.1);
  --apple-blue-glow: rgba(197, 160, 89, 0.28);
  
  --apple-green: #2e8b57;
  --apple-green-tint: rgba(46, 139, 87, 0.1);
  --apple-indigo: #8c7b50;
  --apple-purple: #966f33;
  --apple-orange: #d99b26;
  --apple-teal: #b89742;

  /* Borders & Dividers */
  --apple-border: rgba(197, 160, 89, 0.15);
  --apple-border-strong: rgba(197, 160, 89, 0.32);
  --apple-border-focus: #c5a059;

  /* Glassmorphism & Translucency */
  --apple-glass-bg: rgba(255, 255, 255, 0.88);
  --apple-glass-border: rgba(197, 160, 89, 0.2);
  --apple-glass-blur: blur(20px) saturate(180%);

  /* Shadows & Depth */
  --apple-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --apple-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  --apple-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --apple-shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.2);

  /* Geometry & Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Easing Functions */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  background-color: var(--apple-canvas);
  color: var(--apple-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--apple-canvas);
  color: var(--apple-text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--apple-blue);
  text-decoration: none;
  transition: opacity 0.2s var(--ease-apple);
}

a:hover {
  opacity: 0.85;
}

/* Typography Utilities */
.font-display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.025em;
}

/* ==========================================================================
   NAVBAR & HEADER (FROSTED GLASS)
   ========================================================================== */

.apple-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--apple-glass-bg);
  backdrop-filter: var(--apple-glass-blur);
  -webkit-backdrop-filter: var(--apple-glass-blur);
  border-bottom: 1px solid var(--apple-border);
  transition: all 0.3s var(--ease-apple);
}

.apple-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--apple-gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

.brand-logo-img {
  max-height: 40px;
  max-width: 180px;
  object-fit: contain;
}

.brand-text-block h1 {
  font-size: 19px;
  font-weight: 700;
  color: var(--apple-text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text-block span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--apple-text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Apple Primary Button */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease-apple);
  white-space: nowrap;
  font-family: inherit;
}

.btn-apple-primary {
  background: var(--apple-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.btn-apple-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-apple-secondary {
  background: var(--apple-surface-secondary);
  color: var(--apple-text-primary);
  border: 1px solid var(--apple-border);
}

.btn-apple-secondary:hover {
  background: var(--apple-surface-tertiary);
  border-color: var(--apple-border-strong);
  color: var(--apple-text-primary);
}

/* ==========================================================================
   HERO BANNER (APPLE LIGHT)
   ========================================================================== */

.hero-section {
  padding: 48px 24px 32px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--apple-blue-tint);
  border: 1px solid rgba(0, 113, 227, 0.15);
  color: var(--apple-blue);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s var(--ease-apple);
}

.badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--apple-blue);
  box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--apple-text-primary);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--apple-text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
  font-weight: 400;
}

/* Stats Ribbon */
.stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px 28px;
  background: var(--apple-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--apple-border);
  box-shadow: var(--apple-shadow-sm);
  max-width: 680px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--apple-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--apple-border);
}

/* ==========================================================================
   SEARCH & FILTER TOOLBAR (APPLE STYLING)
   ========================================================================== */

.toolbar-sticky {
  position: sticky;
  top: 67px;
  z-index: 90;
  background: rgba(245, 245, 247, 0.88);
  backdrop-filter: var(--apple-glass-blur);
  -webkit-backdrop-filter: var(--apple-glass-blur);
  padding: 16px 0;
  border-bottom: 1px solid var(--apple-border);
  transition: all 0.3s var(--ease-apple);
}

.toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper svg.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--apple-text-tertiary);
  pointer-events: none;
  transition: color 0.2s var(--ease-apple);
}

.search-input-wrapper svg.clear-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--apple-text-tertiary);
  cursor: pointer;
  display: none;
  border-radius: 50%;
  padding: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-input-wrapper svg.clear-icon:hover {
  background: var(--apple-surface-tertiary);
  color: var(--apple-text-primary);
}

.apple-search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  font-size: 15px;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-border);
  background: var(--apple-surface);
  color: var(--apple-text-primary);
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s var(--ease-apple);
}

.apple-search-input::placeholder {
  color: var(--apple-text-tertiary);
}

.apple-search-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px var(--apple-blue-tint), var(--apple-shadow-sm);
  background: #ffffff;
}

/* Category Chips Wrapper with Scroll Arrows & Expand Toggle */
.chips-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  border-radius: var(--radius-pill);
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.chips-scroll.expanded {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 8px;
}

.chip-scroll-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  color: var(--apple-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s var(--ease-apple);
  opacity: 0.9;
}

.chip-scroll-arrow:hover {
  background: var(--apple-blue);
  color: #ffffff;
  border-color: var(--apple-blue);
  transform: scale(1.06);
}

.btn-expand-chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--apple-border);
  background: var(--apple-surface);
  color: var(--apple-blue);
  cursor: pointer;
  flex: none;
  transition: all 0.2s var(--ease-apple);
  font-family: inherit;
  white-space: nowrap;
}

.btn-expand-chips:hover {
  background: var(--apple-blue-tint);
  border-color: rgba(0, 113, 227, 0.3);
}

.btn-expand-chips svg {
  transition: transform 0.25s var(--ease-apple);
}

.btn-expand-chips.active svg {
  transform: rotate(180deg);
}

.chip-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--apple-border);
  background: var(--apple-surface);
  color: var(--apple-text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
  user-select: none;
  font-family: inherit;
  white-space: nowrap;
}

.chip-btn:hover {
  background: var(--apple-surface-secondary);
  color: var(--apple-text-primary);
  border-color: var(--apple-border-strong);
}

.chip-btn.active {
  background: var(--apple-text-primary);
  color: #ffffff;
  border-color: var(--apple-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.chip-btn .chip-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.chip-btn.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   MEMBERS GRID & CARDS
   ========================================================================== */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Squircle Apple Card */
.member-card {
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--apple-shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.3s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: var(--apple-shadow-lg);
}

.member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-accent, var(--apple-blue));
  opacity: 0.85;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar-wrapper {
  position: relative;
  flex: none;
}

.avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.avatar-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-surface-secondary) 0%, var(--apple-surface-tertiary) 100%);
  color: var(--apple-blue);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  letter-spacing: -0.02em;
}

.member-info-header {
  min-width: 0;
  flex: 1;
}

.member-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--apple-text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-company {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role {
  font-size: 12px;
  color: var(--apple-text-tertiary);
  margin-top: 1px;
}

.member-business-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--apple-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Tags Preview */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-badge {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--apple-surface-secondary);
  color: var(--apple-text-secondary);
  white-space: nowrap;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--apple-border);
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-text-secondary);
  background: var(--apple-surface-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.category-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-accent, var(--apple-blue));
}

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

.icon-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--apple-surface-secondary);
  color: var(--apple-text-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
  text-decoration: none;
}

.icon-action-btn:hover {
  background: var(--apple-blue);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.icon-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Empty State */
.empty-state {
  display: none;
  text-align: center;
  padding: 70px 20px;
  background: var(--apple-surface);
  border-radius: var(--radius-xl);
  border: 1px border var(--apple-border);
  box-shadow: var(--apple-shadow-sm);
}

.empty-state.show {
  display: block;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--apple-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--apple-text-tertiary);
}

.empty-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--apple-text-primary);
  margin-bottom: 6px;
}

.empty-subtitle {
  font-size: 14px;
  color: var(--apple-text-secondary);
}

/* ==========================================================================
   MODAL SHEET SYSTEM (APPLE MODAL DIALOG)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-apple), visibility 0.35s var(--ease-apple);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.apple-modal-sheet {
  background: var(--apple-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--apple-shadow-modal);
  border: 1px solid var(--apple-glass-border);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s var(--ease-apple);
  overflow: hidden;
}

.modal-backdrop.active .apple-modal-sheet {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--apple-border);
  background: var(--apple-surface);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.015em;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--apple-surface-secondary);
  border: none;
  color: var(--apple-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.btn-close-modal:hover {
  background: var(--apple-surface-tertiary);
  color: var(--apple-text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Detail Layout */
.profile-modal-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--apple-border);
}

.profile-large-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
}

.profile-large-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-blue-tint) 0%, var(--apple-surface-secondary) 100%);
  color: var(--apple-blue);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 3px solid #ffffff;
}

.profile-meta h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--apple-text-primary);
  letter-spacing: -0.02em;
}

.profile-meta .company-role {
  font-size: 14.5px;
  color: var(--apple-text-secondary);
  margin-top: 2px;
}

.profile-meta .location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--apple-text-tertiary);
  margin-top: 6px;
}

/* Segmented Control Tabs (Apple Style) */
.segmented-tabs {
  display: flex;
  background: var(--apple-surface-secondary);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--apple-text-secondary);
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
  font-family: inherit;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--apple-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tab-content-panel {
  display: none;
}

.tab-content-panel.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Detail Section Boxes */
.detail-box {
  background: var(--apple-canvas);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-border);
}

.detail-box h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--apple-text-tertiary);
  margin-bottom: 8px;
}

.detail-box p {
  font-size: 14.5px;
  color: var(--apple-text-primary);
  line-height: 1.6;
}

/* Contact Grid Actions */
.contact-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.contact-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-apple);
  border: 1px solid transparent;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-phone {
  background: var(--apple-blue-tint);
  color: var(--apple-blue);
  border-color: rgba(0, 113, 227, 0.2);
}

.btn-phone:hover {
  background: rgba(0, 113, 227, 0.15);
}

.btn-email {
  background: var(--apple-surface-secondary);
  color: var(--apple-text-primary);
  border-color: var(--apple-border);
}

.btn-email:hover {
  background: var(--apple-surface-tertiary);
}

/* ==========================================================================
   FORM CONTROLS & EDIT PROFILE FORM
   ========================================================================== */

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

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--apple-text-primary);
  margin-bottom: 6px;
}

.apple-input, .apple-select, .apple-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-border);
  background: var(--apple-surface);
  color: var(--apple-text-primary);
  outline: none;
  transition: border-color 0.2s var(--ease-apple), box-shadow 0.2s var(--ease-apple);
}

.apple-input:focus, .apple-select:focus, .apple-textarea:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px var(--apple-blue-tint);
}

.apple-textarea {
  resize: vertical;
  min-height: 80px;
}

.avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--apple-canvas);
  border-radius: var(--radius-md);
  border: 1px dashed var(--apple-border-strong);
}

/* Toast Notifications */
.apple-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  padding: 12px 20px;
  background: rgba(29, 29, 31, 0.92);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: var(--apple-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--ease-apple), opacity 0.4s var(--ease-apple);
}

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

/* Mobile Drag Handle Indicator */
.mobile-sheet-handle {
  display: none;
  width: 36px;
  height: 5px;
  background: var(--apple-border-strong);
  border-radius: var(--radius-pill);
  margin: 10px auto 4px;
}

/* Responsive Adjustments (Mobile Optimization) */
@media (max-width: 768px) {
  .apple-nav-container {
    padding: 12px 16px;
  }

  .brand-text-block h1 {
    font-size: 16px;
  }

  .brand-text-block span {
    font-size: 10px;
  }

  .btn-apple {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-section {
    padding: 28px 16px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .stats-ribbon {
    gap: 12px;
    padding: 12px 16px;
    justify-content: space-around;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10.5px;
  }

  .toolbar-sticky {
    top: 60px;
    padding: 12px 0;
  }

  .toolbar-inner {
    padding: 0 16px;
  }

  .chip-scroll-arrow {
    display: flex;
  }

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

  .main-content {
    padding: 24px 16px 60px;
  }

  /* iOS Mobile Bottom Sheet Style for Modals */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .apple-modal-sheet {
    max-height: 88vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translateY(100%);
  }

  .modal-backdrop.active .apple-modal-sheet {
    transform: translateY(0);
  }

  .mobile-sheet-handle {
    display: block;
  }

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

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

  .contact-buttons-grid {
    grid-template-columns: 1fr;
  }

  .apple-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }
}

/* ==========================================================================
   FOOTER STYLES (WITH REP ÁGIL LINK)
   ========================================================================== */

.apple-footer {
  border-top: 1px solid var(--apple-border);
  background: var(--apple-surface);
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 13.5px;
  color: var(--apple-text-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-dev {
  font-weight: 500;
}

.footer-link {
  color: var(--apple-gold);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-link:hover {
  color: var(--apple-gold-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }
}

