/* SportLink marketing site — brand: #0B2545, #0D47A1, #FF6F00 */
:root {
  --bg-deep: #0b2545;
  --bg-mid: #0d47a1;
  --accent: #ff6f00;
  --accent-hover: #ff8533;
  --text: #f5f8fc;
  --text-muted: rgba(245, 248, 252, 0.72);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --font-ar: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-en);
  color: var(--text);
  background: linear-gradient(165deg, var(--bg-deep) 0%, #061a33 45%, var(--bg-mid) 100%);
  line-height: 1.65;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 37, 69, 0.88);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: nowrap;
}

.header-inner .nav-main {
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-mid), var(--accent));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.site-user-menu-mount {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}

.site-user-trigger--menu {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 111, 0, 0.55);
  background: rgba(255, 111, 0, 0.12);
}

.site-user-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 16px;
}

.site-user-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

.site-user-menu {
  position: relative;
}

.site-user-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-user-trigger:hover,
.site-user-menu.is-open .site-user-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.25);
}

.site-user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.site-user-avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--bg-mid), var(--accent));
}

.site-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 220px;
  background: #0f2a4a;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0;
  z-index: 300;
}

.site-user-menu.is-open .site-user-dropdown {
  display: block !important;
}

.site-user-dropdown-head {
  padding: 0.75rem 1rem 0.65rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0.25rem;
}

.site-user-dropdown-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.site-user-dropdown-head span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  word-break: break-all;
}

.site-user-dropdown a,
.site-user-dropdown .site-signout-btn {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-user-dropdown a:hover,
.site-user-dropdown .site-signout-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}

.site-user-dropdown .site-signout-btn {
  color: #ff8a80;
  border-top: 1px solid var(--card-border);
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.site-user-dropdown-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.site-user-avatar--guest {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.site-user-dropdown--panel {
  min-width: 260px;
}

.site-menu-lang {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  margin: 0.25rem 0;
}

.site-menu-lang-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.site-menu-lang-btns {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-menu-lang-btns button {
  width: 100%;
  text-align: start;
  padding: 0.45rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.site-menu-lang-btns button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.site-menu-lang-btns button.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 111, 0, 0.18);
}

.hero-welcome {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #ffc48a;
  font-weight: 600;
}

.hero-search-wrap {
  margin-bottom: 1.5rem;
}

.hero-search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 720px;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
}

.hero-search-bar .hero-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.hero-search-bar .hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-bar .hero-search-btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding-inline: 1.35rem;
}

@media (max-width: 600px) {
  .hero-search-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .hero-search-bar .hero-search-btn {
    width: 100%;
  }

  .nav-full-app-btn {
    display: none;
  }
}

/* Homepage — mobile app download (only place linking to /app/ for web browse) */
.app-download-section .section-title {
  margin-bottom: 0.35rem;
}

.app-download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--card-bg, rgba(15, 42, 74, 0.65));
  border: 1px solid var(--card-border);
  border-radius: 18px;
}

.app-download-icon {
  border-radius: 18px;
  flex-shrink: 0;
}

.app-download-body {
  flex: 1;
  min-width: min(100%, 260px);
}

.app-download-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.15);
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.app-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.app-store-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 160px;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.app-store-btn--soon {
  opacity: 0.72;
  cursor: not-allowed;
}

.app-store-btn__label {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.app-store-btn__hint {
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.app-web-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 111, 0, 0.45);
  background: rgba(255, 111, 0, 0.12);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.app-web-btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: rgba(255, 111, 0, 0.2);
}

.app-web-btn img {
  border-radius: 10px;
  flex-shrink: 0;
}

.app-web-btn strong {
  display: block;
  font-size: 0.95rem;
}

.app-web-btn small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--bg-mid);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 111, 0, 0.15);
  color: #ffc48a;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-visual ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-visual li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-visual li:last-child {
  border-bottom: 0;
}

.hero-visual .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-mid), #1565c0);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(0, 0, 0, 0.12);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-block {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .about-block {
    grid-template-columns: 1fr 1fr;
  }
}

.about-block p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.25rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.blog-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.blog-card h2 a {
  color: var(--text);
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Legal / article prose */
.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.legal-content,
.article-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 3rem;
}

.legal-content h2,
.article-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: #fff;
}

.legal-content h2:first-child,
.article-body h2:first-child {
  margin-top: 0;
}

.legal-content h3,
.article-body h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: #e3eef9;
}

.legal-content p,
.article-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.legal-content ul,
.article-body ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

.contact-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* Language blocks */
.content-lang-en,
.content-lang-ar {
  display: none;
}

html[lang="en"] .content-lang-en,
html[lang="ar"] .content-lang-ar {
  display: block;
}

html[lang="en"] .content-lang-en.inline,
html[lang="ar"] .content-lang-ar.inline {
  display: inline;
}

/* fr / es / tr: show English blocks until page uses data-sl-i18n */
html[lang="fr"] .content-lang-en,
html[lang="es"] .content-lang-en,
html[lang="tr"] .content-lang-en {
  display: block;
}

html[lang="fr"] .content-lang-en.inline,
html[lang="es"] .content-lang-en.inline,
html[lang="tr"] .content-lang-en.inline {
  display: inline;
}

.lang-picker {
  display: inline-flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.lang-picker button {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-picker button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.platform-error {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 100, 100, 0.4);
  background: rgba(80, 0, 0, 0.25);
}

.platform-error pre {
  font-size: 0.8rem;
  overflow: auto;
  white-space: pre-wrap;
}

.platform-skeleton {
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Mobile: horizontal scroll for main nav; account menu (☰) is the only menu button */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner .nav-main {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .header-inner .nav-main a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header-actions {
    margin-inline-start: auto;
  }
}

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

/* Explore / directory */
.explore-page .explore-hero {
  padding-top: 2.5rem;
}

.explore-page .section-sub {
  max-width: 42rem;
}

.explore-panel {
  margin: 1.75rem 0 1rem;
  width: 100%;
  max-width: 100%;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(13, 71, 161, 0.18) 100%
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.explore-search-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: end;
  width: 100%;
  margin-bottom: 1.15rem;
}

.explore-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.explore-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.explore-field-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c5daf5;
  line-height: 1.3;
}

.explore-field-label--hidden {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.explore-control {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 22, 42, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
  box-sizing: border-box;
  appearance: none;
}

.explore-control:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: rgba(255, 111, 0, 0.55);
  background: rgba(8, 22, 42, 0.85);
}

.explore-btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  min-width: 7.5rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.explore-btn-search:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.explore-search--compact.explore-search-row {
  max-width: 560px;
  margin-inline: auto;
}

.explore-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
}

.explore-search-row .filter-field--grow {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.btn-search-submit {
  min-height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .explore-search-grid {
    grid-template-columns: 1fr;
  }

  .explore-filters-grid {
    grid-template-columns: 1fr;
  }

  .explore-btn-search,
  .btn-search-submit {
    width: 100%;
    min-width: 0;
  }

  .explore-field-label--hidden {
    display: none;
  }
}

.filter-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.explore-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.explore-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.explore-status.is-error {
  color: #ffb4a2;
}

.explore-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 0 0 1rem;
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.explore-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  grid-column: 1 / -1;
}

.explore-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.explore-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
}

.explore-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-inline-end: 0.4rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: sl-spin 0.7s linear infinite;
}

@keyframes sl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton loaders */
.skeleton-card {
  pointer-events: none;
}

.skeleton-card-inner {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.skeleton-media {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: sl-shimmer 1.2s ease-in-out infinite;
}

.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.skeleton-line {
  height: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: sl-shimmer 1.2s ease-in-out infinite;
}

.skeleton-line--lg {
  height: 1rem;
  width: 75%;
}

.skeleton-line--short {
  width: 45%;
}

.skeleton-line--hero {
  height: 140px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.profile-skeleton {
  padding: 2rem 0 3rem;
}

@keyframes sl-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

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

.directory-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.directory-card:hover {
  border-color: rgba(255, 111, 0, 0.45);
  transform: translateY(-2px);
}

.directory-card-link {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.directory-card-link:hover {
  text-decoration: none;
}

.directory-card-media {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-mid), #1565c0);
  display: grid;
  place-items: center;
}

.directory-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.directory-card-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.directory-card-role {
  margin: 0;
  font-size: 0.85rem;
  color: #9ec9ff;
  font-weight: 600;
}

.directory-card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.directory-card-bio {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.badge-pending {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #b8c9e0;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

/* SEO sitelinks grid (homepage — helps Google show sub-links) */
.site-sitelinks .sitelinks-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  margin-top: 1.25rem;
}

.sitelink-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.sitelink-card:hover {
  border-color: rgba(255, 111, 0, 0.45);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.sitelink-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.sitelink-card span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.landing-page {
  max-width: 42rem;
}

.landing-page .role-list {
  margin: 1rem 0 1.5rem;
  padding-inline-start: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Traditional platform pages (Firestore-backed HTML) */
.platform-page {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.platform-status {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1rem;
  min-height: 1.25rem;
}

.platform-status:empty {
  display: none;
}

.platform-status.is-error {
  color: #ffcdd2;
}

.platform-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
}

.platform-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  margin-top: 1.25rem;
}

.nav-main a.active {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.feed-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.post-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.post-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.post-card-avatar,
.post-card-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.post-card-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mid);
  font-weight: 700;
}

.post-card-text a {
  color: inherit;
  text-decoration: none;
}

.post-card-text a:hover {
  text-decoration: underline;
}

.post-detail-page .post-detail-back {
  margin: 0 0 1rem;
}

.post-detail-page .post-detail-back a {
  color: var(--text-muted);
}

.post-detail-text {
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 1rem 0;
}

.post-detail-media {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0.5rem 0 1rem;
}

.post-detail-app-cta {
  margin-top: 1.25rem;
}

.post-card-text {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
}

.post-card-media {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  max-height: 360px;
  object-fit: cover;
}

.post-card-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.listing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.listing-card {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
}

.listing-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.listing-card h2 {
  font-size: 1rem;
  margin: 0.65rem 1rem 0.25rem;
}

.listing-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.listing-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mid);
  font-weight: 800;
  color: var(--accent);
}

.listing-price,
.listing-meta,
.listing-cta {
  margin: 0 1rem 0.5rem;
  font-size: 0.9rem;
}

.listing-cta {
  color: var(--accent);
  padding-bottom: 0.75rem;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.job-row h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.job-meta,
.job-date {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 400px;
  margin-top: 1rem;
}

.badge-verified-lg {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 111, 0, 0.2);
  color: #ffc48a;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

/* Profile page */
.profile-page-main {
  min-height: 50vh;
}

.profile-hero {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-mid));
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 2.5rem 0;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0.55), rgba(11, 37, 69, 0.92));
}

.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.profile-avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--bg-mid), var(--accent));
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-hero-text h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.profile-role {
  margin: 0;
  color: #9ec9ff;
  font-weight: 600;
}

.profile-location {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.profile-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.profile-content {
  padding: 2rem 0 3rem;
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-section h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.profile-section h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.profile-section p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 71, 161, 0.45);
  border: 1px solid var(--card-border);
  font-size: 0.88rem;
}

.ach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ach-list li {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  font-size: 0.75rem;
  padding: 0.4rem 0.5rem;
  color: var(--text-muted);
}

.profile-error {
  padding: 3rem 0;
  text-align: center;
}

.profile-error h1 {
  margin-bottom: 0.5rem;
}
