/* =============================
   Reset & base
   ============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
  /* Core */
  --bg: #ffffff;
  --white: #ffffff;
  --surface: #f6f7f9;

  /* Borders */
  --border: #e2e5ed;

  /* Brand Colors */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid: #dbeafe;

  --accent: #0070f3;
  --accent-h: #2f4ac9;

  /* Text */
  --text: #1a1d27;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --muted: #6b7280;

  /* Status Colors */
  --red: #ef4444;
  --red-light: #fef2f2;

  --green: #16a34a;
  --green-light: #f0fdf4;

  /* Layout */
  --radius: 10px;
  --nav-h: 58px;
  --sidebar-w: 300px;
  --max-w: 920px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08),
               0 1px 2px rgba(0,0,0,.04);

  --shadow-md: 0 4px 12px rgba(0,0,0,.1);

  --hover-bg: #fafafa;
}


html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }




/* =============================
   Hero
   ============================= */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.25rem;
  text-align: center;
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; }

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* =============================
   Button
   ============================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn:hover { background: var(--accent-h); text-decoration: none; color: #fff; }

/* =============================
   Container
   ============================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* =============================
   Post list
   ============================= */
.recent-posts { border-top: 1px solid var(--border); }
.recent-posts h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.blog-index h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; }
.post-list { list-style: none; display: flex; flex-direction: column; gap: 2rem; }
.post-card { border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.post-card:last-child { border-bottom: none; }

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

.post-card h2, .post-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.post-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.65rem; }
.read-more { font-size: 0.85rem; font-weight: 600; }

/* =============================
   Single post
   ============================= */
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 1.9rem; font-weight: 800; margin-top: 0.4rem; }
.post-body { line-height: 1.8; }
.post-body h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.post-body li { margin-bottom: 0.3rem; }

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.post-body code {
  background: var(--surface);
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
}

.post-body pre code { background: none; padding: 0; }
.post-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* =============================
   Footer
   ============================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer p { font-size: 0.82rem; color: var(--muted); }

.site-footer a {
    color: #0000ee;
    text-decoration: underline;
    font-weight: 500;
}

.site-footer a:active {
    color: #0000aa;
    text-decoration: underline;
    outline: 2px solid #0000aa;
    outline-offset: 2px;
}

.site-footer a:hover {
    color: #0000aa;
    text-decoration: underline;
    outline: 2px solid #0000aa;
    outline-offset: 2px;
}
.site-footer a:focus {
    color: #0000aa;
    text-decoration: underline;
    outline: 2px solid #0000aa;
    outline-offset: 2px;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.75rem; }
}




/* ── RELATED BLOG ANYWHERE ───────────────── */

.relatedbloganywhere-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:22px;
  margin-top:26px;
}

/* CARD */

.relatedbloganywhere-card{
  position:relative;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  overflow:hidden;
}

/* IMAGE */

.relatedbloganywhere-thumb{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#f3f4f6;
}

.relatedbloganywhere-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
    margin:0px 0px;
}

/* CATEGORY */

.relatedbloganywhere-category{
  position:absolute;
  top:14px;
  left:14px;
  z-index:5;

  display:inline-block;
  padding:7px 12px;

  background:#fff;
  border:1px solid #dbe1ea;
  border-radius:999px;

  font-size:11px;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase;

  color:#2563eb;
  text-decoration:none;
}

/* CATEGORY HOVER */

.relatedbloganywhere-category:hover{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff !important;
  text-decoration:underline;
}

/* CONTENT */

.relatedbloganywhere-content{
  padding:18px;
}

/* TITLE LINK */

.relatedbloganywhere-content a{
  text-decoration:none;
  color:inherit;
}

/* TITLE */

.relatedbloganywhere-content h2{
  margin:0;

  color:#111827;
  font-size:26px;
  font-weight:700;
  line-height:1.5;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
}

/* TITLE HOVER */

.relatedbloganywhere-content a:hover h2{
  color:#eb252f;
  text-decoration:underline;
}

/* BOTTOM BORDER */

.relatedbloganywhere-card::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:3px;
  background:#4f0606;
}

/* MOBILE */

@media(max-width:700px){

  .relatedbloganywhere-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .relatedbloganywhere-content{
    padding:16px;
  }

  .relatedbloganywhere-content h2{
    font-size:15px;
  }

}

/* Blog Section*/


.breadcrumb { border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumb .container { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.breadcrumb ol { list-style: none; display: flex; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.breadcrumb ol li + li::before { content: "›"; margin-right: 0.5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.blog-index { padding: 3rem 0 4rem; }
.blog-index h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* NAVBAR WITH LANGUGE SWTICHER CSS*/

nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:40px;
  height:70px;
  padding:0 24px;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}

/* Logo */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  flex-shrink:0;
}

.logo img{
  height:50px;
  width:auto;
  display:block;
}

.logo span{
  font-size:22px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  color:var(--text);
}

/* Menu */
.menu{
  display:flex;
  align-items:center;
  gap:12px;
}

.menu a{
  text-decoration:none;
  color:var(--text);
  font-size:15px;
  font-weight:500;
  padding:8px 16px;
  border-radius:8px;
  transition:.2s;
}

.menu a:hover{
  background:var(--hover-bg);
  color:var(--accent);
}

/* Language Switcher */
.lang-switcher{
  position:relative;
  border:1px solid #333;
  flex-shrink:0;
  border-radius:8px;
}

.lang-btn{
  display:flex;
  align-items:center;
  gap:6px;
  border:none;
  background:transparent;
  color:var(--text);
  font-size:15px;
  font-weight:500;
  padding:8px 16px;
  border-radius:8px;
  cursor:pointer;
  transition:.2s;
}

.lang-btn:hover{
  background:var(--hover-bg);
  color:var(--accent);
}

.lang-btn img{
  width:20px;
  height:15px;
  object-fit:cover;
  border-radius:2px;
}

.lang-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:190px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow-md);
  padding:8px;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.2s ease;
  z-index:2000;
}

.lang-dropdown.active{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.lang-dropdown a{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:var(--text);
  font-size:14px;
  font-weight:500;
  padding:10px 12px;
  border-radius:8px;
  transition:.2s;
}

.lang-dropdown a:hover{
  background:var(--hover-bg);
  color:var(--accent);
}

.lang-dropdown a.active-lang{
  color:var(--accent);
  font-weight:700;
}

.lang-dropdown img{
  width:20px;
  height:15px;
  object-fit:cover;
  border-radius:2px;
}

/* Hamburger */
.icon-btn{
  display:none;
  width:40px;
  height:40px;
  border:none;
  background:transparent;
  cursor:pointer;
  position:relative;
  z-index:1002;
}

.line{
  position:absolute;
  left:10px;
  width:20px;
  height:2px;
  background:var(--text);
  transition:.3s;
}

.line:nth-child(1){top:14px;}
.line:nth-child(2){top:20px;}
.line:nth-child(3){top:26px;}

.overlay{
  display:none;
}

.overlay.active{
  display:block;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.2);
  backdrop-filter:blur(4px);
  z-index:999;
}

/* Mobile */
@media(max-width:900px){

  nav{
    justify-content:space-between;
    gap:10px;
    padding:0 12px;
  }

  .logo{
    flex:1;
  }

  .logo img{
    height:42px;
  }

  .logo span{
    font-size:18px;
  }

  .lang-switcher{
    order:2;
  }

  .icon-btn{
    order:3;
    display:block;
  }

  .menu{
    position:fixed;
    top:0;
    right:-100%;
    width:80%;
    height:100vh;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    padding:80px 20px;
    overflow-y:auto;
    transition:.4s ease;
    z-index:1001;
    box-shadow:-10px 0 30px rgba(0,0,0,.08);
  }

  .menu.active{
    right:0;
  }

  .menu a{
    width:100%;
    font-size:18px;
    padding:15px;
  }

  .lang-dropdown{
    min-width:170px;
    right:0;
  }

  .icon-btn.active .line:nth-child(1){
    transform:rotate(45deg);
    top:20px;
  }

  .icon-btn.active .line:nth-child(2){
    opacity:0;
  }

  .icon-btn.active .line:nth-child(3){
    transform:rotate(-45deg);
    top:20px;
  }
}

/* Tool CSS*/

/* =============================
   Reset & base
   ============================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core */
  --bg: #ffffff;
  --white: #ffffff;
  --surface: #f6f7f9;

  /* Borders */
  --border: #e2e5ed;

  /* Brand Colors */
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid: #dbeafe;

  --accent: #0070f3;
  --accent-h: #2f4ac9;

  /* Text */
  --text: #1a1d27;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --muted: #6b7280;

  /* Status Colors */
  --red: #ef4444;
  --red-light: #fef2f2;

  --green: #16a34a;
  --green-light: #f0fdf4;

  /* Layout */
  --radius: 10px;
  --nav-h: 58px;
  --sidebar-w: 300px;
  --max-w: 920px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);

  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);

  --hover-bg: #fafafa;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =============================
   Hero
   ============================= */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.25rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* =============================
   Button
   ============================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-h);
  text-decoration: none;
  color: #fff;
}

/* =============================
   Container
   ============================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* =============================
   Post list
   ============================= */
.recent-posts {
  border-top: 1px solid var(--border);
}
.recent-posts h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.blog-index h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
}
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.post-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.post-card:last-child {
  border-bottom: none;
}

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

.post-card h2,
.post-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.post-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 600;
}

/* =============================
   Single post
   ============================= */
.post-header {
  margin-bottom: 2rem;
}
.post-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-top: 0.4rem;
}
.post-body {
  line-height: 1.8;
}
.post-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.post-body p {
  margin-bottom: 1.1rem;
}
.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.post-body li {
  margin-bottom: 0.3rem;
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}

.post-body code {
  background: var(--surface);
  padding: 0.15em 0.35em;
  border-radius: 3px;
  font-size: 0.88em;
}

.post-body pre code {
  background: none;
  padding: 0;
}
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* =============================
   Footer
   ============================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: #0000ee;
  text-decoration: underline;
  font-weight: 500;
}

.site-footer a:active {
  color: #0000aa;
  text-decoration: underline;
  outline: 2px solid #0000aa;
  outline-offset: 2px;
}

.site-footer a:hover {
  color: #0000aa;
  text-decoration: underline;
  outline: 2px solid #0000aa;
  outline-offset: 2px;
}
.site-footer a:focus {
  color: #0000aa;
  text-decoration: underline;
  outline: 2px solid #0000aa;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ── RELATED BLOG ANYWHERE ───────────────── */

.relatedbloganywhere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 26px;
}

/* CARD */

.relatedbloganywhere-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
}

/* IMAGE */

.relatedbloganywhere-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f3f4f6;
}

.relatedbloganywhere-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0px 0px;
}

/* CATEGORY */

.relatedbloganywhere-category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;

  display: inline-block;
  padding: 7px 12px;

  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;

  color: #2563eb;
  text-decoration: none;
}

/* CATEGORY HOVER */

.relatedbloganywhere-category:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
  text-decoration: underline;
}

/* CONTENT */

.relatedbloganywhere-content {
  padding: 18px;
}

/* TITLE LINK */

.relatedbloganywhere-content a {
  text-decoration: none;
  color: inherit;
}

/* TITLE */

.relatedbloganywhere-content h2 {
  margin: 0;

  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* TITLE HOVER */

.relatedbloganywhere-content a:hover h2 {
  color: #2563eb;
  text-decoration: underline;
}

/* BOTTOM BORDER */

.relatedbloganywhere-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #3b82f6;
}

/* MOBILE */

@media (max-width: 700px) {
  .relatedbloganywhere-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .relatedbloganywhere-content {
    padding: 16px;
  }

  .relatedbloganywhere-content h2 {
    font-size: 15px;
  }
}

/* Blog Section*/

.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb ol li + li::before {
  content: "›";
  margin-right: 0.5rem;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}

.blog-index {
  padding: 3rem 0 4rem;
}
.blog-index h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* NAVBAR WITH LANGUGE SWTICHER CSS*/

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  height: 70px;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: 0.2s;
}

.menu a:hover {
  background: var(--hover-bg);
  color: var(--accent);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  border: 1px solid #333;
  flex-shrink: 0;
  border-radius: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.lang-btn:hover {
  background: var(--hover-bg);
  color: var(--accent);
}

.lang-btn img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 2000;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: 0.2s;
}

.lang-dropdown a:hover {
  background: var(--hover-bg);
  color: var(--accent);
}

.lang-dropdown a.active-lang {
  color: var(--accent);
  font-weight: 700;
}

.lang-dropdown img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/* Hamburger */
.icon-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.line {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.line:nth-child(1) {
  top: 14px;
}
.line:nth-child(2) {
  top: 20px;
}
.line:nth-child(3) {
  top: 26px;
}

.overlay {
  display: none;
}

.overlay.active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 999;
}

/* Mobile */
@media (max-width: 900px) {
  nav {
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
  }

  .logo {
    flex: 1;
  }

  .logo img {
    height: 42px;
  }

  .logo span {
    font-size: 18px;
  }

  .lang-switcher {
    order: 2;
  }

  .icon-btn {
    order: 3;
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px;
    overflow-y: auto;
    transition: 0.4s ease;
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  }

  .menu.active {
    right: 0;
  }

  .menu a {
    width: 100%;
    font-size: 18px;
    padding: 15px;
  }

  .lang-dropdown {
    min-width: 170px;
    right: 0;
  }

  .icon-btn.active .line:nth-child(1) {
    transform: rotate(45deg);
    top: 20px;
  }

  .icon-btn.active .line:nth-child(2) {
    opacity: 0;
  }

  .icon-btn.active .line:nth-child(3) {
    transform: rotate(-45deg);
    top: 20px;
  }
}

/* Tool CSS*/

#infoContent {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
}
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px 20px;
} /* page-title & page-sub visible by default, hidden after upload */
.page-title {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.page-sub {
  display: block;
  color: #111010;
  font-size: 14px;
  margin-bottom: 20px;
}
.page-title.hidden {
  display: none;
}
.page-sub.hidden {
  display: none;
} /* ── UPLOAD BOX ── */
.upload-box {
  background: #c41318;
  border: 1px dashed #ffffff;
  border-radius: 10px;
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.upload-box:hover,
.upload-box.dragover {
  border-color: #3b82f6;
  background: #840b0f;
}
.upload-box .icon {
  width: 46px;
  height: 46px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.upload-box .icon svg {
  width: 22px;
  height: 22px;
  stroke: #555;
}
.upload-box h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ffffff;
}
.upload-box p {
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 20px;
}
.upload-note a {
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.upload-note a:hover {
  opacity: 0.8;
}
.upload-note a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}
.upload-note a:active {
  opacity: 0.6;
}
.btn-black {
  background: white;
  color: #000000;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-black:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-black svg {
  width: 14px;
  height: 14px;
}
.upload-note {
  margin-top: 12px;
  color: #ffffff;
  font-size: 12px;
}
#uploadedState {
  display: none;
} /* ── TOOLBAR ── */
.toolbar {
  position: sticky;
  top: 52px;
  z-index: 40;
  background: var(--bg);
  padding: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar-title {
  font-size: 14px;
  font-weight: 600;
}
.file-count {
  background: #ebebea;
  color: #888;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.btn-sm {
  background: #fff;
  color: #444;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-sm:hover {
  background: var(--bg);
}
.btn-sm svg {
  width: 12px;
  height: 12px;
  stroke: #888;
}
.btn-merge-top {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.btn-merge-top:hover {
  background: #1d4ed8;
}
.btn-merge-top:disabled {
  background: #93aedd;
  cursor: default;
}
.btn-merge-top svg {
  width: 14px;
  height: 14px;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-add-top {
  background: #fff;
  color: #444;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.btn-add-top:hover {
  background: #f3f3f0;
  border-color: #ccc;
}
.btn-add-top svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 600px) {
  .btn-add-top {
    display: none;
  }
} /* ── FILE LIST ── */
.file-list-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}
.file-row {
  display: grid;
  grid-template-columns: 32px 28px auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0ec;
  background: #fff;
  position: relative;
}
.file-row:last-child {
  border-bottom: none;
}
.file-row.is-source {
  opacity: 0.35;
}
.file-row.drop-above::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
}
.file-row.drop-below::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
}
.drag-handle {
  display: flex;
  flex-wrap: wrap;
  width: 16px;
  gap: 3px;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  padding: 4px 1px;
}
.drag-handle:active {
  cursor: grabbing;
}
.drag-handle span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bbb;
  display: block;
  pointer-events: none;
}
.row-num {
  font-size: 11px;
  color: #bbb;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}
.row-icon {
  width: 34px;
  height: 34px;
  background: #fff4f0;
  border: 1px solid #fdd5c0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}
.row-icon svg {
  width: 15px;
  height: 15px;
  stroke: #e05a1e;
}
.row-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  pointer-events: none;
}
.row-size {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: none;
}
.row-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #d0d0cc;
  padding: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  touch-action: manipulation;
}
.row-del:hover {
  color: #ef4444;
  background: #fef2f2;
}
.row-del svg {
  width: 14px;
  height: 14px;
} /* ── GHOST ── */
#dragGhost {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  align-items: center;
  gap: 8px;
  transform: translate(-20px, -50%);
  transition: none;
}
#dragGhost .ghost-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #fff4f0;
  border: 1px solid #fdd5c0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#dragGhost .ghost-icon svg {
  width: 11px;
  height: 11px;
  stroke: #e05a1e;
}
.add-row-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  border: none;
  border-top: 1px dashed var(--border);
  background: #fafaf8;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  border-radius: 0 0 10px 10px;
}
.add-row-btn:hover {
  background: #f0f0ec;
  color: #555;
}
.add-row-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  flex-shrink: 0;
}
.progress-wrap {
  display: none;
  position: fixed;        /* sticky → fixed */
  top: 50%;               /* center screen */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;          /* sabse upar */
  background: #2563eb;    /* blue background */
  border: none;
  border-radius: 12px;
  padding: 20px 28px;
  gap: 14px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  min-width: 220px;
  justify-content: center;
}

.progress-wrap.show {
  display: flex;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.progress-text {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
} /* ── BOTTOM BAR ── */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  gap: 10px;
  align-items: center;
  z-index: 200;
}
.bottom-bar .btn-merge-full {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bottom-bar .btn-merge-full:hover {
  background: #1d4ed8;
}
.bottom-bar .btn-merge-full:disabled {
  background: #93aedd;
  cursor: default;
}
.bottom-bar .btn-merge-full svg {
  width: 15px;
  height: 15px;
}
.bottom-bar .add-btn {
  background: #fff;
  color: #444;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}
.bottom-bar .add-btn:hover {
  background: #f3f3f0;
}
.bottom-bar .add-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}
@media (max-width: 600px) {
  main {
    padding: 5px;
  }
  .btn-merge-top {
    display: none;
  }
  .bottom-bar {
    display: flex;
  }
  .file-row {
    grid-template-columns: 28px 22px auto 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }
  .row-size {
    display: none;
  }
  .page-title {
    font-size: 20px;
  }
}
@media (max-width: 400px) {
  .file-row {
    grid-template-columns: 28px auto 1fr auto;
  }
  .row-num {
    display: none;
  }
} /* ── INFO ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.section-body {
  color: #555;
  line-height: 1.75;
  font-size: 14px;
  margin-bottom: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px 18px;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 9px;
}
.card ul {
  list-style: none;
  margin-bottom: 11px;
}
.card ul li {
  font-size: 13px;
  color: #666;
  padding: 3px 0 3px 12px;
  position: relative;
  line-height: 1.5;
}
.card ul li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: #bbb;
  font-size: 16px;
  line-height: 1.2;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  font-size: 15px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.tag.g {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.tag.r {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 21px;
  color: #555;
  line-height: 1.6;
}
.tip-n {
  font-size: 19px;
  font-weight: 600;
  color: #241616;
  flex-shrink: 0;
  padding-top: 1px;
} /* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 7px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
@media (max-width: 600px) {
  .toast {
    bottom: 90px;
  }
} /* ── UPLOAD STATE ── */
#uploadState {
  display: block;
}
#uploadState .upload-box {
  width: 100%;
  max-width: 920px;
}
#split-pdf-info .alink {
  color: #0000ee; /* high-contrast blue */
  text-decoration: underline; /* underline makes it distinguishable without color */
  font-weight: 500;
}
#split-pdf-info .alink:hover,
#split-pdf-info .alink:focus {
  color: #0000aa;
  text-decoration: underline;
  outline: 2px solid #0000aa; /* focus indicator for keyboard users */
  outline-offset: 2px;
}

/* Tool Content CSS*/

#split-pdf-info {
  --isec-ink: var(--text, #1a1d27);
  --isec-ink-soft: var(--text-muted, #6b7280);
  --isec-line: var(--border, #e2e5ed);
  --isec-surface: var(--white, #ffffff);
  --isec-surface-alt: var(--surface, #f6f7f9);
  --isec-accent: var(--blue, #2563eb);
  --isec-accent-hover: var(--blue-hover, #1d4ed8);
  --isec-blue-bg: var(--blue-light, #eff6ff);
  --isec-blue-fg: var(--blue, #2563eb);
  --isec-purple-bg: var(--blue-mid, #dbeafe);
  --isec-purple-fg: var(--accent-h, #2f4ac9);
  --isec-teal-bg: var(--green-light, #f0fdf4);
  --isec-teal-fg: var(--green, #16a34a);
  --isec-radius: var(--radius, 10px);
  --isec-shadow: var(
    --shadow-sm,
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04)
  );
  font-family: -apple-system, "Segoe UI", "Inter", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--isec-ink);
  max-width: var(--max-w, 1040px);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

#split-pdf-info *,
#split-pdf-info *::before,
#split-pdf-info *::after {
  box-sizing: border-box;
}

#split-pdf-info .isec-hero {
  padding: 2px 0 8px;
  text-align: center;
}

#split-pdf-info .isec-hero__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--isec-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

#split-pdf-info .isec-hero__subtitle {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--isec-ink-soft);
  margin: 0 auto;
  max-width: 560px;
}

#split-pdf-info .isec-block {
  padding: 40px 0;
}

#split-pdf-info .isec-hero + .isec-block {
  border-top: none;
}

#split-pdf-info .isec-block__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

#split-pdf-info .isec-block__title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--isec-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

#split-pdf-info .isec-block__subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--isec-ink-soft);
  margin: 0;
}

#split-pdf-info .isec-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#split-pdf-info .isec-card-grid--use {
  grid-template-columns: repeat(4, 1fr);
}

#split-pdf-info .isec-card {
  position: relative;
  overflow: hidden;
  background: var(--isec-surface);
  border: 1px solid var(--isec-line);
  border-radius: var(--isec-radius);
  box-shadow: var(--isec-shadow);
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
}

#split-pdf-info .isec-card__bg-icon {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 56px;
  height: 56px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(
    circle at bottom right,
    #000 0%,
    #000 35%,
    transparent 78%
  );
  mask-image: radial-gradient(
    circle at bottom right,
    #000 0%,
    #000 35%,
    transparent 78%
  );
}

#split-pdf-info .isec-card__bg-icon svg {
  width: 100%;
  height: 100%;
}

#split-pdf-info .isec-card__icon,
#split-pdf-info .isec-card__title,
#split-pdf-info .isec-card__text {
  position: relative;
  z-index: 1;
}

#split-pdf-info .isec-card__text {
  padding-right: 34px;
}

#split-pdf-info .isec-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  margin-bottom: 12px;
}

#split-pdf-info .isec-card__icon svg {
  width: 19px;
  height: 19px;
}

#split-pdf-info .isec-card__bg-icon.isec-icon-blue,
#split-pdf-info .isec-card__bg-icon.isec-icon-purple,
#split-pdf-info .isec-card__bg-icon.isec-icon-teal {
  background: transparent;
  border-radius: 0;
}

#split-pdf-info .isec-icon-blue {
  background: var(--isec-blue-bg);
  color: var(--isec-blue-fg);
}
#split-pdf-info .isec-icon-purple {
  background: var(--isec-purple-bg);
  color: var(--isec-purple-fg);
}
#split-pdf-info .isec-icon-teal {
  background: var(--isec-teal-bg);
  color: var(--isec-teal-fg);
}

#split-pdf-info .isec-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--isec-ink);
  margin: 0 0 6px;
  line-height: 1.4;
}

#split-pdf-info .isec-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--isec-ink-soft);
  margin: 0;
}

#split-pdf-info .isec-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

#split-pdf-info .isec-steps > li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

#split-pdf-info .isec-steps__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--isec-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#split-pdf-info .isec-steps__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--isec-ink-soft);
  padding-top: 4px;
}

#split-pdf-info .isec-substeps {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

#split-pdf-info .isec-substeps li {
  font-size: 14.5px;
  line-height: 1.6;
}

#split-pdf-info .isec-substeps strong {
  color: var(--isec-ink);
}

#split-pdf-info .isec-faq__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--isec-accent);
  text-align: center;
  margin: 0 0 14px;
}

#split-pdf-info .isec-faq__list {
  display: grid;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

#split-pdf-info .isec-faq__item {
  border: 1px solid var(--isec-line);
  border-radius: var(--isec-radius);
  background: var(--isec-surface);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#split-pdf-info .isec-faq__item.is-open {
  border-color: var(--isec-accent);
  box-shadow: var(--isec-shadow);
}

#split-pdf-info .isec-faq__summary {
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  margin: 0;
  text-align: left;
  color: var(--isec-ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}

#split-pdf-info .isec-faq__item.is-open .isec-faq__summary {
  background: var(--isec-blue-bg);
  color: var(--isec-accent);
}

#split-pdf-info .isec-faq__chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--isec-surface-alt);
  color: var(--isec-ink-soft);
  transition: transform 0.3s ease, background-color 0.25s ease, color 0.25s ease;
}

#split-pdf-info .isec-faq__chev svg {
  width: 15px;
  height: 15px;
}

#split-pdf-info .isec-faq__item.is-open .isec-faq__chev {
  background: var(--isec-accent);
  color: #fff;
  transform: rotate(180deg);
}

#split-pdf-info .isec-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

#split-pdf-info .isec-faq__item.is-open .isec-faq__panel {
  grid-template-rows: 1fr;
}

#split-pdf-info .isec-faq__panel-inner {
  overflow: hidden;
}

#split-pdf-info .isec-faq__item p {
  margin: 0;
  padding: 4px 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--isec-ink-soft);
}

@media (max-width: 860px) {
  #split-pdf-info .isec-card-grid,
  #split-pdf-info .isec-card-grid--use {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  #split-pdf-info .isec-hero__title {
    font-size: 24px;
  }

  #split-pdf-info .isec-block {
    padding: 28px 0;
  }

  #split-pdf-info .isec-block__title {
    font-size: 19px;
  }

  #split-pdf-info .isec-card-grid,
  #split-pdf-info .isec-card-grid--use {
    grid-template-columns: 1fr;
  }

  #split-pdf-info .isec-steps > li {
    grid-template-columns: 26px 1fr;
  }

  #split-pdf-info .isec-steps__num {
    width: 26px;
    height: 26px;
    font-size: 12.5px;
  }
}

/* =========================
   TABLE
========================= */

#split-pdf-info .isec-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--isec-line);
  border-radius: var(--isec-radius);
  box-shadow: var(--isec-shadow);
  background: var(--isec-surface);
}

#split-pdf-info .isec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

#split-pdf-info .isec-table thead {
  background: var(--isec-blue-bg);
}

#split-pdf-info .isec-table th,
#split-pdf-info .isec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--isec-line);
  font-size: 14px;
  line-height: 1.6;
}

#split-pdf-info .isec-table th {
  font-weight: 700;
  color: var(--isec-ink);
  white-space: nowrap;
}

#split-pdf-info .isec-table td {
  color: var(--isec-ink-soft);
}

#split-pdf-info .isec-table tbody tr:nth-child(even) {
  background: var(--isec-surface-alt);
}

#split-pdf-info .isec-table tbody tr:hover {
  background: var(--isec-blue-bg);
  transition: background 0.2s ease;
}

#split-pdf-info .isec-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 560px) {
  #split-pdf-info .isec-table th,
  #split-pdf-info .isec-table td {
    padding: 12px;
    font-size: 13px;
  }
}

/* =========================
   IMAGE & VIDEO
========================= */

#split-pdf-info .isec-media {
  margin: 24px auto;
  border-radius: var(--isec-radius);
  overflow: hidden;
  box-shadow: var(--isec-shadow);
  border: 1px solid var(--isec-line);
  background: var(--isec-surface);
}

#split-pdf-info .isec-media img,
#split-pdf-info .isec-media video,
#split-pdf-info .isec-media iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* Responsive YouTube/Vimeo */
#split-pdf-info .isec-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--isec-radius);
  box-shadow: var(--isec-shadow);
  border: 1px solid var(--isec-line);
}

#split-pdf-info .isec-video iframe,
#split-pdf-info .isec-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* SHARE BUTTON CSS*/

.fab-grp {
  position: fixed;
  bottom: 28px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  z-index: 500;
}
.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.fab svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.18s;
}
.fab:hover {
  background: var(--blue-light);
  border-color: #93c5fd;
}
.fab:hover svg {
  stroke: var(--blue);
}
.fab-share {
  background: var(--blue);
  border-color: var(--blue);
}
.fab-share svg {
  stroke: #fff;
}
.fab-share:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}
.fab-share:hover svg {
  stroke: #fff;
}
.fab-top {
  display: none;
}

.s-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 700;
  align-items: flex-end;
  justify-content: center;
}
.s-overlay.on {
  display: flex;
}

.s-modal {
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  animation: sheetUp 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.s-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 14px;
}
.s-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.s-head h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0;
}
.s-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-x:hover {
  background: #e5e7eb;
}

.s-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.s-url input {
  flex: 1;
  min-width: 0;
  background: #f4f5f7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: inherit;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-copy {
  flex-shrink: 0;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.14s;
}
.s-copy:hover {
  background: var(--blue-hover);
}
.s-copy.ok {
  background: #16a34a;
}

.s-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px 18px 20px;
}
.s-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.14s, background 0.14s;
  text-decoration: none;
}
.s-item:hover {
  border-color: #93c5fd;
  background: var(--blue-light);
}
.s-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}
.s-item span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}
.s-item:hover span {
  color: var(--blue);
}

@media (min-width: 520px) {
  .s-overlay {
    align-items: center;
  }
  .s-modal {
    border-radius: 16px;
    max-width: 460px;
    animation: fadeIn 0.2s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }
  .s-handle {
    display: none;
  }
}
@media (max-width: 480px) {
  .fab-grp {
    bottom: 80px;
    right: 14px;
  }
  .fab {
    width: 42px;
    height: 42px;
  }
  .fab svg {
    width: 16px;
    height: 16px;
  }
  .s-grid {
    gap: 5px;
    padding: 12px 14px 18px;
  }
  .s-item {
    padding: 10px 3px;
  }
  .s-item span {
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  .s-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .s-item span {
    display: none;
  }
  .s-item {
    padding: 12px 4px;
  }
}


/* Tool Content CSS*/

#split-pdf-info {
  --isec-ink: var(--text, #1a1d27);
  --isec-ink-soft: var(--text-muted, #6b7280);
  --isec-line: var(--border, #e2e5ed);
  --isec-surface: var(--white, #ffffff);
  --isec-surface-alt: var(--surface, #f6f7f9);
  --isec-accent: var(--blue, #2563eb);
  --isec-accent-hover: var(--blue-hover, #1d4ed8);
  --isec-blue-bg: var(--blue-light, #eff6ff);
  --isec-blue-fg: var(--blue, #2563eb);
  --isec-purple-bg: var(--blue-mid, #dbeafe);
  --isec-purple-fg: var(--accent-h, #2f4ac9);
  --isec-teal-bg: var(--green-light, #f0fdf4);
  --isec-teal-fg: var(--green, #16a34a);
  --isec-radius: var(--radius, 10px);
  --isec-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04));
  font-family: -apple-system, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  color: var(--isec-ink);
  max-width: var(--max-w, 1040px);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

#split-pdf-info *, #split-pdf-info *::before, #split-pdf-info *::after {
  box-sizing: border-box;
}

#split-pdf-info .isec-hero {
  padding: 2px 0 8px;
  text-align: center;
}

#split-pdf-info .isec-hero__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--isec-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

#split-pdf-info .isec-hero__subtitle {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--isec-ink-soft);
  margin: 0 auto;
  max-width: 560px;
}

#split-pdf-info .isec-block {
  padding: 40px 0;
}

#split-pdf-info .isec-hero + .isec-block {
  border-top: none;
}

#split-pdf-info .isec-block__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

#split-pdf-info .isec-block__title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--isec-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

#split-pdf-info .isec-block__subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--isec-ink-soft);
  margin: 0;
}

#split-pdf-info .isec-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#split-pdf-info .isec-card-grid--use {
  grid-template-columns: repeat(4, 1fr);
}

#split-pdf-info .isec-card {
  position: relative;
  overflow: hidden;
  background: var(--isec-surface);
  border: 1px solid var(--isec-line);
  border-radius: var(--isec-radius);
  box-shadow: var(--isec-shadow);
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
}

#split-pdf-info .isec-card__bg-icon {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 56px;
  height: 56px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at bottom right, #000 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(circle at bottom right, #000 0%, #000 35%, transparent 78%);
}

#split-pdf-info .isec-card__bg-icon svg {
  width: 100%;
  height: 100%;
}

#split-pdf-info .isec-card__icon,
#split-pdf-info .isec-card__title,
#split-pdf-info .isec-card__text {
  position: relative;
  z-index: 1;
}

#split-pdf-info .isec-card__text {
  padding-right: 34px;
}

#split-pdf-info .isec-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  margin-bottom: 12px;
}

#split-pdf-info .isec-card__icon svg {
  width: 19px;
  height: 19px;
}

#split-pdf-info .isec-card__bg-icon.isec-icon-blue,
#split-pdf-info .isec-card__bg-icon.isec-icon-purple,
#split-pdf-info .isec-card__bg-icon.isec-icon-teal {
  background: transparent;
  border-radius: 0;
}

#split-pdf-info .isec-icon-blue { background: var(--isec-blue-bg); color: var(--isec-blue-fg); }
#split-pdf-info .isec-icon-purple { background: var(--isec-purple-bg); color: var(--isec-purple-fg); }
#split-pdf-info .isec-icon-teal { background: var(--isec-teal-bg); color: var(--isec-teal-fg); }

#split-pdf-info .isec-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--isec-ink);
  margin: 0 0 6px;
  line-height: 1.4;
}

#split-pdf-info .isec-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--isec-ink-soft);
  margin: 0;
}

#split-pdf-info .isec-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

#split-pdf-info .isec-steps > li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

#split-pdf-info .isec-steps__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--isec-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#split-pdf-info .isec-steps__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--isec-ink-soft);
  padding-top: 4px;
}

#split-pdf-info .isec-substeps {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

#split-pdf-info .isec-substeps li {
  font-size: 14.5px;
  line-height: 1.6;
}

#split-pdf-info .isec-substeps strong {
  color: var(--isec-ink);
}

#split-pdf-info .isec-faq__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--isec-accent);
  text-align: center;
  margin: 0 0 14px;
}

#split-pdf-info .isec-faq__list {
  display: grid;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

#split-pdf-info .isec-faq__item {
  border: 1px solid var(--isec-line);
  border-radius: var(--isec-radius);
  background: var(--isec-surface);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

#split-pdf-info .isec-faq__item.is-open {
  border-color: var(--isec-accent);
  box-shadow: var(--isec-shadow);
}

#split-pdf-info .isec-faq__summary {
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  margin: 0;
  text-align: left;
  color: var(--isec-ink);
  transition: background-color .25s ease, color .25s ease;
}

#split-pdf-info .isec-faq__item.is-open .isec-faq__summary {
  background: var(--isec-blue-bg);
  color: var(--isec-accent);
}

#split-pdf-info .isec-faq__chev {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--isec-surface-alt);
  color: var(--isec-ink-soft);
  transition: transform .3s ease, background-color .25s ease, color .25s ease;
}

#split-pdf-info .isec-faq__chev svg {
  width: 15px;
  height: 15px;
}

#split-pdf-info .isec-faq__item.is-open .isec-faq__chev {
  background: var(--isec-accent);
  color: #fff;
  transform: rotate(180deg);
}

#split-pdf-info .isec-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

#split-pdf-info .isec-faq__item.is-open .isec-faq__panel {
  grid-template-rows: 1fr;
}

#split-pdf-info .isec-faq__panel-inner {
  overflow: hidden;
}

#split-pdf-info .isec-faq__item p {
  margin: 0;
  padding: 4px 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--isec-ink-soft);
}

@media (max-width: 860px) {
  #split-pdf-info .isec-card-grid,
  #split-pdf-info .isec-card-grid--use {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  #split-pdf-info .isec-hero__title {
    font-size: 24px;
  }

  #split-pdf-info .isec-block {
    padding: 28px 0;
  }

  #split-pdf-info .isec-block__title {
    font-size: 19px;
  }

  #split-pdf-info .isec-card-grid,
  #split-pdf-info .isec-card-grid--use {
    grid-template-columns: 1fr;
  }

  #split-pdf-info .isec-steps > li {
    grid-template-columns: 26px 1fr;
  }

  #split-pdf-info .isec-steps__num {
    width: 26px;
    height: 26px;
    font-size: 12.5px;
  }
}


/* =========================
   TABLE
========================= */

#split-pdf-info .isec-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--isec-line);
  border-radius: var(--isec-radius);
  box-shadow: var(--isec-shadow);
  background: var(--isec-surface);
}

#split-pdf-info .isec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

#split-pdf-info .isec-table thead {
  background: var(--isec-blue-bg);
}

#split-pdf-info .isec-table th,
#split-pdf-info .isec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--isec-line);
  font-size: 14px;
  line-height: 1.6;
}

#split-pdf-info .isec-table th {
  font-weight: 700;
  color: var(--isec-ink);
  white-space: nowrap;
}

#split-pdf-info .isec-table td {
  color: var(--isec-ink-soft);
}

#split-pdf-info .isec-table tbody tr:nth-child(even) {
  background: var(--isec-surface-alt);
}

#split-pdf-info .isec-table tbody tr:hover {
  background: var(--isec-blue-bg);
  transition: background .2s ease;
}

#split-pdf-info .isec-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 560px) {
  #split-pdf-info .isec-table th,
  #split-pdf-info .isec-table td {
    padding: 12px;
    font-size: 13px;
  }
}

/* =========================
   IMAGE & VIDEO
========================= */

#split-pdf-info .isec-media {
  margin: 24px auto;
  border-radius: var(--isec-radius);
  overflow: hidden;
  box-shadow: var(--isec-shadow);
  border: 1px solid var(--isec-line);
  background: var(--isec-surface);
}

#split-pdf-info .isec-media img,
#split-pdf-info .isec-media video,
#split-pdf-info .isec-media iframe {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* Responsive YouTube/Vimeo */
#split-pdf-info .isec-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--isec-radius);
  box-shadow: var(--isec-shadow);
  border: 1px solid var(--isec-line);
}

#split-pdf-info .isec-video iframe,
#split-pdf-info .isec-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}



/* SHARE BUTTON CSS*/


.fab-grp {
  position: fixed;
  bottom: 28px; right: 22px;
  display: flex; flex-direction: column;
  align-items: center; gap: 9px;
  z-index: 500;
}
.fab {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  flex-shrink: 0;
}
.fab svg { width: 18px; height: 18px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .18s; }
.fab:hover { background: var(--blue-light); border-color: #93c5fd; }
.fab:hover svg { stroke: var(--blue); }
.fab-share { background: var(--blue); border-color: var(--blue); }
.fab-share svg { stroke: #fff; }
.fab-share:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.fab-share:hover svg { stroke: #fff; }
.fab-top { display: none; }

.s-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 700; align-items: flex-end; justify-content: center;
}
.s-overlay.on { display: flex; }

.s-modal {
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  animation: sheetUp .26s cubic-bezier(.32,.72,0,1) forwards;
}
@keyframes sheetUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
@keyframes fadeIn  { from { opacity: 0; transform: scale(.95) } to { opacity: 1; transform: scale(1) } }

.s-handle { width: 36px; height: 4px; background: #ddd; border-radius: 2px; margin: 12px auto 14px; }
.s-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px 13px; border-bottom: 1px solid rgba(0,0,0,.08); }
.s-head h3 { font-size: 15px; font-weight: 600; color: #111; margin: 0; }
.s-x { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; border: none; cursor: pointer; font-size: 13px; color: #555; display: flex; align-items: center; justify-content: center; }
.s-x:hover { background: #e5e7eb; }

.s-url { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid rgba(0,0,0,.08); }
.s-url input { flex: 1; min-width: 0; background: #f4f5f7; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--text-muted); font-family: inherit; outline: none; overflow: hidden; text-overflow: ellipsis; }
.s-copy { flex-shrink: 0; background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 8px 15px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background .14s; }
.s-copy:hover { background: var(--blue-hover); }
.s-copy.ok { background: #16a34a; }

.s-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px 18px 20px; }
.s-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; cursor: pointer; background: var(--bg); transition: border-color .14s, background .14s; text-decoration: none; }
.s-item:hover { border-color: #93c5fd; background: var(--blue-light); }
.s-item svg { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.s-item span { font-size: 10px; font-weight: 500; color: var(--text-muted); text-align: center; line-height: 1.2; }
.s-item:hover span { color: var(--blue); }

@media (min-width: 520px) {
  .s-overlay { align-items: center; }
  .s-modal { border-radius: 16px; max-width: 460px; animation: fadeIn .2s cubic-bezier(.32,.72,0,1) forwards; }
  .s-handle { display: none; }
}
@media (max-width: 480px) {
  .fab-grp { bottom: 80px; right: 14px; }
  .fab { width: 42px; height: 42px; }
  .fab svg { width: 16px; height: 16px; }
  .s-grid { gap: 5px; padding: 12px 14px 18px; }
  .s-item { padding: 10px 3px; }
  .s-item span { font-size: 9px; }
}
@media (max-width: 360px) {
  .s-grid { grid-template-columns: repeat(4, 1fr); }
  .s-item span { display: none; }
  .s-item { padding: 12px 4px; }
}
