@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

/* Базова типографіка та фон */
html {
  font-size: 100%;
  height: 100%;
  margin: 0;
}
body {
  font-size: 1rem;
  background: #292B31;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  margin: 0;
}
body.no-scroll {
  overflow: hidden;
}

h1, p {
  font-size: 1rem;
}
.hero {
  position: fixed;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}
.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* затемнення */
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-content h1 {
  font-size: 3rem;
}
.animated-title span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 .title { font-size: 2rem; } 
/* Контейнер-центр */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  display: none; 
}

/* Сам блок */
.login_box {
  margin-top: 160px;
  width: 200px;
  height: 40px;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  z-index: 4;
  line-height: 40px;
  text-align: center; 
}

.logo-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0 auto;
  width: 80px;

  transform: translateY(-140%); /* ↑ регулюй */
}
.logo-r {
  position: relative;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #00eaff, #7a00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 20px rgba(122,0,255,0.35),
    0 0 40px rgba(0,234,255,0.25);
  animation: glitchMain 3s infinite;
}
.t2 {
  font-size: 40px;
  line-height: 60px;
  text-indent: 20px;
}

/* Glitch layers */
.logo-r::before,
.logo-r::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00eaff, #7a00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}
.logo-r::before {
  transform: translateX(-3px);
  clip-path: polygon(0 0, 70% 0, 55% 100%, 0 100%);
  animation: glitchLeft 2.5s infinite;
}
.logo-r::after {
  transform: translateX(2px);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 65% 100%);
  animation: glitchRight 2.8s infinite;
}
/* Animations */
@keyframes glitchMain {
  0%, 100% { filter: none; }
  40% { filter: blur(0.5px); }
  42% { filter: blur(0); }
}

@keyframes glitchLeft {
  0%, 100% { transform: translateX(-3px); opacity: 0.7; }
  45% { transform: translateX(-12px) skewX(-8deg); opacity: 0.3; }
  50% { transform: none; opacity: 0.7; }
}

@keyframes glitchRight {
  0%, 100% { transform: translateX(2px); opacity: 0.7; }
  48% { transform: translateX(8px) skewX(6deg); opacity: 0.4; }
  52% { transform: none; opacity: 0.7; }
}
.macos-btn {
  appearance: none;
  border: none;
  cursor: pointer;
 
  border-radius: 14px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;

  color: rgba(255,255,255,0.92);

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.08)
    ),
    rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.28);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(255,255,255,0.1),
    0 8px 24px rgba(0,0,0,0.28);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.2s ease;
}
/* Hover — дуже subtle */
.macos-btn:hover {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.34),
      rgba(255,255,255,0.12)
    ),
    rgba(255,255,255,0.22);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(255,255,255,0.12),
    0 10px 30px rgba(0,0,0,0.35);
}
/* Active — як натиск у macOS */
.macos-btn:active {
  transform: scale(0.97);

  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.35),
    0 4px 12px rgba(0,0,0,0.25);
}
/* Focus — доступність */
.macos-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(0,122,255,0.6),
    0 8px 24px rgba(0,0,0,0.28);
}

/* --------------- CONTAINER -------------- */
.header {
  display: block;
  position: fixed; 
  top: 0; left: 0; 
  width: 100vw; 
  height: 60px; 
  z-index: 9;
}
.hcenter {
  display: block;
  position: relative; 
  top: 0; left: 0;
  margin: 0 auto;
  max-width: 800px;
  height: 60px;
  background: #32333A;
  z-index: 8;
  border-bottom: 0.5px solid #3E3F46;
}
.container {
  display: block;
  position: relative; 
  top: 0; left: 0;
  margin: 0 auto;
  max-width: 800px;
  min-height: calc(100vh - 80px);
  background: #32333A;
  padding-top: 80px;
  z-index: 8;
}
.userimg {
  display: block;
  position: absolute; 
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border-radius: 12px;
}

.item {
  display: block;
  position: relative;
  top: 0; left: 0;
  width: calc(100% - 20px);
  height: 40px;
  background: rgba(65, 66, 73, 0.12);
  border-radius: 8px;
  margin-left: 10px;
  margin-bottom: 2px; 
}
.item:hover { cursor: pointer; background: rgba(65, 66, 73, 0.8); }
.icon_folder {
 display: block;
 position: absolute; 
 top: 10px; left: 10px;
 width: 20px;
 height: 20px; 
 background: url('../images/icon_folder.svg') center center / contain no-repeat;
}
 .itext {
  display: block;
  line-height: 40px;
  text-indent: 40px;
  color: #C5C6CA;
  font-size: 0.9rem;
 }
.left_button {
  display: block;
  position: absolute; 
  top: 10px; left: 10px;
  width: 40px; height: 40px;
  background: rgba(65, 66, 73, 0.12);
  border-radius: 12px;
}
.icon_left {
 display: block;
 position: absolute; 
 top: 8px; left: 8px;
 width: 24px;
 height: 24px; 
 background: url('../images/icon_left.svg') center center / contain no-repeat;
} 
.left_button:hover {cursor: pointer; background: rgba(65, 66, 73, 0.8); }

.right_button {
  display: block;
  position: absolute; 
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  background: rgba(65, 66, 73, 0.12);
  border-radius: 12px;
}
.icon_threetouch {
 display: block;
 position: absolute; 
 top: 8px; left: 8px;
 width: 24px;
 height: 24px; 
 background: url('../images/icon_threetouch.svg') center center / contain no-repeat;
} 
.right_button:hover {cursor: pointer; background: rgba(65, 66, 73, 0.8); }
.header_text {
   display: block;
   position: absolute; 
   top: 10px; left: 60px;
   width: calc(100% - 120px); height: 40px;
   background: rgba(65, 66, 73, 0.12);
   border-radius: 12px;
   text-align: center; 
   line-height: 40px;
   color: white;
   font-size: 0.9rem;
}
.id_link {
  display: block;
  position: absolute; 
  left: 0px; top: 10px;
  color: grey;
  line-height: 20px;
  width: 44px;
  font-size: 0.7rem;
  text-align: center;
  border-right: 1px solid grey;
}
 .ilink {
  display: block;
  line-height: 40px;
  text-indent: 54px;
  color: #55A2FF;
  font-size: 0.9rem;
  white-space: nowrap;     /* в один рядок */
  overflow: hidden;        /* ховаємо зайве */
  text-overflow: ellipsis;
  padding-right: 20px;
 }
.fix {
  display: block;
  position: fixed; 
  bottom: 0; left: 0; 
  width: 100vw; 
  height: 60px; 
  z-index: 9;
}
.hcenter_2 {
  display: block;
  position: relative; 
  top: 0; left: 0;
  margin: 0 auto;
  max-width: 800px;
  height: 60px;
  background: #32333A;
  z-index: 8;
  border-top: 0.5px solid #3E3F46;
}
.fix_text {
   display: block;
   position: absolute; 
   top: 10px; left: 60px;
   width: calc(100% - 140px); height: 40px;
   background: rgba(65, 66, 73, 0.5);
   border-radius: 12px;
   text-align: left; 
   line-height: 40px;
   text-indent: 10px;
   color: white;
   font-size: 0.9rem;
}
.send_button {
  display: block;
  position: absolute; 
  top: 10px; right: 10px;
  width: 60px; height: 40px;
  background: #55A2FF;
  border-radius: 12px;
}
.icon_send {
 display: block;
 position: absolute; 
 top: 8px; left: 18px;
 width: 24px;
 height: 24px; 
 background: url('../images/icon_send.svg') center center / contain no-repeat;
} 
.send_button:hover {cursor: pointer; background: rgba(85, 162, 255, 0.72); }

.insert_button {
  display: block;
  position: absolute; 
  top: 10px; left: 10px;
  width: 40px; height: 40px;
  background: rgba(85, 162, 255, 0.2);
  border-radius: 12px;
}
.icon_insert {
 display: block;
 position: absolute; 
 top: 8px; left: 8px;
 width: 24px;
 height: 24px; 
 background: url('../images/icon_insert.svg') center center / contain no-repeat;
} 
.insert_button:hover {cursor: pointer; background: rgba(85, 162, 255, 0.4); }
.black_bg {
  position: fixed;
  inset: 0;
  z-index: 999;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.2s ease;
}

.black_bg.active {
  opacity: 1;
  pointer-events: auto;
}

/* меню */
.menu {
  transform: scale(0.96);
  opacity: 0;
  transition: all 0.2s ease;
}

.black_bg.active .menu {
  transform: scale(1);
  opacity: 1;
}

.menu {
  position: fixed;
  top: 50%;
  left: 50%;

  /* ОБʼЄДНАЛИ transform */
  transform: translate(-50%, -50%) scale(0.96);

  width: 90vw;
  max-width: 360px;
  min-width: 280px;

  max-height: 80vh;
  padding: 10px;

  border-radius: 12px;
  background: #32333B;

  box-shadow: 0 20px 50px rgba(0,0,0,0.45);

  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.black_bg.active .menu {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.button_close {
  display: block;
  position: absolute; 
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  background: rgba(54, 55, 63, 0.8);
  border-radius: 12px;
}
.icon_close {
 display: block;
 position: absolute; 
 top: 8px; left: 8px;
 width: 24px;
 height: 24px; 
 background: url('../images/icon_close.svg') center center / contain no-repeat;
}
.button_close:hover { cursor: pointer; background: rgba(65, 66, 73, 0.9); }
.menu_title {
  display: block;
  position: absolute; 
  top: 10px; left: 10px;
  width: calc(100% - 70px); height: 40px;
  background: #36373F;
  border-radius: 12px;
  text-indent: 36px; 
  line-height: 40px;
  color: #C5C6CA;
  font-size: 0.9rem;
}
.mline {
  display: block;
  position: absolute; 
  top: 60px; left: 0;
  width: 100%;
  height: 0.5px; 
  background: #44454D;
}
.menu_items {
  display: block;
  position: relative; 
  top: 0; left: 0px; 
  width: 100%;
  min-height: 40px; 
  margin-top: 60px;
}
.icon_folder_2 {
 display: block;
 position: absolute; 
 top: 12px; left: 12px;
 width: 16px;
 height: 16px; 
 background: url('../images/icon_folder.svg') center center / contain no-repeat;
}
.mitem {
  display: block;
  position: relative; 
  top: 0; left: 0;
  width: 100%;
  height: 40px;
  background: #34353D; 
  border-radius: 6px; margin-bottom: 2px;
  text-align: center;
  line-height: 40px;
  color: #C5C6CA;
  font-size: 0.9rem;

}
.mitemq {
  display: block;
  position: relative; 
  top: 0; left: 0;
  width: 100%;
  height: 40px;
  background: 32333C; 
  border-radius: 6px; margin-bottom: 2px;
  text-align: center;
  line-height: 40px;
  color: #55A2FF;
  font-size: 0.9rem;

}
.mitem:hover { cursor: pointer; background: rgba(65, 66, 73, 0.8); } 
.mline_2 {
  display: block;
  position: relative; 
  top: 0px; left: -10px;
  width: calc(100% + 20px);
  margin-top: 10px;
  margin-bottom: 10px;
  height: 0.5px; 
  background: #44454D;
} 
.editable {   
  outline: none;
  cursor: text;
}
 .fix_text:empty::before {
   content: attr(data-placeholder);
   color: rgba(255,255,255,0.5);
   pointer-events: none;
 }
.video_preview {
   display: grid;
   grid-template-columns: 1fr 1fr; /* 2 рівні по горизонталі */
   gap: 12px;
 
   width: calc(70% - 20px);
   max-width: 100%; 
   margin: 0 auto;
 }
.video_item {
   aspect-ratio: 9 / 16; /* Shorts-style */
   background: #1f2026;
   border-radius: 10px;
 
   display: flex;
   align-items: center;
   justify-content: center;
 position: relative; 
   color: #aaa;
   font-size: 14px;
 }
/* 📱 Mobile / small screens */
 @media (max-width: 800px) {
   .video_preview {
     width: calc(100% - 20px);
   }
 }
.ig_thumb {
   position: relative;
   display: block;
 
   width: 100%;
   aspect-ratio: 9 / 16;
 
   border-radius: 12px;
   overflow: hidden;
   background: #000;
 }
 
 .ig_thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }
 
 /* Play button */
 .play_icon {
   position: absolute;
   inset: 0;
 
   display: flex;
   align-items: center;
   justify-content: center;
 }
 
 .play_icon::before {
   content: '';
   width: 64px;
   height: 64px;
 
   background: rgba(0,0,0,0.6);
   backdrop-filter: blur(4px);
   border-radius: 50%;
 }
 
 .play_icon::after {
   content: '';
   margin-left: 4px;
 
   width: 0;
   height: 0;
 
   border-left: 16px solid white;
   border-top: 10px solid transparent;
   border-bottom: 10px solid transparent;
 }
 
 /* hover */
 .ig_thumb:hover .play_icon::before {
   background: rgba(0,0,0,0.75);
 } 
 .down_sign {
    display: block;
    position: absolute;
    bottom: 10px;
    width: 100%;
  
    color: #fff;
    text-align: center;
  
    /* темна тінь */
    text-shadow:
      0 2px 6px rgba(0, 0, 0, 0.85),
      0 0 12px rgba(0, 0, 0, 0.6);
  }
  .vid_len {
     display: block;
     position: absolute;
     bottom: 10px;
     width: 100%;
   
     color: #fff;
     text-align: center;
   
     /* темна тінь */
     text-shadow:
       0 2px 6px rgba(0, 0, 0, 0.85),
       0 0 12px rgba(0, 0, 0, 0.6);
      z-index: 9;
   }
/* саме відео */
 .video_item video { 
   width: 100%;
   height: 100%;
   object-fit: cover;        /* заповнює блок */
   display: block;
   border-radius: 12px;
   z-index: 1;
 }
.icon_copy {
   position: absolute;
   top: 50%;
   left: calc(50% - 87px);
 
   transform: translate(-50%, -50%);
 
   width: 16px;
   height: 16px;
 
   background: url('../images/icon_copy.svg') center center / contain no-repeat;
 }
.doubleitem {
   display: inline-block;
   position: relative;
   top: 0; left: 0;
   width: calc(50% - 16px);
   height: 40px;
   background: rgba(65, 66, 73, 0.12);
   border-radius: 8px; 
   margin-bottom: 2px; 
   margin-top: 10px;
   margin-left: 10px;
 }
.doubleitem:hover { cursor: pointer; background: rgba(65, 66, 73, 0.8); }
.switch_wrap {
  width: fit-content;
}

.switch_wrap {
  display: flex;
  align-items: center;
  gap: 10px;

  width: fit-content;
  margin: 0 auto;
  padding-top: 8px;
}


 
 /* ховаємо стандартний checkbox */
 .switch_input {
   display: none;
 }
 
 /* сам switch */
 .switch_slider {
   position: relative;
   width: 42px;
   height: 24px;
   background: #555;
   border-radius: 999px;
   transition: background 0.2s ease;
 }
 
 /* кружечок */
 .switch_slider::before {
   content: '';
   position: absolute;
   top: 2px;
   left: 2px;
   width: 20px;
   height: 20px;
   background: #fff;
   border-radius: 50%;
   transition: transform 0.2s ease;
 }
 
 /* ON */
 .switch_input:checked + .switch_slider {
   background: #4caf50; /* зелений */
 }
 
 .switch_input:checked + .switch_slider::before {
   transform: translateX(18px);
 }
 
 /* текст */
 .switch_label {
   color: #fff;
   font-size: 14px;
 }
.icon_video {
 display: block;
 position: absolute; 
 top: 12px; left: 12px;
 width: 16px;
 height: 16px; 
 background: url('../images/icon_video.svg') center center / contain no-repeat;
}
 
 .generate_button {
   display: block;
   position: absolute; 
   top: 10px; left: 10px;
   width: calc(100% - 20px); height: 40px;
   background: #55A2FF;
   border-radius: 12px;
   line-height: 40px; text-align: center;
   color: white; font-size: 12px; font-weight: 600;
 } 
 .generate_button:hover {cursor: pointer; background: rgba(85, 162, 255, 0.72); }

 .video_grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 12px;
   width: calc(100% - 20px);
   margin-left: 10px; margin-right: 10px;
 }
 .video_grid_6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: calc(100% - 20px);
    margin-left: 10px; margin-right: 10px;
  }
.video_cell {
   aspect-ratio: 9 / 16;
   background: #1f2026;
   border-radius: 10px;
   overflow: hidden;
 
   position: relative;
 
   display: flex;
   align-items: center;
   justify-content: center;
 
   color: #aaa;
   font-size: 14px;
 }
.video_cell video {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
 }
@media (max-width: 800px) {
   .video_grid {
     grid-template-columns: repeat(2, 1fr);
   }
    .video_grid_6 {
      grid-template-columns: repeat(3, 1fr);
    }
 }

 .toast {
   position: fixed;
   bottom: 24px;
   left: 50%;
   transform: translateX(-50%);
   background: #2e7d32;
   color: #fff;
   padding: 12px 20px;
   border-radius: 10px;
   font-size: 14px;
   box-shadow: 0 10px 30px rgba(0,0,0,.3);
   opacity: 0;
   pointer-events: none;
   transition: all .3s ease;
   z-index: 9999;
 }
 
 .toast.show {
   opacity: 1;
   bottom: 40px;
 }
.showvideoid {
  display: block;
  position: absolute;   
  top: 10px; left: 0;
  color: white;
  z-index: 99;
  width: 100%;
  color: #fff;
  text-align: center;
  
   /* темна тінь */
   text-shadow:
     0 2px 6px rgba(0, 0, 0, 0.85),
     0 0 12px rgba(0, 0, 0, 0.6);
    z-index: 9;
}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 