:root {
  --pcolor: #5b46e5;
  --pcolor-dark: #4330c9;
  --violet: #7c3aed;
  --scolor: #ec2d7a;
  --accent-orange: #f59e0b;
  --accent-cyan: #06b6d4;
  --bg: #f3f1ff;
  --text: #1f2338;
  --muted: #5a607a;
  --link: #4338ca;
  --teal: #059669;
  --teal-hover: #047857;
  --dash: #9b8cf5;
  --badge-blue: #0284c7;
  --white: #ffffff;
  --yellow-hover: #fde047;
  --grad-brand: linear-gradient(120deg, #4f46e5 0%, #7c3aed 48%, #db2777 100%);
  --grad-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
  --grad-btn-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #be185d 100%);
  --grad-teal: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  --grad-teal-hover: linear-gradient(135deg, #0f766e 0%, #047857 100%);
  --shadow-sm: 0 2px 10px rgba(79, 70, 229, 0.08);
  --shadow-md: 0 8px 24px rgba(79, 70, 229, 0.14);
  --shadow-lg: 0 18px 42px rgba(49, 46, 129, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f5f0ff 0%, #eef7ff 48%, #fdf2f8 100%) fixed;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 1000px;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */
@keyframes gkSpin {
  to { transform: rotate(360deg); }
}

@keyframes gkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gkSlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gkDropDown {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gkCardPop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gkGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gkDropPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(236, 45, 122, 0.12); }
}

@keyframes gkShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==================== HEADER NAVBAR (.pn) ==================== */
nav.pn {
  background: var(--grad-brand);
  background-size: 180% 180%;
  animation: gkGradientMove 14s ease infinite;
  color: var(--white);
  min-height: 62px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.28);
  position: relative;
  z-index: 120;
}

.logodiv {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.logodiv:hover {
  transform: translateY(-1px) scale(1.015);
}

.logodiv svg,
.logodiv img:not(.p7logo) {
  height: 37px;
  width: auto;
  margin-right: 8px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.18));
}

.logodiv b {
  font-size: 21px;
  color: var(--white);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.navlinks {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navlinks > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks > ul > li {
  position: relative;
}

.navlinks > ul > li > a,
.navlinks > ul > li > button.pn-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 62px;
  padding: 0 clamp(8px, 0.85vw, 13px);
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 700;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}

.navlinks > ul > li > a::after,
.navlinks > ul > li > button.pn-drop-btn::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 11px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--yellow-hover);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.navlinks > ul > li > a:hover,
.navlinks > ul > li > button.pn-drop-btn:hover,
.navlinks > ul > li:hover > button.pn-drop-btn {
  color: var(--yellow-hover);
}

.navlinks > ul > li > a:hover::after,
.navlinks > ul > li:hover > button.pn-drop-btn::after {
  transform: scaleX(1);
}

.pn-dd:hover > .pn-panel,
.pn-dd.open > .pn-panel {
  display: block;
  animation: gkDropDown 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pn-dd:hover > .pn-panel-cols,
.pn-dd.open > .pn-panel-cols {
  display: grid;
  animation: gkDropDown 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pn-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  background: var(--white);
  border-top: 3px solid var(--scolor);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  z-index: 250;
}

.pn-panel a {
  display: block;
  padding: 7px 10px;
  color: #323759;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.pn-panel a:hover {
  background: linear-gradient(90deg, #ede9fe, #fce7f3);
  color: var(--pcolor);
  transform: translateX(3px);
}

.pn-panel a.pn-all-link {
  font-weight: 700;
  color: var(--scolor);
  border-top: 1px solid #ece9fa;
  margin-top: 6px;
  padding-top: 9px;
}

.pn-panel-cols {
  min-width: 450px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 15px 17px;
}

.pn-panel-cols.pn-panel-2 {
  min-width: 450px;
  grid-template-columns: repeat(2, 1fr);
}

.pn-panel-cols.pn-panel-3 {
  min-width: 590px;
  grid-template-columns: repeat(3, 1fr);
}

.pn-dd.pn-end > .pn-panel,
.pn-dd.pn-end > .pn-panel-cols {
  left: auto;
  right: 0;
}

.pn-col-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--violet);
  padding: 0 10px 6px;
  border-bottom: 1.5px solid #ede9fe;
  margin-bottom: 5px;
}

.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}

.p7find {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.p7find:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.25);
}

.mencontainer {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 34px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.mencontainer span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-drawer {
  display: none;
  background: linear-gradient(145deg, #3730a3 0%, #6d28d9 60%, #9d174d 100%);
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-height: 75vh;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  animation: gkDropDown 0.2s ease forwards;
}

.mobile-drawer .mob-sec-label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--yellow-hover);
  margin: 6px 2px 2px;
}

.mobile-drawer a {
  color: var(--white);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ==================== MAIN FULL-WIDTH SHELL (MAX 1000PX) ==================== */
.mainsec {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 10px;
  display: block;
}

.maincont {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  padding: 20px 22px 34px;
  position: relative;
  min-height: calc(100vh - 150px);
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: var(--shadow-sm);
  animation: gkFadeIn 0.26s ease;
}

.sidecon {
  display: none !important;
}

body.workspace-expanded .sidecon {
  display: none;
}

body.workspace-expanded .maincont {
  width: 100%;
  flex: 1 1 100%;
}

/* ==================== HOMEPAGE (COMBINED PDF + IMAGE) ==================== */
.indexsec h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0 14px;
  text-align: center;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-search-wrap {
  background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 50%, #fce7f3 100%);
  padding: 9px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(124, 58, 237, 0.16);
}

.home-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  padding: 9px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-search-box:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.home-search-box input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.search-clear-btn {
  border: 0;
  background: #ede9fe;
  color: var(--pcolor);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.search-clear-btn:hover {
  background: var(--scolor);
  color: var(--white);
  transform: rotate(90deg);
}

.suite-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}

.suite-tab {
  border: 1.5px solid #ddd6fe;
  background: var(--white);
  color: #3730a3;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.suite-tab:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  box-shadow: var(--shadow-sm);
}

.suite-tab.active {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.suite-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.suite-banner-head.is-pdf {
  background: linear-gradient(120deg, #4f46e5 0%, #db2777 100%);
}

.suite-banner-head.is-img {
  background: linear-gradient(120deg, #0d9488 0%, #0284c7 55%, #7c3aed 100%);
}

.suite-banner-head a {
  color: var(--yellow-hover);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
}

.suite-banner-head a:hover {
  background: var(--white);
  color: var(--pcolor);
}

.toolgrp {
  font-size: 16.5px;
  font-weight: 800;
  color: #312e81;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ede9fe;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolgrp::before {
  content: '';
  width: 6px;
  height: 18px;
  border-radius: 99px;
  background: var(--grad-btn);
  display: inline-block;
}

/* 4-column Most Used Tool Chips (PDF) */
.topused {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.topused a {
  background: var(--white);
  border: 1.5px solid #c7d2fe;
  border-left: 4px solid #6366f1;
  border-radius: 7px;
  color: #312e81;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.06);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.topused a:nth-child(5n+2) { border-left-color: #ec2d7a; }
.topused a:nth-child(5n+3) { border-left-color: #059669; }
.topused a:nth-child(5n+4) { border-left-color: #f59e0b; }
.topused a:nth-child(5n+5) { border-left-color: #0284c7; }

.topused a:hover {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24);
}

.topused a.is-img-chip {
  border-color: #a7f3d0;
  border-left-color: #0d9488;
  color: #0f766e;
}

.topused a.is-img-chip:nth-child(5n+2) { border-left-color: #0284c7; }
.topused a.is-img-chip:nth-child(5n+4) { border-left-color: #7c3aed; }

.topused a.is-img-chip:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.24);
}

.chip-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.chip-badge.is-pdf {
  background: #ede9fe;
  color: #4f46e5;
}

.chip-badge.is-img {
  background: #ccfbf1;
  color: #0f766e;
}

.topused a:hover .chip-badge {
  background: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

/* 3-column Category Tool Cards (PDF) */
.hometool_container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.hometool_container > a {
  border: 1px solid #e2e8f0;
  border-top: 4px solid #6366f1;
  border-radius: 10px;
  background: var(--white);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  box-shadow: 0 3px 10px rgba(30, 41, 59, 0.05);
  animation: gkCardPop 0.32s ease both;
  transition: background-color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.2s ease;
}

.hometool_container > a:nth-child(6n+2) { border-top-color: #ec2d7a; }
.hometool_container > a:nth-child(6n+3) { border-top-color: #059669; }
.hometool_container > a:nth-child(6n+4) { border-top-color: #f59e0b; }
.hometool_container > a:nth-child(6n+5) { border-top-color: #0284c7; }
.hometool_container > a:nth-child(6n+6) { border-top-color: #8b5cf6; }

.hometool_container > a:hover {
  background: linear-gradient(180deg, #faf8ff 0%, #f0f9ff 100%);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hometool_container > a h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #312e81;
  line-height: 1.35;
}

.hometool_container > a p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  flex: 1;
}

.hometool_container > a .downbtn {
  padding: 6px 16px;
  min-height: 32px;
  font-size: 13px;
  border-radius: 6px;
  margin-top: auto;
}

.otherlinks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.otherlinks-row a {
  border: 1.5px solid #c4b5fd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pcolor);
  background: var(--white);
}

.otherlinks-row a:hover {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Image Tools Homepage Grid (.cat-section / .toolcontainer) */
.cat-section {
  margin-bottom: 22px;
}

.cat-section h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 12px 0 10px;
  color: #0f766e;
  padding-bottom: 5px;
  border-bottom: 2px solid #ccfbf1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-section h2::before {
  content: '';
  width: 6px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(180deg, #0d9488, #0284c7);
  display: inline-block;
}

.toolcontainer {
  display: flex;
  flex-wrap: wrap;
  margin: -6px;
}

.toolcontainer a {
  width: calc(25% - 12px);
  margin: 6px;
  padding: 10px 8px;
  border: 1.5px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 7px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.06);
  animation: gkCardPop 0.28s ease both;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.toolcontainer a:nth-child(6n+2) { border-left-color: #059669; border-color: #a7f3d0; }
.toolcontainer a:nth-child(6n+3) { border-left-color: #7c3aed; border-color: #ddd6fe; }
.toolcontainer a:nth-child(6n+4) { border-left-color: #ec2d7a; border-color: #fbcfe8; }
.toolcontainer a:nth-child(6n+5) { border-left-color: #f59e0b; border-color: #fde68a; }
.toolcontainer a:nth-child(6n+6) { border-left-color: #4f46e5; border-color: #c7d2fe; }

.toolcontainer a:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.24);
}

.toolcontainer a:nth-child(6n+3):hover,
.toolcontainer a:nth-child(6n+6):hover {
  background: var(--grad-btn);
}

.toolcontainer a:nth-child(6n+4):hover {
  background: linear-gradient(135deg, #db2777 0%, #f43f5e 100%);
}

.toolcontainer a:nth-child(6n+5):hover {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
}

.empty-catalog {
  text-align: center;
  padding: 34px 18px;
  border: 2px dashed var(--dash);
  border-radius: 10px;
  background: #faf8ff;
  color: var(--muted);
  margin-top: 12px;
}

/* ==================== RIGHT SIDEBAR (.sidecon) ==================== */
.p7plus-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #ede9fe;
  margin-bottom: 12px;
}

.p7plus-title {
  font-weight: 800;
  font-size: 14px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p7plus-sub {
  font-size: 12px;
  color: var(--muted);
}

.p7plus-btn {
  background: var(--grad-btn);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.24);
}

.p7plus-btn:hover {
  background: var(--grad-btn-hover);
  transform: translateY(-1px);
}

.inlineflex {
  background: linear-gradient(145deg, #f5f3ff 0%, #ecfeff 60%, #fdf2f8 100%);
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #e4ddfe;
}

.p7side-wrap {
  position: relative;
  margin-bottom: 10px;
}

.p7side-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid #d7cffd;
  border-radius: 24px;
  padding: 8px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.p7side-box:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.p7side {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text);
  background: transparent;
}

.sidebar-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  margin-top: 5px;
  max-height: 310px;
  overflow-y: auto;
  z-index: 95;
  animation: gkDropDown 0.15s ease;
}

.sidebar-autocomplete a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f3f0ff;
}

.sidebar-autocomplete a:hover {
  background: linear-gradient(90deg, #ede9fe, #fce7f3);
  color: var(--pcolor);
}

.sidebar-autocomplete small {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
}

.toolbtn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.toolbtn {
  background: var(--white);
  border: 1px solid #e2dcfe;
  border-radius: 7px;
  padding: 9px 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #312e81;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.toolbtn:hover {
  border-color: var(--violet);
  background: #f5f3ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
}

.highligncol {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.18);
  display: inline-block;
  flex-shrink: 0;
}

.dot-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.18);
  display: inline-block;
  flex-shrink: 0;
}

.sdadcon {
  margin-top: 12px;
  border: 1px solid #e5e0fe;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #312e81;
  margin-bottom: 8px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--scolor);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.side-preset-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-preset-list a {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid #e5e7f5;
  border-left: 3px solid var(--violet);
  border-radius: 6px;
  color: #312e81;
}

.side-preset-list a:nth-child(even) {
  border-left-color: var(--teal);
}

.side-preset-list a:hover {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
  transform: translateX(3px);
}

/* ==================== TOOL HEADER & DROPZONE ==================== */
.tool-header {
  text-align: center;
  margin-bottom: 18px;
}

.tool-header h1 {
  font-size: 23px;
  font-weight: 800;
  margin: 4px 0 6px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tool-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.tool-honest-note {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
  font-size: 12.5px;
  text-align: left;
}

.dropzone-wrap {
  width: 84%;
  margin: 30px auto 18px;
  position: relative;
}

.imgdimnst {
  position: absolute;
  top: -29px;
  right: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid #c4b5fd;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #312e81;
  z-index: 5;
}

.dim-unit-btn {
  border: 0;
  background: transparent;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #4b5563;
  transition: background 0.16s ease, color 0.16s ease;
}

.dim-unit-btn.active {
  background: var(--grad-btn);
  font-weight: 700;
  color: var(--white);
}

.imagelabel {
  width: 100%;
  min-height: 152px;
  border: 3px dashed #a78bfa;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #faf7ff 55%, #f0fdfa 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.imagelabel:hover,
.imagelabel.dragover {
  border-style: solid;
  border-color: var(--scolor);
  background: linear-gradient(145deg, #fdf2f8 0%, #f5f3ff 50%, #ecfeff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.16);
}

.imagelabel.dragover {
  animation: gkDropPulse 1.2s ease infinite;
}

.imagelabel.p7f-has .notext {
  display: none;
}

.notext {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-hint {
  color: #4b5563;
  font-size: 14.5px;
  font-weight: 500;
}

.btnsel {
  background: var(--grad-teal);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btnsel:hover {
  background: var(--grad-teal-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 7px 20px rgba(5, 150, 105, 0.36);
}

.btnsel:active {
  transform: scale(0.98);
}

.p7f-link {
  background: transparent;
  border: 0;
  color: var(--pcolor);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.p7f-link:hover {
  text-decoration: underline;
  background: rgba(124, 58, 237, 0.08);
}

/* ==================== QUEUE THUMBNAILS (.img-wrap) ==================== */
.thumb-Images {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.img-wrap {
  width: 196px;
  max-width: 215px;
  border: 1.5px solid #ddd6fe;
  border-radius: 11px;
  overflow: hidden;
  background: var(--white);
  position: relative;
  cursor: default;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.09);
  animation: gkCardPop 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.img-wrap:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.img-frame {
  height: 115px;
  background: linear-gradient(145deg, #f8f7ff 0%, #f0f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6px;
}

.img-frame img,
.img-frame canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
  transition: transform 0.22s ease;
}

.img-wrap:hover .img-frame img {
  transform: scale(1.03);
}

.img-wrap .close,
.pdf-page-card .close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(31, 35, 56, 0.8);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background-color 0.16s ease, transform 0.2s ease;
}

.pdf-page-card .close {
  position: absolute !important;
  float: none !important;
  top: 6px;
  right: 6px;
}

.img-wrap .close:hover,
.pdf-page-card .close:hover {
  background: var(--scolor);
  transform: rotate(90deg) scale(1.1);
}

.rszpexl,
.cropimg {
  position: absolute;
  left: 5px;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.rszpexl {
  top: 5px;
}

.cropimg {
  top: 31px;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

.rszpexl:hover,
.cropimg:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.sizepdf {
  display: inline-block;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  color: var(--pcolor);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-top: 3px;
}

.locked-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, #059669, #0d9488);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 4;
}

.backinfoimg {
  padding: 7px 8px;
  background: var(--white);
  border-top: 1px solid #ede9fe;
  font-size: 12px;
  text-align: center;
}

.backinfoimg .q-name {
  font-weight: 600;
  color: #1f2338;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.backinfoimg .q-meta {
  color: #5d6175;
  margin-top: 2px;
  font-size: 11.5px;
}

.add-more-hint {
  width: 100%;
  font-size: 12.5px;
  color: var(--violet);
  font-weight: 700;
  margin-top: 4px;
}

/* ==================== CONTROLS UNDER DROPZONE ==================== */
#otherbuttons {
  margin: 16px auto 12px;
  width: 92%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pcrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pcgroup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pcgroup label {
  font-weight: 700;
  font-size: 14.5px;
  color: #312e81;
}

.pcfield {
  display: inline-flex;
  align-items: stretch;
  height: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pcfield:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.pcfield input {
  width: 84px;
  border: 0;
  outline: none;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.pcstep {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e2e8f0;
  width: 24px;
}

.pcstep button {
  flex: 1;
  border: 0;
  background: #f5f3ff;
  color: var(--pcolor);
  font-size: 9px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.pcstep button:first-child {
  border-bottom: 1px solid #e2e8f0;
}

.pcstep button:hover {
  background: #ddd6fe;
}

.pcunit {
  height: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pcunit:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.pc-mode-tabs {
  display: inline-flex;
  background: #f3f0ff;
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.pc-mode-tab {
  border: 0;
  background: transparent;
  color: #4c1d95;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pc-mode-tab.active {
  background: var(--grad-btn);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
}

.pc-adv-box {
  width: min(640px, 100%);
  background: #faf8ff;
  border: 1.5px solid #e4ddfe;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.compressbtn,
.downbtn {
  background: var(--grad-btn);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 9px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease;
}

.compressbtn:hover:not(:disabled),
.downbtn:hover {
  background: var(--grad-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(219, 39, 119, 0.32);
}

.compressbtn:active:not(:disabled),
.downbtn:active {
  transform: scale(0.98);
}

.compressbtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: #f5f3ff;
  color: #4338ca;
  border: 1.5px solid #c4b5fd;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ede9fe;
  border-color: var(--violet);
  transform: translateY(-1px);
}

.btn-outline-blue {
  border: 1.5px solid #0284c7;
  background: var(--white);
  color: #0284c7;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-blue:hover {
  background: #0284c7;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-red {
  border: 1.5px solid var(--scolor);
  background: var(--white);
  color: var(--scolor);
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-red:hover {
  background: var(--scolor);
  color: var(--white);
  transform: translateY(-1px);
}

.pi7-input {
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pi7-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.dim-box-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.floating-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.floating-field label {
  font-size: 11.5px;
  color: var(--pcolor);
  font-weight: 700;
}

.floating-field input {
  width: 132px;
  padding: 8px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  font-size: 14px;
}

.floating-field input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  accent-color: var(--violet);
}

.radio-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  accent-color: var(--violet);
}

.tool-note {
  font-size: 13px;
  color: #4338ca;
  font-weight: 600;
  text-align: center;
}

/* ==================== IN-PAGE QUICK CROP / RESIZE MODAL (.croppopus) ==================== */
.croppopus {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 18px 18px;
  z-index: 45;
  overflow-y: auto;
  animation: gkSlideUp 0.22s ease;
}

.croppopus[hidden] {
  display: none;
}

.croppopus > .close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: var(--scolor);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.croppopus > .close:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.cpp-wrap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.cpp-stage {
  flex: 1;
  min-width: 0;
  min-height: 340px;
  background: #2b2e3f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.cpp-side {
  width: 280px;
  flex-shrink: 0;
  border: 1.5px solid #e4ddfe;
  border-radius: 10px;
  padding: 14px;
  background: #faf8ff;
}

.cpp-side h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #312e81;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip-btn {
  border: 1.5px solid #ddd6fe;
  background: var(--white);
  color: #4338ca;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
}

.chip-btn.active {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
}

.img_cp_btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ==================== PROCESSING & OUTPUT OVERLAY (.icpop) ==================== */
.icpop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  border-radius: 12px;
  z-index: 60;
  padding: 24px 20px 40px;
  overflow-y: auto;
  text-align: center;
  animation: gkFadeIn 0.2s ease;
}

.icpop[hidden] {
  display: none;
}

.icpop-title {
  margin: 4px 0 12px;
  padding: 0 42px;
  font-size: 21px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closepdfwrap {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--scolor);
  background: var(--white);
  color: var(--scolor);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.closepdfwrap:hover {
  background: var(--scolor);
  color: var(--white);
  transform: rotate(90deg);
}

.pcbar-wrap {
  max-width: 500px;
  margin: 24px auto 18px;
}

.pcbar {
  width: 100%;
  height: 12px;
  background: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pcbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #ec2d7a, #06b6d4, #4f46e5);
  background-size: 200% 100%;
  animation: gkShimmer 1.6s linear infinite;
  border-radius: 999px;
  transition: width 0.16s ease;
}

.pcbar-label {
  font-size: 13.5px;
  color: #4338ca;
  margin-top: 8px;
  font-weight: 700;
}

.icpop-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 14px auto;
}

.c_paddownloadpg.pccard,
.p2jcard {
  width: 31%;
  min-width: 245px;
  padding: 18px 14px;
  border: 1.5px solid #e4ddfe;
  border-top: 4px solid var(--violet);
  border-radius: 10px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  animation: gkCardPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.icthumb {
  max-width: 140px;
  max-height: 140px;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid #ede9fe;
}

.pchead {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pchead-size {
  font-size: 22px;
  font-weight: 800;
  color: #312e81;
}

.pcwas {
  font-size: 13.5px;
  color: #8a8ea6;
  text-decoration: line-through;
}

.pcsaved {
  background: linear-gradient(135deg, #d1fae5, #ccfbf1);
  color: #065f46;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.pcsaved.increased {
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  color: #4338ca;
}

.pcsrc-label {
  font-size: 12.5px;
  color: #4b5563;
  font-weight: 600;
}

.pcrename-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px solid #d7cffd;
  border-radius: 6px;
  overflow: hidden;
}

.pcrename-wrap:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.pcrename {
  flex: 1;
  border: 0;
  outline: none;
  padding: 6px 8px;
  font-size: 13px;
  min-width: 0;
}

.pcext {
  background: #f5f3ff;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pcolor);
  border-left: 1px solid #e4ddfe;
}

.tiptext2 {
  color: #6b4f09;
  font-size: 13.5px;
  font-weight: 600;
  margin: 14px 0 10px;
}

.xtypebt {
  display: inline-block;
  border: 1.5px solid var(--scolor);
  color: var(--scolor);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin: 4px;
}

.xtypebt:hover {
  background: var(--scolor);
  color: var(--white);
  transform: translateY(-2px);
}

.pctip {
  font-size: 13.5px;
  color: #4b5563;
  text-align: center;
  margin: 4px auto 0;
  max-width: 540px;
  line-height: 1.45;
}

.pcnote {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.45;
  margin-top: 6px;
}

.pcrange {
  width: 210px;
  accent-color: var(--violet);
  cursor: pointer;
}

.inc-kb-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  background: var(--grad-btn);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
}

.inc-tip {
  font-size: 13.5px;
  color: #5d4037;
  text-align: center;
}

.fancy-spinner {
  width: 48px;
  height: 48px;
  margin: 16px auto 6px;
  border-radius: 50%;
  border: 4px solid #ede9fe;
  border-top-color: #ec2d7a;
  border-right-color: #6366f1;
  border-bottom-color: #06b6d4;
  animation: gkSpin 0.8s linear infinite;
}

/* ==================== UNIFIED STUDIOS & WORKSPACES ==================== */
.studio-panel {
  width: 98%;
  margin: 12px auto;
  border: 1.5px solid #e4ddfe;
  border-radius: 10px;
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
  padding: 16px;
  animation: gkFadeIn 0.22s ease;
}

.studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #ede9fe;
}

.studio-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #e9ecf8;
  background-image:
    linear-gradient(45deg, #dfe3f3 25%, transparent 25%),
    linear-gradient(-45deg, #dfe3f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dfe3f3 75%),
    linear-gradient(-45deg, transparent 75%, #dfe3f3 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border-radius: 8px;
  padding: 16px;
  min-height: 300px;
  overflow: auto;
  position: relative;
}

.studio-canvas-wrap > canvas {
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.studio-stage-box {
  position: relative;
  display: inline-block;
  box-shadow: 0 6px 22px rgba(30, 41, 59, 0.2);
  background: #fff;
}

.studio-stage-box canvas {
  display: block;
}

.studio-tabs {
  display: flex;
  border-bottom: 2px solid #e4ddfe;
  margin-bottom: 12px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.studio-tab {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  background: #f5f3ff;
  color: #3730a3;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.studio-tab:hover:not(.active) {
  background: #ede9fe;
}

.studio-tab.active {
  background: var(--grad-btn);
  color: var(--white);
}

.pdf-page-grid,
.pdf-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 12px;
}

.pdf-page-card {
  width: 168px;
  border: 1.5px solid #ddd6fe;
  border-radius: 9px;
  padding: 8px;
  background: var(--white);
  position: relative;
  text-align: center;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.07);
  transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.pdf-page-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pdf-page-card.selected {
  border-color: var(--violet);
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.pdf-page-card.deleted {
  opacity: 0.45;
  border-color: var(--scolor);
  background: #fff1f2;
}

.pdf-page-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--grad-btn);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  z-index: 2;
}

.pdf-page-thumb {
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f7ff;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pdf-page-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.pdf-page-card > img {
  height: 115px;
  max-width: 100%;
  object-fit: contain;
  margin-top: 14px;
}

.order-controls {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
}

.order-btn {
  flex: 1;
  border: 1px solid #d7cffd;
  background: #f8f7ff;
  color: #312e81;
  font-size: 11px;
  font-weight: 700;
  padding: 4px;
  border-radius: 5px;
  cursor: pointer;
}

.order-btn:hover:not(:disabled) {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
}

.order-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.two-col-editor {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
  width: 98%;
  margin: 12px auto;
  align-items: start;
}

.two-col-editor > * {
  min-width: 0;
}

.editor-side {
  background: var(--white);
  border: 1.5px solid #e4ddfe;
  border-radius: 9px;
  padding: 14px;
}

.editor-side h4 {
  margin: 10px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--violet);
}

.editor-layout-3 {
  display: grid;
  grid-template-columns: 170px 1fr 270px;
  gap: 12px;
  align-items: start;
}

.editor-layout-3 > * {
  min-width: 0;
}

.editor-pages-rail {
  max-height: 640px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid #e4ddfe;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-rail-item {
  border: 1.5px solid #e4ddfe;
  border-radius: 6px;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  background: #faf8ff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.editor-rail-item.active {
  border-color: var(--violet);
  background: #ede9fe;
}

.editor-rail-item img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.pdf-textarea,
.handwriting-textarea,
.latex-textarea {
  width: 100%;
  min-height: 160px;
  border: 1.5px solid #d7cffd;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  background: var(--white);
}

.pdf-textarea:focus,
.handwriting-textarea:focus,
.latex-textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.stat-card {
  background: var(--white);
  border: 1.5px solid #e4ddfe;
  border-top: 3px solid var(--violet);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.stat-card:nth-child(2) { border-top-color: var(--scolor); }
.stat-card:nth-child(3) { border-top-color: var(--teal); }
.stat-card:nth-child(4) { border-top-color: var(--accent-orange); }
.stat-card:nth-child(5) { border-top-color: var(--accent-cyan); }

.stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--pcolor);
}

.stat-lbl {
  font-size: 12px;
  color: var(--muted);
}

.data-table,
.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--white);
}

.data-table th,
.data-table td,
.exif-table th,
.exif-table td {
  border: 1px solid #e4ddfe;
  padding: 7px 10px;
  text-align: left;
}

.data-table th,
.exif-table th {
  background: #f5f3ff;
  color: #312e81;
}

.exif-table th {
  width: 34%;
}

/* ==================== IMAGE STUDIO COMPONENTS ==================== */
.sig-font-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.sig-font-card {
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  text-align: center;
}

.sig-font-card canvas {
  max-width: 100%;
  border-radius: 4px;
}

.pp-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pp-step-tab {
  padding: 7px 15px;
  border: 1.5px solid #ddd6fe;
  border-radius: 999px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  color: #4338ca;
  cursor: pointer;
}

.pp-step-tab.active {
  border-color: transparent;
  background: var(--grad-btn);
  color: var(--white);
}

.pp-preset-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
}

.pp-preset-card {
  border: 1.5px solid #ddd6fe;
  border-radius: 9px;
  padding: 14px 12px;
  min-width: 145px;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pp-preset-card:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
}

.pp-preset-card.active {
  border-color: var(--violet);
  background: #faf8ff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22);
}

.dual-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 92%;
  margin: 16px auto;
}

.pdf-box-card {
  border: 1.5px solid #e4ddfe;
  border-radius: 10px;
  margin: 12px auto;
  width: 94%;
  background: var(--white);
  overflow: hidden;
}

.pdf-box-head {
  background: linear-gradient(90deg, #f5f3ff, #ecfeff);
  padding: 10px 14px;
  border-bottom: 1px solid #e4ddfe;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.split-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 16px;
  align-items: start;
}

.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.swatch-card {
  border: 1.5px solid #e4ddfe;
  border-radius: 8px;
  background: var(--white);
  width: 120px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.swatch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.swatch-color {
  height: 54px;
}

.swatch-info {
  padding: 6px;
  font-size: 12px;
  font-weight: 700;
}

.cropper-main-wrap {
  width: 94%;
  margin: 10px auto;
  text-align: center;
}

.cropper-box-stage {
  background: #2b2e3f;
  background-image:
    linear-gradient(45deg, #35384c 25%, transparent 25%),
    linear-gradient(-45deg, #35384c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #35384c 75%),
    linear-gradient(-45deg, transparent 75%, #35384c 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border-radius: 8px;
  padding: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  user-select: none;
}

.cropper-box-stage canvas {
  max-width: 100%;
  cursor: move;
}

.cropper-tip {
  font-size: 13px;
  color: #4338ca;
  margin: 8px 0 12px;
}

.cropper-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.freehand-wrap {
  border: 1.5px solid #e4ddfe;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  width: 94%;
  margin: 10px auto;
}

.freehand-head {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #312e81;
  border-bottom: 1px solid #ede9fe;
}

.freehand-stage {
  position: relative;
  background-image:
    linear-gradient(45deg, #eceef6 25%, transparent 25%),
    linear-gradient(-45deg, #eceef6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eceef6 75%),
    linear-gradient(-45deg, transparent 75%, #eceef6 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
}

.zoom-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--white);
  border: 1px solid #d7cffd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}

.zoom-pill button {
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  color: var(--pcolor);
}

.freehand-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #ede9fe;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preset-tile {
  border: 1.5px solid #ddd6fe;
  border-radius: 6px;
  background: var(--white);
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: #333;
}

.preset-tile.active {
  border-color: var(--violet);
  background: #ede9fe;
  color: var(--pcolor);
}

.single-card-tool {
  max-width: 560px;
  margin: 14px auto;
  border: 1.5px solid #e4ddfe;
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.single-card-img {
  background: #f3f0ff;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.single-card-img canvas {
  max-width: 100%;
  max-height: 360px;
}

.single-card-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #ede9fe;
  background: var(--white);
  flex-wrap: wrap;
}

.name-dob-card {
  max-width: 440px;
  margin: 14px auto;
  border: 1.5px solid #e4ddfe;
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  text-align: center;
}

.name-dob-form {
  background: #f5f3ff;
  padding: 14px;
  border-top: 1px solid #e4ddfe;
}

.name-dob-fieldset {
  border: 1px solid #d7cffd;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-dob-fieldset legend {
  font-size: 12px;
  color: #4338ca;
  font-weight: 700;
  padding: 0 6px;
}

.exif-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sig-row-card {
  border: 1.5px solid #e4ddfe;
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.sig-row-top,
.sig-row-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.sig-row-preview {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.ink-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ink-swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d5d8ea;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.ink-swatch-btn.active {
  border-color: #111827;
  box-shadow: 0 0 0 2px #fff inset;
  transform: scale(1.12);
}

.paper-swatch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.paper-swatch-btn {
  width: 30px;
  height: 24px;
  border-radius: 5px;
  border: 1.5px solid #bfc4de;
  cursor: pointer;
  position: relative;
}

.paper-swatch-btn.active {
  border-color: var(--pcolor);
  box-shadow: 0 0 0 2px rgba(91, 70, 229, 0.28);
}

.paper-swatch-btn.is-trans {
  background-image: linear-gradient(45deg, #dcdcdc 25%, transparent 25%),
    linear-gradient(-45deg, #dcdcdc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dcdcdc 75%),
    linear-gradient(-45deg, transparent 75%, #dcdcdc 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-color: #ffffff;
}

.hw-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #312e81;
}

/* ==================== SEARCH & DRIVE MODALS ==================== */
.pi7-modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 62, 0.6);
  backdrop-filter: blur(4px);
  z-index: 350;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: gkFadeIn 0.18s ease;
}

.pi7-modal[hidden] {
  display: none;
}

.pi7-modal-dialog {
  width: min(800px, 98%);
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: gkSlideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.pi7-modal-head {
  background: var(--grad-brand);
  color: var(--white);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pi7-modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.modal-x {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.modal-x:hover {
  transform: rotate(90deg);
}

.pi7-modal-body {
  padding: 16px;
  overflow-y: auto;
}

.modal-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d7cffd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 12px;
}

.modal-search-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.modal-search-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.modal-search-results a {
  padding: 9px 12px;
  border: 1.5px solid #e4ddfe;
  border-left: 4px solid var(--violet);
  border-radius: 7px;
  color: #312e81;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
}

.modal-search-results a.is-img-res {
  border-left-color: var(--teal);
}

.modal-search-results a:hover {
  background: var(--grad-btn);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-1px);
}

.modal-search-results small {
  font-size: 11px;
  opacity: 0.8;
}

/* ==================== CENTRAL AD SLOTS ==================== */
.gk-ad-top-wrap,
.gk-ad-bottom-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 10px auto 0;
  padding: 0 10px;
}

.gk-ad-bottom-wrap {
  margin: 4px auto 12px;
}

.gk-ad-box {
  position: relative;
  width: 100%;
  margin: 14px auto;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 12px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.gk-ad-box[hidden] {
  display: none;
}

.gk-ad-tag {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  user-select: none;
}

.gk-ad-inner {
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  display: block;
  text-align: center;
  overflow: hidden;
}

.gk-ad-inner > div {
  width: 100%;
  min-width: 250px;
  min-height: 90px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.gk-ad-inner > div > div {
  margin: 0 auto;
}

.gk-ad-inner iframe {
  max-width: 100%;
}

.gk-ad-placeholder {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
}

.gk-ad-placeholder code {
  background: #ede9fe;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--pcolor);
  font-size: 12px;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--grad-brand);
  padding: 24px 20px;
  color: var(--white);
  margin-top: 16px;
  border-radius: 12px 12px 0 0;
  font-size: 14px;
}

.wrap-cont {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 0;
}

.wr-div {
  width: 25%;
  padding: 0 12px;
}

.wr-div h3 {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--yellow-hover);
}

.wr-div ul {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
}

.wr-div li {
  margin-bottom: 6px;
}

.wr-div a,
footer a {
  color: var(--white);
}

.wr-div a:hover,
footer a:hover {
  color: var(--yellow-hover);
  text-decoration: underline;
}

.footer-logo-svg {
  width: 114px;
  height: auto;
  display: block;
}

.footer-desc {
  margin: 10px 0 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.p7report {
  max-width: 1000px;
  margin: 18px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.p7report-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p7report-pill {
  background: var(--yellow-hover);
  color: #1e1b4b !important;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.p7report-pill:hover {
  transform: translateY(-1px);
  background: #fef08a;
}

.extra-fot {
  max-width: 1000px;
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-links-row,
.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-legal-row a {
  font-weight: 600;
  color: #fef08a;
}

.footcre {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 13px;
  font-size: 13px;
}

.footcre a {
  color: var(--yellow-hover);
  font-weight: 700;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 920px) {
  .navlinks {
    display: none;
  }
  .mencontainer {
    display: flex;
  }
}

@media (max-width: 900px) {
  .two-col-editor,
  .editor-layout-3 {
    grid-template-columns: 1fr;
  }
  .sidecon {
    display: none;
  }
  .mainsec {
    width: 100%;
    padding: 8px;
  }
  .maincont {
    width: 100%;
    padding: 14px 12px 24px;
  }
  .topused {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hometool_container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolcontainer a {
    width: calc(50% - 12px);
  }
  .dropzone-wrap {
    width: 96%;
    margin-top: 34px;
  }
  .c_paddownloadpg.pccard,
  .p2jcard {
    width: 100%;
  }
  .wr-div {
    width: 50%;
    padding: 8px;
  }
  .stats-grid,
  .split-studio-grid,
  .dual-upload-grid,
  .sig-font-grid,
  .exif-grid-2,
  .modal-search-results {
    grid-template-columns: 1fr;
  }
  .cpp-wrap {
    flex-direction: column;
  }
  .cpp-side {
    width: 100%;
  }
  .cpp-stage {
    min-height: 240px;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hometool_container {
    grid-template-columns: 1fr;
  }
  .mobile-drawer.open {
    grid-template-columns: 1fr;
  }
  .wr-div {
    width: 100%;
  }
  .imgdimnst {
    position: static;
    width: 100%;
    justify-content: center;
    border-bottom: 1.5px solid #c4b5fd;
    border-radius: 8px 8px 0 0;
  }
  .dropzone-wrap {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
