/* --- 1. Reset & Global Styles --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 5px;
}

:root {
  --font-family: "Inter", sans-serif;
  --background-color: #000000;
  --text-color: #ffffff;
  --border-color: #6f6f6f;
  --border-radius: 10px;
  /* Sharp corners for a modern, stark look */
  --padding-sm: 8px;
  --padding-md: 16px;
  --padding-lg: 10px;
  --max-width: 1280px;
}

html {
  background-color: #111;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 70%
    );
  background-size: 40px 40px, 40px 40px, 100% 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
  font-size: 13px;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- 2. Layout & Containers --- */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding-lg);
}

.grid-container {
  display: grid;
  gap: var(--padding-lg);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.flex-container {
  display: flex;
  align-items: center;
}

.flex-space-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

/* --- 3. Header & Navigation --- */
header {
  background-color: var(--background-color);
  padding: var(--padding-md) var(--padding-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

header .user-actions {
  display: flex;
  align-items: center;
  gap: var(--padding-md);
}

nav {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #ccc;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ccc;
}

.main-nav {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  padding: var(--padding-sm);
  margin-bottom: var(--padding-lg);
  overflow-x: auto;
}

.main-nav ul {
  display: flex;
  gap: var(--padding-sm);
}

.nav-link {
  display: block;
  padding: var(--padding-sm) var(--padding-md);
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 15px;
}

.nav-link.active {
  background-color: #b2b2b2;
  color: var(--background-color);
}

/* --- 4. Cards --- */
.card {
  border: 1px solid var(--border-color);
  padding: var(--padding-lg);
  display: flex;
  flex-direction: column;
  gap: var(--padding-md);
  background-color: #2f2f2f;
  font-size: 13px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.stat-card {
  padding: var(--padding-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  border: 1px solid #4d4d4d;
  flex-wrap: wrap;
}

.stat-card.inverted {
  background: #3b3b3b;
  color: #efefef;
}

.stat-card .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

/* --- 5. Buttons --- */
.btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background-color: #000000;
  color: var(--text-color);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--background-color);
  font-size: 13px;
}

.btn:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

.btn-primary:hover {
  background-color: var(--background-color);
  color: var(--text-color);
  border-color: var(--text-color);
}

.btn-full-width {
  width: 100%;
}

input,
select {
  padding: 5px;
  border: none;
  min-height: 40px;
}

.btn-group {
  display: flex;
  gap: var(--padding-sm);
}

/* --- 6. Forms & Inputs --- */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"] textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 13px;
  /* height: 40px; */
}

textarea {
  resize: vertical;
}

/* --- 7. Modals & Overlays --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  padding: var(--padding-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: var(--padding-md);
  right: var(--padding-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* --- 8. Specific Components --- */
#loading-overlay {
  display: none;
  /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-color);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 4px solid #333;
  border-top: 4px solid var(--text-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#notifications-dropdown {
  display: none;
  position: absolute;
  right: var(--padding-lg);
  top: 65px;
  width: 320px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  z-index: 110;
}

#notifications-dropdown .notification-item {
  padding: var(--padding-md);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

#notifications-dropdown .notification-item:last-child {
  border-bottom: none;
}

#notifications-dropdown .notification-item:hover {
  background-color: #222;
}

#notification-popup {
  display: none;
  position: fixed;
  top: var(--padding-lg);
  right: var(--padding-lg);
  width: 350px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  padding: var(--padding-md);
  z-index: 300;
  display: flex;
  gap: var(--padding-md);
}

#notification-popup.status-success {
  border-left: 4px solid var(--border-color);
}

#notification-popup.status-error {
  border-left: 4px solid var(--border-color);
  border-style: dashed;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
}

.progress-bar-inner {
  height: 100%;
  background-color: var(--text-color);
  color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.badge {
  background-color: var(--text-color);
  color: var(--background-color);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--padding-md) 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid transparent;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 var(--padding-md) 0 0;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 101;
  /* Below menu, above content */
}

/* --- 9. Utility Classes --- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.opacity-50 {
  opacity: 0.5;
}

.w-full {
  width: 100%;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.main-nav {
  padding-top: 40px !important;
}

/* --- 10. Responsive Design --- */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(1, 1fr);
  }

  header .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .user-actions .user-email {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 102;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border: 1px solid var(--border-color);
    border-left: 0;
    border-top: 0;
    padding: var(--padding-lg);
    margin-bottom: 0;
  }

  body.side-menu-open .main-nav {
    transform: translateX(0);
  }

  body.side-menu-open .menu-overlay {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--padding-md);
    align-items: flex-start;
  }

  .main-nav .nav-link {
    width: 100%;
  }
}

.marketplace-tab {
  background-color: #464646;
  cursor: pointer;
  padding: 2px 10px;
  height: 40px;
  color: #c1c1c1;
  border: none;
  border-radius: 5px 5px 0 0;
}

.marketplace-tab.current {
  background-color: black;
  color: white;
  border: 1px solid #f5f5f5;
  border-bottom: none;
  margin-bottom: -17px;
  border-radius: 5px 5px 0 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid #333;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #ccc;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  padding: 16px 32px;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: #fff;
  color: #000;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  border: 2px solid #000;
  transition: all 0.3s ease;
  background: #fff;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Investment Options */
.investment-options {
  padding: 100px 0;
  background: #000;
  color: #fff;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 60px;
}

.option-card {
  background: #111;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.option-card:hover::before {
  left: 100%;
}

.option-card:hover {
  border-color: #fff;
  transform: translateY(-5px);
}

.option-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.option-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.option-card .returns {
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.8;
  color: #ccc;
}

.option-card .cashback {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.option-card .btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Referral System */
.referral-system {
  padding: 100px 0;
  background: #fff;
  color: #000;
}

.referral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.referral-card {
  background: #000;
  color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.referral-card:hover {
  transform: scale(1.05);
}

.referral-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.referral-card .percentage {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.referral-card p {
  opacity: 0.8;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: #000;
  color: #fff;
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  font-size: 1.2rem;
  padding: 18px 36px;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-btn {
  font-size: 12px;
  border: 1px solid #989898;
  color: #cacaca;
  padding: 2px 4px;
  cursor: pointer;
}

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* display: flex; */
}

.alert-container {
  background-color: #000;
  color: white;
  width: 500px;
  max-width: calc(100% - 30px);
  position: relative;
}

.alert-header {
  background-color: #000;
  padding: 10px 15px;
  border: 2px solid white;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-close:hover {
  opacity: 0.7;
}

.alert-content {
  padding: 20px;
  font-size: 16px;
  line-height: 1.4;
  border-left: 2px solid white;
  border-right: 2px solid white;
  margin: 0 -15px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}

.alert-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, #ffffff96, #ffffff00);
}

.alert-content::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to top, #ffffff96, #ffffff00);
}

.alert-buttons {
  display: flex;
  border: 2px solid white;
  border-top: none;
}

.alert-button {
  flex: 1;
  padding: 12px;
  background-color: #ffffff38;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: inset 0 0 15px #000000;
}

.alert-button:hover {
  background-color: #333;
}

.alert-button:not(:last-child) {
  border-right: 2px solid white;
}

.loader {
  text-align: center;
  position: fixed;
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(10px, 10px); */
  z-index: 10000000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-text {
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #666, #fff, #ccc, #fff, #666);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.in-modal-table {
  font-size: 13px;
  text-align: center;
}

.in-modal-table td {
  padding-bottom: 5px;
}

.link {
  color: #ffa4a4;
  border-bottom: 1px dotted;
}

.investment-amount {
  position: relative;
  width: max-content;
}

.investment-amount::after {
  content: "Amount Made";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
  font-size: 13px;
  font-weight: lighter;
  color: #a4a4a4;
  text-align: center;
  border-bottom: 1px dashed #818181;
  border-radius: 0;
  min-width: max-content;
}

.cp-btn {
  font-size: 16px;
  padding: 2px;
  color: #cbcbcb;
  border: none;
  background-color: #043152;
  width: 35px;
  margin: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #858585;
  cursor: pointer;
  box-shadow: 0 0 10px #0000007a;
  aspect-ratio: 1/1;
}

.pay-later-btn {
  position: relative;
  padding-bottom: 15px;
}

.pay-later-btn::after {
  content: "On Marketplace";
  position: absolute;
  bottom: 3px;
  width: max-content;
  font-size: 10px;
  font-weight: lighter;
  left: 50%;
  transform: translate(-50%);
  color: #cbcbcb;
}

.pay-now-btn {
  position: relative;
  padding-bottom: 17px;
}

.pay-now-btn .sm-label {
  position: absolute;
  bottom: 3px;
  width: max-content;
  font-size: 11px;
  font-weight: lighter;
  left: 50%;
  transform: translate(-50%);
  color: #000000;
}

.card.pay-later {
  position: relative;
}

.card.pay-later::after {
  content: "You Pay Later!";
  position: absolute;
  top: -14px;
  right: 5px;
  background-color: #ffffff;
  color: #ee2929;
  border-radius: 30px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #000000;
}

.pkg-status {
  /* border:1px solid red; */
  margin-top: 5px;
  padding: 0 5px;
  width: max-content;
  background-color: #000000;
  font-size: 13px;
  color: #bdbdbd;
}

.pkg-status span {
  color: #00d0bb;
  border-left: 1px dashed;
  border-radius: 0;
  padding-left: 5px;
  margin-left: 4px;
  border-color: #747474;
}

.pkg-status.taken span {
  color: #ff8a8a;
}

.in-text-timer {
  font-size: 13px;
  background-color: #000000;
  padding: 2px;
  color: #ffa1a1;
  width: max-content;
}

.investments-header {
  text-align: center;
  margin-bottom: 30px;
}

.investments-title {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.investments-subtitle {
  color: #ccc;
  font-size: 1rem;
}

.investments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.investment-card {
  background: #333;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  padding: 5px;
  box-shadow: 0 0 10px #000000;
  border: 1px solid #474747;
  padding-top: 40px;
}

.investment-card.popular {
  background: #f5f5f5;
  color: black;
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: black;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.investment-card.popular .popular-badge {
  background: white;
  color: black;
  border: 1px solid black;
}

.investment-amount {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
  margin: auto;
}

.investment-card.popular .investment-amount {
  color: black;
}

.investment-name {
  font-size: 0.9rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.investment-card.popular .investment-name {
  color: #666;
}

.investment-type {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 5px;
  position: absolute;
  top: -5px;
  left: 0;
  border-radius: 0 0 20px;
  padding: 2px 10px;
  background-color: #000000;
}

.investment-card.popular .investment-type {
  color: #999;
}

.investment-details {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #444;
  color: white;
}

.investment-card.popular .detail-item {
  border-bottom: 1px solid #ddd;
  color: black;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.detail-value {
  font-weight: bold;
  font-size: 12px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-pending {
  background: #444;
  color: #ffa500;
}

.status-partial {
  background: #444;
  color: #00bfff;
}

.status-paid {
  background: #444;
  color: #00ff00;
}

.status-activation {
  color: #ff8e8e;
  background-color: #ff000021;
}

.investment-card.popular .status-pending {
  background: #fff3cd;
  color: #856404;
}

.investment-card.popular .status-partial {
  background: #cce5ff;
  color: #004085;
}

.investment-card.popular .status-paid {
  background: #d4edda;
  color: #155724;
}

.progress-section {
  margin: 15px 0;
  padding: 15px;
  background: #222;
  border-radius: 4px;
}

.investment-card.popular .progress-section {
  background: #f8f9fa;
}

.progress-label {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 8px;
}

.investment-card.popular .progress-label {
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #444;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.investment-card.popular .progress-bar {
  background: #e9ecef;
}

.progress-fill {
  height: 100%;
  background: white;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.investment-card.popular .progress-fill {
  background: black;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
}

.investment-card.popular .progress-text {
  color: black;
}

.footer-stats {
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 20px;
}

.investment-card.popular .footer-stats {
  border-top: 1px solid #ddd;
}

.footer-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.85rem;
}

.footer-label {
  color: #ccc;
}

.investment-card.popular .footer-label {
  color: #666;
}

.footer-value {
  font-weight: bold;
  color: white;
}

.investment-card.popular .footer-value {
  color: black;
}

.roi-highlight {
  color: #00ff88 !important;
}

.investment-card.popular .roi-highlight {
  color: #28a745 !important;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.action-button {
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.investment-card.popular .btn-primary {
  background: black;
  color: white;
}

.investment-card.popular .btn-secondary {
  background: transparent;
  color: black;
  border: 1px solid black;
}

.btn-secondary:hover {
  background: white;
  color: black;
}

.investment-card.popular .btn-secondary:hover {
  background: black;
  color: white;
}

.view-payments-btn {
  grid-column: span 2;
  background: #444;
  color: white;
  margin-top: 10px;
}

.investment-card.popular .view-payments-btn {
  background: #f8f9fa;
  color: black;
  border: 1px solid #ddd;
}

.view-payments-btn:hover {
  background: #555;
}

.investment-card.popular .view-payments-btn:hover {
  background: #e9ecef;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .investments-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .view-payments-btn {
    grid-column: span 1;
  }
}

.font-semibold {
  font-weight: 600;
}

.space-y-2 > * + * {
  margin-top: 8px;
}

.text-sm {
  font-size: 0.875rem;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mr-2 {
  margin-right: 8px;
}

.opacity-50 {
  opacity: 0.5;
}

.flex-container {
  display: flex;
  align-items: center;
}

.flex-space-between {
  justify-content: space-between;
}

.font-medium {
  font-weight: 500;
}

.alert {
  padding: 12px;
  border-radius: 4px;
  margin: 15px 0;
  font-size: 0.875rem;
}

.alert-info {
  background-color: #272727;
  border: 1px solid #bee5eb;
  color: #75afb9;
}

.alert-warning {
  background-color: #2f2f2f;
  border: 1px solid #ffa7a7;
  color: #979797;
}

.payment-details {
  display: none;
}

.payment-details.show {
  display: block;
}

.text-right {
  text-align: right;
}

.card-header {
  text-align: center;
}

.act-timer {
  text-align: center;
  background-color: #3d3d3d;
}

.small-badge {
  font-size: 11px;
  padding: 5px;
  margin: 2px;
  background-color: #ff00003d;
  height: 20px;
  display: flex;
  align-items: center;
  color: #ffd3d3;
}

.badge-success {
  background-color: #00ff003d;
  color: #a4ff8b;
}

.badge-warning {
  background-color: #ffcc003d;
  color: #ffda8b;
}

.d-none {
  display: none;
}

input:disabled {
  color: #d7d7d7 !important;
}

.investment-total {
  background-color: #3f3f3f;
  width: 150px;
  margin: auto;
  height: 40px;
  font-size: 15px;
  position: relative;
  border-radius: 0 0 30px 30px;
}

.investment-total::after {
  content: "Total Balance";
  position: absolute;
  bottom: 2px;
  width: max-content;
  font-size: 12px;
  color: #a6a6a6;
  left: 50%;
  transform: translate(-50%);
}

.input-group {
  display: flex;
  align-items: center;
}

.user-q-n {
  background-color: #4a4a4a;
  padding: 10px;
  margin-top: 10px;
  color: #bdbdbd;
  text-align: center;
  box-shadow: 0 0 20px #00000033;
}

.row-q-cont {
  padding-top: 8px;
  color: #989898;
  text-align: left;
}

.is-you-q {
  color: #75c1ff;
  background-color: #8dceff0f;
}

.referral-tab-btn {
  background-color: #474747;
  color: #d8d8d8;
}

.referral-tab-btn.active {
  background-color: #ffffff;
  color: #000000;
}

.ref-u-block {
  background: linear-gradient(to right, #636363, transparent);
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  margin: 2px;
}

.rfb-block {
  background-color: #000000;
  width: 43%;
  min-width: 140px;
  margin: 2px;
  padding: 5px;
}

.rfb-block.rfb-sm {
  min-width: 60px;
  width: 28.5%;
}

.rfb-block p {
  font-size: 13px;
}

.rfb-title {
  color: #9e9e9e;
}

.rfb-n {
  position: absolute;
  left: 5px;
  top: 5px;
  background-color: #464646;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.load-batch-holder {
  width: 100%;
  text-align: center;
  padding: 5px;
  color: #3ecbff;
  cursor: pointer;
}

.btn-action-sect {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.btn-action-sect .info-btn {
  width: max-content;
}

.s9c2n.blocked {
  background-color: #ff00002b;
  border: 1px solid #c10000;
  color: #ff9191;
}

.d-none {
  display: none !important;
}

.span-alert {
  display: flex;
  position: relative;
  margin: 5px;
  margin-top: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border: 1px solid #a86100a1 !important;
}

.span-alert span {
  position: absolute;
  top: -14px;
  left: 10px;
  background-color: #ffefcf;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 40px;
  border: 1px solid #a86100;
  color: #8a5600;
  font-weight: bold;
}

.span-alert p {
  color: #fff1bb;
  margin-top: 5px;
}

.btn-verify {
  font-size: 13px;
}

.sm-desci {
  font-size: 12px;
  color: #b7b7b7;
}

.affiliate-milestones-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  padding: 2rem;
}

.affiliate-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #333333;
  padding-bottom: 2rem;
}

.affiliate-main-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #ffffff, #cccccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.affiliate-subtitle {
  font-size: 1.125rem;
  color: #d9d9d9;
  font-weight: 300;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.affiliate-card {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  border-color: #555555;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.affiliate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #d9d9d9);
}

.affiliate-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222222;
}

.affiliate-tier-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.affiliate-tier-level {
  background: #333333;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.affiliate-tier-name {
  font-size: 0.875rem;
  color: #d9d9d9;
  font-weight: 400;
  margin-top: 0.25rem;
}

.affiliate-requirements {
  margin-bottom: 1.5rem;
}

.affiliate-req-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cccccc;
  margin-bottom: 0.75rem;
}

.affiliate-req-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #d9d9d9;
  line-height: 1.4;
}

.affiliate-req-item span {
  color: #ffa6a6;
}

.affiliate-req-item span.complete {
  color: #7ed4ff;
}

.affiliate-req-bullet {
  width: 6px;
  height: 6px;
  background: #666666;
  border-radius: 50%;
  margin-right: 0.75rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.affiliate-progress-section {
  margin-bottom: 1.5rem;
}

.affiliate-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.affiliate-progress-label {
  font-size: 0.875rem;
  color: #cccccc;
  font-weight: 500;
}

.affiliate-progress-percentage {
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 600;
}

.affiliate-progress-bar {
  width: 100%;
  height: 8px;
  background: #222222;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333333;
}

.affiliate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #cccccc);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.affiliate-reward-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #222222;
}

.affiliate-reward-label {
  display: flex;
  align-items: center;
  color: #d9d9d9;
  font-size: 0.875rem;
}

.affiliate-reward-label i {
  margin-right: 0.5rem;
}

.affiliate-reward-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.affiliate-action-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliate-btn-unlocked {
  background: #ffffff;
  color: #000000;
}

.affiliate-btn-unlocked:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.affiliate-btn-locked {
  background: #222222;
  color: #666666;
  cursor: not-allowed;
  border: 1px solid #333333;
}

.affiliate-btn-locked i {
  margin-right: 0.5rem;
}

.affiliate-stats-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #d9d9d9;
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .referral-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .feature-card,
  .option-card,
  .referral-card {
    padding: 20px 15px;
  }
}

[contenteditable="true"] {
  position: relative;
  width: max-content;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  background: none;
  color: #b5e8ff;
  opacity: 1;
  -webkit-text-fill-color: inherit;
  text-shadow: 0 0 10px #009bc7;
  padding: 0 5px;
  background-color: #000000;
  border: 1px solid #a5a5a5;
  outline: none;
  border-radius: 5px;
}

.editable-value {
  position: relative;
}

.editable-value::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  background-color: #ffe34a;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  transform: translate(0, -50%);
  box-shadow: 0 0 10px #000000;
  animation: _blink 1s infinite;
}

@keyframes _blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.m-edit {
  margin-left: 10px;
}

/* Demo content to show the bubble floating over a page */
.demo-content {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

.demo-content h1 {
  color: #2d3748;
  margin-bottom: 20px;
}

.demo-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #4a5568;
}

/* Floating Chat System */
.chat-floating-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.chat-bubble.active {
  transform: scale(0.9);
}

.bubble-icon {
  width: 24px;
  height: 24px;
  color: white;
  transition: all 0.3s ease;
}

.bubble-icon.hidden {
  opacity: 0;
  transform: rotate(180deg);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  animation: bounce 2s infinite;
  display: none;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }

  40%,
  43% {
    transform: translateY(-8px);
  }

  70% {
    transform: translateY(-4px);
  }
}

.chat-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.options-header {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.option-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-button:last-child {
  margin-bottom: 0;
}

.option-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.option-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.option-content h4 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 600;
}

.option-content p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 550px;
  height: 500px;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-window.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-window-header {
  background: linear-gradient(135deg, #2d2d44 0%, #3a3a54 100%);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.ai-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.close-button {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.chat-content {
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
}

/* Telegram Modal */
.telegram-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.telegram-modal.show {
  opacity: 1;
  visibility: visible;
}

.telegram-modal-content {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-modal.show .telegram-modal-content {
  transform: scale(1);
}

.telegram-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-modal h3 {
  color: white;
  margin-bottom: 12px;
  font-size: 20px;
}

.telegram-modal p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
}

.telegram-channel-info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.channel-name {
  color: #0088cc;
  font-weight: 600;
  margin-bottom: 4px;
}

.channel-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.telegram-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.telegram-button {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telegram-button.primary {
  background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
  color: white;
}

.telegram-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.3);
}

.telegram-button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.telegram-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom by ensuring >=16px on focusable inputs */
  input,
  select,
  textarea,
  .chat-input {
    font-size: 16px;
  }

  .chat-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    z-index: 10001;
  }

  .chat-options {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    min-width: 300px;
    max-width: calc(100vw - 40px);
    z-index: 10002;
  }

  .chat-options.show {
    transform: translate(-50%, -50%) scale(1);
  }

  .chat-options:not(.show) {
    transform: translate(-50%, -50%) translateY(20px) scale(0.9);
  }

  .telegram-modal-content {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }

  /* Keep content sized within viewport minus header */
  .chat-content {
    height: calc(100% - 60px);
  }

  /* Reserve room so input isn't obscured by the keyboard/safe area */
  .chat-messages {
    padding-bottom: 112px;
  }

  .typing-indicator {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 2;
  }

  .chat-input-container {
    position: sticky;
    bottom: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 3;
  }

  .chat-input {
    max-height: 140px;
    overflow-y: auto;
  }
}

/* Include the embedded chat styles */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  -webkit-overflow-scrolling: touch;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  animation: messageSlideIn 0.3s ease-out forwards;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.sent {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.message.sent .message-avatar {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message-content {
  max-width: 70%;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.sent .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

/* Navigation Suggestion */
.navigation-suggestion {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0;
  backdrop-filter: blur(10px);
}

.navigation-suggestion p {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.nav-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-button:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-button i {
  font-size: 12px;
}

.message-text {
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
  color: white;
  font-size: 13px;
}

.message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  display: block;
}

.typing-indicator {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transition: all 0.3s ease;
}

.typing-indicator.show {
  opacity: 1;
}

.typing-dots {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }
}

.chat-input-container {
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  resize: none;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  max-height: 100px;
  min-height: 38px;
  overflow-y: hidden;
  scrollbar-width: none;
  font-family: inherit;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}

.chat-input::-webkit-scrollbar {
  display: none;
  /* WebKit */
}

.chat-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.send-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
}

.send-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
