:root {
  --bs-primary: #c52974;
  --bs-secondary: #ff6a00;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-body-font-family:
    Lato, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue,
    Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol,
    Noto Color Emoji;
  --header-height: 70px;
  --bs-linear-gradient: linear-gradient(135deg, #ee0979, #ff6a00);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--bs-body-font-family);
}

html {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
}

body#page-top {
  font-family: Arial, sans-serif;
  background: white !important;
}

.header {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  text-align: center;
  color: white;
}
#header-dp {
  width: 26px;
  height: 26px;
}
/* Cursor */
/* Inner Cursor */
.cursor-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #5a5757;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

/* Outer Cursor */
.cursor-outer {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #d7a91fe5;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease,
    border-color 0.3s ease;
}
.cursor-inner.hover {
  width: 25px;
  height: 25px;
  background-color: #ffc107b4;
}

.cursor-outer.hover {
  width: 30px;
  height: 30px;
  border-color: rgba(0, 0, 0, 0.5);
}

/* password show/hide */
.password-container {
  position: relative;
}

.password-input {
  padding-right: 40px !important;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 18px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  z-index: 10;
}
/* When error appears */
.password-container label.error {
  display: block;
  margin-top: 5px;
}
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
/* ===== MODAL SCROLLBAR FIX ===== */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}
.modal {
  overflow-y: auto !important;
  padding-right: 0 !important;
}
.modal-open,
.modal-open .modal,
.modal-open .navbar,
.modal-open .fixed-top {
  padding-right: 0 !important;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
/*permission-modal */

.permission-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.permission-modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.permission-content {
  background: white;
  padding: 20px;
  border-radius: 15px;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.permission-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.permission-content h2 {
  color: #333;
  margin-bottom: 15px;
}

.permission-content p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.permission-list {
  text-align: left;
  margin: 20px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  margin: 10px 0;
  color: #333;
}

.permission-item span {
  margin-right: 10px;
  font-size: 20px;
}

.permission-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 1000;
  background-color: white;
}

.permission-close:hover {
  color: red;
}

.permission-close:active {
  transform: scale(0.9);
}

#allowPermissionBtn:hover {
  background: white;
  border: red 2px solid;
  color: red;
}

#checkPermissionBtn:hover {
  background: white;
  border: var(--bs-secondary) 2px solid;
  color: var(--bs-secondary);
}

.permission-badge {
  position: absolute;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 9px 10px;
  border-radius: 20px;
  font-size: 15px;
  z-index: 5;
  margin-bottom: 4px;
  margin-right: 20px;
}

.error-message {
  background: #ffebee;
  color: #f00808;
  padding: 10px;
  border-radius: 8px;
  margin: 5px 0;
  display: none;
  font-size: 17px;
  text-align: center;
}

.error-message.show {
  display: block;
}
/* video card */
.video-card {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  height: auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  aspect-ratio: 16 / 9;
  height: 420px;
}

video {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* TOP BAR */
.video-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-user {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#stranger {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-timer {
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
}

/* BOTTOM CONTROLS */
.video-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;
}

/* MIC METER */
.mic-container {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mic-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
}

/* Remote mic & cam status — bottom right */
.remote-status {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 10px;
  z-index: 5;
  margin-bottom: 30px;
}

.remote-status span {
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 10px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
}

/* BUTTONS */
.control-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.permission-status.granted {
  background: rgba(76, 175, 80, 0.9);
}

.permission-status.denied {
  background: rgba(244, 67, 54, 0.9);
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

button {
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.status {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: bold;
}

.status.connecting {
  color: #ff9800;
}

.status.connected {
  color: #4caf50;
}

.status.disconnected {
  color: #f44336;
}

.waiting-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  text-align: center;
}

.help-text {
  text-align: center;
  color: white;
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  0% {
    --angle: 0deg;
  }

  100% {
    --angle: 360deg;
  }
}

.gradient-border {
  border: 10px solid transparent;
  border-radius: 6px;
  background: conic-gradient(
      from var(--angle),
      #ff416c,
      #ff4b2b,
      #7f00ff,
      #00c6ff,
      #ff416c
    )
    border-box;
  background-clip: padding-box, border-box;
  background-size: 200% 200%;
  animation: rotate 3s linear infinite;
}

.video-box {
  background: black;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 320px;
}

#micBtn.on,
#camBtn.on {
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
  color: white;
}

#micBtn.off,
#camBtn.off {
  background: #dc3545 !important;
  color: black;
  border: none;
}

.hidden {
  display: none !important;
}

/* chat */
#rightPanel.container {
  padding-left: 220px;
  padding-right: 220px;
}
#chatbox.container {
  padding-left: 0px;
  padding-right: 0px;
}
.chat-container-wrapper {
  max-width: 100%;
  padding: 0 15px;
}
.chat-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: calc(60vh - 40px);
  max-height: 400px;
}
.chatheader {
  background: white;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.chatheader h5 {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f8f9fa;
  overscroll-behavior: contain;
}

/* FOOTER */
.chat-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff0f5;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

.chat-footer input {
  flex: 1;
  background: white;
  border: 1px solid rgba(238, 9, 121, 0.25);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.chat-footer input:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(197, 41, 116, 0.1);
}

.chat-footer button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
  border: none;
  color: white;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  flex-shrink: 0;
}

.chat-footer button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(197, 41, 116, 0.3);
}

/* When open */
#rightPanel.show {
  width: 300px;
}

.panel-open #mainContent {
  width: calc(100% - 300px);
}

/* ===== CHAT BUBBLES ===== */
#typingIndicator {
  display: none;
}

.chat-message {
  display: flex;
  margin-bottom: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.you {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.chat-message.you .chat-bubble {
  background: var(--bs-primary);
  color: white;
}

.chat-message.stranger .chat-bubble {
  background: #e9ecef;
  color: #333;
}
.chat-name {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 2px;
  display: none;
}
.chat-message.you .chat-name,
.chat-message.stranger .chat-name {
  display: block;
}
.chat-message.you ~ .chat-message.you .chat-name {
  display: none;
}
.chat-message.stranger ~ .chat-message.stranger .chat-name {
  display: none;
}

/* ===== APP LAYOUT ===== */
#appLayout {
  display: flex;
  width: 100%;
  align-items: stretch;
  overflow-x: hidden;
}

#mainContent {
  flex: 1;
  transition:
    width 0.35s ease,
    margin 0.35s ease;
  background: #f8f9fa;
  overflow: visible;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .offcanvas-backdrop {
  display: none !important;
} */
.container-fluid-videochat {
  background: linear-gradient(
    to right,
    #ee7724,
    #d8363a,
    #dd3675,
    #b44593
  ) !important;
}

footer {
  background: transparent !important;
}

.control-panel,
.control-wrapper,
#controlArea,
.controls,
.d-flex.justify-content-center {
  background: linear-gradient(
    to right,
    #ee7724,
    #d8363a,
    #dd3675,
    #b44593
  ) !important;
  padding: 20px 0;
  border-radius: 0;
}

#google.google-btn {
  font-weight: 500;
  transition: all 0.3s ease;
  justify-content: center;
}

#google.google-btn:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.google-btn img {
  vertical-align: middle;
  width: 20px;
}

.about {
  border-right: var(--bs-primary) 2px solid;
}

.aboutpage .bg-light {
  background-color: white;
}

.profile-card {
  max-width: 420px;
  margin: 30px auto;
}

.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.profile-ring {
  width: 140px;
  height: 140px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
}

.navbar-brand {
  letter-spacing: 1px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  display: inline-block;
}

.nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

/* ===== DROPDOWN ===== */
.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
  width: 100%;
}
.dropdown-hover:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}
.dropdown-menu {
  border-radius: 10px;
  padding: 8px 0;
  width: auto !important;
  min-width: 160px;
  animation: fadeDown 0.2s ease-in-out;
}
.dropdown-menu.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}
.dropdown-menu.bg-dark .dropdown-item:hover,
.dropdown-menu.bg-dark .dropdown-item:focus {
  background-color: gray;
}
.dropdown-menu.bg-dark .dropdown-item.text-danger:hover {
  background-color: #dc3545;
  color: #fff !important;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .nav-link.active {
  color: white !important;
  font-weight: 600;
}

.dropdown-menu.bg-dark .dropdown-item:hover,
.dropdown-menu.bg-dark .dropdown-item:focus {
  background-color: gray;
}

.dropdown-menu.bg-dark .dropdown-item.text-danger:hover {
  background-color: #dc3545;
  color: #fff !important;
}

.aboutbg {
  background-color: white;
}

.age-box {
  border-radius: 12px;
  border: none;
}

.btn-enter {
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
}

.btn-enter:enabled {
  background: var(--bs-secondary);
}

.form-check-label {
  font-size: 14px;
}

.field-bot {
  position: absolute;
  left: -9999px;
  height: 1px !important;
  width: 1px !important;
  opacity: 0 !important;
}

.error {
  color: red;
}

.modal .gradient-custom {
  background: linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
}

/* control buttons */
.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;

  padding: 12px 28px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #d5086b;
  border-color: #d5086b;
}

#startBtn {
  background-color: white;
  border: var(--bs-primary) 2px solid;
  color: var(--bs-primary);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#nextBtn {
  background-color: white;
  border: var(--bs-secondary) 2px solid;
  color: var(--bs-secondary);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#stopBtn {
  background-color: white;
  border: 2px solid var(--bs-danger);
  color: var(--bs-danger);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#startBtn:hover {
  background-color: var(--bs-primary);
  color: white;
}

#nextBtn:hover {
  background-color: var(--bs-secondary);
  color: white;
}

#stopBtn:hover {
  background: var(--bs-danger);
  color: #fff;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.btn-gradient-primary:hover {
  opacity: 0.9;
}

.transitions style {
  background-color: rgrgb(238, 9, 9);
}

/* mobile nav */
.letter-spacing {
  letter-spacing: 1px;
}

.user-card {
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 28px;
}

.dropdown-item {
  border-radius: 6px;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background-color: #0000007d;
  z-index: 1040 !important;
}

.offcanvas-backdrop.show {
  opacity: 0.8;
  backdrop-filter: blur(2px);
}

.mobile-nav .mobile-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav .mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav .mobile-link.active {
  background: rgba(13, 110, 253, 0.25);
  color: #fff;
  border-left: 4px solid #0d6efd;
}

/* slider */
.veilmeet-3d-slider {
  background: #f4f6fb;
  padding: 40px 0;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: auto;
  height: 360px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 50%;
  width: 60%;
  max-width: 520px;
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
  transition: all 0.7s ease;
  opacity: 0;
}

.slide.active {
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
}

.slide.next {
  left: 85%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.6;
  z-index: 2;
  filter: blur(1px);
}

.slide.prev {
  left: 15%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.6;
  z-index: 1;
  filter: blur(1px);
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.nav.prev {
  left: -65px;
}

.nav.next {
  right: -86px;
}

.info-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 36px;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.info-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
}

.list-item {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

.list-item::before {
  content: "•";
  color: #e63946;
  font-weight: bold;
  margin-right: 10px;
}

.list-item.highlight {
  margin-top: 14px;
  color: #e63946;
  font-weight: 600;
}

/* How It Works */
.how-it-works {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.how-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.how-card:hover {
  transform: translateY(-10px);
  border-color: var(--bs-dark);
  box-shadow: 0 15px 40px rgba(238, 9, 121, 0.3);
}
.how-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  font-weight: 700;
}

.how-title::before,
.how-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #c52974, #ff6a00);
  transform: scaleX(0);
}

.how-title::before {
  transform-origin: right center;
}

.how-title::after {
  transform-origin: left center;
}

.how-title span {
  white-space: nowrap;
  padding: -1px 5px;
  opacity: 0;
  transform: scale(0.8);
}

/* Animation trigger class */
.how-title.animate::before {
  animation: expandFromCenter 0.8s ease-out forwards;
}

.how-title.animate::after {
  animation: expandFromCenter 0.8s ease-out forwards;
}

.how-title.animate span {
  animation: fadeInScale 0.6s ease-out 0.4s forwards;
}

@keyframes expandFromCenter {
  to {
    transform: scaleX(1);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.how-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.how-card:hover h3 {
  transition: color 0.35s ease;
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.how-card:hover::after {
  opacity: 1;
}

.step-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #ee0979;
  opacity: 0.7;
}

.step-icon {
  font-size: 38px;
}

.gradient-text {
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-hr {
  border: none;
  height: 4px;
  width: 500px;
  margin: 30px auto 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
}

/* about us  */

.aboutpage {
  min-height: 100vh;
  overflow-x: hidden;
}

#aboutpage {
  max-width: 1400px;
  width: 100%;
}

/* Hero Section */
.hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-img {
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 65%;
  height: auto;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* Meet Section */
.meet-section {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  min-height: 400px;
}

.meet-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.meet-list li {
  padding: 12px 0;
  font-size: 1.1rem;
  position: relative;
  padding-left: 35px;
}

.meet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bs-warning);
  font-weight: bold;
  font-size: 1.4rem;
}

.corner-border {
  position: absolute;
  width: 80px;
  height: 80px;
  border: solid 20px;
  border-color: transparent;
  z-index: 1;
}

.corner-top-left {
  top: 0;
  left: 0;
  border-top-width: 4px;
  border-left-width: 4px;
  border-radius: 20px;
  border-top-color: white;
  border-left-color: white;
}

.corner-bottom-right-meet {
  bottom: 0;
  right: 0;
  border-bottom-width: 4px;
  border-right-width: 4px;
  border-radius: 20px;
  border-bottom-color: white;
  border-right-color: white;
}

/* Mission Card */
.mission-card {
  border-radius: 20px;
  min-height: 400px;
}

/* Future Cards */
.future-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.future-card:hover {
  transform: translateY(-10px);
  border-color: var(--bs-dark);
  box-shadow: 0 15px 40px rgba(238, 9, 121, 0.3);
}

.future-card i {
  font-size: 1.5rem;
}

/* Privacy Section */
.privacy-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.privacy-list {
  text-align: left;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.privacy-list li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  font-size: 1.05rem;
  color: white;
}

.privacy-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  color: var(--bs-warning);
}

.privacy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.footer-cta {
  color: black;
  /* padding: 2rem; */
}

.text-muted-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-white-custom {
  color: #ffffff !important;
}

/* Ensure responsive containers */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

body {
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

.slide [class*="col-"] {
  padding-left: 3px;
  padding-right: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.future-card,
.meet-section,
.mission-card,
.privacy-card,
.footer-cta {
  max-width: 100%;
  word-wrap: break-word;
}

.feature-item {
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-content {
  height: 100%;
}

/* TABLET = MOBILE STYLE */
@media (min-width: 767px) and (max-width: 1199px) {
  .masthead h3 {
    font-size: 2.2rem;
  }

  .masthead h4 {
    font-size: 1.4rem;
  }

  .step-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stepper-line {
    display: none;
  }

  .nav {
    width: 44px;
    height: 44px;
    bottom: 12px;
  }

  .nav.prev {
    transform: translateX(-75px);
    left: 115px;
  }

  .nav.next {
    transform: translateX(75px);
    right: 115px;
  }

  .step-item {
    max-width: 100%;
    width: 100%;
  }

  .step-card {
    padding: 10px;
  }

  .step-item::before {
    content: "";
    position: absolute;
    top: 42px;
    width: 2px;
    height: 80%;
    background: #e0e0e0;
    transform: translateX(-50%);
  }

  .step-item:last-child::after {
    display: none;
  }

  .veilmeet-3d-slider {
    padding: 40px 0;
  }

  .about {
    border-right: none;
  }
  /* chat box */
  .chat-container-wrapper {
    max-width: 900px;
    padding: 0 20px;
  }

  .chat-card {
    height: calc(50vh - 30px);
    max-height: 300px;
  }
  #rightPanel.container {
    padding-left: 60px;
    padding-right: 60px;
  }
  .chat-body {
    padding: 15px;
    min-height: 100px;
  }

  .chatheader h5 {
    font-size: 1rem;
  }

  .chat-footer {
    padding: 12px;
  }

  .chat-footer input {
    font-size: 14px;
  }

  .cursor-inner,
  .cursor-outer,
  .cursor-inner.hover,
  .cursor-outer.hover {
    display: none;
  }
}

/* mobile  */
@media (max-width: 767px) {
  .step-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stepper-line {
    display: none;
  }

  .step-item::before {
    content: "";
    position: absolute;
    top: 42px;
    width: 2px;
    height: 75%;
    background: #e0e0e0;
    transform: translateX(-50%);
  }

  .step-item:last-child::after {
    display: none;
  }

  .step-card {
    padding: 2px;
  }

  .step-item::after {
    position: absolute;
    left: 50%;
    top: 42px;
    width: 2px;
    height: 100%;
    background: #e0e0e0;
    transform: translateX(-50%);
  }

  .step-item:last-child::after {
    display: none;
  }

  .veilmeet-3d-slider {
    padding: 126px 0;
  }

  .slide {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 90%;
    max-width: 520px;

    opacity: 0;
    transform: translate(-50%, -40%) scale(0.96);

    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.35s ease;

    will-change: transform, opacity;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  }

  .slide.prev,
  .slide.next {
    display: none;
  }

  .nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
  }

  .nav.prev {
    left: 30px;
  }

  .nav.next {
    right: 6px;
  }

  .slide.enter-from-right {
    transform: translate(-45%, -50%) scale(0.96);
    opacity: 0;
  }

  .slide.enter-from-left {
    transform: translate(-55%, -50%) scale(0.96);
    opacity: 0;
  }

  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  #aboutpage {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .display-6 {
    font-size: 1.4rem !important;
  }

  .fs-5 {
    font-size: 0.95rem !important;
  }

  .meet-section,
  .mission-card {
    min-height: auto;
  }

  .mission-card {
    border-radius: 20px;
  }

  .future-card {
    padding: 1rem;
  }

  .future-card i {
    font-size: 1.8rem;
  }

  .future-card h6 {
    font-size: 0.9rem;
    margin-top: 0.5rem !important;
  }

  .future-card p {
    font-size: 0.8rem;
  }

  .privacy-card {
    padding: 1.25rem !important;
  }

  .footer-cta {
    padding: 1rem;
  }

  .hero-img {
    max-width: 85%;
  }

  .meet-list li,
  .privacy-list li {
    padding: 8px 0;
    padding-left: 28px;
    font-size: 0.9rem;
  }

  .meet-list li:before {
    font-size: 1rem;
  }

  .privacy-list li:before {
    font-size: 1rem;
  }

  .col-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
  .cursor-inner,
  .cursor-outer,
  .cursor-inner.hover,
  .cursor-outer.hover {
    display: none;
  }
}

/* mobile  */
@media (max-width: 991px) {
  .masthead h3 {
    font-size: 1.8rem;
  }

  .masthead h4 {
    font-size: 1.2rem;
  }

  .masthead img {
    margin-top: 20px;
  }

  .video-card {
    height: calc(93vh - 336px);
  }

  .video-wrapper {
    height: 100%;
    aspect-ratio: unset;
  }

  video {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .offcanvas-end {
    transform: translateY(100%);
  }

  .offcanvas-end.show {
    transform: translateY(0);
  }

  .panel-open #mainContent {
    margin-right: 0;
  }

  .nav-link:not(.dropdown-toggle).active::after {
    width: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .permission-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .container {
    max-width: 100% !important;
  }

  .corner-border {
    width: 60px;
    height: 60px;
  }

  .corner-top-left,
  .corner-bottom-right-meet,
  .corner-top-right,
  .corner-bottom-left {
    border-width: 3px !important;
    border-radius: 6px;
  }

  #future .corner-border {
    display: none;
  }

  .permission-modal {
    padding: 10px 10px;
  }

  /* chat */
  #rightPanel.container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .chat-card,
  .chat-container-wrapper,
  .chat-body,
  .chat-footer {
    max-width: 100%;
    box-sizing: border-box;
  }

  #typingIndicator {
    padding: 6px 12px;
    font-size: 12px;
  }
  #typingIndicator.active {
    display: block;
  }

  .chat-footer input {
    max-width: calc(100% - 50px); /* Account for button width */
  }

  .chat-footer input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(197, 41, 116, 0.1);
  }

  .chat-footer button {
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    border: none;
    color: white;
  }

  .chat-footer button:active {
    transform: scale(0.95);
  }

  /* Chat Messages */
  .chat-message {
    margin-bottom: 8px;
  }

  .chat-bubble {
    max-width: 85%;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 10px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  .chat-message.you .chat-bubble {
    background: var(--bs-primary);
    color: white;
  }

  .chat-message.stranger .chat-bubble {
    background: #e9ecef;
    color: #333;
  }

  .chat-name {
    font-size: 10px;
    opacity: 0.6;
    margin-bottom: 2px;
  }

  /* Scrollbar for Mobile */
  .chat-body::-webkit-scrollbar {
    width: 4px;
  }

  /* Chat Header */
  .chatheader {
    padding: 0;
    border-bottom: 1px solid #e9ecef;
  }

  .chatheader h5 {
    font-size: 0.95rem;
    padding: 12px 15px;
    margin: 0;
  }
  /* Chat Footer - Input Area */
  .chat-footer {
    padding: 8px;
    gap: 6px;
    background: #fff0f5;
    border-top: 1px solid #e9ecef;
  }

  .chat-footer input {
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(238, 9, 121, 0.25);
    border-radius: 999px;
  }

  .chat-footer input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(197, 41, 116, 0.1);
  }

  .chat-footer button {
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    border: none;
    color: white;
  }

  .chat-footer button:active {
    transform: scale(0.95);
  }
  .cursor-inner,
  .cursor-outer,
  .cursor-inner.hover,
  .cursor-outer.hover {
    display: none;
  }
}

@media (max-width: 768px) {
  .local .video-wrapper {
    height: 46%;
    background: #ffffff00 !important;
  }

  .local .video-top,
  .local .permission-badge,
  .local .mic-container {
    display: none;
  }

  .local .control-buttons {
    gap: 2px;
  }

  .local .btn-secondary {
    padding: revert-layer;
  }

  .local .localvid {
    margin-top: 20px;
  }

  /* ===== REMOTE VIDEO MAIN ===== */
  .container-fluid-videochat .col-lg-6:last-child .video-wrapper {
    position: relative !important;
    height: 75vh !important;
    width: 100% !important;
    background: #000 !important;
    overflow: hidden !important;
  }

  #remoteVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
  }

  /* ===== LOCAL VIDEO FLOATING PIP ===== */
  .container-fluid-videochat .col-lg-6:first-child {
    position: absolute !important;
    bottom: 74px !important;
    right: 4px !important;
    width: auto !important;
    height: auto !important;
    z-index: 20 !important;
    /* pointer-events: none !important; */
  }

  @media (max-width: 768px) {
    #localVideo {
      width: 113px !important;
      height: 157px !important;
      object-fit: cover !important;
      border-radius: 10px !important;
      border: 2px solid #fff !important;
      background: #000 !important;
      pointer-events: none;
    }
  }

  /* REMOVE EXTRA HEIGHT & CONTROLS FROM LOCAL */
  .container-fluid-videochat .col-lg-6:first-child .video-card {
    background: transparent !important;
    box-shadow: none !important;
  }

  .container-fluid-videochat .col-lg-6:first-child .video-bottom,
  .container-fluid-videochat .col-lg-6:first-child .mic-container {
    /* display: none !important; */
  }

  .container-fluid-videochat .col-lg-6:first-child .control-buttons,
  .container-fluid-videochat .col-lg-6:first-child button {
    pointer-events: auto;
  }

  /* LABELS & LOADER SAFE */
  .video-top,
  #waitingMsg {
    z-index: 10 !important;
  }

  .feature-item .border-end {
    border-right: none !important;
    border-bottom: 1px solid #dee2e6;
  }
  .cursor-inner,
  .cursor-outer,
  .cursor-inner.hover,
  .cursor-outer.hover {
    display: none;
  }
}

@media (min-width: 374px) and (max-width: 550px) {
  .local .localvid {
    margin-top: calc(0vh + 0px);
  }

  .local .video-wrapper {
    height: clamp(270px, 25vh, 416px);
  }
}

@media (min-width: 375px) and (max-width: 550px) {
  .local .video-wrapper {
    height: clamp(270px, 25vh, 416px);
  }
}

a {
  text-decoration: none;
}
#localVideo,
#remoteVideo {
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}

/* =====================================
   📱 MOBILE FINAL FIX (ONLY PiP FIXED)
===================================== */
@media (max-width: 768px) {
  /* 🔹 REMOTE VIDEO = NORMAL (NOT FIXED) */
  .container-fluid-videochat .col-lg-6:last-child {
    position: relative !important;
    inset: auto !important;
  }

  .container-fluid-videochat .col-lg-6:last-child .video-wrapper {
    height: 60vh !important;
    /* badi screen limit */
    width: 100% !important;
  }

  #remoteVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 🔹 LOCAL VIDEO = FIXED FLOATING (PiP) */
  .container-fluid-videochat .col-lg-6:first-child {
    position: absolute !important;
    bottom: 17% !important;
    right: 12px !important;
    z-index: 999 !important;
  }

  .container-fluid-videochat .col-lg-6:first-child .video-wrapper {
    width: 110px !important;
    height: 150px !important;
    aspect-ratio: 9 / 16 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #000 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  }

  #localVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 🔹 LOCAL EXTRA UI HIDE */
  .local .video-top,
  .local .mic-container,
  .local .permission-badge {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .container-fluid-videochat .col-lg-6:first-child .video-wrapper {
    width: 84px !important;
    height: 104px !important;
  }

  .video-card {
    height: calc(108vh - 389px);
  }

  .container-fluid-videochat .col-lg-6:first-child {
    bottom: 18% !important;
  }

  .local .localvid {
    margin-top: 0px;
  }
}

@media (max-width: 374px) {
  .container-fluid-videochat .col-lg-6:first-child .video-wrapper {
    margin-top: 20px;
  }
}

/* ===== COOKIE POPUP ===== */

.cookie-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.cookie-box {
  background: #111;
  color: #fff;
  max-width: 420px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.cookie-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cookie-box p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 14px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
}

.cookie-buttons button {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ee0979, #ff6a00);
  color: #fff;
}
.cookie-popup {
  display: none;
}
