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

:root {
  --bg-color: #0c0b10;
  --text-main: #ffffff;
  --text-muted: #dcdcdc;
  --accent-purple: #c581fa;
  --accent-orange: #ffb772;
  --gradient-btn: linear-gradient(90deg, #d366ff, #ff7e72);
  --gradient-text: linear-gradient(90deg, #d06dff, #ff7e72, #ffd874);
  --glass-bg: rgba(20, 19, 26, 0.4);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* Boostrap Color Overrides for Dark Theme */
  --bs-success: #4ade80;
  --bs-success-rgb: 74, 222, 128;
  --bs-warning: #facc15;
  --bs-warning-rgb: 250, 204, 21;
  --bs-danger: #ff6b6b;
  --bs-danger-rgb: 255, 107, 107;
  --bs-info: #06b6d4;
  --bs-info-rgb: 6, 182, 212;
  --bs-primary: #c581fa;
  --bs-primary-rgb: 197, 129, 250;
  --bs-secondary: #94a3b8;
  --bs-secondary-rgb: 148, 163, 184;
}

/* Explicit text color overrides to guarantee brightness on dark backgrounds */
.text-success { color: var(--bs-success) !important; }
.text-warning { color: var(--bs-warning) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-info { color: var(--bs-info) !important; }
.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }

/* Ensure text on bright backgrounds is readable */
.badge.bg-warning, .badge.bg-info, .badge.text-bg-warning, .badge.text-bg-info {
  color: #000 !important;
}

.badge-gradient {
  background: var(--gradient-btn);
  color: white !important;
  border: none;
  box-shadow: 0 0 10px rgba(211, 102, 255, 0.3);
}

/* Dropdown Custom Styling */
.dropdown-menu-dark.glass-panel {
  background: rgba(15, 14, 20, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 8px;
}

.dropdown-item {
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

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

.dropdown-toggle::after {
  vertical-align: middle;
  border-top: 0.35em solid;
  border-right: 0.35em solid transparent;
  border-left: 0.35em solid transparent;
}



body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: clip;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 100vw;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(92, 42, 168, 0.2) 0%,
    rgba(12, 11, 16, 0) 65%
  );
  z-index: 1;
  pointer-events: none;
}
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

/* Navbar */
.navbar {
  padding-top: 2rem !important;
}

.nav-pills-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 4px;
}
.nav-pills-custom .nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.nav-pills-custom .nav-link:hover,
.nav-pills-custom .nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
.badge-mini {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.btn-glass-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: 0.3s;
}
.btn-glass-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
}
.beta-badge {
  display: inline-block;
  background: rgba(208, 109, 255, 0.1);
  border: 1px solid rgba(208, 109, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 50px;
  color: #cca4e3;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 500px;
}

/* Waitlist Form */
.waitlist-form {
  max-width: 480px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.waitlist-form input {
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 12px 20px;
  font-size: 0.95rem;
  flex: 1;
}
.waitlist-form input:focus {
  outline: none;
  box-shadow: none;
}
.waitlist-form input::placeholder {
  color: #5a5f68;
}
.btn-join {
  background: var(--gradient-btn);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  transition:
    opacity 0.3s,
    transform 0.2s;
  box-shadow: 0 0 15px rgba(211, 102, 255, 0.3);
}
.btn-join:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: white;
}

/* App Mockup */
.mockup-section {
  padding-bottom: 80px;
}
.app-mockup {
  background: rgba(14, 13, 19, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  height: 600px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
}
/* A top subtle line highlight */
.app-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(208, 109, 255, 0.5),
    transparent
  );
  z-index: 10;
}

/* Mockup Layout */
.app-icons-bar {
  width: 60px;
  background: rgba(10, 9, 14, 0.5);
}
.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
}
.app-icon.active {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 0 10px rgba(211, 102, 255, 0.3);
}
.app-icon:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
}

.app-sidebar-left {
  width: 240px;
  background: rgba(10, 9, 14, 0.3);
}
.header-sm {
  height: 50px;
  border-bottom: 1px solid var(--glass-border);
}
.section-title {
  color: #5a5f68;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
}
.nav-group-title {
  font-size: 0.8rem;
  color: #8a8f98;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.channel-item {
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.channel-item .hash {
  color: #5a5f68;
  font-weight: 500;
}
.channel-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
.channel-item.active .hash {
  color: var(--text-muted);
}
.dm-item {
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dm-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.app-main {
  flex: 1;
  background: rgba(14, 13, 19, 0.5);
  position: relative;
}
.main-header {
  height: 50px;
  background: rgba(255, 255, 255, 0.01);
}

/* Chat Styling */
.chat-feed {
  padding: 20px 24px;
}
.chat-message {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.chat-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.chat-content {
  flex: 1;
}
.chat-meta {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.chat-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}
.chat-time {
  font-size: 0.75rem;
  color: #5a5f68;
}
.chat-text {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* Attachments */
.attachment-card {
  background: rgba(18, 17, 24, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
}
.attachment-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}
.attachment-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.edit-link {
  font-size: 0.75rem;
  color: #5a5f68;
  cursor: pointer;
}
.edit-link:hover {
  color: white;
}

.figma-card {
  display: inline-block;
  min-width: 250px;
  padding: 10px 14px;
}
.figma-color {
  color: #f24e1e;
}

/* App Right Sidebar */
.app-sidebar-right {
  width: 240px;
  background: rgba(10, 9, 14, 0.3);
  font-size: 0.85rem;
}
.right-title {
  font-size: 0.75rem;
  color: #5a5f68;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.right-block {
  margin-bottom: 24px;
}
.simple-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-muted);
}
.item-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Logos Section */
.logos-wrapper {
  opacity: 0.7;
}
.logo-item {
  color: #5a5f68;
  transition: 0.3s;
  cursor: pointer;
}
.logo-item:hover {
  color: white;
  transform: translateY(-2px);
}
.logo-item i {
  color: #8a8f98 !important;
}
.logo-item:hover i {
  color: white !important;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
}
@media (max-width: 767.98px) {
  .app-sidebar-left {
    display: none;
  }
  .app-icons-bar {
    display: none;
  }
}

/* ================== EXTRA STYLES FOR INNER PAGES ================== */
.theme-card {
  background: rgba(14, 13, 19, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.theme-card:hover {
  transform: translateY(-5px);
  border-color: rgba(211, 102, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(211, 102, 255, 0.1);
}
.theme-image-wrapper {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}
.theme-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.theme-card:hover .theme-image-wrapper img {
  transform: scale(1.05);
}
.theme-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}
.theme-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.theme-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.theme-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}
.btn-primary-custom {
  background: var(--gradient-btn);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 102, 255, 0.3);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 102, 255, 0.5);
  color: white;
}
.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.detail-image {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  width: 100%;
  height: auto;
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-list li:last-child {
  border-bottom: none;
}
.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
}
.glass-panel {
  background: rgba(14, 13, 19, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}
.glass-panel-dark {
  background: rgba(14, 13, 19, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

/* Ensure Bootstrap modals appear above sticky/other panels */
.modal {
  z-index: 2000;
}
.modal-backdrop {
  z-index: 1990;
}
.table-custom {
  color: white;
  vertical-align: middle;
}
.table-custom th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border-bottom: 2px solid var(--glass-border);
  font-weight: 600;
  padding: 16px;
}
.table-custom td {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
  background: transparent;
  white-space: nowrap;
}
.table-custom tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-active {
  background: rgba(var(--bs-success-rgb), 0.15);
  color: var(--bs-success);
  border: 1px solid rgba(var(--bs-success-rgb), 0.3);
}
.status-pending {
  background: rgba(var(--bs-warning-rgb), 0.15);
  color: var(--bs-warning);
  border: 1px solid rgba(var(--bs-warning-rgb), 0.3);
}

/* Form Overrides */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 1 !important;
}

/* Base Overrides */
.text-muted {
  color: var(--text-muted) !important;
}

/* Mobile Bottom Nav Fixes */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 120px; 
  }
  .mobile-bottom-nav .nav-pills-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .mobile-bottom-nav .nav-pills-wrapper::-webkit-scrollbar {
    display: none;
  }
  .mobile-bottom-nav .navbar-nav {
    flex-wrap: nowrap !important;
  }
  .mobile-bottom-nav .nav-pills-custom .nav-link {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* ================== TOOLTIP ENHANCEMENTS ================== */
.tooltip {
  --bs-tooltip-bg: rgba(18, 16, 24, 0.95);
  --bs-tooltip-color: #fff;
}
.tooltip .tooltip-inner {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, rgba(197,129,250,0.18), rgba(112,225,245,0.12)) var(--bs-tooltip-bg);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 18px rgba(197,129,250,0.15);
}
.tooltip .tooltip-arrow::before {
  border-top-color: var(--bs-tooltip-bg) !important;
  border-right-color: var(--bs-tooltip-bg) !important;
  border-bottom-color: var(--bs-tooltip-bg) !important;
  border-left-color: var(--bs-tooltip-bg) !important;
}
