
/* === VARIABLES === */

:root {
    --bg-color: #051227;
    --anti-bg: #b7b7a4;
    --bg-card: #081a34;
    --bg-gradient: #0f172a;
    --lua-bg: #051227;
    --lua-color: #f4f0ea;
    --text-color: #f8fafc;
    --hover-color: #b7b7a4;
    --border-color: #315082;
    --overlay-color: #00000055;
    --white-black: #000000;
    --box-shadow: #00000044;
    --max-body-width: 800px;
    --border-radius-btn: .5em;
    --border-radius-card: 1em;
    --accent: #5eead4;
    --accent-secondaire: #5eead4;
    --glow: #22d3ee55;
    --highlight: #5eead57c;
    --bg-bubble: rgba(255,255,255,.06);
    --bg-border-bubble: 1px solid rgba(255,255,255,.14);
    --color-bubble: rgba(255,255,255,.85);
    --label-col: auto;
    --field-max: 420px;  
    --form-max: 720px;
  }
  
  body.light-mode {
    --bg-color: #f4f0ea;
    --anti-bg: #cb997e;
    --bg-card: #fbf7f0;
    --bg-gradient: #e0f2fe;
    --text-color: #1e293b;
    --hover-color: #ddbea9b8;
    --border-color: #d1d5db;
    --overlay-color: #00000022;
    --white-black: #fff;
    --box-shadow: #38bdf822;
    --glow: #22d3ee33;
    --highlight: #4ef0d857;
    --accent: #3a86ff;
    --accent-secondaire: #a7f3d0;
    --bg-bubble: #f6fbff;
    --bg-border-bubble: 1px solid var(--chip-border, #d7dde4);
    --color-bubble: #4a5568;

  }
  
  /* === UTILS === */

  .hint {
    color: #9d9d9d;
  }

  .hint-key {
    color: #9d9d9d;
    grid-column: span 2;
    transform: translateY(15px);
  }

  .flag {
    max-width: 1.2rem;
    transform: translateY(3px);
    cursor: pointer;
  }

  .menu-utils {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .65rem;
  }

  .alert-modal {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    max-width: 400px;
    max-height: 250px;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--accent);
    border-radius: var(--border-radius-card);
    box-shadow: 0 0 15px var(--box-shadow);

    --gap: 5em;
    --line: 1px;
  
    background-image: linear-gradient(
        -90deg,
        transparent calc(var(--gap) - var(--line)),
        var(--border-color) calc(var(--gap) - var(--line) + 1px),
        var(--border-color) var(--gap)
      ),
      linear-gradient(
        0deg,
        transparent calc(var(--gap) - var(--line)),
        var(--border-color) calc(var(--gap) - var(--line) + 1px),
        var(--border-color) var(--gap)
      );
    background-size: var(--gap) var(--gap);

    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;

    overflow: hidden;
  }

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

  .alert-modal h3 {
    color: var(--text-color);
    font-style: italic;
    font-weight: 100;
  }

  .alert-modal::before {
    content: '';
    width: 20rem;
    height: 8rem;
    bottom: -90px;
    left: -180px;
    background-color: var(--glow);
    position: absolute;
    filter: blur(2rem);
    opacity: .2;
  }

  .alert-modal::after {
    position: absolute;
    content: '';
    opacity: .5;
    height: 1px;
    width: 200%;
    background-color: var(--accent);
    top: 60px;
    left: -50px;
    z-index: 100010;
  }

  .alert-title-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: .25rem;
  }

  .alert-svg path {
    transform: translateY(2px);
  }

  .info-alert {
    opacity: .9;
    font-size: .9rem;
    margin: 2.5rem 0
  }

  .alert-msg {
    display: flex;
    align-content: center;
    gap: .25rem;
    color: rgb(212, 18, 18);
    font-size: 0.8rem;
    font-weight: 600;
    grid-column: span 2;
    opacity: 0;
  }

  #gi-two .alert-msg {
    margin-top: .7rem;
  }

  .validate-wrapper {
    width: 100%;
    display: flex;
    justify-content: end;
  }

  .overlay,
  .overlay-alert,
  .overlay-url {
    position: absolute;
    top: 0;
    width: 100%;
    height: 110%;
    -webkit-backdrop-filter: blur(.5rem);
    backdrop-filter: blur(.5rem);
    background-color: var(--overlay-color);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .overlay-alert {
    z-index: 10000;
  }

  .overlay.active,
  .overlay-alert.active,
  .overlay-url.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* ::view-transition-old(root) {
    animation: move-out 500ms;
  }

  ::view-transition-new(root) {
    animation: move-in 500ms;
  }

  @keyframes move-in {
    from { translate: 0 -100%; }
    to { translate: 0, 0; }
  }

  @keyframes move-out {
    from { translate: 0 0; }
    to { translate: 100%, 0; }
  } */

  /* === LOGO === */
  .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: .5rem; */
    color: var(--text-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: default;
    user-select: none;
  }
  
  #logo-menu {
    max-width: 6rem;
    height: auto;
    z-index: 9999;
    user-select: none;
  }
  
  .title {
    font-style: italic;
    font-weight: 100;
    font-size: 1.2rem;
  }
  
/* === SWITCH === */

  .switch {
    position: relative;
    width: 28px;
    height: 16px;
  }
  
  .switch input {
    display: none;
  }
  
  .toggle {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background: var(--anti-bg); /* gris clair */
    border-radius: 999px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    box-sizing: border-box;
  }
  
  .toggle i {
    display: block;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
  }
  
  /* checked = actif */
  .switch input:checked + .toggle {
    background: var(--anti-bg); 
  }
  
  .switch input:checked + .toggle i {
    transform: translateX(12px);
    /* background-color: #000000; */
  }

  /* === RESET === */

  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* border: 1px solid red; */
  }
  
  /* === BASE === */

  body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-color);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
  }
  
  /* === NAVIGATION === */

  .nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  height: fit-content;
  padding: .5rem .8rem;
  z-index: 9999;
}

.p-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 700px;
}

.menu {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.menu svg {
stroke: var(--text-color);
  width: 2rem;
  transition: transform 0.3s ease;
}

.menu-nav {
    position: fixed;
    top: 51px;
    width: 100%;
    max-width: 700px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0 0 1rem 1rem;
  }
  
  .menu-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
  
  .menu-nav li {
    list-style: none;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: background-color 0.3s ease, padding-left 0.3s ease;
  }
  
  .menu-nav.active li {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .menu-nav li a {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    border-radius: 40px;
    border: 1px solid transparent;
  }
  
  .menu-nav li:hover {
    padding-left: 1.8rem;
  }

  .menu-nav li:hover a {
    /* border: 1px solid var(--hover-color); */
    background-color: var(--hover-color);
    /* padding-left: 1.8rem; */
  }
  

.menu-item svg {
  stroke: var(--accent);
}
  
  /* === ICONS === */

  .size-2 {
    fill: var(--bg-color);
    width: .6rem;
    transform: translateY(0.5px);
    margin-right: .25rem;
  }

  .size-3 {
    fill: var(--bg-color);
    width: .8rem;
  }

  .size-4 {
    stroke: rgb(212, 18, 18);
    stroke-width: .12rem;
    width: 1.4rem;
  }

  .size-6, .size-6-s,
  .alert-svg {
    width: 1.5rem;
    stroke: var(--accent-secondaire);
    transition: stroke var(--transition-speed);
  }

  #gi-ten .title-gi .size-6 {
    stroke: rgb(212, 18, 18);
  }

  .icon svg {
    width: 35px;
    height: 35px;
    display: block;
  }

  .logo-svg {
    stroke: none;
    width: .8rem;
    transform: translateY(1.5px);
  }
  
  /* .size-6-s {
    width: 1.5rem;
    stroke: var(--text-color);
    transition: all .2s ease;
  } */

  /* === HERO === */

  #logo-hero {
    max-width: var(--max-body-width);
    width: 50%;
    /* padding: 0 2rem; */
  }

  .plus-value {
    width: 100%;
    max-width: var(--max-body-width);
    min-height: 100vh;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: start;
    position: relative;
    transform: translateY(-3rem);
  }

  /* *{border: 1px solid red;} */

  .hero-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 100%;
    /* min-height: 70vh; */
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
/* 
  .hero-title-wrapper::before {
    content: '';
    position: absolute;
    background-color: #b7b7a4;
    width: 60%;
    height: 40%;
    bottom: -4rem;
    left: -2rem;
    filter: blur(3rem);
    z-index: -1;
  }

  .hero-title-wrapper::after {
    content: '';
    position: absolute;
    background-color: #ddbea9;
    width: 60%;
    height: 80%;
    bottom: -10rem;
    right: -10rem;
    filter: blur(5rem);
    border-radius: 100%;
    z-index: -1;
  } */


  .hero-title {
    font-style: italic;
    font-weight: 600;
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: .5rem;
    letter-spacing: -3px;
  }

  .plus-value h5 {
    font-weight: 300;
    font-size: 1.2rem;
    word-break: normal;
    white-space: normal;
    overflow-wrap: anywhere;
    /* letter-spacing: .6rem; */
    line-height: 3rem;
    max-width: 700px;
  }

  .hero-line {
    display: block;
  }
  
  .hero-line .feat-item{
    display:inline-flex;      
    align-items:center;
    gap:.75rem;              
    margin-right:.75rem;      
    white-space:nowrap;           
  }

  .feat-item a {
    text-decoration: none;
    transition: transform .3s ease, background .2s ease;
  }

  .feat-item:hover a {
    transform: translateY(-3px);
    background-color: var(--highlight);
  }
  
  .hero-line .hero-feat{
    display:inline-flex;
    align-items:center;
    padding:.35rem .8rem;
    border: var(--bg-border-bubble);
    background: var(--bg-bubble);
    color: var(--color-bubble);
    border-radius:999px;
    line-height: 1;
  }
  
  .hero-line .sep{
    color:#9aa5b1;           
    flex:0 0 auto;
  }
  
  .hero-line .feat-item:last-child .sep{ display:none; }
  
  .hero-shortcut {
    font-style: italic;
    font-weight: 500;
  }

  .ruban {
    position: absolute;
    width: 90%;
    height: auto;
    top: 0;
    z-index: -2;
  }

  .bg,
  .bg-white {
    position: absolute;
    z-index: -1;
    top: -5%;
    left: 0;
    width: 0%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    will-change: transform;
  }


  /* === EXPLANATION === */

  .exp-body {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .show-more {
    cursor: pointer;
  }

  .explanation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    padding: 0 2rem;
    width: 100%;
    max-width: var(--max-body-width);
  }

  .title-ex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .body-ex h5 {
    margin: 0;
    text-align: center;
    color: var(--text-color);               
    font-weight: 500;                  
    font-style: normal;                  
    font-size: clamp(1.05rem, 0.95rem + .75vw, 1.4rem);
    line-height: 1.8;                        
    letter-spacing: .1px;
    max-width: 80ch;                       
    margin-inline: auto;
    text-wrap: balance; 
    padding: clamp(16px, 3vw, 36px) clamp(20px, 5vw, 56px);
  }

  .strong {
    font-weight: 700;
    color: var(--accent);  
  }

  .body-ex {
    margin: 2rem 0;
    width: auto;
    max-width: var(--max-body-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: .25rem;
    background: var(--tint);
    border-radius: 40px;
    position: relative;
  }

  .step {
    width: 100%;
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
  }

  .step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: var(--text-color); */
    border: 2px solid var(--text-color);
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    border-radius: 100%;
    text-align: center;
    color: var(--text-color);
    background-color: var(--bg-color);
  }

  /* .body-ex::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: var(--text-color);
  } */

  .step-title {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 1rem;
  }

  .step-body {
    display: flex;
    align-items: center;
    text-align: start;
    padding: 0 1rem;
    /* border-left: 2px solid var(--text-color); */
    min-height: 70px;
    max-width: 600px;
  }

  .step-body h2 {
    font-size: 1.2rem;
    font-weight: 300;
  }

  /* === DOWNLOAD === */

  .download {
    width: 100%;
    max-width: 800px;
    padding-top: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .info-download {
    width: 100%;
    margin-top: 4rem;
    margin-bottom: .5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: .6;
  }

  .info-download p {
    font-size: 0.8rem;
  }

  .info-split {
    opacity: .5;
    font-size: .8rem;
    transform: translateY(-10px);
  }

  .hammerspoon,
  .autohotkey {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
  }

  .download-button,
  .validate,
  .copy-btn {
    padding: 4px 8px;
    border-radius: var(--border-radius-btn);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    border: 1px solid var(--accent-secondaire);
    transition: all .3s ease;
  }

  #download-apple {
    padding: 4px 8px;
    text-decoration: none;
    color: var(--bg-color);
    font-size: .8rem;
  }

  .copy-btn {
    display: none;
  }
  
  .download .download-button:hover,
  .validate:hover {
    transform: translateY(-2px);
  }

  #download-apple,
  #download-windows {
    background-color: var(--text-color);
    border: none;
    padding: .8rem 1.2rem;
    border-radius: 40px;
    min-height: 45px;
    cursor: pointer;
    font-weight: 600;
    z-index: 1; 
    overflow: hidden;
    position: relative;
  }

  .download-button a {
    color: var(--bg-color);
    text-decoration: none;
  }

  .size-6-link {
    width: .9rem;
    transform: translateY(2px);
  }

  .type-tool-button:hover {
    opacity: 1;
  }
  
  
  /* === DASHBOARD === */

  .dashboard {
    width: 100%;
    min-height: 60vh;
    padding: 2rem 0;
    margin-top: 7rem;
    max-width: var(--max-body-width);
  }
  
  .dashboard h3 {
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: italic;
    padding: .5rem;
  }
  
  .dashboard-grid {
    min-height: 70vh;
    max-width: var(--max-body-width);
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
  }
  
  .grid-item {
    width: 100%;
    padding: 1.05rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    background-color: var(--bg-card);
    color: var(--text-color);
    cursor: pointer;
    overflow: hidden;
    transition: max-height .3s ease, filter 0.3s ease;
    max-height: 65px; 
    position: relative;
  }

  .grid-item .title-gi::after {
    content: '';
    width: 200%;
    height: 1px;
    background-color: var(--border-color);
    position: absolute;
    bottom: -1.15em;
    left: -5rem;
  }

  .grid-item .info-p {
    margin-top: 2rem;
    margin-bottom: .5rem;
    --frame: color-mix(in srgb, var(--anti-bg) 70%, transparent);
    --tint:  color-mix(in srgb, var(--anti-bg) 9%,  transparent);
    border: 2px dashed var(--frame);
    border-radius: 28px;
    padding: clamp(16px, 3vw, 36px) clamp(20px, 5vw, 56px);
    background: var(--tint);
    color: var(--text-color);
    font-weight: 500;
    padding: 4px 12px;
    width: fit-content;
    height: auto;
    text-align: center;
  }

  .grid-item:hover {
    box-shadow: 0 0 10px var(--box-shadow);
  }

  .grid-item.is-active {
    max-height: 5500px;
  }


  .title-gi-wrapper {
    grid-column: span 2;
  }

  .title-gi {
    color: var(--text-color);
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: .5rem;
    margin-bottom: 1rem;
    position: relative;
  }
  
  .title-gi svg {
    stroke: var(--accent);
  }

  .video-split {
    border-radius: var(--border-radius-card);
  }
  
  .title-gi {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
  }

  #gi-info .card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.4rem;
    padding-bottom: 2rem;
  }
  
  #gi-info .card-input {
    padding: 1rem 1.4rem;
    border: 1px solid var(--hover-color);
    border-radius: var(--border-radius-card);
  }

  #gi-info .size-6-p {
    width: 1rem;
    stroke: var(--text-color);
  }

  
  .access-guide {
    color: #9d9d9d;
    font-size: .85rem;
  }

  #access-hammerspoon-console,
  #access-hammerspoon-console-body {
    gap: 0;
    transition: all .6s ease;
  }

  #access-hammerspoon-console.is-active,
  #access-hammerspoon-console-body.is-active {
    background-color: var(--highlight);
    box-shadow: 0 0 15px var(--highlight);
    /* color: white; */
    transform: scale(1.05);
  }

/* Bloc global */
.gstep {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
  }
  
  /* Cercle numéroté */
  .gstep-circle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent, #4a90e2);
    color: var(--white-black);
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
  
  /* Texte à droite */
  .gstep-content {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color, #222);
  }
  
  /* Mise en valeur des raccourcis clavier */
  .gstep-content kbd {
    background: #f3f3f3;
    color: black;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9rem;
    box-shadow: inset 0 -1px 0 #ccc;
  }
  
  /* Lien "download Hammerspoon" */
  .access_download {
    color: var(--accent, #4a90e2);
    font-weight: bold;
    text-decoration: underline;
  }
  .access_download:hover {
    text-decoration: none;
  }
  

  .grid-item .card,
  .grid-item .output,
  .grid-item .info-p {
    opacity: 0;
    transition: opacity 0.3s ease;
}

  .grid-item.is-active .card,
  .grid-item.is-active .output,
  .grid-item.is-active .info-p {
    opacity: 1;
}

.grid-item .card > .card-input,
.grid-item .card > .modifiers,
.grid-item .card > .generate-btn-wrapper {
  width: 100%;
  justify-self: start;
}

.grid-item .card{
    display:grid;
    grid-template-columns: repeat(2,1fr);
    flex-direction:row;
    align-items:flex-start; 
    gap:1.4rem;
    width:100%;
  }

.grid-item .output {
    position: relative;
}

  /* === FEATURES TOOL === */
  
  
  /* chaque rangée: label au-dessus, champ dessous, hint en bas */
  .card-input{
    display:flex;
    flex-direction:column;
    align-items:flex-start;     
    gap:.4rem;                       
    width:100%;
  }
  
  /* labels */
  .card-input > label{
    color:var(--text-color);
    font-size:.85rem;
    line-height:1.2;
  }
  
  /* champs (inputs/select, wrappers, groupes) */
  .card-input input[type="text"],
  .card-input input[type="number"],
  .card-input select{
    width:100%;
    padding:.55rem .75rem;
    border-radius:9px;
    background:var(--bg-color);
    color:var(--text-color);
    border:1px solid var(--border-color);
    outline:none;
    transition:border-color .15s ease, box-shadow .15s ease;
  }

  .card-input input:focus,
  .card-input select:focus{
    border-color:var(--accent);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  }

  .card-input {
    padding: .5rem 0;
  }
  
  /* groupe Modifiers : label au-dessus + keycaps dessous */
  .modifiers{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    align-items:center;
    width:100%;
  }
  
  /* keycaps (inchangé) */
  label.btn-mod{ position:relative; display:inline-block; }
  .btn-mod > input[type="checkbox"]{ position:absolute; inset:0; opacity:0; cursor:pointer; }
  .btn-mod > input:checked { background:rgba(58,134,255,.15); border-color:var(--accent); color:var(--accent); }
  .k-body{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:.25rem; width:60px; height:50px;
    border:1px solid var(--border-color); background:var(--bg-color); color:var(--text-color);
    border-radius:.4rem; padding:.4rem .6rem; user-select:none; transition:.2s;
  }
  .k-icon{ font-size:1.05rem; line-height:1; }
  .k-text{ font-size:.75rem; font-weight:600; letter-spacing:.2px; }
  .btn-mod:hover .k-body{ border-color:var(--accent); background:rgba(58,134,255,.08); }
  .btn-mod:active .k-body{ transform:translateY(1px); }
  .btn-mod > input:checked + .k-body{ background:rgba(58,134,255,.15); border-color:var(--accent); color:var(--accent); }
  

.btn-mod:not(:has(.k-body)) {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding:  .75rem;
    border: 1px solid var(--border-color);
    border-radius: .5rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  }
  
  .btn-mod:not(:has(.k-body)):hover {
    background: rgba(58,134,255,.08);
    border-color: var(--accent);
  }

  
  .btn-mod:not(:has(.k-body)):has(input[type="checkbox"]:checked) {
    background: rgba(58,134,255,.15);
    border-color: var(--accent);
    color: var(--accent);
  }
  
  .btn-mod > input[type="checkbox"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
  }
  
  .card-input:has(.btn-mod + .btn-mod) {
    display: block;                 
  }
  .card-input:has(.btn-mod + .btn-mod) > .group-label {
    display: block;
    margin-bottom: .4rem;
  }
  .card-input:has(.btn-mod + .btn-mod) > .btn-mod {
    margin-right: .5rem;
    margin-bottom: .5rem;
  }
  
  .wrapper-input-textarea{ width:100%; max-width:var(--form-max); }
  .input-type{ width:100%; max-width:var(--form-max); transform: translateY(22px); z-index: -1;}
  
  .grid-item .card > .info-p{ align-self:start; justify-self: center; grid-column: span 2;}
  
  #type-text { grid-column: span 2;}

  .card {
    display: grid;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .card input,
  select {
    height: 40px;
    min-width: 200px;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius-btn);
    outline: none;
  }

  .card input:focus,
  select:focus {
    background-color: var(--bg-card);
  }

  .name-type {
    max-width: 50%;
    padding: 4px 8px;
    height: 40px;
  }

  input:focus {
    border-color: var(--accent);
  }

  .input {
    display: flex;
    flex-direction: column;
    gap: .6rem;
  }

  #gi-two .input-type {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius-btn);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    border: 1px solid var(--border-color);
    padding:  8px;
    min-height: 130px;
    resize: vertical;
    outline: none;
  }

  .input-type:focus,
  .name-type:focus {
    border: 1px solid var(--accent);
  }

  #input-text {
    border-radius: 0 0 var(--border-radius-btn) var(--border-radius-btn);
    transform: translateY(17px);
    cursor: text;
  }
  
  .url-modal {
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    width: fit-content;
    padding: 2rem 1.8rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    border-radius: var(--border-radius-card);
    box-shadow: 0 0 15px var(--box-shadow);

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 999999;
    opacity: 0;
    pointer-events: none;
  }

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

  .url,
  .url-name {
    min-width: 250px;
    height: 40px;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    padding: 0 8px;
  }

  .url:focus,
  .url-name:focus {
    border: 1px solid var(--accent);
    outline: none;
  }

  /* textarea::placeholder {
    white-space: pre-line; 
    text-align: left;    
    line-height: 1.4;     
  }
  
  textarea {
    white-space: pre-wrap;
    vertical-align: top; 
    padding: 8px 12px;  
  }   */

  .wrapper-input-textarea {
    position: relative;
    width: 100%;
    max-width: var(--form-max);
  }

  .toolbar {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-btn) var(--border-radius-btn) 0 0;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
  }
  
  .type-tool-button {
    opacity: .7;
    min-width: 50px;
    height: 25px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius-btn);
    outline: none;
    border: 1px solid transparent;
    border: none;
    transition: opacity .2s ease;
  }

  #copy-svg {
    width: 3rem;
  }

  .copy-btn {
    margin: 1.5rem 0;
    width: fit-content;
    justify-content: end;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    border-radius: var(--border-radius-btn);
    border: 1px solid var(--text-color);
    transition: all .3s ease;
  }

  .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 5px #1264e757;
  }

  .copy-wrapper {
    position: absolute;
    top: 0;
    right: 1rem;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
    transition: filter .2s ease;
    background-color: transparent;
    border: none;
    color: var(--text-color);
  }

.output .download-button {
    background-color: var(--text-color);
    color: var(--bg-color);
    /* border: none; */
}

.luaOutput {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    hyphens: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    overflow: hidden;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: var(--lua-bg);
    color: var(--lua-color);
    border-radius: var(--border-radius-btn);
    position: relative;
    transition: all .3s ease;
  }

  .luaOutput.shine {
    box-shadow: 0 0 10px var(--accent-secondaire);
    color: var(--accent-secondaire);
    opacity: 1;
    transform: scale(1.05);
  }

  .luaOutput svg {
    transform: translateY(-2px);
    vertical-align: middle; 
    margin-right: 0.5rem;
  }
  
  .luaOutput span {
    transform: translateY(2px);
    vertical-align: middle;
  }  

  .copied {
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
    font-size: .8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: .2rem .5rem ;
    border: 1px solid var(--accent);
    border-radius: 40px;
    transform: translateY(10px);
    z-index: 9999;
  }

  .copied.active {
    opacity: 1;
    transform: translateY(-2px);
  }


  .generate-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: end;
  }

  .generate {
    width: fit-content;
    padding: 8px;
    border-radius: var(--border-radius-btn);
    background-color: var(--accent);
    border: none;
    color: var(--white-black);
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all .3s ease;
  }

  .info {
    font-size: 0.7rem;
    color: var(--text-color);
  }

  .info-p {
    font-size: .9rem;
    color: #808080;
    position: relative;
  }

  .info-p-end {
    display: none;
    text-align: end;
    font-size: .75rem;
    font-weight: 400;
    opacity: 0.6;
    margin: 1rem 0;
  }

  /* === FOOTER === */

  footer {
    width: 100%;
    height: auto;
    padding: 5px;
    text-align: center;
    margin-top: 10rem;
    font-size: .7rem;
  }

  footer p {
    transform: translateY(-3.5rem);
  }

  .footer-img {
    width: 0%;
    height: auto;
    display: flex;
    justify-content: space-around;
    align-items: start;
    text-align: center;
    position: relative;
    transform: translateY(-20rem);
    z-index: -1;
  }

  .video-footer {
    top: 22%;
    position: absolute;
    z-index: -1;
    width: 250px;
    filter: brightness(1.8);
  }

  #bg-footer,
  #bg-white-footer {
    transform: rotate(180deg) scaleX(-1);
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center; 
    opacity: 0;
  }

  #bg-footer.active,
  #bg-white-footer.active {
    opacity: 1;
  }


  /* @keyframes glowBg {
    0% { opacity: 0.7 }
    50% { opacity: 1;}
    100% { opacity: 0.7;}
  } */

  .bg {
    opacity: 0;
  }

  .bg.active {
    /* animation: glowBg 4s linear infinite; */
    opacity: 1;
  }

  .bg-white {
    opacity: 0;
  }

  .bg-white.active {
    opacity: 1;
  }


  @media (max-width: 900px) {
    .bg,
    .bg-white {
      top: 20%;
    }

    .footer-img {
      transform: translateY(0);
    }

    footer p {
      transform: translateY(-.5rem);
    }

    .plus-value h1 {
      transform: translateY(0px);
    }

    .info-download {
      padding: 0 1rem ;
      text-align: center;
    }
  }

  @media (max-width: 400px) {

    body {
      overflow-x: hidden;
    }

    .menu-nav {
      left: 0;
    }

    .logo-wrapper {
      max-width: 2rem;
    }

    #logo-menu {
      max-width: 4rem;
    }

    .title {
      font-size: .8rem;
    }

    .hero-title-wrapper {
      transform: translateY(0);
    }

    .hero-title {
        letter-spacing: -1px;
      }

      .hero-line .hero-feat {
        line-height: 2;
      }

    .plus-value {
      height: 100vh;
      justify-content: center;
      align-items: center;
    }

    .plus-value h5 {
      opacity: .8;
      font-size: .8rem;
    }

    .plus-value h1 {
      padding: 0;
      font-size: 1.2rem;
      /* transform: translateY(-2rem); */
    }

    .hero-line .feat-item{
        gap:.5rem;              
        margin-right:.5rem;  
      }

    .grid-item .card {
        display: flex;
        flex-direction: column;
      }

     .grid-item .info-p {
        padding: 14px 12px;
      }

    .card-input {
      min-width: 100%;       
    }

    .card-input .btn-mod {
      text-align: center;
      min-width: 100%;
    }

    .modifiers {
        display:grid;
        grid-template-columns: repeat(4,1fr);
        width: fit-content;
        gap: .5rem;
    }

    .modifiers span {
        flex-basis: 100%;
      }

      #gi-info .title-gi {
        font-size: 1.1rem;
      }

      #gi-info.grid-item .title-gi::after {
        bottom: -2em;
      }

    footer p {
      transform: translateY(-3.5rem);
    }

    .footer-img {
      transform: translateY(3rem);
    }

  }

