/* ═══════════════════════════════════════════════════════════
   OnlyFish — light "creator platform" theme
   (Parody. Original code & assets — no third-party material.)
   ═══════════════════════════════════════════════════════════ */

:root {
  --blue: #00aff0;
  --blue-dark: #0091ca;
  --blue-tint: rgba(0, 175, 240, .12);
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --text: #0f1419;
  --text-2: #8a96a3;
  --border: #e5e9ec;
  --green: #38c172;
  --radius: 12px;
  --font: "Source Sans Pro", "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 0; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  max-width: 960px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.3px;
  color: var(--text); display: flex; align-items: center; gap: 7px;
}
.logo:hover { color: var(--text); text-decoration: none; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
nav.main { display: flex; align-items: center; gap: 18px; }
nav.main a { color: var(--text-2); font-weight: 600; font-size: .95rem; }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main .hello { color: var(--text-2); font-size: .92rem; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 1000px;
  font-weight: 600; font-size: .88rem; cursor: pointer; border: none;
  letter-spacing: .6px; text-transform: uppercase;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  font-family: var(--font); text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-sm { padding: 7px 16px; font-size: .78rem; }
.btn-block { display: block; width: 100%; }
.btn-wide {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 12px 20px;
}

/* ── Profile card (the OF-style page core) ── */
.profile-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 0;
}
@media (min-width: 700px) {
  .profile-card { border-radius: var(--radius); margin-top: 18px; overflow: hidden; }
}

/* Cover = CSS aquarium */
.cover {
  position: relative; height: 190px; overflow: hidden;
  background: linear-gradient(180deg, #35c3f5 0%, #0e9ed8 55%, #0a7fb3 100%);
}
.cover .fish { position: absolute; font-size: 2.3rem; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.cover .fish-1 { top: 30%; animation: swim 15s linear infinite; }
.cover .fish-2 { top: 58%; font-size: 1.5rem; animation: swim 21s linear infinite 4s; opacity: .9; }
.cover .fish-3 { top: 12%; font-size: 1.2rem; animation: swim 26s linear infinite 9s; opacity: .7; }
@keyframes swim {
  0%   { left: -10%; transform: scaleX(1); }
  49%  { left: 100%; transform: scaleX(1); }
  50%  { left: 100%; transform: scaleX(-1); }
  99%  { left: -10%; transform: scaleX(-1); }
  100% { left: -10%; transform: scaleX(1); }
}
.cover .bubble {
  position: absolute; bottom: -18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.75), rgba(255,255,255,.15));
  animation: rise linear infinite;
}
@keyframes rise { to { transform: translateY(-260px) translateX(10px); opacity: 0; } }
.b1 { left: 15%; width: 11px; height: 11px; animation-duration: 7s; }
.b2 { left: 40%; width: 6px;  height: 6px;  animation-duration: 9s;  animation-delay: 2s; }
.b3 { left: 64%; width: 14px; height: 14px; animation-duration: 6s;  animation-delay: 1s; }
.b4 { left: 85%; width: 8px;  height: 8px;  animation-duration: 11s; animation-delay: 4s; }
.cover .seaweed {
  position: absolute; bottom: -6px; font-size: 2rem;
  transform-origin: bottom center; animation: sway 4s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.cover .cover-stats {
  position: absolute; top: 12px; left: 14px;
  background: rgba(0, 0, 0, .35); color: #fff;
  padding: 4px 12px; border-radius: 1000px; font-size: .8rem; font-weight: 600;
  display: flex; gap: 14px;
}

/* Avatar row */
.id-row { padding: 0 20px; position: relative; }
.avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #bfeafc, #57c7f2 60%, #1a9fd8);
  border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin-top: -50px; position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.avatar .online-dot {
  position: absolute; bottom: 7px; right: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green); border: 2.5px solid #fff;
}
.id-row .actions { position: absolute; right: 16px; top: 12px; display: flex; gap: 8px; }
.id-row .round-icon {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; color: var(--blue);
}
.id-row .round-icon:hover { background: var(--blue-tint); }

.who { padding: 10px 20px 4px; }
.who h1 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 6px;
}
.who .check {
  color: var(--blue); font-size: 1rem;
}
.who .handle { color: var(--text-2); font-size: .92rem; }
.who .status { color: var(--text-2); font-size: .85rem; margin-top: 2px; }
.who .status .dot { color: var(--green); }

.bio { padding: 12px 20px 6px; font-size: .95rem; color: var(--text); }
.bio .more { color: var(--text-2); font-size: .88rem; margin-top: 6px; }

/* Subscription block */
.sub-block { padding: 14px 20px 20px; }
.sub-block h2 {
  font-size: .8rem; font-weight: 700; color: var(--text-2);
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 10px;
}
.sub-block .btn-wide { margin-bottom: 10px; }
.sub-block .btn-wide .price { font-weight: 700; }
.bundles { margin-top: 6px; }
.bundle {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--blue); border-radius: 1000px;
  padding: 11px 20px; margin-bottom: 10px; color: var(--blue);
  font-weight: 600; font-size: .88rem; letter-spacing: .6px;
  text-transform: uppercase; cursor: pointer;
  transition: background .15s ease;
}
.bundle:hover { background: var(--blue-tint); text-decoration: none; color: var(--blue-dark); }
.bundle .save { font-size: .78rem; opacity: .85; }

/* Tabs + locked grid */
.tabs {
  display: flex; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tabs a {
  flex: 1; text-align: center; padding: 13px 0;
  color: var(--text-2); font-weight: 700; font-size: .82rem;
  letter-spacing: .6px; text-transform: uppercase;
}
.tabs a.active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.tabs a:hover { text-decoration: none; color: var(--blue); }

.locked-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; background: var(--bg);
}
.locked-tile {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 50%),
    linear-gradient(160deg, #9adcf7 0%, #3fb7e8 60%, #1489bd 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.locked-tile .blur-fish {
  font-size: 2.6rem; filter: blur(7px) saturate(1.2); opacity: .85;
}
.locked-tile .lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .4px;
  background: rgba(0, 0, 0, .18); text-transform: uppercase;
}
.locked-tile .lock .padlock { font-size: 1.5rem; }
.locked-cta {
  background: var(--bg); padding: 18px 20px 26px; text-align: center;
  color: var(--text-2); font-size: .92rem;
  border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius);
}
.locked-cta strong { color: var(--text); }

/* ── Info sections under the card ── */
.panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 18px 0; padding: 22px 20px;
}
.panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 2px; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 600; cursor: pointer; font-size: .95rem; }
.faq details p { color: var(--text-2); margin-top: 8px; font-size: .92rem; }

/* ── Auth pages (split layout) ── */
.auth-split {
  min-height: calc(100vh - 57px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -.3px; }
.auth-card .sub { color: var(--text-2); font-size: .93rem; margin-bottom: 22px; }
.auth-blue-side {
  background: linear-gradient(160deg, #00aff0 0%, #0083c9 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; padding: 40px; text-align: center; gap: 14px;
  position: relative; overflow: hidden;
}
.auth-blue-side .big-logo {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -1px;
  display: flex; align-items: center; gap: 12px;
}
.auth-blue-side .big-logo .mark {
  width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-size: .8em;
}
.auth-blue-side p { font-size: 1.05rem; opacity: .95; max-width: 34ch; }
.auth-blue-side .swimmer { position: absolute; font-size: 2rem; opacity: .35; }
.s1 { top: 12%; animation: swim 18s linear infinite; }
.s2 { top: 78%; animation: swim 24s linear infinite 5s; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: .95rem; font-family: var(--font);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.auth-card .swap { text-align: center; margin-top: 18px; color: var(--text-2); font-size: .9rem; }
.auth-card .legal { margin-top: 16px; color: var(--text-2); font-size: .78rem; text-align: center; }
.alert { padding: 11px 14px; border-radius: 8px; font-size: .9rem; margin-bottom: 16px; }
.alert-error { background: #fdecee; border: 1px solid #f5b8c0; color: #c2394d; }
.alert-ok { background: #e8f8f0; border: 1px solid #b5e5cd; color: #23844f; }

/* ── Stream page ── */
.stream-page { padding: 18px 16px 50px; max-width: 960px; margin: 0 auto; }
.stream-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.stream-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.stream-head .mini-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 30%, #bfeafc, #57c7f2 60%, #1a9fd8);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  position: relative;
}
.stream-head .mini-avatar .online-dot {
  position: absolute; bottom: 0; right: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--green); border: 2px solid #fff;
}
.stream-head .names { flex: 1; min-width: 0; }
.stream-head .names strong { display: flex; align-items: center; gap: 5px; font-size: .98rem; }
.stream-head .names span { color: var(--text-2); font-size: .84rem; }
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e6f7fe; color: var(--blue-dark);
  border: 1px solid #b3e7fb;
  padding: 4px 12px; border-radius: 1000px;
  font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.badge-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #f23c57;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.player-shell { position: relative; background: #000; aspect-ratio: 16/9; }
.player-shell video, .player-shell iframe { width: 100%; height: 100%; display: block; border: 0; }
.offline {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  background: linear-gradient(180deg, #35c3f5 0%, #0a7fb3 100%); color: #fff;
}
.offline .zzz { font-size: 3rem; }
.offline strong { font-size: 1.15rem; }
.offline span { opacity: .95; max-width: 46ch; font-size: .92rem; }
.offline code { background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 4px; }

.stream-foot { padding: 12px 16px 16px; }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; }
.reactions button {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 1000px; padding: 8px 16px; color: var(--text); font-size: .92rem;
  cursor: pointer; transition: background .12s ease, border-color .12s ease;
  font-family: var(--font); font-weight: 600;
}
.reactions button:hover { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
.float-emoji { position: fixed; font-size: 2rem; pointer-events: none; animation: floatUp 2.4s ease-out forwards; z-index: 99; }
@keyframes floatUp { to { transform: translateY(-45vh) rotate(20deg); opacity: 0; } }

/* ── Viewing-time badge & paywall ── */
.badge-time {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-soft); color: var(--text-2);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 1000px;
  font-size: .74rem; font-weight: 700; letter-spacing: .4px;
  white-space: nowrap;
}
.badge-time.urgent { background: #fff4e5; border-color: #ffd8a8; color: #b26a00; }

.player-wrap { width: 100%; height: 100%; }
.player-wrap[hidden] { display: none; }

/* When the paywall is showing, the panel sizes to its content
   instead of being locked to the player's 16:9 box. */
.player-shell:has(.paywall:not([hidden])) { aspect-ratio: auto; min-height: 400px; }

.paywall {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; text-align: center; padding: 24px 20px;
  background: linear-gradient(160deg, #35c3f5 0%, #0a7fb3 100%);
  color: #fff; overflow-y: auto;
}
.paywall[hidden] { display: none; }
.paywall .pw-lock { font-size: 2rem; line-height: 1; }
.paywall strong { font-size: 1.12rem; }
.paywall > span { max-width: 48ch; font-size: .89rem; opacity: .95; }
.pw-tiers { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 2px 0; }
.pw-tier {
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px; padding: 9px 15px; min-width: 142px;
  display: flex; flex-direction: column; gap: 1px;
}
.pw-tier.featured { background: rgba(255, 255, 255, .95); color: var(--text); border-color: #fff; }
.pw-tier .pw-name { font-weight: 700; font-size: .85rem; }
.pw-tier .pw-price { font-size: 1.2rem; font-weight: 800; }
.pw-tier .pw-price small { font-size: .66rem; font-weight: 600; opacity: .75; }
.pw-tier .pw-note { font-size: .71rem; opacity: .85; line-height: 1.25; }
.paywall .btn-primary { background: #fff; color: var(--blue-dark); }
.paywall .btn-primary:hover { background: #eaf8ff; color: var(--blue-dark); }
.pw-reset { font-size: .78rem; opacity: .85; }
.paywall .btn { padding: 10px 22px; font-size: .82rem; }

/* ── Upgrade page ── */
.up-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.up-tier {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; display: flex; flex-direction: column; gap: 6px;
}
.up-tier.featured { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.up-tier .up-emoji { font-size: 2rem; }
.up-tier h3 { font-size: 1.05rem; }
.up-tier .up-price { font-size: 1.7rem; font-weight: 800; color: var(--blue); }
.up-tier .up-price small { font-size: .8rem; color: var(--text-2); font-weight: 600; }
.up-tier ul { list-style: none; color: var(--text-2); font-size: .9rem; margin: 10px 0 18px; flex: 1; text-align: left; }
.up-tier ul li { padding: 4px 0; }
.up-tier ul li::before { content: "🫧 "; }
.up-current { color: var(--text-2); font-size: .82rem; font-weight: 600; padding: 11px 0; }
@media (max-width: 760px) { .up-tiers { grid-template-columns: 1fr; } }

/* ── Tank Talk chat ── */
.stream-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.chat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column;
  height: 560px; overflow: hidden;
}
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { color: var(--text-2); font-size: .78rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-empty { color: var(--text-2); font-size: .88rem; text-align: center; margin-top: 30px; }
.chat-msg {
  font-size: .9rem; line-height: 1.35; padding: 7px 11px;
  background: var(--bg-soft); border-radius: 10px; word-wrap: break-word;
  align-self: flex-start; max-width: 95%;
}
.chat-msg .who { display: block; font-size: .72rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1px; }
.chat-msg.mine { background: var(--blue-tint); align-self: flex-end; }
.chat-msg.mine .who { color: var(--blue-dark); }
.chat-form {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: .9rem; font-family: var(--font); min-width: 0;
}
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-error { color: #c2394d; font-size: .78rem; padding: 0 14px 8px; min-height: 1em; }
.chat-guest { padding: 12px 14px; border-top: 1px solid var(--border); }

/* ── Admin access switch ── */
.access-panel { border-left: 4px solid var(--border); }
.access-panel.is-locked { border-left-color: var(--text-2); }
.access-panel.is-open { border-left-color: var(--green); }
.access-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.access-text { flex: 1; min-width: 260px; }
.access-switch-form { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.switch {
  width: 62px; height: 34px; border-radius: 999px; border: none; cursor: pointer;
  background: #c8cfd6; position: relative; padding: 0;
  transition: background .18s ease;
}
.switch.on { background: var(--green); }
.switch .knob {
  position: absolute; top: 4px; left: 4px;
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.switch.on .knob { transform: translateX(28px); }
.switch-label { font-size: .78rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; }

.plan-pill {
  border-radius: 999px; padding: 4px 13px; font-size: .78rem; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: filter .12s ease;
}
.plan-pill:hover { filter: brightness(.95); }
.plan-pill.free { background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); }
.plan-pill.paid { background: #fff6dd; color: #a5760a; border: 1px solid #ffdf9e; }

@media (max-width: 900px) {
  .stream-layout { grid-template-columns: 1fr; }
  .chat-card { height: 420px; }
}

/* ── Footer ── */
footer.site {
  border-top: 1px solid var(--border); background: var(--bg);
  padding: 26px 16px; margin-top: 30px;
  color: var(--text-2); font-size: .82rem;
}
footer.site .inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-blue-side { display: none; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.15rem; }
  nav.main { gap: 10px; }
  nav.main a { font-size: .85rem; white-space: nowrap; }
  nav.main .hello { display: none; }
  .btn-sm { padding: 7px 13px; font-size: .74rem; }
  .locked-grid { grid-template-columns: repeat(2, 1fr); }
}
