/*
Theme Name: ProTransfer Custom
Theme URI: https://protransfer.me
Author: ProTransfer Team
Description: Custom WordPress theme built from the ProTransfer HTML/CSS/JS design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: protransfer-custom
*/

:root {
  --bg: #07111f;
  --panel: #101c2f;
  --panel-2: #15253d;
  --text: #f5f7fb;
  --muted: #9aa8be;
  --accent: #2d8cff;
  --accent-2: #28c76f;
  --border: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), url("assets/images/pozadina.png") no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.5;
}
body.home {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("assets/images/pozadina.png") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  text-align: center;
  min-height: 100vh;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(20, 39, 68, 0.10);
  backdrop-filter: blur(12px);
}
.top-bar #languageSelect {
  width: 220px;
  max-width: 46vw;
  color: #000;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid #000;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  appearance: none;
  transition: transform 0.18s ease;
}
.top-bar .social-icons {
  margin-left: auto;
}
.language-select {
  background: rgba(255, 255, 255, 0.96);
  color: #000;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #000;
}
.language-select option {
  color: #000;
}
.social-icons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.social-icons a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 2px #000;
  flex-shrink: 0;
}
.social-icons a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #000;
}
.social-icons .linkedin-link {
  background: #0a66c2;
  border: 2px solid #0a66c2;
  box-shadow: 0 0 0 2px #000;
}
.social-icons .linkedin-link:hover {
  background: #004182;
  border-color: #004182;
  box-shadow: 0 0 0 2px #000;
}
.social-icons img,
.social-icons svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.social-icons svg {
  width: 60%;
  height: 60%;
  object-fit: contain;
}
body.home header {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 28px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(20, 39, 68, 0.12);
  backdrop-filter: blur(12px);
}
.logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
}
.logo img {
  height: 62px;
  width: auto;
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  text-shadow: none;
  display: inline-block;
  transition: transform 0.18s ease;
}
.home-menu a:hover,
.home-menu a:focus-visible,
.top-bar #languageSelect:hover,
.top-bar #languageSelect:focus {
  color: #000;
}
.top-bar #languageSelect:hover,
.top-bar #languageSelect:focus {
  transform: scale(1.06);
}
.home-menu a:hover,
.home-menu a:focus-visible {
  background: #2f5f9b;
  border-color: #2f5f9b;
  color: #fff;
  transform: scale(1.06);
}
.home-menu a {
  margin: 0 15px;
  text-decoration: none;
  color: #2f5f9b;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid #2f5f9b;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
}
.main-content {
  margin-top: 100px;
}
.home-compact {
  padding: 44px 0 80px;
}
.home-picker {
  max-width: 860px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
body.home .home-picker .main-content {
  margin-top: 0;
}
.main-content h1 {
  font-size: 36px;
  margin-bottom: 30px;
}
.buttons {
  margin: 20px 0;
}
.buttons button {
  margin: 0 10px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.buttons button:hover,
.buttons button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}
.buttons button.active {
  background: linear-gradient(135deg, #2d8cff, #28c76f);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(45, 140, 255, 0.28);
}
.search-box {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
body.home #homeSearchForm {
  display: flex !important;
}
.search-box select,
.search-box button {
  padding: 10px;
  margin: 0;
  font-size: 16px;
  border-radius: 5px;
  border: none;
}
.search-box button {
  background: #28a745;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
body.home .search-box select,
body.home .search-box button {
  min-width: 170px;
  width: auto;
}
body.home .search-box button {
  min-width: 0;
  padding-inline: 18px;
}
body.auth-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)), url("assets/images/pozadina.png") no-repeat center center fixed;
  background-size: cover;
}
body.auth-page.page-id-29,
body.page-template-page-offers-php {
  background: linear-gradient(rgba(247, 249, 252, 0.82), rgba(238, 244, 255, 0.82)), url('/wp-content/themes/protransfer-custom/assets/offers-bg.png') no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #f7f9fc !important;
}
body.auth-page::before {
  display: none;
}
body.auth-page::after {
  display: none;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header { padding: 20px 0; position: sticky; top: 0; backdrop-filter: blur(16px); background: rgba(255, 255, 255, 0.88); z-index: 10; border-bottom: 1px solid rgba(20, 39, 68, 0.12); }
body:not(.home) header {
  position: static;
  top: auto;
}
body.auth-page header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(20, 39, 68, 0.12);
}
.nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #000; }
.brand img { height: 44px; width: auto; display: block; mix-blend-mode: multiply; filter: saturate(1.06) contrast(1.06); }
.brand-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.theme-menu,
.home-menu,
.topbar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.theme-menu li,
.home-menu li,
.topbar-menu li {
  margin: 0;
}
.theme-menu a {
  display: inline-block;
  border: 2px solid #2f5f9b;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
  background: transparent;
  color: #2f5f9b;
}
.theme-menu a:hover,
.theme-menu a:focus-visible {
  background: #2f5f9b;
  color: #fff;
  border-color: #2f5f9b;
  transform: scale(1.06);
}
.topbar-menu a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid #2f5f9b;
  background: transparent;
  color: #2f5f9b;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.topbar-menu a:hover,
.topbar-menu a:focus-visible {
  background: #2f5f9b;
  color: #fff;
  border-color: #2f5f9b;
  transform: scale(1.06);
}
#languageSelect {
  background: rgba(255, 255, 255, 0.42);
  color: #000;
  border: 1px solid #000;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
#languageSelect option {
  background: #fff;
  color: #000;
}
select, input, button { font: inherit; }
.btn, .pill {
  display: inline-block; border: 1px solid var(--border); padding: 10px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.btn:hover, .pill:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #4fa5ff); color: white; border-color: transparent; }
.btn-secondary { background: rgba(255,255,255,0.06); color: white; }
.hero { padding: 60px 0 35px; display: grid; gap: 24px; align-items: center; grid-template-columns: 1.1fr 0.9fr; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; }
.hero p, .section-copy { color: var(--muted); font-size: 1.02rem; }
.panel { background: rgba(16,28,47,0.95); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.18); }
body.auth-page .panel {
  background: rgba(10, 18, 32, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.14);
}
.panel-body { padding: 24px; }
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; }
select, input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: #0d1727; color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--border); padding: 9px 12px; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,0.04); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.section { padding: 28px 0 40px; }
.section-title { font-size: 1.35rem; margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.card { background: rgba(16,28,47,0.95); border: 1px solid var(--border); border-radius: 20px; padding: 18px; }
.price { font-size: 1.6rem; font-weight: 800; margin: 8px 0; }
.packages-section {
  display: grid;
  gap: 18px;
}
.packages-intro {
  overflow: hidden;
  position: relative;
}
.packages-intro::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 140, 255, 0.32), rgba(45, 140, 255, 0));
  pointer-events: none;
}
.packages-intro .panel-body {
  position: relative;
  z-index: 1;
}
.packages-eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8db7ff;
  font-weight: 700;
  font-size: 0.78rem;
}
.preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.42);
  background: rgba(255, 195, 85, 0.12);
  color: #ffe8b8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.verification-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 183, 255, 0.35);
  background: rgba(45, 140, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7bffb4;
  box-shadow: 0 0 10px rgba(123, 255, 180, 0.85);
}
.package-preview-note {
  width: min(760px, 100%);
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 120, 0.35);
  background: rgba(255, 195, 85, 0.08);
  color: #ffe6b3;
  font-size: 0.95rem;
}
.premium-cards {
  margin-top: 4px;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(165deg, rgba(14, 25, 44, 0.96), rgba(10, 18, 34, 0.96));
  border-color: rgba(130, 167, 226, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 34px rgba(0, 0, 0, 0.24);
}
.package-head {
  margin-bottom: 12px;
}
.tier-tag {
  margin: 0;
  color: #9cc0ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 700;
}
.package-card .price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}
.package-features {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.package-features li {
  color: #d7e4ff;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.package-features li::before {
  content: "✓";
  color: #7bffb4;
  font-weight: 800;
  line-height: 1.2;
}
.package-cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}
.package-cta-locked {
  box-shadow: none;
  opacity: 0.95;
  cursor: default;
}
.package-card-featured {
  border-color: rgba(40, 199, 111, 0.62);
  transform: translateY(-8px);
  background: linear-gradient(165deg, rgba(16, 33, 57, 0.98), rgba(9, 20, 37, 0.98));
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(40, 199, 111, 0.22);
}
.exclusive-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b1b13;
  background: linear-gradient(135deg, #77f3a7, #40cf83);
  border-radius: 999px;
  padding: 6px 10px;
}

.package-tier-basic {
  background: linear-gradient(165deg, rgba(23, 31, 44, 0.96), rgba(13, 18, 30, 0.96));
  border-color: rgba(164, 176, 199, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px rgba(0, 0, 0, 0.24);
}

.package-tier-basic .tier-tag {
  color: #b8c3d8;
}

.package-tier-premium {
  background:
    linear-gradient(160deg, rgba(14, 47, 92, 0.98), rgba(8, 24, 56, 0.98)),
    radial-gradient(circle at 16% 14%, rgba(122, 231, 255, 0.3), rgba(122, 231, 255, 0));
  border-color: rgba(131, 224, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(98, 216, 255, 0.4),
    0 0 34px rgba(73, 203, 255, 0.5),
    0 34px 56px rgba(0, 0, 0, 0.46);
  transform: translateY(-12px) scale(1.01);
  overflow: hidden;
  animation: premium-pulse 2.6s ease-in-out infinite;
}

.package-tier-premium::before {
  content: "";
  position: absolute;
  inset: -38% auto auto -48%;
  width: 68%;
  height: 220%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(176, 245, 255, 0.44), rgba(255, 255, 255, 0));
  pointer-events: none;
  animation: premium-shine 3.6s ease-in-out infinite;
}

.package-tier-premium .tier-tag,
.package-tier-premium .price {
  color: #d7f6ff;
}

.package-tier-premium .exclusive-ribbon {
  color: #042947;
  background: linear-gradient(135deg, #9eeeff, #58d7ff);
  box-shadow: 0 0 16px rgba(88, 215, 255, 0.56);
}

.package-tier-premium .btn {
  background: linear-gradient(135deg, #5ed9ff, #48b9ff);
  border-color: transparent;
  color: #051a2d;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(70, 180, 255, 0.4);
}

.package-tier-premium .btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.package-tier-gold {
  border-color: rgba(255, 214, 110, 0.92);
  background:
    linear-gradient(160deg, rgba(55, 43, 20, 0.98), rgba(24, 18, 8, 0.98)),
    radial-gradient(circle at 16% 14%, rgba(255, 235, 153, 0.25), rgba(255, 235, 153, 0));
  box-shadow:
    0 0 0 1px rgba(255, 220, 124, 0.38),
    0 0 28px rgba(255, 202, 82, 0.46),
    0 30px 52px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.package-tier-gold::before {
  content: "";
  position: absolute;
  inset: -36% auto auto -52%;
  width: 72%;
  height: 210%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 240, 175, 0.36), rgba(255, 255, 255, 0));
  pointer-events: none;
  animation: gold-shine 4.2s ease-in-out infinite;
}

.package-tier-gold .tier-tag,
.package-tier-gold .price {
  color: #ffe4a0;
}

.package-tier-gold .exclusive-ribbon {
  color: #3c2800;
  background: linear-gradient(135deg, #ffd77b, #ffb950);
  box-shadow: 0 0 18px rgba(255, 191, 74, 0.5);
}

.feature-badge.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 243, 168, 0.45);
  background: rgba(125, 243, 168, 0.12);
  font-weight: 700;
}

.feature-badge.verified::before {
  content: "✓";
  font-size: 0.78rem;
  line-height: 1;
}

.package-features li.verified-item::before {
  content: "";
}

.feature-unlimited {
  color: #c9f6ff;
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(114, 223, 255, 0.65);
}

@keyframes gold-shine {
  0% {
    left: -68%;
    opacity: 0;
  }
  18% {
    opacity: 0.82;
  }
  56% {
    opacity: 0;
  }
  100% {
    left: 138%;
    opacity: 0;
  }
}

@keyframes premium-shine {
  0% {
    left: -66%;
    opacity: 0;
  }
  16% {
    opacity: 0.92;
  }
  54% {
    opacity: 0;
  }
  100% {
    left: 144%;
    opacity: 0;
  }
}

@keyframes premium-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 0 0 1px rgba(98, 216, 255, 0.4),
      0 0 28px rgba(73, 203, 255, 0.42),
      0 34px 56px rgba(0, 0, 0, 0.46);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 0 0 1px rgba(129, 232, 255, 0.58),
      0 0 42px rgba(102, 219, 255, 0.7),
      0 36px 58px rgba(0, 0, 0, 0.48);
  }
}
.verification-panel h2 {
  margin: 0 0 8px;
}
.footer { padding: 24px 0 40px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.auth-card { max-width: 520px; margin: 40px auto 60px; padding: 6px; }
.site-shell { min-height: 100vh; }
.topbar {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(20, 39, 68, 0.12);
}
body:not(.home) .topbar {
  position: static;
  top: auto;
}
.topnav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid #2f5f9b;
  background: transparent;
  color: #2f5f9b;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.topnav a:hover,
.topnav a:focus-visible {
  background: #2f5f9b;
  color: #fff;
  border-color: #2f5f9b;
  transform: scale(1.06);
}
.topnav .topnav-inbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
}
.topnav .has-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 14px;
}
.topnav .topnav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(8, 102, 245, 0.1);
  color: #0866f5;
  font-size: 0.95rem;
}
.topnav .topnav-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #28c76f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(40, 199, 111, 0.28);
  z-index: 2;
}
.topbar-menu .current-menu-item > a,
.topbar-menu .current_page_item > a,
.topbar-menu .current-menu-ancestor > a {
  background: #0866f5;
  color: #fff;
  border-color: #0866f5;
  box-shadow: 0 6px 16px rgba(8, 102, 245, 0.24);
}
.notice.success {
  margin: 10px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(40, 199, 111, 0.35);
  background: rgba(40, 199, 111, 0.14);
  color: #c7f5d9;
}
.notice.error {
  margin: 10px 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(220, 75, 75, 0.35);
  background: rgba(220, 75, 75, 0.12);
  color: #7d1f1f;
}
.actions { margin-top: 14px; }
.profile-page { padding: 24px 0 40px; }
.profile-avatar img, .avatar-placeholder { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-size: 2rem; font-weight: 700; }
.profile-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-form textarea { min-height: 120px; resize: vertical; }
.profile-details p, .profile-details ul { color: var(--muted); }

.profile-shell {
  min-height: 100vh;
  background: #fdfefe;
  position: relative;
  overflow: hidden;
}
.profile-shell::before,
.profile-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}
.profile-shell::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -100px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 132, 245, 0.18), rgba(56, 132, 245, 0));
}
.profile-shell::after {
  width: 320px;
  height: 320px;
  right: -110px;
  top: 70px;
  background: radial-gradient(circle at 50% 50%, rgba(48, 202, 146, 0.16), rgba(48, 202, 146, 0));
}
.profile-shell .topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e9f0fa;
  box-shadow: none;
}
.profile-shell .profile-modern-page {
  position: relative;
  z-index: 1;
}

/* Profile wall + edit split layout */
.profile-modern-page {
  width: min(94%, 1450px);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.profile-hero-card,
.profile-info-card,
.profile-club-history-card,
.profile-links-card,
.profile-edit-card,
.profile-message-card,
.profile-wall-card,
.profile-stats-card,
.profile-files-card,
.profile-quick-links-card {
  background: #fff;
  border: 1px solid #dce7f8;
  border-radius: 22px;
  box-shadow: 0 10px 35px rgba(23, 59, 112, 0.06);
}
.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.profile-col-left,
.profile-col-right {
  display: grid;
  gap: 20px;
  align-content: start;
}
.profile-hero-card {
  overflow: hidden;
}
.profile-cover-banner {
  height: 190px;
  background:
    radial-gradient(circle at 12% 84%, rgba(8, 102, 245, 0.18) 0 120px, transparent 121px),
    radial-gradient(circle at 90% 22%, rgba(32, 191, 117, 0.18) 0 140px, transparent 142px),
    linear-gradient(125deg, #edf4ff 0%, #f2fff8 54%, #f4f0ff 100%);
}
.profile-hero-inner {
  margin-top: -58px;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: end;
}
.profile-avatar-wrap {
  position: relative;
  width: 162px;
  height: 162px;
}
.profile-modern-page .profile-avatar img,
.profile-modern-page .profile-avatar .avatar-placeholder {
  width: 162px;
  height: 162px;
  border: 4px solid #fff;
  box-shadow: 0 14px 30px rgba(24, 48, 90, 0.18);
}
.profile-photo-form {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}
.profile-photo-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7be4, #4fa5ff);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(31, 123, 228, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.profile-photo-trigger:hover {
  transform: translateY(-1px);
}
.profile-photo-trigger svg {
  width: 18px;
  height: 18px;
}
.profile-photo-form input[type="file"] {
  display: none;
}
.profile-hero-text h1 {
  margin: 0 0 6px;
  color: #173b70;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
}
.profile-hero-text .small {
  margin: 0 0 12px;
  color: #5c7190;
}
.profile-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #2b4368;
  font-size: 0.93rem;
}
.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.profile-edit-card {
  display: none;
}
.profile-edit-card.is-visible {
  display: block;
}
.profile-info-card.is-hidden {
  display: none;
}
.profile-modern-page .btn-secondary {
  background: #eef4ff;
  color: #1d4c8f;
  border-color: #cddcf6;
}
.profile-modern-page .btn-primary {
  background: linear-gradient(135deg, #1684f8, #1ea6ff);
  color: #fff;
  border: 0;
}
.profile-basic-info-card {
  padding: 4px 18px 3px;
}
.profile-basic-info-header {
  margin-bottom: 2px;
}
.profile-basic-info-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  color: #173b70;
}
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfeafc;
  border-radius: 16px;
  background: #fff;
}
.profile-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  min-height: 38px;
  background: #fff;
  border-right: 1px solid #e2ebf8;
}
.profile-info-item:last-child {
  border-right: 0;
}
.info-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(22, 132, 248, 0.08);
  color: #1684f8;
  flex-shrink: 0;
}
.info-icon svg {
  width: 16px;
  height: 16px;
}
.info-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.info-copy span {
  color: #7287a4;
  font-size: 0.73rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
.info-copy strong {
  color: #173b70;
  font-size: 0.96rem;
  line-height: 1.3;
  text-transform: capitalize;
}
.profile-club-history-card {
  padding: 0;
  overflow: hidden;
}
.compact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  gap: 12px;
}
.compact-card-head h2,
.profile-section-heading-row h2,
.profile-stats-card h2,
.profile-files-card h2,
.profile-quick-links-card h2 {
  margin: 0;
  color: #173b70;
  font-size: 1.9rem;
}
.profile-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.profile-community-link {
  color: #1684f8;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.profile-accordion-panel {
  border-top: 1px solid #e8f0fb;
  padding: 18px 18px 18px;
  display: grid;
  gap: 14px;
}
.compact-club-row {
  border: 1px solid #e2ebf8;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}
.club-history-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #173b70;
  font-weight: 700;
  font-size: 1.05rem;
}
.club-history-item summary::-webkit-details-marker {
  display: none;
}
.club-history-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.club-history-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1684f8, #1ec4a9);
  box-shadow: 0 0 0 3px rgba(22, 132, 248, 0.12);
}
.club-history-item summary small {
  color: #647ea6;
  font-weight: 600;
}
.club-history-item[open] summary {
  margin-bottom: 8px;
}
.club-history-meta {
  display: grid;
  gap: 6px;
  color: #4a6388;
  font-size: 0.92rem;
}
.club-links-inline {
  display: grid;
  gap: 8px;
}
.club-links-inline a,
.quick-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f7faff;
  border: 1px solid #e1ebfa;
  border-radius: 12px;
  padding: 10px 12px;
  color: #1d5bb7;
  text-decoration: none;
}
.club-links-inline a span:first-child,
.quick-links-list a span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-links-inline svg,
.quick-links-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.club-history-inline-actions {
  display: flex;
  justify-content: flex-start;
}
.compact-add-link,
.quick-link-plus {
  background: transparent;
  border: none;
  color: #1684f8;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}
.compact-link-form,
.quick-link-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}
.club-history-form {
  border: 1px solid #dfeafc;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}
.club-history-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.club-history-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.profile-wall-card,
.profile-posts-section {
  padding: 18px 18px 12px;
}
.profile-wall-card {
  display: grid;
  gap: 12px;
}
.profile-wall-card h2,
.profile-posts-section h3 {
  margin: 0;
  color: #173b70;
}
.profile-wall-composer {
  border: 1px solid #dfeafc;
  border-radius: 18px;
  background: #fff;
  padding: 12px 12px 10px;
  box-shadow: 0 8px 22px rgba(23, 59, 112, 0.04);
}
.composer-row-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
}
.composer-avatar img,
.composer-avatar .avatar-placeholder,
.social-post-author img,
.social-post-author .avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
}
.profile-wall-composer textarea {
  min-height: 64px;
  border: 1px solid #dfeafc;
  border-radius: 14px;
  background: #f8fbff;
  resize: vertical;
  color: #1a2f4d;
  padding: 12px 14px;
}
.profile-post-link-wrap {
  margin-top: 10px;
}
.profile-post-link-wrap input {
  width: 100%;
}
.media-preview {
  margin-top: 10px;
  border: 1px solid #dfeafc;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
}
.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
}
.composer-row-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.profile-post-extra-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #3a5d8e;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.post-chip svg {
  width: 16px;
  height: 16px;
}
.composer-post-button {
  min-width: 110px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
}
.profile-posts-title {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.profile-post-card {
  border: 1px solid #dfeafc;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(23, 59, 112, 0.05);
  padding: 18px 18px 14px;
  background: #fff;
}
.social-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.social-post-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.social-post-author strong {
  display: block;
  color: #173b70;
  font-size: 1rem;
}
.social-post-author small {
  color: #6f86a6;
}
.social-post-menu {
  color: #7a90af;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 2px;
}
.social-post-content {
  color: #1f3558;
  line-height: 1.6;
  margin: 0 0 12px;
  font-size: 0.98rem;
}
.social-post-link {
  margin: 0 0 12px;
}
.social-post-link a {
  color: #1d63c5;
  text-decoration: none;
}
.social-post-media {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #f7faff;
  border: 1px solid #dfeafc;
}
.social-post-media img,
.social-post-media video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.modern-post-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  margin: 12px 0 0;
  border-top: 1px solid #edf3fd;
  border-bottom: 1px solid #edf3fd;
  color: #6a7e9e;
  font-size: 0.88rem;
}
.modern-post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modern-post-stats svg {
  width: 15px;
  height: 15px;
}
.social-post-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.social-action-button,
.comment-send-button {
  border: 1px solid #dfeafc;
  background: #fff;
  border-radius: 999px;
  color: #2f5f8c;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}
.social-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.social-comment-form input {
  min-width: 0;
  border: 1px solid #dfeafc;
  border-radius: 999px;
  background: #f8fbff;
  padding: 10px 14px;
  color: #1e3559;
}
.comment-send-button {
  min-width: 88px;
}
.social-comments-list {
  display: grid;
  gap: 8px;
}
.social-comment-item {
  border: 1px solid #e2ebf8;
  border-radius: 12px;
  background: #f8fbff;
  padding: 8px 10px;
}
.social-comment-item strong {
  color: #173b70;
}
.social-comment-item p {
  margin: 4px 0 2px;
  color: #2b476d;
}
.social-comment-item small {
  color: #7285a2;
}
.profile-stats-card,
.profile-files-card,
.profile-quick-links-card,
.profile-message-card {
  padding: 18px;
}
.profile-stats-card h2,
.profile-files-card h2,
.profile-quick-links-card h2,
.profile-message-card h2 {
  margin: 0 0 12px;
  color: #173b70;
}
.community-shell {
  background-image: url('assets/images/community-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.messages-shell {
  min-height: 100vh;
  background-color: #f4f7fb;
  background-image: url('assets/images/site-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.messages-page {
  max-width: 1280px;
  margin: 28px auto 40px;
  padding: 0 20px;
}
.messages-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  min-height: 760px;
  background: #fff;
  border: 1px solid rgba(20, 39, 68, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(15, 34, 60, 0.08);
}
.messages-sidebar {
  background: #f9fbff;
  border-right: 1px solid rgba(20, 39, 68, 0.08);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.messages-sidebar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.messages-sidebar-header h2 {
  margin: 2px 0 0;
  color: #173b70;
  font-size: 1.28rem;
}
.messages-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #6c83a3;
  font-weight: 800;
}
.messages-new-message {
  flex-shrink: 0;
  white-space: nowrap;
}
.messages-sidebar .search-box {
  margin-top: 0;
  display: block;
}
.messages-people-search input {
  width: 100%;
}
.people-search-panel,
.conversation-panel {
  display: grid;
  gap: 12px;
}
.messages-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.messages-section-header h3 {
  margin: 0;
  font-size: 0.98rem;
  color: #173b70;
}
.messages-section-count {
  font-size: 0.76rem;
  color: #6c83a3;
}
.people-search-empty {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(8, 102, 245, 0.18);
  background: rgba(8, 102, 245, 0.05);
  color: #5f7390;
  line-height: 1.5;
}
.people-search-results {
  display: grid;
  gap: 10px;
}
.people-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(20, 39, 68, 0.08);
  background: #fff;
  color: #173b70;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 20px rgba(15, 34, 60, 0.04);
}
.people-result-item:hover,
.people-result-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(8, 102, 245, 0.18);
  box-shadow: 0 16px 30px rgba(15, 34, 60, 0.08);
}
.people-result-main {
  min-width: 0;
  flex: 1;
}
.people-result-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.people-result-name {
  font-weight: 800;
  line-height: 1.2;
}
.people-result-action {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 102, 245, 0.1);
  color: #0866f5;
  font-size: 0.75rem;
  font-weight: 800;
}
.people-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: #6c83a3;
  font-size: 0.83rem;
}
.people-role-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(40, 199, 111, 0.12);
  color: #17824a;
  font-weight: 700;
}
.people-result-club {
  margin-top: 8px;
  color: #5f7390;
  font-size: 0.84rem;
}
.messages-sidebar .search-box input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(20, 39, 68, 0.14);
  background: #fff;
  color: #173b70;
  padding: 11px 14px;
}
.conversation-list {
  display: grid;
  gap: 10px;
}
.conversation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 16px;
  color: #173b70;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.conversation-item:hover,
.conversation-item.active {
  background: #eef5ff;
  border-color: rgba(8, 102, 245, 0.16);
}
.conversation-main {
  flex: 1;
  min-width: 0;
}
.conversation-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.conversation-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-time {
  font-size: 0.74rem;
  color: #7a8ba5;
  flex-shrink: 0;
}
.conversation-preview {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #6a7d95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0866f5;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 8px;
}
.messages-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.messages-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(20, 39, 68, 0.08);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
}
.messages-chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.messages-chat-meta {
  min-width: 0;
}
.messages-chat-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #173b70;
}
.messages-chat-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: #6c83a3;
  font-size: 0.83rem;
}
.messages-chat-subtitle span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 102, 245, 0.08);
}
.messages-area {
  flex: 1;
  padding: 22px 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(241,246,255,0.8), rgba(255,255,255,0.96));
}
.messages-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #60748e;
  padding: 24px;
}
.messages-empty h2 {
  margin: 0 0 8px;
  color: #173b70;
}
.message-row {
  display: flex;
}
.message-row.me {
  justify-content: flex-end;
}
.message-bubble {
  max-width: min(70%, 420px);
  padding: 12px 14px;
  border-radius: 16px 16px 16px 6px;
  background: #eef4ff;
  color: #173b70;
  border: 1px solid rgba(8, 102, 245, 0.08);
  box-shadow: 0 8px 18px rgba(15, 34, 60, 0.05);
}
.message-row.me .message-bubble {
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, #0866f5, #4f9bff);
  color: #fff;
  border-color: transparent;
}
.message-time {
  font-size: 0.72rem;
  color: #7a8ba5;
  margin-top: 6px;
  display: block;
}
.message-row.me .message-time {
  color: rgba(255,255,255,0.86);
}
.messages-composer {
  border-top: 1px solid rgba(20, 39, 68, 0.08);
  padding: 18px 20px 20px;
  background: rgba(255,255,255,0.94);
}
.messages-composer form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.messages-composer textarea {
  flex: 1;
  min-height: 58px;
  max-height: 140px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(20, 39, 68, 0.14);
  background: #f7faff;
  color: #173b70;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.messages-composer .btn {
  border-radius: 14px;
}
.message-send-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  justify-content: center;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e9f2ff, #eefaf4);
  color: #173b70;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.messages-sidebar .avatar {
  width: 46px;
  height: 46px;
}

@media (max-width: 1080px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 39, 68, 0.08);
  }
}

@media (max-width: 760px) {
  .messages-page {
    padding: 0 12px;
    margin-top: 18px;
  }

  .messages-layout {
    border-radius: 22px;
  }

  .messages-sidebar-header,
  .messages-chat-header,
  .messages-composer form {
    flex-direction: column;
    align-items: stretch;
  }

  .messages-sidebar-header .btn,
  .messages-composer .btn,
  .message-send-button {
    width: 100%;
  }

  .people-result-topline,
  .conversation-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-bubble {
    max-width: 88%;
  }
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.profile-stats-grid div {
  border: 1px solid #dfeafc;
  border-radius: 14px;
  background: #f9fbff;
  padding: 12px 10px;
  text-align: center;
}
.profile-stats-grid span {
  display: block;
  color: #7085a2;
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.profile-stats-grid strong {
  display: block;
  color: #1684f8;
  font-size: 1.8rem;
  line-height: 1;
}
.profile-files-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #edf3fd;
}
.profile-files-tabs span {
  color: #7289a8;
  font-weight: 700;
  font-size: 0.8rem;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}
.profile-files-tabs .is-active {
  color: #1684f8;
  border-bottom-color: #1684f8;
}
.profile-files-list {
  display: grid;
  gap: 8px;
}
.profile-files-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e1ebfa;
  border-radius: 12px;
  background: #fff;
  color: #1a355d;
  text-decoration: none;
}
.file-meta {
  display: grid;
  gap: 3px;
  overflow: hidden;
}
.file-meta strong,
.file-meta small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta small {
  color: #7088a9;
}
.file-open {
  color: #7d96ba;
  font-size: 1.1rem;
}
.profile-empty-file-state {
  margin-top: 12px;
  border: 1px dashed #d3e2fb;
  border-radius: 14px;
  background: #f8fbff;
  padding: 18px 14px;
  text-align: center;
}
.empty-file-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: rgba(22, 132, 248, 0.08);
  color: #1684f8;
  display: grid;
  place-items: center;
}
.empty-file-icon svg {
  width: 20px;
  height: 20px;
}
.profile-empty-file-state p {
  margin: 0 0 4px;
  color: #1a355d;
  font-weight: 700;
}
.profile-empty-file-state small {
  display: block;
  color: #7a90b1;
  margin-bottom: 10px;
}
.profile-file-upload-inline {
  display: inline-flex;
  min-width: 120px;
  justify-content: center;
}
.profile-quick-links-card .quick-links-list {
  display: grid;
  gap: 8px;
}
.profile-visibility-card {
  border: 1px solid #ddeafc;
  border-radius: 18px;
  background: linear-gradient(130deg, #f5f9ff 0%, #edf6ff 100%);
  padding: 16px;
  margin-top: 4px;
}
.profile-visibility-card h3 {
  margin: 0 0 8px;
  color: #173b70;
  font-size: 1.3rem;
}
.profile-visibility-card p {
  margin: 0 0 12px;
  color: #5d7797;
  line-height: 1.5;
}
.profile-side-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.profile-message-card {
  margin-top: 0;
}
.profile-modern-page .profile-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}
.profile-modern-page .profile-form .form-grid {
  gap: 18px 18px;
}
.profile-modern-page input,
.profile-modern-page select,
.profile-modern-page textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
  border: 1px solid #d7e4f5;
  border-radius: 12px;
  padding: 11px 12px;
  min-height: 46px;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}
.profile-modern-page textarea {
  min-height: 120px;
}
.profile-page textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
}
.profile-modern-page h1 {
  color: #173b70;
  font-size: clamp(2rem, 3vw, 2.7rem);
}
.profile-dashboard-grid h2 {
  color: #173b70;
}
@media (max-width: 1100px) {
  .profile-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .profile-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: -52px;
  }
  .profile-hero-actions {
    justify-content: flex-start;
  }
  .profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-link-form,
  .quick-link-form,
  .social-comment-form {
    grid-template-columns: 1fr;
  }
  .composer-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .composer-post-button {
    width: 100%;
  }
  .profile-post-extra-grid {
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
  .profile-modern-page {
    width: min(96%, 1450px);
  }
  .profile-basic-info-card,
  .profile-wall-card,
  .profile-posts-section,
  .profile-stats-card,
  .profile-files-card,
  .profile-quick-links-card,
  .profile-message-card {
    padding: 14px;
  }
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  .profile-info-item {
    border-right: 0;
    border-bottom: 1px solid #e2ebf8;
  }
  .profile-info-item:last-child {
    border-bottom: 0;
  }
  .club-history-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-section-heading-row {
    display: grid;
    gap: 6px;
  }
  .profile-post-extra-grid {
    width: 100%;
  }
  .post-chip {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
/* =========================================================
   NEW COMMUNITY LAYOUT (screenshot redesign)
   ========================================================= */

/* Hero banner */
.comm-page {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.comm-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #eaf2ff 0%, #effff6 48%, #f5f1ff 100%);
  border: 1px solid rgba(18, 54, 108, 0.10);
  border-radius: 24px;
  margin: 24px 0 18px;
  min-height: 326px;
  display: flex;
  align-items: center;
}
.comm-hero-content {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  width: min(700px, calc(100% - 28px));
  flex-shrink: 0;
  margin: 0 0 0 26px;
}
.comm-hero-title {
  font-size: clamp(1.72rem, 2.75vw, 2.48rem);
  font-weight: 800;
  color: #17345e;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.comm-hero-sub {
  color: #5a7396;
  margin: 0 0 18px;
  font-size: 0.98rem;
}
.comm-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 56%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
}
.comm-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/community-athletes-glow.png") right center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.28;
  pointer-events: none;
}
.comm-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
  filter: saturate(0.96) contrast(0.98);
}
.comm-composer-input {
  flex: 1;
  border: 1px solid #e2eaf6;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: #1e2f48;
  background: #f7faff;
  outline: none;
  transition: border-color .18s;
}
.comm-composer-input:focus {
  border-color: #3b82f6;
  background: #fff;
}
.comm-composer-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #7a9cc8;
  flex-shrink: 0;
}
.comm-composer-icons svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: color .15s;
}
.comm-composer-icons svg:hover { color: #3b82f6; }
.comm-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Shared avatar */
.comm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Shared buttons */
.comm-btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  font: inherit;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.comm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.3); }
.comm-btn-ghost {
  border: 1.5px solid #3b82f6;
  color: #2563eb;
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.comm-btn-ghost:hover { background: #eff6ff; }

/* Body: single column */
.comm-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.95fr);
  gap: 20px;
  padding: 0 0 48px;
  align-items: start;
}

/* Composer redesign */
.comm-composer {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.36)),
    url("assets/images/community-bg-soft.png") center/cover no-repeat;
  border: 1px solid rgba(89, 167, 210, 0.22);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin-top: 10px;
  box-shadow: 0 8px 22px rgba(18, 54, 108, 0.09);
}
.comm-composer-row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.comm-composer-row1 .comm-composer-input {
  flex: 1 1 auto;
  width: 100%;
}
.comm-composer-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.comm-composer-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.comm-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: #7a9cc8;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.comm-icon-btn svg { width: 20px; height: 20px; }
.comm-icon-btn:hover { background: #eff6ff; color: #2563eb; }

/* Emoji picker */
.comm-emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42)),
    url("assets/images/community-bg-soft.png") center/cover no-repeat;
  border: 1px solid rgba(89, 167, 210, 0.22);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30,60,100,0.13);
  max-width: 280px;
}
.comm-emoji-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: background .1s;
}
.comm-emoji-item:hover { background: #eff6ff; }

/* Image preview */
.comm-image-preview {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}
.comm-image-preview img {
  max-height: 120px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.comm-preview-remove {
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: .75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Attach row */
.comm-attach-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comm-attach-or {
  color: #9ab4d4;
  font-size: .85rem;
  white-space: nowrap;
}
.comm-link-input {
  flex: 1;
  min-width: 140px;
  border: 1px solid #dce8f8;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: .9rem;
  color: #1e2f48;
  background: #f7faff;
  outline: none;
}
.comm-link-input:focus { border-color: #3b82f6; background: #fff; }

/* Feed column */
.comm-feed {
  display: grid;
  gap: 16px;
}
.comm-post {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.76), rgba(255,255,255,0.46)),
    url("assets/images/community-bg-soft.png") center/cover no-repeat;
  border: 1px solid rgba(89, 167, 210, 0.2);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 18px rgba(20, 46, 82, 0.07);
}
.comm-post-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.comm-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.comm-post-author strong {
  display: block;
  color: #1a2c44;
  font-size: 0.97rem;
}
.comm-post-author small {
  color: #7a93b2;
  font-size: 0.83rem;
}
.comm-post-menu {
  color: #9aaecc;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.comm-post-body {
  color: #1f2f44;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.comm-post-media {
  margin: 12px 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef5ff;
  border: 1px solid rgba(89, 167, 210, 0.18);
}
.comm-post-media img,
.comm-post-media video {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}
.comm-post-stats {
  display: flex;
  gap: 16px;
  color: #7a93b2;
  font-size: 0.88rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2fb;
}
.comm-post-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.comm-post-stats svg {
  width: 15px;
  height: 15px;
}
.comm-post-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.comm-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: 1.5px solid #dce8f8;
  border-radius: 999px;
  background: #fff;
  color: #3a5a82;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.comm-action-btn svg {
  width: 16px;
  height: 16px;
}
.comm-action-btn:hover { background: #eff6ff; border-color: #3b82f6; }
.comm-action-btn.liked { color: #e11d48; border-color: #fca5a5; background: #fff1f2; }

/* Comment form */
.comm-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.comm-comment-input-wrap {
  flex: 1;
  position: relative;
}
.comm-comment-input-wrap input {
  width: 100%;
  border: 1.5px solid #dce8f8;
  border-radius: 999px;
  padding: 9px 38px 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: #1e2f48;
  background: #f7faff;
  outline: none;
  transition: border-color .18s;
}
.comm-comment-input-wrap input:focus { border-color: #3b82f6; background: #fff; }
.comm-emoji-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ab6d4;
  pointer-events: none;
}

/* Sidebar */
.comm-sidebar {
  display: grid;
  gap: 16px;
}
.comm-sidebar-card {
  background: #fff;
  border: 1px solid rgba(18, 54, 108, 0.14);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(20, 46, 82, 0.07);
}
.comm-sidebar-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #17345e;
  padding-bottom: 10px;
  border-bottom: 2.5px solid #2563eb;
  display: inline-block;
}
.comm-sport-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.comm-sport-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.comm-sport-list li:hover { background: #f5f9ff; }
.comm-sport-list li > div { flex: 1; }
.comm-sport-list li strong { display: block; color: #1a2c44; font-size: 0.93rem; }
.comm-sport-list li small { font-size: 0.8rem; }
.comm-sport-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.comm-chevron {
  width: 16px;
  height: 16px;
  color: #b0c4de;
  flex-shrink: 0;
}

/* CTA sidebar card */
.comm-cta-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #f0f7ff, #f5fff8);
  border: 1.5px solid rgba(37,99,235,.18);
}
.comm-cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.comm-cta-icon svg { width: 22px; height: 22px; }
.comm-cta-text { flex: 1; }
.comm-cta-text strong { display: block; color: #1a2c44; font-size: 0.93rem; margin-bottom: 4px; }
.comm-cta-text p { margin: 0; color: #5a7396; font-size: 0.84rem; line-height: 1.4; }
.comm-cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  flex-shrink: 0;
  align-self: center;
  transition: background .15s;
}
.comm-cta-arrow:hover { background: #1d4ed8; }
.comm-cta-arrow svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  .comm-page {
    width: min(1360px, calc(100% - 20px));
  }
  .comm-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
  }
  .comm-hero {
    min-height: 286px;
  }
  .comm-hero-content {
    width: min(560px, calc(100% - 26px));
    margin-left: 16px;
  }
}
@media (max-width: 860px) {
  .comm-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .comm-sidebar {
    order: 2;
  }
  .comm-feed {
    order: 1;
  }
  .comm-hero {
    min-height: 300px;
  }
  .comm-hero-art {
    opacity: 0.42;
    width: 100%;
  }
}
@media (max-width: 620px) {
  .comm-page {
    width: calc(100% - 12px);
  }
  .comm-hero {
    border-radius: 18px;
    min-height: 300px;
  }
  .comm-hero-content {
    width: calc(100% - 18px);
    margin: 9px;
    padding: 8px;
  }
  .comm-hero-title {
    font-size: 2rem;
  }
  .comm-composer {
    border-radius: 16px;
    padding: 12px;
  }
  .comm-composer-row2 {
    align-items: stretch;
  }
  .comm-composer-actions {
    width: 100%;
  }
  .comm-btn-ghost,
  .comm-btn-primary {
    text-align: center;
    min-width: 132px;
  }
}

/* Smaller community logo only on this page */

/* Community page: fully white layout with no dark framed blocks */
body.page-id-16,
body.page-id-16.auth-page,
body.page-id-16 .site-shell,
body.page-id-16 .community-page,
body.page-id-16 .community-page.container {
  background: #fff !important;
}

body.page-id-16 .topbar {
  background: #fff;
  border-bottom: 1px solid #edf1f6;
  box-shadow: none;
}

body.page-id-16 .social-icon-nav {
  display: none;
}

body.page-id-16 .panel,
body.page-id-16 .social-shell,
body.page-id-16 .social-post-card,
body.page-id-16 .social-composer-inline,
body.page-id-16 .social-story-card,
body.page-id-16 .social-comment-item {
  background: #fff !important;
  border: 1px solid rgba(40, 120, 220, 0.22) !important;
  box-shadow: none !important;
}

body.page-id-16 .social-shell,
body.page-id-16 .social-post-card {
  border-radius: 14px;
}

body.page-id-16 .social-composer-inline,
body.page-id-16 .social-comment-item,
body.page-id-16 .social-story-card {
  border-radius: 12px;
}

body.page-id-16 .social-story-card .story-thumb {
  background: #fff;
}
.community-feed-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.community-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}
.feed-card-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.feed-card-actions .btn {
  pointer-events: none;
  opacity: 0.9;
}
.search-results-page .panel {
  max-width: 880px;
  margin: 0 auto;
}
.search-feed-grid {
  margin-top: 20px;
}
.search-player-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(141, 183, 255, 0.28);
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(10, 18, 33, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}
.search-member-thumb {
  width: 100%;
  height: 190px;
  background: rgba(255, 255, 255, 0.02);
}
.search-member-thumb img,
.search-member-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-member-avatar-fallback {
  border-radius: 0;
  font-size: 3rem;
}
.search-member-info {
  padding: 14px 14px 16px;
}
.search-member-info h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}
.search-member-info p {
  margin: 0;
  color: #c8d6f2;
  font-size: 0.93rem;
}
.search-member-info p + p {
  margin-top: 6px;
}
.search-login-prompt {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(143, 186, 255, 0.32);
  background: rgba(45, 140, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.search-login-prompt p {
  margin: 0;
  color: #d8e8ff;
  font-weight: 600;
}
.players-only-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}
.player-name {
  font-weight: 600;
}
.subscription-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(45, 140, 255, 0.22), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(6px);
  z-index: 1000;
  padding: 20px;
}
.subscription-gate.open {
  display: flex;
}
.subscription-card {
  width: min(520px, 100%);
  background: linear-gradient(165deg, rgba(12, 24, 44, 0.98), rgba(8, 17, 31, 0.98));
  border: 1px solid rgba(120, 170, 255, 0.35);
  border-radius: 24px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(45, 140, 255, 0.14);
}
.subscription-card h2 {
  margin: 6px 0 10px;
  font-size: 1.9rem;
  line-height: 1.15;
}
.gate-badge {
  margin: 0 auto 6px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1c12;
  background: linear-gradient(135deg, #7df3a8, #4cd98c);
}
.gate-lead {
  margin: 0;
  color: #cedaf1;
}
.gate-benefits {
  margin: 16px 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}
.gate-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #e5edff;
  font-size: 0.95rem;
}
.gate-benefits li::before {
  content: "✓";
  color: #7df3a8;
  font-weight: 800;
  line-height: 1.2;
}
.gate-note {
  margin: 0;
  color: #9fb1d1;
  font-size: 0.92rem;
}
.gate-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.gate-cta {
  min-width: 150px;
  box-shadow: 0 12px 24px rgba(45, 140, 255, 0.35);
}
.profile-page textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0d1727;
  color: var(--text);
  padding: 12px 14px;
}
.center { text-align: center; }
.small { font-size: 0.95rem; color: var(--muted); }
body.auth-page .panel-body { padding: 32px; }
body.auth-page .field input,
body.auth-page .field select {
  background: rgba(19, 29, 49, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
body.auth-page .field select option {
  background: #131d31;
  color: #fff;
}
body.auth-page .btn-primary {
  box-shadow: 0 10px 25px rgba(45, 140, 255, 0.25);
}
@media (max-width: 860px) {
  .profile-main-grid {
    grid-template-columns: 1fr;
  }
  .profile-form .form-grid { grid-template-columns: 1fr; }
  .profile-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: -52px;
  }
  .profile-hero-actions {
    justify-content: flex-start;
  }
  .profile-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .media-grid, .feed-grid { grid-template-columns: 1fr; }
  .package-card-featured {
    transform: none;
  }
  .social-composer-inline {
    grid-template-columns: 1fr;
  }
  .composer-quick-actions {
    justify-content: flex-end;
  }
  .social-stories-row {
    grid-auto-columns: 132px;
  }
  .home-picker {
    padding: 20px;
  }
  body.home .search-box select,
  body.home .search-box button {
    min-width: 0;
    width: calc(100% - 10px);
  }
  .profile-post-extra-grid,
  .club-history-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-link-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .profile-cover-banner {
    height: 150px;
  }
  .profile-modern-page .profile-avatar img,
  .profile-modern-page .profile-avatar .avatar-placeholder {
    width: 122px;
    height: 122px;
  }
  .profile-hero-inner,
  .profile-info-card,
  .profile-links-card,
  .profile-edit-card,
  .profile-message-card,
  .profile-wall-card {
    padding: 14px;
  }
  .profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-post-extra-grid,
  .club-history-form-grid {
    grid-template-columns: 1fr;
  }
}
.auth-message { margin-top: 8px; padding: 10px 12px; border-radius: 12px; font-size: 0.95rem; display: none; }
.auth-message.error { display: block; background: rgba(255, 92, 92, 0.14); color: #ffb3b3; border: 1px solid rgba(255, 92, 92, 0.3); }
.auth-message.success { display: block; background: rgba(40, 199, 111, 0.14); color: #c7f5d9; border: 1px solid rgba(40, 199, 111, 0.3); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr; } }

/* Profile reference alignment overrides */
.profile-modern-page {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(540px, 1.75fr);
  gap: 22px;
  align-items: start;
}
.profile-col-left,
.profile-col-center,
.profile-col-right {
  display: grid;
  gap: 16px;
  align-content: start;
}
.profile-col-right {
  width: 100%;
}
.profile-dashboard-grid .profile-info-card,
.profile-dashboard-grid .profile-club-history-card,
.profile-dashboard-grid .profile-wall-card,
.profile-dashboard-grid .profile-stats-card,
.profile-dashboard-grid .profile-files-card,
.profile-dashboard-grid .profile-quick-links-card,
.profile-dashboard-grid .profile-message-card {
  background: #ffffff;
  border: 1px solid #dce9fa;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(30, 80, 150, 0.06);
}
.compact-info-card,
.redesigned-wall-card,
.compact-stats-card,
.compact-files-card,
.profile-quick-links-card {
  padding: 16px;
}
.profile-modern-page h1 {
  color: #173b70;
  font-size: clamp(2rem, 3vw, 2.3rem);
}
.profile-dashboard-grid h2 {
  color: #173b70;
  font-size: 1.35rem;
  margin: 0 0 10px;
}
.compact-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.compact-info-grid .profile-info-item {
  border-radius: 12px;
  background: #f5f9ff;
  border: 1px solid #e0ebfb;
  padding: 10px 12px;
}
.compact-info-grid .profile-info-item span {
  font-size: 0.78rem;
  color: #6f84a4;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.compact-info-grid .profile-info-item span::before {
  content: none;
}
.compact-info-grid .profile-info-item strong {
  font-size: 0.94rem;
  color: #1d365c;
}
.compact-club-card {
  padding: 0;
}
.compact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.compact-arrow {
  width: auto;
  background: transparent;
  padding: 4px;
  border-radius: 8px;
}
.compact-arrow .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.compact-panel {
  padding: 0 14px 14px;
  border-top: 1px solid #e5eefb;
}
.compact-club-list {
  gap: 8px;
}
.compact-club-row {
  border-radius: 12px;
  border: 1px solid #e0eafa;
  padding: 10px 12px;
}
.compact-club-row summary small {
  color: #6580a8;
}
.club-links-inline {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.club-links-inline a,
.quick-links-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0eafa;
  border-radius: 12px;
  background: #f8fbff;
  color: #1f5ebd;
  text-decoration: none;
  padding: 9px 10px;
}
.compact-add-link,
.quick-link-plus {
  background: transparent;
  border: 0;
  color: #1f64c6;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.compact-link-form,
.quick-link-form {
  margin-top: 8px;
}
.modern-composer {
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #deebfc;
  padding: 12px;
}
.composer-row-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.composer-avatar img,
.composer-avatar .avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.modern-composer textarea {
  min-height: 58px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe8fb;
}
.media-preview {
  margin-top: 10px;
  border: 1px solid #d8e6fa;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}
.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}
.composer-row-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.compact-chips {
  grid-template-columns: repeat(3, auto);
  margin: 0;
}
.post-chip {
  font-size: 0.82rem;
  padding: 8px 11px;
}
.composer-subtle-link {
  margin-top: 8px;
}
.composer-subtle-link .btn {
  border-style: dashed;
}
.modern-post-card {
  background: #fff;
  border: 1px solid #dce9fa;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(30, 80, 150, 0.06);
  padding: 16px;
}
.modern-post-card .social-post-author strong,
.modern-post-card .social-post-content,
.modern-post-card .social-post-head small {
  color: #1b355a;
}
.modern-post-stats {
  color: #5c7498;
  font-size: 0.9rem;
  border-top: 1px solid #e6eefb;
  border-bottom: 1px solid #e6eefb;
  padding: 8px 0;
  margin-top: 10px;
}
.modern-post-card .social-post-actions {
  margin-top: 10px;
}
.profile-stats-grid div {
  background: #f9fbff;
}
.profile-stats-grid strong {
  color: #1b66cd;
}
.profile-visibility-card {
  margin-top: 8px;
  border: 1px solid #dee9fb;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
}
.profile-files-tabs {
  margin-bottom: 10px;
}
.profile-files-list a {
  border-radius: 12px;
  border-color: #dee9fb;
}
.profile-file-upload-cta {
  margin-top: 12px;
  border: 1px dashed #bcd3f2;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  text-align: center;
}
.profile-file-upload-cta::before {
  content: "\2601";
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #2f76d8;
}
.profile-quick-links-card {
  padding: 16px;
}
.quick-links-list {
  display: grid;
  gap: 8px;
}
@media (max-width: 1100px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr 1.4fr;
  }
  .profile-col-right {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .profile-col-right {
    grid-template-columns: 1fr;
  }
  .composer-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .compact-chips {
    grid-template-columns: repeat(2, auto);
  }
}
@media (max-width: 620px) {
  .compact-info-grid {
    grid-template-columns: 1fr;
  }
  .compact-chips {
    grid-template-columns: 1fr;
  }
}


