/* ===== Together Watch - Watch Together ===== */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-input: #161616;
  --accent: #a855f7;
  --accent-light: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --text: #f5f5f5;
  --text-muted: #a0a0a8;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  background-image: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

/* ----- Header ----- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.12em;
  display: inline-flex;
}

.logo-first {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
}

.logo-second {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(168, 85, 247, 0.3), 0 0 60px rgba(168, 85, 247, 0.15);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-profile-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.header-profile-link:hover {
  color: var(--accent);
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.header-username {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- Buttons ----- */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: #1e1a26;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #5bc55b 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-download-win {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ----- Hero ----- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 3rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-content {
  max-width: 520px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 0 50px var(--accent-glow));
}

.hero-brand {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow:
    0 0 60px var(--accent-glow),
    2px 2px 0 rgba(124, 58, 237, 0.6),
    4px 4px 0 rgba(124, 58, 237, 0.4),
    6px 6px 0 rgba(124, 58, 237, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ----- Content strip (posters + streaming) ----- */
.content-strip {
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-strip-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.partners-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Centered row of 5 posters (compact layout) */
.partners-posters-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.partners-posters-row .poster-wrap {
  width: 130px;
  height: 185px;
}

/* Legacy scroll row (kept for any other use) */
.partners-posters-wrap {
  overflow: hidden;
  margin-bottom: 2rem;
}

.partners-posters {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: partnersScroll 35s linear infinite;
}

.partners-posters:hover {
  animation-play-state: paused;
}

@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-posters .poster-wrap {
  flex-shrink: 0;
}

.posters-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.posters-row.posters-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.poster-placeholder {
  width: 120px;
  height: 170px;
  background: linear-gradient(145deg, #1e1e22 0%, #161618 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Poster: varsayilan siyah-beyaz, hover'da renkli + surekli hareket */
.poster-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.poster-wrap:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--accent-glow);
  animation: posterGlow 1.5s ease-in-out infinite, posterFloat 3s ease-in-out infinite;
}

@keyframes posterGlow {
  0%, 100% { box-shadow: 0 0 25px var(--accent-glow); }
  50% { box-shadow: 0 0 45px var(--accent-glow), 0 0 60px rgba(168, 85, 247, 0.2); }
}

@keyframes posterFloat {
  0%, 100% { transform: scale(1.08) translateY(0); }
  50% { transform: scale(1.08) translateY(-6px); }
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.poster-wrap:hover .poster-img {
  filter: grayscale(0%);
}

.streaming-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.content-strip-inner .streaming-logos {
  gap: 1.25rem;
}

.stream-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.stream-logo {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.stream-logo.netflix { color: #e50914; }
.stream-logo.disney { color: #0063e5; }
.stream-logo.prime { color: #00a8e1; }
.stream-logo.max { color: #9b59b6; }
.stream-logo.youtube { color: #ff0000; }

/* ----- Features ----- */
.features {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3rem;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.feature-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  filter: grayscale(0);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ----- Stats ----- */
.stats-section {
  padding: 4rem 2rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ----- Profile section ----- */
.profile-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1100px;
  margin: 4rem auto 5rem;
  padding: 4rem 3rem 5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-left: auto;
  margin-right: auto;
}

.profile-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.profile-nickname-wrap {
  margin-bottom: 1.25rem;
}

.input-label,
.avatar-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.input-field {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.avatar-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.avatar-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.avatar-btn:hover {
  border-color: var(--text-muted);
}

.avatar-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(168, 85, 247, 0.15);
}

.profile-promo {
  text-align: center;
}

.promo-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.promo-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.promo-features {
  list-style: none;
  margin-bottom: 1.5rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.promo-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.promo-icon {
  font-size: 1.1rem;
}

/* ----- Live Now ----- */
.live-section {
  padding: 4rem 3rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.live-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.live-header-left {
  flex: 1;
  min-width: 0;
}

.live-header .section-title {
  margin-bottom: 0.25rem;
}

.live-header .section-subtitle {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.btn-view-all:hover {
  border-color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
}

.link-view-all {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.link-view-all:hover {
  opacity: 0.85;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.live-section:not(.live-page) .live-grid {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.live-page .live-grid {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.live-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.live-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.live-card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a1a1e;
  flex-shrink: 0;
}

.live-card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.live-card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Overlay on poster: LIVE pill (top-left) */
.live-badge-pill {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  background: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}

/* Overlay on poster: viewer count (top-right) */
.live-viewer-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

.live-viewer-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

.live-host-icon {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.35rem;
  vertical-align: -0.15em;
  background: var(--text-muted);
  border-radius: 50%;
}

.live-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.live-card-body .live-host {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.live-card-body .live-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Join Room: accent green button */
.btn-join-room {
  width: 100%;
  margin-top: auto;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a0a0a;
  background: linear-gradient(180deg, var(--accent) 0%, #7c3aed 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}

.btn-join-room:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.live-card-body .btn-sm {
  width: 100%;
  margin-top: auto;
}

/* ----- Pricing ----- */
.pricing-section {
  padding: 5rem 3rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.pricing-section .section-subtitle {
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

.pricing-card {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.pricing-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ----- Download ----- */
.download-section {
  padding: 5rem 3rem;
  text-align: center;
}

.download-section .btn-xl {
  margin-bottom: 1rem;
}

.download-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ----- Footer download strip (every page) ----- */
.footer-download {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-download .footer-download-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-download .footer-download-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer-download .btn-download-win {
  margin-bottom: 0.5rem;
}
.footer-download .footer-download-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.footer {
  padding: 3rem 3rem 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-brand {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
}
.footer-brand a {
  color: var(--accent);
  text-decoration: none;
}
.footer-brand a:hover {
  color: var(--accent);
  opacity: 0.9;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1rem;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom p {
  margin-top: 1rem;
}

.footer-lang {
  margin-top: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
}

.footer-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ----- Inner pages (Features, Download, About, etc.) ----- */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.page-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-content .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-content a {
  color: var(--accent);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.account-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.account-section:last-of-type {
  border-bottom: none;
}

.account-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.account-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.account-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  background-size: cover;
  background-position: center;
}

.account-form .auth-btn {
  margin-top: 0.5rem;
}

.account-current-email {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.account-current-email .email-masked {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ----- Modals (Enter Room, Connection Error) ----- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.modal-form .modal-field {
  margin-bottom: 1.25rem;
}

.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.modal-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-avatar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.modal-avatar-header label {
  margin-bottom: 0;
}

.btn-avatar-randomize {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-avatar-randomize:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.modal-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guest-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guest-avatar:hover {
  border-color: var(--text-muted);
}

.guest-avatar.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  background: rgba(168, 85, 247, 0.15);
}

.modal-submit {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.modal-back-home {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.modal-back-home:hover {
  color: var(--accent);
}

/* Error modal */
.modal-error {
  text-align: center;
}

.modal-error-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--accent);
}

.modal-error .modal-title {
  margin-bottom: 1rem;
}

.modal-error-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.modal-error-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Payment (POS) modal */
.modal-payment-card {
  max-width: 720px;
  width: 100%;
  text-align: left;
}
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 640px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
}
.payment-invoice {
  padding: 1rem 0;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}
@media (max-width: 640px) {
  .payment-invoice {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}
.payment-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}
.payment-invoice-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.payment-invoice-id {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.payment-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.payment-plan-name {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.payment-form-wrap .modal-title {
  margin-bottom: 1rem;
}
.payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}
.payment-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
}
.payment-select:focus {
  outline: none;
  border-color: var(--accent);
}

.payment-security-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.payment-powered {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.payment-declined-popup {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.payment-declined-popup.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.payment-declined-inner {
  background: #b91c1c;
  color: #fff;
  padding: 1.5rem 3rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  min-width: 280px;
}
.payment-declined-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}
.payment-declined-close:hover {
  opacity: 1;
}
.payment-declined-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

/* Payment Failed full screen (black + purple iridescent / sedef, white card) */
.payment-failed-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #0a0a0a;
  background-image:
    radial-gradient(ellipse 90% 60% at 15% 20%, rgba(168, 85, 247, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 70% at 85% 15%, rgba(139, 92, 246, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 80% 80% at 50% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(192, 132, 252, 0.06) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.payment-failed-screen.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.payment-failed-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: left;
}
.payment-failed-icon {
  width: 48px;
  height: 48px;
  background: #000;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.payment-failed-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.75rem 0;
}
.payment-failed-message {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin: 0 0 1.5rem 0;
}
.payment-failed-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.25rem;
}
.payment-failed-btn:hover {
  background: #222;
}
.payment-failed-support {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}
.payment-failed-link {
  color: #2563eb;
  text-decoration: none;
}
.payment-failed-link:hover {
  text-decoration: underline;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .profile-section {
    grid-template-columns: 1fr;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .nav {
    display: none;
  }

  .live-section,
  .pricing-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 1.5rem 4rem;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
