/* ---------------------------------------------------------------------
   ViralForge AI — visual identity
   Subject: AI production pipeline for short-form video + business
   growth tools. Signature elements: a timeline scrubber (video studio
   nav — the steps genuinely are sequential) and a waveform mark
   (broadcast/editing-suite motif). Duotone signal palette: hot-signal
   red + cyan, on ink black, evoking a studio monitor / VU meter.
--------------------------------------------------------------------- */

::selection { background: #2DE1C2; color: #0D1117; }

html { scroll-behavior: smooth; }

body {
  /*background-attachment: fixed;*/
     background: radial-gradient(#05dcfbfc, #29033e);
}

.bg-ink-panel { background-color: #161B22; }
.border-ink-border { border-color: #262C36; }
.text-ink-muted { color: #8B95A5; }

/* ---------- Cards ---------- */
.card {
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    z-index: 100;
    backdrop-filter: blur(18px);
    box-shadow: 1px 1px 0px #959595, -1px -1px 0px #ffffff, -1px 1px 0px #ffffff, 1px -1px 0px #979797;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8B95A5;
}
.section-kicker svg { width: 14px; height: 14px; }

.icon-badge {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #161B22;
  border: 1px solid #262C36;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg { width: 19px; height: 19px; stroke: #2DE1C2; }
.icon-badge.red svg { stroke: #FF3B5C; }
.icon-badge.amber svg { stroke: #FFC857; }
.icon-badge.orange svg { stroke: #FB923C; }
.icon-badge.violet svg { stroke: #A78BFA; }
.icon-badge.blue svg { stroke: #60A5FA; }
.icon-badge.green svg { stroke: #34D399; }
.icon-badge.pink svg { stroke: #F472B6; }

/* ---------- Top navbar (full-width, spans above sidebar + content) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(24, 11, 56, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0px 2px 3px #676767;
}
.topbar::after {
  /*content: '';*/
  /*position: absolute;*/
  /*left: 0; right: 0; bottom: -1px; height: 1px;*/
  /*background: linear-gradient(90deg, #FF3B5C, #A78BFA, #2DE1C2, #34D399);*/
  /*opacity: 0.55;*/
}
.topbar-crumb-dot {
  /*width: 7px; height: 7px; border-radius: 999px;*/
  /*background: var(--accent, #FF3B5C);*/
  /*box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #FF3B5C) 20%, transparent);*/
}

/* ---------- Sidebar ---------- */
.sidebar-logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #FF3B5C, #C22B47);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(255, 59, 92, 0.45);
  flex-shrink: 0;
}

.app-nav-btn:nth-child(1) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(255, 0, 0), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
}
.app-nav-btn:hover {
      box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; 
    }

.app-nav-btn:nth-child(2) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(136, 255, 0), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
}
.app-nav-btn:nth-child(3) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(0, 217, 255), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(4) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(242, 0, 255), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(5) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(255, 234, 0), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(6) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
     background: linear-gradient(167deg, blue, black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(7) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, orange, black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(8) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, cyan, black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(9) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, darkgreen, black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(10) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(136, 255, 0), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn:nth-child(11) {
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
    background: linear-gradient(167deg, rgb(136, 255, 0), black);
    color: #a9a9a9;
    text-shadow: none;
    display: flex;
    align-items: center;
    width: 176px;
    height: 24px;
    margin-left: 14px;
    margin-bottom: 7px;
    cursor: pointer;
    border-radius: 20px;
    /* box-shadow: inset -1px -2px 4px #ffffff, inset 1px 1px 4px white; */
    /*box-shadow: 1px 3px 5px;*/
  
}
.app-nav-btn.active svg { opacity: 1; stroke: var(--accent, #88ff00); }
.app-nav-btn svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; transition: stroke 140ms ease; }

/* ---------- Timeline nav (Video Studio) ---------- */
.timeline-track {
  position: relative;
  display: flex;
  gap: 0;
  border-top: 1px solid #262C36;
  border-bottom: 1px solid #262C36;
  background: #10141B;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, #FF3B5C, #2DE1C2);
  opacity: 0.7;
}

.timeline-stop {
  flex: 1 1 0;
  position: relative;
  padding: 13px 10px 15px;
  text-align: left;
  border-right: 1px solid #262C36;
  transition: background-color 150ms ease;
  cursor: pointer;
}
.timeline-stop:last-child { border-right: none; }
.timeline-stop:hover { background-color: #161B22; }

.timeline-stop .tc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #66707F;
  letter-spacing: 0.05em;
}
.timeline-stop .label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 2px;
}
.timeline-stop .marker {
  position: absolute;
  top: -4.5px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2A313D;
  border: 2px solid #0D1117;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}
.timeline-stop.active { background-color: #161B22; }
.timeline-stop.active .marker {
  background: #FF3B5C;
  box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.16);
}
.timeline-stop.active .tc { color: #FF3B5C; }
.timeline-stop.done .marker { background: #2DE1C2; }
.timeline-stop.done .tc { color: #2DE1C2; }

/* ---------- Decorative marks ---------- */
.waveform-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}
.waveform-bars span {
  width: 3px;
  background: linear-gradient(180deg, #2DE1C2, #1EA88F);
  border-radius: 2px;
  opacity: 0.9;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #FF3B5C;
  box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,92,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); }
}

/* ---------- Buttons ---------- */
.btn-primary {
 cursor: pointer;
    width: 171px;
        height: 27px;
    margin-left: 5px;
    line-height: 12px;
    border-radius: 0px;
    background: linear-gradient(90deg, rgb(0, 21, 255), rgb(255, 0, 0), rgb(60, 255, 0), rgb(238, 0, 255), rgb(0, 208, 255), rgb(255, 140, 0));
    background-size: 400% 10%;
    animation: animate 12s infinite;
    box-shadow: 4px 8px 12px rgb(0, 0, 0, 0.7);
    text-shadow: 1px 3px 5px black;
}
@keyframes animate{
    0%{
        background-position: 0 0;
    }
    25%{
        background-position: 100% 0;
    }
    50%{
        background-position: 100% 100%;
    }
    75%{
        background-position: 0 100%;
    }
    100%{
        background-position: 0 0;
    }
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 20px -6px rgba(255, 59, 92, 0.7); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; filter: none; }

.btn-video {
  background: linear-gradient(135deg, #2DE1C2, #1EA88F);
  color: #06231D;
  font-weight: 700;
  box-shadow: 0 4px 16px -6px rgba(45, 225, 194, 0.5);
  transition: filter 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.btn-video:hover { filter: brightness(1.06); box-shadow: 0 6px 20px -6px rgba(45, 225, 194, 0.65); }
.btn-video:active { transform: scale(0.97); }
.btn-video:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; filter: none; }

.btn-ghost {
  cursor: pointer;
    margin-left: 5px;
    line-height: 30px;
    border-radius: 0px;
    background: linear-gradient(90deg, rgb(0, 21, 255), rgb(255, 0, 0), rgb(60, 255, 0), rgb(238, 0, 255), rgb(0, 208, 255), rgb(255, 140, 0));
    background-size: 400% 10%;
    animation: animate 12s infinite;
    box-shadow: 4px 8px 12px rgb(0, 0, 0, 0.7);
    text-shadow: 1px 3px 5px black;
}
.btn-ghost:hover { border-color: #2DE1C2; background-color: rgba(45,225,194,0.07); color: #2DE1C2; }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Form fields ---------- */
.field {
 background: #dddddd;
    border: 1px solid #767676;
    color: #5e5e5e;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field::placeholder { color: #566072; }
.field:focus { outline: none; border-color: #2DE1C2; box-shadow: 0 0 0 3px rgba(45,225,194,0.14); }

.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.02em;
     border: 1px solid #cecfd1;
  border-radius: 999px;
  padding: 3px 10px;
  color: #beff00;
  background: rgba(255,255,255,0.02);
}

/* ---------- Loading / empty states ---------- */
.skeleton {
  background: linear-gradient(90deg, #161B22 0%, #1E2530 50%, #161B22 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  border: 1px dashed #262C36;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #66707F;
  font-size: 13px;
}

/* ---------- AI Editor ---------- */
.editor-scene-card {
  background: #161B22;
  border: 1px solid #262C36;
  border-radius: 10px;
  padding: 12px;
  min-width: 160px;
  flex-shrink: 0;
  transition: border-color 140ms ease;
}
.editor-scene-card:hover { border-color: #A78BFA; }
.editor-scene-thumb {
  height: 60px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a0e14, #0D1117 60%, #0a1613);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #262C36;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#editorCanvas {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9/16;
  border-radius: 12px;
  border: 1px solid #262C36;
  background: #0D1117;
  display: block;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot, .skeleton { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .timeline-track { flex-wrap: wrap; }
  .timeline-stop { flex: 1 1 33%; border-bottom: 1px solid #262C36; }
  .app-nav-btn { flex-direction: column; gap: 4px; padding: 8px 10px; font-size: 11px; border-left: none; border-bottom: 2px solid transparent; }
  .app-nav-btn.active { border-left: none; border-bottom-color: #FF3B5C; }
}
.ihsa{
     font-size: 41px;
    line-height: 1;
    text-align: center;
   font-family: Arial, Helvetica, sans-serif;
   background-clip: text;
   -webkit-background-clip: text;
   color: transparent;
   background-image: linear-gradient(120deg, rgb(0, 21, 255), rgb(255, 0, 0), rgb(81, 255, 0), rgb(225, 0, 255), rgb(255, 225, 0), rgb(5, 197, 255), rgb(255, 111, 0));
   background-size: 400% 400%;
   animation: animate 15s ease infinite;
}
.text-ink-muted {
    --tw-text-opacity: 1;
    color: rgb(233 233 233);
}
.text-ink-muted {
    --tw-text-opacity: 1;
    color: rgb(199 199 199);
}
.leading-tight {
    color: black;
}