@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800&family=Inria+Sans:wght@700&family=Kaushan+Script&family=Sansita:wght@700&display=swap');

:root {
  --brand-blue: #5a7ca5;
  --brand-navy: #1f3555;
  --accent: #c9a84b;
  --toggle-inactive-bg: #f2f4f6;
  --toggle-active-border: #8ebbf7;
  --btn-secondary-bg: #f2f4f7;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.col-span-1 {
  grid-column: span 1;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

.glass-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  transition: all 0.2s;
}

.glass-input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.glass-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.glass-file {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  color: white;
}

.glass-file::file-selector-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-right: 1rem;
  transition: background-color 0.2s;
}

.glass-file::file-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.auth-shell input[type="text"],
.auth-shell input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  outline: none;
}

.auth-shell input[type="text"]:focus,
.auth-shell input[type="password"]:focus {
  box-shadow: 0 0 0 2px rgba(142, 187, 247, 0.15);
}

.auth-shell input::placeholder {
  color: rgba(31, 53, 85, 0.45);
}

.auth-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.auth-card label,
.auth-label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #5a7ca5;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 0.75rem;
  color: #1f3555;
  font-family: 'Inter', sans-serif;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  border-color: #8ebbf7;
  box-shadow: 0 0 0 3px rgba(142, 187, 247, 0.18);
}

.auth-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: #5a7ca5;
  color: #ffffff;
  border: none;
  transition: all 0.2s;
}

.auth-submit:hover {
  background: #1f3555;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(90, 124, 165, 0.3);
}

.auth-secondary {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  background: #f2f4f7;
  color: #1f3555;
  border: 1px solid rgba(31, 53, 85, 0.12);
  text-align: center;
  transition: all 0.2s;
}

.auth-secondary:hover {
  background: #ffffff;
  border-color: rgba(31, 53, 85, 0.22);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease-out forwards;
}

.register-shell input[type="text"],
.register-shell input[type="email"],
.register-shell input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 0.75rem;
  color: #1f3555;
  font-family: 'Inter', sans-serif;
}

.register-shell input[type="text"]:focus,
.register-shell input[type="email"]:focus,
.register-shell input[type="password"]:focus {
  border-color: #8ebbf7;
  box-shadow: 0 0 0 3px rgba(142, 187, 247, 0.18);
}

.edit-block-shell input[type="text"],
.edit-block-shell input[type="number"],
.edit-block-shell textarea,
.edit-block-shell input[type="url"],
.edit-block-shell input[type="email"] {
  width: 100%;
  padding: 0.6rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  transition: all 0.2s;
}

.edit-block-shell input[type="text"]:focus,
.edit-block-shell input[type="number"]:focus,
.edit-block-shell textarea:focus,
.edit-block-shell input[type="url"]:focus,
.edit-block-shell input[type="email"]:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.edit-block-shell input[type="text"]::placeholder,
.edit-block-shell textarea::placeholder,
.edit-block-shell input[type="url"]::placeholder,
.edit-block-shell input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.edit-block-shell select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.edit-block-shell input[type="file"] {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

.edit-block-shell input[type="file"]::file-selector-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-right: 1rem;
  transition: background-color 0.2s;
}

.edit-block-shell input[type="file"]::file-selector-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-home * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-home {
  min-height: 100vh;
  background: #0d0d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.page-home::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(180, 140, 60, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(30, 30, 80, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.page-home::after {
  content: 'P';
  position: fixed;
  font-family: 'Sansita', sans-serif;
  font-size: 80vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.012);
  pointer-events: none;
  line-height: 1;
}

.page-home .phone {
  width: 390px;
  min-height: 780px;
  background: #13131f;
  border-radius: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 8px #0a0a14, 0 0 0 10px rgba(255, 255, 255, 0.04), 0 60px 120px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0a0a14;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.page-home .phone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  border-radius: 0 0 2px 2px;
}

.page-home .logo-block {
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
  text-align: center;
  animation: fadeUp 0.6s 0.3s ease forwards;
  opacity: 0;
}

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

.page-home .logo-icon {
  width: 52px;
  height: 52px;
  background: rgba(142, 187, 247, 0.14);
  border: 1px solid rgba(142, 187, 247, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
}

.page-home .logo-icon svg {
  width: 26px;
  height: 26px;
}

.page-home .logo-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  gap: 0;
}

.page-home .logo-pol {
  font-family: 'Inria Sans', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.14em;
  color: #f5f0e8;
}

.page-home .logo-dot {
  font-family: 'Inria Sans', sans-serif;
  font-size: 2.4rem;
  color: var(--brand-blue);
  letter-spacing: 0;
  margin: 0 1px;
}

.page-home .logo-app {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}

.page-home .logo-sub {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  font-weight: 400;
}

.page-home .card {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(142, 187, 247, 0.45);
  border-radius: 20px;
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  animation: fadeUp 0.6s 0.5s ease forwards;
  opacity: 0;
}

.page-home .card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 2.5rem;
  height: 2px;
  background: var(--toggle-active-border);
  border-radius: 2px;
}

.page-home .card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-align: center;
  margin-bottom: 0.4rem;
}

.page-home .home-title-prefix {
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
}

.page-home .home-title-perfil {
  font-family: 'Kaushan Script', cursive;
  color: var(--brand-navy);
  font-weight: 400;
}

.page-home .card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--brand-navy);
  text-align: center;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-home .message {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.78rem;
  line-height: 1.35;
}

.page-home .message.error {
  border-color: rgba(255, 86, 86, 0.35);
  background: rgba(255, 86, 86, 0.08);
}

.page-home .message.success {
  border-color: rgba(46, 213, 115, 0.35);
  background: rgba(46, 213, 115, 0.08);
}

.page-home .card .message {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(31, 53, 85, 0.12);
  color: var(--brand-navy);
}

.page-home .card .message.error {
  color: #7a1f1f;
}

.page-home .card .message.success {
  color: #1f5a2f;
}

.page-home .toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  padding: 0;
}

.page-home .toggle-btn {
  border: none;
  background: var(--toggle-inactive-bg);
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.page-home .toggle-btn.active {
  background: #ffffff;
  border: 2px solid var(--toggle-active-border);
}

.page-home .input-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.page-home .input-url {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(142, 187, 247, 0.65);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.page-home .input-url:focus-within {
  border-color: rgba(142, 187, 247, 1);
  box-shadow: 0 0 0 3px rgba(142, 187, 247, 0.14);
}

.page-home .input-prefix {
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: var(--brand-navy);
  font-weight: 800;
  border-right: 1px solid rgba(31, 53, 85, 0.08);
  white-space: nowrap;
  background: var(--btn-secondary-bg);
  letter-spacing: 0.02em;
}

.page-home .input-url input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--brand-navy);
}

.page-home .input-url input::placeholder {
  color: rgba(31, 53, 85, 0.45);
}

.page-home .btn-main {
  width: 100%;
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.page-home .btn-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.4s;
}

.page-home .btn-main:hover {
  background: var(--brand-navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(90, 124, 165, 0.3);
}

.page-home .btn-main:hover::before {
  left: 140%;
}

.page-home .divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.page-home .divider::before,
.page-home .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(90, 124, 165, 0.25);
}

.page-home .divider span {
  font-size: 0.65rem;
  color: var(--brand-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home .btn-login {
  width: 100%;
  background: var(--btn-secondary-bg);
  color: var(--brand-navy);
  border: 1px solid rgba(31, 53, 85, 0.12);
  border-radius: 10px;
  padding: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.page-home .btn-login:hover {
  border-color: rgba(31, 53, 85, 0.22);
  background: #ffffff;
}

.page-home .btn-directory {
  width: 100%;
  background: rgba(201, 168, 76, 0.08);
  color: rgba(245, 240, 232, 0.85);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-home .btn-directory:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-1px);
}

.page-home .footer-note {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(245, 240, 232, 0.2);
  line-height: 1.6;
  margin-top: 1.5rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.7s ease forwards;
  opacity: 0;
}

.page-home .footer-note strong {
  color: rgba(201, 168, 76, 0.5);
  font-weight: 500;
}

.page-home .stats-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  animation: fadeUp 0.6s 0.9s ease forwards;
  opacity: 0;
}

.page-home .stat {
  text-align: center;
}

.page-home .stat-num {
  font-family: 'Sansita', sans-serif;
  font-size: 1.3rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1;
}

.page-home .stat-lbl {
  font-size: 0.58rem;
  color: rgba(245, 240, 232, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.page-home .stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  align-self: center;
}

@media (max-width: 420px) {
  .page-home .phone {
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: 100vh;
  }
  .page-home::after {
    display: none;
  }
  .page-home {
    padding: 0;
  }
}

.page-directory * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-directory {
  min-height: 100vh;
  background: #0d0d1a;
  font-family: 'Inter', sans-serif;
  padding: 1.2rem 1rem;
  position: relative;
  overflow-x: hidden;
  color: rgba(245, 240, 232, 0.9);
}

.public-profile-shell {
  font-family: 'Inter', sans-serif;
}

.public-profile-shell .profile-main-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1rem;
}

.public-profile-shell .profile-username {
  font-family: 'Sansita', sans-serif;
  font-weight: 700;
}

.public-profile-shell .profile-subtitle {
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
}

.public-profile-shell .profile-followers {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #ffffff;
}

.public-profile-shell .block-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.public-profile-shell .block-card:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--brand-blue);
}

.public-profile-shell .block-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}

.public-profile-shell .accent-top .block-card {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.public-profile-shell .share-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}

.dashboard-shell {
  font-family: 'Inter', sans-serif;
}

.dashboard-shell .profile-username {
  font-family: 'Sansita', sans-serif;
  font-weight: 700;
}

.dashboard-shell .profile-subtitle {
  font-family: 'Inria Sans', sans-serif;
  font-weight: 700;
}

.dashboard-shell .profile-followers {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #ffffff;
}

.dashboard-shell .accent-top .tile-accent {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.page-directory::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(180, 140, 60, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(30, 30, 80, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.page-directory .shell {
  max-width: 1200px;
  margin: 0 auto;
}

.page-directory .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.page-directory .brand {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  text-decoration: none;
  color: rgba(245, 240, 232, 0.95);
}

.page-directory .brand .pol {
  font-family: 'Inria Sans', sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.5rem;
}

.page-directory .brand .dot {
  font-family: 'Inria Sans', sans-serif;
  color: var(--brand-blue);
  font-size: 1.5rem;
  margin: 0 0.1rem;
}

.page-directory .brand .app {
  font-family: 'Kaushan Script', cursive;
  color: var(--brand-blue);
  font-weight: 400;
  font-size: 0.95rem;
  padding-bottom: 2px;
}

.page-directory .top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-directory .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.page-directory .chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-directory .panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.page-directory .panel-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.page-directory .title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-directory .title h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.96);
}

.page-directory .title p {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.45);
}

.page-directory .view-toggle {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  min-width: 220px;
}

.page-directory .view-toggle button {
  border: none;
  background: transparent;
  color: rgba(245, 240, 232, 0.6);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.page-directory .view-toggle button.active {
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: #c9a84c;
}

.page-directory .filters {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-directory .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 820px) {
  .page-directory .filters {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
  .page-directory .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.page-directory .field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.page-directory .field input,
.page-directory .field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(245, 240, 232, 0.9);
  outline: none;
  transition: all 0.2s;
}

.page-directory .field input:focus,
.page-directory .field select:focus {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.page-directory .content {
  padding: 1rem;
}

.page-directory .list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

@media (min-width: 820px) {
  .page-directory .list {
    grid-template-columns: 1fr 1fr;
  }
}

.page-directory .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s;
}

.page-directory .card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.page-directory .avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.22);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

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

.page-directory .who {
  flex: 1 1 auto;
  min-width: 0;
}

.page-directory .who .name {
  font-weight: 800;
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-directory .who .role {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-directory .who .loc {
  font-size: 0.74rem;
  color: rgba(245, 240, 232, 0.45);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-directory .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  transition: all 0.2s;
  flex: 0 0 auto;
}

.page-directory .cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-directory .map-wrap {
  width: 100%;
  height: min(70vh, 680px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.page-directory #map {
  width: 100%;
  height: 100%;
}

.page-directory .empty {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.85rem;
  text-align: center;
}
