:root {
  color-scheme: light;
  --blue: #0f6fae;
  --blue-deep: #073b57;
  --sea: #dff5f7;
  --sea-strong: #b9e7eb;
  --paper: #fffdf8;
  --sand: #fbf7ee;
  --coral: #d9855b;
  --copper: #b9693f;
  --gold: #e4b84b;
  --olive: #667b4f;
  --ink: #17212b;
  --muted: #5c6a76;
  --faint: #89949e;
  --danger: #b23b3b;
  --line: rgba(23, 33, 43, 0.13);
  --shadow: 0 16px 40px rgba(7, 59, 87, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sand);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 238, 0.98)),
    var(--sand);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-root {
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.84) 42%, rgba(255, 253, 248, 0.22) 100%),
    url("/assets/omazingclub-hero-cyprus.webp") center right / cover no-repeat;
}

.auth-copy {
  padding: clamp(28px, 7vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.auth-panel {
  align-self: center;
  margin: 24px clamp(18px, 5vw, 70px) 24px 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(7, 59, 87, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 59, 87, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  max-width: 660px;
  margin: 0;
  font-size: clamp(39px, 6vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.landing-sections {
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-sections div {
  padding: 12px;
  border: 1px solid rgba(7, 59, 87, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.landing-sections strong,
.landing-sections span {
  display: block;
}

.landing-sections span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trust-pill,
.metric,
.chip,
.badge {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.trust-pill {
  padding: 13px 14px;
}

.trust-pill strong,
.metric strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.trust-pill span,
.metric span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--sea);
  border-radius: 8px;
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--blue-deep);
  font-weight: 800;
}

.tab-button.active {
  background: #fff;
  box-shadow: 0 6px 16px rgba(7, 59, 87, 0.12);
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(7, 59, 87, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 111, 174, 0.14);
}

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

.button,
.icon-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 111, 174, 0.23);
}

.button.secondary,
.icon-button.secondary {
  background: #fff;
  color: var(--blue-deep);
  border-color: rgba(7, 59, 87, 0.18);
}

.button.danger {
  background: rgba(178, 59, 59, 0.1);
  color: var(--danger);
  border-color: rgba(178, 59, 59, 0.24);
}

.button.ghost {
  background: transparent;
  color: var(--blue-deep);
  border-color: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.install-note {
  margin-top: 16px;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(15, 111, 174, 0.16);
  background: rgba(223, 245, 247, 0.78);
  color: var(--blue-deep);
  font-size: 13px;
  line-height: 1.45;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  font-weight: 780;
  text-align: left;
}

.nav-button.active {
  background: var(--sea);
  color: var(--blue-deep);
  border-color: rgba(15, 111, 174, 0.18);
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.profile-mini {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sea-strong);
  color: var(--blue-deep);
  font-weight: 900;
  overflow: hidden;
}

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

.content {
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 34px) 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.panel,
.card,
.event-card,
.member-card,
.chat-card,
.group-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(7, 59, 87, 0.07);
}

.panel {
  padding: 18px;
}

.card,
.event-card,
.member-card,
.chat-card,
.group-card {
  padding: 16px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 13px;
  line-height: 1.42;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metrics.mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  padding: 13px 14px;
  background: #fff;
}

.hero-panel {
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 59, 87, 0.08), rgba(7, 59, 87, 0.78)),
    url("/assets/omazingclub-hero-cyprus.webp") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-panel h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-panel p {
  max-width: 540px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.48;
}

.event-card {
  display: grid;
  gap: 12px;
}

.event-card.official {
  border-color: rgba(228, 184, 75, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 233, 0.9));
}

.event-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.date-tile {
  min-height: 60px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--sea);
  color: var(--blue-deep);
  text-align: center;
  font-weight: 850;
  padding: 6px;
}

.date-tile span {
  display: block;
  color: var(--coral);
  font-size: 12px;
}

.event-card h3,
.member-card h3,
.group-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.22;
}

.event-meta,
.card-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 760;
  background: rgba(223, 245, 247, 0.82);
}

.badge.gold {
  color: #583d00;
  background: rgba(228, 184, 75, 0.24);
  border-color: rgba(228, 184, 75, 0.34);
}

.badge.olive {
  color: #38492a;
  background: rgba(102, 123, 79, 0.14);
  border-color: rgba(102, 123, 79, 0.28);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.filter-chip {
  min-height: 38px;
  border-color: rgba(7, 59, 87, 0.16);
  background: #fff;
  color: var(--blue-deep);
  font-weight: 780;
  padding: 0 12px;
}

.chip.active,
.filter-chip.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.detail-panel {
  position: sticky;
  top: 22px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  gap: 14px;
  align-items: start;
}

.member-browser {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.people-filter {
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.55fr) auto;
}

.profile-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.profile-tile {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(7, 59, 87, 0.08)),
    #fff;
  box-shadow: 0 10px 28px rgba(7, 59, 87, 0.07);
  cursor: pointer;
}

.profile-tile.active {
  border-color: rgba(15, 111, 174, 0.58);
  box-shadow: 0 14px 34px rgba(15, 111, 174, 0.16);
}

.profile-photo .avatar {
  width: 82px;
  height: 82px;
  font-size: 24px;
  margin: 0 auto;
}

.profile-photo.large .avatar {
  width: 96px;
  height: 96px;
  margin: 0;
}

.profile-tile-body {
  text-align: center;
}

.profile-tile-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.profile-tile-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-detail-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.sub-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.sub-panel h3 {
  margin: 0;
  font-size: 15px;
}

.activity-list {
  display: grid;
  gap: 8px;
}

.activity-item {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.activity-item strong {
  font-size: 14px;
}

.activity-item span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
}

.map-panel {
  min-height: 230px;
  border-radius: 8px;
  border: 1px solid rgba(7, 59, 87, 0.15);
  background:
    linear-gradient(135deg, rgba(223, 245, 247, 0.9), rgba(251, 247, 238, 0.95)),
    repeating-linear-gradient(45deg, rgba(15, 111, 174, 0.1) 0 1px, transparent 1px 22px);
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 92px;
  max-width: 150px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(7, 59, 87, 0.16);
  box-shadow: 0 8px 20px rgba(7, 59, 87, 0.12);
  font-size: 12px;
  font-weight: 780;
  color: var(--blue-deep);
}

.map-pin span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  margin-top: 2px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.step {
  min-height: 48px;
  border: 1px solid rgba(7, 59, 87, 0.13);
  border-radius: 8px;
  background: var(--sea);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  font-weight: 800;
}

.step.active {
  background: var(--blue);
  color: #fff;
}

.step.done {
  background: rgba(228, 184, 75, 0.24);
  color: #583d00;
}

.member-grid,
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.member-card,
.group-card {
  display: grid;
  gap: 10px;
}

.member-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.participant-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.6fr) auto;
  gap: 10px;
  align-items: end;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 760;
}

.check-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  background: #fff;
}

.check-dot.on {
  border-color: var(--olive);
  background: var(--olive);
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.chat-card {
  text-align: left;
  width: 100%;
  border-color: var(--line);
}

.chat-card.active {
  border-color: var(--blue);
  background: rgba(223, 245, 247, 0.7);
}

.messages {
  min-height: 300px;
  max-height: 52vh;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px;
}

.message {
  width: fit-content;
  max-width: min(560px, 88%);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sea);
  color: var(--ink);
}

.message.mine {
  justify-self: end;
  background: var(--blue);
  color: #fff;
}

.message small {
  display: block;
  margin-bottom: 3px;
  opacity: 0.72;
}

.message-action {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(7, 59, 87, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 14px 38px rgba(7, 59, 87, 0.24);
}

.toast.error {
  background: var(--danger);
}

@media (max-width: 980px) {
  .auth-page {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.88)),
      url("/assets/omazingclub-hero-cyprus.webp") center / cover no-repeat;
  }

  .auth-panel {
    margin: 0 18px 28px;
  }

  .trust-strip,
  .landing-sections,
  .metrics,
  .layout-grid,
  .member-browser,
  .section-split,
  .chat-layout,
  .filter-grid,
  .people-filter {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    display: none;
  }

  .content {
    padding: 18px 14px 94px;
  }

  .detail-panel {
    position: static;
  }

  .mobile-nav {
    position: fixed;
    z-index: 18;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(7, 59, 87, 0.2);
    backdrop-filter: blur(14px);
  }

  .mobile-nav .nav-button {
    min-height: 50px;
    justify-content: center;
    padding: 0 4px;
    font-size: 11px;
    gap: 4px;
    flex-direction: column;
  }

  .mobile-nav .nav-icon {
    width: 24px;
    height: 24px;
  }

  .profile-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-detail-head {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .profile-photo.large .avatar {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 680px) {
  .auth-copy {
    padding: 24px 18px;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(38px, 14vw, 58px);
  }

  .form-grid,
  .event-head,
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .stepper {
    grid-template-columns: repeat(5, minmax(52px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .step {
    font-size: 11px;
  }

  .event-head {
    display: grid;
  }

  .participant-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .participant-row .button {
    grid-column: 1 / -1;
  }

  .date-tile {
    width: 64px;
  }
}
