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

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

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at top right, #0e203f 0%, #060e1b 100%);
  background-image: url('https://app.imedprime.com/img/bg.webp'), radial-gradient(circle at top right, #0e203f 0%, #060e1b 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  line-height: 1.5;
}

/* App Layout Wrapper */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Desktop Sidebar */
.app-sidebar {
  width: 88px;
  background: linear-gradient(180deg, #080c1e 0%, #0a1628 40%, #071220 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(56, 189, 248, 0.1);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-normal), width var(--transition-normal), margin var(--transition-normal);
}

.app-sidebar.collapsed {
  margin-left: -88px;
}

.sidebar-collapse-btn {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0d2847, #0a1f3a);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  padding: 0;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.1);
  transition: all var(--transition-fast);
}

.sidebar-collapse-btn:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.sidebar-collapse-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  transition: transform var(--transition-normal);
}

.app-sidebar.collapsed .sidebar-collapse-btn {
  right: -40px;
  background: linear-gradient(135deg, #0d2847, #0a1f3a);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
}

.app-sidebar.collapsed .sidebar-collapse-btn:hover {
  right: -44px;
}

.app-sidebar.collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

.sidebar-header {
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-img {
  width: 42px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.2));
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem 0;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 6px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
  margin: 0;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 28px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
  color: white;
  background: rgba(56, 189, 248, 0.06);
}

.nav-item:hover svg {
  opacity: 1;
  stroke: white;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.3));
}

.nav-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, transparent 100%);
}

.nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-text {
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav-item svg {
  opacity: 0.5;
  transition: all 0.2s ease;
  stroke: rgba(255, 255, 255, 0.7);
  width: 24px;
  height: 24px;
}

.nav-item.active svg {
  opacity: 1;
  stroke: var(--primary);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.sidebar-bottom {
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  padding: 0.5rem 0;
}

.sidebar-bottom .nav-item {
  opacity: 0.7;
}

.sidebar-bottom .nav-item:hover {
  opacity: 1;
}

/* ============================================
   SOPORTE PAGE
   ============================================ */
.soporte-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.soporte-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-color) 8%, transparent), transparent 60%);
  transition: opacity 0.2s ease;
  opacity: 0;
}

.soporte-card:hover {
  border-color: color-mix(in srgb, var(--card-color) 50%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--card-color) 20%, transparent);
}

.soporte-card:hover::before {
  opacity: 1;
}

.soporte-card:hover .soporte-card-arrow {
  transform: translateX(4px);
  stroke: var(--card-color);
}

.soporte-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-color) 12%, rgba(0,0,0,0.3));
  border: 1px solid color-mix(in srgb, var(--card-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.soporte-card-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.soporte-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.2rem;
}

.soporte-card-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.soporte-card-arrow {
  opacity: 0.4;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}


/* App Content Area */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-only {
  display: none !important;
}

/* Top Navbar */
.top-navbar {
  background: linear-gradient(90deg, rgba(8, 12, 28, 0.95) 0%, rgba(10, 22, 45, 0.95) 50%, rgba(6, 18, 38, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  height: 65px;
}

.top-nav-left, .top-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  width: 100%;
  max-width: 500px;
  transition: border-color var(--transition-fast);
  position: relative;
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 10px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  outline: none;
  font-family: var(--font-family);
  font-size: 0.95rem;
}

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 14px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
}

.search-results-dropdown.visible {
  display: block;
  animation: searchDropIn 0.15s ease-out;
}

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

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: white;
}

.search-result-item:hover {
  background: rgba(56, 189, 248, 0.1);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.search-result-duration {
  font-size: 0.72rem;
  color: rgba(56, 189, 248, 0.7);
  font-weight: 600;
  flex-shrink: 0;
}

.search-no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.search-results-dropdown::-webkit-scrollbar {
  width: 4px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.btn-invite {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn-invite:hover {
  opacity: 0.9;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-icon:hover {
  color: white;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 200px;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

.dropdown-item.text-danger {
  color: #fca5a5;
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.25rem 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* M+ Logo Icon */
.logo-m-plus {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
  position: absolute;
}

.logo-letter {
  font-size: 1.45rem;
  font-weight: 900;
  color: white;
  z-index: 2;
  position: relative;
}

.logo-plus {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 3;
  box-shadow: 0 0 5px rgba(0, 110, 253, 0.8);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  text-transform: uppercase;
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(18, 38, 68, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: white;
  padding: 0.55rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-nav:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.15);
}

.btn-nav:active {
  transform: translateY(0);
}

/* Main Viewport */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.view-container {
  display: none;
  animation: fadeIn var(--transition-normal) forwards;
}

.view-container.active {
  display: block;
}

/* View Titles inside main section */
.page-header {
  margin-bottom: 2.25rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Forum Floating Action Button */
.forum-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  cursor: pointer;
  z-index: 100;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.forum-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

#forum-post-input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

#forum-post-input:focus {
  border-color: rgba(56, 189, 248, 0.5);
}

.forum-compose-actions {
  display: flex;
  justify-content: flex-end;
}

.forum-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.forum-post {
  background: rgba(10, 15, 30, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.forum-post:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.1);
}

.forum-post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.forum-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.forum-post-meta {
  display: flex;
  flex-direction: column;
}

.forum-post-author {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.forum-post-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.forum-post-content {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
}

.forum-post-actions {
  display: flex;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.forum-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.forum-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.forum-btn.liked {
  color: #f43f5e;
}
.forum-btn.liked svg {
  fill: #f43f5e;
}

.forum-comments-section {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.forum-comments-section.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}

.forum-comments-list {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom sleek scrollbar for comments */
.forum-comments-list::-webkit-scrollbar {
  width: 6px;
}
.forum-comments-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.forum-comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.forum-comments-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.forum-comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-comment:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.forum-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.forum-comment-body {
  flex-grow: 1;
}

.forum-comment-author {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-comment-time {
  color: var(--text-muted);
  font-weight: normal;
  font-size: 0.7rem;
}

.forum-comment-text {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.4;
}

.forum-comment-compose {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.forum-comment-input {
  flex-grow: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  color: white;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.forum-comment-input:focus {
  border-color: rgba(56, 189, 248, 0.5);
}

/* Modal photo enlargement overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 12, 23, 0.95);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-fast) ease-in-out;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 210, 255, 0.3);
  transform: scale(0.92);
  transition: transform var(--transition-fast) ease-in-out;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent);
}

/* Custom Canvas Confetti overlay container */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Responsive configurations */
@media (max-width: 768px) {
  .app-header {
    padding: 1rem 1.5rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo-badge {
    display: none;
  }
  
  main {
    padding: 2rem 1rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .app-sidebar {
    position: fixed;
    transform: translateX(-100%);
    width: 250px;
    height: 100vh;
  }

  .app-sidebar.active {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 20px;
    gap: 15px;
  }

  .nav-text {
    font-size: 1rem;
    text-align: left;
  }



  .app-content {
    width: 100%;
  }

  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* Custom Desktop Scrollbar */
@media (min-width: 1024px) {

  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: #0b1220;
    border-left: 1px solid rgba(255, 255, 255, .05);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        #7DD3FC 0%,
        #38BDF8 25%,
        #3B82F6 60%,
        #1D4ED8 100%);

    border-radius: 999px;
    border: 2px solid #0b1220;

    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .35),
      0 0 8px rgba(59, 130, 246, .25);
  }

  ::-webkit-scrollbar-thumb:hover {

    background: linear-gradient(180deg,
        #BAE6FD,
        #7DD3FC,
        #60A5FA,
        #3B82F6);

    box-shadow:
      0 0 18px rgba(56, 189, 248, .45),
      inset 0 1px 2px rgba(255, 255, 255, .55);
  }

  ::-webkit-scrollbar-thumb:active {
    background: #2563eb;
  }

  ::-webkit-scrollbar-corner {
    background: #0b1220;
  }
}
/* Crossword Styles */
.cw-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .cw-layout {
    grid-template-columns: 1fr;
  }
}
.cw-cell {
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(15, 23, 41, 0.8);
  color: white;
  transition: all 0.2s;
}
.cw-cell.revealed {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  cursor: default;
}
.cw-cell.input {
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.cw-cell.input:focus {
  outline: 2px solid #38bdf8;
  background: rgba(255,255,255,0.2);
}
.cw-cell.error {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
}
.cw-cell.correct-input {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.cw-clue {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f8fafc;
  border-left: 3px solid #38bdf8;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
/* HOME VIEW REDESIGN */
.home-hero-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 400px;
  margin: 0 auto 40px auto;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.home-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(0.95);
  box-sizing: border-box;
}

.home-hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.home-hero-text {
  flex: 1;
  max-width: 50%;
  z-index: 2;
}

.home-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 15px;
  line-height: 1.2;
}

.home-hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.5;
}

.home-hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.home-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.home-hero-image-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-hero-img {
  max-width: 100%;
  max-height: 120%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #38bdf8;
  width: 24px;
  border-radius: 5px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* QUICK ACCESS GRID */
.home-quick-access {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.qa-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  display: block;
}

.qa-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 15px rgba(56, 189, 248, 0.1);
}

.qa-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  transition: transform 0.3s;
}

.qa-card:hover .qa-icon {
  transform: scale(1.1);
  background: rgba(56, 189, 248, 0.2);
}

.qa-title {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.qa-desc {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* VIDEO SECTION */
.home-video-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
}

@media (max-width: 768px) {
  .home-hero-carousel {
    height: 500px;
  }
  .home-hero-slide {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .home-hero-text {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .home-hero-title {
    font-size: 1.8rem;
  }
  .home-hero-image-wrapper {
    width: 100%;
    height: 200px;
  }
  .home-hero-img {
    max-height: 100%;
  }
}
