body.dark-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050711;
    color: #f5f5ff;
}

a {
    color: #7dd5ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top left, #1f2840, #050711 60%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.site-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-name {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 16px;
}

.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #d0d3ff;
}

.nav-cta {
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #050711;
    font-weight: 600;
}

.nav-cta:hover {
    text-decoration: none;
    filter: brightness(1.05);
}

.site-main {
    padding-bottom: 40px;
}

.hero {
    padding: 56px 0 32px;
    text-align: center;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.hero-content p {
    color: #9ca3c7;
    max-width: 520px;
    margin: 0 auto 24px;
}

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn-lg {
    padding: 13px 22px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #22d3ee);
    color: #050711;
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 46px rgba(79, 70, 229, 0.6);
    text-decoration: none;
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border-color: #4b5563;
}

.btn-outline {
    background: transparent;
    color: #9ca3af;
    border-color: #4b5563;
}

.section {
    padding: 24px 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.section-header h2,
.section-header h1 {
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.card {
    background: radial-gradient(circle at top left, #111827, #020617 60%);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.card:hover {
    border-color: rgba(129, 140, 248, 0.6);
}

.card-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.card-category {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
}

.card-description {
    margin: 0;
    color: #9ca3c7;
    font-size: 14px;
}

.muted {
    color: #6b7280;
    font-size: 14px;
}

.form-card {
    background: #020617;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    max-width: 560px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

.alert-error ul {
    margin: 0;
    padding-left: 18px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.tool-detail {
    padding-top: 32px;
}

.tool-card-large {
    max-width: 640px;
}

.tool-logo-large {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 16px;
}

.tool-category {
    margin-top: 4px;
    color: #818cf8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tool-description {
    margin-top: 16px;
    color: #d1d5db;
}

.tool-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 1);
    padding: 16px 0 26px;
    color: #6b7280;
    font-size: 13px;
}

.footer-inner {
    text-align: center;
}

@media (max-width: 640px) {
    .site-logo img {
        height: 32px;
    }
    .hero-content h1 {
        font-size: 30px;
    }

    .header-inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* -- Premium design additions -- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --glow-cyan: rgba(34,211,238,0.15);
  --glow-indigo: rgba(99,102,241,0.15);
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Gradient border cards */
.w3-card {
  position: relative;
  border-radius: 1rem;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  backdrop-filter: blur(8px);
}
.w3-card:hover {
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,211,238,0.08), 0 2px 8px rgba(0,0,0,0.4);
}

/* Pinned/featured card glow */
.w3-card-pinned {
  border-color: rgba(34,211,238,0.25);
  background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(6,18,40,0.95) 100%);
  box-shadow: 0 0 40px rgba(34,211,238,0.06), 0 4px 20px rgba(0,0,0,0.5);
}
.w3-card-pinned:hover {
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 0 60px rgba(34,211,238,0.12), 0 8px 32px rgba(0,0,0,0.5);
}

/* Eyebrow label */
.w3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-bottom: .75rem;
}

/* Category card icon bg */
.w3-cat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.12);
  margin-bottom: .75rem;
}

/* Vote chip */
.w3-vote {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(148,163,184,0.8);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: .5rem;
  padding: .2rem .6rem;
}

/* Section divider */
.w3-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.2), transparent);
  margin: 0;
}

/* Gradient text */
.w3-gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Submit CTA band */
.w3-cta-band {
  background: linear-gradient(135deg, rgba(34,211,238,0.05) 0%, rgba(99,102,241,0.08) 100%);
  border: 1px solid rgba(34,211,238,0.12);
  border-radius: 1.5rem;
}

/* Upvote btn */
.w3-upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: .6rem;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(148,163,184,0.75);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: color .15s, background .15s, border-color .15s;
  cursor: pointer;
  white-space: nowrap;
}
.w3-upvote-btn:hover {
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.25);
}

/* Fade-in animation */
@keyframes w3-fadein { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.w3-fadein { animation: w3-fadein .5s ease both; }

/* Logo ring */
.w3-logo-ring {
  ring: 1px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow .2s;
}
.w3-card:hover .w3-logo-ring {
  box-shadow: 0 0 0 2px rgba(34,211,238,0.3);
}

/* Sticky sidebar */
.w3-sidebar-card {
  position: sticky;
  top: 5.5rem;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

