body,
button,
input,
textarea {
  font-family: Outfit, sans-serif;
}
.cndy-demo {
  width: min(92vw, 620px);
  text-align: center;
  perspective: 900px;
  margin-top: 30px;
  margin-bottom: 20px;
}
.cndy-bar-wrap {
  position: relative;
  width: 100%;
  height: 76px;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
}
.cndy-track {
  position: absolute;
  inset: 14px 0 0;
  height: 52px;
  border-radius: 30px;
  background: #2a0617;
  box-shadow:
    inset 0 7px 9px rgba(0, 0, 0, 0.55),
    inset 0 -5px 0 rgba(255, 255, 255, 0.05),
    0 10px 0 #180310,
    0 16px 22px rgba(0, 0, 0, 0.45);
}
.cndy-fill {
  position: absolute;
  left: 8px;
  top: 22px;
  width: 0%;
  height: 36px;
  border-radius: 22px;
  transform: translateZ(18px);
  background: #7a1040;
  box-shadow:
    inset 0 7px 0 rgba(255, 255, 255, 0.1),
    inset 0 -7px 0 rgba(60, 10, 30, 0.55),
    0 5px 0 #4a0825,
    0 9px 12px rgba(60, 10, 30, 0.5);
  transition: width 0.08s linear;
}
.cndy-fill:before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 6px;
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}
.cndy-fill:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #aaa;
  opacity: 0.35;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05);
}
.cndy-candy {
  position: absolute;
  z-index: 5;
  left: 0;
  top: -7px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  transform: translateX(0) translateZ(45px) rotate(-8deg);
  background: #5a0a2a;
  box-shadow:
    inset 7px 7px 0 rgba(255, 255, 255, 0.1),
    inset -7px -9px 0 rgba(20, 5, 12, 0.5),
    0 7px 0 #2e0415,
    0 13px 18px rgba(0, 0, 0, 0.55);
  transition: left 0.08s linear;
}
.cndy-candy:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 9px;
  left: 11px;
  top: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-25deg);
}
.cndy-candy:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cndy-face {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.cndy-eye {
  position: absolute;
  top: 22px;
  width: 7px;
  height: 11px;
  border-radius: 50%;
  background: #1a0810;
}
.cndy-eye.l {
  left: 17px;
}
.cndy-eye.r {
  right: 17px;
}
.cndy-mouth {
  position: absolute;
  width: 17px;
  height: 9px;
  left: 20px;
  top: 33px;
  border-bottom: 3px solid #1a0810;
  border-radius: 0 0 50% 50%;
}
.cndy-cheek {
  position: absolute;
  width: 10px;
  height: 6px;
  top: 34px;
  border-radius: 50%;
  background: #3d0c20;
}
.cndy-cheek.l {
  left: 7px;
}
.cndy-cheek.r {
  right: 7px;
}
.cndy-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cndy-bubble {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3d0c20;
  opacity: 0;
  animation: float 1.2s ease-out infinite;
}
.cndy-bubble.b1 {
  left: 25%;
  top: 0;
}
.cndy-bubble.b2 {
  left: 52%;
  top: 8px;
  animation-delay: 0.35s;
}
.cndy-bubble.b3 {
  left: 73%;
  top: 0;
  animation-delay: 0.7s;
}
.cndy-info {
  margin-top: 25px;
  color: #8b2442;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.cndy-percent {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
}
.cndy-status {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.85;
}
@keyframes float {
  0% {
    transform: translateY(10px) scale(0.5);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-30px) scale(1.15);
    opacity: 0;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: translateZ(45px) rotate(-8deg) scale(1);
  }
  50% {
    transform: translateZ(55px) rotate(5deg) scale(1.06);
  }
}
.cndy-candy.wiggle {
  animation: wiggle 0.7s ease-in-out infinite;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("NotoSansBengali-Regular.ttf") format("truetype");
  font-display: swap;
}
:root,
[data-theme="dark"],
[data-theme="light"] {
  --bg: #13030d;
  --bg-alt: #1f0817;
  --ink: #fdf2f8;
  --text-muted: #fbcfe8;
  --border: #831843;
  --hover-bg: #320f26;
  --c-blue-bg: #db2777;
  --c-blue-border: #be185d;
  --c-blue-shadow: #f9a8d4;
  --c-blue-dark: #9d174d;
  --c-pink-bg: #ec4899;
  --c-pink-border: #db2777;
  --c-pink-shadow: #fbcfe8;
  --c-pink-ring: #f9a8d4;
  --c-pink-sel-bg: #be185d;
  --c-pink-sel-border: #9d174d;
  --c-pink-sel-shadow: #ec4899;
  --c-pink-sel-ring: #f472b6;
  --c-green-bg: #f472b6;
  --c-green-border: #ec4899;
  --c-green-shadow: #fce7f3;
  --c-red-bg: #9d174d;
  --c-red-border: #831843;
  --c-red-shadow: #f472b6;
  --c-red-dark: #4a044e;
  --c-nav-active-bg: #be185d;
  --c-nav-active-text: #ffffff;
  --c-storage-bg: #831843;
  --c-storage-used: #f472b6;
  --c-chat-bg: #13030d;
  --chat-bg-image: none;
  --chat-bg-overlay: rgba(19, 3, 13, 0.62);
  --c-lightbox-bg: rgba(0, 0, 0, 0.9);
  --c-highlight-bg: #db2777;
  --c-highlight-border: #be185d;
  --c-highlight-ink: #ffffff;
  --c-selection-bg: #ec4899;
  --c-selection-ink: #ffffff;
}
.search-highlight,
mark {
  background: var(--c-highlight-bg);
  border: 1px solid var(--c-highlight-border);
  color: var(--c-highlight-ink);
}
::selection {
  background: var(--c-selection-bg);
  color: var(--c-selection-ink);
}
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 20vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.welcome-overlay::before {
  opacity: 0.18;
  content: "";
  position: absolute;
  inset: 0;
  background: url("extracted_img_10.png") center/cover no-repeat;
  opacity: 0.3;
  z-index: -1;
}
.welcome-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.welcome-overlay img.welcome-text {
  width: min(90vw, 450px);
  max-width: 100%;
  height: auto;
  max-height: 35vh;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
}
.welcome-overlay.active img.welcome-text {
  opacity: 1;
  transform: translateY(0);
}
.flying-bird {
  position: absolute;
  font-size: 16px;
  z-index: 100;
  pointer-events: none;
  animation: flyBird 20s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
@keyframes flyBird {
  0% {
    top: 10%;
    left: -10%;
    transform: scaleX(1) rotate(15deg);
  }
  15% {
    top: 40%;
    left: 30%;
    transform: scaleX(1) rotate(0);
  }
  30% {
    top: 20%;
    left: 70%;
    transform: scaleX(1) rotate(-10deg);
  }
  45% {
    top: 60%;
    left: 110%;
    transform: scaleX(1) rotate(15deg);
  }
  46% {
    top: 60%;
    left: 110%;
    transform: scaleX(-1) rotate(-15deg);
  }
  60% {
    top: 80%;
    left: 70%;
    transform: scaleX(-1) rotate(0);
  }
  75% {
    top: 30%;
    left: 30%;
    transform: scaleX(-1) rotate(10deg);
  }
  90% {
    top: 70%;
    left: -10%;
    transform: scaleX(-1) rotate(-15deg);
  }
  100% {
    top: 10%;
    left: -10%;
    transform: scaleX(1) rotate(15deg);
  }
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}
:active,
:focus {
  outline: 0 !important;
}
a,
button {
  outline: 0 !important;
}
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: 0 0;
}
::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-text-sec);
}
body,
html {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  font-family:
    Outfit,
    "Noto Sans Bengali",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.sidebar {
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.right-sidebar {
  width: 320px;
  max-width: 100vw;
  border-left: 2px solid var(--border);
  background: var(--bg-alt);
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  min-width: 0;
}
.typing-dots span {
  animation: typingDot 1.4s infinite both;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingDot {
  0%,
  100%,
  80% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

.top-header {
  height: 70px;
  min-height: 70px;
  max-height: 70px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--hover-bg);
  padding: 9px 14px;
  border-radius: 0;
  width: 100%;
  max-width: 520px;
  min-width: 60px;
  gap: 10px;
  border: 2px solid var(--border);
  transition:
    border-color 0.2s,
    background 0.2s;
  box-sizing: border-box;
}
.search-bar:focus-within {
  background: var(--bg);
  border-color: var(--ink);
}
.search-bar i {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar input {
  border: none;
  background: 0 0;
  outline: 0;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.profile-actions i {
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.profile-actions i:hover {
  color: var(--ink);
}
.profile-pic {
  width: 36px;
  height: 36px;
  background: var(--c-profile-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.profile-dropdown,
.settings-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px;
  z-index: 100;
  min-width: 200px;
}
.content-scroll {
  flex: 1;
  padding: 4px;
  overflow-y: scroll;
}
.section {
  margin-bottom: 40px;
}
.card-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 4px;
  padding: 4px;
}
.file-card-3d {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  aspect-ratio: 1/1;
  height: auto;
  overflow: hidden;
}
.file-card-3d > div[style] {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}
.file-card-3d .file-icon {
  font-size: 56px;
}
.file-card-3d .file-meta,
.file-card-3d .file-name {
  display: none;
}
.file-card-3d {
  transition: transform 0.1s ease;
}
.file-card-3d:active {
  transform: scale(0.96);
}
.file-card-blue {
  background: var(--c-blue-bg);
  border: 4px solid var(--c-blue-border);
}
.file-card-pink {
  background: var(--c-pink-bg);
  border: 4px solid var(--c-pink-border);
}
.file-card-pink .spark {
  display: none;
}
.file-card-green {
  background: var(--c-green-bg);
  border: 4px solid var(--c-green-border);
}
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.filter-btn {
  padding: 6px 14px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.1s;
}
.filter-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.filter-btn.active {
  background: var(--c-blue-bg);
  color: var(--ink);
}
.upload-widget {
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 24px 20px;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
}
.upload-widget h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.upload-section label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--ink);
}
.file-name-display {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--c-pink-bg);
  padding: 10px 12px;
  border-radius: 0;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: center;
  font-weight: 800;
  display: none;
}
.compact-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
button {
  font: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn1 {
  position: relative;
  padding: 15px 21px 16px;
  min-width: 150px;
  color: var(--ink);
  font-weight: 850;
  background: var(--c-blue-bg);
  border: 2px solid var(--c-blue-border);
  box-shadow:
    0 7px 0 var(--c-blue-shadow),
    0 11px 17px rgba(57, 184, 201, 0.22);
  transform: translateY(0);
  transition:
    transform 90ms ease,
    box-shadow 90ms ease,
    background 0.1s ease;
}
.btn1.full-width {
  width: 100%;
}
.btn1::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
}
.btn1:active {
  transform: translateY(6px);
  box-shadow:
    0 1px 0 var(--c-blue-shadow),
    0 4px 8px rgba(57, 184, 201, 0.15);
}
.btn1.btn-red {
  background: var(--c-red-bg);
  border-color: var(--c-red-border);
  color: var(--c-red-dark);
  box-shadow:
    0 7px 0 var(--c-red-shadow),
    0 11px 17px rgba(248, 113, 113, 0.22);
}
.btn1.btn-red:active {
  box-shadow:
    0 1px 0 var(--c-red-shadow),
    0 4px 8px rgba(248, 113, 113, 0.15);
}
.btn2 {
  position: relative;
  padding: 15px 22px;
  min-width: 158px;
  color: var(--ink);
  font-weight: 900;
  background: var(--c-pink-bg);
  border: 2px solid var(--c-pink-border);
  box-shadow:
    0 6px 0 var(--c-pink-shadow),
    0 0 0 3px var(--c-pink-ring);
  transform: perspective(500px) rotateX(0);
  transition:
    transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.1s ease;
}
.btn2.compact-btn {
  min-width: 100%;
}
.btn2 .spark {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--bg);
  top: 8px;
  right: 11px;
  box-shadow:
    -16px 7px 0 #b7f3ff,
    -5px 18px 0 #fbe76e;
}
.btn2:active {
  transform: perspective(500px) rotateX(12deg) translateY(5px);
  box-shadow:
    0 1px 0 var(--c-pink-shadow),
    0 0 0 3px var(--c-pink-ring);
}
.btn2.selected {
  background: var(--c-pink-sel-bg);
  border-color: var(--c-pink-sel-border);
  box-shadow:
    0 8px 0 var(--c-pink-sel-shadow),
    0 0 0 3px var(--c-pink-sel-ring);
  transform: perspective(500px) rotateX(0);
}
.btn2.selected:active {
  transform: perspective(500px) rotateX(12deg) translateY(5px);
  box-shadow:
    0 1px 0 var(--c-pink-sel-shadow),
    0 0 0 3px var(--c-pink-sel-ring);
}
.duration-btn.selected .unchecked-icon {
  display: none !important;
}
.duration-btn.selected .checked-icon {
  display: inline-block !important;
}
.duration-btn {
  justify-content: flex-start;
  text-align: left;
}
.btn3 {
  position: relative;
  padding: 16px 23px;
  min-width: 170px;
  color: var(--ink);
  font-weight: 900;
  background: var(--c-green-bg);
  border: 2px solid var(--c-green-border);
  box-shadow:
    7px 7px 0 var(--c-green-shadow),
    0 12px 18px rgba(114, 169, 52, 0.18);
  overflow: hidden;
  transition:
    transform 80ms ease,
    box-shadow 80ms ease;
}
.btn3.full-width {
  width: 100%;
}
.btn3::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 28%;
  height: 100%;
  background: var(--bg);
  transform: skewX(-20deg);
  opacity: 0.7;
  animation: shine 2.15s linear infinite;
}
.btn3:active {
  transform: translate(5px, 5px);
  box-shadow:
    2px 2px 0 var(--c-green-shadow),
    0 5px 9px rgba(114, 169, 52, 0.16);
}
@keyframes shine {
  0% {
    left: -35%;
  }
  100%,
  32% {
    left: 120%;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 105;
  opacity: 0;
  transition: opacity 0.3s;
}
.right-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: calc(24px + env(safe-area-inset-right));
  z-index: 100;
}
.floating-chat-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: calc(24px + env(safe-area-inset-left));
  right: auto;
  z-index: 100;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  box-shadow:
    6px 6px 0 var(--c-pink-shadow),
    0 0 0 3px var(--c-pink-ring) !important;
  transform: none !important;
  transition:
    opacity 0.3s ease,
    transform 0.1s ease !important;
}
.floating-chat-btn:active {
  transform: translate(4px, 4px) !important;
  box-shadow:
    2px 2px 0 var(--c-pink-shadow),
    0 0 0 3px var(--c-pink-ring) !important;
}
.floating-chat-btn i {
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}
.chat-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 10;
}
.chat-popup {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: calc(24px + env(safe-area-inset-left));
  right: auto;
  z-index: 100;
  width: 320px;
  height: 400px;
  min-width: 280px;
  min-height: min(250px, calc(var(--vv-height, 100dvh) - 110px));
  max-height: calc(var(--vv-height, 100dvh) - 110px);
  background: var(--bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: bottom left;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.15s ease-out,
    visibility 0.15s ease-out;
}
.chat-popup.cb-floating {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.chat-popup.cb-fullscreen {
  width: var(--vv-width, 100vw) !important;
  height: var(--vv-height, 100dvh) !important;
  max-width: none !important;
  max-height: none !important;
  top: var(--vv-top, 0) !important;
  left: var(--vv-left, 0) !important;
  bottom: auto !important;
  right: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 9999 !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none !important;
}
.chat-popup.cb-interacting {
  transition: none !important;
}
.chat-popup.cb-fullscreen .resize-handle {
  display: none !important;
}
.resize-handle {
  position: absolute;
  z-index: 10;
}
.rh-t {
  top: -10px;
  left: 10px;
  right: 10px;
  height: 20px;
  cursor: n-resize;
}
.rh-b {
  bottom: -10px;
  left: 10px;
  right: 10px;
  height: 20px;
  cursor: s-resize;
}
.rh-l {
  top: 10px;
  bottom: 10px;
  left: -10px;
  width: 20px;
  cursor: e-resize;
}
.rh-r {
  top: 10px;
  bottom: 10px;
  right: -10px;
  width: 20px;
  cursor: w-resize;
}
.rh-tl {
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  cursor: nw-resize;
  z-index: 11;
}
.rh-tr {
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  cursor: ne-resize;
  z-index: 11;
}
.rh-bl {
  bottom: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  cursor: sw-resize;
  z-index: 11;
}
.rh-br {
  bottom: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  cursor: se-resize;
  z-index: 11;
}
.chat-header {
  background: #1a0313;
  border-bottom: none;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  user-select: none;
}
.chat-header:active {
  cursor: grabbing;
}
.chat-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 0 4px;
  height: 16px;
  border: 1px solid var(--ink);
  box-shadow: none;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 0;
}
.partner-login-badge i {
  font-size: 9px;
}
.partner-login-badge.badge-top-avatar {
  background: #2d0a1a;
  color: #f9a8d4;
  border-color: var(--ink);
}
.partner-login-badge.badge-chatbox {
  background: #1a0313;
  color: #f9a8d4;
  border-color: var(--ink);
}
.partner-login-badge.badge-filedrive {
  background: #0a2010;
  color: #86efac;
  border-color: var(--ink);
}
.partner-login-badge.badge-source {
  background: #1c1500;
  color: #fcd34d;
  border-color: var(--ink);
}
.partner-login-badge.badge-drive-closed {
  background: #1c0000;
  color: #fca5a5;
  border-color: var(--ink);
}
.partner-login-badge.badge-drive-opened {
  background: #001c08;
  color: #86efac;
  border-color: var(--ink);
}
.partner-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 0 4px;
  height: 15px;
  border: 1px solid var(--ink);
  box-shadow: none;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 0;
}
.partner-mode-badge i {
  font-size: 9px;
}
.partner-mode-badge.badge-fullscreen {
  background: #ede9fe;
  color: #6d28d9;
  border-color: var(--ink);
}
.partner-mode-badge.badge-floating {
  background: #e0f2fe;
  color: #0369a1;
  border-color: var(--ink);
}
.chat-close,
.chat-fullscreen {
  border: 2px solid var(--ink);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0;
}
.chat-fullscreen {
  background: var(--hover-bg);
  color: var(--ink);
}
.chat-close {
  background: var(--c-red-bg);
  color: var(--c-red-dark);
}
.chat-close:active,
.chat-fullscreen:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.chat-body {
  padding: 8px;
  flex: 1;
  overflow-y: auto;
  background-color: var(--c-chat-bg);
  background-image:
    linear-gradient(var(--chat-bg-overlay), var(--chat-bg-overlay)),
    var(--chat-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.chat-load-more {
  align-self: center;
  margin: 4px auto 10px auto;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s ease;
  touch-action: manipulation;
}
.chat-load-more:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.chat-loading-placeholder {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  padding: 16px 22px;
  user-select: none;
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.chat-loading-placeholder i {
  font-size: 28px;
  color: var(--ink);
  animation: spinLoader 1s linear infinite;
}
.chat-loading-placeholder span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
@keyframes spinLoader {
  100% {
    transform: rotate(360deg);
  }
}
.chat-msg {
  background: var(--bg);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  max-width: 75%;
  position: relative;
  margin-top: 8px;
  width: fit-content;
  word-break: break-word;
  font-family: Outfit, sans-serif;
}
.emoji-only-msg {
  background: 0 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 16px !important;
  padding: 0 !important;
  max-width: 100% !important;
  font-family: Outfit, sans-serif !important;
}
.emoji-only-large-msg {
  padding: 8px 10px !important;
  width: max-content !important;
  max-width: 100% !important;
}
.emoji-row {
  display: flex;
  width: max-content;
  gap: 4px;
  margin-bottom: 4px;
}
.emoji-row:last-child {
  margin-bottom: 0;
}
.emoji-char {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 20px;
  font-family: Outfit, sans-serif;
}
.bot-msg {
  border-bottom-left-radius: 0;
  align-self: flex-start;
  background: #3d0a1e;
}
.user-msg {
  border-bottom-right-radius: 0;
  align-self: flex-end;
  background: #1a0a2e;
}
.chat-msg:first-child {
  margin-top: 0 !important;
}
.bot-msg + .bot-msg,
.user-msg + .user-msg {
  margin-top: 2px !important;
}
.chat-footer {
  border-top: none;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg);
  touch-action: manipulation;
}
.chat-footer textarea {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--ink);
  padding: 8px 12px;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  outline: 0;
  resize: none;
  overflow-y: auto;
  min-height: 40px;
  max-height: 120px;
  line-height: 20px;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--bg);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.chat-footer textarea:focus {
  background: var(--bg);
}
.chat-send {
  background: var(--c-blue-bg);
  border: 2px solid var(--ink);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out;
}
.chat-send:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
  transition: none;
}
[data-theme="dark"] .chat-send i {
  color: #fff;
}
@media (max-width: 1200px) {
  .right-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }
  .right-sidebar.open {
    transform: translateX(0);
  }
  .right-sidebar-toggle {
    display: flex;
  }
  .close-panel-btn {
    display: block !important;
  }
}
body.kb-open .floating-chat-btn,
body.kb-open .right-sidebar-toggle {
  display: none !important;
}
@media (max-width: 900px) {
  .file-card-3d .file-icon {
    font-size: 40px;
  }
}
@media (max-width: 768px) {

  .sidebar-overlay.open {
    display: block;
    opacity: 1;
  }
  .top-header {
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    padding: 0 16px;
    gap: 12px;
  }
  .header-left {
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .search-bar {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding: 8px 12px;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
  }
  .profile-actions {
    gap: 12px;
    flex-shrink: 0;
  }
  .profile-actions i {
    font-size: 22px;
  }
  .profile-pic {
    width: 34px;
    height: 34px;
  }
  .content-scroll {
    padding: 4px;
  }
  .list-item {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .list-item .file-size {
    display: none;
  }
  .chat-popup,
  .floating-chat-btn {
    left: calc(24px + env(safe-area-inset-left));
    right: auto;
  }
  .chat-popup {
    bottom: calc(96px + env(safe-area-inset-bottom));
    transform-origin: bottom left;
  }
}
@media (max-width: 480px) {
  .top-header {
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    padding: 0 12px;
    gap: 10px;
  }
  .header-left {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .search-bar {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    background: var(--hover-bg);
    padding: 7px 10px;
    min-width: 0;
    gap: 6px;
    box-sizing: border-box;
  }
  .search-bar input {
    display: block;
    font-size: 13px;
    width: 100%;
    min-width: 0;
  }
  .search-bar i {
    color: var(--text-muted);
    font-size: 17px;
    flex-shrink: 0;
  }
  .profile-actions {
    gap: 10px;
    margin-left: 0;
    flex-shrink: 0;
  }
  .profile-actions i {
    font-size: 20px;
  }
  .profile-pic {
    width: 30px;
    height: 30px;
  }
  .card-grid-3d {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
  }
}
dialog#previewModal {
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--bg);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 90vw;
  max-height: 90dvh;
  width: 1000px;
  overflow: hidden;
  margin: auto;
  outline: 0;
}
dialog#customAlertModal::backdrop,
dialog#loginModal::backdrop,
dialog#previewModal::backdrop,
dialog#serverOfflineModal::backdrop {
  background: rgba(17, 24, 39, 0.85);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg-alt);
}
.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.modal-close-btn {
  background: var(--c-red-bg);
  border: 2px solid var(--ink);
  color: var(--c-red-dark);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  box-shadow: 2px 2px 0 var(--ink);
}
.modal-close-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.modal-body {
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--c-lightbox-bg);
  min-height: 300px;
  max-height: calc(90vh - 140px);
  overflow: hidden;
}
.modal-body img,
.modal-body video {
  max-width: 100%;
  max-height: 100%;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  object-fit: contain;
}
video::-webkit-media-controls-timeline {
  display: none !important;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 2px solid var(--ink);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
}
dialog#avatarPreviewModal {
  padding: 0;
  border: none;
  background: 0 0;
  box-shadow: none;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: visible;
  margin: auto;
  outline: 0;
}
dialog#avatarPreviewModal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
dialog#avatarPreviewModal::backdrop {
  background: rgba(10, 14, 22, 0.93);
  backdrop-filter: blur(7px);
}
.avatar-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: avatarPopIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.avatar-img-area {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
.avatar-img-area img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
}
.avatar-img-area .avatar-fallback-big {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-profile-bg);
  font-size: clamp(60px, 20vw, 120px);
  color: #fff;
}
.avatar-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(10, 14, 22, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s;
  padding: 0;
  backdrop-filter: blur(4px);
  border-radius: 0;
}
.avatar-preview-close:hover {
  background: rgba(220, 38, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.65);
}
.avatar-preview-close:active {
  transform: scale(0.9);
}
.avatar-reaction-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  width: 100%;
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.reaction-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  width: clamp(42px, 13vw, 56px);
  height: clamp(42px, 13vw, 56px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.12s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  line-height: 1;
  padding: 0;
}
.reaction-btn .fb-emoji {
  width: clamp(26px, 8vw, 34px) !important;
  height: clamp(26px, 8vw, 34px) !important;
  vertical-align: middle !important;
  pointer-events: none;
}
.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.15);
}
.reaction-btn:active {
  transform: scale(0.86);
}
.reaction-particle {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  line-height: 1;
  will-change: transform, opacity;
  transform-origin: center center;
  animation: reactionFloat var(--dur, 2.2s) cubic-bezier(0.2, 0.8, 0.3, 1)
    forwards;
}
.reaction-particle .fb-emoji {
  display: block !important;
  width: var(--psize, 28px) !important;
  height: var(--psize, 28px) !important;
  pointer-events: none;
}
@keyframes reactionFloat {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rot0)) scale(1);
    opacity: 1;
  }
  65% {
    opacity: 0.9;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      rotate(var(--rot1)) scale(var(--sc));
    opacity: 0;
  }
}
@keyframes avatarPopIn {
  from {
    transform: scale(0.82);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px;
  min-width: 200px;
  display: none;
  z-index: 200;
  flex-direction: column;
}
.profile-dropdown.open {
  display: flex;
  animation: popIn 0.15s ease-out;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.login-warning {
  text-align: center;
  padding: 60px 24px;
  border: 2px solid var(--ink);
  background: var(--c-pink-bg);
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 600px;
  margin: 40px auto;
  border-radius: 0;
}
.login-warning-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.login-warning h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
  margin-top: 0;
}
.login-warning p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
  margin-top: 0;
}
.file-countdown-wrapper {
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 20px 16px 18px;
  margin: 0 auto 28px;
  max-width: 460px;
  border-radius: 8px;
}
.countdown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: var(--danger);
  background: var(--c-red-bg);
  border: 1.5px solid var(--c-red-border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
  font-family: "Noto Sans Bengali", sans-serif;
}
.countdown-icon-pulse {
  font-size: 16px;
  animation: countdownPulse 2.5s infinite ease-in-out;
}
@keyframes countdownPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.75;
  }
}
.countdown-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.countdown-unit-box {
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 12px 4px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.countdown-unit-box:hover {
  transform: translateY(-2px);
}
.countdown-val {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ink);
  font-family: Outfit, "Noto Sans Bengali", monospace, sans-serif;
  font-feature-settings: "tnum";
}
.countdown-lbl {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: "Noto Sans Bengali", sans-serif;
}
#revealFilesBtn.disabled,
#revealFilesBtn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow:
    0 2px 0 var(--c-pink-shadow),
    0 0 0 2px var(--c-pink-ring) !important;
  transform: none !important;
  filter: grayscale(0.5) !important;
}
#hideFilesBtn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
@media (max-width: 480px) {
  .file-countdown-wrapper {
    padding: 16px 12px 14px;
    margin: 0 auto 20px;
  }
  .countdown-val {
    font-size: 24px;
  }
  .countdown-lbl {
    font-size: 11px;
  }
  .countdown-timer-grid {
    gap: 6px;
  }
  .countdown-unit-box {
    padding: 8px 2px 6px;
  }
  .countdown-badge {
    font-size: 11px;
    padding: 4px 12px;
  }
}
@media (max-width: 600px) {
  .login-warning {
    padding: 32px 16px;
    margin: 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .login-warning-icon {
    font-size: 42px;
    margin-bottom: 16px;
  }
  .login-warning h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .login-warning p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  dialog#previewModal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
  }
  dialog#previewModal[open] {
    display: flex !important;
    flex-direction: column;
  }
  #previewModal .modal-header {
    padding: 12px 16px;
  }
  #previewModal .modal-footer {
    padding: 12px 16px;
  }
  #previewModal .modal-body {
    flex: 1;
    padding: 8px;
    min-height: auto;
    max-height: none;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #previewModal .modal-body img,
  #previewModal .modal-body video {
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    object-fit: contain;
  }
}
dialog#loginModal {
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  width: min(92vw, 360px);
  max-height: 92dvh;
  overflow: hidden;
  margin: auto;
  outline: 0;
}
#loginModal .modal-header {
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#loginModal .modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
#loginModal .modal-body {
  background: var(--c-pink-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  overflow-y: auto;
  max-height: calc(92dvh - 60px);
}
.login-modal-subtitle {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  line-height: 1.4;
  font-family: "Noto Sans Bengali", sans-serif;
}
#pinInput {
  -webkit-text-security: square;
  font-size: 28px;
  letter-spacing: 10px;
  text-align: center;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  width: min(100%, 200px);
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  pointer-events: none;
  box-sizing: border-box;
  font-family: monospace, sans-serif;
}
#pinError {
  color: var(--c-red-shadow);
  font-weight: 800;
  font-size: 13px;
  display: none;
  font-family: "Noto Sans Bengali", sans-serif;
  text-align: center;
}
.custom-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
}
.keypad-btn {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  padding: 13px 0;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 80ms,
    box-shadow 80ms,
    background 80ms;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.keypad-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
  background: var(--hover-bg);
}
.keypad-backspace {
  background: var(--c-red-bg);
  color: var(--c-red-dark);
}
.keypad-backspace:active {
  background: var(--c-red-border);
}
@media (max-width: 400px) {
  dialog#loginModal {
    width: 94vw;
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  #loginModal .modal-header {
    padding: 10px 14px;
  }
  #loginModal .modal-header h2 {
    font-size: 15px;
    gap: 8px;
  }
  #loginModal .modal-close-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  #loginModal .modal-body {
    padding: 14px 12px;
    gap: 10px;
  }
  .login-modal-subtitle {
    font-size: 12.5px;
  }
  #pinInput {
    font-size: 22px;
    letter-spacing: 7px;
    padding: 8px 10px;
    width: 170px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .custom-keypad {
    gap: 8px;
    max-width: 220px;
  }
  .keypad-btn {
    font-size: 19px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--ink);
  }
}
@media (max-width: 320px) {
  dialog#loginModal {
    width: 96vw;
    box-shadow: 3px 3px 0 var(--ink);
  }
  #loginModal .modal-body {
    padding: 12px 8px;
    gap: 8px;
  }
  #pinInput {
    width: 150px;
    font-size: 20px;
    letter-spacing: 5px;
    padding: 6px 8px;
  }
  .custom-keypad {
    gap: 6px;
    max-width: 200px;
  }
  .keypad-btn {
    font-size: 17px;
    padding: 8px 0;
  }
}
@media (max-height: 620px) {
  dialog#loginModal {
    max-height: 96dvh;
  }
  #loginModal .modal-header {
    padding: 8px 14px;
  }
  #loginModal .modal-body {
    padding: 10px 14px;
    gap: 8px;
  }
  .login-modal-subtitle {
    display: none;
  }
  #pinInput {
    font-size: 20px;
    letter-spacing: 6px;
    padding: 5px 8px;
    width: 150px;
  }
  .custom-keypad {
    gap: 6px;
    max-width: 210px;
  }
  .keypad-btn {
    font-size: 17px;
    padding: 7px 0;
  }
}
.card-grid-3d.selecting .card-thumb img {
  opacity: 0.8;
  transform: scale(0.95);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.sel-check {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  background: var(--bg);
  z-index: 20;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
}
.card-grid-3d.selecting .file-card-3d .sel-check {
  display: flex;
}
.file-card-3d.selected .sel-check {
  background: var(--c-blue-bg);
  color: var(--ink);
}
.file-card-3d.selected .sel-check::after {
  content: "âœ“";
  font-weight: 900;
  font-size: 18px;
}
.file-card-3d.selected .card-thumb {
  border: 4px solid var(--c-blue-bg);
}
.action-bar {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.action-bar.show {
  bottom: 30px;
}
.action-bar .sel-count {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.action-bar .btn-del {
  background: #e11d48;
  color: #fff;
  border: 2px solid var(--ink);
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.action-bar .btn-del:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.action-bar .btn-cancel {
  background: 0 0;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
dialog#serverOfflineModal {
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  width: min(92vw, 360px);
  max-height: 92dvh;
  overflow: hidden;
  margin: auto;
  outline: 0;
}
#serverOfflineModal .modal-header {
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#serverOfflineModal .modal-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ef4444;
}
#serverOfflineModal .modal-body {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  overflow-y: auto;
  text-align: center;
}
.offline-icon {
  font-size: 54px;
  color: #ef4444;
  margin-bottom: 6px;
}
.offline-title {
  font-size: 18px;
  color: var(--ink);
  margin: 0;
  font-weight: 800;
}
.offline-subtitle {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 400px) {
  dialog#serverOfflineModal {
    width: 94vw;
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  #serverOfflineModal .modal-header {
    padding: 10px 14px;
  }
  #serverOfflineModal .modal-header h2 {
    font-size: 15px;
    gap: 8px;
  }
  #serverOfflineModal .modal-body {
    padding: 20px 16px;
    gap: 10px;
  }
  .offline-icon {
    font-size: 42px;
  }
  .offline-title {
    font-size: 16px;
  }
  .offline-subtitle {
    font-size: 13px;
  }
}
.cndy-demo {
  width: min(92vw, 620px);
  text-align: center;
  perspective: 900px;
  margin-top: 30px;
  margin-bottom: 20px;
}
.cndy-bar-wrap {
  position: relative;
  width: 100%;
  height: 76px;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
}
.cndy-track {
  position: absolute;
  inset: 14px 0 0;
  height: 52px;
  border-radius: 30px;
  background: #f5b9d3;
  box-shadow:
    inset 0 7px 9px rgba(117, 39, 84, 0.16),
    inset 0 -5px 0 rgba(255, 255, 255, 0.3),
    0 10px 0 #d98aac,
    0 16px 22px rgba(117, 39, 84, 0.14);
}
.cndy-fill {
  position: absolute;
  left: 8px;
  top: 22px;
  width: 0%;
  height: 36px;
  border-radius: 22px;
  transform: translateZ(18px);
  background: #ff5b9f;
  box-shadow:
    inset 0 7px 0 rgba(255, 255, 255, 0.35),
    inset 0 -7px 0 rgba(190, 40, 105, 0.18),
    0 5px 0 #d83d7c,
    0 9px 12px rgba(190, 48, 111, 0.22);
  transition: width 0.08s linear;
}
.cndy-fill:before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 6px;
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
}
.cndy-fill:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}
.cndy-candy {
  position: absolute;
  z-index: 5;
  left: 0;
  top: -7px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  transform: translateX(0) translateZ(45px) rotate(-8deg);
  background: #ff70ad;
  box-shadow:
    inset 7px 7px 0 rgba(255, 255, 255, 0.42),
    inset -7px -9px 0 rgba(130, 30, 78, 0.15),
    0 7px 0 #d83d7c,
    0 13px 18px rgba(117, 39, 84, 0.2);
  transition: left 0.08s linear;
}
.cndy-candy:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 9px;
  left: 11px;
  top: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-25deg);
}
.cndy-candy:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.cndy-face {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.cndy-eye {
  position: absolute;
  top: 22px;
  width: 7px;
  height: 11px;
  border-radius: 50%;
  background: #602346;
}
.cndy-eye.l {
  left: 17px;
}
.cndy-eye.r {
  right: 17px;
}
.cndy-mouth {
  position: absolute;
  width: 17px;
  height: 9px;
  left: 20px;
  top: 33px;
  border-bottom: 3px solid #602346;
  border-radius: 0 0 50% 50%;
}
.cndy-cheek {
  position: absolute;
  width: 10px;
  height: 6px;
  top: 34px;
  border-radius: 50%;
  background: #ff9ac1;
}
.cndy-cheek.l {
  left: 7px;
}
.cndy-cheek.r {
  right: 7px;
}
.cndy-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cndy-bubble {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: float 1.2s ease-out infinite;
}
.cndy-bubble.b1 {
  left: 25%;
  top: 0;
}
.cndy-bubble.b2 {
  left: 52%;
  top: 8px;
  animation-delay: 0.35s;
}
.cndy-bubble.b3 {
  left: 73%;
  top: 0;
  animation-delay: 0.7s;
}
.cndy-info {
  margin-top: 25px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.cndy-percent {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
}
.cndy-status {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.9;
}
@keyframes float {
  0% {
    transform: translateY(10px) scale(0.5);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-30px) scale(1.15);
    opacity: 0;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: translateZ(45px) rotate(-8deg) scale(1);
  }
  50% {
    transform: translateZ(55px) rotate(5deg) scale(1.06);
  }
}
.cndy-candy.wiggle {
  animation: wiggle 0.7s ease-in-out infinite;
}
.fb-emoji {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.35em;
  display: inline-block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.emoji-only-msg .fb-emoji {
  width: 28px;
  height: 28px;
  vertical-align: -6px;
}
.emoji-char .fb-emoji {
  width: 22px;
  height: 22px;
  display: block;
  margin: auto;
}
.emoji-fallback {
  font-family: Outfit, sans-serif;
}
.cndy-demo {
  width: min(92vw, 620px);
  text-align: center;
  perspective: 900px;
  margin-top: 30px;
  margin-bottom: 20px;
}
.cndy-bar-wrap {
  position: relative;
  width: 100%;
  height: 76px;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
}
.cndy-track {
  position: absolute;
  inset: 14px 0 0;
  height: 52px;
  border-radius: 30px;
  background: #f5b9d3;
  box-shadow:
    inset 0 7px 9px rgba(117, 39, 84, 0.16),
    inset 0 -5px 0 rgba(255, 255, 255, 0.3),
    0 10px 0 #d98aac,
    0 16px 22px rgba(117, 39, 84, 0.14);
}
.cndy-fill {
  position: absolute;
  left: 8px;
  top: 22px;
  width: 0%;
  height: 36px;
  border-radius: 22px;
  transform: translateZ(18px);
  background: #ff5b9f;
  box-shadow:
    inset 0 7px 0 rgba(255, 255, 255, 0.35),
    inset 0 -7px 0 rgba(190, 40, 105, 0.18),
    0 5px 0 #d83d7c,
    0 9px 12px rgba(190, 48, 111, 0.22);
  transition: width 0.08s linear;
}
.cndy-fill:before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 6px;
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
}
.cndy-fill:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}
.cndy-candy {
  position: absolute;
  z-index: 5;
  left: 0;
  top: -7px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  transform: translateX(0) translateZ(45px) rotate(-8deg);
  background: #ff70ad;
  box-shadow:
    inset 7px 7px 0 rgba(255, 255, 255, 0.42),
    inset -7px -9px 0 rgba(130, 30, 78, 0.15),
    0 7px 0 #d83d7c,
    0 13px 18px rgba(117, 39, 84, 0.2);
  transition: left 0.08s linear;
}
.cndy-candy:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 9px;
  left: 11px;
  top: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(-25deg);
}
.cndy-candy:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.cndy-face {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.cndy-eye {
  position: absolute;
  top: 22px;
  width: 7px;
  height: 11px;
  border-radius: 50%;
  background: #602346;
}
.cndy-eye.l {
  left: 17px;
}
.cndy-eye.r {
  right: 17px;
}
.cndy-mouth {
  position: absolute;
  width: 17px;
  height: 9px;
  left: 20px;
  top: 33px;
  border-bottom: 3px solid #602346;
  border-radius: 0 0 50% 50%;
}
.cndy-cheek {
  position: absolute;
  width: 10px;
  height: 6px;
  top: 34px;
  border-radius: 50%;
  background: #ff9ac1;
}
.cndy-cheek.l {
  left: 7px;
}
.cndy-cheek.r {
  right: 7px;
}
.cndy-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cndy-bubble {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: float 1.2s ease-out infinite;
}
.cndy-bubble.b1 {
  left: 25%;
  top: 0;
}
.cndy-bubble.b2 {
  left: 52%;
  top: 8px;
  animation-delay: 0.35s;
}
.cndy-bubble.b3 {
  left: 73%;
  top: 0;
  animation-delay: 0.7s;
}
.cndy-info {
  margin-top: 25px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.cndy-percent {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
}
.cndy-status {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.9;
}
@keyframes float {
  0% {
    transform: translateY(10px) scale(0.5);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-30px) scale(1.15);
    opacity: 0;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: translateZ(45px) rotate(-8deg) scale(1);
  }
  50% {
    transform: translateZ(55px) rotate(5deg) scale(1.06);
  }
}
.cndy-candy.wiggle {
  animation: wiggle 0.7s ease-in-out infinite;
}
@media (max-width: 600px) {
  .welcome-overlay {
    justify-content: flex-start !important;
    padding-top: 15vh !important;
  }
  .cndy-demo {
    transform: scale(0.85) !important;
    margin-top: auto !important;
    margin-bottom: 20px !important;
  }
}
.upload-widget .btn1,
.upload-widget .btn2,
.upload-widget .btn3,
.upload-widget .cat-sel-btn {
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  background: #f8fafc !important;
  color: #334155 !important;
  border-radius: 8px !important;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease !important;
  transform: none !important;
}
.upload-widget .btn1:active,
.upload-widget .btn2:active,
.upload-widget .btn3:active,
.upload-widget .cat-sel-btn:active,
.upload-widget .is-pressed {
  transform: scale(0.95) !important;
  background: #e2e8f0 !important;
}
.upload-widget .btn1.btn-red {
  background: #fff1f2 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}
.upload-widget .btn3 {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #bbf7d0 !important;
}
.upload-widget .cat-sel-btn.cat-sel-active {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
  color: #4338ca !important;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner-icon {
  animation: spin 1s linear infinite;
  display: inline-block;
  font-size: 16px;
}
#mainFileSection {
  background-image: url("extracted_img_11.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
  border-radius: 12px;
}
#mainFileSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  border-radius: 12px;
  z-index: 0;
}
#mainFileSection > * {
  position: relative;
  z-index: 1;
}
.file-reveal-box-simple {
  text-align: center;
  padding: 60px 24px;
  margin: 40px auto;
  max-width: 600px;
  background: 0 0;
  border: none;
  box-shadow: none;
  border-radius: 12px;
}
.simple-btn,
.simple-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition:
    transform 0.1s ease,
    background 0.1s ease;
  box-shadow: none !important;
  transform: scale(1) !important;
}
.simple-btn:active,
.simple-cat-btn:active {
  transform: scale(0.96) !important;
  background: rgba(200, 200, 200, 0.5);
}
.simple-btn.full-width {
  width: 100%;
}
.simple-btn-primary {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}
.simple-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}
.simple-cat-btn.cat-sel-active {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}
.simple-btn.selected {
  background: rgba(236, 72, 153, 0.1) !important;
  color: #be185d !important;
  border-color: rgba(236, 72, 153, 0.3) !important;
}
@keyframes flyBirdNew {
  0% {
    top: 10%;
    left: -10%;
    transform: scaleX(-1) rotate(15deg);
  }
  15% {
    top: 40%;
    left: 30%;
    transform: scaleX(-1) rotate(0);
  }
  30% {
    top: 20%;
    left: 70%;
    transform: scaleX(-1) rotate(-10deg);
  }
  45% {
    top: 60%;
    left: 110%;
    transform: scaleX(-1) rotate(15deg);
  }
  46% {
    top: 60%;
    left: 110%;
    transform: scaleX(1) rotate(-15deg);
  }
  60% {
    top: 80%;
    left: 70%;
    transform: scaleX(1) rotate(0);
  }
  75% {
    top: 30%;
    left: 30%;
    transform: scaleX(1) rotate(10deg);
  }
  90% {
    top: 70%;
    left: -10%;
    transform: scaleX(1) rotate(-15deg);
  }
  100% {
    top: 10%;
    left: -10%;
    transform: scaleX(-1) rotate(15deg);
  }
}
.timer-picker-sheet {
  width: min(460px, 98vw);
  background: var(--bg-alt);
  border-radius: 20px 20px 0 0;
  border: 2px solid var(--border);
  border-bottom: none;
  padding: 0 0 max(env(safe-area-inset-bottom, 0px), 12px);
  animation: slideUpSheet 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
@keyframes slideUpSheet {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.timer-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.timer-picker-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.timer-picker-close-btn {
  background: var(--hover-bg);
  border: 2px solid var(--border);
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.15s;
}
.timer-picker-close-btn:hover {
  background: var(--c-red-bg);
  border-color: var(--c-red-border);
}
.timer-picker-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0 2px;
  letter-spacing: 0.3px;
}
.timer-picker-body {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px 8px 10px;
  gap: 0;
}
.picker-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.picker-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.picker-viewport {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
}
.picker-strip {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  padding: calc(110px - 22px) 0;
}
.picker-strip::-webkit-scrollbar {
  display: none;
}
.picker-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  scroll-snap-align: center;
  transition:
    color 0.12s,
    font-size 0.12s;
  cursor: pointer;
  user-select: none;
}
.picker-item:hover {
  color: var(--ink);
}
.picker-item.picker-selected {
  color: var(--ink);
  font-size: 30px;
}
.picker-selector-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  top: calc(110px - 22px);
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 10px;
  pointer-events: none;
  background: rgba(255, 20, 147, 0.09);
  box-shadow: inset 0 0 14px rgba(255, 20, 147, 0.1);
}
.picker-fade-bot,
.picker-fade-top {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.picker-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-alt) 10%, transparent 100%);
}
.picker-fade-bot {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-alt) 10%, transparent 100%);
}
.picker-separator {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-muted);
  padding: 0 2px;
  align-self: center;
  margin-top: 18px;
  flex-shrink: 0;
}
.timer-picker-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-sel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Bengali", Outfit, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.cat-sel-btn:hover {
  background: var(--hover-bg);
  border-color: var(--c-pink-border);
}
.cat-sel-btn.cat-sel-active {
  background: var(--c-pink-bg);
  border-color: var(--c-pink-border);
  color: var(--c-pink-ring);
  box-shadow: 0 0 0 2px var(--c-pink-shadow);
}
.file-card-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  pointer-events: none;
}
.filter-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}
.partner-micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 0;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--hover-bg, #333);
  color: var(--text-muted, #ccc);
  border: none;
  letter-spacing: 0.5px;
}
.partner-micro-badge.active-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.partner-micro-badge.active-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
#loginModal.login-console-modal {
  --bg: #2b1e27;
  --card: #37262f;
  --card-ledge: #1e141b;
  --text: #fff;
  --muted: #d9b8c8;
  --muted-2: #a98396;
  --pink: #ff5c9b;
  --pink-hi: #ff86b6;
  --pink-lip: #c92f6f;
  --pink-ink: #9c1f55;
  --pale: #f7c3da;
  --pale-hi: #fcdceb;
  --pale-lip: #dc8fb4;
  --pale-ink: #a8336a;
  --track: #f4b6d2;
  --track-lip: #df88b0;
  --face: #a02356;
  --violet-light: #c9bdff;
  --font:
    "Baloo Da 2", "Baloo 2", "Noto Sans Bengali", "Hind Siliguri", "Nunito",
    "Trebuchet MS", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --key-h: 60px;
}
:where(#loginModal.login-console-modal *) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
#loginModal.login-console-modal {
  height: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
#loginModal.login-console-modal[open] {
  min-height: 100%;
  min-height: 100dvh;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 14px
    calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.4;
}
#loginModal.login-console-modal :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.star {
  position: absolute;
  color: rgba(255, 160, 200, 0.4);
  font-size: 18px;
  animation: drift 7s ease-in-out infinite;
}
.star-a {
  top: 15%;
  left: 7%;
}
.star-b {
  top: 26%;
  right: 8%;
  animation-delay: 1.7s;
}
.star-c {
  bottom: 17%;
  right: 10%;
  animation-delay: 3s;
}
.star-d {
  bottom: 10%;
  left: 12%;
  animation-delay: 4.1s;
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-10px) rotate(12deg);
    opacity: 0.65;
  }
}
.console {
  position: relative;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 24px 20px;
  border-radius: 36px;
  background: var(--card);
  box-shadow:
    0 8px 0 var(--card-ledge),
    0 28px 50px rgba(0, 0, 0, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.07);
  isolation: isolate;
}
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}
.brand .sajeda {
  color: var(--pink-hi);
}
.brand .sayem {
  color: var(--violet-light);
}
.brand .x {
  color: #fff1f6;
  font-size: 22px;
}
.tag {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.divider {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.divider-line {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.divider-heart {
  color: var(--pink-hi);
  font-size: 15px;
  line-height: 1;
}
.lock-wrap {
  margin-top: 20px;
  margin-bottom: 10px;
}
.lock {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(var(--pink-hi), var(--pink));
  box-shadow:
    0 7px 0 var(--pink-lip),
    0 14px 16px rgba(0, 0, 0, 0.25),
    inset 0 3px 0 rgba(255, 255, 255, 0.45);
  transition:
    transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.lock.open {
  background: linear-gradient(var(--pale-hi), var(--pale));
  box-shadow:
    0 7px 0 var(--pale-lip),
    0 14px 16px rgba(0, 0, 0, 0.25),
    inset 0 3px 0 rgba(255, 255, 255, 0.7);
  transform: rotate(-6deg) scale(1.06);
}
.lock svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 var(--pink-ink));
}
.lock.open svg {
  stroke: var(--pale-ink);
  filter: none;
}
.title {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
}
.subtitle {
  margin-top: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.pin-bar {
  --p: 0;
  position: relative;
  width: calc(100% - 28px);
  height: 40px;
  margin: 34px 14px 24px;
  border-radius: 999px;
  background: linear-gradient(var(--pale-hi), var(--track));
  box-shadow:
    0 7px 0 var(--track-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.55);
}
.pin-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(24px + (100% - 24px) * var(--p) / 100);
  border-radius: 999px;
  background: linear-gradient(var(--pink-hi), var(--pink));
  box-shadow:
    0 7px 0 var(--pink-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
  transition: width 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.pin-fill::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 30px;
  top: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
}
.mascot {
  position: absolute;
  right: -14px;
  top: -14px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(var(--pink-hi), var(--pink));
  box-shadow:
    0 5px 0 var(--pink-lip),
    0 10px 14px rgba(0, 0, 0, 0.25),
    inset 0 3px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}
.mascot i {
  position: absolute;
  top: 20px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: var(--face);
  animation: blink 4.5s infinite;
}
.mascot i:first-child {
  left: 16px;
}
.mascot i:nth-child(2) {
  right: 16px;
}
.mascot b {
  position: absolute;
  left: 50%;
  top: 31px;
  width: 14px;
  height: 7px;
  margin-left: -7px;
  border-bottom: 3px solid var(--face);
  border-radius: 0 0 14px 14px;
}
.mascot u {
  position: absolute;
  top: 30px;
  width: 9px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.mascot u:first-of-type {
  left: 7px;
}
.mascot u:nth-of-type(2) {
  right: 7px;
}
.mascot.blink i {
  animation: blinkNow 0.22s ease;
}
.mascot.sad {
  animation: wobble 0.35s ease;
}
.mascot.sad b {
  top: 35px;
  border-bottom: 0;
  border-top: 3px solid var(--face);
  border-radius: 14px 14px 0 0;
}
@keyframes blink {
  0%,
  100%,
  94% {
    transform: scaleY(1);
  }
  97% {
    transform: scaleY(0.1);
  }
}
@keyframes blinkNow {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.08);
  }
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(7deg);
  }
}
.keypad {
  width: 100%;
  max-width: 330px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.key {
  appearance: none;
  border: 0;
  height: var(--key-h);
  border-radius: 22px;
  cursor: pointer;
  color: var(--pale-ink);
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(var(--pale-hi), var(--pale));
  box-shadow:
    0 6px 0 var(--pale-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.key:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 var(--pale-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.7);
}
.key.enter {
  color: #fff;
  text-shadow: 0 2px 0 var(--pink-ink);
  background: linear-gradient(var(--pink-hi), var(--pink));
  box-shadow:
    0 6px 0 var(--pink-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
}
.key.enter:active {
  box-shadow:
    0 2px 0 var(--pink-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
}
.key-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.key svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.key.enter svg {
  filter: drop-shadow(0 2px 0 var(--pink-ink));
}
.status {
  margin-top: auto;
  min-height: 30px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pale-lip);
}
.status.error {
  color: var(--pink-hi);
  animation: shake 0.3s ease;
}
.status.error .status-dot {
  background: var(--pink);
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.success {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  background: var(--card);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  z-index: 50;
}
.success.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.success-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  margin-bottom: 24px;
  background: linear-gradient(var(--pink-hi), var(--pink));
  box-shadow:
    0 8px 0 var(--pink-lip),
    0 18px 24px rgba(0, 0, 0, 0.3),
    inset 0 3px 0 rgba(255, 255, 255, 0.45);
}
.success.show .success-icon {
  animation: pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.success-icon svg {
  width: 42px;
  height: 42px;
  fill: #fff;
  filter: drop-shadow(0 3px 0 var(--pink-ink));
}
.success-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.success-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
}
.success-button {
  margin-top: 26px;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  color: var(--pale-ink);
  background: linear-gradient(var(--pale-hi), var(--pale));
  box-shadow:
    0 6px 0 var(--pale-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.success-button:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 var(--pale-lip),
    inset 0 3px 0 rgba(255, 255, 255, 0.7);
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-12deg);
  }
  70% {
    transform: scale(1.08) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.particle {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  font-size: 16px;
  color: var(--pink-hi);
  animation: particleUp 2.4s ease-out forwards;
}
@keyframes particleUp {
  from {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.5) rotate(0);
  }
  12% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate3d(var(--x), -180px, 0) scale(1.15) rotate(22deg);
  }
}
@media (max-height: 760px) {
  #loginModal.login-console-modal {
    --key-h: 52px;
  }
  .console {
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .lock-wrap {
    margin-top: 14px;
    margin-bottom: 6px;
  }
  .lock {
    width: 62px;
    height: 62px;
    border-radius: 21px;
  }
  .pin-bar {
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .keypad {
    gap: 12px;
  }
  .key {
    font-size: 23px;
  }
}
@media (max-width: 360px) {
  .console {
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 30px;
  }
  .brand {
    font-size: 26px;
  }
  .keypad {
    gap: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    animation: none !important;
    transition: none !important;
  }
}
#loginModal.login-console-modal {
  border: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* ===== VIBRATION FEATURE ===== */

/* Floating trigger button — positioned right of chat button with safe spacing */
.floating-vib-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: calc(96px + env(safe-area-inset-left));
  right: auto;
  z-index: 100;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  background: var(--bg-alt) !important;
  border: 2px solid var(--border) !important;
  box-shadow: 3px 3px 0 var(--c-pink-shadow), 0 0 0 2px var(--c-pink-ring) !important;
  transform: none !important;
  transition: opacity 0.3s ease, transform 0.1s ease !important;
}
.floating-vib-btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 var(--c-pink-shadow), 0 0 0 2px var(--c-pink-ring) !important;
}
.floating-vib-btn i {
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}
.floating-vib-btn.vib-active {
  background: var(--c-pink-bg) !important;
  box-shadow: 3px 3px 0 var(--c-pink-shadow), 0 0 0 3px var(--c-pink-ring) !important;
  animation: vib-btn-breathe 1.5s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes vib-btn-breathe {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Shajeda -> Sayem only: hard border blink via ::after pseudo overlay */
.floating-vib-btn.shajeda-vib-active {
  overflow: visible !important;
}
.floating-vib-btn.shajeda-vib-active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid #7c3aed;
  pointer-events: none;
  z-index: 9999;
  animation: vib-shajeda-border-blink 0.7s steps(1) infinite;
}
@keyframes vib-shajeda-border-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* Hide vib btn when keyboard is open */
body.kb-open .floating-vib-btn {
  display: none !important;
}

/* Mobile: safe spacing right of chat button (chat ends at 80px, gap = 24px -> 104px) */
@media (max-width: 768px) {
  .floating-vib-btn {
    left: calc(104px + env(safe-area-inset-left));
  }
}

/* ---- Vibe Flash Overlay ---- */
.vibe-flash-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 99999;
  contain: strict;
  transform: translateZ(0);
  will-change: opacity;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(236, 72, 153, 0.45),
    rgba(190, 24, 93, 0.2) 55%,
    transparent 80%
  );
}
.vibe-flash-overlay.vibe-go {
  animation: vibe-flash-anim 0.45s ease-out forwards;
}
@keyframes vibe-flash-anim {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ---- Website shake when vibe received ---- */
@keyframes vib-site-shake {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3px, 1px, 0); }
  40%  { transform: translate3d(3px, -1px, 0); }
  60%  { transform: translate3d(-2px, 1px, 0); }
  80%  { transform: translate3d(2px, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
body.vib-shaking {
  animation: vib-site-shake 0.2s linear infinite;
  will-change: transform;
}

/* ---- Floating Vibration Menu ---- */
.vib-menu {
  position: fixed;
  z-index: 99998;
  width: 280px;
  bottom: calc(94px + env(safe-area-inset-bottom));
  left: calc(24px + env(safe-area-inset-left));
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 12px 0;
  contain: layout style;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: left, top;
}

/* Drag Handle / Title Bar */
.vib-menu-drag-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  cursor: grab;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.vib-menu-drag-handle:active { cursor: grabbing; }
.vib-menu-title {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.vib-menu-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.vib-menu-close-btn:hover { opacity: 1; }

/* Logged-out state inside vibration modal */
.vib-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 12px;
}
.vib-login-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* Logged-in content wrapper */
.vib-active-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hold to Buzz button */
.vib-hold-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
  height: 80px;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.vib-hold-btn.vib-hold-active {
  background: linear-gradient(135deg, var(--c-pink-bg) 0%, var(--c-blue-dark) 100%);
  transform: scale(0.97);
}
.vib-hold-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.vib-hold-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Pattern grid */
.vib-pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px;
}
.vib-pat-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 10px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
}
.vib-pat-btn:active {
  background: var(--hover-bg);
  transform: scale(0.96);
}
.vib-pat-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.vib-pat-desc {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-pink-shadow);
  margin-top: 4px;
}

/* Sent flash on pattern buttons */
.vib-pat-btn.vib-sent {
  background: var(--hover-bg);
  border-color: var(--c-blue-border);
}

