/* =============================================================
   TOOLMIVO — REMOVE BACKGROUND
   =============================================================
   Wszystkie klasy narzędzia mają prefix rb-, aby nie naruszać
   wspólnego nav/footer ani innych generatorów.
   ============================================================= */

.rb-page{
  min-height:70vh;
}

.rb-hero{
  position:relative;
  overflow:hidden;
  padding:72px 0 45px;
  text-align:center;
}

.rb-hero::before{
  content:"";
  position:absolute;
  width:620px;
  height:620px;
  left:50%;
  top:-400px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(124,92,255,.20),rgba(59,130,246,.08) 40%,transparent 70%);
  pointer-events:none;
}

.rb-hero-inner{
  position:relative;
  z-index:1;
}

.rb-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(124,92,255,.22);
  border-radius:999px;
  color:#cabfff;
  background:rgba(124,92,255,.07);
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.rb-eyebrow::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#7ce7d9;
  box-shadow:0 0 0 5px rgba(33,212,194,.08);
}

.rb-hero h1{
  max-width:940px;
  margin:22px auto 18px;
  font-size:clamp(42px,6vw,72px);
  line-height:.99;
  letter-spacing:-3.2px;
}

.rb-hero h1 span{
  background:linear-gradient(90deg,#a99aff,#6d9eff 50%,#65e2d5);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.rb-hero-lead{
  max-width:760px;
  margin:0 auto;
  color:var(--muted);
  font-size:17px;
  line-height:1.75;
}

.rb-trust-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:11px;
  margin-top:24px;
}

.rb-trust-row>span{
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:999px;
  color:#8193ad;
  background:rgba(255,255,255,.025);
  font-size:10px;
  font-weight:750;
}

.rb-trust-row svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:#6ee7d6;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =============================================================
   APP SHELL
   ============================================================= */

.rb-tool-section{
  padding:10px 0 44px;
}

.rb-app{
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  gap:16px;
  align-items:start;
}

.rb-panel{
  border:1px solid var(--line);
  border-radius:24px;
  background:
    radial-gradient(circle at 90% 0,rgba(124,92,255,.07),transparent 26%),
    linear-gradient(155deg,rgba(17,34,57,.92),rgba(10,23,40,.90));
  box-shadow:0 22px 55px rgba(0,0,0,.18);
}

.rb-upload-panel{
  padding:22px;
}

.rb-preview-panel{
  min-height:565px;
  padding:22px;
}

.rb-panel-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:17px;
}

.rb-panel-heading>div:first-child{
  display:flex;
  align-items:center;
  gap:11px;
}

.rb-step{
  width:35px;
  height:35px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid rgba(124,92,255,.20);
  border-radius:11px;
  color:#bcb0ff;
  background:rgba(124,92,255,.075);
  font-size:10px;
  font-weight:900;
}

.rb-panel-heading h2{
  margin:0 0 3px;
  font-size:17px;
  letter-spacing:-.4px;
}

.rb-panel-heading p{
  margin:0;
  color:#778aa4;
  font-size:10px;
}

.rb-ready-pill{
  padding:6px 9px;
  border:1px solid rgba(99,223,189,.15);
  border-radius:999px;
  color:#a9f1db;
  background:rgba(99,223,189,.055);
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}


/* =============================================================
   UPLOAD
   ============================================================= */

.rb-dropzone{
  position:relative;
  min-height:300px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:32px 20px;
  border:1px dashed rgba(143,161,186,.22);
  border-radius:19px;
  outline:0;
  background:
    radial-gradient(circle at 50% 35%,rgba(124,92,255,.07),transparent 38%),
    rgba(255,255,255,.014);
  cursor:pointer;
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.rb-dropzone:hover,
.rb-dropzone.is-dragging{
  border-color:rgba(124,92,255,.55);
  background:
    radial-gradient(circle at 50% 35%,rgba(124,92,255,.12),transparent 42%),
    rgba(124,92,255,.025);
}

.rb-dropzone:focus-visible{
  box-shadow:0 0 0 3px rgba(124,92,255,.16);
}

.rb-file-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.rb-upload-icon{
  width:59px;
  height:59px;
  display:grid;
  place-items:center;
  margin-bottom:4px;
  border-radius:18px;
  color:#c7beff;
  background:linear-gradient(135deg,rgba(124,92,255,.19),rgba(59,130,246,.10));
  box-shadow:inset 0 0 0 1px rgba(124,92,255,.12);
}

.rb-upload-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rb-dropzone strong{
  color:#eef4ff;
  font-size:15px;
}

.rb-dropzone>span{
  color:#647892;
  font-size:10px;
}

.rb-dropzone small{
  max-width:340px;
  margin-top:5px;
  color:#647892;
  text-align:center;
  font-size:9px;
  line-height:1.55;
}

.rb-button{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:11px;
  padding:10px 15px;
  font:inherit;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  transition:
    transform .16s ease,
    filter .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.rb-button:not(:disabled):hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}

.rb-button:disabled{
  opacity:.42;
  cursor:not-allowed;
}

.rb-button svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rb-button-primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 9px 24px rgba(61,91,235,.20);
}

.rb-button-secondary{
  border:1px solid rgba(255,255,255,.09);
  color:#d8e1ef;
  background:rgba(255,255,255,.045);
}

.rb-button-ghost{
  border:1px solid rgba(255,255,255,.065);
  color:#8597b0;
  background:transparent;
}

.rb-file-card{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 36px;
  align-items:center;
  gap:11px;
  margin-top:12px;
  padding:10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  background:rgba(255,255,255,.022);
}

.rb-file-thumb{
  width:58px;
  height:58px;
  overflow:hidden;
  border-radius:10px;
  background:#0a1422;
}

.rb-file-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.rb-file-info{
  min-width:0;
  display:grid;
  gap:4px;
}

.rb-file-info strong{
  overflow:hidden;
  color:#dfe8f6;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rb-file-info span{
  color:#677b96;
  font-size:9px;
}

.rb-icon-button{
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  color:#9aacc3;
  background:rgba(255,255,255,.028);
  cursor:pointer;
}

.rb-action-block{
  display:grid;
  gap:8px;
  margin-top:13px;
}

.rb-process-button{
  width:100%;
}

.rb-process-button.is-processing svg{
  animation:rb-spin 1s linear infinite;
}

.rb-model-note{
  margin:0;
  color:#62758f;
  font-size:9px;
  line-height:1.55;
  text-align:center;
}

.rb-progress-card{
  margin-top:13px;
  padding:13px;
  border:1px solid rgba(124,92,255,.12);
  border-radius:13px;
  background:rgba(124,92,255,.035);
}

.rb-progress-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.rb-progress-top>div{
  display:flex;
  align-items:center;
  gap:8px;
}

.rb-progress-top strong{
  font-size:10px;
}

.rb-progress-top>span{
  color:#9b8cff;
  font-size:10px;
  font-weight:900;
}

.rb-spinner{
  width:13px;
  height:13px;
  border:2px solid rgba(124,92,255,.18);
  border-top-color:#9c8eff;
  border-radius:50%;
  animation:rb-spin .75s linear infinite;
}

.rb-progress-track{
  height:5px;
  overflow:hidden;
  margin-top:11px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
}

.rb-progress-track span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2),var(--accent3));
  transition:width .25s ease;
}

.rb-progress-card p{
  margin:8px 0 0;
  color:#6e819a;
  font-size:9px;
  line-height:1.5;
}

.rb-error{
  margin-top:12px;
  padding:11px 12px;
  border:1px solid rgba(255,99,123,.17);
  border-radius:12px;
  color:#ffd3db;
  background:rgba(255,80,107,.055);
  font-size:10px;
  line-height:1.55;
}

@keyframes rb-spin{
  to{transform:rotate(360deg)}
}


/* =============================================================
   PREVIEW
   ============================================================= */

.rb-preview-empty{
  min-height:470px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:35px;
  border:1px dashed rgba(255,255,255,.08);
  border-radius:18px;
  color:#71839c;
  text-align:center;
  background:rgba(255,255,255,.012);
}

.rb-preview-empty-icon{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  margin-bottom:13px;
  border-radius:18px;
  color:#6f82a0;
  background:rgba(255,255,255,.03);
}

.rb-preview-empty-icon svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rb-preview-empty strong{
  color:#a9b8cb;
  font-size:13px;
}

.rb-preview-empty p{
  max-width:330px;
  margin:6px 0 0;
  color:#61748d;
  font-size:10px;
  line-height:1.6;
}

.rb-result{
  display:grid;
  gap:12px;
}

.rb-preview-switcher{
  display:flex;
  width:max-content;
  padding:4px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:rgba(255,255,255,.022);
}

.rb-preview-switcher button{
  border:0;
  border-radius:7px;
  color:#73869f;
  background:transparent;
  padding:7px 10px;
  font:inherit;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}

.rb-preview-switcher button.active{
  color:#fff;
  background:rgba(124,92,255,.18);
}

.rb-image-stage{
  position:relative;
  height:330px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  border-radius:17px;
  background:#0b1422;
}

.rb-image-stage.checkerboard{
  background-color:#eff2f6;
  background-image:
    linear-gradient(45deg,#d9dee6 25%,transparent 25%),
    linear-gradient(-45deg,#d9dee6 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#d9dee6 75%),
    linear-gradient(-45deg,transparent 75%,#d9dee6 75%);
  background-size:22px 22px;
  background-position:0 0,0 11px,11px -11px,-11px 0;
}

.rb-image-stage img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.rb-result-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#61758f;
  font-size:9px;
}

.rb-background-section{
  padding:13px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:14px;
  background:rgba(255,255,255,.018);
}

.rb-field-title{
  display:grid;
  gap:3px;
  margin-bottom:10px;
}

.rb-field-title strong{
  font-size:10px;
}

.rb-field-title span{
  color:#6b7e97;
  font-size:9px;
}

.rb-background-options{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.rb-bg-option{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:35px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  color:#8295ae;
  background:rgba(255,255,255,.02);
  padding:6px 9px;
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.rb-bg-option.active{
  color:#fff;
  border-color:rgba(124,92,255,.35);
  background:rgba(124,92,255,.075);
}

.rb-bg-swatch{
  width:17px;
  height:17px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:5px;
}

.rb-bg-transparent{
  background-color:#fff;
  background-image:
    linear-gradient(45deg,#cfd4dc 25%,transparent 25%),
    linear-gradient(-45deg,#cfd4dc 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#cfd4dc 75%),
    linear-gradient(-45deg,transparent 75%,#cfd4dc 75%);
  background-size:8px 8px;
  background-position:0 0,0 4px,4px -4px,-4px 0;
}

.rb-bg-white{background:#fff}
.rb-bg-dark{background:#111827}
.rb-bg-custom{background:#7c5cff}

.rb-color-option{
  position:relative;
}

.rb-color-option input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}

.rb-download-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rb-download-row .rb-button-primary{
  flex:1 1 180px;
}

.rb-download-row .rb-button-secondary,
.rb-download-row .rb-button-ghost{
  flex:0 1 auto;
}


/* =============================================================
   PRIVACY
   ============================================================= */

.rb-privacy-card{
  display:flex;
  align-items:flex-start;
  gap:13px;
  margin-top:14px;
  padding:15px 17px;
  border:1px solid rgba(33,212,194,.09);
  border-radius:16px;
  background:rgba(33,212,194,.025);
}

.rb-privacy-icon{
  width:38px;
  height:38px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#70dfd2;
  background:rgba(33,212,194,.075);
}

.rb-privacy-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rb-privacy-card strong{
  display:block;
  margin-bottom:4px;
  color:#c9ebe6;
  font-size:11px;
}

.rb-privacy-card p{
  max-width:900px;
  margin:0;
  color:#6f8e91;
  font-size:10px;
  line-height:1.65;
}


/* =============================================================
   CONTENT / SEO
   ============================================================= */

.rb-content-section{
  padding:44px 0 25px;
}

.rb-content-heading{
  max-width:680px;
  margin-bottom:20px;
}

.rb-content-heading>span,
.rb-info-kicker{
  display:block;
  margin-bottom:7px;
  color:#8877ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.rb-content-heading h2,
.rb-info-card h2,
.rb-tips-card h2{
  margin:0;
  font-size:clamp(24px,3vw,31px);
  letter-spacing:-1px;
}

.rb-content-heading p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}

.rb-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}

.rb-steps article,
.rb-info-card,
.rb-tips-card{
  border:1px solid var(--line);
  border-radius:19px;
  background:linear-gradient(155deg,rgba(17,34,57,.78),rgba(10,24,41,.74));
}

.rb-steps article{
  padding:22px;
}

.rb-steps article>span{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  font-size:10px;
  font-weight:900;
}

.rb-steps h3{
  margin:0 0 7px;
  font-size:14px;
}

.rb-steps p{
  margin:0;
  color:#7c8ea7;
  font-size:11px;
  line-height:1.65;
}

.rb-info-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:14px;
  margin-top:14px;
}

.rb-info-card,
.rb-tips-card{
  padding:27px;
}

.rb-feature-list{
  display:grid;
  gap:8px;
  margin-top:20px;
}

.rb-feature-list>div{
  display:grid;
  gap:3px;
  padding:12px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:12px;
  background:rgba(255,255,255,.018);
}

.rb-feature-list strong{
  font-size:11px;
}

.rb-feature-list span{
  color:#7588a1;
  font-size:10px;
  line-height:1.55;
}

.rb-tips-card ul{
  display:grid;
  gap:10px;
  margin:20px 0 0;
  padding:0;
  list-style:none;
}

.rb-tips-card li{
  position:relative;
  padding-left:22px;
  color:#8395ad;
  font-size:11px;
  line-height:1.55;
}

.rb-tips-card li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#62decf;
  font-weight:900;
}

.rb-faq{
  max-width:900px;
  margin:52px auto 0;
}

.rb-faq-heading{
  text-align:center;
  margin-inline:auto;
}

.rb-faq details{
  border-bottom:1px solid rgba(255,255,255,.07);
}

.rb-faq summary{
  position:relative;
  padding:18px 35px 18px 0;
  color:#d6e0ef;
  cursor:pointer;
  list-style:none;
  font-size:12px;
  font-weight:800;
}

.rb-faq summary::-webkit-details-marker{
  display:none;
}

.rb-faq summary::after{
  content:"+";
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  color:#8b7aff;
  font-size:18px;
  font-weight:500;
}

.rb-faq details[open] summary::after{
  content:"−";
}

.rb-faq details p{
  max-width:780px;
  margin:-4px 0 18px;
  color:#7588a1;
  font-size:11px;
  line-height:1.7;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media(max-width:900px){
  .rb-app,
  .rb-info-grid{
    grid-template-columns:1fr;
  }

  .rb-preview-panel{
    min-height:auto;
  }

  .rb-steps{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .rb-hero{
    padding:48px 0 30px;
  }

  .rb-hero h1{
    letter-spacing:-2.2px;
  }

  .rb-hero-lead{
    font-size:15px;
  }

  .rb-upload-panel,
  .rb-preview-panel{
    padding:15px;
    border-radius:19px;
  }

  .rb-dropzone{
    min-height:270px;
    padding-inline:15px;
  }

  .rb-image-stage{
    height:280px;
  }

  .rb-panel-heading{
    align-items:flex-start;
  }

  .rb-result-meta{
    flex-direction:column;
    gap:3px;
  }

  .rb-download-row{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .rb-download-row .rb-button-primary{
    grid-column:1 / -1;
  }

  .rb-info-card,
  .rb-tips-card{
    padding:21px;
  }
}

@media(max-width:390px){
  .rb-download-row{
    grid-template-columns:1fr;
  }

  .rb-download-row .rb-button-primary{
    grid-column:auto;
  }

  .rb-trust-row{
    align-items:center;
    flex-direction:column;
  }
}


/* =============================================================
   V2 — BREADCRUMBS + SEO CONTENT
   ============================================================= */

.rb-breadcrumb-wrap{
  padding-top:18px;
}

.rb-breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  color:#5f728c;
  font-size:9px;
  font-weight:750;
}

.rb-breadcrumb a{
  color:#788ba4;
  text-decoration:none;
}

.rb-breadcrumb a:hover{
  color:#b7aaff;
}

.rb-breadcrumb span[aria-hidden="true"]{
  color:#42546c;
}

.rb-breadcrumb span[aria-current="page"]{
  color:#9cacc1;
}

.rb-seo-copy{
  margin-top:48px;
  padding:29px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    radial-gradient(circle at 100% 0,rgba(124,92,255,.07),transparent 34%),
    linear-gradient(155deg,rgba(17,34,57,.72),rgba(10,24,41,.68));
}

.rb-seo-copy-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(240px,.55fr);
  gap:28px;
}

.rb-seo-article{
  display:grid;
  gap:13px;
}

.rb-seo-article p{
  margin:0;
  color:#7d90a9;
  font-size:11px;
  line-height:1.8;
}

.rb-seo-side{
  padding:18px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:15px;
  background:rgba(255,255,255,.018);
}

.rb-seo-side>strong{
  display:block;
  margin-bottom:13px;
  color:#dbe5f2;
  font-size:11px;
}

.rb-seo-side ul{
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  list-style:none;
}

.rb-seo-side li{
  position:relative;
  padding-left:19px;
  color:#768aa3;
  font-size:10px;
  line-height:1.55;
}

.rb-seo-side li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent3));
  box-shadow:0 0 0 4px rgba(124,92,255,.06);
}

.rb-noscript{
  margin-top:15px;
  margin-bottom:15px;
  padding:13px 15px;
  border:1px solid rgba(255,190,80,.15);
  border-radius:12px;
  color:#d6bd8f;
  background:rgba(255,190,80,.045);
  font-size:10px;
}

@media(max-width:760px){
  .rb-seo-copy{
    padding:21px;
  }

  .rb-seo-copy-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
}
