/* ===========================
   RecordDNS - Design System v2
   Modern palette + micro-interactions
   =========================== */

/* ===========================
   CSS Variables / Theming
   =========================== */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --max-width: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Linear/Vercel-inspired palette */
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --teal-500: #14b8a6;
    --fuchsia-500: #d946ef;
    --orange-500: #f97316;
}

[data-theme="dark"] {
    --bg-primary: #09090b;
    --bg-secondary: #0f0f13;
    --bg-card: #16161c;
    --bg-input: #1c1c24;
    --bg-hover: #23232d;
    --bg-elevated: #1a1a22;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #63636e;
    --border: #27272a;
    --border-subtle: #1e1e24;
    --accent: var(--indigo-500);
    --accent-hover: var(--indigo-400);
    --accent-bg: rgba(99, 102, 241, 0.1);
    --accent-glow: rgba(99, 102, 241, 0.25);
    --success: var(--emerald-500);
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: var(--amber-500);
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: var(--rose-500);
    --error-bg: rgba(244, 63, 94, 0.1);
    --code-bg: #0c0c10;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f4f4f5;
    --bg-hover: #e4e4e7;
    --bg-elevated: #fafafa;
    --text-primary: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --border-subtle: #f0f0f2;
    --accent: var(--indigo-600);
    --accent-hover: var(--indigo-500);
    --accent-bg: rgba(79, 70, 229, 0.06);
    --accent-glow: rgba(79, 70, 229, 0.12);
    --success: var(--emerald-500);
    --success-bg: rgba(16, 185, 129, 0.08);
    --warning: var(--amber-500);
    --warning-bg: rgba(245, 158, 11, 0.08);
    --error: var(--rose-500);
    --error-bg: rgba(244, 63, 94, 0.08);
    --code-bg: #f4f4f5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.08);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
}

::selection {
    background: var(--accent);
    color: white;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.logo:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.logo svg {
    color: var(--accent);
    transition: all var(--transition);
}

.logo:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.btn-icon {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-icon:active {
    transform: translateY(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.925rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo-500), var(--violet-500));
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-secondary::after { display: none; }

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--indigo-400) 50%, var(--violet-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    padding: 4rem 0 3rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===========================
   Features Grid
   =========================== */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo-500), var(--violet-500), var(--fuchsia-500));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--accent-bg), rgba(139, 92, 246, 0.1));
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ===========================
   Quick Lookup (Homepage)
   =========================== */
.quick-lookup {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.quick-lookup h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.input-group input,
.input-group select {
    flex: 1;
    min-width: 200px;
}

/* ===========================
   Forms & Inputs
   =========================== */
input[type="text"],
select {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition);
    width: 100%;
    outline: none;
}

input[type="text"]::placeholder {
    color: var(--text-muted);
}

input[type="text"]:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
    background: var(--bg-card);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363636e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* ===========================
   What is DNS Section
   =========================== */
.what-is-dns {
    padding: 5rem 0;
}

.what-is-dns h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sky-400), var(--teal-500), var(--emerald-400));
    border-radius: var(--radius) var(--radius) 0 0;
}

.content-box p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-box p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.content-box h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.content-box ol {
    padding-left: 0;
    color: var(--text-secondary);
    counter-reset: step;
    list-style: none;
}

.content-box ol li {
    margin-bottom: 0.75rem;
    padding-left: 2.5rem;
    position: relative;
    counter-increment: step;
    line-height: 1.7;
}

.content-box ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--accent);
}

/* ===========================
   Records Cards Grid
   =========================== */
.records-main {
    padding: 2rem 0 5rem;
}

.records-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.record-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.record-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.record-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.record-card:hover::after {
    opacity: 1;
}

.record-badge {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
    transition: all var(--transition);
}

.record-card:hover .record-badge {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-bg);
}

.record-content {
    flex: 1;
    min-width: 0;
}

.record-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.record-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.tag-core { background: var(--accent-bg); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.tag-security { background: var(--error-bg); color: var(--rose-400); border-color: color-mix(in srgb, var(--rose-500) 30%, transparent); }
.tag-email { background: var(--success-bg); color: var(--emerald-400); border-color: color-mix(in srgb, var(--emerald-500) 30%, transparent); }
.tag-ipv6 { background: rgba(56, 189, 248, 0.1); color: var(--sky-400); border-color: rgba(56, 189, 248, 0.2); }
.tag-service { background: var(--warning-bg); color: var(--amber-400); border-color: color-mix(in srgb, var(--amber-500) 30%, transparent); }
.tag-reverse { background: rgba(167, 139, 250, 0.1); color: var(--violet-400); border-color: rgba(167, 139, 250, 0.2); }
.tag-ssl { background: rgba(20, 184, 166, 0.1); color: var(--teal-500); border-color: rgba(20, 184, 166, 0.2); }
.tag-auto { background: rgba(113, 113, 122, 0.1); color: var(--text-muted); border-color: rgba(113, 113, 122, 0.2); }
.tag-info { background: rgba(56, 189, 248, 0.1); color: var(--sky-400); border-color: rgba(56, 189, 248, 0.2); }
.tag-rare { background: rgba(113, 113, 122, 0.06); color: var(--text-muted); border-color: rgba(113, 113, 122, 0.15); }

.record-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.925rem;
    line-height: 1.7;
}

.record-content h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    overflow-x: auto;
    margin: 0.5rem 0 1rem;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    white-space: pre;
}

.record-details {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.detail-value a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
}

/* Badge color variants */
.badge-aaaa { border-color: var(--sky-400); color: var(--sky-400); background: rgba(56, 189, 248, 0.1); }
.badge-cname { border-color: var(--violet-400); color: var(--violet-400); background: rgba(167, 139, 250, 0.1); }
.badge-mx { border-color: var(--emerald-400); color: var(--emerald-400); background: var(--success-bg); }
.badge-txt { border-color: var(--rose-400); color: var(--rose-400); background: var(--error-bg); }
.badge-spf { border-color: #10b981; color: #10b981; background: rgba(16,185,129,0.1); }
.badge-dkim { border-color: #8b5cf6; color: #8b5cf6; background: rgba(139,92,246,0.1); }
.badge-dmarc { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.1); }
.tag-recommended { background: var(--warning-bg); color: var(--warning); }

/* Protocol group heading */
.protocol-group-title {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}
.protocol-group-desc {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.badge-ns { border-color: var(--amber-400); color: var(--amber-400); background: var(--warning-bg); }
.badge-soa { border-color: var(--text-muted); color: var(--text-muted); background: rgba(113, 113, 122, 0.1); }
.badge-srv { border-color: var(--orange-500); color: var(--orange-500); background: rgba(249, 115, 22, 0.1); }
.badge-ptr { border-color: var(--teal-500); color: var(--teal-500); background: rgba(20, 184, 166, 0.1); }
.badge-caa { border-color: var(--fuchsia-500); color: var(--fuchsia-500); background: rgba(217, 70, 239, 0.1); }
.badge-hinfo { border-color: var(--sky-400); color: var(--sky-400); background: rgba(56, 189, 248, 0.1); }
.badge-loc { border-color: var(--emerald-400); color: var(--emerald-400); background: var(--success-bg); }

/* ===========================
   Summary Table
   =========================== */
.summary-section {
    margin-top: 4rem;
}

.summary-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

.summary-table th {
    background: var(--bg-hover);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
    color: var(--text-primary);
}

.summary-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table tr {
    transition: background var(--transition);
}

.summary-table tbody tr:hover td {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.summary-table td strong {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ===========================
   Tool Sections
   =========================== */
.tools-main {
    padding: 2rem 0 5rem;
}

.tool-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all var(--transition);
    position: relative;
}

.tool-section:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.tool-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.tool-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group-lg {
    flex: 2;
    min-width: 250px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Results Box */
.results-box {
    margin-top: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-box.hidden { display: none; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.results-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.lookup-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: var(--bg-hover);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.result-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.925rem;
    transition: background var(--transition);
}

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

.result-item:hover {
    background: var(--bg-hover);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-xs);
}

.result-type {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-right: 0.75rem;
    letter-spacing: 0.03em;
}

.result-data {
    color: var(--text-primary);
    word-break: break-all;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.result-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    padding-left: calc(0.55rem * 2 + 2.5em + 0.75rem);
}

.result-error {
    color: var(--error);
    font-weight: 500;
}

/* Loading & Spinner */
.loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    justify-content: center;
    color: var(--text-secondary);
}

.loading.hidden { display: none; }

.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton Loading */
.skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skeleton-badge {
    width: 3rem;
    height: 1.5rem;
    background: var(--bg-hover);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 1rem;
    background: var(--bg-hover);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-full { width: 100%; }

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===========================
   Propagation Grid
   =========================== */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.prop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.15rem;
    transition: all var(--transition);
}

.prop-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.prop-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.prop-flag {
    font-size: 1.4rem;
}

.prop-server-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.prop-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.prop-value {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    color: var(--accent);
    margin-top: 0.5rem;
    word-break: break-all;
    background: var(--accent-bg);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-xs);
}

.prop-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.prop-status.success { color: var(--emerald-400); background: var(--success-bg); }
.prop-status.error { color: var(--rose-400); background: var(--error-bg); }
.prop-status.timeout { color: var(--amber-400); background: var(--warning-bg); }

/* ===========================
   WHOIS Results
   =========================== */
.whois-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.whois-item {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.whois-item:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.whois-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}

.whois-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
}

/* ===========================
   SSL Certificate Checker
   =========================== */
.ssl-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ssl-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.ssl-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.ssl-info {
    flex: 1;
}

.ssl-domain {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    word-break: break-all;
}

.ssl-status-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.ssl-valid .ssl-status-text { color: var(--emerald-400); }
.ssl-expired .ssl-status-text { color: var(--rose-400); }
.ssl-warning .ssl-status-text, .ssl-warning-text { color: var(--amber-400); }

.ssl-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.ssl-detail-item {
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-subtle);
}

.ssl-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.ssl-detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
}

.ssl-detail-value.ssl-warning {
    color: var(--amber-400);
    font-weight: 600;
}

.ssl-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ssl-history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: all var(--transition);
}

.ssl-history-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.ssl-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ssl-history-name {
    font-weight: 600;
    font-size: 0.925rem;
    word-break: break-all;
}

.ssl-history-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.ssl-history-status.valid {
    color: var(--emerald-400);
    background: var(--success-bg);
}

.ssl-history-status.expired {
    color: var(--rose-400);
    background: var(--error-bg);
}

.ssl-history-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.ssl-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.ssl-link a {
    color: var(--accent);
    font-weight: 500;
    transition: all var(--transition);
}

.ssl-link a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-section ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.record-card,
.feature-card,
.prop-card {
    animation: fadeIn 0.4s ease both;
}

.records-grid .record-card:nth-child(1) { animation-delay: 0.05s; }
.records-grid .record-card:nth-child(2) { animation-delay: 0.1s; }
.records-grid .record-card:nth-child(3) { animation-delay: 0.15s; }
.records-grid .record-card:nth-child(4) { animation-delay: 0.2s; }
.records-grid .record-card:nth-child(5) { animation-delay: 0.25s; }
.records-grid .record-card:nth-child(6) { animation-delay: 0.3s; }

/* ===========================
   Copy Button
   =========================== */
.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    margin-left: 0.5rem;
    border-radius: var(--radius-xs);
    transition: all var(--transition-fast);
    vertical-align: middle;
}

.copy-btn:hover {
    background: var(--bg-card);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        animation: slideDown 0.2s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .nav-links a:last-of-type { border-bottom: none; }

    .nav-controls {
        margin-left: 0;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-btn { display: block; }

    .hero { padding: 3.5rem 0 3rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.05rem; }

    .record-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .record-badge {
        width: 48px;
        height: 48px;
        font-size: 0.75rem;
    }

    .record-details {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group, .form-group-lg {
        width: 100%;
    }

    .input-group { flex-direction: column; }

    .tool-section { padding: 1.5rem; }

    .prop-grid { grid-template-columns: 1fr; }

    .ssl-details-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .page-header h1 { font-size: 1.75rem; }
    .tool-section { padding: 1.25rem; }
    .container { padding: 0 1rem; }
    .ssl-details-grid { grid-template-columns: 1fr; }
    .content-box { padding: 1.5rem; }
    .whois-data { grid-template-columns: 1fr; }
}

/* ===========================
   Copy button (reusable)
   =========================== */
.copy-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.copy-btn.copied {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

/* Scroll bar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ===========================
   FAQ Page Styles
   =========================== */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.faq-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* TOC Grid */
.faq-toc {
    margin-bottom: 3rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.toc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.toc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.toc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.toc-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.toc-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.section-icon {
    font-size: 2rem;
}

/* FAQ Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question[aria-expanded="true"] {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 1.25rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.faq-answer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* CTA Section */
.faq-cta {
    margin-top: 4rem;
    padding: 3rem 0;
}

.cta-card {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Fade in animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible,
.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Email Validators Score Cards */
.email-score-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.email-score-card .score-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.email-score-card .score-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.email-score-card .score-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.email-score-card .score-domain {
    margin: 0.25rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}
.email-score-card .score-value {
    margin-left: auto;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
}
.score-excellent { border-color: var(--emerald-400); }
.score-excellent .score-value { color: var(--emerald-400); }
.score-good { border-color: var(--green-400); }
.score-good .score-value { color: var(--green-400); }
.score-warning { border-color: var(--amber-400); }
.score-warning .score-value { color: var(--amber-400); }
.score-bad { border-color: var(--rose-400); }
.score-bad .score-value { color: var(--rose-400); }

.email-analysis {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.email-analysis h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.analysis-item {
    background: var(--bg-secondary, rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}
.analysis-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.analysis-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-word;
}
.code-small {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    background: var(--bg-secondary, rgba(99,102,241,0.08));
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}
.badge-good, .badge-ok, .badge-warn, .badge-bad {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}
.badge-good { background: rgba(16,185,129,0.15); color: var(--emerald-400); }
.badge-ok { background: rgba(34,197,94,0.15); color: var(--green-400); }
.badge-warn { background: rgba(245,158,11,0.15); color: var(--amber-400); }
.badge-bad { background: rgba(244,63,94,0.15); color: var(--rose-400); }

.mechanisms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.65rem;
}
.mech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary, rgba(255,255,255,0.03));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
}
.mech-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.mech-badge.include { background: rgba(99,102,241,0.2); color: var(--indigo-400); }
.mech-badge.ip4 { background: rgba(34,197,94,0.2); color: var(--green-400); }
.mech-badge.ip6 { background: rgba(139,92,246,0.2); color: var(--violet-400); }
.mech-badge.a { background: rgba(59,130,246,0.2); color: var(--blue-400); }
.mech-badge.mx { background: rgba(16,185,129,0.2); color: var(--emerald-400); }
.mech-badge.redirect { background: rgba(245,158,11,0.2); color: var(--amber-400); }
.mech-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-primary);
    word-break: break-all;
}

.recommendations {
    background: var(--bg-secondary, rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}
.recommendations p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}
.recommendations p:first-child { margin-top: 0; }
.recommendations p:last-child { margin-bottom: 0; }
.rec-good { color: var(--emerald-400) !important; }
.rec-warn { color: var(--amber-400) !important; }
.rec-error { color: var(--rose-400) !important; }
.rec-info { color: var(--text-secondary) !important; }
.recommendations code {
    background: rgba(99,102,241,0.15);
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .email-score-card .score-header {
        flex-direction: column;
        text-align: center;
    }
    .email-score-card .score-value {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .analysis-grid { grid-template-columns: 1fr; }
    .mechanisms-list { grid-template-columns: 1fr; }
}


/* Email Header Analyzer */
#emailHeaderInput {
    width: 100%;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    resize: vertical;
    line-height: 1.5;
}
#emailHeaderInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}
.auth-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid;
}
.auth-pass { background: rgba(16,185,129,0.1); border-color: var(--emerald-400); color: var(--emerald-400); }
.auth-fail { background: rgba(244,63,94,0.1); border-color: var(--rose-400); color: var(--rose-400); }
.auth-neutral { background: rgba(245,158,11,0.1); border-color: var(--amber-400); color: var(--amber-400); }
.auth-icon { font-size: 1.1rem; }
.auth-text { opacity: 0.8; font-size: 0.8rem; }
.no-auth { color: var(--text-muted); font-style: italic; padding: 0.5rem; }
.received-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.received-hop {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--accent);
    position: relative;
    margin-left: 1rem;
}
.received-hop::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}
.hop-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}
.hop-content {
    flex: 1;
    padding-top: 0.3rem;
    word-break: break-all;
    line-height: 1.5;
}
.spam-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.spam-item {
    padding: 0.75rem 1rem;
    background: rgba(244,63,94,0.08);
    border: 1px solid rgba(244,63,94,0.3);
    border-radius: var(--radius-sm);
    color: var(--rose-400);
    font-size: 0.9rem;
}
@media (max-width: 640px) {
    .auth-checks { flex-direction: column; }
    .received-hop { flex-direction: column; gap: 0.5rem; }
}


/* Progress Bar */
.subdomain-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}
.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--violet-400));
    transition: width 0.3s ease;
    border-radius: 4px;
}
.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Subdomain Table */
.subdomain-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.subdomain-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.subdomain-table thead tr {
    background: var(--bg-card);
}
.subdomain-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.subdomain-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.subdomain-table tbody tr:hover {
    background: var(--accent-bg);
}
.subdomain-table tbody tr:last-child td {
    border-bottom: none;
}

/* Security Headers */
.sec-headers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sec-header-item {
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.sec-present {
    background: rgba(16,185,129,0.05);
    border-color: rgba(16,185,129,0.3);
}
.sec-missing {
    background: rgba(244,63,94,0.05);
    border-color: rgba(244,63,94,0.3);
}
.sec-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.sec-header-icon {
    font-size: 1.1rem;
}
.sec-header-name {
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.sec-header-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}
.sec-high { background: rgba(245,158,11,0.2); color: var(--amber-400); }
.sec-medium { background: rgba(59,130,246,0.2); color: var(--blue-400); }
.sec-low { background: rgba(139,92,246,0.2); color: var(--violet-400); }
.sec-header-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.sec-header-value {
    word-break: break-all;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
    animation: toast-in 0.3s ease;
    pointer-events: auto;
}
.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}
.toast-success { border-color: var(--emerald-400); }
.toast-error { border-color: var(--rose-400); }
.toast-info { border-color: var(--blue-400); }
@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Command Palette */
.palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    backdrop-filter: blur(4px);
}
.palette-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: palette-in 0.2s ease;
}
@keyframes palette-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.palette-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
}
.palette-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}
.palette-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}
.palette-item:hover, .palette-item.active {
    background: var(--accent-bg);
}
.palette-item-icon {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}
.palette-item-text {
    flex: 1;
}
.palette-item-label {
    font-weight: 600;
    font-size: 0.95rem;
}
.palette-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.palette-shortcut {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}


/* Responsive */
@media (max-width: 768px) {
    .faq-container {
        padding: 1rem 0.5rem;
    }
    
    .faq-hero {
        padding: 2rem 1rem;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-section-title {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 1rem;
    }
    
    .cta-card {
        padding: 2rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
