:root {
  --neo-cyan: #25F4EE;
  --neo-pink: #FE2C55;
  --bg-dark: #0b0b10;
  --card-bg: rgba(0, 0, 0, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-dark);
  padding: 16px;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--neo-pink);
  box-shadow: 0 0 18px rgba(254, 44, 85, 0.35);
  object-fit: cover;
}

h1 {
  margin: 10px 0 6px 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

h1 .blue {
  color: var(--neo-cyan);
}

h1 .pink {
  color: var(--neo-pink);
}

.subtitle {
  margin: 0;
  color: #e7ebf1;
  opacity: 0.9;
  font-size: 1rem;
  text-align: center;
}

.auth-indicator {
  display: none;
  margin-top: 6px;
  font-size: 0.95rem;
  color: #b9becf;
  text-align: center;
}

.auth-indicator span {
  font-weight: 600;
  color: #fff;
}

.cta {
  max-width: 500px;
  width: 100%;
  margin: 20px auto 0;
  display: grid;
  gap: 16px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #11cfe3, #c11644);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 14px rgba(37, 244, 238, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease-out;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 0 18px rgba(37, 244, 238, 0.4);
}

.btn.btn-primary {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 24px rgba(37, 244, 238, 0.5);
}

.btn svg {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

#p-call {
  display: none;
  margin-top: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}

footer {
  padding: 32px 16px;
  font-size: 0.9rem;
  color: #eee;
  text-align: center;
}

.wrap > .scroll-section:last-of-type {
  margin-top: auto;
}

.login-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  background: linear-gradient(90deg, #11cfe3, #c11644);
  border: 0;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  z-index: 50;
  box-shadow: 0 0 14px rgba(37, 244, 238, 0.25);
}

/* Dropdown Styles */
.dropdown-container {
  display: block;
  width: 100%;
}

.dropdown-menu {
  display: none;
  background: #1c1c22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu a svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Social Links Styles */
.social-links {
  margin-top: 24px;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.social-links a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.social-links a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.social-links svg {
  width: 28px;
  height: 28px;
}

/* Chat Widget Styles */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--neo-cyan), var(--neo-pink));
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: transform 0.2s ease-out;
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-bubble svg {
  width: 32px;
  height: 32px;
  color: white;
}

.chat-widget-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 350px;
  max-width: calc(100% - 32px);
  height: 500px; /* Fixed height for chat */
  max-height: 70vh;
  background: #18181d;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget-container.show {
  transform: scale(1);
}

.chat-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
}

.chat-header button:hover {
  opacity: 1;
}

.chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message {
  background: #2a2a32;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.user-message {
  background: var(--neo-cyan);
  color: #111;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-form {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  flex-shrink: 0;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  font-family: inherit;
  outline: none;
}

.chat-input:focus {
  border-color: var(--neo-cyan);
}

.chat-send-btn {
  background: var(--neo-pink);
  border: none;
  border-radius: 8px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: #d92549;
}

/* Scroll Animation */
.scroll-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
  margin-bottom: 32px;
}

.scroll-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Form Styles */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #212529;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.form-input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--neo-cyan);
  box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.1);
}

@media (max-width: 900px) {
  h1 {
    font-size: 32px;
  }
  .subtitle {
    font-size: 1rem;
  }
  .btn {
    padding: 14px;
    font-size: 16px;
  }
  .social-links {
    gap: 20px;
  }
  .social-links svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 600px) {
  .login-fab {
    padding: 6px 10px;
    font-size: 12px;
    top: 16px;
    right: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .avatar {
    width: 100px;
    height: 100px;
  }
  .chat-widget-container {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}
