
/* =================================
   RANDOMMEET - OME TV STYLE DESIGN
================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #080d19;
  --panel: #111b2e;
  --panel2: #17243a;
  --border: #263752;
  --blue: #1685ff;
  --cyan: #21c8ff;
  --text: #ffffff;
  --muted: #9eacc2;
  --green: #35df91;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

.incoming-friend-call[hidden] {
  display: none;
}

.incoming-friend-call {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(94vw, 600px);
  padding: 14px;
  border: 1px solid #404047;
  border-radius: 20px;
  background: #232124;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

.incoming-friend-call-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: #a4a8b2;
}

.incoming-friend-call-avatar svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.incoming-friend-call-avatar svg > circle:first-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.incoming-friend-call-info {
  flex: 1;
  min-width: 0;
}

.incoming-friend-call-info strong,
.incoming-friend-call-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incoming-friend-call-info strong {
  font-size: 17px;
}

.incoming-friend-call-info span {
  margin-top: 4px;
  color: #a4a8b2;
  font-size: 13px;
}

.incoming-friend-call-actions {
  display: flex;
  gap: 10px;
}

.incoming-friend-call-actions button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  color: white;
}

.incoming-friend-call-reject { background: #fb2d3b; }
.incoming-friend-call-accept { background: #20c62d; }

.incoming-friend-call-actions svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 360px) {
  .incoming-friend-call {
    gap: 8px;
    padding: 10px;
  }

  .incoming-friend-call-actions {
    gap: 6px;
  }
}

.friend-call-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #080d19;
  color: var(--text);
}

.friend-call-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.friend-call-dialog-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.friend-call-dialog-heading {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(20px + env(safe-area-inset-top)) 20px 36px;
  background: linear-gradient(rgba(0, 0, 0, 0.75), transparent);
  text-shadow: 0 1px 3px #000;
}

.friend-call-dialog-heading h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.friend-call-dialog-heading p,
.friend-call-status {
  color: var(--muted);
}

.friend-call-dialog-heading .friend-call-duration {
  margin-top: 6px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.friend-call-video-grid {
  position: absolute;
  inset: 0;
}

.friend-call-video-grid #friendCallRemoteVideo {
  width: 100%;
  height: 100%;
  background: #05070c;
  object-fit: cover;
}

.friend-call-video-grid #friendCallLocalVideo {
  position: absolute;
  z-index: 2;
  top: calc(112px + env(safe-area-inset-top));
  right: 16px;
  width: min(28vw, 150px);
  height: min(38vw, 200px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: #202734;
  object-fit: cover;
}

.friend-call-waiting {
  display: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  place-items: center;
  background: linear-gradient(160deg, #1d2c3a, #080d19);
}

.friend-call-dialog.is-connecting .friend-call-waiting {
  display: grid;
}

.friend-call-waiting-avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #394858;
}

.friend-call-waiting-avatar svg {
  width: 72px;
  height: 72px;
  fill: #cbd6df;
}

.friend-call-status {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: calc(105px + env(safe-area-inset-bottom));
  max-width: calc(100% - 40px);
  text-shadow: 0 1px 3px #000;
}

.friend-call-dialog.is-connecting .friend-call-status {
  top: calc(50% + 78px);
  right: 20px;
  bottom: auto;
  text-align: center;
  color: #fff;
}

@media (max-height: 480px) {
  .friend-call-dialog.is-connecting .friend-call-status {
    top: auto;
    bottom: calc(105px + env(safe-area-inset-bottom));
  }
}

.friend-call-controls {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 25px 12px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.friend-call-controls button {
  min-width: 80px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 24px;
  background: #394251;
  color: #fff;
  font-weight: 700;
}

.friend-call-controls #endFriendCallBtn {
  background: #d72f40;
}

.friend-call-controls button[aria-pressed="true"] {
  background: #f0f3f7;
  color: #1a202b;
}

.friend-call-controls button:disabled {
  opacity: 0.55;
}

.friends-dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: auto;
  width: min(94vw, 460px);
  max-height: 80vh;
}

.friends-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.friends-heading,
.friends-actions,
.friends-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.friends-dialog p,
.friends-list li {
  margin-top: 12px;
}

.friends-dialog button {
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
}

.friends-list {
  list-style: none;
}

.friends-list li > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.friends-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

body.friends-page-open,
body.matching-view.friends-page-open {
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background: var(--bg);
}

body.friends-page-open > .navbar,
body.friends-page-open > main.container {
  display: none;
}

.friends-page[hidden],
.friends-page [hidden] {
  display: none;
}

.friends-page {
  min-height: 100vh;
  padding: 28px 20px 60px;
  background: radial-gradient(circle at top, #172b4d, var(--bg) 60%);
}

.friends-page-content {
  max-width: 720px;
  margin: 0 auto;
}

.friends-page-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.friends-page-heading h1 {
  font-size: clamp(22px, 5vw, 30px);
}

.friends-page-heading p,
.friends-panel-description {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.friends-page button {
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}

.friends-page .friends-back {
  font-size: 22px;
  line-height: 1;
}

.friends-refresh {
  margin-left: auto;
}

.friends-tabs {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.friends-tabs button {
  flex: 1;
  border-color: transparent;
  background: transparent;
}

.friends-tabs button[aria-selected="true"] {
  background: #1868ce;
  border-color: #318bff;
}

.friends-notice,
.friends-status,
.friends-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.friends-notice {
  margin-top: 18px;
}

.friends-status:not(:empty) {
  margin-top: 12px;
  color: var(--text);
}

.friends-page [role="tabpanel"] {
  margin-top: 22px;
}

.friends-search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.friends-search {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.friends-empty {
  margin-top: 20px;
}

.friends-online-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.friends-online-filter input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.friends-presence-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.friend-presence {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.friend-presence-online, .presence-online { color: #50e8a2; }
.friend-presence-offline, .presence-offline { color: #a4afbf; }

.friends-page .friends-list li {
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.friends-page .friends-list .friend-row {
  gap: 6px;
  margin-top: 6px;
  padding: 6px 8px;
}

.friend-name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-gender {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #273951;
  color: #d3deec;
  font-size: 19px;
  font-weight: bold;
}

.friend-gender-male {
  color: #78c5ff;
}

.friend-gender-female {
  color: #ffa9d9;
}

.friends-page .friend-row .friends-row-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 4px;
}

.friends-page .friend-row button {
  min-height: 44px;
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 13px;
}

.friends-page-actions {
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .friends-page {
    padding: 20px 14px 40px;
  }

  .friends-page-heading {
    gap: 9px;
  }

  .friends-page .friends-list li:not(.friend-row) {
    align-items: flex-start;
  }

  .friends-list li:not(.friend-row) .friends-row-actions {
    max-width: 145px;
  }
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
  transition: 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.navbar {
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0c1526;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.logo span,
.hero h1 span {
  color: var(--cyan);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.age-badge {
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}

.age-badge i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 10px var(--green);
}

.login-btn,
#headerLogoutBtn,
#adminPanelBtn,
#headerProfileBtn {
  border: 1px solid #345276;
  border-radius: 8px;
  background: var(--panel2);
  color: white;
  padding: 10px 23px;
}

.login-btn:hover,
#headerLogoutBtn:hover,
#adminPanelBtn:hover,
#headerProfileBtn:hover {
  background: var(--blue);
}

.container {
  max-width: 1350px;
  margin: auto;
  padding: 35px 25px;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  background: #112c4d;
  color: #55caff;
  padding: 9px 17px;
  border-radius: 30px;
  font-size: 12px;
  margin-bottom: 17px;
  border: 1px solid #205080;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.landing-page[hidden],
.call-card[hidden] {
  display: none !important;
}

.landing-page {
  padding: clamp(24px, 5vw, 58px) 18px 34px;
  border: 1px solid rgba(38, 55, 82, 0.75);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(22, 133, 255, 0.22), transparent 42%),
    radial-gradient(ellipse at 85% 85%, rgba(33, 200, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #101a2d, #0b1221 58%, #111b2e);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.landing-page .hero {
  margin-bottom: 30px;
}

.landing-page .hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: 0.035em;
}

.landing-page .hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(15px, 2vw, 19px);
}

.landing-start {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 13, 25, 0.76);
}

.landing-start h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 21px;
}

.landing-guest-options label {
  display: block;
  margin: 14px 0 7px;
  color: #dce8f8;
  font-size: 14px;
}

.landing-guest-options select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #344966;
  border-radius: 8px;
  background: var(--panel2);
  color: var(--text);
}

.landing-interests {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #344966;
  border-radius: 12px;
  text-align: left;
}

.landing-interests legend {
  padding: 0 6px;
  color: #dce8f8;
  font-size: 14px;
  font-weight: 700;
}

.landing-interests > p:not(.landing-interest-message) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.landing-interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-interest-options label {
  position: relative;
  cursor: pointer;
}

.landing-interest-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.landing-interest-options span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #405775;
  border-radius: 8px;
  background: var(--panel2);
  color: #dce8f8;
  font-size: 14px;
}

.landing-interest-options span::after {
  content: "+";
  font-size: 17px;
  font-weight: 700;
}

.landing-interest-options input:checked + span {
  border-color: var(--cyan);
  background: #1263ab;
  color: white;
}

.landing-interest-options input:checked + span::after {
  content: "×";
}

.landing-interest-options input:focus-visible + span {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.landing-interest-message {
  min-height: 18px;
  margin-top: 7px;
  color: #ffb4b4;
  font-size: 12px;
}

.landing-account-note,
.landing-disclaimer {
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.landing-start-button {
  width: 100%;
  min-height: 60px;
  margin-top: 20px;
  font-size: 22px;
}

.landing-disclaimer {
  margin-bottom: 0;
  font-size: 12px;
}

.matching-view #homeFeatures,
.matching-view footer {
  display: none !important;
}

.call-card {
  display: grid;
  grid-template-columns: 1.65fr 0.85fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  align-items: stretch;
  min-width: 0;
}

.call-card > * {
  min-width: 0;
}

.video-area {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 490px;
  min-height: 300px;
  background: radial-gradient(circle at center, #14233b, #030711 75%);
  border: 1px solid rgba(22, 133, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(22, 133, 255, 0.08), 0 12px 35px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.video-area video {
  background: #000;
}

html.background-video-hidden .video-area video {
  visibility: hidden;
}

#remoteVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
  border-radius: 12px;
  background: #030813;
}

#localVideo {
  position: absolute;
  width: 145px;
  height: 185px;
  right: 15px;
  bottom: 15px;
  object-fit: cover;
  background: #111;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  display: block;
  z-index: 4;
  max-width: 100%;
}

.placeholder,
#videoPlaceholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 20px;
  z-index: 2;
  pointer-events: none;
}

.camera-icon {
  font-size: 55px;
  margin-bottom: 15px;
}

.video-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(5, 12, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 12px;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
}

.video-like-widget {
  position: absolute;
  z-index: 7;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(15, 20, 40, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
}

.video-like-widget[hidden] {
  display: none !important;
}

.video-like-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ff5277;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease;
}

.video-like-button svg {
  display: block;
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: currentColor;
}

.video-like-button:hover {
  color: #ff174d;
  transform: scale(1.14);
}

.video-like-button:active {
  transform: scale(0.88);
}

.video-like-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.video-like-count {
  min-width: 1ch;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.flying-hearts {
  position: absolute;
  z-index: 8;
  top: 85px;
  left: 33px;
  width: 40px;
  height: 40px;
  overflow: visible;
  pointer-events: none;
}

.flying-heart {
  position: absolute;
  left: 8px;
  bottom: 0;
  color: #ff315f;
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  animation: heart-float 1.15s ease-out forwards;
}

@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) scale(0.55) rotate(-8deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--heart-drift, 0px), -115px, 0) scale(1.35) rotate(12deg);
  }
}

.media-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  visibility: visible !important;
  opacity: 1 !important;
}

.media-controls button {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(15, 20, 40, 0.95);
  color: white;
  font-size: 21px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.media-controls button:hover {
  background: #3568f5;
}

.media-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.video-report-button[hidden] {
  display: none !important;
}

.video-report-button {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 9999;
  display: flex;
  min-height: 40px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 104, 104, .65);
  border-radius: 999px;
  border-color: rgba(255, 104, 104, .65);
  background: rgba(111, 28, 38, .95);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.video-report-button:hover {
  background: #b42335;
}

.video-report-button:disabled {
  cursor: wait;
  opacity: .65;
}

.report-reason-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

.report-reason-dialog::backdrop {
  background: rgba(3, 8, 18, .78);
}

.media-permission-dialog {
  position: fixed;
  top: calc(16px + var(--sat, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + var(--sab, 0px));
  left: calc(16px + env(safe-area-inset-left, 0px));
  width: min(500px, calc(100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: fit-content;
  max-height: calc(100dvh - 32px - var(--sat, 0px) - var(--sab, 0px));
  margin: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  overflow-y: auto;
}

.media-permission-dialog::backdrop {
  background: rgba(3, 8, 18, .78);
}

.media-permission-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.media-permission-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

.report-reason-dialog h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.report-reason-dialog p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.report-reason-dialog label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.report-reason-dialog select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel2);
  color: var(--text);
}

.report-reason-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.report-reason-actions button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.report-reason-cancel {
  background: var(--panel2);
}

.report-reason-submit {
  border-color: var(--blue) !important;
  background: var(--blue);
}

@media (max-width: 600px) {
  .video-report-button {
    top: 10px;
    left: 10px;
  }
}

.settings {
  padding: 12px 8px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.friend-match-controls {
  position: absolute;
  z-index: 9;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: min(230px, 70%);
}

.friend-match-controls[hidden],
.friend-match-button [hidden] {
  display: none;
}

.friend-match-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #6ccfff;
  border-radius: 50%;
  background: #102640;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.friend-match-button.is-eligible {
  cursor: pointer;
  animation: friend-glow 1.4s ease-in-out infinite alternate;
}

.friend-match-button:disabled {
  opacity: 0.8;
}

.friend-match-button svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.friend-match-button.is-accepted {
  color: #7eedac;
  border-color: #7eedac;
}

.friend-match-status {
  margin: 0;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(5, 12, 25, .9);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

@keyframes friend-glow {
  from { box-shadow: 0 0 3px #6ccfff; }
  to { box-shadow: 0 0 15px 4px #20aaff; }
}

@media (prefers-reduced-motion: reduce) {
  .friend-match-button.is-eligible {
    animation: none;
    box-shadow: 0 0 8px #20aaff;
  }
}

.settings h2 {
  font-size: 23px;
  margin: 5px 0 24px;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings label {
  display: block;
  margin: 17px 0 8px;
  color: #c1cee0;
  font-size: 14px;
}

.guest-match-options {
  margin: 0 0 2px;
}

.guest-match-options[hidden] {
  display: none !important;
}

.settings select {
  width: 100%;
  padding: 13px;
  color: white;
  background: var(--panel2);
  border: 1px solid #344966;
  border-radius: 8px;
  outline: none;
  min-width: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.settings select:focus,
.settings select:hover {
  border-color: var(--cyan);
}

.call-types {
  display: flex;
  gap: 10px;
}

.matching-toggle {
  display: none;
}

.matching-actions {
  display: none;
}

.mobile-home-btn {
  display: none;
}

.call-type-label {
  display: block;
  margin: 0 0 8px;
  color: #c1cee0;
  font-size: 14px;
}

.type {
  flex: 1;
  padding: 13px 5px;
  border: 1px solid #344966;
  background: var(--panel2);
  color: white;
  border-radius: 8px;
  min-height: 44px;
  transition: 0.2s ease;
}

.type:hover,
.type.active {
  background: #123d70;
  border-color: var(--blue);
  color: #65ceff;
}

.chat-controls {
  display: flex;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin-top: 22px !important;
  width: 100%;
  align-items: stretch;
}

.chat-controls button {
  flex: 1 1 40%;
  min-width: 0;
  min-height: 44px;
  padding: 14px 8px !important;
  margin: 0 !important;
  border: 1px solid #344966;
  border-radius: 8px;
  font-weight: bold;
  color: white;
}

.start-btn {
  background: linear-gradient(110deg, #0878f9, #16b7f5);
  border: none !important;
  color: white;
}

.start-btn:hover {
  background: linear-gradient(110deg, #0065db, #0798dc);
  transform: translateY(-2px);
}

.next-btn {
  background: #1d2c44;
}

.next-btn:hover {
  background: #29476c;
  border-color: var(--cyan);
}

#stopBtn {
  background: #481e30;
  border-color: #8d3150;
}

#stopBtn:hover {
  background: #9b2445;
}

#previousBtn {
  background: #1d2c44;
}

.notice {
  font-size: 13px;
  color: var(--cyan);
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
  min-height: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.match-chat {
  position: absolute;
  z-index: 6;
  left: 15px;
  bottom: 15px;
  width: min(68%, 520px);
  max-height: 58%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-chat[hidden] {
  display: none !important;
}

.match-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
  padding: 2px;
  list-style: none;
  overscroll-behavior: contain;
}

.chat-message {
  align-self: flex-start;
  max-width: 88%;
  padding: 0;
  background: transparent;
  overflow-wrap: anywhere;
}

.chat-message-own {
  align-self: flex-start;
  text-align: left;
}

.chat-message-author {
  display: block;
  margin-bottom: 3px;
  color: #8be4ff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 5px #000, 0 0 3px #000;
}

.chat-message-text {
  margin: 0;
  color: #d7f3ff;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  text-shadow: 0 1px 5px #000, 0 0 3px #000;
}

.chat-message-own .chat-message-text {
  color: #ffe0a8;
}

.chat-status {
  min-height: 18px;
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
}

.match-chat-form {
  display: flex;
  gap: 8px;
}

.match-chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(3, 8, 18, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.match-chat-form input:focus {
  border-color: var(--cyan);
}

.match-chat-form button {
  min-width: 64px;
  padding: 8px 13px;
  border: 0;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.match-chat-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.small-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
}

.legal-main {
  width: min(100% - 32px, 860px);
  margin: 40px auto 60px;
}

.legal-draft {
  margin-bottom: 28px;
  padding: 15px 18px;
  border-left: 4px solid #f59e0b;
  background: var(--panel);
  color: var(--text);
  line-height: 1.5;
}

.legal-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin-bottom: 12px;
  font-size: 32px;
}

.legal-header p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content {
  padding-top: 12px;
}

.legal-content h2 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.legal-content ul {
  padding-left: 22px;
}

footer a {
  color: var(--cyan);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 18, .86);
}

.age-gate[hidden] {
  display: none !important;
}

.age-gate-content {
  width: min(100%, 420px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
}

.age-gate-content h2 {
  margin: 0 0 12px;
}

.age-gate-content p {
  color: var(--muted);
  line-height: 1.5;
}

.age-gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.age-gate-actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  cursor: pointer;
}

.age-gate-actions button:last-child {
  border: 1px solid var(--border);
  background: transparent;
}

.terms-consent-dialog {
  position: fixed;
  inset: 0;
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  height: fit-content;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.terms-consent-dialog::backdrop {
  background: rgba(3, 8, 18, .82);
}

.terms-consent-content {
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  padding: clamp(20px, 4vw, 32px);
}

.terms-consent-content h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 4vw, 30px);
}

.terms-consent-content > p {
  color: var(--muted);
  line-height: 1.55;
}

.terms-consent-scroll {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  margin: 18px 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel2);
  line-height: 1.55;
}

.terms-consent-scroll h3 {
  margin-bottom: 12px;
}

.terms-consent-scroll ul {
  padding-left: 22px;
}

.terms-consent-scroll li + li {
  margin-top: 9px;
}

.terms-consent-scroll p {
  margin-top: 14px;
}

.terms-consent-scroll a {
  color: var(--cyan);
}

.terms-consent-note {
  font-size: 13px;
}

.terms-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.terms-consent-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-weight: 700;
}

.terms-consent-disagree {
  background: var(--panel2);
}

.terms-consent-agree {
  border-color: var(--blue) !important;
  background: var(--blue);
}

.terms-consent-agree:hover {
  background: #0873e8;
}

@media (max-height: 600px) {
  .terms-consent-scroll {
    max-height: 24vh;
  }
}

.auth-box {
  width: min(100%, 470px);
  max-width: 470px;
  box-sizing: border-box;
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  margin: 40px auto;
  padding: 30px 32px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .36);
}

#authBox[hidden] {
  display: none !important;
}

#profileBox.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgba(3, 8, 18, .78);
  border: 0;
  border-radius: 0;
}

#profileBox.profile-modal[hidden] {
  display: none !important;
}

.profile-modal-content {
  width: min(100%, 480px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.profile-premium {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(255, 190, 65, .35);
  border-radius: 12px;
  background: rgba(255, 190, 65, .06);
}

.auth-box .profile-premium h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.auth-box .profile-premium .subscription-status {
  margin: 0;
  color: #ffda7a;
}

.profile-premium-buy {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #6841c6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.profile-premium-buy[hidden] {
  display: none;
}

.account-danger-zone {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.account-danger-zone h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.account-danger-zone p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-danger-zone button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b91c1c;
  border-radius: 7px;
  background: #7f1d1d;
  color: white;
  cursor: pointer;
}

.account-danger-zone button:disabled {
  cursor: wait;
  opacity: .65;
}

#deleteAccountReauth {
  margin-top: 12px;
}

#cancelAccountDeletionBtn {
  border-color: var(--border);
  background: var(--panel2);
}

body:has(#profileBox.profile-modal:not([hidden])) {
  overflow: hidden;
}

.auth-box h2 {
  margin: 2px 0 0;
  font-size: 25px;
}

.auth-box h3 {
  margin: 20px 0 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
}

.auth-box p {
  color: var(--muted);
  margin: 12px 0;
}

.auth-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-eyebrow {
  margin: 0 0 5px !important;
  color: var(--cyan) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.auth-box .auth-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel2);
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  background: var(--panel2) !important;
  color: var(--text) !important;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.google-auth-btn:hover {
  border-color: var(--cyan) !important;
  background: var(--panel2) !important;
}

.google-mark {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 25% 48%, #fbbc05 48% 68%, #ea4335 68% 84%, #4285f4 84%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.auth-box label,
#profileBox label {
  display: block;
  text-align: left;
  margin-top: 15px;
  color: #c1cee0;
  font-size: 14px;
}

.auth-box input,
#profileBox select {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: var(--panel2);
  color: white;
  border: 1px solid #344966;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

.auth-box input {
  min-height: 49px;
  padding: 12px 14px;
  margin-top: 7px;
  font-size: 15px;
}

.auth-box input:focus,
#profileBox select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

.auth-box button,
#profileBox form button,
.auth-box form > button {
  padding: 12px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  width: 100%;
}

.auth-box .auth-submit {
  min-height: 58px;
  margin-top: 14px;
  border-radius: 9px;
  font-size: 20px;
  font-weight: 750;
}

.auth-box button.auth-link {
  display: block;
  width: 100%;
  margin: 7px 0 0;
  padding: 4px 0;
  background: transparent;
  color: var(--cyan);
  text-align: right;
  font-size: 14px;
}

.auth-box button:hover,
#profileBox form button:hover {
  background: #0066d5;
}

.auth-box .auth-switch {
  margin: 16px 0 0;
  color: var(--text);
  text-align: center;
  font-size: 14px;
}

.auth-box .auth-switch button {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
}

.auth-box .auth-legal {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.auth-legal a {
  color: var(--cyan);
}

.auth-box #authMessage:not(:empty) {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel2);
  font-size: 13px;
  overflow-wrap: anywhere;
}

#profileBox form button {
  margin-top: 22px;
}

#headerProfileBtn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: none;
  border-radius: 25px;
  background: #6c3be8;
  color: white;
  cursor: pointer;
}

#headerProfileBtn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

#headerProfileBtn[hidden] {
  display: none !important;
}

#headerLogoutBtn,
#adminPanelBtn {
  background: var(--panel2);
  border: 1px solid #345276;
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
}

#adminPanelBtn {
  width: auto;
  min-width: 75px;
  line-height: 1.2;
}

.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  animation: premiumOverlayFade 0.25s ease;
}

.premium-modal[hidden] {
  display: none !important;
}

.premium-content {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 24px 22px;
  text-align: center;
  border: 1px solid rgba(255, 190, 65, 0.35);
  border-radius: 22px;
  background: linear-gradient(145deg, #17243a, #080f1e 75%);
  box-shadow: 0 0 40px rgba(255, 181, 48, 0.12);
  animation: premiumCardEnter 0.35s ease both;
  transform-origin: center;
  color: #ffffff;
}

.premium-content button {
  padding: 12px 20px;
  margin: 8px 4px;
  cursor: pointer;
}

.premium-crown {
  font-size: 43px;
  margin-bottom: 8px;
}

.premium-tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 30px;
  background: rgba(255, 190, 65, 0.12);
  color: #ffc85b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.premium-content > h2 {
  margin: 15px 0 9px;
  color: #fff;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.premium-content > p {
  color: #aebdd2;
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.premium-plan {
  margin: 22px 0 17px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(255, 190, 65, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 25px rgba(255, 190, 65, 0.035);
}

.premium-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 190, 65, 0.12);
  border-color: #ffc85b;
}

.premium-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #ffc85b;
  font-size: 11px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 200, 91, 0.15);
}

.premium-popular {
  padding: 5px 9px;
  border-radius: 20px;
  background: rgba(255, 190, 65, 0.15);
  font-size: 9px;
  border: 1px solid rgba(255, 200, 91, 0.35);
  letter-spacing: 0.5px;
}

.premium-plan h3 {
  margin: 17px 0 7px;
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.premium-duration {
  color: #ffc85b;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 8px;
}

.premium-duration span {
  font-size: 15px;
  font-weight: 500;
}

.premium-price {
  margin-top: 5px;
  color: #aebdd2;
  font-size: 12px;
}

.premium-divider {
  height: 1px;
  margin: 17px 0;
  background: rgba(255, 255, 255, 0.1);
}

.premium-benefits {
  display: grid;
  gap: 14px;
  color: #dce8f7;
  font-size: 13px;
}

.premium-benefits div {
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  min-height: 35px;
}

.premium-benefits div:hover {
  background: rgba(255, 200, 91, 0.09);
}

.premium-subscribe,
.premium-close {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
  display: block;
  box-sizing: border-box;
  line-height: 1.4;
}

.premium-subscribe {
  border: none;
  color: #17100a;
  background: linear-gradient(100deg, #ffd36b, #ffad32);
  box-shadow: 0 5px 18px rgba(255, 174, 45, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.premium-subscribe:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.premium-subscribe:active,
.premium-close:active {
  transform: scale(0.97);
}

.premium-close {
  margin-top: 10px;
  border: 1px solid #34445d;
  color: #dce8f7;
  background: transparent;
}

.premium-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

.premium-unavailable {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #52647e;
  border-radius: 10px;
  color: #dce8f7;
  font-size: 13px;
  line-height: 1.5;
}

.premium-secure-text {
  margin-top: 16px;
  color: #8294ad !important;
  font-size: 10px !important;
  letter-spacing: 0.3px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px;
  text-align: center;
}

.features div {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 25px 12px;
  border-radius: 13px;
  transition: 0.2s;
}

.features div:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.features h3 {
  margin: 12px 0;
  font-size: 17px;
}

.features p,
footer {
  color: var(--muted);
  font-size: 13px;
}

footer {
  text-align: center;
  line-height: 2;
  margin-top: 45px;
  padding: 20px;
  border-top: 1px solid var(--border);
}

#premiumModal {
  background: rgba(2, 7, 18, 0.92) !important;
}

#premiumModal .premium-content {
  background: linear-gradient(145deg, #17243a, #080f1e) !important;
  color: #ffffff !important;
}

#premiumModal .premium-content h2,
#premiumModal .premium-content h3 {
  color: #ffffff !important;
}

#premiumModal .premium-content p {
  color: #dce8f7 !important;
}

#premiumModal .premium-plan {
  background: #111b2e !important;
  color: #ffffff !important;
}

#premiumModal .premium-plan[hidden] {
  display: none;
}

#premiumModal .premium-benefits,
#premiumModal .premium-benefits div {
  color: #ffffff !important;
}

#premiumModal .premium-price {
  color: #ffc85b !important;
}

#premiumModal .premium-tag,
#premiumModal .premium-plan-header {
  color: #ffc85b !important;
}

#premiumModal .premium-close {
  color: #ffffff !important;
  background: #17243a !important;
  border-color: #52647e !important;
}

@keyframes premiumEntry {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes premiumOverlayFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes premiumCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 850px) {
  .call-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-area {
    height: 430px;
  }

  .settings {
    padding: 10px 5px;
  }

  .container {
    width: 100%;
    padding: 25px 18px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .navbar {
    width: 100%;
    height: auto;
    min-height: 65px;
    padding: 10px 13px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    font-size: 23px;
  }

  .nav-right {
    flex: 1 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
  }

  #headerLogoutBtn,
  #loginBtn {
    margin-left: auto;
  }

  .age-badge {
    font-size: 11px;
  }

  .login-btn,
  #headerProfileBtn,
  #headerLogoutBtn,
  #adminPanelBtn {
    padding: 8px 12px;
    font-size: 12px;
  }

  #headerProfileBtn {
    max-width: 145px;
    padding: 4px 9px;
  }

  #headerProfileBtn img {
    width: 29px;
    height: 29px;
  }

  .container {
    width: 100%;
    padding: 22px 11px;
  }

  .hero {
    padding: 0 5px;
    margin-bottom: 20px;
  }

  .tag {
    font-size: 11px;
    padding: 8px 13px;
  }

  .hero h1 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.2;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.6;
  }

  .landing-page {
    padding: 28px 12px 18px;
    border-radius: 16px;
  }

  .landing-page .hero {
    margin-bottom: 20px;
  }

  .landing-page .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .landing-start {
    padding: 18px 14px;
  }

  .landing-start-button {
    min-height: 54px;
    font-size: 19px;
  }

  .call-card {
    width: 100%;
    padding: 9px;
    gap: 13px;
    border-radius: 13px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .video-area {
    width: 100%;
    height: clamp(240px, 75vw, 350px);
    min-height: 240px;
    border-radius: 11px;
  }

  .match-chat {
    left: 10px;
    bottom: 10px;
    width: min(60%, 360px);
  }

  .match-chat-messages {
    max-height: 120px;
  }

  .video-like-widget {
    top: 10px;
    left: 10px;
  }

  .flying-hearts {
    top: 75px;
    left: 28px;
  }

  #remoteVideo {
    border-radius: 10px;
  }

  #localVideo {
    width: 95px;
    height: 125px;
    right: 9px;
    bottom: 9px;
  }

  .placeholder,
  #videoPlaceholder {
    padding: 12px;
  }

  .camera-icon {
    font-size: 40px;
  }

  .video-label {
    left: 9px;
    bottom: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .settings {
    padding: 12px 5px;
  }

  .settings h2 {
    font-size: 21px;
    margin-bottom: 18px;
  }

  .settings label {
    font-size: 13px;
    margin-top: 14px;
  }

  .settings select {
    min-height: 45px;
    padding: 11px;
    font-size: 14px;
  }

  .call-types {
    gap: 8px;
  }

  .type {
    padding: 12px 5px;
    font-size: 13px;
  }

  .chat-controls {
    gap: 8px !important;
    margin-top: 18px !important;
  }

  .chat-controls button {
    flex: 1 1 40%;
    min-width: 0;
    padding: 13px 5px !important;
    font-size: 13px;
  }

  .notice {
    font-size: 12px;
    margin-top: 14px;
  }

  .small-note {
    font-size: 10px;
  }

  .auth-box {
    width: calc(100% - 16px);
    max-width: 430px;
    margin: 22px auto;
    padding: 20px 15px;
  }

  .legal-main {
    width: calc(100% - 24px);
    margin: 24px auto 40px;
  }

  .legal-header h1 {
    font-size: 27px;
  }

  #profileBox.profile-modal {
    padding: 12px;
  }

  .profile-modal-content {
    max-height: calc(100dvh - 24px);
    padding: 18px 15px;
  }

  .auth-box input,
  #profileBox select {
    min-height: 45px;
    font-size: 14px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .features div {
    padding: 21px 12px;
  }

  .premium-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 17px;
  }

  footer {
    margin-top: 28px;
    padding: 16px 10px;
    font-size: 11px;
  }

  .media-controls {
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
  }
}

@media (max-width: 480px) {
  .premium-content {
    padding: 25px 17px 19px;
    border-radius: 18px;
  }

  .premium-content > h2 {
    font-size: 22px;
  }

  .premium-plan {
    padding: 15px;
  }

  #premiumModal {
    padding: 12px;
  }

  #premiumModal .premium-content {
    max-height: 88vh;
    overflow-y: auto;
  }

  #premiumModal .premium-plan:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .navbar {
    padding: 9px 10px;
  }

  .logo {
    font-size: 21px;
  }

  .nav-right {
    gap: 6px;
  }

  .age-badge {
    font-size: 10px;
  }

  .login-btn {
    padding: 7px 9px;
    font-size: 11px;
  }

  .call-card {
    padding: 7px;
  }

  .video-area {
    height: 250px;
    min-height: 240px;
  }

  #localVideo {
    width: 82px;
    height: 108px;
  }

  .chat-controls button {
    font-size: 12px;
  }

  #premiumModal .premium-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  #premiumModal .premium-content > h2 {
    font-size: 20px;
  }

}

@media (max-width: 850px) and (orientation: landscape) {
  .video-area {
    height: 75vh;
    min-height: 250px;
  }

  #localVideo {
    width: 100px;
    height: 125px;
  }
}

@media (hover: none) {
  .features div:hover,
  .start-btn:hover,
  .next-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #premiumModal,
  #premiumModal .premium-content {
    animation: none !important;
  }
}

.mobile-match-topbar {
  display: none;
}

.mobile-chat-toggle {
  display: none;
}

.mobile-previous-label {
  display: none;
}

.remote-video-label {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(5, 12, 25, .75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.partner-premium-badge {
  position: absolute;
  z-index: 8;
  top: 60px;
  left: 18px;
  padding: 6px 10px;
  border: 1px solid #e6bf60;
  border-radius: 20px;
  background: rgba(32, 23, 8, .9);
  color: #ffda7a;
  font-size: 12px;
  font-weight: 700;
}

.partner-premium-badge[hidden] {
  display: none;
}

.subscription-status {
  color: #d7ad4c;
  font-weight: 600;
}

@media (max-width: 850px) {
  body.matching-view {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: #000;
  }

  body.matching-view .navbar {
    display: none;
  }

  body.matching-view .container {
    width: 100%;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.matching-view .call-card {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
  }

  body.matching-view .video-area {
    grid-row: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: stretch;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, #141b2a 0 50%, #050608 50% 100%);
  }

  body.matching-view #remoteVideo {
    inset: 0 0 auto;
    width: 100%;
    height: 50%;
    border-radius: 0;
    object-fit: cover;
  }

  body.matching-view #localVideo {
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 50%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    object-fit: cover;
  }

  body.matching-view #videoPlaceholder {
    inset: 0 0 50%;
    padding: 12px;
  }

  body.matching-view .mobile-match-topbar {
    position: absolute;
    z-index: 8;
    top: calc(8px + env(safe-area-inset-top));
    right: 10px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 32px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: rgba(8, 13, 25, .78);
    color: #fff;
    backdrop-filter: blur(10px);
  }

  .mobile-match-label {
    color: #dce8f8;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-gender-toggles {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .mobile-gender-toggle {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #53627a;
    border-radius: 50%;
    background: #22314a;
    color: #fff;
    font-size: 17px;
    line-height: 1;
  }

  .mobile-gender-toggle[aria-pressed="true"] {
    border-color: #67d5ff;
    background: #0878c9;
    box-shadow: 0 0 0 2px rgba(103, 213, 255, .25);
  }

  body.matching-view .remote-video-label {
    display: none;
  }

  body.matching-view .partner-premium-badge {
    top: calc(58px + env(safe-area-inset-top));
    left: 10px;
  }

  body.matching-view .video-label {
    bottom: 10px;
    left: 10px;
  }

  body.matching-view .video-report-button {
    top: calc(10px + env(safe-area-inset-top));
    left: 10px;
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  body.matching-view .media-controls {
    top: calc(50% + 10px + env(safe-area-inset-top)) !important;
    right: auto !important;
    bottom: auto !important;
    left: 10px !important;
    gap: 5px;
  }

  body.matching-view .media-controls button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 16px;
  }

  body.matching-view .video-like-widget {
    top: auto;
    bottom: calc(50% + 12px);
    right: 12px;
    left: auto;
  }

  body.matching-view .match-chat {
    left: 8px;
    right: 8px;
    bottom: calc(52px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(28dvh, calc(50% - 60px));
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.matching-view .mobile-chat-toggle:not([hidden]) {
    position: absolute;
    z-index: 10;
    top: auto;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: auto;
    display: grid;
    width: 36px;
    height: 36px;
    min-width: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(8, 13, 25, .88);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .38);
  }

  body.matching-view .match-chat:not(.mobile-chat-open) {
    display: none !important;
  }

  body.matching-view .match-chat-messages {
    max-height: min(22dvh, 170px);
    padding: 2px 48px 2px 2px;
  }

  body.matching-view .chat-message {
    width: fit-content;
    padding: 2px 0;
    border: 0;
    background: transparent;
  }

  body.matching-view .chat-message-own {
    background: transparent;
  }

  body.matching-view .chat-message-text {
    margin: 0;
    color: #8be4ff;
    text-shadow: 0 1px 4px #000;
  }

  body.matching-view .chat-message-own .chat-message-text {
    color: #ffe0a8;
  }

  body.matching-view .settings {
    grid-row: 2;
    max-height: 34dvh;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: auto;
    gap: 6px;
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom));
    background: #080d19;
    border-top: 1px solid #263752;
    overscroll-behavior: contain;
  }

  body.matching-view .call-type-label,
  body.matching-view #guestMatchOptions,
  body.matching-view #premiumAdFreeNote,
  body.matching-view #previousFeatureNote,
  body.matching-view .settings > .small-note {
    display: none !important;
  }

  body.matching-view .call-types {
    order: 2;
    gap: 7px;
    flex: 0 0 auto;
  }

  body.matching-view .type {
    min-height: 36px;
    padding: 7px 5px;
    font-size: 12px;
  }

  body.matching-view .matching-actions {
    display: flex;
    order: 3;
    flex: 0 0 auto;
    gap: 7px;
    width: 100%;
  }

  body.matching-view #matchingToggleBtn {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #1485d4;
    border-radius: 9px;
    background: linear-gradient(110deg, #0878f9, #16b7f5);
    color: #fff;
    font-weight: 700;
  }

  body.matching-view #mobileHomeBtn {
    display: block;
    flex: 0 0 82px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #344966;
    border-radius: 9px;
    background: #17243a;
    color: #fff;
    font-weight: 700;
  }

  body.matching-view #matchingToggleBtn.is-active {
    border-color: #a43c57;
    background: #481e30;
  }

  body.matching-view #matchingToggleBtn:disabled {
    opacity: 0.75;
  }

  body.matching-view .chat-controls {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    gap: 6px !important;
    margin-top: 0 !important;
  }

  body.matching-view .chat-controls button {
    min-height: 38px;
    padding: 7px 4px !important;
    font-size: 12px;
  }

  body.matching-view #homeBtn,
  body.matching-view #startBtn,
  body.matching-view #stopBtn {
    display: none !important;
  }

  body.matching-view .desktop-previous-label {
    display: none;
  }

  body.matching-view .mobile-previous-label {
    display: inline;
  }

  body.matching-view .settings > .notice,
  body.matching-view .settings > .safety-controls {
    order: 4;
  }

  body.matching-view .friend-match-controls {
    top: calc(50% + 10px);
    bottom: auto;
  }

  body.matching-view .safety-controls {
    margin-top: 6px;
  }

  body.matching-view .notice {
    min-height: 0;
    margin-top: 5px;
    font-size: 11px;
  }
}

.navbar {
  position: relative;
  justify-content: flex-start;
  gap: 14px;
}

.account-menu-wrap {
  position: relative;
}

.menu-toggle,
.coin-add {
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: var(--panel2);
  min-width: 42px;
  min-height: 42px;
  font-size: 24px;
}

.menu-toggle[hidden],
.account-menu[hidden] {
  display: none;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 10000;
  width: 220px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.account-menu button:not([hidden]),
.account-menu #headerProfileBtn:not([hidden]),
.account-menu #headerLogoutBtn:not([hidden]),
.account-menu #adminPanelBtn:not([hidden]) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.account-menu button:hover {
  background: var(--panel2) !important;
}

.coin-balance {
  white-space: nowrap;
  font-weight: 700;
}

.coin-add {
  border-radius: 50%;
  background: var(--green);
  color: #080d19;
  font-weight: 700;
}

.coin-add[hidden] {
  display: none;
}

.wallet-calls {
  list-style: none;
  padding: 0;
}

.wallet-calls li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.wallet-calls li span {
  display: block;
  margin-top: 4px;
}

.navbar .nav-right {
  margin-left: auto;
  flex: 0 1 auto;
  width: auto;
  gap: 10px;
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .navbar .logo {
    font-size: 20px;
    white-space: nowrap;
  }
  .navbar .nav-right {
    gap: 6px;
  }
  .coin-balance {
    font-size: 12px;
  }
  .menu-toggle,
  .coin-add {
    min-width: 36px;
    min-height: 36px;
  }
}
