:root {
    --bg: #f3efe5;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --text: #172033;
    --muted: #5f6678;
    --line: rgba(23, 32, 51, 0.1);
    --accent: #ef6c3d;
    --accent-strong: #ca4e21;
    --accent-soft: rgba(239, 108, 61, 0.12);
    --shadow: 0 20px 60px rgba(20, 28, 45, 0.12);
    --radius: 24px;
    --container: min(1180px, calc(100% - 2rem));
    --gradient: radial-gradient(circle at top left, rgba(255, 183, 127, 0.35), transparent 35%), linear-gradient(135deg, #f6f0df 0%, #e8f0ff 100%);
}

html[data-theme='dark'] {
    --bg: #081120;
    --surface: rgba(12, 23, 40, 0.72);
    --surface-strong: #0e1b2d;
    --text: #f5f7fb;
    --muted: #9ba9c2;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #ff9b54;
    --accent-strong: #ff7a1a;
    --accent-soft: rgba(255, 155, 84, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --gradient: radial-gradient(circle at top left, rgba(255, 155, 84, 0.18), transparent 32%), linear-gradient(135deg, #07101d 0%, #12233d 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

main {
    display: grid;
    gap: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(8, 17, 32, 0.08);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand strong,
.brand small {
    display: block;
}

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

.brand-mark,
.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #ffd07f);
    color: #111827;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.tool-icon.large {
    width: 88px;
    height: 88px;
    font-size: 1.5rem;
}

.hero-tool-icon {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    font-size: 2rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav a {
    color: var(--muted);
    font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover,
.text-link,
.text-link:hover {
    color: var(--accent);
}

.theme-toggle,
.btn,
.icon-button,
button,
input,
textarea {
    font: inherit;
}

.theme-toggle,
.icon-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 0.8rem 1rem;
    cursor: pointer;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 102px;
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1rem;
    line-height: 1;
}

.hero-section,
.page-hero {
    padding: 4.5rem 0 2.5rem;
}

.page-hero.small {
    padding-top: 3rem;
}

.hero-grid,
.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.tool-page-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
    align-items: start;
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.05;
    margin: 0.35rem 0 1rem;
    letter-spacing: -0.04em;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 0.85rem;
}

.tool-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-copy p,
.page-hero p,
.section-head p {
    color: var(--muted);
    max-width: 62ch;
    margin: 0.35rem 0 0;
    font-size: 1rem;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-self: start;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.hero-search,
.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero-search {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    margin-top: 1.5rem;
}

.hero-search input,
.newsletter-form input,
.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
}

html[data-theme='dark'] .hero-search input,
html[data-theme='dark'] .newsletter-form input,
html[data-theme='dark'] .contact-form input,
html[data-theme='dark'] .contact-form textarea {
    background: rgba(0, 0, 0, 0.18);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 0.95rem 1.25rem;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover,
.icon-button:hover,
.theme-toggle:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.hero-stats,
.tool-meta,
.cta-stack,
.footer-bottom,
.footer-links,
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 1.5rem;
}

.hero-stats div {
    min-width: 110px;
}

.hero-stats strong {
    display: block;
    font-size: 1.7rem;
}

.hero-stats span,
.form-note,
.rating,
.tool-copy p,
.testimonial-card span {
    color: var(--muted);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    min-height: 390px;
    display: flex;
    align-items: end;
    justify-content: start;
}

.mini-panel {
    position: relative;
    z-index: 2;
    max-width: 280px;
}

.hero-floating-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.hero-floating-card p,
.hero-floating-card span {
    color: rgba(248, 250, 252, 0.8);
}

.section-illustration {
    display: block;
    max-width: 100%;
    height: auto;
}

.hero-illustration {
    position: absolute;
    right: 1.1rem;
    bottom: 1rem;
    width: min(58%, 360px);
    z-index: 1;
    filter: drop-shadow(0 28px 50px rgba(15, 23, 42, 0.16));
}

.hero-orbs::before,
.hero-orbs::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
}

.hero-orbs::before {
    width: 220px;
    height: 220px;
    right: -30px;
    top: -20px;
    background: rgba(255, 188, 110, 0.55);
}

.hero-orbs::after {
    width: 180px;
    height: 180px;
    left: 40px;
    bottom: -60px;
    background: rgba(66, 153, 225, 0.28);
}

.section {
    padding: 2rem 0 3rem;
}

.alt-section {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08));
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.9rem;
}

.section h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.category-grid,
.tool-grid,
.admin-grid,
.admin-panels,
.blog-listing,
.feedback-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.category-card,
.tool-card,
.blog-card,
.testimonial-card,
.admin-link-card,
.stat-card {
    padding: 1.45rem;
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-card:hover,
.tool-card:hover,
.blog-card:hover,
.admin-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 108, 61, 0.25);
}

.category-card,
.tool-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card h3,
.tool-card h3,
.blog-card h2,
.blog-card h3,
.testimonial-card strong,
.faq-item summary {
    line-height: 1.25;
}

.category-card h3,
.tool-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.category-card p,
.tool-copy p,
.blog-card p,
.testimonial-card p,
.faq-item p,
.content-card > p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.65;
}

.category-card strong {
    color: var(--accent-strong);
}

.chip,
.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.tool-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.45rem;
}

.ad-grid-card {
    min-height: 100%;
}

.ad-grid-body {
    margin-top: auto;
    padding-top: 0.35rem;
}

.ad-grid-placeholder {
    min-height: 120px;
    border: 1px dashed rgba(239, 108, 61, 0.35);
    border-radius: 18px;
    padding: 1rem;
    display: grid;
    align-content: center;
    gap: 0.35rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(239, 108, 61, 0.08), rgba(59, 130, 246, 0.04));
}

.ad-grid-placeholder strong {
    font-size: 1rem;
    color: var(--accent-strong);
}

.ad-grid-placeholder span {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-banner,
.tool-workspace,
.sidebar-panel,
.auth-card,
.table-card,
.article-body {
    padding: 1.75rem;
}

.content-card {
    padding: 1.75rem;
}

.content-card h2 {
    margin-bottom: 0.1rem;
}

.tool-workspace,
.sidebar-panel {
    position: relative;
    overflow: hidden;
}

.tool-workspace::before,
.sidebar-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 193, 120, 0.18), transparent 28%), radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 30%);
    pointer-events: none;
}

.tool-shell,
.tool-grid-inner,
.stack-list,
.button-row,
.button-grid,
.inline-fields {
    display: grid;
    gap: 1rem;
}

.tool-shell {
    gap: 1.3rem;
}

.tool-intro h2,
.tool-panel h3 {
    margin: 0;
}

.tool-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

html[data-theme='dark'] .tool-hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-hero-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.tool-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tool-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: end;
    gap: 0.75rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text);
    font-weight: 700;
    text-align: center;
    font-size: 0.92rem;
}

html[data-theme='dark'] .tool-badge {
    background: rgba(255, 255, 255, 0.03);
}

.tool-intro p,
.field-label {
    color: var(--muted);
}

.tool-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.55rem;
    gap: 1.2rem;
}

.tool-panel,
.metric-card,
.result-card,
.serp-card,
.empty-state,
.image-preview {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-theme='dark'] .tool-panel,
html[data-theme='dark'] .metric-card,
html[data-theme='dark'] .result-card,
html[data-theme='dark'] .serp-card,
html[data-theme='dark'] .empty-state,
html[data-theme='dark'] .image-preview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tool-panel.full-width {
    grid-column: 1 / -1;
}

.tool-panel-head {
    padding: 1rem 1rem 0.1rem;
}

.tool-panel-body {
    padding: 1rem 1rem 1.2rem;
}

.tool-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-panel-head::after {
    content: "";
    width: 54px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.tool-textarea,
.tool-panel input,
.tool-panel select,
.tool-panel textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

html[data-theme='dark'] .tool-textarea,
html[data-theme='dark'] .tool-panel input,
html[data-theme='dark'] .tool-panel select,
html[data-theme='dark'] .tool-panel textarea {
    background: rgba(0, 0, 0, 0.18);
}

.tool-textarea:focus,
.tool-panel input:focus,
.tool-panel select:focus,
.tool-panel textarea:focus {
    outline: none;
    border-color: rgba(239, 108, 61, 0.45);
    box-shadow: 0 0 0 4px rgba(239, 108, 61, 0.12);
    transform: translateY(-1px);
}

.tool-textarea {
    resize: vertical;
    min-height: 120px;
}

.dropzone {
    position: relative;
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px dashed rgba(239, 108, 61, 0.32);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(239, 108, 61, 0.08), rgba(59, 130, 246, 0.04));
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

html[data-theme='dark'] .dropzone {
    background: linear-gradient(180deg, rgba(255, 155, 84, 0.08), rgba(59, 130, 246, 0.05));
}

.dropzone.is-dragover {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(239, 108, 61, 0.16), rgba(59, 130, 246, 0.08));
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 40px rgba(239, 108, 61, 0.14);
}

.dropzone-hint {
    display: grid;
    gap: 0.25rem;
    padding: 0.15rem 0.1rem 0;
}

.dropzone-hint strong {
    font-size: 0.96rem;
}

.dropzone-hint span {
    color: var(--muted);
    font-size: 0.9rem;
}

.dropzone-image input[type="file"] {
    padding: 1rem;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.6);
}

html[data-theme='dark'] .dropzone-image input[type="file"] {
    background: rgba(255, 255, 255, 0.04);
}

.button-row {
    grid-auto-flow: column;
    justify-content: start;
}

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

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

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

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

.metric-card,
.result-card,
.empty-state,
.serp-card {
    padding: 1rem 1rem 1.05rem;
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), rgba(59, 130, 246, 0.7));
}

.metric-card strong,
.result-card strong,
.serp-card strong {
    display: block;
    font-size: 1.1rem;
}

.tool-meta {
    gap: 0.65rem;
}

.rating {
    font-size: 0.86rem;
}

.metric-card span,
.result-card p,
.serp-card span,
.serp-card p,
.sample-text,
.calendar-output {
    color: var(--muted);
}

.serp-card strong {
    color: #2563eb;
}

.serp-card span {
    display: block;
    margin: 0.35rem 0;
    color: #15803d;
}

.markdown-preview {
    line-height: 1.7;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    margin-top: 0;
}

.markdown-preview code,
.calendar-output {
    background: rgba(15, 23, 42, 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
}

html[data-theme='dark'] .markdown-preview code,
html[data-theme='dark'] .calendar-output {
    background: rgba(255, 255, 255, 0.08);
}

.calendar-output {
    white-space: pre-wrap;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.image-preview {
    min-height: 240px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1rem;
}

.image-preview canvas {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.sample-text {
    padding: 1rem;
    border-radius: 16px;
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, 0.18);
}

.cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 260px) auto;
    gap: 1.4rem;
    align-items: center;
}

.cta-copy,
.content-card {
    display: grid;
    gap: 0.85rem;
}

.blog-card {
    gap: 0.8rem;
}

.blog-card h2,
.blog-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.testimonial-card {
    display: grid;
    gap: 0.8rem;
}

.testimonial-card p {
    font-size: 1rem;
}

.testimonial-card strong {
    font-size: 1rem;
}

.testimonial-card span {
    font-size: 0.9rem;
}

.content-illustration {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.28);
    padding: 0.6rem;
}

.content-illustration.small {
    max-width: 340px;
}

.cta-illustration {
    width: 100%;
    max-width: 240px;
    justify-self: center;
}

.sidebar-illustration {
    width: 100%;
    max-width: 220px;
    margin: 0.85rem 0 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.24);
    padding: 0.45rem;
}

.tool-loading {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.ad-unit {
    width: var(--container);
    margin: 0 auto 2rem;
    padding: 1.2rem 1.35rem;
    display: grid;
    gap: 1rem;
}

.ad-unit-wide {
    margin-top: 0.25rem;
}

.ad-unit-inline {
    margin-top: 0.2rem;
}

.ad-unit-footer {
    margin-top: 1.25rem;
    margin-bottom: 1.4rem;
}

.ad-unit-head {
    display: grid;
    gap: 0.45rem;
}

.ad-unit-head strong {
    font-size: 1.1rem;
    line-height: 1.2;
}

.ad-unit-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.ad-unit-body {
    min-height: 110px;
    border: 1px dashed rgba(239, 108, 61, 0.35);
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(239, 108, 61, 0.08), rgba(59, 130, 246, 0.04));
    display: grid;
    place-items: center;
}

.ad-unit-article {
    width: 100%;
    margin: 0.6rem 0 0.9rem;
    padding: 1rem 1.1rem;
    box-shadow: none;
}

.ad-placeholder {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
}

.ad-placeholder span {
    font-weight: 800;
    color: var(--accent-strong);
}

.ad-placeholder small {
    color: var(--muted);
    max-width: 56ch;
}

.blog-list,
.testimonial-list,
.faq-list {
    display: grid;
    gap: 1.1rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.faq-item p {
    margin: 0.85rem 0 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

.site-footer {
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--line);
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.25rem;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
}

.site-footer a {
    display: block;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.footer-bottom {
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.notice {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.notice.success {
    background: rgba(16, 185, 129, 0.14);
    color: #0f9a6c;
}

.notice.error {
    background: rgba(239, 68, 68, 0.14);
    color: #d43636;
}

.admin-auth {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(520px, 100%);
}

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

.admin-table th,
.admin-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-tools-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.4fr);
    gap: 1.5rem;
}

.admin-tool-form,
.admin-list-head {
    display: grid;
    gap: 1rem;
}

.admin-list-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-check-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-subtext {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 0.2rem;
}

.admin-actions-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
    margin: 0;
}

.danger-link {
    color: #d43636;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.sidebar-list {
    padding-left: 1.2rem;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.65rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero-grid,
    .split-grid,
    .footer-grid,
    .category-grid,
    .tool-grid,
    .admin-grid,
    .admin-tools-layout,
    .admin-panels,
    .blog-listing,
    .feedback-list {
        grid-template-columns: 1fr 1fr;
    }

    .cta-banner {
        grid-template-columns: 1fr;
    }

    .ad-unit {
        margin-bottom: 1.75rem;
    }

    .hero-illustration {
        position: static;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
    }

    .nav-wrap {
        flex-wrap: wrap;
        padding: 1rem 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 680px) {
    .hero-grid,
    .split-grid,
    .footer-grid,
    .category-grid,
    .tool-grid,
    .admin-grid,
    .admin-tools-layout,
    .admin-panels,
    .blog-listing,
    .feedback-list {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.55rem 0 2.3rem;
    }

    .hero-search,
    .section-head,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-title-row {
        align-items: start;
    }

    .tool-grid-inner,
    .button-grid,
    .inline-fields,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .tool-hero-card {
        grid-template-columns: 1fr;
    }

    .tool-hero-meta {
        justify-content: start;
    }

    .hero-panel {
        min-height: auto;
    }

    .button-row {
        grid-auto-flow: row;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 2.45rem;
    }

    .category-card,
    .tool-card,
    .blog-card,
    .testimonial-card,
    .content-card,
    .cta-banner,
    .tool-workspace,
    .sidebar-panel,
    .ad-unit {
        padding: 1.2rem;
    }
}
