/* DevToolMax - Main Stylesheet */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-gray-950: #030712;
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-purple-600: #9333ea;
    --color-green-600: #16a34a;
    --color-red-600: #dc2626;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--color-white);
    color: var(--color-gray-900);
}

.dark body {
    background: var(--color-gray-950);
    color: var(--color-gray-100);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utility Classes */
.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.hidden {
    display: none;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border: 1px solid;
}

.border-0 {
    border: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-24 {
    top: 6rem;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-16 {
    height: 4rem;
}

.h-32 {
    height: 8rem;
}

.h-64 {
    height: 16rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex-1 {
    flex: 1;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.object-cover {
    object-fit: cover;
}

.break-all {
    word-break: break-all;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.opacity-50 {
    opacity: 0.5;
}

.transition {
    transition: all 0.2s ease;
}

.transition-all {
    transition: all 0.2s ease;
}

.duration-200 {
    transition-duration: 0.2s;
}

.resize-none {
    resize: none;
}

.resize-y {
    resize: vertical;
}

.list-none {
    list-style: none;
}

.font-mono {
    font-family: 'Consolas', 'Monaco', monospace;
}

.leading-3 {
    line-height: .75rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Background Colors */
.bg-white {
    background: var(--color-white);
}

.bg-gray-50 {
    background: var(--color-gray-50);
}

.bg-gray-100 {
    background: var(--color-gray-100);
}

.bg-gray-200 {
    background: var(--color-gray-200);
}

.bg-gray-900 {
    background: var(--color-gray-900);
}

.bg-blue-50 {
    background: var(--color-blue-50);
}

.bg-blue-100 {
    background: var(--color-blue-100);
}

.bg-blue-600 {
    background: var(--color-blue-600);
}

.bg-red-600 {
    background: var(--color-red-600);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
}

.from-blue-400 {
    --tw-gradient-from: #60a5fa;
}

.via-white {
    --tw-gradient-to: transparent;
    --tw-gradient-stops: var(--tw-gradient-from), #fff, var(--tw-gradient-to);
}

.to-purple-50 {
    --tw-gradient-to: #faf5ff;
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}

.to-purple-500 {
    --tw-gradient-to: #a855f7;
}

/* Text Colors */
.text-white {
    color: var(--color-white);
}

.text-gray-400 {
    color: var(--color-gray-400);
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-900 {
    color: var(--color-gray-900);
}

.text-blue-600 {
    color: var(--color-blue-600);
}

.text-green-500 {
    color: #22c55e;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: var(--color-red-600);
}

.text-orange-600 {
    color: #ea580c;
}

.text-purple-600 {
    color: var(--color-purple-600);
}

.hover\:text-blue-600:hover {
    color: var(--color-blue-600);
}

.hover\:text-blue-700:hover {
    color: var(--color-blue-700);
}

.hover\:text-white:hover {
    color: var(--color-white);
}

/* Border Colors */
.border-gray-200 {
    border-color: var(--color-gray-200);
}

.border-gray-300 {
    border-color: var(--color-gray-300);
}

.border-blue-500 {
    border-color: var(--color-blue-600);
}

.hover\:border-blue-500:hover {
    border-color: var(--color-blue-600);
}

/* Hover Backgrounds */
.hover\:bg-gray-50:hover {
    background: var(--color-gray-50);
}

.hover\:bg-gray-100:hover {
    background: var(--color-gray-100);
}

.hover\:bg-gray-200:hover {
    background: var(--color-gray-200);
}

.hover\:bg-gray-300:hover {
    background: #d1d5db;
}

.hover\:bg-blue-50:hover {
    background: var(--color-blue-50);
}

.hover\:bg-blue-100:hover {
    background: var(--color-blue-100);
}

.hover\:bg-blue-700:hover {
    background: var(--color-blue-700);
}

.hover\:bg-red-700:hover {
    background: #b91c1c;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Focus */
.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    box-shadow: var(--tw-ring-offset-shadow), 0 0 0 2px var(--color-blue-600), var(--tw-ring-shadow);
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: var(--color-blue-600);
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

.outline-none {
    outline: none;
}

/* Group Hover */
.group:hover .group-hover\:text-blue-600 {
    color: var(--color-blue-600);
}

/* Dark Mode */
.dark .dark\:bg-gray-950 {
    background: var(--color-gray-950);
}

.dark .dark\:bg-gray-900 {
    background: var(--color-gray-900);
}

.dark .dark\:bg-gray-800 {
    background: var(--color-gray-800);
}

.dark .dark\:bg-gray-700 {
    background: var(--color-gray-700);
}

.dark .dark\:bg-blue-900 {
    background: #1e3a5f;
}

.dark .dark\:bg-blue-900\/20 {
    background: rgba(30, 58, 95, 0.2);
}

.dark .dark\:bg-green-900\/20 {
    background: rgba(20, 83, 45, 0.2);
}

.dark .dark\:bg-purple-900\/20 {
    background: rgba(76, 29, 149, 0.2);
}

.dark .dark\:bg-orange-900\/20 {
    background: rgba(120, 53, 15, 0.2);
}

.dark .dark\:text-gray-100 {
    color: #f3f4f6;
}

.dark .dark\:text-gray-300 {
    color: #d1d5db;
}

.dark .dark\:text-gray-400 {
    color: var(--color-gray-400);
}

.dark .dark\:text-blue-300 {
    color: #93c5fd;
}

.dark .dark\:border-gray-700 {
    border-color: var(--color-gray-700);
}

.dark .dark\:border-gray-800 {
    border-color: var(--color-gray-800);
}

.dark .dark\:border-blue-500 {
    border-color: var(--color-blue-600);
}

.dark .dark\:hover\:border-blue-500:hover {
    border-color: var(--color-blue-600);
}

.dark .dark\:hover\:bg-gray-700:hover {
    background: var(--color-gray-700);
}

.dark .dark\:hover\:bg-gray-800:hover {
    background: var(--color-gray-800);
}

.dark .dark\:hover\:bg-gray-600:hover {
    background: var(--color-gray-600);
}

.dark .dark\:hover\:bg-blue-900:hover {
    background: #1e3a5f;
}

.dark .dark\:text-white {
    color: var(--color-white);
}

.dark .dark\:bg-gray-950\/80 {
    background: rgba(3, 7, 18, 0.8);
}

.dark .dark\:text-blue-400 {
    color: #60a5fa;
}

/* Dark mode invert */
.dark .dark\:hidden {
    display: none;
}

.dark .dark\:inline {
    display: inline;
}

/* Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

/* Tool layout */
.tool-container textarea {
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-gray-200);
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.pagination a:hover {
    background: var(--color-gray-100);
}

/* Markdown preview */
.prose h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 700;
}

.prose code {
    background: var(--color-gray-100);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose li {
    margin-left: 1.5rem;
}

/* Responsive */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:text-6xl {
        font-size: 3.75rem;
    }

    .md\:py-28 {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #111827;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 50;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Custom checkbox */
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

input[type="radio"] {
    width: 1rem;
    height: 1rem;
}

input[type="range"] {
    height: 0.5rem;
    border-radius: 0.25rem;
    background: var(--color-gray-200);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--color-blue-600);
    cursor: pointer;
}

input[type="color"] {
    cursor: pointer;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
}

/* Prose for blog */
.prose {
    max-width: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 28%, #f7f9fc 100%);
}

.dark .site-body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 22%),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 18%),
        linear-gradient(180deg, #08111f 0%, #030712 100%);
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-main {
    position: relative;
}

.site-header {
    padding-top: 16px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.dark .site-header-inner {
    background: rgba(3, 7, 18, 0.8);
    border-color: rgba(71, 85, 105, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 55%, #22c55e 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1.05rem;
    line-height: 1.1;
}

.brand-copy small {
    color: var(--color-gray-500);
    font-size: 0.78rem;
}

.dark .brand-copy small {
    color: #94a3b8;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
}

.dark .site-nav {
    background: rgba(30, 41, 59, 0.7);
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-600);
    transition: all 0.2s ease;
}

.dark .site-nav a {
    color: #cbd5e1;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.dark .site-nav a:hover,
.dark .site-nav a.is-active {
    color: #fff;
    background: rgba(15, 23, 42, 0.92);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.action-chip {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle {
    width: 42px;
    padding: 0;
}

.dark .theme-toggle,
.dark .action-chip {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(71, 85, 105, 0.45);
    color: #e2e8f0;
}

.theme-toggle:hover,
.action-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.action-chip-primary {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    border-color: transparent;
    color: #fff;
}

.home-hero {
    padding: 36px 0 28px;
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 28px;
    padding: 42px;
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 24%),
        radial-gradient(circle at left center, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 248, 252, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-100%);
    animation: heroSweep 8s linear infinite;
    pointer-events: none;
}

.dark .hero-panel {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 20%),
        radial-gradient(circle at left center, rgba(59, 130, 246, 0.14), transparent 26%),
        linear-gradient(145deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(71, 85, 105, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero-copy,
.hero-aside {
    position: relative;
    z-index: 1;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.dark .hero-eyebrow,
.dark .section-kicker {
    color: #99f6e4;
    background: rgba(13, 148, 136, 0.2);
}

.hero-copy h1 {
    margin-top: 18px;
    max-width: 12ch;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.dark .hero-copy h1 {
    color: #f8fafc;
}

.hero-copy p {
    margin-top: 18px;
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--color-gray-600);
}

.dark .hero-copy p {
    color: #cbd5e1;
}

.hero-search-wrap {
    position: relative;
    margin-top: 30px;
    max-width: 720px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    height: 68px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.dark .hero-search {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(71, 85, 105, 0.5);
    box-shadow: none;
}

.hero-search i {
    color: #2563eb;
    font-size: 1rem;
}

.hero-search input {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: inherit;
    outline: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.dark .search-results {
    background: rgba(2, 6, 23, 0.96);
    border-color: rgba(71, 85, 105, 0.4);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.dark .search-result-item:hover {
    background: rgba(37, 99, 235, 0.12);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.search-result-title {
    font-weight: 700;
}

.search-result-meta {
    margin-top: 2px;
    font-size: 0.86rem;
    color: var(--color-gray-500);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.dark .hero-highlights span {
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.35);
}

.hero-metric-card,
.hero-mini-grid > div,
.category-card,
.tool-card,
.blog-card,
.stat-card,
.site-footer-panel {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-metric-card {
    padding: 24px;
    border-radius: 24px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.hero-metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 3.2rem;
    line-height: 1;
}

.hero-metric-card p,
.metric-label {
    color: rgba(255, 255, 255, 0.8);
}

.metric-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.hero-mini-grid > div {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.68);
}

.dark .hero-mini-grid > div {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(71, 85, 105, 0.32);
}

.hero-mini-grid strong {
    display: block;
    font-size: 1.5rem;
    color: #0f172a;
}

.dark .hero-mini-grid strong {
    color: #f8fafc;
}

.hero-mini-grid span {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--color-gray-500);
}

.home-section {
    padding: 38px 0 32px;
}

.home-section-alt {
    padding: 48px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 34rem;
    color: var(--color-gray-500);
    line-height: 1.7;
}

.dark .section-heading p {
    color: #94a3b8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #2563eb;
}

.category-grid,
.tool-grid,
.blog-grid {
    display: grid;
    gap: 18px;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-grid,
.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.tool-card,
.blog-card,
.stat-card,
.site-footer-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.dark .category-card,
.dark .tool-card,
.dark .blog-card,
.dark .stat-card,
.dark .site-footer-panel {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(71, 85, 105, 0.32);
    box-shadow: none;
}

.category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
}

.category-card:hover,
.tool-card:hover,
.blog-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.14));
    color: #2563eb;
    font-size: 1.3rem;
}

.category-card h3 {
    font-size: 1.03rem;
    font-weight: 700;
}

.category-card p {
    margin-top: 4px;
    color: var(--color-gray-500);
}

.tool-card {
    padding: 24px;
    border-radius: 28px;
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.tool-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tool-badge,
.blog-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.tool-category {
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-card h3,
.blog-card h3 {
    margin-top: 10px;
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.tool-card p,
.blog-card p {
    margin-top: 10px;
    color: var(--color-gray-600);
    line-height: 1.72;
}

.dark .tool-card p,
.dark .blog-card p {
    color: #cbd5e1;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 28px 22px;
    border-radius: 24px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #2563eb;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--color-gray-500);
    line-height: 1.5;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 28px;
    min-height: 260px;
}

.blog-read {
    margin-top: auto;
    padding-top: 18px;
    font-weight: 700;
    color: #2563eb;
}

.site-footer {
    padding: 28px 0 34px;
}

.site-footer-panel {
    padding: 30px;
    border-radius: 32px;
}

.footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-brand h3 {
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.footer-brand p {
    margin-top: 8px;
    max-width: 42rem;
    color: var(--color-gray-500);
    line-height: 1.75;
}

.dark .footer-brand p,
.dark .site-footer-meta {
    color: #94a3b8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 28px 0;
}

.footer-links h4 {
    margin-bottom: 12px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-500);
}

.footer-links a {
    display: block;
    padding: 7px 0;
    color: var(--color-gray-700);
}

.dark .footer-links a {
    color: #e2e8f0;
}

.site-footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--color-gray-500);
    font-size: 0.92rem;
}

.page-section {
    padding: 34px 0 42px;
}

.site-shell-narrow {
    width: min(900px, calc(100% - 32px));
}

.page-hero {
    margin-bottom: 24px;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.dark .page-hero {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(71, 85, 105, 0.32);
    box-shadow: none;
}

.page-hero-compact h1 {
    margin-top: 12px;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-hero-compact p {
    margin-top: 12px;
    max-width: 46rem;
    color: var(--color-gray-500);
    line-height: 1.75;
}

.dark .page-hero-compact p {
    color: #94a3b8;
}

.page-hero-inline {
    display: flex;
    align-items: center;
    gap: 18px;
}

.page-hero-icon,
.tool-detail-icon {
    flex-shrink: 0;
}

.tool-detail-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.page-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--color-gray-500);
    font-size: 0.92rem;
}

.page-breadcrumbs i {
    font-size: 0.7rem;
}

.page-breadcrumbs a:hover {
    color: #2563eb;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 22px;
}

.content-sidebar {
    min-width: 0;
}

.content-main {
    min-width: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 104px;
}

.sidebar-card,
.content-panel,
.article-shell,
.post-card,
.listing-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.dark .sidebar-card,
.dark .content-panel,
.dark .article-shell,
.dark .post-card,
.dark .listing-card {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(71, 85, 105, 0.32);
    box-shadow: none;
}

.sidebar-card,
.content-panel,
.article-shell {
    border-radius: 28px;
    padding: 24px;
}

.sidebar-card h3,
.panel-title {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--color-gray-700);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.dark .sidebar-link {
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
}

.sidebar-link:hover,
.sidebar-link.is-current {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    transform: translateY(-1px);
}

.sidebar-link span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sidebar-link small {
    color: var(--color-gray-500);
}

.sidebar-link-stack {
    align-items: flex-start;
    flex-direction: column;
}

.listing-grid,
.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.listing-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-card,
.post-card {
    display: block;
    border-radius: 26px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.listing-card {
    padding: 22px;
}

.listing-card:hover,
.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.listing-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.listing-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 1rem;
}

.listing-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 700;
}

.listing-card h3,
.post-card h2,
.article-header h1 {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.listing-card p,
.post-card p {
    margin-top: 10px;
    color: var(--color-gray-600);
    line-height: 1.72;
}

.dark .listing-card p,
.dark .post-card p {
    color: #cbd5e1;
}

.page-pagination {
    margin-top: 24px;
}

.tool-surface {
    padding: 28px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.steps-list li span {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-weight: 700;
}

.steps-list li p {
    padding-top: 5px;
    line-height: 1.7;
    color: var(--color-gray-600);
}

.dark .steps-list li p {
    color: #cbd5e1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.faq-item {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.faq-answer {
    padding: 0 18px 18px;
    color: var(--color-gray-600);
    line-height: 1.75;
}

.dark .faq-answer {
    color: #cbd5e1;
}

.post-card-image,
.article-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.post-card-image {
    height: 220px;
}

.post-card-body {
    padding: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--color-gray-500);
    font-size: 0.86rem;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 40px 24px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 24px;
    text-align: center;
    color: var(--color-gray-500);
}

.empty-state i {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
}

.article-shell {
    padding: 32px;
}

.article-header h1 {
    margin-top: 14px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.article-header .post-meta {
    justify-content: flex-start;
    gap: 16px;
}

.article-image {
    margin-top: 22px;
    border-radius: 24px;
    max-height: 440px;
}

.article-body {
    margin-top: 24px;
    line-height: 1.9;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.article-tags span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 600;
}

.related-section {
    margin-top: 28px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.auth-copy {
    padding: 18px 6px;
}

.auth-copy h1 {
    margin-top: 12px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.auth-copy p {
    margin-top: 14px;
    color: var(--color-gray-600);
    line-height: 1.8;
}

.dark .auth-copy p {
    color: #cbd5e1;
}

.auth-note {
    margin-top: 22px;
}

.auth-note h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.auth-note p + p {
    margin-top: 6px;
}

.auth-subtitle {
    margin-top: 8px;
    color: var(--color-gray-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    outline: none;
}

.dark .form-field input {
    background: rgba(2, 6, 23, 0.7);
    border-color: rgba(71, 85, 105, 0.45);
}

.form-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gray-600);
}

.primary-button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.dark .auth-alert-success {
    color: #bbf7d0;
}

.field-error {
    margin-top: 8px;
    color: #dc2626;
    font-size: 0.88rem;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%),
        linear-gradient(180deg, #eef5ff 0%, #f8fbff 26%, #f3f7fb 100%);
    color: #0f172a;
}

.dark .admin-body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 22%),
        linear-gradient(180deg, #08111f 0%, #030712 100%);
    color: #f8fafc;
}

.admin-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    min-height: 100vh;
    padding: 18px;
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
}

.admin-sidebar-card,
.admin-panel,
.admin-form-shell,
.admin-hero,
.admin-topbar,
.admin-flash {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.dark .admin-sidebar-card,
.dark .admin-panel,
.dark .admin-form-shell,
.dark .admin-hero,
.dark .admin-topbar,
.dark .admin-flash {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(71, 85, 105, 0.32);
    box-shadow: none;
}

.admin-sidebar-card {
    border-radius: 30px;
    padding: 22px;
}

.admin-brand {
    margin-bottom: 22px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    color: var(--color-gray-700);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.dark .admin-nav-link {
    color: #e2e8f0;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    transform: translateY(-1px);
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-sidebar-footer form,
.admin-sidebar-footer button {
    width: 100%;
}

.admin-logout {
    justify-content: center;
    color: #dc2626;
}

.admin-main {
    min-width: 0;
    padding-bottom: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border-radius: 28px;
}

.admin-topbar-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.admin-topbar-title {
    margin-top: 6px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-flash {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 20px;
}

.admin-flash-success {
    color: #166534;
}

.dark .admin-flash-success {
    color: #bbf7d0;
}

.admin-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-hero,
.admin-panel,
.admin-form-shell {
    border-radius: 28px;
    padding: 24px;
}

.admin-hero h2,
.admin-page-header h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.admin-hero p,
.admin-page-header p,
.admin-panel-header p {
    margin-top: 10px;
    color: var(--color-gray-500);
    line-height: 1.7;
}

.dark .admin-hero p,
.dark .admin-page-header p,
.dark .admin-panel-header p {
    color: #94a3b8;
}

.admin-stats-grid,
.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.admin-stat-card,
.admin-action-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dark .admin-stat-card,
.dark .admin-action-card {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(71, 85, 105, 0.32);
    box-shadow: none;
}

.admin-stat-card {
    padding: 22px;
}

.admin-stat-card span {
    display: block;
    color: var(--color-gray-500);
    font-size: 0.92rem;
}

.admin-stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #2563eb;
}

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

.admin-grid-2-wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
}

.admin-panel-header,
.admin-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.admin-panel-header h3 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.admin-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.admin-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 18px;
    text-align: center;
}

.admin-action-card i {
    font-size: 1.4rem;
    color: #2563eb;
}

.admin-action-card:hover,
.admin-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.admin-primary-button,
.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 700;
}

.admin-primary-button {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    color: #fff;
}

.admin-secondary-button {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-gray-700);
}

.dark .admin-secondary-button {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.45);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
    font-size: 0.94rem;
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-status.is-live {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.admin-status.is-draft {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.dark .admin-status.is-live {
    color: #bbf7d0;
}

.dark .admin-status.is-draft {
    color: #cbd5e1;
}

.admin-table-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.admin-table-actions a,
.admin-table-actions button {
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    cursor: pointer;
}

.admin-table-actions button {
    color: #dc2626;
}

.admin-form-shell {
    max-width: 980px;
}

.admin-form-shell-narrow {
    max-width: 760px;
}

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

.admin-form-field {
    min-width: 0;
}

.admin-form-field-full {
    grid-column: 1 / -1;
}

.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.admin-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-form-field input,
.admin-form-field select,
.admin-form-field textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
    font: inherit;
}

.dark .admin-form-field input,
.dark .admin-form-field select,
.dark .admin-form-field textarea {
    background: rgba(2, 6, 23, 0.72);
    border-color: rgba(71, 85, 105, 0.45);
}

.admin-form-field input:focus,
.admin-form-field select:focus,
.admin-form-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-form-field input[type="color"] {
    min-height: 54px;
    padding: 8px;
}

.admin-form-checks {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

@keyframes heroSweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 1024px) {
    .hero-panel,
    .tool-grid,
    .blog-grid,
    .category-grid,
    .stats-strip,
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-panel {
        padding: 30px;
    }

    .content-layout,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .listing-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell,
    .admin-grid-2,
    .admin-grid-2-wide,
    .admin-stats-grid,
    .admin-action-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .site-shell {
        width: min(100% - 20px, 100%);
    }

    .site-header-inner,
    .section-heading,
    .site-footer-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-copy small {
        display: none;
    }

    .site-nav {
        justify-content: center;
        width: 100%;
    }

    .site-actions {
        justify-content: space-between;
    }

    .home-hero {
        padding-top: 20px;
    }

    .hero-panel,
    .category-grid,
    .tool-grid,
    .blog-grid,
    .stats-strip,
    .footer-links,
    .listing-grid,
    .listing-grid-3,
    .blog-index-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 24px;
        border-radius: 26px;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: 2.8rem;
    }

    .hero-search {
        height: 58px;
        padding: 0 16px;
    }

    .hero-highlights {
        flex-direction: column;
    }

    .hero-highlights span {
        justify-content: center;
    }

    .category-card {
        grid-template-columns: auto 1fr;
    }

    .category-card > i:last-child {
        display: none;
    }

    .footer-brand {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .content-panel,
    .sidebar-card,
    .article-shell,
    .tool-surface,
    .site-footer-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .page-hero-inline,
    .page-breadcrumbs,
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-copy,
    .auth-card {
        padding: 0;
    }

    .post-card-image {
        height: 200px;
    }

    .admin-shell {
        gap: 16px;
        padding: 12px;
    }

    .admin-sidebar-card,
    .admin-panel,
    .admin-form-shell,
    .admin-hero,
    .admin-topbar {
        padding: 18px;
        border-radius: 22px;
    }

    .admin-topbar,
    .admin-page-header,
    .admin-panel-header,
    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-form-actions .admin-primary-button,
    .admin-form-actions .admin-secondary-button {
        width: 100%;
    }
}
