:root {
  color-scheme: light;
  --ink: #13201f;
  --muted: #61706c;
  --line: rgba(196, 213, 216, 0.82);
  --panel: #ffffff;
  --blue: #2f6f9f;
  --blue-dark: #0b3550;
  --teal: #0f8f82;
  --teal-dark: #0b4e49;
  --cyan: #12b8c8;
  --sand: #f2dfbd;
  --coral: #e35d3f;
  --gold: #d89b32;
  --shadow-xs: 0 4px 10px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 10px 24px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 18px 44px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 28px 80px rgba(3, 20, 31, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(18, 184, 200, 0.24), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(227, 93, 63, 0.12), transparent 24%),
    linear-gradient(135deg, #071f2d 0%, #0b3550 30%, #e8f5f8 30%, #f6fbfb 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
svg path, svg circle, svg rect, svg line, svg polyline, svg polygon { vector-effect: non-scaling-stroke; }

.app-frame {
  width: min(1420px, calc(100% - 64px));
  margin: 22px auto 44px;
  overflow: hidden;
  border: 1px solid rgba(174, 223, 226, 0.48);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 251, 0.98)),
    radial-gradient(circle at top left, rgba(18, 184, 200, 0.12), transparent 32%);
  box-shadow:
    0 34px 120px rgba(3, 24, 38, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 38px);
  border-bottom: 1px solid rgba(12, 70, 84, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 250, 250, 0.9)),
    radial-gradient(circle at 10% 50%, rgba(18, 184, 200, 0.16), transparent 28%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.mobile-menu-button { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-logo { display: block; width: auto; height: 68px; max-width: min(280px, 48vw); object-fit: contain; }

.section-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 10px; }
.section-menu { position: relative; }
.section-menu summary {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 46px;
  padding: 0 36px 0 16px;
  list-style: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #0b2633;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.section-menu summary::-webkit-details-marker { display: none; }
.section-menu summary:hover { background: rgba(47, 111, 159, 0.06); }
.section-menu summary::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.section-menu[open] summary::after { top: 21px; transform: rotate(225deg); }
.section-menu summary span { padding-right: 20px; font-weight: 850; }
.section-menu summary small { display: none; }
.section-menu.active summary {
  border-color: rgba(15, 143, 130, 0.3);
  background: linear-gradient(135deg, rgba(18, 184, 200, 0.16), rgba(15, 143, 130, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 10px 24px rgba(15, 143, 130, 0.12);
}
.section-submenu {
  position: absolute;
  left: 0;
  z-index: 50;
  display: grid;
  gap: 8px;
  min-width: 230px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(207, 217, 220, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.section-submenu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-weight: 800;
}
.section-submenu a.active { border-color: var(--teal); color: var(--teal-dark); box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18); }

.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: max-content; }
.account-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.account-actions .search-action { position: relative; width: 42px; padding: 0; overflow: hidden; color: var(--ink); }
.account-actions .search-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.account-actions .search-action svg { width: 25px; height: 25px; }
.account-actions .primary-action {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #176b8f 0%, #0f8f82 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 107, 143, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 62vh, 700px);
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 20, 31, 0.82) 0%, rgba(3, 20, 31, 0.48) 34%, rgba(3, 20, 31, 0.12) 78%),
    linear-gradient(0deg, rgba(3, 20, 31, 0.58) 0%, rgba(3, 20, 31, 0.04) 58%),
    url("./assets/surfpick-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}
.hero-content { width: min(700px, 100%); color: #fff; }
.eyebrow { color: var(--blue); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; }
.hero-content .eyebrow {
  display: inline-flex;
  width: max-content;
  padding: 7px 11px;
  border: 1px solid rgba(183, 251, 255, 0.22);
  border-radius: 999px;
  background: rgba(18, 184, 200, 0.14);
  color: #b7fbff;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.hero h1 {
  max-width: 11ch;
  margin: 12px 0 16px;
  color: #fff;
  font-size: clamp(3.4rem, 6.6vw, 6rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}
.hero p { width: min(620px, 100%); margin: 0; color: rgba(255, 255, 255, 0.92); font-size: clamp(1rem, 1.8vw, 1.28rem); line-height: 1.45; text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 24px;
  padding: 10px;
  border: 1px solid rgba(183, 251, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 249, 249, 0.9));
  box-shadow: 0 22px 60px rgba(3, 20, 31, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.hero-search input { min-height: 50px; padding: 0 16px; border: 0; background: transparent; color: var(--ink); font-size: 1.02rem; }
.hero-search input:focus { outline: none; }
.hero-search button {
  min-width: 118px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1580aa 0%, #0f8f82 100%);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(15, 143, 130, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  font-weight: 850;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hero-actions a:first-child { background: linear-gradient(135deg, #ffffff, #e5fbfb); color: #06364b; }
.hero-actions a:last-child { background: linear-gradient(135deg, rgba(23, 107, 143, 0.9), rgba(15, 143, 130, 0.9)); color: #fff; }
.hero-actions a:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.metric-row { display: none; }

.section-overview {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1240px, calc(100% - 96px));
  margin: -48px auto 0;
  padding: 0;
}
.section-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  align-items: start;
  min-height: 184px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  color: #fff;
  background: #0b3550;
  box-shadow: 0 24px 70px rgba(4, 31, 48, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.section-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}
.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}
.section-card:hover { transform: translateY(-5px); box-shadow: 0 34px 90px rgba(4, 31, 48, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.section-card--surfers { background: linear-gradient(135deg, rgba(5, 74, 96, 0.98), rgba(12, 174, 190, 0.88)); }
.section-card--photographers { background: linear-gradient(135deg, rgba(15, 39, 67, 0.98), rgba(47, 111, 159, 0.9)); }
.section-card--marketplace { background: linear-gradient(135deg, rgba(4, 72, 65, 0.98), rgba(15, 143, 130, 0.9)); }
.section-card--key-data { background: linear-gradient(135deg, rgba(94, 61, 19, 0.98), rgba(216, 155, 50, 0.92)); }
.section-card-icon, .section-card-main, .section-card-links { position: relative; z-index: 1; }
.section-card-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 16px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
}
.section-card-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-card-main { min-width: 0; }
.section-card small { display: block; margin: 0 0 7px; color: rgba(255, 255, 255, 0.96); font-size: 0.86rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.section-card h2 { margin: 0; max-width: 24ch; color: rgba(255, 255, 255, 0.9); font-size: 0.96rem; line-height: 1.42; }
.section-card-links { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 10px; margin-top: 18px; padding-bottom: 10px; }
.section-card-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.section-card-links a:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.22); color: #fff; }
.chip-icon { display: inline-flex; width: 16px; height: 16px; min-width: 16px; align-items: center; justify-content: center; color: currentColor; opacity: 0.82; }
.chip-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page-shell { position: relative; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; }
.page-shell::before { content: ""; position: absolute; top: 0; left: 50%; z-index: -1; width: min(900px, 90vw); height: 360px; transform: translateX(-50%); background: radial-gradient(circle, rgba(18, 184, 200, 0.12), transparent 58%); pointer-events: none; }
.home-dashboard { display: grid; gap: 24px; padding-top: 0; }
.dashboard-section { display: grid; gap: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; color: #10242b; font-size: clamp(1.4rem, 2vw, 1.82rem); font-weight: 900; letter-spacing: -0.025em; }
.section-heading a { color: var(--blue); font-weight: 900; }

.radar-card, .news-card, .entity-card, .promo-card, .stat-card, .windguru-panel, .activity-panel, .table-panel, .auth-panel, .account-types, .booking-form, .slot-grid, .chart-panel, .not-found {
  border: 1px solid rgba(192, 213, 216, 0.72);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 249, 0.9));
  box-shadow: 0 18px 44px rgba(6, 36, 52, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.radar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.radar-card { position: relative; display: grid; gap: 8px; min-height: 156px; padding: 18px; overflow: hidden; }
.radar-card::before { content: ""; position: absolute; inset: auto -20% -45% -20%; height: 90px; background: radial-gradient(circle, rgba(18, 184, 200, 0.18), transparent 62%); pointer-events: none; }
.radar-card small, .news-card small, .entity-card small, .stat-card small, .promo-card small, .experience-card small { color: var(--muted); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.radar-card strong { color: #092b3d; font-size: 1.35rem; line-height: 1; }
.radar-card span { color: var(--ink); font-weight: 750; }
.radar-card em { align-self: end; color: var(--teal); font-style: normal; font-weight: 900; }
.radar-card.alert em { color: var(--coral); }
.mini-chart { display: flex; align-items: end; gap: 4px; height: 34px; }
.mini-chart i { flex: 1; height: 30%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #58d1d4, var(--blue)); }
.mini-chart i:nth-child(2) { height: 52%; }
.mini-chart i:nth-child(3) { height: 40%; }
.mini-chart i:nth-child(4) { height: 78%; }
.news-card { display: grid; gap: 12px; min-height: 156px; padding: 18px; }
.news-row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; }
.news-row > span { min-height: 74px; border-radius: 16px; background: url("./assets/surfpick-hero.png") center / cover; }
.news-row strong { display: block; line-height: 1.25; }
.news-row p { margin: 6px 0; color: var(--muted); }
.news-row a { color: var(--blue); font-weight: 900; }

.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.album-card { position: relative; display: grid; align-content: end; min-height: 186px; padding: 16px; overflow: hidden; border-radius: 26px; color: #fff; box-shadow: 0 22px 54px rgba(5, 31, 44, 0.18); }
.album-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 20, 31, 0.88), rgba(3, 20, 31, 0.08)), linear-gradient(135deg, rgba(18, 184, 200, 0.22), transparent 44%), url("./assets/surfpick-hero.png") center / cover; }
.album-card span, .album-card strong { position: relative; z-index: 1; }
.album-card span { color: rgba(255, 255, 255, 0.82); font-size: 0.86rem; font-weight: 760; }
.album-card strong { margin-top: 4px; font-size: 1.05rem; }

.focus-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: stretch; }
.focus-list { display: grid; gap: 10px; }
.focus-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center; min-height: 74px; padding: 10px; border: 1px solid rgba(215, 223, 220, 0.78); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 248, 248, 0.92)); box-shadow: var(--shadow-xs); transition: transform 160ms ease, box-shadow 160ms ease; }
.focus-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.focus-thumb { height: 48px; border-radius: 14px; background: url("./assets/surfpick-hero.png") center / cover; }
.focus-row strong, .focus-row small { display: block; }
.focus-row small { margin-top: 2px; color: var(--muted); }
.focus-row em { color: var(--ink); font-style: normal; font-weight: 900; }
.experience-card { position: relative; display: grid; align-content: end; gap: 10px; min-height: 100%; padding: 20px; overflow: hidden; border-radius: 24px; color: #fff; box-shadow: 0 18px 44px rgba(17, 24, 39, 0.14); }
.experience-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7, 31, 45, 0.9), rgba(15, 143, 130, 0.62)), radial-gradient(circle at 82% 12%, rgba(242, 223, 189, 0.32), transparent 30%), url("./assets/surfpick-hero.png") center / cover; }
.experience-card small, .experience-card strong, .experience-card a { position: relative; z-index: 1; }
.experience-card small { color: rgba(255, 255, 255, 0.82); }
.experience-card strong { font-size: 1.35rem; line-height: 1.18; }
.experience-card a { color: #fff; font-weight: 900; }

.trust-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px; border: 1px solid rgba(214, 223, 225, 0.82); border-radius: 24px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06); }
.trust-bar article { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; padding: 6px 4px; }
.trust-icon, .trust-bar article > span { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, rgba(47, 111, 159, 0.14), rgba(15, 118, 110, 0.22)); color: var(--blue); box-shadow: var(--shadow-xs); }
.trust-icon svg { width: 20px; height: 20px; }
.trust-bar strong { display: block; font-size: 0.95rem; }
.trust-bar p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

.toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 20px; }
.search-wrap, .stack-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
input, select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid rgba(205, 216, 219, 0.9); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
input:focus, select:focus { outline: none; border-color: rgba(47, 111, 159, 0.45); box-shadow: 0 0 0 4px rgba(47, 111, 159, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.filter-row, .embed-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-row button, .embed-controls button, .slot-grid button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(205, 216, 219, 0.9); border-radius: 14px; background: linear-gradient(180deg, #ffffff, #eef7f8); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-xs); transition: all 160ms ease; }
.filter-row button:hover, .embed-controls button:hover, .slot-grid button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.filter-row button.active, .embed-controls button.active, .slot-grid button.active { border-color: #d56844; background: linear-gradient(135deg, var(--coral), #d95b3f); color: #fff; box-shadow: 0 12px 24px rgba(213, 104, 68, 0.26); }

.content-grid, .dashboard-grid, .promo-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entity-card, .promo-card { display: grid; min-height: 230px; padding: 22px; }
.entity-card h2, .promo-card h2, .activity-panel h2, .table-panel h2, .auth-panel h2 { margin: 6px 0 8px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.entity-card h2, .promo-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.entity-card p, .promo-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.entity-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: end; margin-top: 18px; }
.entity-footer span { color: var(--teal-dark); font-weight: 900; }
.entity-footer button, .promo-card button, .stack-form button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #176b8f 0%, #0f8f82 100%); color: #fff; font-weight: 850; }
.activity-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; margin-top: 20px; padding: 22px; }
.activity-panel ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.8; }

.windguru-panel { display: grid; gap: 16px; margin-top: 20px; padding: 22px; }
.windguru-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.windguru-header h2 { margin: 6px 0 0; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.windguru-header a, .windguru-fallback a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--teal-dark); font-weight: 850; white-space: nowrap; }
.windguru-spot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.windguru-spot-row button { display: grid; align-content: center; gap: 4px; min-height: 78px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; }
.windguru-spot-row button span { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.windguru-spot-row button.active { border-color: var(--teal); background: linear-gradient(180deg, #ffffff, #eefafa); }
.windguru-widget-shell { overflow-x: auto; min-height: 430px; border: 1px solid var(--line); border-radius: 18px; background: #f9fbfb; }
.windguru-widget-host { min-width: 760px; padding: 14px; }
.windguru-widget-host > p { margin: 0; color: var(--muted); font-weight: 760; }
.windguru-fallback { display: grid; gap: 10px; width: min(520px, 100%); padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.windguru-fallback span { color: var(--muted); }

.auth-layout, .booking-layout { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr); gap: 18px; }
.auth-panel, .booking-form, .slot-grid, .account-types { padding: 22px; }
.stack-form { display: grid; gap: 14px; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; border: 0; margin: 0; }
.segmented label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.segmented input { width: auto; min-height: auto; }
.form-note { min-height: 24px; margin: 0; color: var(--teal-dark); font-weight: 800; }
.account-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.account-types span { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; background: #eef6f4; color: var(--teal-dark); font-weight: 850; }

.banner-stage { display: grid; gap: 18px; }
.ad-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 120px; padding: clamp(18px, 4vw, 32px); border-radius: 24px; background: linear-gradient(90deg, rgba(15, 118, 110, 0.94), rgba(47, 111, 159, 0.86)), url("./assets/surfpick-hero.png") center / cover; color: #fff; }
.ad-banner small, .ad-banner strong { display: block; }
.ad-banner small { color: #d3fff6; font-weight: 850; text-transform: uppercase; }
.ad-banner strong { max-width: 680px; font-size: clamp(1.2rem, 4vw, 2.2rem); line-height: 1.08; }
.ad-banner a { display: inline-flex; align-items: center; justify-content: center; min-width: 122px; min-height: 42px; padding: 0 16px; border-radius: 14px; background: #fff; color: var(--teal-dark); font-weight: 850; }
.stat-card { display: grid; min-height: 158px; padding: 20px; }
.stat-card strong { font-size: 3rem; line-height: 1; }
.stat-card span { align-self: end; color: var(--muted); }
.table-panel { margin-top: 18px; padding: 20px; }
.table-row { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.table-row.header { color: var(--muted); font-weight: 850; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot-grid button { min-height: 72px; }
.chart-panel { display: flex; grid-column: span 3; align-items: end; gap: 12px; min-height: 260px; padding: 24px; }
.chart-panel span { flex: 1; min-width: 32px; height: var(--height); border-radius: 12px 12px 0 0; background: linear-gradient(180deg, var(--gold), var(--coral)); }
.not-found { padding: 28px; }
.mobile-tabbar { display: none; }

@media (max-width: 820px) {
  body { padding-bottom: 82px; background: radial-gradient(circle at 50% -4%, rgba(18, 184, 200, 0.26), transparent 34%), linear-gradient(180deg, #071f2d 0%, #0b3550 18%, #eaf7f8 18%, #f7fbfb 100%); }
  .app-frame { width: min(430px, calc(100% - 24px)); margin: 12px auto 22px; border-radius: 34px; box-shadow: 0 24px 70px rgba(3, 20, 31, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
  .site-header { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; justify-items: center; padding: 16px 16px 10px; border-bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 251, 251, 0.76)); }
  .mobile-menu-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; overflow: hidden; color: transparent; border: 0; background: transparent; }
  .mobile-menu-button::before, .mobile-menu-button::after { content: ""; position: absolute; width: 20px; height: 2px; background: var(--ink); box-shadow: 0 7px 0 var(--ink); }
  .mobile-menu-button::after { box-shadow: none; transform: translateY(-7px); }
  .brand-logo { height: 60px; max-width: 210px; }
  .section-nav { display: none; }
  body.show-mobile-menu .section-nav { display: grid; grid-column: 1 / -1; width: 100%; margin-top: 8px; grid-template-columns: 1fr; }
  body.show-mobile-menu .section-menu { width: 100%; }
  body.show-mobile-menu .section-submenu { position: static; min-width: 100%; box-shadow: none; }
  .account-actions { justify-self: end; min-width: 44px; }
  .account-actions a:not(.search-action) { display: none; }
  .hero { min-height: 430px; align-items: end; margin: 0 14px; padding: 20px; border-radius: 24px; box-shadow: 0 24px 64px rgba(3, 20, 31, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
  .hero-media { background: linear-gradient(180deg, rgba(3, 20, 31, 0.2), rgba(3, 20, 31, 0.78)), linear-gradient(90deg, rgba(3, 20, 31, 0.44), rgba(3, 20, 31, 0.08)), url("./assets/surfpick-hero.png") center / cover no-repeat; }
  .hero h1 { max-width: 10ch; font-size: clamp(2.1rem, 8vw, 3rem); }
  .hero p { font-size: 0.98rem; line-height: 1.45; }
  .hero-search { grid-template-columns: 1fr; margin-top: 14px; padding: 10px; border-radius: 18px; }
  .hero-search input { min-height: 48px; }
  .hero-search button { width: 100%; min-height: 48px; border-radius: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions a { width: 100%; min-height: 44px; border-radius: 14px; }
  .section-overview { width: calc(100% - 28px); grid-template-columns: repeat(4, minmax(178px, 1fr)); gap: 12px; overflow-x: auto; margin-top: 22px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .section-card { grid-template-columns: 1fr; justify-items: start; min-width: 178px; min-height: 170px; padding: 16px; border-radius: 22px; text-align: left; scroll-snap-align: start; }
  .section-card::before { left: 16px; right: 16px; bottom: 13px; }
  .section-card-icon { width: 56px; height: 56px; min-width: 56px; border-radius: 18px; }
  .section-card-icon svg { width: 26px; height: 26px; }
  .section-card h2 { display: block; font-size: 0.82rem; line-height: 1.35; }
  .section-card-links { display: none; }
  .page-shell { width: calc(100% - 28px); padding: 24px 0 34px; }
  .toolbar, .activity-panel, .windguru-header, .auth-layout, .booking-layout { grid-template-columns: 1fr; }
  .content-grid, .dashboard-grid, .promo-layout { grid-template-columns: 1fr; }
  .home-dashboard { gap: 22px; }
  .radar-grid { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .radar-card { min-width: 150px; border-radius: 20px; }
  .news-card { min-width: 240px; border-radius: 20px; }
  .album-grid { display: grid; grid-template-columns: repeat(3, minmax(142px, 1fr)); overflow-x: auto; }
  .album-card { min-height: 146px; }
  .focus-layout, .trust-bar { grid-template-columns: 1fr; }
  .focus-layout { gap: 14px; }
  .experience-card { min-height: 190px; }
  .trust-bar { padding: 14px; }
  .chart-panel { grid-column: auto; }
  .ad-banner { align-items: flex-start; flex-direction: column; }
  .table-row { grid-template-columns: 1fr; }
  .windguru-header { display: grid; align-items: flex-start; }
  .windguru-spot-row { grid-template-columns: 1fr; }
  .windguru-widget-host { min-width: 680px; }
  .filter-row { gap: 8px; }
  .mobile-tabbar { position: fixed; left: 50%; bottom: 12px; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); width: min(398px, calc(100% - 24px)); min-height: 68px; transform: translateX(-50%); border: 1px solid rgba(192, 213, 216, 0.72); border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 248, 248, 0.86)); box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
  .mobile-tabbar a { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 0.74rem; font-weight: 800; }
  .mobile-tabbar a span, .mobile-tabbar-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #eef6f7 0%, #e6f0f4 100%); color: var(--blue); font-size: 0.8rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78); }
  .mobile-tabbar-icon svg { width: 17px; height: 17px; }
  .mobile-tabbar a.active { color: var(--blue); }
  .mobile-tabbar a.active span { background: linear-gradient(180deg, #5f8ebf 0%, #2f6f9f 100%); color: #fff; box-shadow: 0 10px 18px rgba(47, 111, 159, 0.22); }
}

@media (max-width: 520px) {
  .hero { padding: 20px; }
  .metric-row { align-items: stretch; flex-direction: column; }
  .metric-row span { width: 100%; }
  .entity-footer, .slot-grid, .segmented, .account-types { grid-template-columns: 1fr; }
  .entity-footer { display: grid; }
  .entity-footer button, .promo-card button { width: 100%; }
}

/* === SURFPIC auth/session + photographer panel additions === */
.user-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  max-width: 190px;
  min-height: 42px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 143, 130, 0.22);
  border-radius: 14px;
  background: rgba(238, 250, 250, 0.9);
  color: var(--teal-dark);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.user-pill small {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.logout-action,
.panel-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(227, 93, 63, 0.26);
  border-radius: 14px;
  background: rgba(227, 93, 63, 0.08);
  color: var(--coral);
  font-weight: 900;
  white-space: nowrap;
}

.account-actions .logout-action:hover,
.panel-actions button:hover {
  background: rgba(227, 93, 63, 0.13);
}

.auth-actions-inline {
  margin-top: 18px;
}

.auth-state-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.form-note.error {
  color: var(--coral);
}

.photographer-workspace {
  display: grid;
  gap: 22px;
}

.panel-header,
.panel-card,
.api-gallery-section {
  border: 1px solid rgba(192, 213, 216, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 249, 0.9));
  box-shadow:
    0 18px 44px rgba(6, 36, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.panel-header h2,
.panel-card h3 {
  margin: 6px 0 8px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-actions a,
.api-gallery-section .section-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #176b8f 0%, #0f8f82 100%);
  color: #fff;
  font-weight: 850;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.panel-card {
  padding: 22px;
}

.panel-card-wide {
  width: min(720px, 100%);
}

.inline-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.upload-form small {
  color: var(--muted);
  font-weight: 800;
}

.api-gallery-section {
  padding: 22px;
}

.api-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.api-gallery > p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.api-photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.api-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef7f8;
}

.api-photo-card div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.api-photo-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.api-photo-card em {
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 820px) {
  .account-actions .user-pill,
  .account-actions .logout-action {
    display: none;
  }

  .panel-grid,
  .api-gallery {
    grid-template-columns: 1fr;
  }

  .panel-header {
    display: grid;
  }
}

/* SURFPIC auth UI force styles */
.user-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  max-width: 210px;
  padding: 0 14px;
  border: 1px solid rgba(15, 143, 130, 0.22);
  border-radius: 14px;
  background: rgba(238, 250, 250, 0.94);
  color: var(--teal-dark, #0b4e49);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-pill small {
  margin-top: 3px;
  color: var(--muted, #61706c);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.logout-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(227, 93, 63, 0.26);
  border-radius: 14px;
  background: rgba(227, 93, 63, 0.08);
  color: var(--coral, #e35d3f);
  font-weight: 900;
}

.form-note.error {
  color: var(--coral, #e35d3f);
}


/* SURFPIC register role cards */
.account-role-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0 0 4px;
  border: 0;
}

.account-role-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 900;
  font-size: 1rem;
}

.role-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 2px solid rgba(196, 213, 216, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 250, 250, 0.86));
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(6, 36, 52, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 143, 130, 0.38);
  box-shadow: 0 18px 42px rgba(6, 36, 52, 0.13);
}

.role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(18, 184, 200, 0.12);
  color: var(--teal-dark);
}

.role-card-icon svg {
  width: 25px;
  height: 25px;
}

.role-card strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.role-card small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 750;
}

.role-card:has(input:checked) {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(18, 184, 200, 0.16), rgba(15, 143, 130, 0.16)), #ffffff;
  box-shadow: 0 18px 46px rgba(15, 143, 130, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.role-card:has(input:checked)::after {
  content: "Seleccionado";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .account-role-picker {
    grid-template-columns: 1fr;
  }
}

/* SURFPIC UX: album selector for uploads */
.album-helper {
  margin: -4px 0 0;
  color: var(--muted, #61706c);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.upload-form select[data-album-select] {
  min-height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 250, 250, 0.86));
  color: var(--ink, #13201f);
  font-weight: 900;
}

.upload-form select[data-album-select]:disabled {
  color: var(--muted, #61706c);
  opacity: 0.72;
  cursor: not-allowed;
}

/* SURFPIC UX v4: upload CTA scroll target */
#upload-photo-section {
  scroll-margin-top: 120px;
}

@media (max-width: 820px) {
  #upload-photo-section {
    scroll-margin-top: 32px;
  }
}

/* SURFPIC public albums + catalog position fix */
.public-albums-page {
  padding-top: 36px;
}

.public-albums-header {
  margin-bottom: 22px;
}

.public-albums-page .api-gallery-section {
  margin-top: 0;
}

.app-frame > .section-overview:last-child {
  margin-top: 34px;
  margin-bottom: 56px;
}

.public-albums-page .api-gallery {
  min-height: 220px;
}

.public-albums-page .api-photo-card {
  cursor: pointer;
}

.public-albums-page .api-photo-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 820px) {
  .app-frame > .section-overview:last-child {
    margin-top: 22px;
    margin-bottom: 34px;
  }
}


/* =====================================================
   SURFPIC SIMPLE MARKETPLACE UX v5
===================================================== */
.simple-app-frame {
  background: #f6fbfb;
}

.simple-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding: 16px clamp(18px, 4vw, 34px);
  border-bottom: 1px solid rgba(12, 70, 84, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.simple-brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.simple-brand img {
  width: auto;
  height: 64px;
  max-width: min(230px, 34vw);
  object-fit: contain;
}

.simple-main-nav,
.simple-account-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.simple-main-nav {
  justify-content: center;
}

.simple-main-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #193132;
  font-weight: 850;
  white-space: nowrap;
}

.simple-main-nav a:hover,
.simple-main-nav a.active {
  background: rgba(18, 184, 200, 0.12);
  color: var(--teal-dark);
}

.simple-account-nav {
  justify-content: flex-end;
  min-width: max-content;
}

.simple-account-nav a,
.simple-account-nav button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(196, 213, 216, 0.75);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.simple-account-nav button {
  color: var(--coral);
  background: rgba(227, 93, 63, 0.08);
}

.simple-login svg {
  width: 18px;
  height: 18px;
}

.simple-register,
.simple-upload-link {
  border-color: rgba(255,255,255,.16) !important;
  background: linear-gradient(135deg, #176b8f, #0f8f82) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(23, 107, 143, 0.2);
}

.simple-user-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(15, 143, 130, 0.24);
  border-radius: 14px;
  background: rgba(238, 250, 250, 0.92);
  color: var(--teal-dark);
  line-height: 1.05;
  white-space: nowrap;
}

.simple-user-pill strong {
  font-size: .9rem;
}

.simple-user-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.simple-home-page,
.simple-marketplace-page {
  display: grid;
  gap: 24px;
}

.simple-home-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 68px);
  border-radius: 0 0 34px 34px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3,20,31,.84), rgba(3,20,31,.38) 46%, rgba(3,20,31,.08)),
    linear-gradient(0deg, rgba(3,20,31,.58), rgba(3,20,31,.04)),
    url("./assets/surfpick-hero.png") center / cover no-repeat;
  box-shadow: 0 26px 70px rgba(3, 20, 31, 0.22);
}

.simple-home-hero > div {
  width: min(720px, 100%);
}

.simple-home-hero .eyebrow,
.simple-market-hero .eyebrow {
  display: inline-flex;
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(18,184,200,.14);
  color: #b7fbff;
}

.simple-home-hero h1,
.simple-market-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 950;
}

.simple-home-hero p {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: 1.16rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.simple-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(760px, 100%);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(183,251,255,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 50px rgba(3,20,31,.22);
}

.simple-search input {
  border: 0;
  background: transparent;
  min-height: 48px;
}

.simple-search button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: linear-gradient(135deg, #176b8f, #0f8f82);
  color: #fff;
  font-weight: 900;
}

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

.simple-hero-actions a,
.simple-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  color: #07364a;
  font-weight: 900;
  box-shadow: var(--shadow-xs);
}

.simple-market-page {
  min-height: 70vh;
  padding: clamp(36px, 5vw, 70px) clamp(18px, 4vw, 38px);
  background:
    radial-gradient(circle at 14% 0%, rgba(18,184,200,.12), transparent 30%),
    linear-gradient(180deg, #171936 0%, #171936 52%, #f6fbfb 52%, #f6fbfb 100%);
  color: #fff;
}

.simple-market-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  margin: 0 auto 34px;
  max-width: 920px;
}

.simple-market-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
}

.simple-market-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 1.08rem;
  line-height: 1.45;
}

.simple-market-search {
  grid-template-columns: 1fr auto auto;
  margin-top: 18px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}

.simple-market-search input {
  color: #fff;
}

.simple-market-search input::placeholder {
  color: rgba(255,255,255,.55);
}

.simple-filter-button {
  background: rgba(255,255,255,.08) !important;
}

.simple-album-grid,
.simple-photographer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.simple-album-card {
  position: relative;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f1329;
  color: #fff;
  box-shadow: 0 20px 54px rgba(0,0,0,.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.simple-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 68px rgba(0,0,0,.25);
}

.simple-album-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,10,22,.86), rgba(8,10,22,.08) 60%);
}

.simple-card-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .8rem;
  font-weight: 750;
}

.simple-album-card > div {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 18px;
}

.simple-album-card strong,
.simple-album-card small,
.simple-album-card em {
  display: block;
}

.simple-album-card strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.simple-album-card small {
  margin-top: 6px;
  color: rgba(255,255,255,.84);
  line-height: 1.3;
}

.simple-album-card em {
  margin-top: 7px;
  color: #84ef66;
  font-style: normal;
  font-weight: 900;
}

.simple-album-detail-page {
  min-height: 70vh;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, #23313d 0 180px, #171936 180px 100%);
  color: #fff;
}

.simple-album-meta {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  gap: 20px;
  margin: 22px 0 24px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(28, 30, 68, 0.98);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.simple-album-meta small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 850;
}

.simple-album-meta strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.simple-watermark-notice {
  margin: 0 0 28px;
  padding: 12px 16px;
  border: 1px solid rgba(132,239,102,.32);
  border-radius: 10px;
  background: rgba(132,239,102,.07);
  color: #84ef66;
  text-align: center;
  font-weight: 750;
}

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

.simple-photo-card {
  overflow: hidden;
  border-radius: 14px;
  background: #0f1329;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.simple-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.simple-photo-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.simple-photo-card span {
  color: #84ef66;
  font-weight: 900;
}

.simple-photographer-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.simple-photographer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.simple-photographer-card div {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.simple-photographer-card strong {
  font-size: 1.1rem;
}

.simple-photographer-card small {
  color: rgba(255,255,255,.72);
}

.simple-photographer-card a {
  color: #84ef66;
  font-weight: 900;
}

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

.simple-service-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(196,213,216,.72);
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.simple-service-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(18,184,200,.12);
  color: var(--teal-dark);
}

.simple-service-card svg {
  width: 28px;
  height: 28px;
}

.simple-service-card strong {
  font-size: 1.2rem;
}

.simple-service-card small {
  color: var(--muted);
  line-height: 1.4;
  font-weight: 750;
}

.simple-empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  text-align: center;
}

@media (max-width: 1100px) {
  .simple-album-grid,
  .simple-photo-grid,
  .simple-photographer-grid,
  .simple-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-site-header {
    grid-template-columns: auto 1fr;
  }

  .simple-main-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .simple-account-nav {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .simple-site-header {
    border-radius: 0;
    padding: 12px 14px;
  }

  .simple-brand img {
    height: 54px;
  }

  .simple-account-nav .simple-register,
  .simple-account-nav .simple-login,
  .simple-account-nav a:not(.simple-upload-link),
  .simple-user-pill {
    display: none;
  }

  .simple-home-hero {
    min-height: 420px;
    border-radius: 24px;
    margin: 14px;
    padding: 22px;
  }

  .simple-home-hero h1 {
    font-size: 2.7rem;
  }

  .simple-search,
  .simple-market-search {
    grid-template-columns: 1fr;
  }

  .simple-market-page {
    padding: 28px 14px 96px;
  }

  .simple-album-grid,
  .simple-photo-grid,
  .simple-photographer-grid,
  .simple-service-grid,
  .simple-album-meta {
    grid-template-columns: 1fr;
  }

  .simple-album-card {
    min-height: 260px;
  }

  .simple-album-detail-page {
    padding: 22px 14px 96px;
  }
  /* =========================================================
   SURFPIC MOBILE HEADER FIX
   Corrige header en mobile vertical:
   - Logo visible
   - Ingresar / Registrarse visibles
   - Menú horizontal scrolleable
   - Evita overflow lateral
========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app-frame {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header base seguro */
.site-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Evita que links largos rompan layout */
.site-header a,
.site-header button {
  white-space: nowrap;
}

/* =========================
   MOBILE / TABLET PORTRAIT
========================= */
@media (max-width: 820px) {
  body {
    min-width: 0;
  }

  .app-frame {
    width: 100%;
    border-radius: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand spacer account"
      "nav nav nav";
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 14px 16px 10px;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .brand-logo {
    width: 132px;
    max-width: 38vw;
    height: auto;
    object-fit: contain;
  }

  .account-actions {
    grid-area: account;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .account-actions .search-action {
    display: none;
  }

  .account-actions a,
  .account-actions button {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 900;
  }

  .account-actions .primary-action {
    padding: 0 14px;
  }

  .user-pill {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-pill small {
    display: none;
  }

  .logout-action {
    min-height: 38px;
    padding: 0 10px;
  }

  .main-nav,
  .section-nav,
  .site-nav {
    grid-area: nav;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 8px 2px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar,
  .section-nav::-webkit-scrollbar,
  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .section-nav a,
  .site-nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(238, 250, 250, 0.72);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 950;
  }

  .main-nav a.active,
  .section-nav a.active,
  .site-nav a.active {
    background: rgba(18, 184, 200, 0.18);
    color: var(--teal-dark);
  }

  /* Si todavía existe algún details/dropdown viejo, lo anulamos en mobile */
  .section-menu {
    flex: 0 0 auto;
  }

  .section-menu summary {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
  }

  .section-submenu {
    display: none !important;
  }

  /* Hero más respirable en mobile */
  .hero {
    margin-top: 18px;
    border-radius: 28px;
  }

  .hero-content {
    padding: 34px 22px 150px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
  }

  .hero p {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .hero-search {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 26px;
  }

  .hero-search input {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .hero-search button {
    width: 100%;
  }
}

/* =========================
   MOBILE CHICO
========================= */
@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand account"
      "nav nav";
    padding: 12px 14px 8px;
  }

  .brand-logo {
    width: 118px;
    max-width: 42vw;
  }

  .account-actions {
    gap: 6px;
  }

  .account-actions a:not(.primary-action) {
    display: inline-flex;
  }

  .account-actions a,
  .account-actions button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .account-actions .primary-action {
    padding: 0 11px;
  }

  .main-nav,
  .section-nav,
  .site-nav {
    margin-left: -2px;
    margin-right: -2px;
  }

  .main-nav a,
  .section-nav a,
  .site-nav a {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

/* =========================
   MOBILE MUY ANGOSTO
   Para iPhone SE / pantallas chicas
========================= */
@media (max-width: 390px) {
  .brand-logo {
    width: 104px;
  }

  .account-actions a,
  .account-actions button {
    font-size: 0.78rem;
    padding: 0 8px;
  }

  .account-actions .primary-action {
    padding: 0 9px;
  }
}

