@import "https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&family=Inter:wght@400;600;800&display=swap";

/* src/index.css */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseRotate {
  0% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.05) rotate(5deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
@keyframes glowingEffect {
  0% {
    box-shadow: 0 0 5px #f59e0b80, 0 0 10px #f59e0b4d;
  }
  50% {
    box-shadow: 0 0 15px #f59e0bcc, 0 0 30px #f59e0b80;
  }
  to {
    box-shadow: 0 0 5px #f59e0b80, 0 0 10px #f59e0b4d;
  }
}
@keyframes bounceIcon {
  0%, to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}
@keyframes floatMonitor {
  0% {
    transform: translateY(0) rotateX(10deg) rotateY(-8deg);
  }
  50% {
    transform: translateY(-12px) rotateX(15deg) rotateY(8deg);
    box-shadow: 0 25px 45px #10b98166, inset 0 0 12px #000c;
  }
  to {
    transform: translateY(0) rotateX(10deg) rotateY(-8deg);
  }
}
@keyframes scanline {
  0% {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(110px);
  }
}
@keyframes pulseLogoScreen {
  0% {
    filter: drop-shadow(0 0 5px #10b98166);
    opacity: 0.95;
    transform: scale(1) translateZ(0);
  }
  to {
    filter: drop-shadow(0 0 20px #10b981e6);
    opacity: 1;
    transform: scale(1.05) translateZ(8px);
  }
}
@keyframes floatBadge {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px #0000002e;
  }
  to {
    transform: translateY(0);
  }
}
@keyframes shineBadge {
  0% {
    left: -150%;
  }
  20% {
    left: 200%;
  }
  to {
    left: 200%;
  }
}
@keyframes wavyIconColor {
  0% {
    color: #007aff;
    filter: drop-shadow(0 0 4px #007aff99);
  }
  33% {
    color: #00e5ff;
    filter: drop-shadow(0 0 6px #00e5ffb3);
  }
  66% {
    color: #b500ff;
    filter: drop-shadow(0 0 8px #b500ffcc);
  }
  to {
    color: #007aff;
    filter: drop-shadow(0 0 4px #007aff99);
  }
}
@keyframes floatIcon3D {
  0% {
    transform: translateZ(0) translateY(0);
    box-shadow: 0 4px 6px #00000026, inset 0 2px 4px #fff3;
  }
  50% {
    transform: translateZ(10px) translateY(-3px);
    box-shadow: 0 8px 12px #00000040, inset 0 3px 6px #fff6;
  }
  to {
    transform: translateZ(0) translateY(0);
    box-shadow: 0 4px 6px #00000026, inset 0 2px 4px #fff3;
  }
}
@keyframes floatEmoji {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(6deg) scale(1.1);
  }
  to {
    transform: translateY(0) rotate(0);
  }
}
@keyframes flyAirplane {
  0% {
    transform: translate(0) rotate(0);
  }
  25% {
    transform: translate(6px, -6px) rotate(10deg);
  }
  50% {
    transform: translateY(-12px) rotate(0);
  }
  75% {
    transform: translate(-6px, -6px) rotate(-10deg);
  }
  to {
    transform: translate(0) rotate(0);
  }
}
@keyframes zoomRocket {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.2) translateY(-12px) rotate(15deg);
  }
  to {
    transform: scale(1) translateY(0);
  }
}
@keyframes pulseIcon {
  0% {
    filter: brightness();
    transform: scale(1);
  }
  50% {
    filter: brightness(1.2);
    transform: scale(1.15) rotate(5deg);
  }
  to {
    filter: brightness();
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes slideUp {
  0% {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (width <= 768px) {
  .games-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .message-bubble {
    max-width: 92%;
    font-size: 0.95rem;
  }
  .sidebar {
    width: 85vw;
  }
  .login-scroll {
    justify-content: center !important;
    padding: 10px !important;
  }
  .home-empty-state {
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 100% !important;
    padding: 8px 5px !important;
    overflow-y: auto !important;
  }
  .greeting-logo {
    width: 55px !important;
    height: 55px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    animation: none !important;
  }
  .greeting-header {
    margin-bottom: 10px !important;
  }
  .greeting-header h1 {
    margin-bottom: 2px !important;
    font-size: 1.1rem !important;
  }
  .greeting-header .subtitle {
    font-size: 0.8rem !important;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 8px !important;
  }
  .feature-card {
    border-radius: 16px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 65px !important;
    padding: 12px 10px !important;
  }
  .feature-title {
    text-align: right !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    width: auto !important;
    flex: 1 !important;
    margin-top: 0 !important;
    margin-left: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
  }
  .feature-icon {
    margin-bottom: 0 !important;
    font-size: 1.8rem !important;
  }
  .app-header {
    padding: 8px 10px !important;
  }
  .header-actions .icon-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
  }
  .header-actions .icon-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .header-logo img {
    width: 26px !important;
    height: 26px !important;
  }
  .header-logo span {
    font-size: 0.95rem !important;
  }
  .login-page {
    overflow-y: auto !important;
  }
  .login-scroll {
    justify-content: flex-start !important;
    padding: 10px !important;
    overflow-y: auto !important;
  }
  .login-card {
    margin: 10px auto !important;
    padding: 20px 18px !important;
  }
  .lp-logo-wrap {
    margin-bottom: 8px !important;
  }
  .lp-logo {
    width: 65px !important;
    height: 65px !important;
    animation: none !important;
  }
  .lp-title {
    margin-bottom: 12px !important;
    font-size: 1.1rem !important;
  }
  .lp-field {
    margin-bottom: 6px !important;
  }
  .lp-field label {
    margin-bottom: 3px !important;
    font-size: 0.8rem !important;
  }
  .lp-input {
    padding: 9px 12px !important;
  }
  .lp-social-btn {
    padding: 9px !important;
    font-size: 0.9rem !important;
  }
  .lp-apple-btn {
    margin-top: 6px !important;
  }
}
@media (width >= 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
@media (width <= 767px) {
  .input-area {
    padding-bottom: max(env(safe-area-inset-bottom), 16px);
    background: var(--bg-color);
  }
}
.chat-container,
.main-content-area {
  min-height: 0 !important;
}
[dir=rtl] .gemini-features,
[dir=ltr] .gemini-features {
  align-items: flex-start;
}
@media (width <= 767px) {
  .input-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 24px max(env(safe-area-inset-bottom), 24px) !important;
    background: #fff !important;
    border: none !important;
    border-radius: 32px 32px 0 0 !important;
    box-shadow: 0 -10px 40px #00000014 !important;
  }
  [data-theme=dark] .input-bar {
    background: #1e1e24 !important;
  }
  .input-bar input[type=text] {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    padding-inline-start: 10px !important;
    font-size: 1.25rem !important;
  }
  .attach-btn,
  .send-btn,
  .stop-btn {
    align-items: justify;
    background: #f0f2f9;
    border-radius: 50%;
    justify-content: center;
    width: 44px;
    height: 44px;
    display: flex;
  }
  [data-theme=dark] .attach-btn {
    background: #2a2a30;
  }
}
@media (width <= 767px) {
  .gemini-input-area {
    padding: 10px 16px max(env(safe-area-inset-bottom), 16px) !important;
  }
}
@media (width <= 400px) {
  .gemini-actions-start {
    gap: 4px !important;
  }
}
@keyframes float3D {
  0%, to {
    transform: translateY(0) rotateX(0) rotateY(0);
  }
  50% {
    filter: drop-shadow(4px 10px 12px #0000004d);
    transform: translateY(-8px) rotateX(10deg) rotateY(-10deg);
  }
}
@keyframes float3D-alt {
  0%, to {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-6px) rotate(5deg) scale(1.05);
  }
}
@keyframes spin3D {
  0% {
    transform: rotateY(0) translateY(0);
  }
  50% {
    transform: rotateY(180deg) translateY(-5px);
  }
  to {
    transform: rotateY(360deg) translateY(0);
  }
}
@keyframes bounce3D {
  0%, to {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-10px) scale(1.1) rotateX(15deg);
  }
  60% {
    transform: translateY(-5px) scale(1.05) rotateX(5deg);
  }
}
@keyframes wobble3D {
  0%, to {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-10deg) scale(1.1);
  }
  75% {
    transform: rotate(10deg) scale(1.1);
  }
}
@keyframes pulse-3d-btn {
  0%, to {
    transform: scale(1);
    box-shadow:
      inset 2px 2px 4px #ffffff80,
      inset -3px -3px 6px #0006,
      0 4px 8px #0072ff66;
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      inset 2px 2px 4px #fff9,
      inset -3px -3px 6px #0006,
      0 6px 15px #0072ff99;
  }
}
@media (width <= 500px) {
  .translate-lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .doc-field-row {
    flex-direction: column;
  }
}
@keyframes waveAnim {
  0%, to {
    opacity: 0.4;
    height: 10px;
  }
  50% {
    opacity: 1;
    height: 50px;
  }
}
@media (width <= 600px) {
  .music-genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .music-studio-intro h2 {
    font-size: 1.05rem;
  }
  .genre-emoji {
    font-size: 3.5rem;
  }
  .music-result-title {
    font-size: 2rem;
  }
  .player-action-buttons {
    gap: 6px;
  }
  .player-action-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .music-gen-title {
    font-size: 2rem;
  }
}
@media (width <= 400px) {
  .music-params-card {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width <= 480px) {
  .custom-home-ui .features-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (width <= 380px) {
  .custom-home-ui .feature-title {
    letter-spacing: -0.2px;
    font-size: 11px;
  }
}
@media (width <= 900px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (width <= 600px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: 1fr !important;
  }
  .custom-3d-grid {
    padding: 20px !important;
  }
}
@media (width <= 768px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px 10px !important;
    padding: 30px 15px !important;
  }
  .custom-app-card .feature-3d-img {
    border-radius: 22px !important;
    max-width: 100px !important;
  }
  .custom-app-card .feature-title {
    font-size: 0.85rem !important;
  }
}
@media (width <= 480px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 8px !important;
    padding: 20px 10px !important;
  }
  .custom-app-card .feature-3d-img {
    border-radius: 18px !important;
    max-width: 85px !important;
  }
  .custom-app-card .feature-title {
    font-size: 0.75rem !important;
  }
}
.counter {
  color: var(--accent);
  background: var(--accent-bg);
  border: 2px solid #0000;
  border-radius: 5px;
  margin-bottom: 24px;
  padding: 5px 10px;
  font-size: 16px;
  transition: border-color 0.3s;
}
.counter:hover {
  border-color: var(--accent-border);
}
.counter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero {
  position: relative;
}
.hero .base,
.hero .framework,
.hero .vite {
  margin: 0 auto;
  inset-inline: 0;
}
.hero .base {
  z-index: 0;
  width: 170px;
  position: relative;
}
.hero .framework,
.hero .vite {
  position: absolute;
}
.hero .framework {
  z-index: 1;
  height: 28px;
  top: 34px;
  transform: perspective(2000px) rotate(300deg) rotateX(44deg) rotateY(39deg) scale(1.4);
}
.hero .vite {
  z-index: 0;
  width: auto;
  height: 26px;
  top: 107px;
  transform: perspective(2000px) rotate(300deg) rotateX(40deg) rotateY(39deg) scale(0.8);
}
#center {
  flex-direction: column;
  flex-grow: 1;
  place-content: center;
  place-items: center;
  gap: 25px;
  display: flex;
}
@media (width <= 1024px) {
  #center {
    gap: 18px;
    padding: 32px 20px 24px;
  }
}
#next-steps {
  border-top: 1px solid var(--border);
  text-align: left;
  display: flex;
}
#next-steps > div {
  flex: 1 1 0;
  padding: 32px;
}
@media (width <= 1024px) {
  #next-steps > div {
    padding: 24px 20px;
  }
}
#next-steps .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 16px;
}
@media (width <= 1024px) {
  #next-steps {
    text-align: center;
    flex-direction: column;
  }
}
#docs {
  border-right: 1px solid var(--border);
}
@media (width <= 1024px) {
  #docs {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
#next-steps ul {
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}
#next-steps ul .logo {
  height: 18px;
}
#next-steps ul a {
  color: var(--text-h);
  background: var(--social-bg);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 16px;
  text-decoration: none;
  transition: box-shadow 0.3s;
  display: flex;
}
#next-steps ul a:hover {
  box-shadow: var(--shadow);
}
#next-steps ul a .button-icon {
  width: 18px;
  height: 18px;
}
@media (width <= 1024px) {
  #next-steps ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
  }
  #next-steps ul li {
    flex: calc(50% - 8px);
  }
  #next-steps ul a {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
  }
}
#spacer {
  border-top: 1px solid var(--border);
  height: 88px;
}
@media (width <= 1024px) {
  #spacer {
    height: 48px;
  }
}
.ticks {
  width: 100%;
  position: relative;
}
.ticks:before,
.ticks:after {
  content: "";
  border: 5px solid #0000;
  position: absolute;
  top: -4.5px;
}
.ticks:before {
  border-left-color: var(--border);
  left: 0;
}
.ticks:after {
  border-right-color: var(--border);
  right: 0;
}
:root {
  --bg-color: #f0f2f9;
  --glass-bg: #ffffffbf;
  --glass-border: #ffffff80;
  --primary: #007aff;
  --primary-gradient:
    linear-gradient(
      135deg,
      #007aff 0%,
      #005bb5 100%);
  --secondary: #5856d6;
  --text-main: #1c1c1e;
  --text-muted: #8e8e93;
  --shadow-sm: 0 4px 6px #0000000d;
  --shadow-md: 0 8px 15px #0000001a;
  --shadow-lg: 0 15px 30px #00000026;
  --radius-md: 14px;
  --radius-lg: 20px;
  font-family:
    Cairo,
    Inter,
    sans-serif;
}
[data-theme=dark] {
  --bg-color: #121214;
  --glass-bg: #1e1e23bf;
  --glass-border: #ffffff1a;
  --primary: #0a84ff;
  --text-main: #f5f5f7;
  --text-muted: #98989d;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
::-webkit-scrollbar {
  display: none !important;
}
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s;
  overflow: hidden;
}
.Glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
body.no-ads ins.adsbygoogle,
body.no-ads iframe[id^=google_ads_],
body.no-ads .google-auto-placed {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}
.premium-upgrade-btn {
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ef4444);
  border: none;
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex;
  box-shadow: 0 4px 15px #f59e0b66;
}
.premium-upgrade-btn:hover {
  transform: translateY(-2px) scale(1.05);
}
.premium-upgrade-btn.glowing {
  animation: 2s ease-in-out infinite glowingEffect;
}
.bounce-icon {
  animation: 1.5s infinite bounceIcon;
}
.login-page {
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
  scroll-behavior: smooth;
  background: url(/mm.webp) center/cover no-repeat #040a09;
}
.login-page::before {
  display: none !important;
}
.ipad-3d-wrap {
  perspective: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -5px auto 20px;
  width: 280px;
  height: 200px;
}
.ipad-3d-device {
  width: 260px;
  height: 185px;
  background:
    linear-gradient(
      145deg,
      #2c2c2c,
      #1a1a1a,
      #000000);
  border-radius: 24px;
  padding: 8px;
  position: relative;
  transform-style: preserve-3d;
  animation: ipadFloat 6s ease-in-out infinite;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 2px solid #333;
}
.ipad-3d-device::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #6366f1,
      #ec4899,
      #10b981);
  background-size: 300% 300%;
  animation: ipadBorderGlow 6s ease-in-out infinite;
  z-index: -1;
  opacity: 0.5;
  filter: blur(4px);
}
@keyframes ipadBorderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes ipadFloat {
  0%, 100% {
    transform: rotateX(8deg) rotateY(-6deg) translateY(0);
  }
  25% {
    transform: rotateX(4deg) rotateY(-3deg) translateY(-8px);
  }
  50% {
    transform: rotateX(6deg) rotateY(4deg) translateY(-4px);
  }
  75% {
    transform: rotateX(3deg) rotateY(-5deg) translateY(-10px);
  }
}
.ipad-3d-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #333 40%,
      #222 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 5;
}
.ipad-3d-screen {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background:
    linear-gradient(
      160deg,
      #020818,
      #0a1628,
      #0d1f3c);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ipad-3d-wave {
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 140%;
  height: 70%;
  border-radius: 40%;
  opacity: 0.15;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  animation: ipadWave 7s ease-in-out infinite;
}
.ipad-3d-wave-2 {
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #4f46e5);
  animation-delay: -2.5s;
  animation-duration: 9s;
  opacity: 0.1;
  bottom: -40%;
}
.ipad-3d-wave-3 {
  background:
    linear-gradient(
      135deg,
      #ec4899,
      #db2777);
  animation-delay: -5s;
  animation-duration: 11s;
  opacity: 0.08;
  bottom: -50%;
}
@keyframes ipadWave {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(3deg) translateY(-8px);
  }
  50% {
    transform: rotate(-2deg) translateY(5px);
  }
  75% {
    transform: rotate(4deg) translateY(-5px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}
.ipad-3d-logo {
  width: 60px;
  height: 165px;
  border-radius: 14px;
  object-fit: cover;
  position: relative;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25), 0 0 30px rgba(16, 185, 129, 0.1);
  animation: ipadLogoPulse 3s ease-in-out infinite;
}
@keyframes ipadLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.15);
  }
}
.ipad-3d-tagline {
  position: relative;
  z-index: 3;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.ipad-3d-home-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}
[data-theme=dark] .ipad-3d-device {
  background:
    linear-gradient(
      145deg,
      #0a0a14,
      #111128,
      #0a0a1a);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.08);
}
.ipad-card-3d {
  will-change: auto;
  background: var(--ipad-bg, #ffffff);
  background-size: 400% 400%;
  border: 14px solid #1c2533;
  border-radius: 54px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 480px;
  min-height: 720px;
  margin: 4dvh auto 20px;
  padding: 12px 28px 20px;
  display: flex;
  position: relative;
  overflow: hidden auto;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 12px rgba(0, 0, 0, 0.5),
    0 0 0 4px #121924,
    0 0 40px rgba(37, 244, 238, 0.18),
    0 0 80px rgba(16, 185, 129, 0.10);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform-style: flat;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  animation: ipad-glow-pulse 4s ease-in-out infinite;
}
.ipad-card-3d > * {
  transform: none;
}
.ipad-card-3d::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 20%,
      transparent 80%,
      rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 100;
}
.ipad-card-3d.device-phone {
  max-width: 350px;
  min-height: 720px;
  aspect-ratio: auto;
  border-radius: 54px;
  border: 14px solid #1c2533;
  padding: 10px 20px 20px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 12px rgba(0, 0, 0, 0.5),
    0 0 0 4px #121924;
}
@media (max-width: 480px) {
  .ipad-card-3d {
    max-width: 90% !important;
  }
  .ipad-card-3d.device-phone {
    max-width: 280px !important;
    min-height: 560px !important;
  }
}
.ipad-card-3d.wavy-bg {
  background-size: 400% 400% !important;
  animation: wavyBackground 12s ease infinite !important;
}
@keyframes wavyBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes ipad-glow-pulse {
  0% {
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.65),
      inset 0 0 12px rgba(0, 0, 0, 0.5),
      0 0 0 4px #121924,
      0 0 30px rgba(37, 244, 238, 0.12),
      0 0 60px rgba(16, 185, 129, 0.07);
  }
  50% {
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.65),
      inset 0 0 12px rgba(0, 0, 0, 0.5),
      0 0 0 4px #1c3a30,
      0 0 55px rgba(37, 244, 238, 0.28),
      0 0 100px rgba(16, 185, 129, 0.16);
  }
  100% {
    box-shadow:
      0 40px 80px rgba(0, 0, 0, 0.65),
      inset 0 0 12px rgba(0, 0, 0, 0.5),
      0 0 0 4px #121924,
      0 0 30px rgba(37, 244, 238, 0.12),
      0 0 60px rgba(16, 185, 129, 0.07);
  }
}
[data-theme=dark] .ipad-card-3d {
  border-color: #050505;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.ipad-card-3d::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
  z-index: 10;
}
.bg-anim-silk {
  background:
    linear-gradient(
      270deg,
      #0f172a,
      #1e293b,
      #334155,
      #0f172a) !important;
  background-size: 800% 800% !important;
  animation: silkFlow 20s ease infinite !important;
}
@keyframes silkFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-aurora {
  background:
    linear-gradient(
      135deg,
      #000428,
      #004e92,
      #000428) !important;
  background-size: 400% 400% !important;
  animation: auroraFlow 15s ease-in-out infinite !important;
  position: relative;
}
.bg-anim-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(16, 185, 129, 0.1),
      transparent 70%);
  animation: auroraPulse 10s ease-in-out infinite alternate;
}
@keyframes auroraFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes auroraPulse {
  from {
    opacity: 0.3;
    transform: scale(1);
  }
  to {
    opacity: 0.7;
    transform: scale(1.2);
  }
}
.bg-anim-sunset {
  background:
    linear-gradient(
      45deg,
      #ee7752,
      #e73c7e,
      #23a6d5,
      #23d5ab) !important;
  background-size: 400% 400% !important;
  animation: sunsetFlow 15s ease infinite !important;
}
@keyframes sunsetFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-ocean {
  background:
    linear-gradient(
      -45deg,
      #0f172a,
      #1e3a8a,
      #1e40af,
      #172554) !important;
  background-size: 400% 400% !important;
  animation: oceanFlow 12s ease infinite !important;
}
@keyframes oceanFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-emerald {
  background:
    linear-gradient(
      135deg,
      #064e3b,
      #065f46,
      #047857,
      #064e3b) !important;
  background-size: 400% 400% !important;
  animation: emeraldFlow 18s ease infinite !important;
}
@keyframes emeraldFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-nebula {
  background:
    linear-gradient(
      135deg,
      #1a1a2e,
      #16213e,
      #0f3460,
      #e94560) !important;
  background-size: 400% 400% !important;
  animation: nebulaFlow 20s ease-in-out infinite !important;
}
@keyframes nebulaFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-fire {
  background:
    linear-gradient(
      45deg,
      #ff416c,
      #ff4b2b,
      #ff416c) !important;
  background-size: 400% 400% !important;
  animation: fireFlow 10s ease infinite !important;
}
@keyframes fireFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-lavender {
  background:
    linear-gradient(
      135deg,
      #667eea,
      #764ba2,
      #667eea) !important;
  background-size: 400% 400% !important;
  animation: lavenderFlow 15s ease infinite !important;
}
@keyframes lavenderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-cyber {
  background:
    linear-gradient(
      135deg,
      #00d2ff,
      #3a7bd5,
      #00d2ff) !important;
  background-size: 400% 400% !important;
  animation: cyberFlow 12s ease infinite !important;
}
@keyframes cyberFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-zen {
  background:
    linear-gradient(
      135deg,
      #757f9a,
      #d7dde8,
      #757f9a) !important;
  background-size: 400% 400% !important;
  animation: zenFlow 25s ease-in-out infinite !important;
}
@keyframes zenFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-gold-luxury {
  background:
    linear-gradient(
      135deg,
      #b8860b,
      #daa520,
      #ffd700,
      #fcf6ba,
      #daa520,
      #b8860b) !important;
  background-size: 400% 400% !important;
  animation: goldLuxuryFlow 8s ease infinite !important;
}
@keyframes goldLuxuryFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-burgundy {
  background:
    linear-gradient(
      135deg,
      #4a0011,
      #800020,
      #990026,
      #b31b1b,
      #800020,
      #4a0011) !important;
  background-size: 400% 400% !important;
  animation: burgundyFlow 10s ease-in-out infinite !important;
}
@keyframes burgundyFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-sapphire {
  background:
    linear-gradient(
      135deg,
      #050c1a,
      #0a1931,
      #15305b,
      #1f4e79,
      #0a1931,
      #050c1a) !important;
  background-size: 400% 400% !important;
  animation: sapphireFlow 12s ease infinite !important;
}
@keyframes sapphireFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-gold {
  background:
    linear-gradient(
      45deg,
      #bf953f,
      #fcf6ba,
      #b38728,
      #fcf6ba,
      #bf953f) !important;
  background-size: 400% 400% !important;
  animation: goldFlow 10s ease infinite !important;
}
@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-rose {
  background:
    linear-gradient(
      135deg,
      #ff9a9e,
      #fad0c4,
      #ff9a9e) !important;
  background-size: 400% 400% !important;
  animation: roseFlow 15s ease-in-out infinite !important;
}
@keyframes roseFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-forest {
  background:
    linear-gradient(
      135deg,
      #134e5e,
      #71b280,
      #134e5e) !important;
  background-size: 400% 400% !important;
  animation: forestFlow 18s ease-in-out infinite !important;
}
@keyframes forestFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-royal {
  background:
    linear-gradient(
      135deg,
      #480048,
      #c04848,
      #480048) !important;
  background-size: 400% 400% !important;
  animation: royalFlow 15s ease infinite !important;
}
@keyframes royalFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.bg-anim-midnight {
  background:
    linear-gradient(
      135deg,
      #232526,
      #414345,
      #232526) !important;
  background-size: 400% 400% !important;
  animation: midnightFlow 20s ease infinite !important;
}
@keyframes midnightFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.ipad-card-3d .lp-title {
  color: #1e293b !important;
}
[data-theme=dark] .ipad-card-3d .lp-title {
  color: #f1f5f9 !important;
}
.ipad-card-3d .lp-field label {
  color: #334155 !important;
}
[data-theme=dark] .ipad-card-3d .lp-field label {
  color: #cbd5e1 !important;
}
.ipad-card-3d .lp-input {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
[data-theme=dark] .ipad-card-3d .lp-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.ipad-card-3d .lp-input input {
  color: #1e293b !important;
}
[data-theme=dark] .ipad-card-3d .lp-input input {
  color: #f1f5f9 !important;
}
.ipad-card-3d .lp-input input::placeholder {
  color: #94a3b8 !important;
}
.ipad-card-3d .lp-primary-btn {
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb) !important;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
  color: #fff !important;
}
.ipad-card-3d .lp-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4) !important;
}
.ipad-card-3d .lp-social-btn {
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
[data-theme=dark] .ipad-card-3d .lp-social-btn {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.ipad-card-3d .lp-social-btn:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  transform: translateY(-1px);
}
.ipad-card-3d .lp-text-btn {
  color: #3b82f6 !important;
}
.ipad-card-3d .lp-error {
  color: #ef4444 !important;
}
.ipad-card-3d .lp-divider {
  color: #64748b !important;
}
.ipad-card-3d .lp-divider::before,
.ipad-card-3d .lp-divider::after {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme=dark] .ipad-card-3d .lp-divider::before,
[data-theme=dark] .ipad-card-3d .lp-divider::after {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.ipad-card-3d .lp-footer a {
  color: #475569 !important;
}
.ipad-card-3d .lp-footer a:hover {
  color: #3b82f6 !important;
}
.ipad-card-3d .lp-footer span {
  color: #94a3b8 !important;
}
.ipad-card-3d p {
  color: #64748b;
}
[data-theme=dark] .ipad-card-3d p {
  color: #94a3b8;
}
.ipad-card-3d h3 {
  color: #1e293b !important;
}
[data-theme=dark] .ipad-card-3d h3 {
  color: #e2e8f0 !important;
}
.ipad-card-3d span[style*="rgba(16,185,129"] {
  animation: badgePop 0.5s ease-out both;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ipad-card-3d span[style*="rgba(16,185,129"]:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.plan-preview-card {
  flex: 1;
  min-width: 230px;
  max-width: 250px;
  padding: 20px 16px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(25px) saturate(1.3);
  backdrop-filter: blur(25px) saturate(1.3);
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: planCardEntry 0.7s ease-out both;
  cursor: pointer;
}
.plan-preview-card:nth-child(2) {
  animation-delay: 0.15s;
}
@keyframes planCardEntry {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.plan-preview-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.pro-card {
  border-color: rgba(16, 185, 129, 0.25);
}
.pro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      #10b981,
      #3b82f6);
  border-radius: 20px 20px 0 0;
}
.edu-card {
  border-color: rgba(139, 92, 246, 0.2);
}
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      #8b5cf6,
      #ec4899);
  border-radius: 20px 20px 0 0;
}
.plan-preview-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}
[dir=rtl] .plan-preview-badge {
  right: auto;
  left: 10px;
}
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 3px 18px rgba(16, 185, 129, 0.5);
  }
}
.plan-preview-icon {
  font-size: 3.5rem;
  margin: 8px 0 6px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}
.plan-preview-name {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}
.plan-preview-desc {
  font-size: 0.72rem;
  color: #64748b !important;
  line-height: 1.5;
  margin-bottom: 10px;
}
.plan-preview-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 12px;
}
.plan-price-amount {
  font-size: 2rem;
  font-weight: 900;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.edu-card .plan-price-amount {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plan-price-currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}
.plan-price-period {
  font-size: 0.75rem;
  color: #94a3b8;
}
.plan-preview-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  width: 100%;
  text-align: start;
}
.plan-preview-features li {
  font-size: 0.73rem;
  color: #475569;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.plan-preview-features li:last-child {
  border-bottom: none;
}
.plan-preview-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  transition: all 0.3s;
}
.pro-btn {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
}
.pro-btn:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}
.edu-btn {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #7c3aed);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.25);
}
.edu-btn:hover {
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}
[data-theme=dark] .plan-preview-card {
  background: rgba(30, 30, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
[data-theme=dark] .plan-preview-name {
  color: #f1f5f9;
}
[data-theme=dark] .plan-preview-desc {
  color: #94a3b8 !important;
}
[data-theme=dark] .plan-preview-features li {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.04);
}
[data-theme=dark] .plan-price-currency {
  color: #94a3b8;
}
.pricing-mini .plan-preview-card {
  min-width: 0;
  max-width: 48%;
  flex: 1;
  padding: 14px 10px;
  border-radius: 16px;
}
.pricing-mini .plan-preview-icon {
  font-size: 1.5rem;
  margin: 2px 0 4px;
}
.pricing-mini .plan-preview-name {
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.pricing-mini .plan-preview-desc {
  display: none;
}
.pricing-mini .plan-price-amount {
  font-size: 1.5rem;
}
.pricing-mini .plan-price-currency {
  font-size: 0.7rem;
}
.pricing-mini .plan-price-period {
  font-size: 0.65rem;
}
.pricing-mini .plan-preview-price {
  margin-bottom: 8px;
}
.pricing-mini .plan-preview-features li {
  font-size: 0.65rem;
  padding: 2px 0;
}
.pricing-mini .plan-preview-btn {
  padding: 7px;
  font-size: 0.75rem;
  border-radius: 10px;
}
.pricing-mini .plan-preview-badge {
  font-size: 0.5rem;
  padding: 2px 7px;
  top: 6px;
  right: 6px;
}
[dir=rtl] .pricing-mini .plan-preview-badge {
  right: auto;
  left: 6px;
}
@media (max-width: 520px) {
  .plan-preview-card {
    min-width: 100%;
    max-width: 100%;
  }
  .pricing-mini {
    flex-direction: column !important;
    gap: 12px;
  }
  .pricing-mini .plan-preview-card {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}
.btn-3d-premium {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 16px;
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
  color: #00f0ff !important;
  border-radius: 20px;
  background:
    linear-gradient(
      90deg,
      rgba(30, 11, 84, 0.9),
      rgba(59, 13, 89, 0.8),
      rgba(20, 73, 133, 0.9),
      rgba(15, 108, 119, 0.8)),
    url(/space_bg.jpg) center/cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3);
  transform: translateY(0);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 1) !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.btn-3d-premium span {
  color: #00f0ff !important;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 1) !important;
}
.btn-3d-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  100% {
    left: 200%;
  }
}
.btn-3d-premium:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0 #b91c1c, 0 10px 20px rgba(239, 68, 68, 0.4);
  background:
    linear-gradient(
      135deg,
      #f55555,
      #fbad25);
}
.btn-3d-premium:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 #b91c1c, 0 2px 5px rgba(239, 68, 68, 0.4);
}
.icon-3d-anim {
  display: inline-block;
  animation: pulseRotateIcon 2s infinite ease-in-out;
}
@keyframes pulseRotateIcon {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
}
.gls-v2 {
  background: #06060e !important;
  color: #e5e7eb;
}
.v2-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.v2-grid {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(16, 185, 129, 0.04) 1px,
      transparent 1px);
  background-size: 60px 60px;
  animation: v2GridMove 20s linear infinite;
}
@keyframes v2GridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}
.v2-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: v2OrbFloat 12s ease-in-out infinite alternate;
}
.v2-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(16, 185, 129, 0.15);
  top: -10%;
  left: -5%;
}
.v2-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(99, 102, 241, 0.15);
  top: 40%;
  right: -5%;
  animation-delay: -4s;
}
.v2-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(236, 72, 153, 0.1);
  bottom: -5%;
  left: 30%;
  animation-delay: -8s;
}
@keyframes v2OrbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}
.v2-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(6, 6, 14, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.v2-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
}
.v2-nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.v2-nav-brand span {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.v2-nav-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}
.v2-nav-links a:hover {
  color: #10b981;
}
.v2-nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  font-size: 2rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}
.v2-nav-lang:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.v2-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  min-height: 85dvh;
}
.v2-hero-text {
  flex: 1;
  max-width: 550px;
}
.v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: v2FadeUp 0.8s ease-out;
}
.v2-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: v2Pulse 2s infinite;
}
@keyframes v2Pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}
.v2-hero-text h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: v2FadeUp 0.8s ease-out 0.1s both;
}
.v2-glow-text {
  background:
    linear-gradient(
      135deg,
      #10b981 0%,
      #6366f1 50%,
      #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: v2GradShift 5s ease-in-out infinite;
  text-shadow: none;
}
@keyframes v2GradShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.v2-hero-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #9ca3af;
  margin-bottom: 28px;
  animation: v2FadeUp 0.8s ease-out 0.2s both;
}
@keyframes v2FadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.v2-hero-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  animation: v2FadeUp 0.8s ease-out 0.3s both;
  flex-wrap: wrap;
}
.v2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}
.v2-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.35);
}
.v2-btn-outline {
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}
.v2-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}
.v2-trusted {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: v2FadeUp 0.8s ease-out 0.4s both;
}
.v2-avatars {
  display: flex;
}
.v2-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #06060e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-inline-start: -8px;
}
.v2-avatar:first-child {
  margin-inline-start: 0;
}
.v2-trusted > span {
  color: #6b7280;
  font-size: 0.82rem;
}
.v2-hero-visual {
  flex: 0 0 auto;
  width: 340px;
  animation: v2FadeUp 1s ease-out 0.3s both;
}
.v2-3d-scene {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
}
.v2-phone-mockup {
  width: 220px;
  height: 440px;
  background:
    linear-gradient(
      145deg,
      #1a1a2e,
      #16213e);
  border-radius: 36px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(16, 185, 129, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateY(-12deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: v2PhoneFloat 6s ease-in-out infinite;
}
@keyframes v2PhoneFloat {
  0%, 100% {
    transform: rotateY(-12deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: rotateY(-8deg) rotateX(3deg) translateY(-15px);
  }
}
.v2-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #0f0f1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 12px;
}
.v2-phone-app {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.v2-phone-ui {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-ph-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  width: 80%;
}
.v2-ph-bar-sm {
  width: 50%;
}
.v2-ph-chat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.15);
  font-size: 0.65rem;
  color: #d1d5db;
}
.v2-ph-img {
  flex: 1;
  border-radius: 12px;
  min-height: 165px;
  background:
    linear-gradient(
      135deg,
      rgba(99, 102, 241, 0.15),
      rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.v2-orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  animation: v2OrbitSpin 25s linear infinite;
}
@keyframes v2OrbitSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.v2-orbit-item {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(15, 15, 25, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: v2OrbitCounterSpin 25s linear infinite;
}
@keyframes v2OrbitCounterSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
.v2-orbit-item[style*="--i:0"] {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.v2-orbit-item[style*="--i:1"] {
  top: 25%;
  right: 0;
}
.v2-orbit-item[style*="--i:2"] {
  bottom: 25%;
  right: 0;
}
.v2-orbit-item[style*="--i:3"] {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.v2-orbit-item[style*="--i:4"] {
  bottom: 25%;
  left: 0;
}
.v2-orbit-item[style*="--i:5"] {
  top: 25%;
  left: 0;
}
.v2-features {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}
.v2-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 40px;
}
.v2-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v2-feat-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: v2FadeUp 0.6s ease-out var(--delay) both;
}
.v2-feat-card:hover {
  transform: translateY(-8px);
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08);
}
.v2-feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.v2-feat-card h3 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.v2-feat-card p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
}
.v2-login-section {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.v2-login-header {
  text-align: center;
  margin-bottom: 28px;
}
.v2-login-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.v2-login-header p {
  color: #6b7280;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .v2-hero {
    flex-direction: column;
    min-height: auto;
    padding: 30px 20px;
    gap: 30px;
    text-align: center;
  }
  .v2-hero-text {
    max-width: 100%;
  }
  .v2-hero-text h1 {
    font-size: 2rem;
  }
  .v2-hero-btns {
    justify-content: center;
  }
  .v2-trusted {
    justify-content: center;
  }
  .v2-hero-visual {
    width: 260px;
  }
  .v2-3d-scene {
    height: 360px;
  }
  .v2-phone-mockup {
    width: 170px;
    height: 340px;
  }
  .v2-orbit {
    width: 280px;
    height: 280px;
  }
  .v2-orbit-item {
    width: 36px;
    height: 36px;
    font-size: 2rem;
  }
  .v2-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v2-nav-links a {
    display: none;
  }
  .v2-section-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .v2-features-grid {
    grid-template-columns: 1fr;
  }
  .v2-hero-text h1 {
    font-size: 1.7rem;
  }
  .v2-hero-visual {
    width: 220px;
  }
  .v2-3d-scene {
    height: 300px;
  }
}
.gls-hero-page {
  background: #0a0a0f !important;
  background-image:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(16, 185, 129, 0.08) 0%,
      transparent 50%),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 50%),
    radial-gradient(
      ellipse at 50% 80%,
      rgba(236, 72, 153, 0.06) 0%,
      transparent 50%) !important;
}
[data-theme=dark] .gls-hero-page {
  background: #05050a !important;
}
.gls-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.gls-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  animation: glsFloat var(--duration) var(--delay) ease-in-out infinite alternate;
  filter: blur(1px);
}
@keyframes glsFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-80px) translateX(30px);
    opacity: 0.2;
  }
}
.gls-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}
.gls-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gls-mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.gls-brand-text {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gls-lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.gls-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.gls-hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 30px;
  min-height: 70dvh;
}
.gls-hero-content {
  flex: 1;
  max-width: 500px;
  color: #fff;
}
.gls-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.gls-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: glsPulse 2s ease-in-out infinite;
}
@keyframes glsPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}
.gls-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.gls-gradient-text {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #6366f1,
      #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: glsGradShift 4s ease-in-out infinite;
}
@keyframes glsGradShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.gls-hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #9ca3af;
  margin-bottom: 24px;
}
.gls-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.gls-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}
.gls-pill:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
}
.gls-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.gls-stat {
  text-align: center;
}
.gls-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gls-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}
.gls-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}
.gls-login-card-wrap {
  flex: 0 0 auto;
  width: 420px;
  position: relative;
  z-index: 2;
}
.gls-glass-card {
  background: rgba(15, 15, 25, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(40px) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(16, 185, 129, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px !important;
}
.gls-glass-card .lp-title {
  color: #f5f5f7 !important;
}
.gls-glass-card .lp-field label {
  color: #d1d5db !important;
}
.gls-glass-card .lp-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.gls-glass-card .lp-input input {
  color: #f5f5f7 !important;
}
.gls-glass-card .lp-input input::placeholder {
  color: #6b7280 !important;
}
.gls-glass-card .lp-social-btn {
  color: #e5e7eb !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.gls-glass-card .lp-social-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
.gls-glass-card .lp-footer a {
  color: #6b7280 !important;
}
.gls-glass-card .lp-footer a:hover {
  color: #10b981 !important;
}
.gls-glass-card .lp-footer span {
  color: #374151 !important;
}
.gls-glass-card .lp-divider {
  color: #6b7280 !important;
}
.gls-glass-card .lp-divider::before,
.gls-glass-card .lp-divider::after {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.gls-glass-card .lp-error {
  color: #f87171 !important;
}
.gls-3d-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  perspective: 800px;
}
.gls-3d-logo {
  width: 80px;
  height: 165px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #1e293b);
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow:
    0 10px 30px rgba(16, 185, 129, 0.2),
    0 0 40px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: gls3DFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
.gls-3d-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes gls3DFloat {
  0%, 100% {
    transform: rotateY(-5deg) rotateX(5deg) translateY(0);
  }
  25% {
    transform: rotateY(5deg) rotateX(-3deg) translateY(-6px);
  }
  50% {
    transform: rotateY(-3deg) rotateX(5deg) translateY(-2px);
  }
  75% {
    transform: rotateY(5deg) rotateX(-5deg) translateY(-8px);
  }
}
.gls-premium-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ef4444,
      #ec4899) !important;
  background-size: 200% auto;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  animation: glsGradShift 4s ease-in-out infinite, glowCTA 2s ease-in-out infinite;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}
.gls-premium-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}
@keyframes glowCTA {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 8px 35px rgba(239, 68, 68, 0.4);
  }
}
.gls-glass-card .lp-primary-btn {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
}
.gls-glass-card .lp-primary-btn:hover {
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4) !important;
}
.gls-seo-block {
  max-width: 900px;
  width: 90%;
  margin: 50px auto 40px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: #9ca3af;
  line-height: 1.8;
  text-align: start;
}
.gls-seo-block h2 {
  font-size: 1.3rem;
  color: #f5f5f7;
  margin-bottom: 12px;
}
.gls-seo-block p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.gls-seo-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.gls-seo-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  font-size: 0.88rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .gls-hero-section {
    flex-direction: column;
    gap: 30px;
    padding: 10px 16px;
    min-height: auto;
    text-align: center;
  }
  .gls-hero-content {
    max-width: 100%;
  }
  .gls-hero-title {
    font-size: 1.8rem;
  }
  .gls-hero-desc {
    font-size: 0.92rem;
  }
  .gls-feature-pills {
    justify-content: center;
  }
  .gls-stats-row {
    justify-content: center;
  }
  .gls-login-card-wrap {
    width: 100%;
    max-width: 420px;
  }
  .gls-seo-features {
    grid-template-columns: 1fr;
  }
  .gls-hero-badge {
    font-size: 0.75rem;
  }
}
.login-top-bar {
  z-index: 10;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  display: flex;
}
.lp-icon-btn {
  cursor: pointer;
  width: 34px;
  height: 34px;
  color: var(--text-muted);
  background: 0 0;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
  display: flex;
}
.lp-icon-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}
.lp-lang-btn {
  color: #fff;
  cursor: pointer;
  background: var(--primary);
  border: none;
  border-radius: 16px;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 2rem;
  font-weight: 600;
  display: flex;
}
.login-scroll {
  flex: 1;
  padding: 24px 16px 40px;
  display: block;
  overflow-y: auto;
}
.login-card {
  -webkit-backdrop-filter: blur(24px);
  background: #ffffffeb;
  border: 1px solid #fff9;
  border-radius: 24px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 400px;
  margin: 4dvh auto 20px;
  padding: 34px 26px;
  display: flex;
  box-shadow: 0 12px 40px #0003;
}
[data-theme=dark] .login-card {
  background: #1e1e24d9;
  border: 1px solid #ffffff1a;
}
.monitor-container {
  perspective: 1000px;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  margin: -10px auto 1.5rem;
  display: flex;
}
.monitor-frame {
  width: 180px;
  height: 140px;
  transform-style: preserve-3d;
  background: #18181b;
  border: 4px solid #3f3f46;
  border-bottom: 10px solid #27272a;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  animation: 5s ease-in-out infinite floatMonitor;
  display: flex;
  position: relative;
  box-shadow: 0 10px 40px #10b98166, inset 0 0 14px #000000e6;
}
.monitor-frame:after {
  content: "";
  background: #10b981;
  border-radius: 2px;
  width: 8px;
  height: 2px;
  position: absolute;
  bottom: -4px;
  box-shadow: 0 0 10px #10b981;
}
.monitor-screen {
  background: #020804;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 90%;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px #10b98199;
}
.monitor-content {
  z-index: 2;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}
.monitor-content img {
  object-fit: cover;
  border-radius: 0;
  width: 100%;
  height: 100%;
  animation: 4s infinite alternate pulseLogoScreen;
}
.monitor-scanline {
  opacity: 0.7;
  z-index: 3;
  background: #10b98166;
  width: 100%;
  height: 8px;
  animation: 2.5s linear infinite scanline;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 15px #10b981cc;
}
.monitor-base {
  background: linear-gradient(#52525b, #3f3f46);
  border-radius: 0 0 4px 4px;
  width: 40px;
  height: 20px;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translate(-50%);
}
.monitor-stand {
  background: #71717a;
  border-radius: 10px;
  width: 90px;
  height: 6px;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 5px 25px #10b98199;
}
.lp-logo-wrap {
  margin-bottom: 20px;
}
.lp-logo {
  object-fit: cover;
  background: #fff;
  border-radius: 20px;
  width: 85px;
  height: 85px;
  padding: 4px;
  display: block;
  box-shadow: 0 8px 24px #00000026, 0 0 0 1px #fff9;
}
.lp-title {
  color: var(--text-main);
  text-align: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 800;
}
.lp-form {
  flex-direction: column;
  gap: 0;
  width: 100%;
  display: flex;
}
.lp-field {
  flex-direction: column;
  margin-bottom: 10px;
  display: flex;
}
.lp-field label {
  color: var(--text-main);
  margin-bottom: 6px;
  margin-inline-start: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lp-input {
  border-radius: var(--radius-md);
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  display: flex;
  background: #0000000a !important;
  border: 1px solid #00000014 !important;
}
[data-theme=dark] .lp-input {
  background: #ffffff0d !important;
  border: 1px solid #ffffff1a !important;
}
.lp-input input {
  color: var(--text-main);
  background: 0 0;
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
}
.lp-error {
  color: #ff3b30;
  text-align: center;
  margin: 2px 0 4px;
  font-size: 2rem;
}
.lp-primary-btn {
  background:
    linear-gradient(
      135deg,
      #ff4e50,
      #f9d423,
      #ff4e50,
      #f9d423);
  background-size: 300% 300%;
  animation: wavy-bg 6s ease infinite;
  color: #fff;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  font-size: 1.15rem;
  font-weight: 900;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow:
    0 6px 0 #b91c1c,
    0 12px 20px rgba(239, 68, 68, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
@keyframes wavy-bg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.lp-primary-btn:hover {
  transform: translateY(2px) scale(1.03);
  box-shadow:
    0 4px 0 #b91c1c,
    0 15px 25px rgba(239, 68, 68, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  filter: brightness(1.1);
}
.lp-primary-btn:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 2px 0 #b91c1c;
}
.lp-primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.lp-primary-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  animation: shimmer-btn 4s infinite ease-in-out;
}
.animated-media-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 10px 0;
}
.animated-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anim-ken-burns {
  animation: kenBurns 12s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.25) translate(3%, 3%);
  }
}
.anim-dynamic-zoom {
  animation: dynamicZoom 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes dynamicZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.anim-fade {
  animation: fadeInOut 5s ease-in-out infinite;
}
@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.3;
    filter: grayscale(1);
  }
  50% {
    opacity: 1;
    filter: grayscale(0);
  }
}
.anim-slide {
  animation: slideWipe 6s ease-in-out infinite;
}
@keyframes slideWipe {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20%, 80% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
.anim-parallax {
  animation: parallax3D 8s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes parallax3D {
  0% {
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) scale(1.1);
  }
  50% {
    transform: perspective(1000px) rotateY(8deg) rotateX(-4deg) scale(1.1);
  }
  100% {
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) scale(1.1);
  }
}
.anim-glitch {
  animation: glitchEffect 1.5s steps(1) infinite;
}
@keyframes glitchEffect {
  0%, 100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
  }
  10% {
    transform: translate(-4px, 2px);
    clip-path: inset(10% 0 30% 0);
    filter: hue-rotate(90deg);
  }
  20% {
    transform: translate(4px, -2px);
    clip-path: inset(50% 0 10% 0);
    filter: hue-rotate(180deg);
  }
  30% {
    transform: translate(-2px, 4px);
    clip-path: inset(20% 0 60% 0);
    filter: hue-rotate(270deg);
  }
  40% {
    transform: translate(0);
    clip-path: inset(0);
    filter: hue-rotate(0deg);
  }
}
.anim-motion-blur {
  animation: motionBlurEffect 4s ease-in-out infinite;
}
@keyframes motionBlurEffect {
  0%, 100% {
    filter: blur(0px);
    transform: scale(1);
  }
  25% {
    filter: blur(6px);
    transform: scale(1.1) translateX(15px);
  }
  75% {
    filter: blur(6px);
    transform: scale(1.1) translateX(-15px);
  }
}
.animated-badge {
  animation: 3s ease-in-out infinite floatBadge;
  position: relative;
  overflow: hidden;
}
.animated-badge:before {
  content: "";
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      #fff0 0%,
      #fffc 50%,
      #fff0 100%);
  width: 50%;
  height: 100%;
  animation: 4s ease-in-out infinite shineBadge;
  position: absolute;
  top: 0;
  left: -150%;
  transform: skew(-25deg);
}
.lp-social {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  display: flex;
}
.lp-social-btn {
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-main);
  border: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s;
  display: flex;
}
.lp-social-btn:hover {
  transform: translateY(-2px);
}
.apple-badge-3d {
  background:
    radial-gradient(
      circle at 35% 35%,
      #555,
      #111);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  display: flex;
  box-shadow:
    inset 1px 1px 2px #ffffff40,
    inset -1px -1px 2px #00000080,
    0 2px 6px #0000004d;
}
.lp-apple-btn .apple-badge-3d {
  background:
    radial-gradient(
      circle at 35% 35%,
      #2c2c2e,
      #1c1c1e);
}
.lp-footer {
  border-top: 1px solid #0000000f;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
}
.lp-footer a {
  color: #6b7280;
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.2s;
}
.lp-footer a:hover {
  color: var(--primary);
}
.lp-footer span {
  color: #d1d5db;
  font-size: 0.65rem;
}
.login-container {
  background: var(--bg-color);
  flex-direction: column;
  height: 100dvh;
  padding: 2rem;
  animation: 0.6s ease-out fadeIn;
  display: flex;
}
.login-top-bar-old {
  justify-content: space-between;
  display: flex;
}
.icon-btn {
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: 42px;
  height: 42px;
  transform-style: preserve-3d;
  background: #ffffff1a;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: 4s ease-in-out infinite floatIcon3D;
  display: flex;
}
.icon-btn svg {
  transition: transform 0.3s;
}
.icon-btn:hover {
  background: #fff3;
  transform: perspective(300px) scale(1.15) rotateX(15deg) rotateY(-10deg) translateZ(15px);
  box-shadow:
    0 12px 20px #0000004d,
    inset 0 4px 8px #ffffff80,
    inset 0 -4px 8px #0003,
    0 0 20px #00e5ff99;
}
.icon-btn:hover svg {
  transform: translateZ(12px) scale(1.1);
}
[data-theme=dark] .icon-btn {
  background: #0003;
  border: 1px solid #ffffff1a;
}
.lang-btn {
  color: #fff;
  cursor: pointer;
  background: var(--primary);
  border: none;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  display: flex;
}
.login-content {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
}
.login-logo-container {
  text-align: center;
  margin-bottom: 2rem;
}
.app-logo {
  object-fit: cover;
  border-radius: 24px;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  animation: 6s ease-in-out infinite pulseRotate;
  box-shadow: 0 8px 24px #00c8504d;
}
.login-title {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 600;
}
.form-group {
  flex-direction: column;
  margin-bottom: 1rem;
  display: flex;
}
.form-group label {
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-inline-start: 4px;
  font-size: 0.85rem;
}
.input-with-icon {
  border-radius: var(--radius-md);
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  display: flex;
}
.input-with-icon input {
  color: var(--text-main);
  background: 0 0;
  border: none;
  outline: none;
  flex: 1;
  font-size: 2rem;
}
.primary-btn {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 2rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px #007aff4d;
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #007aff66;
}
.text-btn {
  color: var(--primary);
  cursor: pointer;
  background: 0 0;
  border: none;
  width: 100%;
  margin-top: 12px;
  font-size: 0.9rem;
}
.login-footer-links {
  border-top: 1px solid #0000000f;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
}
.login-footer-links a {
  color: #6b7280;
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}
.login-footer-links a:hover {
  color: var(--primary);
}
.login-footer-links span {
  color: #d1d5db;
  font-size: 0.7rem;
}
.divider {
  text-align: center;
  color: var(--text-muted);
  align-items: center;
  margin: 20px 0;
  font-size: 0.85em;
  display: flex;
}
.divider:before,
.divider:after {
  content: "";
  border-bottom: 1px solid var(--glass-border);
  flex: 1;
}
.divider span {
  padding: 0 10px;
}
.social-buttons {
  flex-direction: column;
  gap: 12px;
  display: flex;
}
.social-btn {
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-main);
  border: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  font-weight: 600;
  transition: transform 0.2s;
  display: flex;
}
.social-btn:hover {
  transform: translateY(-2px);
}
.error-text {
  color: #ff3b30;
  text-align: center;
  margin-top: 5px;
  font-size: 0.85rem;
}
.main-app {
  flex-direction: column;
  height: 100dvh;
  display: flex;
}
.app-header {
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  display: flex;
}
.header-logo {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}
.header-logo-img {
  object-fit: cover;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  animation: 10s infinite pulseRotate;
  box-shadow: 0 2px 8px #00c8504d;
}
.gls-circle {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 12px;
  font-weight: 800;
  animation: 10s infinite pulseRotate;
  display: flex;
  box-shadow: 0 2px 5px #007aff66;
}
.header-actions {
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  display: flex;
}
.home-empty-state {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  position: relative;
}
.greeting-header {
  text-align: center;
  margin-bottom: 2rem;
}
.greeting-logo {
  object-fit: cover;
  border-radius: 24px;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  animation: 0.8s ease-out fadeIn;
  box-shadow: 0 8px 24px #00c8504d;
}
.greeting-header h1 {
  margin-bottom: 8px;
  font-size: 1.8rem;
  font-weight: 800;
}
.greeting-header h1 span {
  color: var(--primary);
}
.greeting-header .subtitle {
  color: #fff;
  font-size: 3.5rem;
}
.features-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  display: grid;
}
.custom-home-ui .feature-card:after,
.feature-card:after {
  content: "";
  border-radius: inherit;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 5px #00ff6480);
  background: url(/logo.png) 50% / cover no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.feature-card > * {
  z-index: 1;
  position: relative;
}
.feature-card {
  cursor: pointer;
  color: var(--text-main);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  animation: 0.6s ease-out forwards fadeIn;
  overflow: visible;
  background: #fff9 !important;
  border: 1px solid #fff6 !important;
  border-radius: 16px !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 16px 12px !important;
  display: flex !important;
  position: relative !important;
  box-shadow: 0 4px 12px #0000000d !important;
}
div[dir=ltr] .feature-card {
  flex-direction: row-reverse !important;
}
.feature-title {
  text-align: center !important;
  flex: 1 !important;
  margin-left: 30px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}
div[dir=ltr] .feature-title {
  margin-left: 0 !important;
  margin-right: 30px !important;
}
.feature-icon {
  font-size: 1.8rem !important;
  position: absolute !important;
  left: 12px !important;
}
div[dir=ltr] .feature-icon {
  left: auto !important;
  right: 12px !important;
}
html:not([data-button-shape]) .feature-card:nth-child(4n+1),
html[data-button-shape=blobs] .feature-card:nth-child(4n+1) {
  border-radius: 40% 60% 70% 30%/40% 50% 60%;
}
html:not([data-button-shape]) .feature-card:nth-child(4n+2),
html[data-button-shape=blobs] .feature-card:nth-child(4n+2) {
  border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
}
html:not([data-button-shape]) .feature-card:nth-child(4n+3),
html[data-button-shape=blobs] .feature-card:nth-child(4n+3) {
  border-radius: 50% 50% 20% 80%/25% 80% 20% 75%;
}
html:not([data-button-shape]) .feature-card:nth-child(4n+4),
html[data-button-shape=blobs] .feature-card:nth-child(4n+4) {
  border-radius: 80% 20% 50% 50%/50% 50% 20% 80%;
}
html[data-button-shape=stadium] .feature-card {
  border-radius: 50px !important;
}
html[data-button-shape=ghibli] .feature-card {
  background: #fdf5e6f2 !important;
  border: 2px solid #00000014 !important;
  border-radius: 14px 40px !important;
  box-shadow: 4px 4px #00000026 !important;
}
html[data-button-shape=ghibli] .feature-card .feature-title {
  color: #854d0e !important;
}
html[data-button-shape=action] .feature-card {
  background:
    linear-gradient(
      135deg,
      #1e293bf2,
      #0f172afa) !important;
  border-top: 1px solid #fff3 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px #00000080, inset 0 -4px #0006 !important;
}
html[data-button-shape=action] .feature-card .feature-title {
  color: #fff !important;
}
html[data-button-shape=cyberpunk] .feature-card {
  background: #111 !important;
  border: 2px solid #0ff !important;
  border-radius: 0 !important;
  box-shadow: 0 0 10px #0ff, inset 0 0 10px #f0f !important;
}
html[data-button-shape=cyberpunk] .feature-title {
  text-shadow: 0 0 5px #f0f;
  color: #f0f !important;
}
html[data-button-shape=glass] .feature-card {
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  background: #ffffff1a !important;
  border: 1px solid #fff6 !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px #0000001a !important;
}
html[data-button-shape=glass] .feature-title {
  color: #fff !important;
}
html[data-button-shape=neumorph-light] .feature-card {
  background: #e0e5ec !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 9px 9px 16px #a3b1c699, -9px -9px 16px #ffffff80 !important;
}
html[data-button-shape=neumorph-light] .feature-title {
  color: #4d4d4d !important;
}
html[data-button-shape=neumorph-dark] .feature-card {
  background: #1e1e2e !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 6px 6px 12px #14141d, -6px -6px 12px #28283f !important;
}
html[data-button-shape=neumorph-dark] .feature-title {
  color: #e2e8f0 !important;
}
html[data-button-shape=pixel] .feature-card {
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px #000 !important;
}
html[data-button-shape=pixel] .feature-title {
  text-transform: uppercase;
  font-weight: 800;
  color: #000 !important;
  font-family: monospace !important;
}
html[data-button-shape=holographic] .feature-card {
  filter: saturate(1.5);
  background:
    linear-gradient(
      120deg,
      #ffc0cbcc,
      #0ffc,
      #ff0c) !important;
  border: 1px solid #fff9 !important;
  border-radius: 24px !important;
}
html[data-button-shape=holographic] .feature-title {
  text-shadow: 1px 1px 2px #00000080;
  color: #fff !important;
}
html[data-button-shape=metallic] .feature-card {
  background:
    linear-gradient(
      135deg,
      #e0e0e0,
      #fff,
      silver) !important;
  border: 1px solid #999 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 2px 4px #fff, 0 4px 8px #0003 !important;
}
html[data-button-shape=metallic] .feature-title {
  text-shadow: 1px 1px #fff;
  color: #333 !important;
}
html[data-button-shape=gold] .feature-card {
  background:
    linear-gradient(
      135deg,
      #bf953f,
      #fcf6ba,
      #b38728,
      #fbf5b7,
      #aa771c) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 15px #d4af3766 !important;
}
html[data-button-shape=gold] .feature-title {
  text-shadow: 1px 1px #fff;
  color: #222 !important;
}
html[data-button-shape=candy] .feature-card {
  background:
    linear-gradient(
      45deg,
      #ff9a9e 0%,
      #fecfef 99% 100%) !important;
  border: 4px solid #fff !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px #ff9a9e80 !important;
}
html[data-button-shape=candy] .feature-title {
  color: #d32f2f !important;
  font-weight: 800 !important;
}
html[data-button-shape=origami] .feature-card {
  background: #fff !important;
  border: 2px solid #ddd !important;
  border-radius: 0 40px !important;
  box-shadow: -4px 4px #ccc !important;
}
html[data-button-shape=origami] .feature-title {
  color: #555 !important;
}
html[data-button-shape=galaxy] .feature-card {
  background:
    linear-gradient(
      135deg,
      #090a0f,
      #2b1055,
      #6b2682) !important;
  border: 1px solid #fff3 !important;
  border-radius: 20px !important;
  box-shadow: inset 0 0 20px #ffffff1a !important;
}
html[data-button-shape=galaxy] .feature-title {
  text-shadow: 0 0 10px #fff;
  color: #fff !important;
}
html[data-button-shape=leaf] .feature-card {
  background:
    linear-gradient(
      135deg,
      #11998e,
      #38ef7d) !important;
  border: none !important;
  border-radius: 50px 0 !important;
  box-shadow: 0 6px 15px #11998e66 !important;
}
html[data-button-shape=leaf] .feature-title {
  color: #fff !important;
}
html[data-button-shape=sunset] .feature-card {
  background:
    linear-gradient(
      90deg,
      #ff4e50,
      #f9d423) !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 15px #ff4e5066 !important;
}
html[data-button-shape=sunset] .feature-title {
  color: #fff !important;
}
html[data-button-shape=synthwave] .feature-card {
  background: #0b0c10 !important;
  border-top: 1px solid #45f3ff !important;
  border-bottom: 4px solid #ff007f !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 10px #ff007f4d !important;
}
html[data-button-shape=synthwave] .feature-title {
  color: #45f3ff !important;
  text-shadow: 0 0 5px #45f3ff !important;
}
html[data-button-shape=chalkboard] .feature-card {
  background: #2f3e46 !important;
  border: 2px dashed #ffffff80 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 0 10px #00000080 !important;
}
html[data-button-shape=chalkboard] .feature-title {
  color: #edf2f4 !important;
  font-family: Comic Sans MS, cursive !important;
}
html[data-button-shape=blueprint] .feature-card {
  background: #1a5b8f !important;
  border: 1px solid #fff !important;
  border-radius: 4px !important;
  box-shadow: inset 0 0 0 2px #1a5b8f, inset 0 0 0 3px #fff !important;
}
html[data-button-shape=blueprint] .feature-title {
  color: #fff !important;
  font-family: monospace !important;
}
html[data-button-shape=comic] .feature-card {
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 10px !important;
  box-shadow: 6px 6px #000 !important;
}
html[data-button-shape=comic] .feature-title {
  text-transform: uppercase;
  font-style: italic;
  color: #000 !important;
  font-weight: 900 !important;
}
html[data-button-shape=minimalist] .feature-card {
  border: 1px solid var(--text-main) !important;
  box-shadow: none !important;
  background: 0 0 !important;
  border-radius: 8px !important;
}
html[data-button-shape=minimalist] .feature-title {
  font-weight: 300 !important;
}
html[data-button-shape=water-drop] .feature-card {
  background:
    linear-gradient(
      135deg,
      #a1c4fd 0%,
      #c2e9fb 100%) !important;
  border-radius: 50% 50% 50% 0 !important;
  box-shadow: inset -5px -5px 10px #ffffffb3, 4px 4px 10px #0000001a !important;
}
html[data-button-shape=water-drop] .feature-title {
  color: #1e3a8a !important;
}
html[data-button-shape=fire] .feature-card {
  background:
    linear-gradient(
      135deg,
      #ff512f,
      #dd2476) !important;
  border-radius: 50% 0 50% 50% !important;
  box-shadow: 0 4px 15px #dd247666 !important;
}
html[data-button-shape=fire] .feature-title {
  color: #fff !important;
}
html[data-button-shape=ice] .feature-card {
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  background: #e0f2feb3 !important;
  border: 1px solid #fffc !important;
  border-radius: 12px 0 !important;
  box-shadow: 0 4px 10px #bae6fd80 !important;
}
html[data-button-shape=ice] .feature-title {
  color: #0284c7 !important;
}
html[data-button-shape=leather] .feature-card {
  outline-offset: -5px !important;
  background: #5c4033 !important;
  border-radius: 12px !important;
  outline: 1px dashed #ffffff4d !important;
  box-shadow: inset 0 0 10px #0009 !important;
}
html[data-button-shape=leather] .feature-title {
  color: wheat !important;
}
html[data-button-shape=steampunk] .feature-card {
  background:
    linear-gradient(
      135deg,
      #b87333,
      tan) !important;
  border: 4px inset #8b4513 !important;
  border-radius: 5px !important;
  box-shadow: 0 5px 15px #00000080 !important;
}
html[data-button-shape=steampunk] .feature-title {
  color: #3e2723 !important;
  font-family: serif !important;
  font-weight: 800 !important;
}
html[data-button-shape=alien] .feature-card {
  background: #000 !important;
  border: 2px solid #0f0 !important;
  border-radius: 30% 70% 70% 30%/30% 30% 70% 70% !important;
  box-shadow: 0 0 15px #0f0 !important;
}
html[data-button-shape=alien] .feature-title {
  color: #0f0 !important;
}
html[data-button-shape=cloud] .feature-card {
  background: #fff !important;
  border: 2px solid #f0f4f8 !important;
  border-radius: 50vw !important;
  box-shadow: 0 8px 15px #0000000d, inset 0 5px 10px #fffc !important;
}
html[data-button-shape=cloud] .feature-title {
  color: #334155 !important;
}
html[data-button-shape=typewriter] .feature-card {
  background: #fdf5e6 !important;
  border-left: 5px solid #333 !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 5px #0000001a !important;
}
html[data-button-shape=typewriter] .feature-title {
  color: #333 !important;
  font-family: Courier New, monospace !important;
  font-weight: 700 !important;
}
html[data-button-shape=magic] .feature-card {
  background: #2c003e !important;
  border: 1px solid #d400ff !important;
  border-radius: 20px !important;
  box-shadow: 0 0 20px #d400ff80, inset 0 0 10px #d400ff80 !important;
}
html[data-button-shape=magic] .feature-title {
  color: #fff !important;
  text-shadow: 0 0 8px #d400ff !important;
}
html[data-button-shape=hacker] .feature-card {
  box-shadow: none !important;
  background: #000 !important;
  border: 1px solid #0f0 !important;
  border-radius: 0 !important;
}
html[data-button-shape=hacker] .feature-title {
  color: #0f0 !important;
  font-family: monospace !important;
}
html[data-button-shape=blood] .feature-card {
  background: linear-gradient(maroon, #4a0000) !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 5px #ff00004d, 0 5px 15px #00000080 !important;
}
html[data-button-shape=blood] .feature-title {
  color: #fff !important;
}
html[data-button-shape=bubble] .feature-card {
  background:
    radial-gradient(
      circle at 30% 30%,
      #fffc,
      #fff3) !important;
  border: 1px solid #ffffff80 !important;
  border-radius: 50px !important;
  box-shadow: 0 8px 20px #0000001a, inset -5px -5px 15px #0000001a !important;
}
html[data-button-shape=bubble] .feature-title {
  color: #1e40af !important;
}
.feature-card:hover {
  background: var(--primary-gradient);
  color: #fff;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px #00000040;
}
.feature-icon {
  filter: drop-shadow(0 5px 8px #0000004d);
  display: inline-block;
}
.icon-anim-float {
  animation: 4s ease-in-out infinite floatEmoji;
}
.icon-anim-fly {
  animation: 5s linear infinite flyAirplane;
}
.icon-anim-rocket {
  animation: 4s ease-in-out infinite zoomRocket;
}
.icon-anim-spin {
  animation: 6s ease-in-out infinite pulseRotate;
}
.icon-anim-pulse {
  animation: 3s ease-in-out infinite pulseIcon;
}
.media-zoom-hint {
  opacity: 0;
  pointer-events: none;
  background: #0009;
  border-radius: 50%;
  padding: 12px;
  transition: all 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
}
.message-media:hover .media-zoom-hint,
.message-image-wrapper:hover .media-zoom-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.expand-video-btn {
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  background: #000000b3;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 2rem;
  transition: opacity 0.3s;
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
}
.expand-video-btn:hover {
  opacity: 1;
}
.chat-container {
  scroll-behavior: smooth;
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.messages-list {
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
}
.message-row {
  display: flex;
}
.user-row {
  justify-content: flex-end;
}
.bot-row {
  justify-content: flex-start;
}
.message-bubble {
  word-wrap: break-word;
  white-space: pre-wrap;
  border-radius: 20px;
  max-width: 80%;
  padding: 14px 18px;
  font-size: 2rem;
  line-height: 1.5;
  animation: 0.3s ease-out fadeIn;
}
.user-bubble {
  background: var(--primary-gradient);
  color: #fff;
  border-bottom-right-radius: 5px;
}
[dir=rtl] .user-bubble {
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 5px;
}
.bot-bubble {
  color: var(--text-main);
  border-bottom-left-radius: 5px;
}
[dir=rtl] .bot-bubble {
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 20px;
}
.message-media {
  margin-top: 10px;
}
.generated-image,
.generated-video {
  border-radius: 12px;
  max-width: 100%;
}
.generated-audio {
  border-radius: 30px;
  width: 100%;
  margin-top: 8px;
}
.doc-preview-btn {
  background: var(--primary-gradient);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
}
.doc-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #007aff66;
}
.game-card-play {
  color: #22c55e;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.game-card:hover .game-card-play {
  opacity: 1;
  transform: scale(1.2);
}
.game-player-view {
  background: 0 0;
  flex-direction: column;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}
.game-player-header {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 10;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  display: flex;
  background: #0a0a1af2 !important;
}
.game-title {
  color: #fff;
  text-align: center;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
}
.game-iframe {
  background: #0a0a1a;
  border: none;
  flex: 1;
  width: 100%;
  transition: opacity 0.3s;
}
.game-loading {
  z-index: 5;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.game-loading p {
  color: #fff9;
  font-size: 0.9rem;
}
.game-loading-spinner {
  border: 3px solid #ffffff1a;
  border-top-color: #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: 0.8s linear infinite spin;
}
.code-block-container {
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 12px;
  margin: 15px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.code-block-header {
  background: #3a3a3a;
  border-bottom: 1px solid #444;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  display: flex;
}
.code-lang-badge {
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
}
.code-block-actions {
  gap: 8px;
  display: flex;
}
.code-action-btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 2rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
}
.code-action-btn.run-btn {
  color: #fff;
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.code-action-btn.run-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}
.code-action-btn.copy-btn {
  color: #ccc;
  background: #444;
}
.code-action-btn.copy-btn:hover {
  background: #555;
  color: #fff;
}
.code-block-content {
  max-height: 400px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  direction: ltr !important;
  text-align: left !important;
}
.code-block-content code {
  color: #e2e8f0;
  white-space: pre;
  tab-size: 2;
  font-family:
    JetBrains Mono,
    Fira Code,
    SF Mono,
    Cascadia Code,
    monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}
.msg-h1 {
  color: var(--primary);
  margin: 12px 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}
.msg-h2 {
  color: var(--primary);
  margin: 10px 0 5px;
  font-size: 1.15rem;
  font-weight: 700;
}
.msg-h3 {
  margin: 8px 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}
.msg-list-item {
  padding: 2px 0 2px 8px;
}
.msg-divider {
  border: none;
  border-top: 1px solid #0000001a;
  margin: 10px 0;
}
.msg-spacer {
  height: 8px;
}
.inline-code {
  color: #e53e3e;
  background: #007aff14;
  border-radius: 5px;
  padding: 2px 6px;
  font-family: JetBrains Mono, monospace;
  font-size: 0.88em;
  font-weight: 500;
}
.doc-creator-overlay {
  z-index: 1000;
  background: #00000080;
  justify-content: center;
  align-items: flex-end;
  animation: 0.2s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}
.doc-creator-sheet {
  background: var(--card-bg, #f5f5f7);
  border-radius: 24px 24px 0 0;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  max-height: 85dvh;
  animation: 0.3s ease-out slideUp;
  display: flex;
  overflow: hidden;
}
.doc-sheet-header {
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 10px;
  display: flex;
}
.doc-sheet-header h2 {
  font-size: 3.5rem;
  font-weight: 700;
}
.doc-close-btn {
  cursor: pointer;
  color: #808080b3;
  background: 0 0;
  border: none;
  padding: 4px;
}
.doc-back-btn {
  cursor: pointer;
  color: #3b82f6;
  background: 0 0;
  border: none;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
}
.doc-sheet-subtitle {
  text-align: center;
  padding: 0 20px 12px;
}
.doc-sheet-subtitle h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
  font-weight: 700;
}
.doc-sheet-subtitle p {
  color: gray;
  font-size: 2rem;
}
.doc-type-grid {
  flex: 1;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 30px;
  display: grid;
  overflow-y: auto;
}
.doc-type-card {
  cursor: pointer;
  background: #fff;
  border: none;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  box-shadow: 0 2px 8px #0000000f;
}
.doc-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #0000001f;
}
.doc-type-icon-circle {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  display: flex;
}
.doc-type-icon {
  font-size: 3.5rem;
}
.doc-type-name {
  color: #1a1a2e;
  font-size: 0.85rem;
  font-weight: 700;
}
.doc-type-sub {
  color: gray;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.3;
}
.doc-input-sheet {
  max-height: 90dvh;
}
.doc-input-body {
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 0 20px 16px;
  display: flex;
  overflow-y: auto;
}
.doc-input-icon-area {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  display: flex;
}
.doc-input-icon-circle {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  font-size: 2rem;
  display: flex;
}
.doc-input-desc {
  color: gray;
  font-size: 0.85rem;
}
.doc-input-field-area label {
  text-align: right;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}
.doc-input-field-area textarea {
  resize: none;
  direction: rtl;
  background: #fff;
  border: 1px solid #0000001a;
  border-radius: 14px;
  outline: none;
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.doc-input-field-area textarea:focus {
  border-color: #3b82f6;
}
.doc-suggestions-area {
  flex-direction: column;
  gap: 8px;
  display: flex;
}
.doc-suggestions-label {
  color: gray;
  text-align: right;
  font-size: 2rem;
  font-weight: 600;
}
.doc-suggestions-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}
.doc-suggestion-chip {
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 2rem;
  font-weight: 500;
  transition: transform 0.15s, opacity 0.15s;
}
.doc-suggestion-chip:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.doc-generate-btn {
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 20px;
  padding: 14px;
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
}
.doc-generate-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #0003;
}
.doc-generate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.spin-icon {
  animation: 1s linear infinite spin;
}
.settings-overlay {
  z-index: 1000;
  background: #00000080;
  justify-content: center;
  align-items: flex-end;
  animation: 0.2s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}
.settings-sheet {
  background: #f2f2f7;
  border-radius: 24px 24px 0 0;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  animation: 0.3s ease-out slideUp;
  display: flex;
  overflow: hidden;
}
.settings-header {
  border-bottom: 1px solid #0000000f;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
  display: flex;
}
.settings-header h2 {
  font-size: 2rem;
  font-weight: 800;
}
.settings-close {
  color: #3b82f6;
  cursor: pointer;
  background: 0 0;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.settings-body {
  flex: 1;
  padding: 12px 0 30px;
  overflow-y: auto;
}
.settings-section {
  margin-bottom: 20px;
}
.settings-section-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 16px;
  display: flex;
}
.settings-section-title {
  font-size: 0.95rem;
  font-weight: 700;
}
.settings-section-badge {
  color: gray;
  background: #e5e5ea;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
}
.settings-scroll-h {
  scrollbar-width: none;
  gap: 12px;
  padding: 0 16px 4px;
  display: flex;
  overflow-x: auto;
}
.settings-scroll-h::-webkit-scrollbar {
  display: none;
}
.bg-swatch {
  cursor: pointer;
  background: 0 0;
  border: none;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  display: flex;
}
.bg-swatch-box {
  border: 3px solid #0000;
  border-radius: 12px;
  width: 68px;
  height: 68px;
  transition: border-color 0.2s;
  box-shadow: 0 2px 6px #00000026;
}
.bg-swatch.selected .bg-swatch-box {
  border-color: #fff;
}
.swatch-check {
  color: #22c55e;
  font-size: 2rem;
  font-weight: 700;
}
.swatch-label {
  color: gray;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 68px;
  font-size: 0.55rem;
  overflow: hidden;
}
.settings-color-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 0 16px;
  display: grid;
}
.color-swatch {
  cursor: pointer;
  background: 0 0;
  border: none;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  display: flex;
}
.color-circle {
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  transition: transform 0.15s;
  display: flex;
  box-shadow: 0 2px 4px #00000026;
}
.color-swatch.selected .color-circle {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #fff, 0 3px 8px #0003;
}
.font-swatch {
  cursor: pointer;
  background: 0 0;
  border: none;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  display: flex;
}
.font-preview {
  color: #1a1a2e;
  background: #e5e5ea;
  border: 2px solid #e5e5ea;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.15rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
}
.font-preview.active {
  color: #fff;
  background: #3b82f6;
  border-color: #3b82f6;
}
.settings-preview-section {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 16px;
  display: flex;
}
.settings-preview-title {
  color: gray;
  font-size: 2rem;
  font-weight: 700;
}
.settings-preview-card {
  border-radius: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 110px;
  padding: 20px;
  display: flex;
}
.preview-icons {
  gap: 10px;
  display: flex;
}
.settings-rows-container {
  background: #fff;
  border-radius: 12px;
  margin: 0 16px;
  overflow: hidden;
}
.settings-row {
  cursor: pointer;
  text-align: right;
  background: 0 0;
  border: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: background 0.15s;
  display: flex;
}
.settings-row:hover {
  background: #f5f5f5;
}
.settings-row span {
  flex: 1;
  font-weight: 500;
}
.settings-row-icon {
  color: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  display: flex;
}
.row-chevron {
  color: gray;
  flex-shrink: 0;
}
.settings-divider {
  background: #e5e5ea;
  height: 1px;
  margin-right: 58px;
}
.settings-version {
  text-align: center;
  color: gray;
  margin-top: 16px;
  font-size: 0.7rem;
}
.sub-overlay {
  z-index: 1000;
  background: #00000080;
  justify-content: center;
  align-items: flex-end;
  animation: 0.2s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}
.sub-sheet {
  background: #f2f2f7;
  border-radius: 24px 24px 0 0;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  animation: 0.3s ease-out slideUp;
  display: flex;
  overflow: hidden;
}
.sub-header {
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 10px;
  display: flex;
}
.sub-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}
.sub-close {
  color: gray;
  cursor: pointer;
  background: 0 0;
  border: none;
}
.sub-body {
  flex: 1;
  padding: 0 16px 30px;
  overflow-y: auto;
}
.sub-hero {
  text-align: center;
  padding: 10px 0 20px;
}
.sub-hero-icon {
  margin-bottom: 8px;
  font-size: 3rem;
}
.sub-hero h3 {
  margin-bottom: 4px;
  font-size: 2rem;
  font-weight: 800;
}
.sub-hero p {
  color: gray;
  font-size: 0.85rem;
}
.sub-success-banner {
  color: #fff;
  background: #22c55e;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: 0.3s fadeIn;
  display: flex;
}
.sub-plans {
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}
.sub-plan-card {
  background: #fff;
  border-radius: 16px;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px #0000000f;
}
.sub-plan-card:hover {
  transform: translateY(-2px);
}
.sub-plan-card.popular {
  box-shadow: 0 4px 20px #3b82f640;
}
.sub-plan-card.current {
  border: 2px solid #22c55e;
}
.sub-popular-badge,
.sub-current-badge {
  z-index: 1;
  border-radius: 12px;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  position: absolute;
  top: 12px;
  left: 12px;
}
.sub-popular-badge {
  color: #78350f;
  background: #fbbf24;
}
.sub-current-badge {
  color: #fff;
  background: #22c55e;
}
.sub-plan-header {
  text-align: center;
  color: #fff;
  padding: 20px;
}
.sub-plan-icon {
  font-size: 2rem;
}
.sub-plan-header h4 {
  margin: 6px 0 4px;
  font-size: 3.5rem;
  font-weight: 700;
}
.sub-plan-price {
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  display: flex;
}
.sub-price-amount {
  font-size: 3.5rem;
  font-weight: 800;
}
.sub-price-period {
  opacity: 0.85;
  font-size: 2rem;
}
.sub-plan-features {
  padding: 14px 16px;
}
.sub-feature-row {
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.82rem;
  display: flex;
}
.sub-feature-row.included {
  color: #1a1a2e;
}
.sub-feature-row.excluded {
  color: #d1d5db;
}
.sub-feature-check {
  color: #22c55e;
  flex-shrink: 0;
}
.sub-feature-x {
  color: #d1d5db;
  flex-shrink: 0;
}
.sub-plan-btn {
  cursor: pointer;
  border: none;
  border-radius: 12px;
  width: calc(100% - 32px);
  margin: 4px 16px 16px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.sub-plan-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0003;
}
.sub-plan-btn:disabled {
  cursor: default;
}
.sub-guarantee {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  display: flex;
}
.sub-guarantee strong {
  font-size: 0.85rem;
  display: block;
}
.sub-guarantee p {
  color: gray;
  margin: 0;
  font-size: 0.75rem;
}
.sub-current-info {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  display: flex;
}
.sub-current-info button {
  color: #ef4444;
  cursor: pointer;
  background: 0 0;
  border: none;
  margin-right: auto;
  font-size: 2rem;
  font-weight: 600;
}
.sub-payment-overlay {
  z-index: 10;
  background: #00000080;
  justify-content: center;
  align-items: center;
  animation: 0.2s fadeIn;
  display: flex;
  position: absolute;
  inset: 0;
}
.sub-payment-modal {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  padding: 24px;
  animation: 0.3s slideUp;
}
.sub-payment-modal h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 3.5rem;
}
.sub-payment-summary {
  background: #f8fafc;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  font-weight: 600;
  display: flex;
}
.sub-payment-price {
  color: #3b82f6;
  font-weight: 800;
}
.sub-payment-form {
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}
.sub-form-group label {
  color: gray;
  text-align: right;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
}
.sub-form-group input {
  text-align: left;
  direction: ltr;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.sub-form-group input:focus {
  border-color: #3b82f6;
}
.sub-form-row {
  gap: 12px;
  display: flex;
}
.sub-form-row .sub-form-group {
  flex: 1;
}
.sub-payment-methods {
  text-align: center;
  margin-bottom: 16px;
}
.sub-payment-methods span {
  color: gray;
  font-size: 0.75rem;
}
.sub-methods-icons {
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 2rem;
  display: flex;
}
.sub-pay-btn {
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.2s;
  display: flex;
}
.sub-pay-btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.sub-pay-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.sub-secure-note {
  text-align: center;
  color: gray;
  margin-top: 10px;
  font-size: 0.7rem;
}
.sub-gate {
  background:
    linear-gradient(
      135deg,
      #0f0c29,
      #302b63,
      #24243e);
  justify-content: center;
  align-items: center;
  height: 100dvh;
  min-height: 100dvh;
  padding: 20px;
  display: flex;
}
.sub-gate-content {
  text-align: center;
  width: 100%;
  max-width: 520px;
}
.sub-gate-logo {
  object-fit: cover;
  border-radius: 24px;
  width: 100px;
  height: 165px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 30px #0000004d;
}
.sub-gate-content h1 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 800;
}
.sub-gate-content > p {
  color: #ffffffb3;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.sub-gate-logout {
  color: #fff9;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #fff3;
  border-radius: 12px;
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.sub-gate-logout:hover {
  color: #fff;
  background: #ffffff1a;
}
.sub-embedded {
  background: #ffffff0d;
  border-radius: 16px;
  width: 100%;
  max-height: 60dvh;
  padding: 10px 0;
  overflow-y: auto;
}
.sub-embedded .sub-body {
  padding: 0 0 10px;
}
.sub-embedded .sub-hero {
  display: none;
}
.sub-embedded .sub-plan-card {
  box-shadow: 0 2px 10px #0003;
}
.sub-embedded .sub-plan-features {
  color: #1a1a2e;
}
.sub-embedded .sub-guarantee {
  background: #ffffff1a;
  border-color: #fff3;
}
.sub-embedded .sub-guarantee strong {
  color: #fff;
}
.sub-embedded .sub-guarantee p {
  color: #fff9;
}
.loading-bubble {
  text-align: center;
  min-width: 70px;
}
.loading-dots {
  justify-content: center;
  gap: 6px;
  display: flex;
}
.loading-dots span {
  background: var(--primary);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  animation: 1.4s ease-in-out infinite both dotBounce;
  display: inline-block;
}
.loading-dots span:first-child {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}
.input-area {
  z-index: 10;
  padding: 16px 20px;
}
.input-bar {
  border-radius: 30px;
  align-items: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
}
.input-bar input {
  color: var(--text-main);
  background: 0 0;
  border: none;
  outline: none;
  flex: 1;
  padding: 8px 4px;
  font-size: 2rem;
}
.icon-btn.primary-icon {
  background: var(--primary-gradient);
  color: #fff;
}
.send-btn {
  background: var(--primary-gradient);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  transition: transform 0.2s;
  display: flex;
}
.send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px #007aff66;
}
.send-btn:disabled {
  opacity: 0.5;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.stop-btn {
  color: #ff3b30;
  cursor: pointer;
  background: 0 0;
  border: none;
  justify-content: center;
  align-items: center;
  animation: 1s infinite alternate pulseRotate;
  display: flex;
}
.attach-btn {
  color: var(--text-muted);
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 8px;
}
.attachment-preview-grid {
  width: 100%;
  margin-bottom: 12px;
  position: relative;
}
.attachment-count-badge {
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark, #0ea5e9));
  color: #fff;
  letter-spacing: 0.3px;
  border-radius: 20px;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}
.attachment-grid {
  border-radius: 16px;
  gap: 8px;
  display: grid;
  overflow: hidden;
}
.attachment-grid-1 {
  grid-template-columns: 1fr;
  max-width: 200px;
}
.attachment-grid-2 {
  grid-template-columns: 1fr 1fr;
  max-width: 320px;
}
.attachment-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 400px;
}
.attachment-grid-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  max-width: 480px;
}
.attachment-item {
  background: #0000000d;
  border: 2px solid #ffffff26;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.attachment-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px #00000026;
}
.attachment-img {
  object-fit: cover;
  width: 100%;
  height: 165px;
  display: block;
}
.attachment-grid-1 .attachment-img {
  height: 160px;
}
.attachment-grid-2 .attachment-img {
  height: 130px;
}
.attachment-file {
  height: 165px;
  color: var(--primary);
  background:
    linear-gradient(
      135deg,
      #3b82f614,
      #3b82f605);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 8px;
  display: flex;
}
.attachment-file-name {
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
}
.attachment-remove-btn {
  color: #fff;
  cursor: pointer;
  opacity: 0;
  background: #ef4444e6;
  border: 2px solid #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  position: absolute;
  top: 4px;
  right: 4px;
  box-shadow: 0 2px 6px #0003;
}
.attachment-item:hover .attachment-remove-btn {
  opacity: 1;
}
.attachment-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.15);
}
.message-images-grid {
  border-radius: 12px;
  gap: 6px;
  margin-top: 8px;
  display: grid;
  overflow: hidden;
}
.message-images-1 {
  grid-template-columns: 1fr;
  max-width: 280px;
}
.message-images-2 {
  grid-template-columns: 1fr 1fr;
  max-width: 360px;
}
.message-images-3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 420px;
}
.message-image-wrapper {
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}
.message-image-wrapper:hover {
  transform: scale(1.02);
}
.message-grid-img {
  object-fit: cover;
  cursor: pointer;
  width: 100%;
  height: 120px;
  display: block;
}
.message-images-1 .message-grid-img {
  height: 200px;
}
.message-images-2 .message-grid-img {
  height: 160px;
}
.spinner {
  animation: 1s linear infinite pulseRotate;
}
.sidebar-overlay {
  z-index: 100;
  background: #00000073;
  display: flex;
  position: fixed;
  inset: 0;
}
.sidebar {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  flex-direction: column;
  width: 300px;
  max-width: 85vw;
  height: 100dvh;
  animation: 0.3s ease-out slideInLeft;
  display: flex;
  overflow: hidden;
}
[dir=rtl] .sidebar {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.sidebar-header {
  border-bottom: 1px solid var(--glass-border);
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  display: flex;
}
.sidebar-header h3 {
  font-size: 2rem;
  font-weight: 800;
}
.sidebar-new-chat {
  color: var(--primary);
  cursor: pointer;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  background: 0 0;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
  display: flex;
}
.sidebar-new-chat:hover {
  background: #007aff14;
}
.sidebar-list {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.sidebar-conv {
  text-align: start;
  cursor: pointer;
  width: 100%;
  color: var(--text-main);
  border: none;
  border-bottom: 1px solid var(--glass-border);
  background: 0 0;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  transition: background 0.2s;
  display: flex;
}
.sidebar-conv:hover {
  background: #007aff0f;
}
.sidebar-conv span {
  font-size: 0.95rem;
  font-weight: 600;
}
.sidebar-conv small {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.sidebar-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 0.9rem;
}
.sidebar-footer {
  border-top: 1px solid var(--glass-border);
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  display: flex;
}
.sidebar-action {
  color: var(--primary);
  cursor: pointer;
  background: 0 0;
  border: none;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
  display: flex;
}
.sidebar-action:hover {
  background: #007aff14;
}
.sidebar-action.danger {
  color: #ff3b30;
}
.sidebar-action.danger:hover {
  background: #ff3b3014;
}
.fullscreen-overlay {
  background: var(--bg-color);
  z-index: 200;
  flex-direction: column;
  animation: 0.3s ease-out fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}
.games-view {
  flex-direction: column;
  height: 100%;
  display: flex;
  overflow: hidden;
  background: url(/mm.webp) center/cover no-repeat !important;
}
.games-header {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  display: flex;
}
.games-header h2 {
  flex: 1;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  color: white;
}
.games-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
}
.games-search {
  border-radius: 30px;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin: 8px 20px;
  padding: 10px 16px;
  display: flex;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.games-search input {
  color: white;
  background: 0 0;
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
}
.categories-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
  gap: 8px;
  padding: 8px 20px;
  display: flex;
  overflow-x: auto;
}
.categories-scroll::-webkit-scrollbar {
  display: none;
}
.cat-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}
.cat-chip:hover {
  transform: translateY(-2px);
}
.cat-chip.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: #0000;
  box-shadow: 0 2px 8px #007aff4d;
}
.games-grid {
  flex: 1;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 12px 20px;
  display: grid;
  overflow-y: auto;
}
.game-card {
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: start;
  color: var(--text-main);
  border: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
}
.game-card:hover {
  box-shadow: var(--shadow-md);
  background: var(--primary-gradient);
  color: #fff;
  transform: translateY(-3px) scale(1.01);
}
.game-card:hover .game-card-cat {
  color: #ffffffb3;
}
.game-card-icon {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
}
.channel-logo {
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.game-card-info {
  flex-direction: column;
  display: flex;
  overflow: hidden;
}
.game-card-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
}
.game-card-cat {
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  overflow: hidden;
}
.more-games-hint {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 0.9rem;
}
.game-player-header {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  display: flex;
}
.game-title {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
}
.game-iframe {
  border: none;
  flex: 1;
  width: 100%;
}
.tv-player-container {
  background: #000;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
}
.tv-player {
  border-radius: 12px;
  outline: none;
  max-width: 100%;
  max-height: 80dvh;
}
.tv-player-hint {
  color: #888;
  margin-top: 12px;
  font-size: 2rem;
}
.loading-center {
  color: var(--primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 80px 20px;
  font-weight: 600;
  display: flex;
}
.error-center {
  text-align: center;
  color: #ff3b30;
  padding: 40px 20px;
  font-size: 2rem;
  font-weight: 600;
}
@media (width <= 768px) {
  .games-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .message-bubble {
    max-width: 92%;
    font-size: 0.95rem;
  }
  .sidebar {
    width: 85vw;
  }
  .login-scroll {
    justify-content: center !important;
    padding: 10px !important;
  }
  .home-empty-state {
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 100% !important;
    padding: 8px 5px !important;
    overflow-y: auto !important;
  }
  .greeting-logo {
    width: 55px !important;
    height: 55px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    animation: none !important;
  }
  .greeting-header {
    margin-bottom: 10px !important;
  }
  .greeting-header h1 {
    margin-bottom: 2px !important;
    font-size: 1.1rem !important;
  }
  .greeting-header .subtitle {
    font-size: 0.8rem !important;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 6px !important;
  }
  .feature-card {
    border-radius: 16px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80px !important;
    padding: 10px 4px !important;
  }
  .feature-title {
    text-align: center !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    width: 100% !important;
    margin-top: 6px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    overflow: hidden !important;
  }
  .feature-icon {
    margin-bottom: 0 !important;
    font-size: 1.6rem !important;
  }
  .app-header {
    padding: 8px 10px !important;
  }
  .header-actions .icon-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
  }
  .header-actions .icon-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .header-logo img {
    width: 26px !important;
    height: 26px !important;
  }
  .header-logo span {
    font-size: 0.95rem !important;
  }
  .login-page {
    overflow-y: auto !important;
  }
  .login-scroll {
    justify-content: flex-start !important;
    padding: 10px !important;
    overflow-y: auto !important;
  }
  .login-card {
    margin: 10px auto !important;
    padding: 20px 18px !important;
  }
  .lp-logo-wrap {
    margin-bottom: 8px !important;
  }
  .lp-logo {
    width: 65px !important;
    height: 65px !important;
    animation: none !important;
  }
  .lp-title {
    margin-bottom: 12px !important;
    font-size: 1.1rem !important;
  }
  .lp-field {
    margin-bottom: 6px !important;
  }
  .lp-field label {
    margin-bottom: 3px !important;
    font-size: 0.8rem !important;
  }
  .lp-input {
    padding: 9px 12px !important;
  }
  .lp-social-btn {
    padding: 9px !important;
    font-size: 0.9rem !important;
  }
  .lp-apple-btn {
    margin-top: 6px !important;
  }
}
@media (width >= 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
.welcome-screen-bg {
  z-index: 1000;
  background: url(/mm.webp) center/cover no-repeat !important;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  position: relative;
}
.welcome-content {
  text-align: center;
  -webkit-backdrop-filter: blur(20px);
  background: #141423d9;
  border: 1px solid #ffffff0d;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px #00000080;
  color: #fff !important;
}
.welcome-content h1,
.welcome-content h2,
.welcome-content p,
.welcome-content span,
.welcome-content .welcome-subtitle {
  color: #fff !important;
}
.welcome-content h1 {
  margin-bottom: 8px !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
}
.close-welcome {
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1001;
  background: #ffffff1a;
  border-radius: 50%;
  padding: 8px;
  position: absolute;
  top: 20px;
  right: 20px;
}
.welcome-search-wrapper {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}
.welcome-search-icon {
  color: var(--primary);
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}
.welcome-main-input {
  color: #fff;
  background: #0006;
  border: 2px solid #ffffff1a;
  border-radius: 30px;
  outline: none;
  width: 100%;
  padding: 18px 20px 18px 48px;
  font-size: 3.5rem;
  transition: all 0.3s;
}
.welcome-main-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}
.welcome-autocomplete {
  z-index: 50;
  background: #14141ef2;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  flex-direction: column;
  width: 100%;
  max-height: 280px;
  display: flex;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  overflow: hidden auto;
}
.autocomplete-row {
  text-align: left;
  color: #fff;
  background: 0 0;
  border-bottom: 1px solid #ffffff0d;
  align-items: center;
  padding: 12px 16px;
  transition: all 0.2s;
  display: flex;
}
.autocomplete-row:hover {
  background: rgba(var(--primary-rgb), 0.15);
}
.arow-icon {
  margin-right: 12px;
  font-size: 1.4rem;
}
[dir=rtl] .arow-icon {
  margin-left: 12px;
  margin-right: 0;
}
.arow-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-weight: 700;
  overflow: hidden;
}
.arow-cat {
  opacity: 0.6;
  margin-left: auto;
  font-size: 0.75rem;
}
[dir=rtl] .arow-cat {
  margin-left: 0;
  margin-right: auto;
}
.main-app {
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  display: flex;
  overflow: hidden;
}
.main-content-area {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100dvh;
  display: flex;
  position: relative;
}
.sidebar-wrapper {
  pointer-events: none;
  z-index: 1000;
  width: 100%;
  height: 100dvh;
  position: fixed;
  inset: 0;
}
.sidebar-wrapper .sidebar {
  border-inline-end: 1px solid var(--glass-border);
  pointer-events: auto;
  z-index: 1001;
  border-radius: 0;
  width: 300px;
  max-width: 85vw;
  height: 100dvh;
  transition: transform 0.3s ease-out;
  position: absolute;
  transform: translate(-100%);
}
[dir=rtl] .sidebar-wrapper .sidebar {
  border-inline-start: 1px solid var(--glass-border);
  border-inline-end: none;
  transform: translate(100%);
}
.sidebar-wrapper.mobile-open {
  pointer-events: auto;
}
.sidebar-wrapper.mobile-open .sidebar-overlay {
  z-index: -1;
  background: #00000080;
  position: absolute;
  inset: 0;
  display: block !important;
}
.sidebar-wrapper.mobile-open .sidebar {
  transform: translate(0);
}
.sidebar-overlay {
  display: none !important;
}
.input-bar input {
  min-height: 44px;
  font-size: 16px !important;
}
.icon-btn,
.attach-btn,
.send-btn,
.stop-btn,
.sidebar-action,
.sidebar-new-chat,
.sidebar-conv {
  min-height: 44px;
}
.message-bubble {
  overflow-x: auto;
}
.code-block-content {
  overflow-x: auto !important;
}
.menu-btn {
  display: flex !important;
}
.close-sidebar-btn {
  margin-left: auto;
  display: flex !important;
}
@media (width <= 767px) {
  .input-area {
    padding-bottom: max(env(safe-area-inset-bottom), 16px);
    background: var(--bg-color);
  }
}
.chat-container,
.main-content-area {
  min-height: 0 !important;
}
.login-container {
  justify-content: space-evenly;
  overflow-y: auto;
  min-height: 100dvh !important;
}
.gemini-home {
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
}
.gemini-greeting {
  width: 100%;
  margin-bottom: 40px;
}
[dir=rtl] .gemini-greeting {
  text-align: right;
}
[dir=ltr] .gemini-greeting {
  text-align: left;
}
.gemini-greeting h1 {
  color: var(--text-main);
  margin-bottom: 5px;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.2;
}
.gemini-greeting h2 {
  color: var(--text-muted);
  font-size: 2.8rem;
  font-weight: 500;
}
.gemini-features {
  flex-direction: column;
  gap: 14px;
  width: 100%;
  display: flex;
}
[dir=rtl] .gemini-features,
[dir=ltr] .gemini-features {
  align-items: flex-start;
}
.gemini-pill-btn {
  color: #1a1a2e;
  cursor: pointer;
  opacity: 0;
  background: #fff;
  border: 1px solid #0000000d;
  border-radius: 30px;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  font-size: 1.15rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  animation: 0.5s ease-out forwards slideInLeft;
  display: flex;
  box-shadow: 0 4px 15px #00000005;
}
[data-theme=dark] .gemini-pill-btn {
  color: #fff;
  background: #1e1e24;
  border-color: #ffffff0d;
}
.gemini-pill-btn:hover {
  background: #f5f5f7;
  transform: translateY(-2px);
}
[data-theme=dark] .gemini-pill-btn:hover {
  background: #2a2a30;
}
.pill-icon {
  font-size: 1.4rem;
}
@media (width <= 767px) {
  .input-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 24px max(env(safe-area-inset-bottom), 24px) !important;
    background: #fff !important;
    border: none !important;
    border-radius: 32px 32px 0 0 !important;
    box-shadow: 0 -10px 40px #00000014 !important;
  }
  [data-theme=dark] .input-bar {
    background: #1e1e24 !important;
  }
  .input-bar input[type=text] {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
    padding-inline-start: 10px !important;
    font-size: 1.25rem !important;
  }
  .attach-btn,
  .send-btn,
  .stop-btn {
    align-items: justify;
    background: #f0f2f9;
    border-radius: 50%;
    justify-content: center;
    width: 44px;
    height: 44px;
    display: flex;
  }
  [data-theme=dark] .attach-btn {
    background: #2a2a30;
  }
}
.gemini-input-area {
  background: 0 0 !important;
  padding: 16px 20px !important;
}
@media (width <= 767px) {
  .gemini-input-area {
    padding: 10px 16px max(env(safe-area-inset-bottom), 16px) !important;
  }
}
.gemini-input-bar {
  max-width: 800px;
  margin: 0 auto;
  background: #f0f4f9 !important;
  border: none !important;
  border-radius: 28px !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 18px 24px !important;
  display: flex !important;
  box-shadow: 0 4px 15px #00000005 !important;
}
.custom-home-ui .gemini-input-bar {
  border-radius: 24px !important;
  gap: 10px !important;
  padding: 12px 18px !important;
}
[data-theme=dark] .gemini-input-bar {
  background: #1e1e24 !important;
}
.gemini-input-field {
  width: 100% !important;
  color: var(--text-main) !important;
  background: 0 0 !important;
  border: none !important;
  outline: none !important;
  flex: none !important;
  height: auto !important;
  padding: 0 !important;
  font-size: 1.15rem !important;
}
.gemini-input-actions {
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  display: flex !important;
}
.gemini-actions-start,
.gemini-actions-end {
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  display: flex !important;
}
@media (width <= 400px) {
  .gemini-actions-start {
    gap: 4px !important;
  }
}
.gemini-ratio-select {
  color: var(--text-main) !important;
  cursor: pointer !important;
  appearance: auto !important;
  background: 0 0 !important;
  border: 1px solid #8080804d !important;
  border-radius: 20px !important;
  outline: none !important;
  padding: 4px 10px !important;
  font-size: 0.85rem !important;
}
.gemini-ratio-select:hover {
  background: #8080801a !important;
}
.gemini-action-btn {
  cursor: pointer !important;
  color: #444 !important;
  background: 0 0 !important;
  border: none !important;
  border-radius: 50% !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  transition: background 0.2s !important;
  display: flex !important;
}
.gemini-action-btn:hover {
  background: #0000000d !important;
}
[data-theme=dark] .gemini-action-btn {
  color: #ccc !important;
}
[data-theme=dark] .gemini-action-btn:hover {
  background: #ffffff1a !important;
}
.gemini-text-btn {
  cursor: pointer !important;
  color: #444 !important;
  background: 0 0 !important;
  border: none !important;
  border-radius: 20px !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
  display: flex !important;
}
.gemini-text-btn:hover {
  background: #0000000d !important;
}
[data-theme=dark] .gemini-text-btn {
  color: #ccc !important;
}
.gemini-send-btn,
.gemini-stop-btn {
  background: var(--text-main) !important;
  color: var(--bg-color) !important;
  cursor: pointer !important;
  border: none !important;
  border-radius: 50% !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  transition: transform 0.2s !important;
  display: flex !important;
}
.message-actions-row {
  opacity: 0.6;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  transition: opacity 0.2s;
  display: flex;
}
.message-bubble:hover .message-actions-row {
  opacity: 1;
}
.msg-action-btn {
  cursor: pointer;
  color: var(--text-main);
  background: 0 0;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 6px;
  transition: background 0.2s, color 0.2s;
  display: flex;
}
.msg-action-btn:hover {
  color: var(--primary);
  background: #0000000d;
}
[data-theme=dark] .msg-action-btn:hover {
  background: #ffffff1a;
}
.user-bubble .message-actions-row {
  justify-content: flex-end;
}
.bot-bubble .message-actions-row {
  justify-content: flex-start;
}
.feature-icon {
  transform-style: preserve-3d;
  filter: drop-shadow(2px 4px 6px #00000040);
  will-change: transform;
  font-size: 3.5rem;
  animation: 3s ease-in-out infinite float3D;
  display: inline-block;
}
.feature-card:nth-child(2n) .feature-icon {
  animation: 3.5s ease-in-out infinite float3D-alt;
}
.feature-card:nth-child(3n) .feature-icon {
  animation: 4s linear infinite spin3D;
}
.feature-card:nth-child(4n) .feature-icon {
  animation: 2.5s ease-in-out infinite bounce3D;
}
.feature-card:nth-child(5n) .feature-icon {
  animation: 3s ease-in-out infinite wobble3D;
}
.feature-card:hover .feature-icon {
  filter: drop-shadow(0 10px 15px #007aff80);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation-play-state: paused;
  transform: scale(1.25) translateZ(20px) !important;
}
.gemini-send-btn {
  margin-left: 4px;
  margin-right: 4px;
  color: #fff !important;
  cursor: pointer !important;
  width: 44px !important;
  height: 44px !important;
  transform-style: preserve-3d !important;
  background:
    radial-gradient(
      circle at 30% 30%,
      #00c6ff,
      #0072ff) !important;
  border: none !important;
  border-radius: 50% !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  animation: 2s infinite pulse-3d-btn !important;
  display: flex !important;
  box-shadow:
    inset 2px 2px 4px #ffffff80,
    inset -3px -3px 6px #0006,
    0 4px 8px #0072ff66 !important;
}
.gemini-send-btn svg {
  filter: drop-shadow(1px 1px 2px #00000080) !important;
}
.gemini-send-btn:hover:not(:disabled) {
  animation-play-state: paused !important;
  transform: scale(1.15) translateY(-2px) !important;
  box-shadow:
    inset 2px 2px 6px #fff9,
    inset -3px -3px 8px #0006,
    0 8px 15px #0072ff99 !important;
}
.gemini-send-btn:active:not(:disabled) {
  transform: scale(0.95) translateY(2px) !important;
  box-shadow:
    inset -2px -2px 5px #ffffff4d,
    inset 3px 3px 7px #0006,
    0 2px 4px #0072ff4d !important;
}
.gemini-send-btn:disabled,
.gemini-send-btn.disabled {
  color: #888 !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background:
    radial-gradient(
      circle at 30% 30%,
      #555,
      #222) !important;
  animation: none !important;
  transform: none !important;
  box-shadow:
    inset 1px 1px 3px #ffffff1a,
    inset -2px -2px 4px #0000004d,
    0 2px 4px #0003 !important;
}
.media-action-bar {
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 0;
  display: flex;
}
.media-action-btn {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #ffffff1a;
  border: none;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  transition: all 0.3s;
  display: flex;
}
.media-action-btn:hover {
  background: #fff3;
  transform: translateY(-1px);
}
.media-action-btn:first-child {
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb);
}
.media-action-btn:last-child {
  background:
    linear-gradient(
      135deg,
      #22c55e,
      #16a34a);
}
.doc-export-bar {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  display: flex;
}
.doc-export-btn {
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  box-shadow: 0 4px 15px #0003;
}
.doc-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #0000004d;
}
.doc-export-pdf {
  background:
    linear-gradient(
      135deg,
      #ef4444,
      #dc2626) !important;
}
.doc-export-word {
  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8) !important;
}
.doc-export-ppt {
  background:
    linear-gradient(
      135deg,
      #f97316,
      #ea580c) !important;
}
.doc-export-view {
  background:
    linear-gradient(
      135deg,
      #22c55e,
      #16a34a) !important;
}
.doc-result-area {
  flex-direction: column;
  flex: 1;
  display: flex;
  overflow: hidden;
}
.doc-result-success {
  text-align: center;
  color: #22c55e;
  background: #22c55e1a;
  border-radius: 12px;
  margin: 8px 16px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
}
.doc-preview-iframe {
  background: #fff;
  border: none;
  border-radius: 12px;
  flex: 1;
  width: 100%;
  min-height: 400px;
  margin: 8px 16px;
}
.doc-scanner-btn {
  color: #a78bfa;
  cursor: pointer;
  text-align: right;
  background: #8b5cf614;
  border: 2px dashed #8b5cf666;
  border-radius: 16px;
  align-items: center;
  gap: 14px;
  width: calc(100% - 40px);
  margin: 8px 20px 16px;
  padding: 14px 18px;
  transition: all 0.3s;
  display: flex;
}
.doc-scanner-btn:hover {
  background: #8b5cf626;
  border-color: #8b5cf699;
  transform: translateY(-2px);
}
.doc-scanner-btn div {
  flex-direction: column;
  gap: 2px;
  display: flex;
}
.scanner-title {
  color: #c4b5fd;
  font-size: 15px;
  font-weight: 700;
}
.scanner-sub {
  color: #c4b5fdb3;
  font-size: 12px;
}
.doc-scanner-body {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px;
  display: flex;
}
.scanner-video {
  object-fit: cover;
  border: 3px solid #8b5cf666;
  border-radius: 16px;
  width: 100%;
  max-height: 60dvh;
}
.scanner-capture-btn {
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6366f1);
  border: 4px solid #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  transition: transform 0.2s;
  display: flex;
  box-shadow: 0 6px 25px #8b5cf680;
}
.scanner-capture-btn:hover {
  transform: scale(1.1);
}
.scanner-capture-btn:active {
  transform: scale(0.95);
}
.scanner-preview-img {
  object-fit: contain;
  border: 2px solid #ffffff1a;
  border-radius: 16px;
  width: 100%;
  max-height: 55dvh;
}
.scanner-actions {
  gap: 12px;
  width: 100%;
  display: flex;
}
.scanner-retry-btn,
.scanner-process-btn {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
}
.scanner-retry-btn {
  color: #fff;
  background: #ffffff1a;
}
.scanner-process-btn {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6366f1);
  box-shadow: 0 4px 15px #8b5cf666;
}
.scanner-process-btn:hover {
  transform: translateY(-2px);
}
.scanner-process-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.doc-author-fields {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 16px;
  display: flex;
}
.doc-field-row {
  gap: 10px;
  display: flex;
}
.doc-field {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  display: flex;
}
.doc-field label {
  color: #ffffffb3;
  font-size: 13px;
  font-weight: 600;
}
.doc-field input {
  color: #fff;
  background: #ffffff0f;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.3s;
}
.doc-field input:focus {
  background: #ffffff1a;
  border-color: #8b5cf680;
}
.doc-field input[type=date] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}
.translate-lang-area {
  margin-bottom: 10px;
  padding: 0 16px;
}
.translate-lang-area > label {
  color: #fffc;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.translate-lang-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  display: grid;
}
.translate-lang-btn {
  cursor: pointer;
  color: #fff;
  background: #ffffff0a;
  border: 1.5px solid #ffffff1a;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  transition: all 0.3s;
  display: flex;
}
.translate-lang-btn:hover {
  background: #0ea5e926;
  border-color: #0ea5e94d;
}
.translate-lang-btn.active {
  background: #0ea5e933;
  border-color: #0ea5e9;
  box-shadow: 0 0 15px #0ea5e94d;
}
.lang-flag {
  font-size: 20px;
}
.lang-name {
  color: #ffffffb3;
  font-size: 10px;
}
.translate-lang-btn.active .lang-name {
  color: #0ea5e9;
  font-weight: 700;
}
.translate-result-box {
  color: #fff;
  white-space: pre-wrap;
  direction: auto;
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  max-height: 50dvh;
  margin: 10px 0;
  padding: 20px;
  font-size: 16px;
  line-height: 1.9;
  overflow-y: auto;
}
.doc-export-excel {
  background:
    linear-gradient(
      135deg,
      #059669,
      #047857) !important;
}
@media (width <= 500px) {
  .translate-lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .doc-field-row {
    flex-direction: column;
  }
}
.translate-upload-area {
  margin-bottom: 10px;
  padding: 0 16px;
}
.translate-upload-btn {
  color: #7dd3fc;
  cursor: pointer;
  background: #0ea5e90f;
  border: 2px dashed #0ea5e959;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
}
.translate-upload-btn:hover {
  background: #0ea5e91f;
  border-color: #0ea5e980;
  transform: translateY(-1px);
}
.translate-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.translate-file-badge {
  color: #7dd3fc;
  background: #0ea5e91f;
  border: 1px solid #0ea5e94d;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
}
.translate-file-badge button {
  color: #f87171;
  cursor: pointer;
  background: #ffffff26;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 14px;
  display: flex;
}
.translate-file-badge button:hover {
  background: #f8717133;
}
.scanner-enhance-bar {
  justify-content: center;
  gap: 8px;
  width: 100%;
  display: flex;
}
.enhance-opt {
  color: #ffffffb3;
  cursor: pointer;
  text-align: center;
  background: #ffffff0a;
  border: 1.5px solid #ffffff1a;
  border-radius: 12px;
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}
.enhance-opt:hover {
  background: #8b5cf61a;
}
.enhance-opt.active {
  color: #c4b5fd;
  background: #8b5cf633;
  border-color: #8b5cf6;
  box-shadow: 0 0 12px #8b5cf64d;
}
.scanner-save-bar {
  gap: 8px;
  width: 100%;
  display: flex;
}
.scanner-save-btn,
.scanner-share-btn {
  cursor: pointer;
  border: none;
  border-radius: 12px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
}
.scanner-save-btn {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb);
  box-shadow: 0 4px 15px #3b82f64d;
}
.scanner-share-btn {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #22c55e,
      #16a34a);
  box-shadow: 0 4px 15px #22c55e4d;
}
.scanner-save-btn:hover,
.scanner-share-btn:hover {
  transform: translateY(-2px);
}
.music-studio-overlay {
  background: var(--bg-color, #f0f2f9);
  z-index: 1000;
  flex-direction: column;
  animation: 0.3s ease-out fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.music-studio-header {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  display: flex;
}
.music-close-btn {
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: var(--text-main);
  background: #0000000f;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, background 0.2s;
  display: flex;
}
.music-close-btn:hover {
  background: #0000001a;
  transform: scale(1.1);
}
.music-header-title {
  color: var(--text-main);
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
}
.music-studio-body {
  flex: 1;
  padding: 20px 20px 100px;
  overflow-y: auto;
}
.music-studio-intro {
  text-align: center;
  margin-bottom: 28px;
  animation: 0.5s ease-out fadeIn;
}
.music-intro-icon {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  animation: 6s ease-in-out infinite pulseRotate;
  display: flex;
  box-shadow: 0 8px 24px #667eea59;
}
.music-studio-intro h2 {
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}
.music-studio-intro p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.music-genres-grid {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
}
.music-genre-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: none;
  border-radius: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: 0.5s ease-out backwards fadeIn;
  overflow: hidden;
}
.music-genre-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px #0000002e;
}
.music-genre-card:active {
  transform: scale(0.97);
}
.genre-cover {
  aspect-ratio: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}
.genre-emoji {
  filter: drop-shadow(0 4px 12px #0000004d);
  z-index: 1;
  font-size: 3rem;
  transition: transform 0.3s;
}
.music-genre-card:hover .genre-emoji {
  transform: scale(1.15);
}
.genre-play-overlay {
  opacity: 0;
  background: #00000040;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
  display: flex;
  position: absolute;
  inset: 0;
}
.music-genre-card:hover .genre-play-overlay {
  opacity: 1;
}
.genre-label {
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  overflow: hidden;
}
.genre-icon-small {
  font-size: 2rem;
}
.music-generating-view {
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 40px;
  display: flex;
}
.music-gen-content {
  text-align: center;
  max-width: 400px;
  animation: 0.6s ease-out fadeIn;
}
.music-wave-bars {
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 165px;
  margin-bottom: 28px;
  display: flex;
}
.wave-bar {
  background: linear-gradient(#667eea, #764ba2);
  border-radius: 3px;
  width: 5px;
  animation: 1.2s ease-in-out infinite waveAnim;
}
.music-gen-title {
  color: var(--primary);
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
}
.music-gen-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 2rem;
}
.music-gen-steps {
  text-align: start;
  flex-direction: column;
  gap: 12px;
  display: flex;
}
.gen-step {
  color: var(--text-muted);
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: 0.4s ease-out fadeIn;
  display: flex;
}
.gen-step-done {
  color: var(--text-main);
}
.gen-step-active {
  color: var(--primary);
  font-weight: 600;
}
.gen-step-spinner {
  animation: 1s linear infinite spin;
}
.gen-step-check {
  color: #22c55e;
  text-align: center;
  width: 16px;
  font-size: 2rem;
  font-weight: 700;
}
.gen-step-dot {
  text-align: center;
  width: 16px;
  font-size: 2rem;
}
.music-result-view {
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  overflow-y: auto;
}
.music-result-content {
  text-align: center;
  width: 100%;
  max-width: 500px;
  animation: 0.6s ease-out fadeIn;
}
.music-result-title {
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}
.title-icon {
  font-size: 2rem;
}
.music-result-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.music-player-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px #0000001f;
}
.player-cover-wrapper {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.player-cover-wrapper.player-cover-gradient {
  justify-content: center;
  align-items: center;
  display: flex;
}
.player-cover-emoji {
  filter: drop-shadow(0 8px 20px #0006);
  font-size: 5rem;
}
.player-cover-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.player-big-play {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  background: #0000008c;
  border: 2px solid #ffffff4d;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.player-big-play:hover {
  background: #000000b3;
  transform: translate(-50%, -50%) scale(1.1);
}
.player-controls {
  padding: 16px 20px 8px;
}
.player-progress-bar {
  cursor: pointer;
  background: #0000001a;
  border-radius: 3px;
  width: 100%;
  height: 5px;
  overflow: hidden;
}
.player-progress-fill {
  background:
    linear-gradient(
      90deg,
      #667eea,
      #764ba2);
  border-radius: 3px;
  height: 100%;
  transition: width 0.2s;
}
.player-time-row {
  color: var(--text-muted);
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.75rem;
  display: flex;
}
.player-action-buttons {
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 18px;
  display: flex;
}
.player-action-btn {
  color: var(--text-main);
  cursor: pointer;
  background: #0000000d;
  border: none;
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
}
.player-action-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #007aff4d;
}
.music-new-track-btn {
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  border: none;
  border-radius: 16px;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 2rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  box-shadow: 0 6px 20px #667eea59;
}
.music-new-track-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #667eea73;
}
.music-input-area {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 20;
  padding: 12px 16px 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}
.music-input-bar {
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
}
.music-input-field {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  width: 100%;
  color: var(--text-main);
  border-radius: 16px;
  outline: none;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.music-input-field:focus {
  border-color: var(--primary);
}
.music-input-field::placeholder {
  color: var(--text-muted);
}
.music-input-actions {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.music-mode-badge {
  color: #667eea;
  background:
    linear-gradient(
      135deg,
      #667eea1f,
      #764ba21f);
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 2rem;
  font-weight: 600;
  display: inline-flex;
}
.music-send-btn {
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #667eea,
      #764ba2);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
  display: flex;
}
.music-send-btn:hover {
  transform: scale(1.1);
}
@media (width <= 600px) {
  .music-genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .music-studio-intro h2 {
    font-size: 1.05rem;
  }
  .genre-emoji {
    font-size: 3.5rem;
  }
  .music-result-title {
    font-size: 2rem;
  }
  .player-action-buttons {
    gap: 6px;
  }
  .player-action-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .music-gen-title {
    font-size: 2rem;
  }
}
.music-engine-badge {
  color: #667eea;
  letter-spacing: 0.3px;
  background:
    linear-gradient(
      135deg,
      #667eea26,
      #764ba226);
  border: 1px solid #667eea4d;
  border-radius: 10px;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
}
.music-params-card {
  text-align: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  animation: 0.5s ease-out fadeIn;
  display: grid;
}
.music-param {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  display: flex;
}
.param-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.68rem;
  font-weight: 600;
}
.param-value {
  color: var(--text-main);
  word-break: break-word;
  font-size: 0.82rem;
  font-weight: 700;
}
.chord-row {
  color: #667eea;
  font-size: 0.72rem;
}
@media (width <= 400px) {
  .music-params-card {
    grid-template-columns: repeat(2, 1fr);
  }
}
.custom-home-ui {
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
  width: 100%;
  height: 100dvh;
  padding: 16px;
  position: relative;
  display: flex !important;
  overflow: hidden !important;
}
.custom-home-ui .app-header {
  display: none !important;
}
.custom-home-ui .chat-container {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: none !important;
  background: 0 0 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
.custom-home-ui .input-area {
  max-width: 600px;
  margin: 0 auto;
  box-shadow: none !important;
  background: 0 0 !important;
  border: none !important;
  padding: 0 !important;
}
.fh-top-search {
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  --webkit-backdrop-filter: blur(15px);
  text-align: center;
  color: #fff;
  letter-spacing: 1px;
  background: #ffffff1a;
  border: 1px solid #ffffff4d;
  border-radius: 20px;
  max-width: 450px;
  margin: 10px auto 0;
  padding: 8px 16px;
  font-size: 14px;
}
.fh-action-bar {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  --webkit-backdrop-filter: blur(20px);
  background: #ffffff26;
  border: 1px solid #ffffff4d;
  border-radius: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 5px auto 10px;
  padding: 8px;
  display: flex;
  overflow-x: hidden;
  box-shadow: inset 0 2px 10px #ffffff1a, 0 4px 10px #0003;
}
.fh-action-bar button {
  color: #fff;
  cursor: pointer;
  background: 0 0;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 8px;
  transition: all 0.2s;
  display: flex;
}
.fh-action-bar button:hover {
  background: #fff3;
}
.fh-grid-scroll {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding-bottom: 20px;
  display: block;
  position: relative;
  overflow: hidden auto;
}
.custom-home-ui .features-grid {
  z-index: 1;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  display: grid !important;
}
@media (width <= 480px) {
  .custom-home-ui .features-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.custom-home-ui .feature-card {
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  --webkit-backdrop-filter: blur(15px);
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(
      135deg,
      #50b4fa1a 0%,
      #14329633 100%);
  border-top: 2px solid #fff9;
  border-bottom: 2px solid #00000080;
  border-left: 1px solid #fff6;
  border-right: 1px solid #0000004d;
  border-radius: 14px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 105px;
  padding: 12px 6px;
  transition: all 0.3s;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px #00000080, 0 10px 15px #00000080;
}
.custom-home-ui .feature-card:hover {
  filter: brightness(1.2);
  transform: translateY(-2px) scale(1.02);
}
.custom-home-ui .feature-title {
  text-align: center;
  text-shadow: 0 1px 4px #000;
  z-index: 2;
  letter-spacing: -0.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}
@media (width <= 380px) {
  .custom-home-ui .feature-title {
    letter-spacing: -0.2px;
    font-size: 11px;
  }
}
.custom-home-ui .feature-icon {
  filter: drop-shadow(0 4px 6px #000c);
  z-index: 2;
  margin-bottom: -5px;
  font-size: 46px;
}
.custom-home-ui .feature-card:before {
  content: "";
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(#ffffff4d 0%, #0000 100%);
  width: 100%;
  height: 50%;
  position: absolute;
  top: 0;
  left: 0;
}
.fh-bottom-panel {
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  --webkit-backdrop-filter: blur(25px);
  flex-direction: column;
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 450px;
  margin: 0 auto 10px;
  display: flex;
  background: #28323c73 !important;
  border: 1px solid #ffffff4d !important;
  border-radius: 28px !important;
  padding: 12px 16px !important;
  box-shadow: 0 -5px 30px #0006, inset 0 2px 5px #ffffff1a !important;
}
.fh-search-input-wrapper {
  background: #0000004d;
  border: 1px solid #ffffff40;
  border-radius: 20px;
  align-items: center;
  padding: 10px 16px;
  display: flex;
  box-shadow: inset 0 2px 6px #00000080;
}
.fh-search-input-wrapper input {
  color: #fff;
  background: 0 0;
  border: none;
  outline: none;
  flex: 1;
  margin-left: 10px;
  margin-right: -10px;
  font-size: 15px;
  font-weight: 600;
}
.fh-search-input-wrapper input::placeholder {
  color: #fff;
  opacity: 0.8;
  font-weight: 600;
}
.fh-search-icon {
  opacity: 0.9;
  filter: drop-shadow(0 2px 2px #00000080);
  font-size: 20px;
}
.fh-tools-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}
.fh-tool-pill {
  color: #fff;
  cursor: pointer;
  background: #0000004d;
  border: 1px solid #fff3;
  border-radius: 16px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  box-shadow: inset 0 1px 3px #0006;
}
.fh-tools-label {
  color: #fff;
  text-shadow: 0 1px 3px #000c;
  font-size: 15px;
  font-weight: 700;
}
.fh-tool-btn {
  color: #fff;
  cursor: pointer;
  background: #0000004d;
  border: 1px solid #fff3;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  display: flex;
  box-shadow: inset 0 1px 3px #0006;
}
.fh-tool-btn:hover,
.fh-tool-pill:hover,
.fh-search-input-wrapper:focus-within {
  background: #ffffff1a;
  border-color: #fff6;
}
.custom-home-ui .greeting-header {
  display: none !important;
}
.custom-home-ui .home-empty-state {
  max-width: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
.fh-action-bar {
  direction: ltr;
}
.custom-3d-grid {
  background-position: 50%;
  background-size: cover;
  border-radius: 20px;
  position: relative;
  box-shadow: inset 0 0 100px #000c;
  max-width: 1000px !important;
  padding: 40px !important;
}
.custom-3d-grid:before {
  content: "";
  pointer-events: none;
  background: #0003;
  border-radius: 20px;
  position: absolute;
  inset: 0;
}
.custom-3d-grid .features-grid {
  z-index: 2;
  position: relative;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}
@media (width <= 900px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (width <= 600px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: 1fr !important;
  }
  .custom-3d-grid {
    padding: 20px !important;
  }
}
.custom-3d-card.feature-card {
  transition: transform 0.3s, box-shadow 0.3s;
  -webkit-backdrop-filter: blur(8px) !important;
  background: #90ffc840 !important;
  border: 2px solid #ffffffb3 !important;
  border-top: 1px solid #ffffff80 !important;
  border-left: 1px solid #ffffff80 !important;
  border-radius: 20px 0 50px !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  display: flex !important;
  box-shadow: 10px 10px 30px #0006 !important;
}
.custom-3d-card.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 15px 15px 40px #00000080 !important;
}
div[dir=ltr] .custom-3d-card.feature-card {
  border-radius: 0 20px 0 50px !important;
}
.card-top-content {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
  display: flex;
}
div[dir=ltr] .card-top-content {
  flex-direction: row-reverse;
}
.custom-3d-card .feature-title {
  flex: 1;
  color: #fff !important;
  text-shadow: 1px 1px 4px #000c !important;
  text-align: right !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
div[dir=ltr] .custom-3d-card .feature-title {
  text-align: left !important;
}
.feature-3d-img {
  object-fit: contain;
  filter: drop-shadow(0 4px 6px #00000080);
  background: 0 0;
  border-radius: 12px;
  width: 70px;
  height: 70px;
  margin-left: 10px;
}
div[dir=ltr] .feature-3d-img {
  margin-left: 0;
  margin-right: 10px;
}
.card-bottom-content {
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 5px;
  display: flex;
}
.card-bottom-content span {
  letter-spacing: 1px;
  font-family: Inter, sans-serif;
  font-weight: 800;
}
.card-bottom-content span:first-child {
  color: #b4ffb4e6;
  text-shadow: 0 0 5px #00ff6480;
  font-size: 2rem;
}
.card-bottom-content span:last-child {
  color: #fff;
  text-shadow: 0 0 5px #ffffff80;
  font-size: 0.9rem;
}
.custom-3d-grid {
  color: #111 !important;
  background:
    radial-gradient(
      at top,
      #f0f7ff,
      #d4e5fa) !important;
}
.custom-app-card {
  cursor: pointer;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  background: 0 0 !important;
  border: none !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex !important;
  overflow: visible !important;
}
.custom-app-card:hover {
  transform: scale(1.05) !important;
}
.custom-app-card .card-top-content {
  width: 100%;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  display: flex !important;
}
.custom-app-card .feature-3d-img {
  aspect-ratio: 1 !important;
  mix-blend-mode: multiply !important;
  object-fit: contain !important;
  filter: none !important;
  background: 0 0 !important;
  border-radius: 26px !important;
  width: 100% !important;
  max-width: 120px !important;
  height: auto !important;
  margin: 0 !important;
  box-shadow: 0 10px 20px #00000014, 0 4px 8px #0000000a !important;
}
.custom-app-card .feature-title {
  color: #2c3e50 !important;
  text-shadow: none !important;
  text-align: center !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
div[dir=ltr] .custom-app-card .feature-title {
  text-align: center !important;
}
.custom-3d-grid .features-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 30px 15px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 50px 20px !important;
  display: grid !important;
}
@media (width <= 768px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px 10px !important;
    padding: 30px 15px !important;
  }
  .custom-app-card .feature-3d-img {
    border-radius: 22px !important;
    max-width: 100px !important;
  }
  .custom-app-card .feature-title {
    font-size: 0.85rem !important;
  }
}
@media (width <= 480px) {
  .custom-3d-grid .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 8px !important;
    padding: 20px 10px !important;
  }
  .custom-app-card .feature-3d-img {
    border-radius: 18px !important;
    max-width: 85px !important;
  }
  .custom-app-card .feature-title {
    font-size: 0.75rem !important;
  }
}
html[data-theme=theme-heritage] .custom-home-ui .glass-top-nav {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  justify-content: center;
  gap: 20px;
  padding-top: 25px;
}
html[data-theme=theme-heritage] .custom-home-ui .glass-top-nav button {
  background:
    linear-gradient(
      145deg,
      #7c5132,
      #4a2e1b) !important;
  border: 2px solid #2b180d !important;
  border-radius: 50% !important;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 5px rgba(255, 210, 150, 0.4),
    0 8px 12px rgba(0, 0, 0, 0.8),
    inset 0 -3px 5px rgba(0, 0, 0, 0.6) !important;
  transition: transform 0.2s;
}
html[data-theme=theme-heritage] .custom-home-ui .glass-top-nav button:active {
  transform: scale(0.95);
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme=theme-heritage] .custom-home-ui .glass-top-nav button svg {
  color: #e5cd9f !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9));
}
html[data-button-shape=heritage] .custom-home-ui .feature-card {
  background:
    linear-gradient(
      160deg,
      #6b442b,
      #3d2314) !important;
  border: 3px solid #24130a !important;
  border-radius: 12px !important;
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.95),
    inset 0 0 3px rgba(255, 180, 100, 0.2),
    0 8px 15px rgba(0, 0, 0, 0.8) !important;
  color: #e5cd9f !important;
  padding: 15px 10px;
  position: relative;
  overflow: hidden;
}
html[data-button-shape=heritage] .custom-home-ui .feature-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
  color: #ffd299 !important;
  margin-bottom: 5px;
}
html[data-button-shape=heritage] .custom-home-ui .feature-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.9)) sepia(0.6) hue-rotate(-20deg) saturate(1.8) brightness(0.7);
  display: inline-block;
  transition: transform 0.2s ease;
}
html[data-button-shape=heritage] .custom-home-ui .feature-card:before {
  content: "GREENLIGHT";
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  letter-spacing: 4px;
  pointer-events: none;
  z-index: 0;
}
html[data-button-shape=heritage] .custom-home-ui .feature-card:after {
  content: "SMART AI";
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  letter-spacing: 4px;
  pointer-events: none;
  z-index: 0;
}
html[data-button-shape=heritage] .custom-home-ui .feature-title,
html[data-button-shape=heritage] .custom-home-ui .feature-icon {
  position: relative;
  z-index: 1;
}
html[data-theme=theme-heritage] .custom-home-ui .input-area {
  background:
    linear-gradient(
      to bottom,
      #d2b48c,
      #aa855a) !important;
  border: 6px solid #4a2e1b !important;
  border-bottom: none !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.4),
    0 -10px 25px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px #5a3c25 !important;
  padding: 20px;
  margin: 0 auto;
  width: 96%;
  max-width: 900px;
  position: relative;
  backdrop-filter: none !important;
}
html[data-theme=theme-heritage] .custom-home-ui .input-area::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: 0;
  border: 2px solid rgba(255, 210, 150, 0.5);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-input-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-input-field {
  background: rgba(0, 0, 0, 0.08) !important;
  border: 2px solid #5a3c25 !important;
  color: #3b2210 !important;
  font-weight: 800;
  font-size: 3.5rem;
  border-radius: 10px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-input-field::placeholder {
  color: #5a3c25 !important;
  opacity: 0.8;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-action-btn,
html[data-theme=theme-heritage] .custom-home-ui .gemini-send-btn {
  border-radius: 50% !important;
  background:
    linear-gradient(
      145deg,
      #7c5132,
      #4a2e1b) !important;
  border: 2px solid #2b180d !important;
  color: #e5cd9f !important;
  box-shadow: inset 0 2px 2px rgba(255, 210, 150, 0.3), 0 4px 6px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-action-btn svg,
html[data-theme=theme-heritage] .custom-home-ui .gemini-send-btn svg {
  color: #e5cd9f !important;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-input-actions button.glow {
  background:
    linear-gradient(
      145deg,
      #7c5132,
      #4a2e1b) !important;
  border: 2px solid #2b180d !important;
  color: #e5cd9f !important;
  box-shadow: inset 0 2px 2px rgba(255, 210, 150, 0.3), 0 4px 6px rgba(0, 0, 0, 0.6) !important;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-input-actions button.glow span {
  color: #e5cd9f !important;
}
html[data-theme=theme-heritage] .custom-home-ui .gemini-input-actions button.glow .green-orb-3d {
  background:
    radial-gradient(
      circle at 30% 30%,
      #ffd299,
      #c38446) !important;
  box-shadow: 0 0 10px #ffb266 !important;
}
.ai-mode-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
.ai-mode-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(128, 128, 128, 0.25);
  background: rgba(128, 128, 128, 0.06);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family:
    Cairo,
    Inter,
    sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.ai-mode-pill:hover {
  background: rgba(128, 128, 128, 0.12);
  border-color: rgba(128, 128, 128, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.ai-mode-icon {
  font-size: 2rem;
  line-height: 1;
}
.ai-mode-label {
  font-size: 0.82rem;
  font-weight: 700;
}
.ai-mode-badge {
  font-size: 0.6rem;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #8b5cf6);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}
.ai-mode-pill.ai-mode-active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.ai-mode-pill.ai-mode-active.ai-mode-research {
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #1d4ed8);
  border-color: #2563eb;
  color: white;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
}
.ai-mode-pill.ai-mode-active.ai-mode-learning {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  border-color: #059669;
  color: white;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}
.ai-mode-pill.ai-mode-active.ai-mode-think {
  background:
    linear-gradient(
      135deg,
      #8b5cf6,
      #6d28d9);
  border-color: #7c3aed;
  color: white;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}
.ai-mode-pill.ai-mode-active .ai-mode-badge {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}
[data-theme=dark] .ai-mode-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
[data-theme=dark] .ai-mode-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.feature-card-pro {
  position: relative;
  overflow: visible !important;
}
.feature-card-pro::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #ec4899,
      #f59e0b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  animation: shimmer-border 3s ease-in-out infinite;
}
@keyframes shimmer-border {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.feature-badge-pro {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 0.55rem;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      #6366f1,
      #8b5cf6);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 3;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  line-height: 1.4;
  animation: float-badge 2s ease-in-out infinite;
}
[dir=rtl] .feature-badge-pro {
  right: auto;
  left: -4px;
}
@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
.feature-card-with-image {
  overflow: hidden !important;
  min-height: 90px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}
.feature-card-with-image::after {
  display: none !important;
}
.feature-card-with-image:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.2) !important;
}
.feature-card-with-image:hover .feature-card-bg-image img {
  transform: scale(1.1);
  transition: transform 0.6s ease;
}
.feature-card-with-image .feature-card-bg-image img {
  transition: transform 0.6s ease;
}
.feature-card-with-image .feature-title {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
  font-weight: 800 !important;
  color: #ffffff !important;
}
.feature-card-with-image .feature-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.feature-card-with-image .feature-badge-pro {
  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #ef4444) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  font-size: 0.6rem !important;
  padding: 3px 10px !important;
}
html[data-button-shape] .feature-card.feature-card-with-image {
  border-radius: 16px !important;
  overflow: hidden !important;
}
html:not([data-button-shape]) .feature-card.feature-card-with-image {
  border-radius: 16px !important;
  overflow: hidden !important;
}
@media (max-width: 480px) {
  .ai-mode-toggles {
    gap: 5px;
  }
  .ai-mode-pill {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  .ai-mode-label {
    font-size: 0.75rem;
  }
  .ai-mode-icon {
    font-size: 0.85rem;
  }
  .ai-mode-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
  }
}
@media (max-width: 360px) {
  .ai-mode-label {
    display: none;
  }
  .ai-mode-pill {
    padding: 6px 8px;
  }
}
@keyframes adminPanelSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes adminSparkleSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes adminLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.5));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 136, 0, 0.8));
  }
}
@keyframes adminDotBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes adminHeaderShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes adminQuickPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  }
}
.admin-ai-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.admin-ai-panel {
  width: 100%;
  max-width: 880px;
  height: 92dvh;
  max-height: 880px;
  background:
    linear-gradient(
      160deg,
      #e8f5e9 0%,
      #e0f2f1 25%,
      #f3e5f5 50%,
      #fff3e0 75%,
      #fce4ec 100%);
  background-size: 400% 400%;
  animation: adminPanelSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 28px;
  border: 2px solid rgba(16, 185, 129, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 0 60px rgba(16, 185, 129, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-ai-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background:
    linear-gradient(
      135deg,
      #ff8800 0%,
      #ff5722 30%,
      #e91e63 60%,
      #9c27b0 100%);
  background-size: 200% 100%;
  animation: adminHeaderShine 8s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.admin-ai-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%);
  background-size: 200% 100%;
  animation: adminHeaderShine 4s linear infinite;
}
.admin-ai-close {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.admin-ai-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.admin-ai-header-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.admin-ai-logo-pulse {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: adminLogoPulse 2.5s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.admin-ai-header-center h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.admin-ai-subtitle {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-ai-header-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #e91e63;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.admin-ai-quick-bar {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
}
.admin-ai-quick-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.admin-quick-cmd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  color: #333;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  animation: adminQuickPulse 4s ease-in-out infinite;
}
.admin-quick-cmd:nth-child(2) {
  animation-delay: 0.5s;
}
.admin-quick-cmd:nth-child(3) {
  animation-delay: 1s;
}
.admin-quick-cmd:nth-child(4) {
  animation-delay: 1.5s;
}
.admin-quick-cmd:hover {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: #fff;
  border-color: #10b981;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.admin-quick-icon {
  font-size: 3.5rem;
}
.admin-quick-label {
  font-size: 2rem;
}
.admin-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-ai-msg {
  display: flex;
  gap: 10px;
  animation: fadeIn 0.4s ease;
}
.admin-ai-msg-user {
  justify-content: flex-end;
}
[dir=rtl] .admin-ai-msg-user {
  justify-content: flex-start;
}
[dir=rtl] .admin-ai-msg-assistant {
  flex-direction: row-reverse;
}
.admin-ai-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background:
    linear-gradient(
      135deg,
      #ff8800,
      #ff5722);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(255, 87, 34, 0.3);
}
.admin-sparkle-spin {
  animation: adminSparkleSpin 1.5s linear infinite;
}
.admin-ai-bubble {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: 20px;
  position: relative;
}
.admin-ai-bubble-user {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: white;
  border-bottom-right-radius: 6px;
  font-size: 0.94rem;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}
[dir=rtl] .admin-ai-bubble-user {
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 6px;
}
.admin-ai-bubble-assistant {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  color: #1a1a2e;
  border-bottom-left-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
[dir=rtl] .admin-ai-bubble-assistant {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 6px;
}
.admin-ai-response {
  font-size: 0.92rem;
  line-height: 1.75;
}
.admin-ai-response h1 {
  font-size: 1.35rem;
  color: #1a1a2e;
  margin: 10px 0;
  font-weight: 900;
  background:
    linear-gradient(
      135deg,
      #ff5722,
      #e91e63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-ai-response h2 {
  font-size: 1.12rem;
  color: #333;
  margin: 8px 0;
  font-weight: 800;
}
.admin-ai-response h3 {
  font-size: 2rem;
  color: #444;
  margin: 6px 0;
  font-weight: 700;
}
.admin-ai-response strong {
  color: #e91e63;
  font-weight: 800;
}
.admin-ai-response em {
  color: #0288d1;
  font-style: italic;
}
.admin-ai-response li {
  margin: 5px 0;
  padding-left: 10px;
  list-style: none;
}
.admin-ai-response li::before {
  content: "\25cf  ";
  color: #10b981;
  font-size: 0.7em;
}
[dir=rtl] .admin-ai-response li {
  padding-left: 0;
  padding-right: 10px;
}
.admin-ai-response .inline-code {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-family:
    "JetBrains Mono",
    "Fira Code",
    monospace;
  border: 1px solid #fde68a;
}
.admin-text-content {
  word-break: break-word;
}
.admin-ai-time {
  display: block;
  font-size: 0.65rem;
  color: #999;
  margin-top: 8px;
  text-align: right;
}
[dir=rtl] .admin-ai-time {
  text-align: left;
}
.admin-code-block {
  margin: 14px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}
.admin-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: white;
}
.admin-code-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-code-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-code-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.admin-code-action-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.03);
}
.admin-code-content {
  padding: 16px 18px;
  margin: 0;
  overflow-x: auto;
  font-family:
    "JetBrains Mono",
    "Fira Code",
    "Courier New",
    monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #1e293b;
  background: #f0fdf4;
  max-height: 500px;
  overflow-y: auto;
}
.admin-code-collapsed {
  max-height: 200px;
  overflow-y: hidden;
  mask-image:
    linear-gradient(
      to bottom,
      black 70%,
      transparent 100%);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      black 70%,
      transparent 100%);
}
.admin-ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px !important;
  background:
    linear-gradient(
      135deg,
      #fff9c4,
      #fff3e0) !important;
  border: 1px solid #ffe082 !important;
}
.admin-ai-loading-dots {
  display: flex;
  gap: 5px;
}
.admin-ai-loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #ff8800,
      #ff5722);
  animation: adminDotBounce 1.4s ease-in-out infinite;
}
.admin-ai-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.admin-ai-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
.admin-ai-loading-text {
  color: #e65100;
  font-size: 0.88rem;
  font-weight: 700;
}
.admin-ai-input-area {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
}
.admin-ai-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 18px;
  padding: 6px 10px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.admin-ai-input-row:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 4px 15px rgba(16, 185, 129, 0.1);
}
.admin-ai-toggle-cmds {
  background:
    linear-gradient(
      135deg,
      #ff8800,
      #ff5722);
  border: none;
  color: white;
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 136, 0, 0.3);
}
.admin-ai-toggle-cmds:hover {
  transform: scale(1.1) rotate(15deg);
}
.admin-ai-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-family: inherit;
  padding: 10px 6px;
}
.admin-ai-input::placeholder {
  color: #aaa;
}
.admin-ai-send {
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  border: none;
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}
.admin-ai-send:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.45);
}
.admin-ai-send:disabled {
  opacity: 0.35;
  cursor: default;
}
.admin-ai-input-hints {
  margin-top: 10px;
  text-align: center;
  color: #888;
  font-size: 0.73rem;
}
.admin-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-preview-modal {
  width: 100%;
  max-width: 920px;
  height: 82dvh;
  background: #fff;
  border-radius: 20px;
  border: 2px solid #10b981;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}
.admin-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background:
    linear-gradient(
      135deg,
      #10b981,
      #059669);
  color: white;
}
.admin-preview-header h3 {
  color: white;
  font-size: 2rem;
  margin: 0;
  font-weight: 800;
}
.admin-preview-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  display: flex;
}
.admin-preview-header button:hover {
  background: rgba(255, 255, 255, 0.4);
}
.admin-preview-iframe {
  flex: 1;
  border: none;
  background: #fff;
}
.admin-ai-dashboard-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background:
    linear-gradient(
      135deg,
      #ff8800,
      #ff5722);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(255, 87, 34, 0.3);
}
.admin-ai-dashboard-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.45);
}
@media (max-width: 768px) {
  .admin-ai-panel {
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .admin-ai-overlay {
    padding: 0;
  }
  .admin-ai-header-badge {
    display: none;
  }
  .admin-ai-bubble {
    max-width: 92%;
  }
  .admin-quick-cmd {
    padding: 8px 12px;
    font-size: 0.76rem;
  }
  .admin-ai-input {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .admin-ai-messages {
    padding: 14px;
  }
  .admin-ai-input-area {
    padding: 14px;
  }
  .admin-ai-header {
    padding: 14px;
    gap: 10px;
  }
  .admin-code-content {
    font-size: 0.76rem;
    padding: 12px 14px;
  }
  .admin-ai-header-center h2 {
    font-size: 2rem;
  }
}
.old-landing-container {
  width: 100%;
  height: 100dvh;
  background: linear-gradient(rgba(10, 10, 30, 0.45), rgba(15, 12, 41, 0.85)), url(/mm2.webp) center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  font-family: "Cairo", sans-serif;
}
.old-landing-content {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  display: flex;
  justify-content: center;
}
.old-tower {
  width: 100%;
  background: rgba(139, 115, 85, 0.4);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px 40px 0 0;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
  min-height: 90dvh;
  margin-top: 10dvh;
}
.old-tower::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  background-image:
    linear-gradient(
      90deg,
      rgba(139, 115, 85, 0.6) 0%,
      rgba(139, 115, 85, 0.6) 20%,
      transparent 20%,
      transparent 25%,
      rgba(139, 115, 85, 0.6) 25%,
      rgba(139, 115, 85, 0.6) 45%,
      transparent 45%,
      transparent 50%,
      rgba(139, 115, 85, 0.6) 50%,
      rgba(139, 115, 85, 0.6) 70%,
      transparent 70%,
      transparent 75%,
      rgba(139, 115, 85, 0.6) 75%,
      rgba(139, 115, 85, 0.6) 95%,
      transparent 95%);
  border-radius: 5px 5px 0 0;
}
.old-logo-container {
  margin-bottom: 25px;
  z-index: 2;
}
.old-logo-box {
  background:
    linear-gradient(
      135deg,
      #1e293b,
      #0f172a);
  padding: 15px;
  border-radius: 20px;
  border: 1px solid #10b981;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.old-logo-img {
  width: 60px;
  height: 165px;
  margin-bottom: 8px;
}
.old-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.old-logo-text .glow-text {
  color: #10b981;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.old-logo-text .sub-text {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}
.old-action-section {
  width: 100%;
  margin-bottom: 20px;
}
.old-btn-premium {
  width: 100%;
  background:
    linear-gradient(
      to bottom,
      #4c1d95,
      #2e1065);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 3.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.old-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.old-icon-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 30px;
  padding: 10px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.old-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 5px;
}
.old-icon-circle {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
}
.old-icon-item:hover .old-icon-circle {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.old-login-section {
  width: 100%;
  margin-bottom: 30px;
}
.old-btn-login {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px;
  border-radius: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}
.old-btn-login .main-label {
  font-weight: 700;
  font-size: 2rem;
}
.old-btn-login .sub-label {
  font-size: 0.75rem;
  opacity: 0.7;
}
.old-btn-login:hover {
  background: rgba(255, 255, 255, 0.2);
}
.old-pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  margin-bottom: 30px;
}
.old-price-card {
  background: rgba(30, 20, 10, 0.6);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 20px;
  padding: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.old-price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 165, 0, 0.6);
}
.old-price-card.pro {
  border-color: #10b981;
}
.best-seller-badge {
  position: absolute;
  top: -10px;
  background: #f59e0b;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
}
.card-header {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.card-price .amount {
  font-size: 2rem;
  font-weight: 800;
}
.card-price .details {
  font-size: 0.7rem;
  opacity: 0.8;
}
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-size: 0.7rem;
  text-align: center;
}
.card-features li {
  margin-bottom: 5px;
}
.card-features li::before {
  content: "\2713";
  margin-inline-end: 5px;
  color: #10b981;
}
.card-btn {
  width: 100%;
  background: #10b981;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 2rem;
  cursor: pointer;
}
.old-price-card.edu .card-btn {
  background: #6366f1;
}
.old-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}
.footer-links {
  display: flex;
  gap: 10px;
  font-size: 0.7rem;
  color: #fff;
  opacity: 0.7;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
}
.payment-icons {
  display: flex;
  gap: 15px;
}
.pay-logo {
  height: 20px;
  filter: brightness(0) invert(1);
}
@media (max-width: 480px) {
  .old-tower {
    margin-top: 5dvh;
    padding: 20px 15px;
  }
  .old-pricing-row {
    grid-template-columns: 1fr;
  }
}
.projector-container {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  margin-bottom: 20px;
}
.projector-casing {
  width: 320px;
  height: 20px;
  background: #1e293b;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
}
.projector-screen {
  width: 300px;
  height: 180px;
  background: #000;
  border: 2px solid #334155;
  border-top: none;
  border-radius: 0 0 8px 8px;
  position: relative;
  transform-origin: top;
  animation: screenUnroll 1.5s ease-out forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
.projector-content {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.projector-content img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
  animation: flicker 4s infinite;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.projector-tab {
  width: 30px;
  height: 10px;
  background: #94a3b8;
  border-radius: 0 0 10px 10px;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}
.projection-light {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background:
    radial-gradient(
      circle,
      rgba(16, 185, 129, 0.15) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}
@keyframes screenUnroll {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.92;
  }
  52% {
    opacity: 1;
  }
  80% {
    opacity: 0.95;
  }
}
.tv-projector-frame {
  background: #000;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
}
.projection-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background:
    conic-gradient(
      from 180deg at 50% 0%,
      transparent 160deg,
      rgba(255, 255, 255, 0.03) 180deg,
      transparent 200deg);
  pointer-events: none;
  z-index: 5;
}
.projector-screen-overlay {
  width: 95%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: #111;
  border: 10px solid #222;
  border-bottom: 25px solid #1a1a1a;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 1);
}
.projector-screen-overlay:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100.5%;
  height: 5px;
  background: #333;
}
.simulated-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.simulated-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anim-zoom-cinematic {
  animation: zoomCinematic 10s ease-in-out infinite alternate;
}
.anim-motion-light {
  animation: lightMotion 12s linear infinite;
  filter: contrast(1.1) brightness(1.1);
}
.sim-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}
@keyframes zoomCinematic {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.15);
  }
}
@keyframes lightMotion {
  0% {
    transform: scale(1.1) translateX(-2%);
    filter: contrast(1.1) brightness(1.1) blur(0px);
  }
  50% {
    transform: scale(1.1) translateX(2%);
    filter: contrast(1.1) brightness(1.2) blur(0.5px);
  }
  100% {
    transform: scale(1.1) translateX(-2%);
    filter: contrast(1.1) brightness(1.1) blur(0px);
  }
}
.simulated-video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.02),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.02));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0.4;
}
.mkt-3d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
  padding: 0 8px;
}
.mkt-3d-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.mkt-3d-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 4s infinite;
}
.mkt-3d-btn:hover {
  transform: translateY(-6px) scale(1.05);
}
.mkt-3d-btn:active {
  transform: translateY(2px);
}
.mkt-3d-icon {
  font-size: 3.5rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  display: inline-block;
  animation: bounceIcon 3s infinite ease-in-out;
}
.mkt-3d-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.btn-store {
  background:
    linear-gradient(
      135deg,
      #a855f7 0%,
      #eab308 100%);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}
.btn-store:hover {
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.6);
}
.btn-ai {
  background:
    linear-gradient(
      135deg,
      #06b6d4 0%,
      #3b82f6 100%);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
}
.btn-ai:hover {
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.6);
}
.btn-support {
  background:
    linear-gradient(
      135deg,
      #10b981 0%,
      #059669 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.btn-support:hover {
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.6);
}
.login-split-wrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  .login-split-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}
.tiktok-side-card {
  width: 100%;
  max-width: 400px;
  background: rgba(15, 15, 26, 0.75);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(254, 44, 85, 0.3);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(254, 44, 85, 0.25), 0 0 50px rgba(37, 244, 238, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4dvh auto 20px;
  animation: floatMonitor 8s ease-in-out infinite;
  border-image:
    linear-gradient(
      135deg,
      #fe2c55,
      #25f4ee) 1;
  border-radius: 30px;
}
.tiktok-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tiktok-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fe2c55;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(254, 44, 85, 0.6);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
.cinematic-strip-container {
  width: 100%;
  overflow: hidden;
  direction: ltr !important;
  padding: 20px 0;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(15px);
  border-top: 2.5px solid rgba(254, 44, 85, 0.35);
  border-bottom: 2.5px solid rgba(37, 244, 238, 0.35);
  margin-bottom: 30px;
  position: relative;
  perspective: 1500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}
.cinematic-marquee {
  display: flex;
  width: max-content;
  animation: scrollMarquee 50s linear infinite;
  padding: 10px 0;
  will-change: transform;
}
.cinematic-strip {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}
.cinematic-card {
  width: 290px;
  height: 165px;
  background: #09090d;
  border: 4px solid #14141c;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transform: translateZ(0px);
  flex-shrink: 0;
}
.cinematic-card::before,
.cinematic-card::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  background-image:
    repeating-linear-gradient(
      90deg,
      #ffffff 0px,
      #ffffff 8px,
      transparent 8px,
      transparent 16px);
  opacity: 0.18;
  z-index: 5;
}
.cinematic-card::before {
  top: 5px;
}
.cinematic-card::after {
  bottom: 5px;
}
.cinematic-card:hover {
  transform: translateZ(40px) scale(1.08);
  border-color: #fe2c55;
  box-shadow: 0 18px 40px rgba(254, 44, 85, 0.5), 0 0 25px rgba(37, 244, 238, 0.3);
}
.cinematic-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) contrast(1.15);
  transition: all 0.4s;
}
.cinematic-card:hover .cinematic-thumb {
  filter: brightness(0.85) contrast(1.25);
}
.cinematic-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px;
  height: 44px;
  background: rgba(254, 44, 85, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 0 15px #fe2c55;
  z-index: 4;
}
.cinematic-card:hover .cinematic-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cinematic-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  z-index: 3;
  line-height: 1.4;
  text-align: right;
  direction: rtl;
}
.projector-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
}
.projector-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(2px) brightness(0.8);
  z-index: 1;
}
.projector-text-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  direction: rtl;
  color: #fff;
  font-family: "Inter", sans-serif;
  animation: contentFadeIn 1s ease-out;
}
.projector-text-overlay h2 {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #25f4ee;
  text-shadow: 0 0 10px rgba(37, 244, 238, 0.5);
}
.projector-text-overlay p {
  font-size: 0.55rem;
  line-height: 1.4;
  margin-bottom: 5px;
  opacity: 0.9;
}
.projector-text-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.projector-text-overlay li {
  font-size: 0.5rem;
  margin-bottom: 3px;
  padding-right: 12px;
  position: relative;
}
.projector-text-overlay li::before {
  content: "\2022";
  position: absolute;
  right: 0;
  color: #fe2c55;
}
@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
.cinematic-ad-ticker {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  height: 165px;
  display: flex;
  align-items: center;
}
.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 10;
  background:
    linear-gradient(
      90deg,
      #3b82f6,
      #10b981);
  color: white;
  padding: 0 15px;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}
.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}
.ticker-content {
  display: flex;
  align-items: center;
  animation: ticker-scroll 30s linear infinite;
  padding-left: 100px;
}
.ticker-content span {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  letter-spacing: 4px;
  margin: 0 20px;
}
.ticker-dot {
  color: #3b82f6;
  font-size: 1.5rem;
  margin: 0 10px;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
[dir=rtl] .ticker-label {
  left: auto;
  right: 0;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}
[dir=rtl] .ticker-content {
  animation: ticker-scroll-rtl 30s linear infinite;
  padding-left: 0;
  padding-right: 100px;
}
@keyframes ticker-scroll-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}
.fairy-lights-wrapper {
  position: absolute;
  inset: 0px;
  pointer-events: none;
  z-index: 12;
  border-radius: 14px;
}
.fairy-bulb {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color);
  box-shadow: 0 0 4px var(--color), 0 0 10px var(--color);
  animation: fairyBlink 1s infinite alternate;
  animation-delay: var(--delay);
}
.fairy-bulb::before {
  content: "";
  position: absolute;
  background: #111;
  border-radius: 1px;
}
.top-light {
  transform: translateY(-50%);
}
.top-light::before {
  top: -2px;
  left: 2px;
  width: 2px;
  height: 2px;
}
.bottom-light {
  transform: translateY(50%);
}
.bottom-light::before {
  bottom: -2px;
  left: 2px;
  width: 2px;
  height: 2px;
}
.left-light {
  transform: translateX(-50%);
}
.left-light::before {
  left: -2px;
  top: 2px;
  width: 2px;
  height: 2px;
}
.right-light {
  transform: translateX(50%);
}
.right-light::before {
  right: -2px;
  top: 2px;
  width: 2px;
  height: 2px;
}
@keyframes fairyBlink {
  0% {
    opacity: 0.25;
    filter: brightness(0.6);
    box-shadow: 0 0 2px var(--color);
  }
  100% {
    opacity: 1;
    filter: brightness(1.6);
    box-shadow:
      0 0 8px var(--color),
      0 0 16px var(--color),
      0 0 24px var(--color);
  }
}
.side-ad-ticker {
  position: fixed;
  top: 310px;
  bottom: 5%;
  width: 220px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 244, 238, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  z-index: 1000;
  padding: 15px 0;
}
.side-ad-ticker.ticker-left {
  left: 25px;
}
.side-ad-ticker.ticker-right {
  right: 25px;
}
.side-ticker-label {
  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #10b981);
  color: white;
  width: 100%;
  padding: 16px 0;
  text-align: center;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: normal !important;
  text-transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.side-ticker-wrapper {
  flex: 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 15px;
}
.side-ticker-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  animation: ticker-vertical-scroll 25s linear infinite;
  white-space: nowrap;
}
.side-ticker-content span {
  font-size: 1.95rem;
  font-weight: 900;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  letter-spacing: normal !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
  transition: color 0.3s;
}
.side-ticker-content span:hover {
  color: #10b981;
}
.side-ticker-dot {
  font-size: 1.3rem !important;
  color: #3b82f6 !important;
  writing-mode: horizontal-tb !important;
}
.side-ad-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition:
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  width: 90%;
  margin: 10px 0;
  writing-mode: horizontal-tb;
  overflow: hidden;
}
.side-ad-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.side-ad-card-title {
  font-size: 0.95rem !important;
  font-weight: bold;
  color: #fff;
  text-align: center;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed;
  white-space: normal;
  line-height: 1.2;
  text-transform: none !important;
  margin-top: 5px;
}
@keyframes ticker-vertical-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
@media (max-width: 1300px) {
  .side-ad-ticker {
    width: 110px;
    top: 420px;
    bottom: 10%;
    padding: 10px 0;
  }
  .side-ad-ticker.ticker-left {
    left: 8px;
  }
  .side-ad-ticker.ticker-right {
    right: 8px;
  }
  .side-ticker-label {
    font-size: 1.05rem;
    padding: 8px 0;
    letter-spacing: normal !important;
  }
  .side-ticker-content {
    gap: 15px;
  }
  .side-ticker-content span {
    font-size: 1.15rem;
    letter-spacing: normal !important;
  }
  .side-ticker-dot {
    font-size: 1.1rem !important;
  }
}
@media (max-width: 900px) {
  .side-ad-ticker {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    height: 90px !important;
    flex-direction: row !important;
    align-items: center !important;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: none !important;
    padding: 0 10px !important;
    gap: 0 !important;
    z-index: 9999 !important;
    background: rgba(5, 15, 12, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1.5px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
  }
  .side-ad-ticker.ticker-right {
    display: none !important;
  }
  .side-ad-ticker.ticker-left {
    display: flex !important;
  }
  .side-ticker-label {
    display: none !important;
  }
  .side-ticker-wrapper {
    flex: 1 !important;
    width: 100% !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    height: 90px !important;
  }
  .side-ticker-content {
    flex-direction: row !important;
    gap: 16px !important;
    animation: ticker-horizontal-scroll 30s linear infinite !important;
    white-space: nowrap !important;
    align-items: center !important;
    height: 90px !important;
  }
  .side-ad-card {
    flex-direction: row !important;
    width: auto !important;
    min-width: 130px !important;
    margin: 0 6px !important;
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
    height: 70px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }
  .side-ad-card img {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  .side-ad-card-title {
    font-size: 0.75rem !important;
    white-space: normal !important;
    max-width: 70px !important;
    line-height: 1.1 !important;
  }
  .login-scroll {
    padding-bottom: 100px !important;
  }
}
@keyframes ticker-horizontal-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 900px) {
  .login-page {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .ipad-card-3d {
    max-width: 95vw !important;
    min-height: unset !important;
    margin: 2dvh auto 10px !important;
  }
}
.cinematic-video-strip {
  width: 100%;
  background: transparent;
  padding: 16px 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.filmstrip-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
}
.filmstrip-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: filmstrip-scroll 40s linear infinite;
}
.filmstrip-track:hover {
  animation-play-state: paused;
}
@keyframes filmstrip-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
[dir=rtl] .filmstrip-track {
  animation: filmstrip-scroll-rtl 40s linear infinite;
}
.filmstrip-track:hover {
  animation-play-state: paused;
}
@keyframes filmstrip-scroll-rtl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
.film-card {
  flex: 0 0 260px;
  height: 140px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.film-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.3);
}
.film-card::before {
  content: "\2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}
.film-card::after {
  content: "\2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 4px;
  line-height: 1;
  text-align: center;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}
@keyframes cardFairyBlink {
  0% {
    opacity: 0.35;
    filter: brightness(0.7);
  }
  100% {
    opacity: 1;
    filter: brightness(1.7);
  }
}
@media (max-width: 768px) {
  .login-bg-video-wrapper,
  .login-cinematic-overlay,
  .mockup-zoom-controls {
    display: none !important;
  }
  .login-page {
    background: url(/mm.webp) center/cover no-repeat #040a09 !important;
    background-attachment: scroll !important;
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
    min-height: 100dvh !important;
  }
  .login-top-bar {
    position: absolute !important;
    top: 138px !important;
    right: 16px !important;
    width: auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
    z-index: 200 !important;
  }
  .lp-lang-btn {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .login-scroll {
    flex: 1 !important;
    width: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 40px 0 80px !important;
  }
  .ipad-card-3d {
    display: flex !important;
    flex-direction: column !important;
    width: 90% !important;
    max-width: 340px !important;
    min-height: auto !important;
    height: auto !important;
    margin: 10px auto 20px !important;
    padding: 10px !important;
    border: 8px solid #1c2533 !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
    zoom: 1 !important;
    background: #12161f !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    animation: mobileIpadFloat 6s ease-in-out infinite !important;
    transform-style: flat !important;
    backface-visibility: visible !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .ipad-card-3d.device-phone {
    max-width: 275px !important;
    padding: 6px !important;
    border: 10px solid #1c2533 !important;
    border-radius: 42px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .ipad-inner-screen {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 12px 14px 20px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    transition: border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .device-phone .ipad-inner-screen {
    border-radius: 34px !important;
  }
  .mockup-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    padding-top: 4px !important;
  }
  .mockup-controls button {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }
  .mockup-color-selector {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }
  .mockup-color-selector button {
    width: 18px !important;
    height: 18px !important;
    border-width: 1px !important;
  }
  .cinematic-video-strip {
    display: block !important;
    height: 126px !important;
    padding: 8px 0 !important;
    margin: 0 auto 12px !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
    overflow: hidden !important;
    position: relative !important;
  }
  .filmstrip-container {
    width: 100% !important;
    height: 110px !important;
    overflow: hidden !important;
    display: flex !important;
    position: relative !important;
  }
  .filmstrip-track {
    display: flex !important;
    flex-shrink: 0 !important;
    width: max-content !important;
    gap: 16px !important;
    height: 110px !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  .film-card {
    flex: 0 0 200px !important;
    width: 200px !important;
    height: 110px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
  }
  .film-card::before,
  .film-card::after {
    content: "\2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591  \2591" !important;
    font-size: 7px !important;
    letter-spacing: 2px !important;
  }
  .side-ad-ticker.ticker-left {
    display: none !important;
  }
  .side-ad-ticker.ticker-right {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 56px !important;
    flex-direction: row !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    z-index: 1000 !important;
    background: rgba(4, 10, 9, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6) !important;
  }
  .side-ticker-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 52px !important;
    font-size: 0.65rem !important;
    background:
      linear-gradient(
        135deg,
        #7c3aed,
        #a855f7) !important;
    font-weight: 900 !important;
    color: white !important;
    border-bottom: none !important;
    border-right: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    text-align: center !important;
    writing-mode: horizontal-tb !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.5px !important;
  }
  .side-ticker-wrapper {
    flex: 1 !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  .side-ticker-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    height: 100% !important;
    width: max-content !important;
    animation: ticker-horizontal-scroll 24s linear infinite !important;
    will-change: transform !important;
  }
  .side-ad-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 40px !important;
    width: auto !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
  }
  .side-ad-card img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    margin-bottom: 0 !important;
    object-fit: cover !important;
    display: block !important;
  }
  .side-ad-card-title {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: bold !important;
    color: #fff !important;
    white-space: nowrap !important;
    margin-top: 0 !important;
    line-height: 1 !important;
  }
  .side-ad-card div {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    color: #10b981 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }
}
@keyframes mobileIpadFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}
.h-screen {
  height: 100dvh !important;
}
.min-h-screen {
  min-height: 100dvh !important;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* src/QuizView.css */
.quiz-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #1a1a1a;
  background: #fdfdfd;
  animation: quizFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.quiz-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
  flex-shrink: 0;
}
.quiz-header-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.quiz-back-btn {
  background: #000000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.quiz-back-btn:hover {
  background: #333333;
  transform: rotate(90deg);
}
.quiz-title-text {
  margin: 0;
  font-size: 1.25rem;
  color: #000000;
  font-weight: 800;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quiz-header-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.timer-badge,
.progress-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fafafa;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.timer-badge {
  border-width: 1.5px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.timer-text {
  min-width: 50px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-badge {
  color: #333;
}
.current-num {
  color: #000;
  font-weight: 900;
}
.separator {
  color: #aaa;
  font-weight: 400;
  margin: 0 2px;
}
.total-num {
  color: #666;
}
.timer-progress-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}
.timer-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s linear, background-color 0.5s;
}
.quiz-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-overflow-scrolling: touch;
}
.question-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}
.question-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 15px;
}
.stat-item {
  font-size: 1rem;
  color: #555;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.highlight-num {
  font-weight: 900;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: 8px;
}
.question-image-container {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px;
}
.question-image {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: 8px;
}
.question-text {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 5px 0 15px;
}
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  min-height: 60px;
  background: #ffffff;
  border: 2px solid #eaeaea;
  border-radius: 16px;
  color: #333333;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: start;
}
.option-content-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}
.option-feedback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.option-btn:hover:not(:disabled) {
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}
.option-btn.selected {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.option-letter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #000000;
  flex-shrink: 0;
  transition: all 0.3s;
}
.option-btn.selected .option-letter {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.option-text {
  flex: 1;
  line-height: 1.5;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding-bottom: 20px;
}
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 25px;
  border-radius: 16px;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  max-width: 200px;
}
.prev-btn {
  background: #f0f0f0;
  color: #1a1a1a;
}
.prev-btn:hover:not(:disabled) {
  background: #e0e0e0;
}
.prev-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.next-btn {
  background: #000000;
  color: #ffffff;
  margin-inline-start: auto;
}
.next-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.submit-btn {
  background: #10b981;
  color: #ffffff;
  margin-inline-start: auto;
}
.submit-btn:hover {
  background: #059669;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}
.quiz-results-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  overflow-y: auto;
  max-height: 100%;
  background: #ffffff;
  color: #1a1a1a;
}
.results-header {
  text-align: center;
}
.trophy-icon {
  color: #fbbf24;
  animation: trophyBounce 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes trophyBounce {
  0% {
    transform: scale(0) translateY(50px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
.results-header h2 {
  margin: 15px 0 0;
  font-size: 2rem;
  font-weight: 900;
  color: #000000;
}
.time-up-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 700;
  margin-top: 10px;
}
.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.score-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.score-percent {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000000;
}
.score-fraction {
  font-size: 1rem;
  font-weight: 700;
  color: #666666;
}
.result-grade {
  font-size: 1.4rem;
  font-weight: 900;
  color: #000000;
  padding: 10px 20px;
  background: #f8f8f8;
  border-radius: 12px;
}
.answers-review {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}
.answers-review h3 {
  margin: 0 0 25px;
  color: #000;
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
}
.review-item {
  background: #fafafa;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eaeaea;
}
.review-item.correct {
  border-left: 5px solid #10b981;
}
.review-item.wrong {
  border-left: 5px solid #ef4444;
}
.review-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}
.review-question-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}
.review-question {
  font-size: 1.15rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 15px 0;
}
.review-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem;
  color: #555;
  background: #fff;
  border: 1px solid #ddd;
}
.review-opt-text {
  flex: 1;
  padding-right: 10px;
}
.review-option.correct-answer {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
  color: #059669;
  font-weight: 700;
}
.review-option.wrong-answer {
  background: rgba(239, 68, 68, 0.05);
  border-color: #ef4444;
  color: #dc2626;
}
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
  width: 100%;
}
.retry-btn,
.back-btn-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
  min-width: 150px;
  max-width: 300px;
}
.retry-btn {
  background: #000;
  color: #fff;
}
.back-btn-result {
  background: #f0f0f0;
  color: #1a1a1a;
}
@media (min-width: 768px) {
  .quiz-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
  }
  .quiz-header-top {
    flex: 1;
  }
  .timer-progress-bar {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    border-radius: 0;
    height: 4px;
    margin: 0;
  }
  .quiz-header {
    position: relative;
  }
  .quiz-content-scroll {
    padding: 30px;
  }
  .question-card {
    padding: 40px;
  }
  .question-text {
    font-size: 1.6rem;
  }
  .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .quiz-header {
    padding: 12px 15px;
    gap: 12px;
  }
  .quiz-title-text {
    font-size: 1.1rem;
  }
  .timer-badge,
  .progress-badge {
    padding: 6px 12px;
    font-size: 1rem;
  }
  .quiz-content-scroll {
    padding: 15px;
  }
  .question-card {
    padding: 20px 15px;
    border-radius: 16px;
  }
  .question-text {
    font-size: 1.25rem;
  }
  .option-btn {
    padding: 12px 15px;
    min-height: 55px;
  }
  .option-letter {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .option-text {
    font-size: 1rem;
  }
  .nav-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* src/LearningView.css */
.learning-view-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
}
.learning-sheet {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  width: 100%;
  max-width: 950px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}
.learning-sheet.quiz-mode {
  max-width: 1100px;
  max-height: 95dvh;
  padding: 20px;
  background: #ffffff;
}
.learning-header {
  padding: 25px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.learning-header h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.learning-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.learning-close:hover {
  background: #000000;
  color: #ffffff;
  transform: rotate(90deg);
}
.learning-body {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
  background: #fdfdfd;
}
.learning-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.grid-row {
  display: flex;
  gap: 25px;
  justify-content: center;
}
.learning-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.learning-card:hover {
  transform: translateY(-8px);
  border-color: #000000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}
.icon-wrapper {
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.learning-card span {
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a1a;
}
.learn-with-us-card {
  max-width: 450px;
  background: #000000 !important;
  border: none;
  padding: 35px;
  margin-top: 15px;
}
.learn-with-us-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}
.learn-with-us-card .icon-wrapper {
  color: #ffffff;
}
.learn-with-us-card .large-title {
  color: #ffffff !important;
}
.floating-cap {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%) rotate(10deg);
  animation: float 3.5s ease-in-out infinite;
}
.check-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 50%;
}
.large-title {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
}
.learn-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
  color: #1a1a1a;
}
.back-btn {
  align-self: flex-start;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.back-btn:hover {
  background: #333333;
  transform: translateX(-5px);
}
.panel-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 25px 0;
  color: #000000;
}
.panel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.panel-col {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.panel-col h4 {
  margin: 0 0 20px 0;
  color: #000000;
  font-size: 1.3rem;
  font-weight: 800;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}
.sim-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sim-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8f8f8;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: #333333;
  font-weight: 600;
}
.sim-list li:hover {
  background: #ffffff;
  border-color: #000000;
  transform: scale(1.02);
  color: #000000;
}
.res-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.res-list li {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.res-list li:hover {
  background: #ffffff;
  border-color: #000000;
  transform: translateY(-5px);
}
.res-icon {
  display: flex;
  gap: 5px;
  color: #000000;
}
.res-list strong {
  display: block;
  font-size: 1.15rem;
  color: #000000;
  margin-bottom: 8px;
  font-weight: 800;
}
.res-list p {
  margin: 0;
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
}
@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0) rotate(10deg);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) rotate(15deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(10deg);
  }
}
[dir=rtl] .back-btn {
  align-self: flex-start;
}
@media (max-width: 768px) {
  .grid-row {
    flex-wrap: wrap;
  }
  .panel-columns {
    grid-template-columns: 1fr;
  }
  .learning-view-overlay {
    padding: 8px;
  }
  .learning-sheet.quiz-mode {
    padding: 10px;
  }
}

/* src/HistoryView.css */
.history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}
.history-modal {
  width: 100%;
  max-width: 500px;
  max-height: 85dvh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}
[data-theme=dark] .history-modal {
  background: rgba(30, 30, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.history-header {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
[data-theme=dark] .history-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.history-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.history-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.history-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}
.history-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.history-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.history-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: scale(1.1);
}
[data-theme=dark] .history-close-btn {
  background: rgba(255, 255, 255, 0.1);
}
.history-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px;
}
.history-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 250px;
  text-align: center;
  color: var(--text-muted);
}
.history-empty-icon {
  margin-bottom: 16px;
  opacity: 0.3;
}
.history-empty h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.history-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 8px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
[data-theme=dark] .history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.history-item:hover {
  background: rgba(16, 185, 129, 0.05);
  transform: translateX(4px);
}
[dir=rtl] .history-item:hover {
  transform: translateX(-4px);
}
.history-item-icon {
  color: #10b981;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.history-item-content {
  flex: 1;
  overflow: hidden;
}
.history-item-text {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.history-item-arrow {
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.history-item:hover .history-item-arrow {
  opacity: 1;
  color: #10b981;
}
.history-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
}
[data-theme=dark] .history-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.history-clear-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.history-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}
