/* Tools page — rebuilt from measurements of skincash.gg/tools */

.tl-page { position: relative }
.tl-page *, .tl-page *::before, .tl-page *::after { box-sizing: border-box }

.tl-backdrop { position: absolute; left: 0; right: 0; top: 0; height: 600px; z-index: 0; overflow: hidden; pointer-events: none }
.tl-backdrop-glow {
  position: absolute; left: 50%; top: -128px; width: 600px; height: 600px;
  transform: translateX(-50%); border-radius: 9999px;
  background: radial-gradient(circle, rgba(17, 197, 107, .55) 0%, transparent 70%);
  opacity: .25; filter: blur(120px);
}
.tl-backdrop-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
}

.tl-content {
  position: relative; z-index: 10;
  width: 100%; max-width: var(--content-width, 1792px); margin: 0 auto;
  padding: 48px 64px 96px;
}

/* ---- hero ---- */
.tl-hero { margin-bottom: 56px; text-align: center }
.tl-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(61, 255, 158, .3); border-radius: 9999px; padding: 4px 12px;
  background: rgba(61, 255, 158, .1); color: rgba(61, 255, 158, .9);
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.tl-eyebrow svg { width: 12px; height: 12px }
.tl-title { margin: 16px 0 0; font-size: 60px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05 }
.tl-title span {
  background: linear-gradient(110deg, #fff 0%, #fff 50%, #43ef99 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.tl-lead {
  max-width: 672px; margin: 16px auto 0;
  color: rgba(255, 255, 255, .65); font-size: 15px; font-weight: 400; line-height: 1.6;
}

/* ---- tool cards ---- */
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.tl-card-link { display: block; text-decoration: none }
.tl-card {
  position: relative; overflow: hidden; height: 100%;
  border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; padding: 28px;
  background: linear-gradient(to bottom right, #15171c, #0d0f13);
  transition: border-color .3s cubic-bezier(.4, 0, .2, 1);
}
.tl-card-link:hover .tl-card { border-color: hsl(var(--c), .4) }
.tl-card-glow {
  position: absolute; right: -80px; top: -80px; width: 192px; height: 192px; border-radius: 9999px;
  background: hsl(var(--c)); opacity: .15; filter: blur(64px);
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
}
.tl-card-link:hover .tl-card-glow { opacity: .4 }
.tl-card-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: .5;
  background: linear-gradient(90deg, transparent, hsl(var(--c)), transparent);
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
}
.tl-card-link:hover .tl-card-line { opacity: 1 }
.tl-card-sheen {
  position: absolute; inset: 0; transform: translateX(-100%); pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .06), transparent);
  transition: transform 1s cubic-bezier(.4, 0, .2, 1);
}
.tl-card-link:hover .tl-card-sheen { transform: translateX(100%) }
.tl-card-row { position: relative; z-index: 10; display: flex; align-items: flex-start; gap: 20px }
.tl-card-icon {
  display: flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center;
  border: 1px solid hsl(var(--c), .3); border-radius: 12px;
  background: linear-gradient(135deg, hsl(var(--c), .18) 0%, hsl(var(--c), .06) 100%);
  color: hsl(var(--c));
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.tl-card-icon svg { width: 24px; height: 24px }
.tl-card-link:hover .tl-card-icon { transform: scale(1.1) rotate(3deg) }
.tl-card-copy { min-width: 0; flex: 1 }
.tl-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.tl-card-title { margin: 0; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.025em }
.tl-badge {
  border-radius: 6px; padding: 2px 6px;
  background: hsl(var(--c), .18); color: hsl(var(--c));
  font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.tl-badge.new { background: rgba(156, 95, 242, .18); color: #9c5ff2 }
.tl-card-text { margin: 8px 0 0; color: rgba(255, 255, 255, .55); font-size: 13px; line-height: 1.625 }
.tl-open {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  color: hsl(var(--c)); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tl-open svg { width: 14px; height: 14px; transition: transform .15s cubic-bezier(.4, 0, .2, 1) }
.tl-card-link:hover .tl-open svg { transform: translateX(4px) }

/* ---- cash-out call to action (styles taken from the original block) ---- */
@keyframes skct-spin { to { transform: rotate(360deg) } }
@keyframes skct-rise { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes skct-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.6) }
  35% { opacity: .9 }
  50% { transform: translateY(-16px) scale(1.1) }
  100% { opacity: 0 }
}
@keyframes skct-drift { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(24px, -18px) } }
@keyframes skct-sweep { 0% { transform: translateX(-140%) } 55%, 100% { transform: translateX(260%) } }
@keyframes skct-btnglow {
  0%, 100% { box-shadow: 0 8px 30px -8px rgba(34, 197, 94, .65) }
  50% { box-shadow: 0 14px 44px -8px rgba(34, 197, 94, 1) }
}
@keyframes skct-textglow {
  0%, 100% { text-shadow: 0 0 26px rgba(34, 197, 94, .18) }
  50% { text-shadow: 0 0 40px rgba(34, 197, 94, .45) }
}
@keyframes skct-pulse { 0%, 100% { opacity: .5 } 50% { opacity: 1 } }

.skct-card {
  position: relative; margin-top: 64px; border-radius: 18px; overflow: hidden; padding: 2px;
  animation: skct-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.skct-ring {
  position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(34, 197, 94, 0) 55%, rgba(34, 197, 94, .9) 72%, rgba(140, 255, 180, 1) 80%, rgba(34, 197, 94, .9) 88%, transparent 100%);
  animation: skct-spin 7s linear infinite;
}
.skct-fill { position: absolute; inset: 2px; border-radius: 16px; background: linear-gradient(135deg, #0d1411, #0a0d0c 45%, #0a1f15) }
.skct-body { position: relative; z-index: 10; padding: 34px 32px }
@media (min-width: 640px) { .skct-body { padding: 42px 44px } }
.skct-glow { position: absolute; border-radius: 9999px; filter: blur(120px); pointer-events: none }
.skct-grid {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
}
.skct-particle {
  position: absolute; width: 5px; height: 5px; border-radius: 9999px;
  background: #22c55e; box-shadow: 0 0 10px #22c55e; pointer-events: none;
}
.skct-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px }
.skct-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(34, 197, 94, .4); border-radius: 9999px; padding: 5px 14px;
  background: rgba(34, 197, 94, .1); color: #22c55e;
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px;
}
.skct-dot { position: relative; display: inline-flex; width: 6px; height: 6px }
.skct-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 9999px; background: #22c55e;
  animation: skct-pulse 1.6s ease-in-out infinite;
}
.skct-dot::after { content: ''; position: absolute; inset: 0; border-radius: 9999px; background: #22c55e; opacity: .6 }
.skct-title {
  margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff;
  animation: skct-textglow 3.2s ease-in-out infinite;
}
@media (min-width: 640px) { .skct-title { font-size: 30px } }
.skct-lead { max-width: 36rem; margin: 10px 0 0; color: rgba(255, 255, 255, .6); font-size: 14px }
.skct-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; border-radius: 14px; padding: 16px 30px;
  background: linear-gradient(180deg, #2ee36a, #16a34a);
  color: #04140a; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none;
  animation: skct-btnglow 2.8s ease-in-out infinite; transition: transform .12s;
}
.skct-btn:hover { transform: translateY(-2px) }
.skct-btn:active { transform: translateY(0) scale(.98) }
.skct-btn .shine {
  position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: skct-sweep 3s ease-in-out infinite;
}
.skct-btn .arr { display: inline-flex; transition: transform .2s }
.skct-btn .arr svg { width: 16px; height: 16px }
.skct-btn:hover .arr { transform: translateX(5px) }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .tl-content { padding: 40px 24px 72px }
  .tl-grid { grid-template-columns: 1fr }
  .tl-title { font-size: 44px }
}
@media (max-width: 767px) {
  .tl-content { padding: 32px 12px 64px }
  .tl-title { font-size: 34px }
  .tl-card { padding: 20px }
  .tl-card-row { gap: 14px }
  .skct-row { grid-template-columns: 1fr }
  .skct-btn { width: 100% }
}
@media (prefers-reduced-motion: reduce) {
  .tl-card, .tl-card-glow, .tl-card-line, .tl-card-sheen, .tl-card-icon, .tl-open svg, .skct-btn, .skct-btn .arr { transition: none }
  .skct-card, .skct-ring, .skct-particle, .skct-glow, .skct-title, .skct-btn, .skct-btn .shine, .skct-dot::before { animation: none }
}

/* ---- staggered card entrance, sampled from the original ---- */
@keyframes tl-card-in {
  from { opacity: 0; transform: translateY(24px) scale(.96) }
  to { opacity: 1; transform: none }
}
.tl-card-link {
  opacity: 0;
  animation: tl-card-in .4s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * .1s);
}
.tl-card-link { animation-timing-function: linear(0,.015 0%,.15 3.5%,.275 7%,.387 10.3%,.487 13.8%,.575 17.3%,.649 20.8%,.712 24.3%,.765 27.8%,.809 31.3%,.846 34.8%,.875 38.3%,.9 41.5%,.92 45%,.936 48.5%,.95 52%,.969 59%,.982 66%,.99 72.8%,.995 79.8%,.998 86.8%,1) }
@media (prefers-reduced-motion: reduce) { .tl-card-link { opacity: 1; animation: none } }
