:root{
  --bg: #0b0d13;
  --panel: #121629;
  --text: #e8ecf4;
  --muted: #9aa3b2;
  --primary: #00ffe0;
  --accent: #8a2be2;
  --success: #15d17a;
  --danger: #ff4d6d;
  --shadow: rgba(0,0,0,0.3);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(138,43,226,0.15), transparent),
              radial-gradient(900px 500px at 80% 20%, rgba(0,255,224,0.12), transparent),
              var(--bg);
  color:var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.site-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(160%) blur(6px);
  background: linear-gradient(90deg, rgba(18,22,41,0.85), rgba(18,22,41,0.65));
  border-bottom:1px solid rgba(255,255,255,0.05);
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
}

.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:8px;
  background: radial-gradient( circle at 30% 30%, var(--primary), transparent 60% ),
             radial-gradient( circle at 70% 70%, var(--accent), transparent 60% );
  box-shadow: 0 0 12px rgba(0,255,224,0.35), 0 0 20px rgba(138,43,226,0.25);
}
.title{font-weight:700; letter-spacing:0.3px}

.nav a{
  color:var(--text); text-decoration:none; padding:8px 10px; border-radius:6px;
}
.nav a:hover{background:rgba(255,255,255,0.06)}
.nav a.active{color:var(--primary)}

.hero{padding:24px 16px; max-width:980px; margin:0 auto}
.hero h1{
  font-size:clamp(24px, 3.5vw, 36px);
  margin:0 0 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p{color:var(--muted); margin:0 0 20px}

.generator-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  box-shadow: 0 10px 24px var(--shadow);
  padding:16px;
}

.input-row{display:flex; gap:10px; flex-wrap:wrap}
.input-row input{
  flex:1; min-width:220px; padding:12px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.12);
  background:#0f1324; color:var(--text); outline:none;
}
.input-row input::placeholder{color:#7a8699}

.btn{
  border:none; cursor:pointer; border-radius:10px; padding:12px 14px; font-weight:600;
  transition:transform .06s ease, box-shadow .2s ease;
}
.btn.primary{
  background:linear-gradient(90deg, var(--primary), var(--accent));
  color:#0a0d14;
}
.btn.ghost{
  background:transparent; color:var(--text);
  border:1px solid rgba(255,255,255,0.15);
}
.btn.link{
  background:transparent; color:var(--primary); border:1px solid rgba(0,255,224,0.35);
}
.btn.mini{padding:8px 10px; font-size:14px}
.btn:active{transform:scale(0.98)}

.tools-row{
  margin-top:12px; display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}
.tool{display:flex; gap:8px; align-items:center; background:#0f1324; padding:10px; border-radius:10px; border:1px solid rgba(255,255,255,0.08)}
.tool label span{color:#b8c0d0; font-size:14px}
.tool input[type="color"]{width:36px; height:36px; padding:0; border:none; background:transparent}
.tool input[type="text"]{
  min-width:120px; padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.12); background:#0b1020; color:var(--text)
}

.switch{position:relative; display:inline-block; width:48px; height:24px; margin-left:10px}
.switch input{opacity:0; width:0; height:0}
.slider{
  position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0;
  background:#1b2036; border-radius:999px; border:1px solid rgba(255,255,255,0.1);
}
.slider:before{
  content:""; position:absolute; height:18px; width:18px; left:3px; top:2.5px;
  background:#cfd6e6; border-radius:50%; transition:transform .2s ease;
}
.switch input:checked + .slider{background:linear-gradient(90deg, var(--primary), var(--accent))}
.switch input:checked + .slider:before{transform:translateX(24px)}

.info-bar{
  margin-top:12px; display:flex; gap:10px; flex-wrap:wrap;
}
.info-bar .rule{
  font-size:13px; color:#9fb0c8; background:#0f1324; border:1px dashed rgba(255,255,255,0.15);
  border-radius:8px; padding:6px 8px;
}

.results-grid{
  margin-top:16px;
  display:grid; grid-template-columns:repeat(1, 1fr); gap:10px;
}
@media (min-width:520px){.results-grid{grid-template-columns:repeat(2, 1fr)}}
@media (min-width:820px){.results-grid{grid-template-columns:repeat(3, 1fr)}}

.result-card{
  position:relative;
  background:#0f1324; border:1px solid rgba(255,255,255,0.10); border-radius:12px;
  padding:12px; overflow:hidden;
}
.result-text{
  font-size:18px; word-break:break-word;
}
.result-actions{
  display:flex; gap:8px; margin-top:10px; flex-wrap:wrap;
}
.copy-btn, .share-btn{
  font-size:13px; color:#d7e3ff; background:#121629; border:1px solid rgba(255,255,255,0.12);
  border-radius:8px; padding:8px 10px; cursor:pointer;
}
.copy-btn.success{border-color:rgba(21,209,122,0.6); color:#15d17a}
.copy-btn.error{border-color:rgba(255,77,109,0.6); color:#ff4d6d}

.result-card.glow .result-text{
  text-shadow: 0 0 6px rgba(0,255,224,0.6), 0 0 14px rgba(138,43,226,0.5);
}

/* Glitch animation (toggle) */
.glitch {
  position:relative;
}
.glitch::before, .glitch::after{
  content:attr(data-text);
  position:absolute; left:0; top:0;
}
.glitch::before{
  color:#00ffe0; clip-path: polygon(0 2%, 100% 0, 100% 48%, 0 50%);
  transform:translate(1px,-1px);
  animation:glitchA 2.2s infinite linear alternate-reverse;
}
.glitch::after{
  color:#8a2be2; clip-path: polygon(0 52%, 100% 50%, 100% 100%, 0 100%);
  transform:translate(-1px,1px);
  animation:glitchB 2.2s infinite linear alternate-reverse;
}
@keyframes glitchA{
  0%{transform:translate(1px,-1px)}
  50%{transform:translate(2px,-0.5px)}
  100%{transform:translate(-1px,-2px)}
}
@keyframes glitchB{
  0%{transform:translate(-1px,1px)}
  50%{transform:translate(-2px,0.5px)}
  100%{transform:translate(1px,2px)}
}

.internal-links{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap}

.seo-content{padding:16px; max-width:980px; margin:10px auto 40px}
.seo-content h2, .seo-content h3{margin:8px 0}
.bullets{margin:8px 0 0 18px}
.bullets li{margin:4px 0}

.site-footer{
  border-top:1px solid rgba(255,255,255,0.08);
  padding:20px 16px; color:#95a4bd; text-align:center;
  background:linear-gradient(180deg, rgba(18,22,41,0.8), rgba(18,22,41,0.6));
}
.site-footer .links{display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:6px}
.site-footer a{color:#cfe5ff; text-decoration:none}
.site-footer a:hover{color:var(--primary)}
.trust{font-size:13px; margin:0}
/* Trending Page Specific Styles */

/* Category sections */
.category {
  margin: 32px auto;
  max-width: 980px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.category h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Result cards inside categories */
.category .results-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}
@media (min-width:520px) {
  .category .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width:820px) {
  .category .results-grid { grid-template-columns: repeat(3, 1fr); }
}

.category .result-card {
  background: #0f1324;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.category .result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,255,224,0.25), 0 0 12px rgba(138,43,226,0.25);
}

.category .result-text {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
  margin-bottom: 10px;
}

/* Copy button */
.category .copy-btn {
  font-size: 13px;
  color: #d7e3ff;
  background: #121629;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.category .copy-btn:hover {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #0a0d14;
}
.category .copy-btn.success {
  border-color: rgba(21,209,122,0.6);
  color: #15d17a;
}
.category .copy-btn.error {
  border-color: rgba(255,77,109,0.6);
  color: #ff4d6d;
}

/* Glow & glitch effects reused */
.category .result-text.glow {
  text-shadow: 0 0 6px rgba(0,255,224,0.6), 0 0 14px rgba(138,43,226,0.5);
}
.category .result-text.glitch {
  position: relative;
}
.category .result-text.glitch::before,
.category .result-text.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
}
.category .result-text.glitch::before {
  color: var(--primary);
  clip-path: polygon(0 2%, 100% 0, 100% 48%, 0 50%);
  transform: translate(1px,-1px);
  animation: glitchA 2.2s infinite linear alternate-reverse;
}
.category .result-text.glitch::after {
  color: var(--accent);
  clip-path: polygon(0 52%, 100% 50%, 100% 100%, 0 100%);
  transform: translate(-1px,1px);
  animation: glitchB 2.2s infinite linear alternate-reverse;
}