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

body {
  font-family: 'Roboto Mono', monospace;
  color: #fff;
  background: linear-gradient(160deg, #000000 0%, #150000 40%, #2b0000 80%, #000000 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 0, 0, 0.25);
  animation: fadeDown 0.6s ease-out both;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff1a1a;
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.7);
}
.logo span { color: #fff; }
nav { display: flex; gap: 18px; align-items: center; }
nav .nav-link {
  color: #c9b0b0;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.25s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
nav .nav-link:hover { color: #ff4d4d; }

.first { display: none; }
.first.show {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 0, 0, 0.3);
}
.hidden { display: none !important; }
.first .avatar {
  width: 40px; height: 40px;
  border: 1px solid #ff0000;
  object-fit: cover;
  background: rgba(255, 0, 0, 0.08);
}
.first .who { line-height: 1.25; text-align: left; }
.first .who b { display: block; font-size: 13px; color: #fff; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.first .who small { font-size: 10.5px; color: #ff4d4d; display: block; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.first .logout {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff4d4d;
  background: transparent;
  border: 1px solid rgba(255, 0, 0, 0.5);
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.first .logout:hover { background: #ff0000; color: #fff; }
.first .logout.hidden { display: none; }
.auth-btns .btn { margin-left: 10px; }

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, background-position 0.4s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #8a0000, #ff0000);
  background-size: 200% 100%;
  padding: 12px 22px;
  font-size: 13px;
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 0 22px rgba(255, 0, 0, 0.55);
}
.btn-ghost {
  background: transparent;
  border: 1px solid #ff0000;
  color: #ff4d4d;
  padding: 12px 22px;
  font-size: 13px;
}
.btn-ghost:hover { background: rgba(255, 0, 0, 0.15); color: #fff; }

/* Hero */
.hero { text-align: center; padding: 90px 0 70px; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 600px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 0, 0, 0.18), transparent 65%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #ff1a1a;
  text-shadow: 0 0 24px rgba(255, 0, 0, 0.75);
  animation: glow 2.6s ease-in-out infinite, fadeUp 0.6s ease-out both;
}
.hero .sub {
  margin: 22px auto 12px;
  font-size: 15px;
  color: #e8d9d9;
  max-width: 560px;
  line-height: 1.7;
  animation: fadeUp 0.6s ease-out 0.15s both;
}
.hero .sub b { color: #ff4d4d; }
.hero .stats {
  margin: 40px auto 30px;
  display: inline-flex;
  gap: 44px;
  border: 1px solid rgba(255, 0, 0, 0.4);
  padding: 18px 34px;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.6s ease-out 0.25s both;
}
.stat .num { font-size: 26px; font-weight: 700; color: #ff1a1a; display: block; }
.stat .lbl { font-size: 11px; letter-spacing: 1px; color: #c9a5a5; text-transform: uppercase; }
.hero-actions {
  display: flex; gap: 16px; justify-content: center;
  animation: fadeUp 0.6s ease-out 0.35s both;
}
.hero-actions .btn { padding: 16px 34px; font-size: 14px; }
.hero-actions .btn-long { min-width: 300px; }

/* Sections */
.section-title { margin-bottom: 40px; text-align: center; }
.section-title h2 { font-size: 26px; letter-spacing: 3px; text-transform: uppercase; color: #ff1a1a; }
.section-title p { color: #c9b0b0; font-size: 13px; margin-top: 8px; }

.features { padding-bottom: 80px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feat {
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.55);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: fadeUp 0.6s ease-out both;
}
.feat:nth-child(2) { animation-delay: 0.1s; }
.feat:nth-child(3) { animation-delay: 0.2s; }
.feat:nth-child(4) { animation-delay: 0.3s; }
.feat:hover {
  transform: translateY(-6px);
  border-color: #ff0000;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.25);
}
.feat .icon { color: #ff1a1a; margin-bottom: 14px; display: block; }
.feat .icon img { display: block; }
.feat h3 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.feat p { font-size: 12.5px; color: #c9b0b0; line-height: 1.7; }

.steps {
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  border: 1px solid rgba(255, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.55);
  padding: 30px 24px 24px;
  animation: fadeUp 0.6s ease-out both;
}
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.2s; }
.step .n {
  position: absolute; top: -14px; left: 24px;
  background: #ff0000; color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 4px 12px;
}
.step h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.step p { font-size: 12.5px; color: #c9b0b0; line-height: 1.7; }

.cta { padding: 0 0 80px; text-align: center; }
.cta-box {
  border: 1px solid #ff0000;
  background: rgba(0, 0, 0, 0.6);
  padding: 46px 30px;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
  animation: fadeUp 0.6s ease-out both;
}
.cta-box h2 { font-size: 24px; letter-spacing: 3px; text-transform: uppercase; color: #ff1a1a; }
.cta-box p { color: #c9b0b0; font-size: 13px; margin: 14px 0 26px; }
.cta-box .btn { padding: 15px 36px; font-size: 14px; }

footer {
  border-top: 1px solid rgba(255, 0, 0, 0.25);
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between;
  color: #8f6a6a; font-size: 12px;
}
footer a { color: #ff4d4d; text-decoration: none; margin-left: 16px; cursor: pointer; }
footer a:hover { text-decoration: underline; }

/* Overlays / modals */
.overlay {
  display: none;
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  align-items: center; justify-content: center;
  padding: 20px;
}
.overlay.open { display: flex; }
.auth-card {
  width: 100%; max-width: 400px;
  background: #0a0000;
  border: 1px solid #ff0000;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.4);
  padding: 40px 36px;
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.auth-card h3 { font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: #ff1a1a; }

.close {
  background: transparent;
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff4d4d;
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.close:hover { background: #ff0000; color: #fff; transform: rotate(90deg); }
.close:hover img { filter: brightness(0) invert(1); }
.close img { display: block; }

input, select {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 0;
  border: 1px solid rgba(255, 0, 0, 0.4);
  background: rgba(255, 0, 0, 0.05);
  color: #fff;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
input::placeholder { color: #8f6a6a; }
input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
  transform: translateY(-2px);
}
.auth-card .btn, .info-card .btn, .avatar-card .btn { width: 100%; padding: 15px; font-size: 14px; margin-top: 6px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 12.5px; color: #c9b0b0; }
.auth-switch a { color: #ff4d4d; cursor: pointer; text-decoration: underline; }
.message { margin-top: 16px; text-align: center; font-size: 12.5px; color: #ff4d4d; min-height: 16px; }
.field-hint { font-size: 11px; color: #8f6a6a; margin: -10px 0 12px; }

.avatar-pick { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.avatar-pick img {
  width: 64px; height: 64px;
  border: 1px solid #ff0000;
  object-fit: cover;
  background: rgba(255, 0, 0, 0.08);
}
.avatar-pick .btn {
  max-width: 50%; font-size: 11px; padding: 10px 16px; margin: 0;
}
.avatar-pick input[type="file"] { display: none; }

/* App window placeholder: background + left sidebar */
.app-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: linear-gradient(160deg, #000000 0%, #150000 40%, #2b0000 80%, #000000 100%);
  background-attachment: fixed;
}
.app-view.active { display: block; }
.app-sidebar {
  position: absolute;
  left: 24px; top: 24px;
  width: 300px;
  height: calc(100% - 48px);
  border: 1px solid #ff0000;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.app-search {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.35);
}
.app-search input {
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 0;
  border: 1px solid rgba(255, 0, 0, 0.4);
  background: rgba(255, 0, 0, 0.05);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.app-search input::placeholder { color: #8f6a6a; }
.app-search input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
}

.app-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.app-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.app-result .avatar {
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 0, 0, 0.5);
  object-fit: cover;
  background: rgba(255, 0, 0, 0.08);
  flex: none;
}
.app-result .who { line-height: 1.3; min-width: 0; }
.app-result .who b {
  display: block;
  font-size: 13px; color: #fff;
  max-width: 180px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-result .who small {
  display: block;
  font-size: 11px; color: #ff4d4d;
  max-width: 180px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-result:hover { background: rgba(255, 0, 0, 0.08); }
.app-none {
  padding: 12px 16px;
  font-size: 12px;
  color: #8f6a6a;
}

.app-account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(255, 0, 0, 0.35);
}
.app-account .avatar {
  width: 42px; height: 42px;
  border: 1px solid #ff0000;
  object-fit: cover;
  background: rgba(255, 0, 0, 0.08);
}
.app-account .who { line-height: 1.25; min-width: 0; }
.app-account .who b {
  display: block;
  font-size: 13px; color: #fff;
  max-width: 110px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-account .who small {
  display: block;
  font-size: 10.5px; color: #ff4d4d;
  max-width: 110px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-account .logout {
  margin-left: auto;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff4d4d;
  background: transparent;
  border: 1px solid rgba(255, 0, 0, 0.5);
  padding: 7px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.app-account .logout:hover { background: #ff0000; color: #fff; }

/* Chat pane: sits to the right of the sidebar inside the app view */
.app-chat {
  display: none;
  position: absolute;
  left: 348px; top: 24px;
  width: 420px;
  height: calc(100% - 48px);
  border: 1px solid #ff0000;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
  flex-direction: column;
}
.app-chat.open { display: flex; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.35);
}
.chat-head .avatar {
  width: 40px; height: 40px;
  border: 1px solid #ff0000;
  object-fit: cover;
  background: rgba(255, 0, 0, 0.08);
}
.chat-head .who { line-height: 1.3; min-width: 0; }
.chat-head .who b {
  display: block; font-size: 13px; color: #fff;
  max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-head .who small {
  display: block; font-size: 11px; color: #ff4d4d;
  max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-close {
  margin-left: auto;
  background: transparent; border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff4d4d; font-size: 18px; line-height: 1;
  width: 32px; height: 32px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chat-close:hover { background: #ff0000; color: #fff; }
.chat-lines {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-line {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}
.chat-line.mine { align-self: flex-end; align-items: flex-end; }
.chat-line .bubble {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-line.mine .bubble {
  background: rgba(255, 0, 0, 0.55);
  border: 1px solid #ff0000;
}
.chat-line.theirs .bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.chat-line small {
  font-size: 9.5px;
  color: #8f6a6a;
  margin-top: 3px;
}
.chat-empty {
  color: #8f6a6a;
  font-size: 12px;
  text-align: center;
  margin: auto;
}
.chat-input {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 0, 0, 0.35);
}
.chat-input input {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 0;
  border: 1px solid rgba(255, 0, 0, 0.4);
  background: rgba(255, 0, 0, 0.05);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.chat-input input:focus { border-color: #ff0000; box-shadow: 0 0 12px rgba(255, 0, 0, 0.35); }
.chat-send {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #cc0000;
  border: 1px solid #ff0000;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-send:hover:not(:disabled) { background: #ff0000; }
.chat-send:disabled { opacity: 0.5; cursor: default; }

.info-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.9);
  align-items: flex-start; justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}
.info-overlay.open { display: flex; }
.info-card {
  width: 100%; max-width: 640px;
  background: #0a0000;
  border: 1px solid #ff0000;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.4);
  padding: 40px 38px;
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.info-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.info-card h3 { font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: #ff1a1a; }
.info-card .body { font-size: 13px; color: #d9c8c8; line-height: 1.8; }
.info-card .body h4 { color: #ff4d4d; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 24px 0 8px; }
.info-card .body p { margin-bottom: 10px; }
.info-card .body ul { padding-left: 20px; margin-bottom: 10px; }
.info-card .body li { margin-bottom: 6px; }
.info-card .body b { color: #fff; }
.info-card .body a { color: #ff4d4d; }

.video-wrap {
  border: 1px solid #ff0000;
  background: #000;
  padding: 6px;
  pointer-events: none;
  user-select: none;
}
.video-wrap video { width: 100%; display: block; background: #000; }
.support-note { margin-top: 16px; text-align: center; font-size: 12.5px; color: #ff4d4d; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow {
  0%, 100% { text-shadow: 0 0 12px rgba(255, 0, 0, 0.4); }
  50% { text-shadow: 0 0 30px rgba(255, 0, 0, 1); }
}