/* =====================================================================
   FTGM TOOLS — main stylesheet
   ===================================================================== */

:root {
  --primary-color: #00ffff;
  --secondary-color: #007bff;
  --accent-color: #5dbd83;
  --dark-bg: #050510;
  --card-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.14);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Kanit", sans-serif;
  background: linear-gradient(135deg, #0a0a1a, #1a2a4a, #003366);
  background-size: 400% 400%;
  animation: bgFlow 15s ease infinite;
  color: white;
  overflow-x: hidden;
  text-align: center;
  position: relative;
}

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

.wave-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -2;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05), transparent 70%);
  animation: waveMove 10s ease-in-out infinite alternate;
  filter: blur(60px);
}

@keyframes waveMove {
  0% { transform: translate(-20%, -10%) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.2); }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.title {
  font-family: "Audiowide", cursive;
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
}

.title span:nth-child(1) {
  color: white;
  text-shadow: 0 0 10px white, 0 0 20px white;
}

.title span:nth-child(2) {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.subtitle {
  font-family: "Nova Square", cursive;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  min-height: 1.5em;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: revealLetter 0.3s forwards;
}

@keyframes revealLetter {
  to { opacity: 1; transform: translateY(0); }
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
}

/* ---------- Notifications button ---------- */
.notifications-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

#notification-poda {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.notification-white,
.notification-border,
.notification-darkBorderBg,
.notification-glow {
  max-height: 40px;
  max-width: 200px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 12px;
  filter: blur(3px);
}

.notification-input {
  background-color: #010201;
  border: none;
  width: 190px;
  height: 35px;
  border-radius: 10px;
  color: white;
  padding-inline: 45px 40px;
  font-size: 14px;
  font-family: "Kanit", sans-serif;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
}

#notification-main { position: relative; }

#notification-pink-mask {
  pointer-events: none;
  width: 20px;
  height: 15px;
  position: absolute;
  background: #cf30aa;
  top: 5px;
  left: 5px;
  filter: blur(20px);
  opacity: 0.8;
  transition: all 2s;
}

#notification-poda:hover > #notification-pink-mask { opacity: 0; }

.notification-white {
  max-height: 36px;
  max-width: 196px;
  border-radius: 10px;
  filter: blur(2px);
}

.notification-white::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 400px;
  height: 400px;
  background-repeat: no-repeat;
  filter: brightness(1.4);
  background-image: conic-gradient(rgba(0,0,0,0) 0%, #a099d8, rgba(0,0,0,0) 8%, rgba(0,0,0,0) 50%, #dfa2da, rgba(0,0,0,0) 58%);
  transition: all 2s;
}

.notification-border {
  max-height: 34px;
  max-width: 194px;
  border-radius: 11px;
  filter: blur(0.5px);
}

.notification-border::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 400px;
  height: 400px;
  filter: brightness(1.3);
  background-repeat: no-repeat;
  background-image: conic-gradient(#1c191c, #402fb5 5%, #1c191c 14%, #1c191c 50%, #cf30aa 60%, #1c191c 64%);
  transition: all 2s;
}

.notification-darkBorderBg { max-height: 38px; max-width: 198px; }

.notification-darkBorderBg::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 400px;
  height: 400px;
  background-repeat: no-repeat;
  background-image: conic-gradient(rgba(0,0,0,0), #18116a, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, #6e1b60, rgba(0,0,0,0) 60%);
  transition: all 2s;
}

#notification-poda:hover > .notification-darkBorderBg::before { transform: translate(-50%, -50%) rotate(-98deg); }
#notification-poda:hover > .notification-glow::before { transform: translate(-50%, -50%) rotate(-120deg); }
#notification-poda:hover > .notification-white::before { transform: translate(-50%, -50%) rotate(-97deg); }
#notification-poda:hover > .notification-border::before { transform: translate(-50%, -50%) rotate(-110deg); }

.notification-glow {
  overflow: hidden;
  filter: blur(30px);
  opacity: 0.4;
  max-height: 60px;
  max-width: 220px;
}

.notification-glow:before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-image: conic-gradient(#000, #402fb5 5%, #000 38%, #000 50%, #cf30aa 60%, #000 87%);
  transition: all 2s;
}

#notification-bell-icon { position: absolute; left: 15px; top: 8px; z-index: 2; }
#notification-bell-icon svg { width: 16px; height: 16px; }
#notification-bell-icon path { fill: rgb(0, 206, 62); }

.notification-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: white;
  z-index: 2;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 10;
}

/* ---------- Notifications panel ---------- */
.notifications-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100%;
  background: rgba(20, 25, 45, 0.95);
  backdrop-filter: blur(15px);
  border-left: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.notifications-panel.active { right: 0; }

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.notifications-header h3 {
  color: var(--primary-color);
  font-family: "Nova Square", cursive;
  margin: 0;
}

.close-notifications {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-notifications:hover { color: var(--primary-color); }

.notifications-list { display: flex; flex-direction: column; gap: 15px; }

.notification-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all 0.3s;
}

.notification-item.unread {
  background: rgba(0, 255, 255, 0.05);
  border-color: rgba(0, 255, 255, 0.3);
}

.notification-item:hover { transform: translateX(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.notification-title { color: var(--primary-color); font-weight: bold; margin-bottom: 5px; font-size: 0.95rem; }
.notification-message { color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.4; margin-bottom: 8px; }
.notification-time { color: rgba(255,255,255,0.5); font-size: 0.75rem; text-align: right; }
.no-notifications { text-align: center; color: rgba(255,255,255,0.6); font-style: italic; padding: 20px 0; }

/* ---------- Search bar ---------- */
.white,
.border,
.darkBorderBg,
.glow {
  max-height: 50px;
  max-width: 250px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  border-radius: 12px;
  filter: blur(3px);
}

.input {
  background-color: #010201;
  border: none;
  width: 240px;
  height: 45px;
  border-radius: 10px;
  color: white;
  padding-inline: 45px 20px;
  font-size: 16px;
}

#poda { display: flex; align-items: center; justify-content: center; }
.input::placeholder { color: #c0b9c0; }
.input:focus { outline: none; }
#main:focus-within > #input-mask { display: none; }

#input-mask {
  pointer-events: none;
  width: 80px;
  height: 18px;
  position: absolute;
  background: linear-gradient(90deg, transparent, black);
  top: 14px;
  left: 55px;
}

#pink-mask {
  pointer-events: none;
  width: 25px;
  height: 18px;
  position: absolute;
  background: #cf30aa;
  top: 8px;
  left: 5px;
  filter: blur(20px);
  opacity: 0.8;
  transition: all 2s;
}

#main:hover > #pink-mask { opacity: 0; }

.white { max-height: 46px; max-width: 246px; border-radius: 10px; filter: blur(2px); }

.white::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 500px;
  height: 500px;
  background-repeat: no-repeat;
  filter: brightness(1.4);
  background-image: conic-gradient(rgba(0,0,0,0) 0%, #a099d8, rgba(0,0,0,0) 8%, rgba(0,0,0,0) 50%, #dfa2da, rgba(0,0,0,0) 58%);
  transition: all 2s;
}

.border { max-height: 44px; max-width: 244px; border-radius: 11px; filter: blur(0.5px); }

.border::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 500px;
  height: 500px;
  filter: brightness(1.3);
  background-repeat: no-repeat;
  background-image: conic-gradient(#1c191c, #402fb5 5%, #1c191c 14%, #1c191c 50%, #cf30aa 60%, #1c191c 64%);
  transition: all 2s;
}

.darkBorderBg { max-height: 48px; max-width: 248px; }

.darkBorderBg::before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 500px;
  height: 500px;
  background-repeat: no-repeat;
  background-image: conic-gradient(rgba(0,0,0,0), #18116a, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, #6e1b60, rgba(0,0,0,0) 60%);
  transition: all 2s;
}

#poda:hover > .darkBorderBg::before { transform: translate(-50%, -50%) rotate(-98deg); }
#poda:hover > .glow::before { transform: translate(-50%, -50%) rotate(-120deg); }
#poda:hover > .white::before { transform: translate(-50%, -50%) rotate(-97deg); }
#poda:hover > .border::before { transform: translate(-50%, -50%) rotate(-110deg); }
#poda:focus-within > .darkBorderBg::before { transform: translate(-50%, -50%) rotate(442deg); transition: all 4s; }
#poda:focus-within > .glow::before { transform: translate(-50%, -50%) rotate(420deg); transition: all 4s; }
#poda:focus-within > .white::before { transform: translate(-50%, -50%) rotate(443deg); transition: all 4s; }
#poda:focus-within > .border::before { transform: translate(-50%, -50%) rotate(430deg); transition: all 4s; }

.glow { overflow: hidden; filter: blur(30px); opacity: 0.4; max-height: 80px; max-width: 270px; }

.glow:before {
  content: "";
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 800px;
  height: 800px;
  background-repeat: no-repeat;
  background-image: conic-gradient(#000, #402fb5 5%, #000 38%, #000 50%, #cf30aa 60%, #000 87%);
  transition: all 2s;
}

#main { position: relative; }
#search-icon { position: absolute; left: 15px; top: 12px; }

/* ---------- Category filter ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-chip {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.75);
  font-family: "Kanit", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-chip:hover { color: #fff; border-color: rgba(0, 255, 255, 0.5); }

.filter-chip.active {
  color: #0a0a1a;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary-color), #7b5cff);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 255, 255, 0.25);
}

/* ---------- Premium transparent tool cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px;
  justify-items: center;
  margin-bottom: 40px;
}

.tool-card {
  width: 110px;
  padding: 12px 8px 10px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* glossy premium sheen */
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 3;
}

.tool-card:hover::before { transform: translateX(120%); }

/* RGB animated stroke border on hover */
.tool-card-border {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: conic-gradient(
    from var(--angle),
    #ff0040, #ff8a00, #ffe600, #38ff6b, #00e5ff, #4d5cff, #b400ff, #ff0040
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rotate 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 4;
}

.tool-card:hover .tool-card-border,
.tool-card:focus-visible .tool-card-border,
.tool-card:active .tool-card-border { opacity: 1; }

.tool-card:hover {
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(0, 255, 255, 0.18);
}

.tool-card:active { transform: scale(0.96); }

.tool-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
  -webkit-user-drag: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.tool-card:hover .tool-icon { transform: scale(1.1); filter: drop-shadow(0 6px 16px rgba(0, 255, 255, 0.35)); }

.tool-name {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
  letter-spacing: 0.3px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.25);
}

.no-results {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 30px 0;
}

/* radar loader shown until the icon loads */
.loader {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed #444;
  border-radius: 50%;
}

.loader span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: top left;
  animation: radar81 2s linear infinite;
  border-top: 1px dashed #fff;
}

.loader span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: seagreen;
  transform-origin: top left;
  transform: rotate(-55deg);
  filter: blur(20px) drop-shadow(10px 10px 10px seagreen);
}

@keyframes radar81 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- Stats ---------- */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.stat-box {
  padding: 8px 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-value { font-size: 1rem; color: white; font-weight: bold; }

/* ---------- Animated eye icon (views) ---------- */
.eye-icon {
  width: 26px;
  height: 18px;
  display: block;
  overflow: visible;
}

.eye-icon .eye-outline {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.7));
}

.eye-icon .eye-iris {
  fill: var(--primary-color);
  transform-origin: 12px 9px;
  animation: eyeLook 4s ease-in-out infinite;
}

.eye-icon .eye-lid {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 1.6;
  transform-origin: 12px 9px;
  animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes eyeLook {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

@keyframes eyeBlink {
  0%, 88%, 100% { transform: scaleY(0); opacity: 0; }
  92% { transform: scaleY(1); opacity: 1; }
  96% { transform: scaleY(0); opacity: 0; }
}

.online-indicator { display: flex; align-items: center; gap: 10px; }

.online-dot {
  width: 10px;
  height: 10px;
  background-color: #00ff00;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px #00ff00;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.online-text { color: white; font-size: 1rem; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.install-button {
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 16px;
  border: none;
  padding: 2px;
  background: radial-gradient(circle 80px at 80% -10%, #ffffff, #181b1b);
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  box-sizing: border-box;
}

.install-button::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 60%;
  border-radius: 120px;
  top: 0;
  right: 0;
  box-shadow: 0 0 20px #ffffff38;
  z-index: -1;
}

.install-button .blob1 {
  position: absolute;
  width: 70px;
  height: 100%;
  border-radius: 16px;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle 60px at 0% 100%, #3fe9ff, #0000ff80, transparent);
  box-shadow: -10px 10px 30px #0051ff2d;
}

.install-button .inner {
  padding: 14px 25px;
  border-radius: 14px;
  color: #fff;
  z-index: 3;
  position: relative;
  background: radial-gradient(circle 80px at 80% -50%, #777777, #0f1111);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.install-button .inner::before {
  content: "";
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle 60px at 0% 100%, #00e1ff1a, #0000ff11, transparent);
  position: absolute;
}

.install-button .btn-icon-circle {
  width: 28px;
  height: 28px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 250px;
}

.footer-button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.footer-button:hover:before { left: 100%; }
.footer-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4); }

.watermark {
  font-family: "Baumans", cursive;
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-top: 15px;
  text-shadow: 0 0 5px rgba(93, 189, 131, 0.5);
}

/* ---------- Popups ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.glass-popup {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.glass-popup::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.glass-popup h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-family: "Nova Square", cursive;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.glass-popup p { margin-bottom: 25px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.glass-popup-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; position: relative; z-index: 2; }

.glass-popup-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.glass-popup-primary { background: linear-gradient(45deg, var(--primary-color), #0099cc); color: black; }
.glass-popup-secondary { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.glass-popup-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.glass-popup-btn:active { transform: translateY(-1px); }

.bottom-popup-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
}

.bottom-popup {
  background: rgba(20, 25, 45, 0.95);
  border-radius: 20px 20px 0 0;
  padding: 25px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 -5px 25px rgba(0, 255, 255, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom: none;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp { to { transform: translateY(0); } }

.bottom-popup h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-family: "Nova Square", cursive;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.bottom-popup p { margin-bottom: 20px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.bottom-popup-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.bottom-popup-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-popup-primary { background: linear-gradient(45deg, var(--primary-color), #0099cc); color: black; }
.bottom-popup-secondary { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.bottom-popup-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }

.rating-popup .stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.rating-popup .star { font-size: 2rem; color: #555; cursor: pointer; transition: color 0.2s; }
.rating-popup .star:hover, .rating-popup .star.active { color: gold; text-shadow: 0 0 10px gold; }

.ad-popup {
  font-family: "Noto Nastaliq Urdu", serif;
  background: rgba(30, 35, 55, 0.95);
  border: 1px solid rgba(93, 189, 131, 0.3);
}

.ad-popup h3 { font-family: "Noto Nastaliq Urdu", serif; font-size: 1.8rem; color: var(--accent-color); }
.ad-popup p { font-family: "Noto Nastaliq Urdu", serif; font-size: 1.1rem; line-height: 1.8; }

/* ---------- PWA install popup ---------- */
.pwa-popup { border-color: rgba(0, 255, 255, 0.35); }

.pwa-popup .pwa-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pwa-popup .pwa-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
}

/* ---------- Report / Suggestions box ---------- */
.report-bug-container {
  margin: 30px auto 0;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  max-width: 600px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.report-bug-container::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(0, 255, 255, 0.55), rgba(180, 0, 255, 0.45), rgba(0, 255, 255, 0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.report-bug-container h3 {
  font-family: "Nova Square", cursive;
  color: var(--primary-color);
  margin: 0 0 6px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

.report-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin: 0 0 18px;
}

.report-field { position: relative; margin-bottom: 14px; text-align: left; }

.report-field > i {
  position: absolute;
  left: 14px;
  top: 15px;
  font-size: 0.85rem;
  color: rgba(0, 255, 255, 0.65);
  pointer-events: none;
}

.report-field textarea + i { top: 15px; }

.report-bug-container input,
.report-bug-container textarea {
  width: 100%;
  padding: 13px 15px 13px 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(0, 0, 0, 0.28);
  color: white;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.report-bug-container input::placeholder,
.report-bug-container textarea::placeholder { color: rgba(255, 255, 255, 0.4); }

.report-bug-container input:focus,
.report-bug-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.12);
  background-color: rgba(0, 0, 0, 0.4);
}

.report-bug-container textarea { height: 100px; resize: none; }

.report-bug-container button {
  padding: 13px 20px;
  background: linear-gradient(90deg, #00ffff, #4d5cff, #b400ff);
  background-size: 200% auto;
  color: #05101a;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 22px rgba(0, 255, 255, 0.22);
  width: 100%;
  letter-spacing: 0.5px;
  font-family: "Kanit", sans-serif;
}

.report-bug-container button:hover { background-position: right center; transform: translateY(-2px); }
.report-bug-container button:active { transform: translateY(0); }

#bug-status {
  margin: 12px 0 0;
  font-size: 0.85rem;
  min-height: 20px;
  padding: 0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#bug-status.show {
  padding: 10px 12px;
  border: 1px solid transparent;
}

#bug-status.ok {
  color: #7dffb0;
  background: rgba(45, 255, 150, 0.08);
  border-color: rgba(45, 255, 150, 0.3);
}

#bug-status.err {
  color: #ff9b9b;
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .title { font-size: 2rem; }
  .report-bug-container { padding: 18px 15px; margin-top: 20px; }
  .report-bug-container h3 { font-size: 1.1rem; }
  .report-bug-container input, .report-bug-container textarea { font-size: 0.85rem; }
  .report-bug-container textarea { height: 90px; }
  .notifications-panel { width: 100%; right: -100%; }
  .notifications-panel.active { right: 0; }
  .notification-input { width: 180px; }
  .tool-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px; }
  .tool-card { width: 96px; }
  .tool-icon { width: 76px; height: 76px; }
}

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

/* =====================================================================
   REFINEMENTS — bigger icons, 3-per-row grid, search-style hover stroke
   ===================================================================== */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 82deg;
}

/* ---- Title: same style, larger ---- */
.title { font-size: clamp(2.6rem, 7vw, 4rem); }
@media (max-width: 768px) { .title { font-size: clamp(2.1rem, 10vw, 3rem); } }

/* ---- Grid: 3 tools per line, same card size, bigger icons ---- */
.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.tool-card { width: 100%; max-width: 132px; padding: 14px 4px 12px; }
.tool-icon { width: 120px; height: 120px; margin-bottom: 10px; object-fit: contain; }

@media (max-width: 768px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 100%; }
  .tool-card { width: 100%; max-width: none; padding: 10px 4px 10px; }
  .tool-icon { width: 96px; height: 96px; }
}

@media (max-width: 380px) {
  .tool-icon { width: 82px; height: 82px; }
}

/* ---- Blank professional loader (no green radar) ---- */
.loader {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  max-width: 80%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.16) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: skeletonSweep 1.3s ease-in-out infinite;
}
.loader span { position: absolute; inset: 0; border: none; animation: none; background: none; }
.loader span::before { display: none; }
@keyframes skeletonSweep { 100% { transform: translateX(100%); } }

/* ---- Hover stroke: same animation as search / notification bar ---- */
.tool-card-border {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--spin),
    rgba(0,0,0,0), #402fb5 5%, rgba(0,0,0,0) 14%,
    rgba(0,0,0,0) 50%, #cf30aa 60%, rgba(0,0,0,0) 64%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: none;
  opacity: 0;
  filter: brightness(1.3);
  transition: opacity 0.4s ease, --spin 2s ease;
  pointer-events: none;
  z-index: 4;
}

.tool-card:hover .tool-card-border,
.tool-card:focus-visible .tool-card-border,
.tool-card:active .tool-card-border {
  opacity: 1;
  --spin: -98deg;
}

/* ---- Footer watermark: bold shimmer, single line on mobile ---- */
.watermark {
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(0.72rem, 3.4vw, 1rem);
  background: linear-gradient(100deg, #7ef9ff 0%, #ffffff 38%, #00ffff 50%, #ffffff 62%, #7ef9ff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: watermarkShimmer 3.2s linear infinite;
}
@keyframes watermarkShimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}

/* ---- "Get More Free Tools" button (replaces channel button) ---- */
.footer-button {
  gap: 10px;
  min-width: 260px;
  padding: 13px 28px;
  background: linear-gradient(120deg, rgba(64,47,181,0.35), rgba(207,48,170,0.28), rgba(0,255,255,0.22));
  border: 1px solid rgba(255,255,255,0.16);
  color: #eaf6ff;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 24px rgba(0, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.footer-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(207, 48, 170, 0.35);
  border-color: rgba(255,255,255,0.3);
}
.footer-button .gear {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  animation: gearSpin 3.2s linear infinite;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.5));
}
.footer-button:hover .gear { animation-duration: 0.9s; }
@keyframes gearSpin { to { transform: rotate(360deg); } }
