﻿:root {
  --bg-color: #f4f8fb;
  --text-color: #0d1f2c;
  --muted-color: #48657a;
  --card-bg: rgba(255,255,255,0.82);
  --card-border: rgba(13,31,44,0.16);
  --header-bg: rgba(255,255,255,0.72);

  --bg: #021a26;
  --surface: rgba(9, 41, 60, 0.92);
  --surface-soft: rgba(14, 52, 78, 0.94);
  --text: var(--text-color);
  --muted: var(--muted-color);
  --accent: #53c5b2;
  --accent-strong: #2fa18f;
  --accent-2: #6dc5e0;
  --border: rgba(255,255,255,0.10);
  --shadow-lg: 0 30px 80px rgba(2,6,23,0.6);
  --shadow-md: 0 12px 30px rgba(2,6,23,0.4);
  --radius-lg: 28px;
  --radius-md: 16px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 32px;
  --glass-blur: 16px;
  --glass-bg-weak: rgba(255,255,255,0.02);
  --glass-bg-strong: rgba(255,255,255,0.045);
  --glass-border: rgba(255,255,255,0.12);
  --wave-color-1: rgba(63,226,196,0.08);
  --wave-color-2: rgba(16,197,255,0.06);
  --wave-color-3: rgba(34,70,94,0.12);
  --wave-color-4: rgba(63,226,196,0.045);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

html.dark-theme {
  --bg-color: #021a26;
  --text-color: #eef7ff;
  --muted-color: #9bc2d5;
  --card-bg: rgba(6,14,20,0.28);
  --card-border: rgba(255,255,255,0.08);
  --header-bg: rgba(6,14,20,0.48);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--bg-color); color: var(--text); }
body {
  padding: 0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: var(--bg-color);
}
img { max-width: 100%; display: block; border-radius: 10px; }

html,
body,
.site-header,
.hero,
.card,
.panel,
.feature-card,
.topic-card,
.brand-card,
.phone-card,
.form-card,
.brand-banner,
details.topic-card {
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

.background-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.page { position: relative; z-index: 1; width: min(1140px, 100%); margin: 0 auto; padding: var(--space-lg) 20px 56px; }

.site-header { display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:12px; z-index:40; background: var(--header-bg); padding:12px 18px; border-radius:24px; backdrop-filter: blur(14px); border:1px solid var(--card-border); }
/* add breathing space below sticky header so hero isn't crowded */
.site-header { margin-bottom: 18px; }

.site-brand { font-size:1.28rem; font-weight:800; letter-spacing:0.08em; background: linear-gradient(90deg,var(--accent),var(--accent-2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; text-transform: uppercase; }

.site-nav { display:flex; gap:12px; }
.site-nav a { color:var(--text); text-decoration:none; padding:8px 12px; border-radius:999px; background:transparent; border:1px solid transparent; transition: all 160ms ease; font-weight:600; }
.site-nav a:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }
.site-nav a.primary { background: linear-gradient(90deg,var(--accent),var(--accent-strong)); color:#041018; box-shadow:0 10px 28px rgba(16,197,255,0.12); }

.theme-toggle-wrap {
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.08);
}

.theme-toggle-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.theme-toggle-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
}

.theme-toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--card-border);
  transition: background-color 180ms ease;
}

.theme-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 180ms ease;
}

.theme-toggle-switch input:checked + .theme-toggle-slider {
  background: rgba(83,197,178,0.52);
}

.theme-toggle-switch input:checked + .theme-toggle-slider::after {
  transform: translateX(20px);
}

.hero, .card, .panel { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:var(--space-lg); backdrop-filter: blur(10px); }
.hero, .card, .panel { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01)); border:1px solid var(--glass-border); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:var(--space-lg); backdrop-filter: blur(var(--glass-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); }

.hero { display:grid; gap:18px; align-items:center; grid-template-columns: 1fr; }
.hero { margin-top: 6px; }
.hero-samsung { background: radial-gradient(circle at top left, rgba(63,226,196,0.22), transparent 24%), radial-gradient(circle at bottom right, rgba(16,197,255,0.18), transparent 28%), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); border-color: rgba(63,226,196,0.16); }
.hero-samsung h1 { text-shadow: 0 18px 50px rgba(16,197,255,0.15); }
.hero-badge { display:inline-flex; align-items:center; gap:10px; margin:14px 0 0; padding:10px 18px; border-radius:999px; background: rgba(63,226,196,0.16); color: #d8ffff; font-size: 0.92rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 2px 6px rgba(255,255,255,0.06); }
.hero-samsung .lead { font-size:1.09rem; line-height:1.8; max-width: 720px; }
.hero h1 { margin:0; font-size: clamp(2.4rem, 4vw, 4.4rem); line-height:1.02; letter-spacing:-0.02em; }
.hero .lead { color:var(--muted); font-size:1.05rem; margin-top:8px; }

.glossary-term {
  display: inline-block;
  padding: 0 0.18em;
  margin: 0 -0.08em;
  border-radius: 0.42em;
  border-bottom: 1px dotted rgba(83, 197, 178, 0.72);
  background: linear-gradient(180deg, rgba(83, 197, 178, 0.1), rgba(83, 197, 178, 0.02));
  color: inherit;
  cursor: help;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.glossary-term:hover,
.glossary-term:focus-visible,
.glossary-term.is-glossary-active {
  background: linear-gradient(180deg, rgba(83, 197, 178, 0.18), rgba(83, 197, 178, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(2, 6, 23, 0.22);
  outline: none;
}

.glossary-tooltip {
  position: fixed;
  z-index: 120;
  max-width: min(340px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 18, 28, 0.96);
  color: #f1fbff;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  font-size: 0.94rem;
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 140ms ease, transform 140ms ease;
}

.glossary-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glossary-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.glossary-tooltip[data-placement="top"]::after {
  bottom: -6px;
}

.glossary-tooltip[data-placement="bottom"]::after {
  top: -6px;
}

.feature-card { display:flex; flex-direction:column; gap:22px; min-height: 340px; padding:32px 30px; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border:1px solid rgba(255,255,255,0.06); border-radius:20px; box-shadow: 0 18px 50px rgba(2,6,23,0.45); backdrop-filter: blur(8px) saturate(120%); transition: transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms ease, border-color 320ms ease, backdrop-filter 320ms ease, background 320ms ease; position:relative; overflow:hidden; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.24rem; }
.feature-card p { color: var(--muted); margin: 0; line-height: 1.75; flex: 1; }

/* Liquid glass sheen for cards */
.topic-card.feature-card::before,
.feature-card::before {
  content: '';
  position: absolute;
  left: -30%;
  top: -60%;
  width: 180%;
  height: 180%;
  background: radial-gradient(600px 200px at 20% 20%, rgba(255,255,255,0.06), transparent 12%), radial-gradient(400px 120px at 80% 80%, rgba(255,255,255,0.03), transparent 14%);
  transform: rotate(-18deg) translateY(0);
  pointer-events: none;
  transition: transform 520ms cubic-bezier(.2,.9,.2,1), opacity 520ms ease;
  opacity: 0.9;
}

.topic-card.feature-card::after,
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
  pointer-events: none;
}

/* Hover interaction */
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,255,255,0.15); border-color: rgba(255,255,255,0.12); backdrop-filter: blur(14px) saturate(130%); }
.feature-card:hover::before { transform: rotate(-12deg) translateY(-6%); opacity:1; }

/* Entrance animation for cards */
@keyframes floatUpFade {
  from { transform: translateY(18px) scale(0.995); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.section-grid > article { animation: floatUpFade 520ms cubic-bezier(.2,.9,.2,1) both; }
.section-grid > article:nth-child(1) { animation-delay: 80ms; }
.section-grid > article:nth-child(2) { animation-delay: 160ms; }
.section-grid > article:nth-child(3) { animation-delay: 240ms; }

/* Make the cards feel more like distinct boxes */
.topic-card { background: transparent; }


.brand-banner { position: relative; overflow:hidden; border-radius:32px; padding:34px; background: linear-gradient(135deg, rgba(16,197,255,0.16), rgba(63,226,196,0.09)); border:1px solid rgba(63,226,196,0.18); box-shadow: 0 26px 80px rgba(3,8,24,0.18); }
.brand-banner::before { content: ''; position: absolute; inset: -40% 0 0 -20%; background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 54%); pointer-events: none; }
.brand-banner-copy { position: relative; z-index: 1; max-width: 760px; }
.brand-banner .button-secondary { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.15); }
.brand-banner .button-secondary:hover { background: rgba(255,255,255,0.18); }

.actions { display:flex; flex-wrap:wrap; gap:12px; }
.brand-grid-actions { flex-wrap: wrap; gap: 12px; }

.brand-grid-fade-in {
  animation: brandGridFadeIn 260ms ease both;
}

@keyframes brandGridFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button, .button-secondary { display:inline-flex; align-items:center; justify-content:center; border-radius:14px; padding:12px 18px; border:1px solid transparent; text-decoration:none; font-weight:700; cursor:pointer; transition: transform 200ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms ease, background 200ms ease; }

.button { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color:#021018; box-shadow:0 14px 40px rgba(16,197,255,0.1); padding:14px 20px; border-radius:12px; }
.button:hover, button:hover { transform: translateY(-4px) scale(1.03); box-shadow:0 26px 60px rgba(16,197,255,0.14); }

.button-secondary { color:var(--text); background: rgba(255,255,255,0.05); border:1px solid rgba(63,226,196,0.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.button-secondary:hover { transform: translateY(-2px) scale(1.03); background: rgba(255,255,255,0.08); box-shadow: 0 16px 38px rgba(16,197,255,0.08); }

.brand-search-container { display:flex; flex-direction:column; gap:10px; max-width:560px; }
.brand-search { width:100%; padding:16px 18px; border-radius:16px; border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color:var(--text); font-size:1rem; }
.brand-search::placeholder { color: rgba(238,247,255,0.65); }
.brand-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:20px; margin-top:10px; }
.brand-card { position: relative; display:grid; gap:18px; padding:72px 24px 24px; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:22px; box-shadow:var(--shadow-md); transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; text-decoration:none; color:inherit; }
.brand-card::before { content: attr(data-brand); position:absolute; top:16px; left:20px; right:20px; display:block; padding:14px 18px; border-radius:18px; background: rgba(16,197,255,0.18); color: var(--text); font-size: 0.96rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.brand-card:hover { transform: translateY(-5px); border-color: rgba(63,226,196,0.22); box-shadow: 0 20px 44px rgba(2,6,23,0.28); }
.brand-card h3, .brand-card .brand-pill { display:none; }
.brand-card p { margin:0; color:var(--muted); line-height:1.7; }
.brand-logo { display:none; }
.brand-card .brand-header { display:none; }
.brand-pill { display:none; }
.phone-gallery { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:24px; margin-top: 18px; }
.phone-gallery.single-photo { max-width: 980px; margin: 18px auto 0; grid-template-columns: 1fr; }
.phone-gallery.pixel-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.phone-gallery.pixel-showcase.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phone-gallery.pixel-showcase .phone-card { min-height: 0; display: flex; flex-direction: column; aspect-ratio: 4 / 3; background: transparent !important; background-image: none !important; overflow: hidden; border: none !important; box-shadow: none !important; border-radius: 0; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.phone-gallery.pixel-showcase .phone-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: none; }
.phone-gallery.pixel-showcase .phone-card img { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; object-fit: fill; object-position: center center; display: block; transition: none; background: transparent; }
.phone-gallery.pixel-showcase .phone-card:hover img { transform: none; }
.phone-gallery.pixel-showcase .phone-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; min-height: 68px; display: flex; align-items: flex-end; padding: 18px 20px 20px; background: linear-gradient(180deg, rgba(2,8,18,0) 0%, rgba(2,8,18,0.45) 38%, rgba(2,8,18,0.9) 100%); border-top: none; }
.flagship-highlights { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 0; }
.flagship-highlights span { display:inline-flex; align-items:center; padding:12px 16px; border-radius:14px; background: rgba(16,197,255,0.14); color: #d7f8ff; font-size:0.95rem; border:1px solid rgba(255,255,255,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.flagship-card { position: relative; border-color: rgba(63,226,196,0.14); background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); }
.flagship-card::before { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at top right, rgba(63,226,196,0.10), transparent 28%), radial-gradient(circle at bottom left, rgba(16,197,255,0.10), transparent 22%); }
.phone-card { position: relative; min-height: 420px; border-radius:34px; overflow:hidden; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); box-shadow: 0 32px 90px rgba(3,8,24,0.32); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.phone-card:hover { transform: translateY(-6px); border-color: rgba(63,226,196,0.24); box-shadow: 0 36px 110px rgba(3,8,24,0.36); }
.phone-card img { display:block; width:100%; height:100%; object-fit: cover; transition: transform 320ms ease; }
.phone-card:hover img { transform: scale(1.03); }
.phone-card figcaption { position:absolute; left:0; right:0; bottom:0; margin:0; padding:22px 26px; color: var(--text); font-weight: 700; font-size: 1.05rem; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 100%); letter-spacing:0.01em; }

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

.homepage-widget-grid {
  align-items: stretch;
}

.homepage-widget-card {
  min-height: 240px;
}

.homepage-widget-quiz,
.homepage-widget-compact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.homepage-widget-quiz {
  border-color: rgba(63,226,196,0.28);
  background: linear-gradient(135deg, rgba(16,197,255,0.12), rgba(63,226,196,0.08));
}

.homepage-widget-compact {
  gap: 18px;
}

.homepage-widget-actions {
  width: 100%;
  margin-top: 6px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-match-widget {
  justify-content: flex-start;
}

.brand-match-widget .homepage-widget-actions {
  margin-top: auto;
}

.brand-match-widget .homepage-widget-actions .button-secondary {
  width: 100%;
}

.card h2, .panel h2, .card h3 { margin-top:0; }
.card p, .panel p { color:var(--muted); }
.card { transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; padding: 36px 34px; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,255,255,0.15); }
.card h2 + p, .card h3 + p, .panel h2 + p, .panel h3 + p { margin-top: 14px; }

#community-poll-box { margin-top: 28px; }
.community-poll-card { border-color: rgba(63,226,196,0.22); background: linear-gradient(180deg, rgba(16,197,255,0.08), rgba(63,226,196,0.04)); }
.community-poll-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
.community-poll-kicker { margin:0 0 8px; color:#b9ecf7; font-size:0.84rem; letter-spacing:0.1em; text-transform:uppercase; font-weight:800; }
.community-poll-header h2 { margin:0; }
.community-poll-total { display:inline-flex; align-items:center; justify-content:center; min-width:92px; padding:10px 14px; border-radius:999px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.08); color:var(--text); font-weight:800; }
.community-poll-form, .community-poll-options, .community-poll-results { display:grid; gap:14px; }
.community-poll-field { display:grid; gap:10px; color:var(--text); font-weight:700; }
.community-poll-field input { width:100%; padding:14px 16px; border-radius:16px; border:1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); color:var(--text); font: inherit; }
.community-poll-field input::placeholder { color: rgba(238,247,255,0.58); }
.community-poll-create-options { margin-top: 4px; }
.community-poll-choice { display:grid; grid-template-columns:18px 1fr; gap:12px; align-items:start; padding:14px 16px; border-radius:18px; border:1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color:var(--text); cursor:pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.community-poll-choice:hover { transform: translateY(-2px); border-color: rgba(63,226,196,0.2); background: rgba(255,255,255,0.05); }
.community-poll-choice input { margin-top:3px; accent-color: var(--accent); }
.community-poll-create-choice { grid-template-columns: 1fr; cursor: default; }
.community-poll-create-choice:hover { transform: none; }
.community-poll-create-choice span { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; color: #b9ecf7; }
.community-poll-create-choice input { margin-top: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); color: var(--text); font: inherit; }
.community-poll-create-choice input::placeholder { color: rgba(238,247,255,0.58); }
.community-poll-create-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.community-poll-submit { width:min(220px, 100%); }
.community-poll-result { padding:14px 16px 16px; border-radius:18px; border:1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.community-poll-result.is-selected { border-color: rgba(63,226,196,0.26); background: rgba(63,226,196,0.08); }
.community-poll-bar-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; font-weight:700; }
.community-poll-bar-label strong { color:#d8ffff; }
.community-poll-bar-track { height:14px; border-radius:999px; overflow:hidden; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.community-poll-bar-fill { width:0; height:100%; border-radius:inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 760ms cubic-bezier(.2,.9,.2,1); }
.community-poll-note { margin:4px 0 0; color:var(--muted); }

.placeholder-card {
  margin-top: 28px;
  text-align: left;
  border-color: rgba(63,226,196,0.32);
  background: linear-gradient(135deg, rgba(16,197,255,0.18), rgba(63,226,196,0.12));
}

.placeholder-card h2 {
  margin: 0;
  letter-spacing: 0.01em;
}

.placeholder-card p {
  margin: 14px 0 0;
  max-width: 68ch;
  color: #d3f3ff;
  line-height: 1.75;
}

.phone-quiz-card {
  border-color: rgba(63,226,196,0.28);
  background: linear-gradient(135deg, rgba(16,197,255,0.12), rgba(63,226,196,0.08));
}

.phone-quiz-root {
  margin-top: 18px;
}

.phone-quiz-step {
  margin: 0;
  color: #b9ecf7;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.phone-quiz-shell h3,
.phone-quiz-result h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
}

.phone-quiz-options {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.phone-quiz-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.phone-quiz-option:hover {
  border-color: rgba(63,226,196,0.34);
  background: rgba(16,197,255,0.08);
}

.phone-quiz-option input {
  margin-top: 3px;
  accent-color: #53c5b2;
}

.phone-quiz-option span {
  color: #e8f8ff;
  line-height: 1.5;
}

.phone-quiz-result {
  border: 1px solid rgba(63,226,196,0.28);
  border-radius: 18px;
  padding: 20px;
  background: rgba(7, 30, 45, 0.7);
}

.topic-card { display:flex; flex-direction:column; justify-content:space-between; min-height:200px; border-radius:var(--radius-md); overflow:hidden; }
.topic-card { display:flex; flex-direction:column; justify-content:space-between; min-height:200px; border-radius:var(--radius-md); overflow:hidden; }
.topic-card { background: linear-gradient(180deg, var(--glass-bg-weak), rgba(255,255,255,0.02)); border:1px solid var(--glass-border); backdrop-filter: blur(var(--glass-blur)) saturate(130%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%); }

/* Universal glass style applied to common box elements (dark translucent to reveal subtle background waves) */
.glass, .card, .panel, .hero, .feature-card, .topic-card, .brand-card, .phone-card, .site-header, .form-card, .brand-banner, details.topic-card {
  /* Dark translucent glass so background color shows through without looking white */
  background-color: rgba(6,14,20,0.28); /* ~72% translucent */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 18px 50px rgba(2,6,23,0.34);
  position: relative;
  overflow: visible;
}

/* confined, subtle wave overlay for glassy elements */
/* Disable all moving/overlay pseudo-elements per user's request */
.glass::after, .feature-card::after, .topic-card::after, .brand-card::after, .phone-card::after, .brand-banner::after {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* removed waveShift keyframes (overrides above stop animations) */

/* ensure content sits above the overlay */
.glass > *, .feature-card > *, .topic-card > *, .brand-card > *, .phone-card > *, .brand-banner > * { position: relative; z-index: 1; }

/* Disable sheen pseudo-elements so no floating highlights remain */
.feature-card::before, .topic-card::before { display: none !important; opacity: 0 !important; transform: none !important; }

/* Also ensure no lingering animations on feature/topic cards */
.feature-card, .topic-card, .brand-card, .phone-card { animation: none !important; }

/* clearer glass on smaller screens */
@media (max-width:620px) {
  :root { --glass-blur: 10px; }
  .site-header { margin-bottom: 12px; }
  .compose-toolbar-group,
  .compose-context-panel {
    padding: 8px;
  }
  .compose-toolbar-group-label,
  .compose-context-title {
    width: 100%;
    justify-content: flex-start;
  }
}
.topic-card h3 { margin-bottom:12px; }
.topic-card p { flex:1; }

details.topic-card { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02)); border-radius:var(--radius-md); border:1px solid rgba(255,255,255,0.03); box-shadow:var(--shadow-md); transition: transform 180ms ease, border-color 180ms ease; overflow:hidden; }

details.topic-card:hover { transform: translateY(-6px); border-color: rgba(63,226,196,0.22); }

details.topic-card summary { list-style:none; cursor:pointer; padding:20px; display:block; position:relative; }

details.topic-card summary::-webkit-details-marker { display:none; }

details.topic-card summary h3 { margin:0; }

details.topic-card summary p { margin:0; color:var(--muted); line-height:1.6; }

details.topic-card summary::after { content:''; position:absolute; right:18px; top:18px; width:34px; height:34px; border-radius:999px; display:grid; place-items:center; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); transition: transform 220ms cubic-bezier(.2,.9,.2,1); }

details.topic-card summary::after { box-shadow: 0 6px 18px rgba(2,6,23,0.35); }

details.topic-card summary::after { content: '\25BE'; color:var(--text); font-weight:700; }

details.topic-card[open] summary::after { transform: rotate(180deg) translateY(-2px); }

details.topic-card[open] { border-color: rgba(16,197,255,0.22); }

.details-content { padding:0 20px 20px; border-top:1px solid rgba(255,255,255,0.03); max-height:0; overflow:hidden; transition: max-height 360ms ease; }

details.topic-card[open] .details-content { max-height:1200px; }

.form-card { max-width:560px; }
.form-group { margin-bottom:14px; }
.form-group { position: relative; }
.form-group label { display:block; margin-bottom:8px; font-weight:600; color:#e8f2ff; }
.form-group input {
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(71,85,105,0.95);
  background: rgba(6,18,28,0.92);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-group input::placeholder {
  color: rgba(226,232,240,0.88);
  opacity: 1;
}

.form-group input:focus {
  outline:none;
  border-color: rgba(63,226,196,0.9);
  box-shadow: 0 0 0 4px rgba(63,226,196,0.14);
  background: rgba(8,24,36,0.98);
}

.message { padding:12px 14px; border-radius:12px; margin-top:12px; font-size:0.95rem; }
.message.success { background: rgba(49,191,155,0.12); color:#b7f3e7; }
.message.error { background: rgba(231,111,119,0.12); color:#ffd9d3; }

.footer-note { margin-top:36px; color:var(--muted); font-size:0.95rem; }

@media (max-width:860px) { .grid-2, .grid-3, .phone-gallery.pixel-showcase, .phone-gallery.pixel-showcase.duo { grid-template-columns:1fr; } .hero { padding:18px; } }
@media (max-width:620px) { .site-header { position:relative; flex-direction:column; align-items:flex-start; gap:8px; } .page { padding:18px; } }

/* Disable large decorative pseudo-elements that created visible artifacts */
.brand-banner::before, .flagship-card::before { display: none !important; opacity: 0 !important; }

/* Page transition overlay and page transform for smooth navigation */
.page-transition-overlay { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0.0), rgba(2,6,23,0.6)); pointer-events: none; opacity: 0; transition: opacity 420ms cubic-bezier(.2,.9,.2,1); z-index: 9999; }
body.transitioning .page-transition-overlay { opacity: 1; pointer-events: auto; }
/* slightly dim and nudge the page during transition */
/* make page transitions snappier and cooler */
.page { transition: opacity 260ms ease, transform 260ms cubic-bezier(.22,1,.36,1); }
.page.preload { opacity: 0; transform: translateY(6px) scale(0.998); }
body.transitioning .page { transform: translateY(-10px) scale(0.996); opacity: 0; transition: transform 260ms cubic-bezier(.22,1,.36,1), opacity 220ms ease; }

/* background waves are now rendered by a canvas animation instead of CSS pseudo-elements */
@keyframes waveDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 1%, 0) scale(1.01); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-page .community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.community-hero-copy .lead {
  max-width: 680px;
  line-height: 1.75;
}

.community-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.community-stats span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16,197,255,0.12);
  color: #d7f8ff;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
  font-weight: 600;
}

.community-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 100%;
}

.community-panel-label,
.community-panel-note {
  margin: 0;
  color: var(--muted);
}

.community-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.community-avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(83,197,178,0.28), rgba(109,197,224,0.22));
  color: #ecfeff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.community-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.community-avatar-lg {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  font-size: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-avatar-lg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-picture-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.profile-picture-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.profile-picture-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.profile-picture-message {
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.camera-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.camera-modal:not([hidden]) {
  display: flex;
}

.camera-modal [hidden] {
  display: none !important;
}

.camera-modal-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(86vh, 760px);
  overflow-y: auto;
}

.camera-modal-content h2 {
  margin: 0;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.camera-preview,
.captured-photo-preview {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin: 0 auto;
}

.camera-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captured-photo-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.camera-circle-guide {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

#captureButton {
  width: 100%;
  margin-bottom: 8px;
}

.camera-button-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.camera-button-section button {
  width: 100%;
}

.camera-button-section .button-secondary {
  order: 2;
}

.camera-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

#closeCameraButtonInitial,
#closeCameraButton,
#retakeButton,
#applyPhotoButton {
  width: 100%;
}

.button-large {
  padding: 16px 24px;
  font-size: 1.1rem;
}

#cameraMessage {
  margin: 0;
  flex-shrink: 0;
}

.framing-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.framing-modal:not([hidden]) {
  display: flex;
}

.framing-modal-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

.framing-modal-content h2 {
  margin: 0;
  font-size: 1.3rem;
}

.framing-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  margin: 0 auto;
}

.framing-container:active {
  cursor: grabbing;
}

.circle-guide {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
}

.framing-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  cursor: grab;
}

.framing-image:active {
  cursor: grabbing;
}

.framing-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.framing-label {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 50px;
}

.zoom-slider {
  flex: 1;
  min-width: 150px;
}

.zoom-value {
  font-size: 0.9rem;
  min-width: 50px;
  text-align: right;
}

.framing-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.framing-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.framing-modal-actions button {
  flex: 1;
  min-width: 120px;
}

.community-username {
  font-weight: 700;
}

.community-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.community-toolbar,
.community-composer,
.community-feed-shell {
  margin-top: 24px;
}

.community-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.community-search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.community-search-input:focus {
  outline: none;
  border-color: rgba(63,226,196,0.7);
  box-shadow: 0 0 0 6px rgba(16,197,255,0.06);
}

.community-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.community-filter {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.community-filter:hover,
.community-filter.is-active {
  transform: translateY(-2px);
  background: rgba(16,197,255,0.12);
  border-color: rgba(63,226,196,0.24);
}

.community-composer-header h2,
.community-feed-header h2,
.post-card-title {
  margin: 0;
}

.community-composer-header p,
.community-feed-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.community-form textarea,
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(71,85,105,0.95);
  background: rgba(6,18,28,0.92);
  color: var(--text);
  resize: vertical;
  min-height: 120px;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.community-form textarea::placeholder,
.comment-form textarea::placeholder {
  color: rgba(226,232,240,0.88);
  opacity: 1;
}

.community-form textarea:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(63,226,196,0.9);
  box-shadow: 0 0 0 4px rgba(63,226,196,0.14);
  background: rgba(8,24,36,0.98);
}

.community-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.community-form-actions .button-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(71,85,105,0.85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.community-form-actions .button-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(148,163,184,0.95);
  box-shadow: 0 10px 24px rgba(2,6,23,0.18);
}

.community-form-actions .button {
  min-width: 150px;
}

.community-feed {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.post-card {
  display: grid;
  gap: 16px;
}

.post-card-header,
.comment-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.post-card-author,
.comment-item-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-card-body {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  white-space: normal;
}

.post-card-footer {
  display: flex;
  gap: 12px;
}

.community-text-button {
  border: none;
  background: transparent;
  color: var(--accent-2);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.community-text-button:hover {
  color: #b9f4ff;
}

.comment-thread {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.comment-item p {
  margin: 10px 0 0;
  line-height: 1.65;
}

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

.community-empty {
  margin-top: 18px;
  text-align: center;
}

.community-empty h3 {
  margin-top: 0;
}

.account-profile-card {
  display: grid;
  gap: 18px;
}

.account-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.account-profile-meta {
  margin: 0;
  color: var(--muted);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--muted);
}

.form-check input {
  width: auto;
}

@media (max-width: 860px) {
  .community-page .community-hero {
    grid-template-columns: 1fr;
  }
}

.discover-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 24px;
}

.discover-hero-copy {
  max-width: 760px;
}

.discover-hero-copy .lead {
  margin-top: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.discover-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.discover-toolbar {
  margin-bottom: 24px;
}

.discover-toolbar-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.live-preview-shell {
  margin-bottom: 24px;
}

.live-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.live-preview-header h2 {
  margin: 0;
}

.live-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.live-preview-toggle input {
  width: auto;
}

.live-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.live-preview-layout.preview-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.live-preview-pane[hidden] {
  display: none;
}

.discover-preview-card {
  min-height: 320px;
}

.discover-preview-excerpt strong {
  color: #ecfbff;
  font-weight: 700;
}

.discover-preview-placeholder {
  color: rgba(232, 244, 251, 0.72);
  font-style: italic;
}

.live-draft-form textarea {
  resize: none;
  overflow-y: hidden;
}

.live-char-counter {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: right;
}

.live-char-counter.is-warning {
  color: #ff9a9a;
}

.draft-image-preview {
  margin-top: 10px;
}

.draft-image-chip {
  position: relative;
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.draft-image-thumb {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.draft-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(2, 10, 18, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.draft-image-remove:hover {
  background: rgba(231,111,119,0.88);
}

/* ── Direct Messaging modal ───────────────────────────────────────────────── */
.dm-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
}

.dm-modal[hidden] { display: none; }

.dm-modal-inner {
  display: flex;
  flex-direction: column;
  height: min(520px, 80vh);
  border-radius: 20px;
  background: #061820;
  border: 1px solid rgba(63,226,196,0.22);
  box-shadow: 0 28px 72px rgba(2,6,23,0.72);
  overflow: hidden;
}

.dm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(16,197,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.dm-modal-with {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.dm-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }

.dm-message-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.dm-empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: auto;
}

.dm-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dm-bubble-self {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #021018;
  border-bottom-right-radius: 4px;
}

.dm-bubble-other {
  align-self: flex-start;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.dm-bubble-text { margin: 0; }

.dm-bubble-time {
  display: block;
  font-size: 0.72rem;
  margin-top: 4px;
  opacity: 0.6;
}

.dm-compose {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.dm-compose-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 0;
}

.dm-compose-input::placeholder { color: rgba(238,247,255,0.45); }
.dm-compose-input:focus { outline: none; border-color: rgba(16,197,255,0.5); }

.dm-send-btn {
  padding: 10px 16px;
  font-size: 0.88rem;
  border-radius: 12px;
  flex-shrink: 0;
}

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

.discover-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px;
  border-radius: 24px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 18px 50px rgba(2,6,23,0.34);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
  position: relative;
}

.discover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
}

.discover-card.discover-a::before { background: radial-gradient(circle at top right, rgba(83,197,178,0.22), transparent 42%); }
.discover-card.discover-b::before { background: radial-gradient(circle at top right, rgba(109,197,224,0.22), transparent 42%); }
.discover-card.discover-c::before { background: radial-gradient(circle at top right, rgba(120,140,255,0.18), transparent 42%); }
.discover-card.discover-d::before { background: radial-gradient(circle at top right, rgba(63,226,196,0.18), transparent 42%); }
.discover-card.discover-e::before { background: radial-gradient(circle at top right, rgba(16,197,255,0.16), transparent 42%); }
.discover-card.discover-f::before { background: radial-gradient(circle at top right, rgba(90,170,255,0.16), transparent 42%); }

.discover-card > * {
  position: relative;
  z-index: 1;
}

.discover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,255,255,0.12);
  border-color: rgba(63,226,196,0.22);
}

.discover-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.discover-author {
  display: block;
  font-weight: 700;
  text-decoration: none;
  color: #eaf9ff;
}

.discover-handle {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.discover-author:hover {
  color: #bff7ff;
}

.discover-author-link {
  text-decoration: none;
}

.discover-card-main {
  display: block;
  text-decoration: none;
  color: inherit;
}

.discover-cover-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.discover-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: transparent;
}

.discover-card-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.discover-card-excerpt {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.discover-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.discover-card-arrow {
  font-size: 1.1rem;
}

.discover-empty {
  margin-top: 24px;
  text-align: center;
  padding: 42px 28px;
}

.discover-empty h2,
.discover-empty h3 {
  margin-top: 0;
}

.compose-back {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.compose-back:hover {
  color: #d8fbff;
}

.compose-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.compose-header-top .compose-back {
  margin-bottom: 0;
}

.compose-shell {
  margin-top: 12px;
  width: min(760px, 100%);
  max-width: 760px;
}

.compose-header h1 {
  margin: 12px 0 8px;
}

.compose-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.compose-media-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compose-cover-preview {
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 520px;
}

.compose-cover-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.compose-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.compose-toolbar-group,
.compose-context-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.compose-toolbar-group-label,
.compose-context-title {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.compose-toolbar-group .compose-icon-button,
.compose-context-actions .compose-icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.96rem;
  line-height: 1;
}

.compose-icon-button {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.compose-icon-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(63,226,196,0.22);
}

.compose-icon-button.is-active {
  border-color: rgba(63,226,196,0.8);
  background: rgba(63,226,196,0.24);
  color: #e6feff;
  box-shadow: 0 0 0 1px rgba(63,226,196,0.18) inset;
}

.compose-context-panel {
  margin-top: 12px;
}

.compose-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compose-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rich-editor {
  min-height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  padding: 14px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
  position: relative;
}

.rich-editor img.post-image-grid {
  display: block;
}

.rich-editor:not(.free-layout-mode) img.post-image-grid,
.rich-editor:not(.free-layout-mode) .post-image-wrap-left,
.rich-editor:not(.free-layout-mode) .post-image-wrap-right {
  display: block;
  float: none !important;
  clear: both;
  margin: 14px auto;
}

.rich-editor:not(.free-layout-mode) img.post-image-grid {
  max-width: 100%;
  height: auto;
}

.rich-editor:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(63,226,196,0.16);
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor.free-layout-mode {
  display: block;
  position: relative;
  min-height: 420px;
  overflow: auto;
}

.rich-editor.free-layout-mode > .layout-block {
  margin: 0;
  min-width: 0;
  position: absolute;
}

.rich-editor.free-layout-mode > .layout-block.layout-block-text {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  cursor: text;
}

.rich-editor.free-layout-mode > .layout-block.layout-block-image {
  cursor: grab;
}

.rich-editor.free-layout-mode > .layout-block.layout-block-image.layout-block-dragging {
  cursor: grabbing;
  opacity: 0.92;
}

.rich-editor.free-layout-mode > .layout-block.layout-block-image.post-image-wrap-left,
.rich-editor.free-layout-mode > .layout-block.layout-block-image.post-image-wrap-right {
  float: none;
  margin: 0;
}

.layout-block-selected {
  outline: 2px solid rgba(63,226,196,0.9);
  outline-offset: 2px;
}

.layout-drag-guide {
  position: absolute;
  z-index: 14;
  pointer-events: none;
}

.layout-drag-guide-vertical {
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(63,226,196,0.2), rgba(63,226,196,0.95), rgba(63,226,196,0.2));
  box-shadow: 0 0 0 1px rgba(6,26,38,0.55), 0 0 14px rgba(63,226,196,0.45);
}

.layout-drag-guide-horizontal {
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(109,197,224,0.2), rgba(109,197,224,0.96), rgba(109,197,224,0.2));
  box-shadow: 0 0 0 1px rgba(6,26,38,0.55), 0 0 14px rgba(109,197,224,0.45);
}

.rich-editor.free-layout-mode .layout-block.layout-drop-before {
  box-shadow: inset 0 2px 0 rgba(109,197,224,0.95);
}

.rich-editor.free-layout-mode .layout-block.layout-drop-after {
  box-shadow: inset 0 -2px 0 rgba(109,197,224,0.95);
}

.image-resize-handle {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(63,226,196,0.9);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  cursor: nwse-resize;
  z-index: 12;
}

.layout-block-resizing {
  outline: 2px dashed rgba(255,255,255,0.92);
  outline-offset: 2px;
}

/* ── Text-box draw mode ─────────────────────────────────── */
.rich-editor.textbox-draw-cursor,
.rich-editor.textbox-draw-cursor * {
  cursor: crosshair !important;
}

.textbox-draw-preview {
  position: absolute;
  border: 2px dashed rgba(63,226,196,0.9);
  background: rgba(63,226,196,0.07);
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(6,26,38,0.4);
}

.hero,
.card,
.panel,
.feature-card,
.topic-card,
.brand-card,
.phone-card,
.form-card,
.brand-banner,
details.topic-card,
.glass {
  background-color: var(--card-bg);
  border-color: var(--card-border);
}

.hero .lead,
.card p,
.panel p,
.footer-note,
.brand-card p,
.topic-card p,
details.topic-card summary p,
.account-profile-meta,
.community-meta,
.discover-hero-copy .lead,
.discover-toolbar-note,
.discover-card-excerpt {
  color: var(--muted);
}

@media (max-width: 620px) {
  .theme-toggle-wrap {
    margin-left: 0;
    width: 100%;
  }

  .theme-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── Drawn text boxes ───────────────────────────────────── */
/* ── Drawn text boxes in EDITING context ───────────────────────────────────── */
.page.community-page .drawn-text-box {
  position: absolute;
  overflow: hidden;
  min-height: 40px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.page.community-page .drawn-text-box:hover {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.01);
}

.page.community-page .drawn-text-box:focus,
.page.community-page .drawn-text-box.layout-block-selected {
  outline: 2px solid rgba(63,226,196,0.85);
  border-color: rgba(63,226,196,0.35);
  background: rgba(255,255,255,0.03);
}

.textbox-delete-btn {
  position: absolute;
  top: -11px;
  right: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(231,111,119,0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 5;
}

.drawn-text-box:hover > .textbox-delete-btn,
.drawn-text-box.layout-block-selected > .textbox-delete-btn {
  opacity: 1;
}

.post-editor-image-selected {
  outline: 2px solid rgba(63,226,196,0.9);
  outline-offset: 2px;
}


.manual-crop-shell {
  width: 100%;
}

.manual-crop-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  max-height: 62vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.cover-crop-image {
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
  user-select: none;
  pointer-events: none;
}

.manual-crop-selection {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(63,226,196,0.15);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  cursor: move;
}

.manual-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.95);
  background: rgba(63,226,196,0.95);
}

.manual-crop-handle.handle-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.manual-crop-handle.handle-n { left: calc(50% - 7px); top: -7px; cursor: ns-resize; }
.manual-crop-handle.handle-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.manual-crop-handle.handle-e { right: -7px; top: calc(50% - 7px); cursor: ew-resize; }
.manual-crop-handle.handle-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.manual-crop-handle.handle-s { left: calc(50% - 7px); bottom: -7px; cursor: ns-resize; }
.manual-crop-handle.handle-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.manual-crop-handle.handle-w { left: -7px; top: calc(50% - 7px); cursor: ew-resize; }

@media (max-width: 720px) {
  .manual-crop-stage {
    min-height: 260px;
  }
}

.mine-grid .mine-card {
  text-decoration: none;
}

.mine-card .discover-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.mine-card {
  gap: 16px;
}

.mine-delete-button {
  width: 100%;
}

.post-shell {
  display: grid;
  gap: 24px;
  margin-top: 12px;
}

.post-detail {
  padding: 34px;
}

.post-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

.post-detail-title {
  margin: 24px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.post-detail-body {
  margin-top: 22px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #e8f4fb;
  position: relative; /* needed for absolute-positioned drawn text boxes */
}

.post-detail-body.post-detail-body-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.post-detail-body.post-detail-body-layout > * {
  grid-column: 1 / -1;
}

.post-detail-body .layout-block {
  margin: 0;
  min-width: 0;
}

.post-detail-body .layout-block[data-layout-start][data-layout-span] {
  grid-column: var(--layout-start, 1) / span var(--layout-span, 12);
}

.post-detail-body .layout-block.layout-block-text:not(.drawn-text-box) {
  padding: 4px 0;
}

/* drawn-text-boxes in published posts: positioned absolutely, invisible as a box */
.post-detail-body .drawn-text-box {
  position: absolute !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow: hidden !important;
}

.post-detail-body .drawn-text-box:hover,
.post-detail-body .drawn-text-box:focus {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.post-detail-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
  border-radius: 18px;
  object-fit: cover;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
}

.post-inline-media {
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.post-inline-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: rgba(0,0,0,0.35);
}

.post-detail-body::after {
  content: '';
  display: block;
  clear: both;
}

.post-detail-body p {
  margin: 10px 0;
}

.post-align-left { text-align: left; }
.post-align-center { text-align: center; }
.post-align-right { text-align: right; }
.post-align-justify { text-align: justify; }

.post-detail-body h3 {
  margin: 20px 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.post-detail-body blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(83,197,178,0.8);
  background: rgba(83,197,178,0.1);
  border-radius: 10px;
  color: #d8f8ff;
}

.post-detail-body img {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
}

.post-detail-body > :first-child {
  margin-top: 22px;
}

.post-image-size-sm { width: min(220px, 100%); }
.post-image-size-md { width: min(420px, 100%); }
.post-image-size-lg { width: min(100%, 760px); }

.post-image-wrap-none {
  display: block;
  float: none;
  margin: 14px auto;
}

.post-image-wrap-left {
  float: left;
  margin: 10px 16px 10px 0;
}

.post-image-wrap-right {
  float: right;
  margin: 10px 0 10px 16px;
}

.post-image-pos-left {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.post-image-pos-center {
  margin-left: auto !important;
  margin-right: auto !important;
}

.post-image-pos-right {
  margin-left: auto !important;
  margin-right: 0 !important;
}

.post-inline-heading {
  margin: 20px 0 10px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.post-inline-paragraph {
  margin: 10px 0;
}

.post-inline-quote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(83,197,178,0.8);
  background: rgba(83,197,178,0.1);
  border-radius: 10px;
  color: #d8f8ff;
}

.author-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.author-chip-link:hover strong {
  color: #bff7ff;
}

.post-comments-panel {
  padding: 30px 34px;
}

.post-comments-header h2 {
  margin: 0;
}

.post-comments-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.account-hero {
  margin-bottom: 24px;
}

.account-info-card {
  display: grid;
  gap: 18px;
}

.account-info-note,
.account-password-hint {
  margin: 0;
  color: var(--muted);
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.account-info-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.account-info-item dt,
.account-info-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-info-item dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.account-password-panel {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.account-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-password-value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.author-shell {
  margin-top: 14px;
  display: grid;
  gap: 20px;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-title {
  margin: 0;
}

.author-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.author-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.author-card h2 {
  margin-top: 0;
}

.author-card p {
  margin: 0;
  color: #ddf0f8;
  line-height: 1.72;
}

.phone-history-editor {
  align-items: end;
}

.phone-history-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 10px;
}

.phone-history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.phone-history-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(87,196,205,0.12);
  border: 1px solid rgba(87,196,205,0.25);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.phone-history-badge-static {
  padding-right: 12px;
}

.phone-history-remove {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.author-card-full {
  grid-column: 1 / -1;
}

.author-details-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.author-details-list div {
  display: grid;
  gap: 4px;
}

.author-details-list dt {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-details-list dd {
  margin: 0;
  font-weight: 700;
}

.author-empty-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.author-empty-state h2 {
  margin-top: 0;
}


.vs-matrix-hero {
  background:
    radial-gradient(circle at top left, rgba(100, 223, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(91, 231, 188, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.vs-matrix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: 26px;
}

.vs-matrix-controls,
.vs-matrix-scorecard,
.vs-matrix-table-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.vs-matrix-controls-header,
.vs-matrix-scorecard-header,
.vs-matrix-table-head {
  margin-bottom: 16px;
}

.vs-matrix-checklist {
  display: grid;
  gap: 12px;
}

.vs-matrix-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.vs-matrix-option:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 220, 199, 0.24);
  background: rgba(255,255,255,0.05);
}

.vs-matrix-option-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.vs-matrix-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.vs-matrix-option strong,
.vs-matrix-option small {
  display: block;
}

.vs-matrix-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.vs-matrix-weight {
  display: grid;
  gap: 8px;
  align-self: center;
}

.vs-matrix-weight-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vs-weight-value {
  font-weight: 800;
  color: var(--text);
}

.vs-gauge-stack {
  display: grid;
  gap: 16px;
}

.vs-gauge-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.vs-gauge-card.android-base {
  box-shadow: inset 0 0 0 1px rgba(87, 231, 181, 0.08);
}

.vs-gauge-card.oneui {
  box-shadow: inset 0 0 0 1px rgba(255, 194, 87, 0.1);
}

.vs-gauge-card.pixelui {
  box-shadow: inset 0 0 0 1px rgba(154, 128, 255, 0.1);
}

.vs-gauge-card.ios {
  box-shadow: inset 0 0 0 1px rgba(112, 195, 255, 0.08);
}

.vs-gauge-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vs-gauge-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.vs-gauge-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 220ms ease;
}

.vs-gauge-card.android-base .vs-gauge-bar span {
  background: linear-gradient(90deg, #4add98, #17c36c);
}

.vs-gauge-card.oneui .vs-gauge-bar span {
  background: linear-gradient(90deg, #ffd36f, #f19a20);
}

.vs-gauge-card.pixelui .vs-gauge-bar span {
  background: linear-gradient(90deg, #ae98ff, #6b6ef4);
}

.vs-gauge-card.ios .vs-gauge-bar span {
  background: linear-gradient(90deg, #6ac8ff, #2f83ff);
}

.vs-gauge-card p,
.vs-matrix-winner p {
  margin: 0;
}

.vs-matrix-winner {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.vs-matrix-winner h3 {
  margin: 0 0 8px;
}

.vs-matrix-table-card {
  margin-top: 26px;
}

.vs-matrix-table-wrap {
  overflow-x: auto;
}

.vs-matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.vs-matrix-table th,
.vs-matrix-table td {
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.vs-matrix-table th {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.vs-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.vs-score-pill.android {
  background: rgba(74, 221, 152, 0.14);
  border: 1px solid rgba(74, 221, 152, 0.22);
}

.vs-score-pill.oneui {
  background: rgba(255, 211, 111, 0.14);
  border: 1px solid rgba(255, 211, 111, 0.24);
}

.vs-score-pill.pixelui {
  background: rgba(174, 152, 255, 0.14);
  border: 1px solid rgba(174, 152, 255, 0.24);
}

.vs-score-pill.ios {
  background: rgba(106, 200, 255, 0.14);
  border: 1px solid rgba(106, 200, 255, 0.22);
}

@media (max-width: 980px) {
  .discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vs-matrix-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .discover-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .discover-grid,
  .account-info-grid,
  .public-profile-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .vs-gauge-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .vs-matrix-option {
    grid-template-columns: 1fr;
  }

  .phone-history-inline-fields {
    grid-template-columns: 1fr;
  }

  .account-password-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-detail,
  .post-comments-panel {
    padding: 24px;
  }
}

