/* Import Google Fonts - Outfit & Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Light and Dark Modes */
:root {
  /* Light Theme Colors (White + Soft Blue) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: #eff6ff;
  --accent-border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(59, 130, 246, 0.05), 0 4px 6px -4px rgba(59, 130, 246, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(226, 232, 240, 0.8);
  --msg-self: #3b82f6;
  --msg-self-text: #ffffff;
  --msg-other: #f1f5f9;
  --msg-other-text: #0f172a;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  /* Dark Theme Colors (Deep Blue/Slate + Soft Blue Details) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --accent-primary: #60a5fa;
  --accent-hover: #3b82f6;
  --accent-soft: rgba(96, 165, 250, 0.1);
  --accent-border: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -4px rgba(0, 0, 0, 0.7);
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(55, 65, 81, 0.8);
  --msg-self: #3b82f6;
  --msg-self-text: #ffffff;
  --msg-other: #1f2937;
  --msg-other-text: #f9fafb;
}

/* Base Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none; /* Block selecting text */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Print Prevention Stylesheet */
@media print {
  body, html, #app-root, .container {
    display: none !important;
  }
  .print-blocked {
    display: block !important;
    background: #000 !important;
    color: #fff !important;
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0; left: 0;
    z-index: 999999;
    text-align: center;
    padding-top: 200px;
    font-size: 24px;
  }
}

/* Application Container */
#app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Main Container Wrapper */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  z-index: 10;
  transition: filter 0.2s ease-out;
}

.container.blurred {
  filter: blur(25px);
  pointer-events: none;
}

/* Animated Background (Sleek Ambient Orbs) */
.ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  mix-blend-mode: multiply;
  animation: float 20s infinite ease-in-out alternate;
}

[data-theme="dark"] .orb {
  opacity: 0.1;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background-color: var(--accent-primary);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background-color: #60a5fa;
  bottom: -10%;
  right: -10%;
  animation-duration: 30s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background-color: #3b82f6;
  top: 40%;
  left: 60%;
  animation-duration: 20s;
}

@keyframes float {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(30px, 50px) scale(1.1); }
  100% { transform: translate(-20px, -30px) scale(0.9); }
}

/* Dynamic Noise Overlay to disrupt OCR */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 8;
  opacity: 0.035;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--text-primary) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* Header / Navbar Styling */
header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--accent-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--glass-bg);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.theme-btn:hover {
  transform: scale(1.05);
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-btn .sun-icon { display: block; }
.theme-btn .moon-icon { display: none; }

[data-theme="dark"] .theme-btn .sun-icon { display: none; }
[data-theme="dark"] .theme-btn .moon-icon { display: block; }

/* Landing Page Hero Grid */
.landing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  flex: 1;
}

.hero-badge {
  background: var(--accent-soft);
  color: var(--accent-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent-border);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Primary Premium Button */
.btn-primary {
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  margin-top: 4rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  padding: 2.25rem;
  border-radius: 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Modal Popup Styles */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  max-width: 550px;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 1rem;
}

.modal-header svg {
  color: var(--accent-primary);
  width: 28px;
  height: 28px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-body {
  overflow-y: auto;
  margin-bottom: 1.5rem;
  flex: 1;
  min-height: 0;
}

.disclaimer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.disclaimer-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.disclaimer-list li::before {
  content: "✦";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Link Share and Generation Area */
.link-generator-container {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.link-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.link-input {
  flex: 1;
  min-width: 0; /* crucial for flexbox shrinking on mobile */
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: monospace;
  outline: none;
  cursor: text;
}

.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-secondary {
  font-family: var(--font-title);
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-border);
}

/* Chat Active state to constrain layout to viewport */
body.chat-active {
  overflow: hidden;
  height: 100dvh;
}

body.chat-active #app-root {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.chat-active .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  body.chat-active .container {
    height: calc(100dvh - 60px);
  }
}

/* Chat Layout Screen */
.chat-section {
  display: none; /* Initially hidden */
  flex-direction: column;
  flex: 1;
  padding: 1rem 0;
  height: 100%;
  min-height: 0;
}

.chat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}

/* Chat Sidebar (Active Users) */
.chat-sidebar {
  width: 280px;
  border-right: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--accent-border);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header span.badge {
  background: var(--accent-soft);
  color: var(--accent-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.users-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  transition: background 0.2s ease;
}

.user-item:hover {
  background: var(--bg-tertiary);
}

.user-item.self {
  background: var(--accent-soft);
  border: 1px dashed var(--accent-primary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.user-item.self .user-avatar {
  background: var(--accent-hover);
}

.user-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--accent-border);
}

/* Chat Feed Workspace */
.chat-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  min-width: 0;
}

.feed-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-room-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
}

.feed-room-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message Bubble Styles */
.message-row {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.message-row.self {
  align-self: flex-end;
  align-items: flex-end;
}

.message-row.other {
  align-self: flex-start;
  align-items: flex-start;
}

.message-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
}

.message-bubble {
  padding: 0.85rem 1.15rem;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Censored Messages (Hover/Tap to Reveal) */
.message-bubble.censored-msg {
  filter: blur(8px);
  transition: filter 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  cursor: pointer;
}

.message-bubble.censored-msg:hover,
.message-bubble.censored-msg.revealed {
  filter: none;
}

.message-row.self .message-bubble {
  background: var(--msg-self);
  color: var(--msg-self-text);
  border-bottom-right-radius: 4px;
}

.message-row.other .message-bubble {
  background: var(--msg-other);
  color: var(--msg-other-text);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.7;
  align-self: flex-end;
  margin-top: 0.25rem;
}

/* System Messages */
.message-system {
  align-self: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  text-align: center;
  margin: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-self: flex-start;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 1.5rem;
  font-style: italic;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Chat Input Bar */
.feed-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(var(--bg-secondary), 0.3);
}

.input-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

.chat-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border 0.2s ease;
  user-select: text; /* Allow typing selection */
  -webkit-user-select: text;
  min-width: 0;
}

.chat-input:focus {
  border-color: var(--accent-primary);
}

/* Emoji Picker Drawer */
.emoji-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.emoji-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.emoji-btn svg {
  width: 20px;
  height: 20px;
}

.emoji-drawer {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.25rem;
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 105;
}

.emoji-drawer.active {
  display: grid;
}

.emoji-item {
  font-size: 1.25rem;
  padding: 0.25rem;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.emoji-item:hover {
  background: var(--bg-tertiary);
  transform: scale(1.15);
}

.btn-send {
  background: var(--accent-primary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.btn-send svg {
  width: 18px;
  height: 18px;
  transform: translateX(1px);
}

/* Netflix-style Absolute Blackout Screen */
#blackout-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #000000;
  color: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  text-align: center;
  padding: 2rem;
}

#blackout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lock-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  animation: pulse-border 2s infinite;
}

.lock-container svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.lock-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lock-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 320px;
  line-height: 1.5;
}

/* Mobile Responsiveness Rules */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  header {
    height: 60px;
  }

  .container {
    padding: 0 0.5rem;
  }

  /* Modal Mobile Compression */
  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-card {
    padding: 1.25rem;
    border-radius: 20px;
    max-height: 80dvh;
  }

  .modal-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-body {
    margin-bottom: 0.75rem;
  }

  .disclaimer-list {
    gap: 0.5rem;
  }

  .disclaimer-list li {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .link-generator-container {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    gap: 0.5rem;
  }

  .link-label {
    font-size: 0.8rem;
  }

  .link-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .modal-footer {
    gap: 0.5rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
  }

  /* Viewport Height Lock on mobile chat */
  body.chat-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  body.chat-active header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
  }

  body.chat-active .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: auto; /* let flex inherit from fixed body */
  }

  body.chat-active .chat-section {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0; right: 0;
    padding: 0.5rem;
    z-index: 10;
    display: flex !important;
    flex-direction: column;
    height: auto;
  }

  body.chat-active .chat-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  body.chat-active .chat-feed {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .chat-sidebar {
    position: fixed;
    left: -280px;
    top: 60px;
    height: calc(100% - 60px);
    z-index: 150;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 280px;
    background: var(--bg-secondary);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    border-right: 1px solid var(--accent-border);
  }
  
  .chat-sidebar.active {
    left: 0;
  }
  
  /* Mobile Sidebar Toggle Hamburger button styling */
  .sidebar-toggle-btn {
    display: flex !important;
  }

  .message-row {
    max-width: 88%;
  }

  .landing-section {
    padding: 2.5rem 0.5rem;
  }

  .feed-header {
    padding: 0.75rem 1rem;
  }

  .feed-footer {
    padding: 0.75rem 1rem;
  }
}

.sidebar-toggle-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-border);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.sidebar-toggle-btn svg {
  width: 20px;
  height: 20px;
}
